query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
f48fbe3ec7c66aa1efe114a9ee3a1019
This method was generated by MyBatis Generator. This method sets the value of the database column tb_contract.is_open_invoice
[ { "docid": "5925371542a919d28781a45267392e3a", "score": "0.7916112", "text": "public void setIsOpenInvoice(Integer isOpenInvoice) {\n this.isOpenInvoice = isOpenInvoice;\n }", "title": "" } ]
[ { "docid": "ba5e1bb99f59a9cb2216aca52cf1943b", "score": "0.67186606", "text": "public Integer getIsOpenInvoice() {\n return isOpenInvoice;\n }", "title": "" }, { "docid": "fe32561aab50600672bb91e2faaa68f8", "score": "0.65952337", "text": "public void setInvoice(boolean value) {\n this.invoice = value;\n }", "title": "" }, { "docid": "3727514d45f03fae1e0f184af74f2da2", "score": "0.6050498", "text": "public void setInvoiceStatus(InvoiceStatus invoiceStatus){\n this.invoiceStatus = invoiceStatus;\n }", "title": "" }, { "docid": "591c65fa058a092ecf24e803997a6cb1", "score": "0.6003363", "text": "public void setC_Invoice_ID (int C_Invoice_ID);", "title": "" }, { "docid": "1ca554551b64a095804d54a8403bd173", "score": "0.5990107", "text": "public void setIsOpen(Integer isOpen) {\n this.isOpen = isOpen;\n }", "title": "" }, { "docid": "3635a22b1a066edda79efae47e50aec2", "score": "0.59767216", "text": "public void setOpen(Integer open) {\r\n this.open = open;\r\n }", "title": "" }, { "docid": "327f1bcf2cacd8f2658e482eb0480370", "score": "0.5805835", "text": "@Override\n public String updateContractInvoiceStatus(String conId, int value) {\n HashMap p = new HashMap();\n p.put(\"conId\", conId);\n p.put(\"v\", value);\n getSqlMapClientTemplate().update(\"t_contract_infor.updateContractInvoiceStatus\", p);\n return null;\n }", "title": "" }, { "docid": "1a04f30abe2a494db73bb87cc376fa35", "score": "0.5786735", "text": "public void setIsOpen(String isOpen) {\r\n this.isOpen = isOpen == null ? null : isOpen.trim();\r\n }", "title": "" }, { "docid": "09d2acfd924758541e059b6d5787e459", "score": "0.5765675", "text": "public void setC_PurchaseInvoice_ID (int C_PurchaseInvoice_ID);", "title": "" }, { "docid": "1d4edf6e4f02d7637db9b2e1b77e86cb", "score": "0.57520485", "text": "public void setOpenBalance(int value) {\n this.openBalance = value;\n }", "title": "" }, { "docid": "5bd7ef9ef1b7a3ba73b095899107f767", "score": "0.5743309", "text": "public void setOpenAmt (BigDecimal OpenAmt);", "title": "" }, { "docid": "4d503f535a5f3719829568092baf6220", "score": "0.57059056", "text": "public void setOpenBalance(int value) {\n this.openBalance = value;\n }", "title": "" }, { "docid": "dc67715ab3cdadb1f1c5bd2bc3d12654", "score": "0.5691943", "text": "public void setInvoiceNo(String invoiceNo) {\n this.invoiceNo = invoiceNo;\n }", "title": "" }, { "docid": "dc67715ab3cdadb1f1c5bd2bc3d12654", "score": "0.5691943", "text": "public void setInvoiceNo(String invoiceNo) {\n this.invoiceNo = invoiceNo;\n }", "title": "" }, { "docid": "b6a821d6b1918d5c96e145567cd42bb6", "score": "0.56849146", "text": "public InvoiceStatus getInvoiceStatus(){\n return invoiceStatus;\n }", "title": "" }, { "docid": "6fc548e86bf415f12c1f1d7fa732130c", "score": "0.56743187", "text": "@Generated\n @Selector(\"setOpen:\")\n public native void setOpen(boolean value);", "title": "" }, { "docid": "056851b60a10334b0a7b18fbca9dd0c3", "score": "0.56443596", "text": "public void setInvoiceId(int aInvoiceId) {\n invoiceId = aInvoiceId;\n }", "title": "" }, { "docid": "267337d91240c2efcdd489ff0f757ca4", "score": "0.557886", "text": "public void setInvoiceStatus(InvoiceStatus invoiceStatus) {\n this.invoiceStatus = invoiceStatus;\n }", "title": "" }, { "docid": "947d3394c2bdc8dd1a0b83362d42f01e", "score": "0.5517645", "text": "public static boolean update_invoice(Invoice invoice) {\n Session hibernate_session = HibernateUtil.getSessionFactory().openSession();\n hibernate_session.beginTransaction();\n try {\n hibernate_session.update(invoice);\n hibernate_session.getTransaction().commit();\n return true;\n } catch (Exception e) {\n if (hibernate_session.getTransaction().isActive()) {\n hibernate_session.getTransaction().rollback();\n }\n hibernate_session.flush();\n hibernate_session.close();\n return false;\n }\n }", "title": "" }, { "docid": "a2ad48f9800c460154c57114026fe955", "score": "0.5502967", "text": "public void setInvoiceNo(java.lang.String invoiceNo) {\n this.invoiceNo = invoiceNo;\n }", "title": "" }, { "docid": "b2bd1aa57126bfa01330e0b821601bc9", "score": "0.549059", "text": "public void setC_SalesInvoice_ID (int C_SalesInvoice_ID);", "title": "" }, { "docid": "8de82ef4f7cd253a976968cc8c586924", "score": "0.5454816", "text": "public void setOpen(boolean open) {\n this.open = open;\n }", "title": "" }, { "docid": "2c6c325a6687d01ec94ebbe78e224eae", "score": "0.54515207", "text": "public InvoiceStatus getInvoiceStatus() {\n return invoiceStatus;\n }", "title": "" }, { "docid": "16e37ac11fcef86a8a5442a0d9a993ef", "score": "0.54428756", "text": "public void setInvoiceDate(Date invoiceDate)\r\n\t{\r\n\t\tthis.invoiceDate = invoiceDate;\r\n\t}", "title": "" }, { "docid": "374a0425bfe773b2c8cce7006a21d8f4", "score": "0.5410856", "text": "public static Object $$$FldINSupStatusInvoices(mContext m$) {\n return (8);\n }", "title": "" }, { "docid": "18207dc8634f547818b6db234991bad8", "score": "0.5394294", "text": "public void setOpenDate(Date openDate) {\n this.openDate = openDate;\n }", "title": "" }, { "docid": "bcf562b7f4f434dfb1974c4113c8c5f5", "score": "0.53842294", "text": "public void setInvoiceDate(String invoiceDate) {\n this.invoiceDate = invoiceDate;\n }", "title": "" }, { "docid": "87bce53b057e4b087d24a65ebc52665d", "score": "0.5368293", "text": "public void setDateOpen(String dateOpen) {\r\n this.dateOpen = dateOpen;\r\n }", "title": "" }, { "docid": "f5e95445afc7df99e42efb0a03875d8d", "score": "0.5348352", "text": "public String getInvoiceNo() {\n return invoiceNo;\n }", "title": "" }, { "docid": "f5e95445afc7df99e42efb0a03875d8d", "score": "0.5348352", "text": "public String getInvoiceNo() {\n return invoiceNo;\n }", "title": "" }, { "docid": "d5921a6838c6b721668557921caf6b0b", "score": "0.534032", "text": "public void setInvoiceLine(int value) {\n this.invoiceLine = value;\n }", "title": "" }, { "docid": "c3b49d40299af047ec5345d18c2929a2", "score": "0.53134423", "text": "public int getInvoiceId() {\n return invoiceId;\n }", "title": "" }, { "docid": "de3f1232a4bf97a330bd80d190d3e798", "score": "0.52776015", "text": "public void setOpenId(String openId) {\n this.openId = openId == null ? null : openId.trim();\n }", "title": "" }, { "docid": "5571c1e41cf8650a54610a1a2b79a776", "score": "0.5271936", "text": "public void setC_Invoice_ID(int C_Invoice_ID) {\n\t\tif (C_Invoice_ID <= 0)\n\t\t\tset_ValueNoCheck(\"C_Invoice_ID\", null);\n\t\telse\n\t\t\tset_ValueNoCheck(\"C_Invoice_ID\", new Integer(C_Invoice_ID));\n\t}", "title": "" }, { "docid": "d9bfd5330bc64e540d9302e6cf2fe0a7", "score": "0.52034044", "text": "public void setInvoiceDate(Date aInvoiceDate) {\n invoiceDate = aInvoiceDate;\n }", "title": "" }, { "docid": "66f26ac8f3585d2a649ebc461a6e3a69", "score": "0.5201683", "text": "public void setInvoiceNumber(java.lang.String value);", "title": "" }, { "docid": "3f94c401a122af36ab5b66452f23d87e", "score": "0.51935893", "text": "public boolean isInvoice() {\n return invoice;\n }", "title": "" }, { "docid": "d25649308b2ae7444336b075837c4eed", "score": "0.51393485", "text": "@Basic\n\t@Column(name = \"isincome\", nullable = false)\n\tboolean isIsincome();", "title": "" }, { "docid": "5f445266e7ab33eab23cbf83d5721f72", "score": "0.5116644", "text": "public void setOpenId(String openId) {\n this.openId = openId;\n }", "title": "" }, { "docid": "5f445266e7ab33eab23cbf83d5721f72", "score": "0.5116644", "text": "public void setOpenId(String openId) {\n this.openId = openId;\n }", "title": "" }, { "docid": "5f445266e7ab33eab23cbf83d5721f72", "score": "0.5116644", "text": "public void setOpenId(String openId) {\n this.openId = openId;\n }", "title": "" }, { "docid": "ed9b520ddea1b306e4c55e676a13f325", "score": "0.5108766", "text": "Invoice getSelectedInvoice() {\n return selectedInvoice;\n }", "title": "" }, { "docid": "c520a5dbc1e81cda9c80a3e6175a31e6", "score": "0.51033103", "text": "@ApiModelProperty(value = \"The ID of the invoice\")\n public Integer getInvoiceId() {\n return invoiceId;\n }", "title": "" }, { "docid": "9f5b6fe982c406ee01fd4889a37a4ffd", "score": "0.5049929", "text": "public static Object $$$FldINAgreeRespLineOpenDate(mContext m$) {\n return (6);\n }", "title": "" }, { "docid": "27a5bd2f6aa0655ff91da7ec54686d33", "score": "0.5044372", "text": "public void setInvoiceNumber(String aInvoiceNumber) {\n invoiceNumber = aInvoiceNumber;\n }", "title": "" }, { "docid": "02a9208c83891c6d74da67cfcb0896bc", "score": "0.5032549", "text": "public static boolean add_invoice(Invoice invoice) {\n Session hibernate_session = HibernateUtil.getSessionFactory().openSession();\n hibernate_session.beginTransaction();\n try {\n hibernate_session.save(invoice);\n hibernate_session.getTransaction().commit();\n return true;\n } catch (Exception e) {\n if (hibernate_session.getTransaction().isActive()) {\n hibernate_session.getTransaction().rollback();\n }\n hibernate_session.flush();\n hibernate_session.close();\n return false;\n }\n }", "title": "" }, { "docid": "8a4057bea141295e09cb8459d213d8ad", "score": "0.5020739", "text": "public Date getInvoiceDate() {\n return invoiceDate;\n }", "title": "" }, { "docid": "6a037bca039bbee2835b7b59175b91cd", "score": "0.50196004", "text": "Order setInvoiceCanceled(Order order);", "title": "" }, { "docid": "ac044af1d398a104b9f3e8301efb7d6b", "score": "0.49983475", "text": "@Override\n public void updateContractInvoiceMoney(String id) {\n getSqlMapClientTemplate().update(\"t_contract_infor.updateContractInvoiceMoney\", id);\n\n }", "title": "" }, { "docid": "81c3d90453b5d830719ba441c29dc3a6", "score": "0.49939865", "text": "public static int setDefaultInvoice(final long uid, final int invoice_id, final byte i_type) {\n\n\n int res = MybatisManager.doSomething(new MybatisManager.Handler<Integer>() {\n @Override\n protected Integer handle(SqlSession sqlSession) {\n\n\n UserInvoiceMapper userInvoiceMapper = sqlSession.getMapper(UserInvoiceMapper.class);\n\n HashMap proParam = new HashMap();\n proParam.put(\"v_uid\", uid);\n proParam.put(\"v_invoice_id\", invoice_id);\n proParam.put(\"v_i_type\", i_type);\n\n userInvoiceMapper.pro_set_def_invoice(proParam);\n int int_ret = (int) proParam.get(\"int_ret\");\n System.out.println(\"--- 160916 011----->\" + int_ret);\n return int_ret;\n }\n });\n\n //to redis\n if (res == 200) {\n res = RedisHandler.setDefaultInvoice(uid, invoice_id, i_type);\n return res;\n }\n\n return 0;\n }", "title": "" }, { "docid": "1dcdb9922d4a39165c2a88306b8d55ab", "score": "0.49937096", "text": "public MockInvoice(UUID invoiceId, UUID accountId, @Nullable Integer invoiceNumber, DateTime invoiceDate,\n DateTime targetDate, Currency currency, boolean isMigrationInvoice) {\n super(invoiceId);\n this.accountId = accountId;\n this.invoiceNumber = invoiceNumber;\n this.invoiceDate = invoiceDate;\n this.targetDate = targetDate;\n this.currency = currency;\n this.migrationInvoice = isMigrationInvoice;\n }", "title": "" }, { "docid": "571b63f64384140d1f4179136b7578c1", "score": "0.4993385", "text": "public static Object $$$FldINANGPIncomingInvoiceOn(mContext m$) {\n return (110);\n }", "title": "" }, { "docid": "f648ad1f26d4a5b6e22aae5e1f764e61", "score": "0.49846816", "text": "public int getInvoiceID() {\r\n\t\treturn invoiceID;\r\n\t}", "title": "" }, { "docid": "6e28efa69e25d18b14e6c5add8396bf3", "score": "0.49786556", "text": "public void setINVINT(BigDecimal newvalue) {\n fieldINVINT.setBigDecimal(newvalue);\n }", "title": "" }, { "docid": "fd8af8c682ec8ba733e3221dc6cb99ff", "score": "0.49748266", "text": "@Override\n\tpublic Invoice createInvoice(Invoice invoice) {\n\t\tInvoice invoiceDB = invoiceRepository.findByNumberInvoice ( invoice.getNumberInvoice () );\n if (invoiceDB !=null){\n return invoiceDB;\n }\n invoice.setState(\"CREATED\");\n invoiceDB = invoiceRepository.save(invoice);\n \n invoiceDB.getItems().forEach( invoiceItem -> {\n productClient.updateStockProduct( invoiceItem.getProductId(), invoiceItem.getQuantity() * -1);\n });\n \n \n \n return invoiceDB;\n \n\t}", "title": "" }, { "docid": "dfb441d0b3bb780d9aa470206a21f8c2", "score": "0.49482375", "text": "public void setClosed(boolean closedCurve) {\n\t\t\tthis.closedCurve = closedCurve;\n\t\t\tframesDirty = true;\n\t\t}", "title": "" }, { "docid": "081c02feafe7d8592500f4b540b215bf", "score": "0.49466878", "text": "public void setIsOverdue(Boolean isOverdue) {\n this.isOverdue = isOverdue;\n }", "title": "" }, { "docid": "8f49588b1cde91450cff51be0f567d5e", "score": "0.49460834", "text": "public static Object $$$FldINAgreeReqLineOpenDate(mContext m$) {\n return (4);\n }", "title": "" }, { "docid": "ed43d6889a672fcec9b048bedfb83134", "score": "0.49385002", "text": "public void setIsSubcontracting (boolean IsSubcontracting)\n{\nset_Value (\"IsSubcontracting\", new Boolean(IsSubcontracting));\n}", "title": "" }, { "docid": "de201c1dfc51d594fb721d855e6ea7c6", "score": "0.49291834", "text": "public void setCurrentInvoiceNumber(int currentInvoiceNumber) {\r\n this.currentInvoiceNumber = currentInvoiceNumber;\r\n }", "title": "" }, { "docid": "50dd1419b2b904b4702f4edbbefa7597", "score": "0.49241987", "text": "@Override\n\tpublic Invoice updateInvoice(Invoice invoice) {\n\t\tInvoice invoiceDB = getInvoice(invoice.getId());\n if (invoiceDB == null){\n return null;\n }\n invoiceDB.setCustomerId(invoice.getCustomerId());\n invoiceDB.setDescription(invoice.getDescription());\n invoiceDB.setNumberInvoice(invoice.getNumberInvoice());\n invoiceDB.getItems().clear();\n invoiceDB.setItems(invoice.getItems());\n return invoiceRepository.save(invoiceDB);\n\t}", "title": "" }, { "docid": "6ed2ee42be773808cc5eece9ce514048", "score": "0.4919736", "text": "public static Object $$$FldINSupMastAgreeOpenDate(mContext m$) {\n return (2);\n }", "title": "" }, { "docid": "2484fb66743a3758f5fcad820afde3a8", "score": "0.49131128", "text": "public void setOcupacao(Integer ocupacao) {\n\t\tif (ocupacao>=90) {\n\t\t\tthis.estaComAltaOcupacao = true;\n\t\t} else {\n\t\t\tthis.estaComAltaOcupacao=false;\n\t\t}\n\t\tthis.ocupacao = ocupacao;\n\t}", "title": "" }, { "docid": "47d89bc8dd547e4b6774d7533e159aec", "score": "0.49069154", "text": "public Builder setOpen(double value) {\n\n open_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "47d89bc8dd547e4b6774d7533e159aec", "score": "0.49069154", "text": "public Builder setOpen(double value) {\n\n open_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "33e7fa3c47596ed820d0c099f635c6b5", "score": "0.49064207", "text": "@Override\r\n\tpublic void setOpenPrice(double price) throws JFException {\n\t\t\r\n\t}", "title": "" }, { "docid": "658c997dd1f6248ea6a277baaec6b514", "score": "0.4906254", "text": "public void setINVVNO(BigDecimal newvalue) {\n fieldINVVNO.setBigDecimal(newvalue);\n }", "title": "" }, { "docid": "c689330cbde7c00a4b338fbd1d7e73fc", "score": "0.48974955", "text": "public void setIs(Contract is)\n {\n this.is = is;\n }", "title": "" }, { "docid": "a249664a2688e89a77f239469eaccc16", "score": "0.48944646", "text": "public Builder setOpenData(cn.xvkang.phone.netty.protobuf.MyMessage.Open value) {\n if (openDataBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n dataBody_ = value;\n onChanged();\n } else {\n openDataBuilder_.setMessage(value);\n }\n dataBodyCase_ = 2;\n return this;\n }", "title": "" }, { "docid": "ed4acd6d1f0fdc4f9598f5a67e3e6bb0", "score": "0.489325", "text": "public void setBulkInvoice(entity.BulkInvoice value);", "title": "" }, { "docid": "4cc732d2e61988263519c83f6491619e", "score": "0.4885158", "text": "public void setActiveConfiguredOptionsInvoice(double value) {\n this.activeConfiguredOptionsInvoice = value;\n }", "title": "" }, { "docid": "6acece3aed58f97f7c1dbd719fb067cd", "score": "0.48772383", "text": "public Date getInvoiceDate()\r\n\t{\r\n\t\treturn invoiceDate;\r\n\t}", "title": "" }, { "docid": "40d906bf5db934f6fee70a416b804cdf", "score": "0.48740667", "text": "public void setINVINI(BigDecimal newvalue) {\n fieldINVINI.setBigDecimal(newvalue);\n }", "title": "" }, { "docid": "76a44855e3b1a01290872563e84f19d0", "score": "0.48699597", "text": "void setIsincome(boolean isincome);", "title": "" }, { "docid": "dd0713f52f204fa878ced44ee6153dd8", "score": "0.48661238", "text": "public String getInvoiceNumber() {\n return invoiceNumber;\n }", "title": "" }, { "docid": "3aa2305f1e33e4827e9d25a79562d46c", "score": "0.48519945", "text": "public static Object $$$FldINANGPCHECKIncomingInvoiceAt(mContext m$) {\n return (110);\n }", "title": "" }, { "docid": "44e682202f4e3aefa481f4de7ab7f390", "score": "0.48475468", "text": "public static Object $$$FldINSupMastAgreeItemOpenDate(mContext m$) {\n return (8);\n }", "title": "" }, { "docid": "c25294b5fed2e623ae2250fc37a8d4ce", "score": "0.48437446", "text": "public void setActivo(boolean activo)\r\n/* 161: */ {\r\n/* 162:281 */ this.activo = activo;\r\n/* 163: */ }", "title": "" }, { "docid": "6fd0bb7e71ee03d35a856032cee062fd", "score": "0.48392227", "text": "public java.lang.String getInvoiceNo() {\n return invoiceNo;\n }", "title": "" }, { "docid": "feb3ba8ae1e683254cdfac878cd03ddb", "score": "0.4836596", "text": "public String getInvoiceDate() {\n return invoiceDate;\n }", "title": "" }, { "docid": "7d3a227d20b62b413f22ecd54aeb0806", "score": "0.4826265", "text": "void updateInvoiceRefundStatus(long invoiceId);", "title": "" }, { "docid": "b25d860269cd03b38a533fa1866a3c99", "score": "0.48148558", "text": "@Override\n public Integer getInvoiceNumber() {\n return invoiceNumber;\n }", "title": "" }, { "docid": "318112e638bf9362371f2703f8c37107", "score": "0.48078394", "text": "public boolean insertOrUpdateInvoice(Invoices invoice) {\r\n Session s = this.sessionFactory.openSession();\r\n Transaction tx = s.beginTransaction();\r\n try {\r\n s.saveOrUpdate(invoice);\r\n tx.commit();\r\n return true;\r\n } catch (HibernateException e) {\r\n tx.rollback();\r\n return false;\r\n } finally {\r\n s.close();\r\n }\r\n }", "title": "" }, { "docid": "cbfd9638b1e51375caf21c685c6bbb8e", "score": "0.4795305", "text": "public void setClosed(boolean closed) {\r\n\t\tthis.closed = closed;\r\n\t}", "title": "" }, { "docid": "7c8bf1c745f6e5c4e8ce18d30c8ec7dc", "score": "0.47903872", "text": "public int getC_Invoice_ID();", "title": "" }, { "docid": "00bd93c4d7d7a5896490550e06bfd6fd", "score": "0.47793007", "text": "public static Object $$$FldINVORGNoSourcingCheckOnInvoiceP(mContext m$) {\n return (141);\n }", "title": "" }, { "docid": "88d406c384bd0c3074a337e41b054a35", "score": "0.47786003", "text": "public void setINVVNO(String newvalue) {\n fieldINVVNO.setString(newvalue);\n }", "title": "" }, { "docid": "e45a7a383530bd157ea1cce1983ab919", "score": "0.47685325", "text": "public void setINVINT(String newvalue) {\n fieldINVINT.setString(newvalue);\n }", "title": "" }, { "docid": "cb979e269d044fd19c3dc68c28783564", "score": "0.47615334", "text": "public void setOpenCloseState(String openCloseState) {\n this.openCloseState = openCloseState == null ? null : openCloseState.trim();\n }", "title": "" }, { "docid": "3ea95119010ead1b7a42f652c4ffa628", "score": "0.4760194", "text": "public void updateStatus(int invoiceId, int status) throws SQLException \r\n {\r\n try { \r\n String sql = \"UPDATE tbl_invoice SET status=? WHERE invoice_id=?\";\r\n \r\n pstmt = conn.prepareStatement(sql); \r\n pstmt.setInt(1, status);\r\n pstmt.setInt(2, invoiceId);\r\n pstmt.executeUpdate(); \r\n \r\n }catch(SQLException se){\r\n se.printStackTrace();\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n } finally {\r\n }\r\n }", "title": "" }, { "docid": "b40933714665e168cfc7a82a8901d74d", "score": "0.47582543", "text": "public static Object $$$FldINSHIPINFOCOSTSInvoiceNumber(mContext m$) {\n return (7);\n }", "title": "" }, { "docid": "c1da1d7082c1659c83b63c781b4c05c0", "score": "0.47456136", "text": "public void setIsMilestone (boolean IsMilestone)\n{\nset_ValueE (\"IsMilestone\", new Boolean(IsMilestone));\n}", "title": "" }, { "docid": "c9ffdb0e0db1126b0806036e7a47f03e", "score": "0.47377264", "text": "public int getInvoiceLine() {\n return invoiceLine;\n }", "title": "" }, { "docid": "d728fbcfa97cbfa3a15a89d7a9447ce2", "score": "0.47323698", "text": "public void setOcupado(boolean ocupado){\n this.ocupado=ocupado;\n }", "title": "" }, { "docid": "52d1399c642758c32d093ef2094a061c", "score": "0.47266683", "text": "@Transactional\n\t@Override\n\tpublic void update(long invoice_id, PaymentDao paymentDao) {\n\t\t\n\t}", "title": "" }, { "docid": "05ceb5fc9063ed86f612a6bdda60a78e", "score": "0.47095364", "text": "public void setInvoiceRule (String InvoiceRule);", "title": "" }, { "docid": "7467d2c4d73bcb9bde842485b15a4ada", "score": "0.47090352", "text": "private void setOpenState(final boolean open) {\n\t\topenState = open;\n\t\tint all = getChildCount();\n\t\tall -= hasFooter() ? 1 : 0; // we do not want to hide the footer if we have one.\n\t\tint start = hasHeader() ? 1 : 0; // if we do not have a header, we start at 0\n\t\tint visibility = open ? VISIBLE : GONE;\n\t\tfor (int i = start; i < all; i++) {\n\t\t\tgetChildAt(i).setVisibility(visibility);\n\t\t}\n\t\tif (onOpenStateChangedListener != null) {\n\t\t\tonOpenStateChangedListener.onOpenStateChanged(this, open);\n\t\t}\n\t\tsetHeader(open ? headerOpenView : headerClosedView);\n\t\tsetFooter(open ? footerOpenView : footerClosedView);\n\t}", "title": "" }, { "docid": "5e90d964c05b449460791178ccc7a1cd", "score": "0.47073612", "text": "private void initializeInvoice() {\n\n\n if (isEmptyString(GlobalData.singleInvoiceDetailModel.getClient_id())) {\n Toast.makeText(getActivity(), \"Data not found\", Toast.LENGTH_SHORT).show();\n\n client_name = \"Babar Client Name\";\n invoice_name = \"Babar Invoice_name Name\";\n invoice_date = \"2 Feb, 2019\";\n due_date = \"2 Feb, 2020\";\n } else {\n client_name = GlobalData.singleInvoiceDetailModel.getClient_id();\n invoice_name = \"Invoice #\" + GlobalData.singleInvoiceDetailModel.getInvoice_number();\n invoice_date = GlobalData.singleInvoiceDetailModel.getCreated_at();\n due_date = GlobalData.singleInvoiceDetailModel.getDue_at();\n }\n\n }", "title": "" }, { "docid": "8b96b765503c631a8809b19ba29a9e77", "score": "0.47033334", "text": "public void setIdInv(int value) {\n this.idInv = value;\n }", "title": "" }, { "docid": "1fe28a07dac39c4c47b7fab96e0d10a7", "score": "0.4692725", "text": "public void setIsApproved(boolean approved) {\n isApproved = approved;\n }", "title": "" } ]
58d2b6d1f9be7177cd295e54fecda135
Use the VA Reactor watchlist instead of the UPA Channel for sending and receiving.
[ { "docid": "20e994ae59ec57e7da4c2d161cb233cb", "score": "0.0", "text": "public boolean useWatchlist()\n {\n return _useWatchlist;\n }", "title": "" } ]
[ { "docid": "a2fc429767c879835fe9f037a5c99c8b", "score": "0.52351403", "text": "private void makeMessengers() {\n\t\t\n\t\ttry {\n\t\t\tinbound = new Scanner(client.getInputStream());\n\t\t\toutbound = new PrintWriter(client.getOutputStream());\n\t\t} catch (IOException error) {\n\t\t\terror.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "b5a97613160dbb6a764a8d0f49057e29", "score": "0.518368", "text": "void onValuesReceived(int address, int channel, double power, double consumption);", "title": "" }, { "docid": "8aaea1480686585f32b7640e059152d6", "score": "0.51738095", "text": "@Override\n public int getThrottleChannel() {\n return 0;\n }", "title": "" }, { "docid": "ebe9b3395f3d827408fbc8bacccfed55", "score": "0.5130119", "text": "public void startReceiving();", "title": "" }, { "docid": "5b2aa4f3408f6145a9bcb0bdd4d64569", "score": "0.5096749", "text": "@Override\n\tpublic void onReceiveAllowStream() {\n\t\t\n\t}", "title": "" }, { "docid": "de7e744e8cb45e51770623118fbc07a2", "score": "0.50886667", "text": "public static void main(String[] args) throws InterruptedException\n {\n MessageBus messageBus = new MessageBus();\n\n messageBus.registerMessageHandler(\"Mokus\", new Observer()\n {\n @Override\n public void onMessage(Message msg)\n {\n System.out.println(\"Observer received msg: \" + ((TestMsg)msg).sipMsg.getRawMessage());\n }\n });\n\n Message msg = new TestMsg(new MessageHeader(\"Mokus\", MessageType.SIP), new SipMessage(\"SIPMSG HERE!\"));\n messageBus.send(msg);\n messageBus.send(msg);\n messageBus.send(msg);\n messageBus.send(msg);\n\n// TODO THIS IS THE IDEA\n// class MessageBus\n// {\n// sendMessage(EventFilter, Msg) -> triggers notify for EventFilter\n// poll(EventFilter)\n//\n//\n// registerObserver(EventFilter)\n// removeObserver(EventFilter)\n// notify(EventFilter)\n// }\n//\n// class Observer\n// {\n// // unblocks on notify\n// notify() { BlockingQueue.put(Msg); }\n//\n// run()\n// {\n// while(1)\n// {\n// Msg = BlockingQueue.take()\n// process Msg;\n// }\n// }\n// }\n\n\n// Registrar reg = new Registrar(messageBus);\n// UdpTransport tp = new UdpTransport(messageBus); // runs in its own thread, constantly sending/receiving on udp\n// // Transaction ta = new Transaction(messageBus);\n//\n//\n// tp.start();\n//\n// while (tp.isAlive())\n// {\n// tp.join();\n//\n// }\n }", "title": "" }, { "docid": "f3e0d13b2fcf92e89546c8e82f194443", "score": "0.50856227", "text": "@Override\n public void setThrottleChannel(final int channel) {}", "title": "" }, { "docid": "8e7d77d9577b875c26fce45d4870c759", "score": "0.50665146", "text": "public static void main(String... args) throws Exception {\n Proteus netifi =\n Proteus.builder()\n .group(\"json.example.client\") // Group name of client\n .accessKey(9007199254740991L)\n .accessToken(\"kTBDVtfRBO4tHOnZzSyY5ym2kfY=\")\n .host(\"localhost\") // Proteus Broker Host\n .port(8001) // Proteus Broker Port\n .build();\n\n // Connect to Netifi Proteus Platform\n RSocket jsonGreetingExample =\n netifi.groupNamedRSocket(\"JsonGreetingExample\", \"json.example.service\");\n\n RSocket jsonAddingExample =\n netifi.groupNamedRSocket(\"JsonAddingExample\", \"json.example.service\");\n\n Payload alice =\n jsonGreetingExample.requestResponse(ByteBufPayload.create(hello(\"Alice\"), \"hi\")).block();\n\n logger.info(alice.getDataUtf8());\n\n alice =\n jsonGreetingExample.requestResponse(DefaultPayload.create(hello(\"Alice\"), \"bye\")).block();\n\n logger.info(alice.getDataUtf8());\n\n Flux.merge(\n jsonGreetingExample.requestStream(DefaultPayload.create(hello(\"Bob\"), \"hi\")),\n jsonGreetingExample.requestStream(DefaultPayload.create(hello(\"Bob\"), \"bye\")))\n .limitRequest(20)\n .toIterable()\n .forEach(\n payload -> {\n logger.info(payload.getDataUtf8());\n });\n\n Payload result =\n jsonAddingExample.requestResponse(DefaultPayload.create(delta(1), \"add\")).block();\n\n logger.info(result.getDataUtf8());\n\n result = jsonAddingExample.requestResponse(DefaultPayload.create(delta(2), \"multiple\")).block();\n\n logger.info(result.getDataUtf8());\n\n jsonAddingExample\n .requestChannel(Flux.range(1, 10).map(i -> DefaultPayload.create(delta(i), \"add\")))\n .take(5)\n .toIterable()\n .forEach(payload -> logger.info(payload.getDataUtf8()));\n\n jsonAddingExample\n .requestChannel(Flux.range(1, 10).map(i -> DefaultPayload.create(delta(i), \"multiple\")))\n .take(5)\n .toIterable()\n .forEach(payload -> logger.info(payload.getDataUtf8()));\n }", "title": "" }, { "docid": "2a233c6da9d3731fb8a93b1fd2035241", "score": "0.50662494", "text": "public synchronized void subscribe() {\n\t\tif (updateChannel == null) {\n\t // Can I start subscribing or does handshake need to actually complete first?\n\t // TODO: we need to clean up the Bayeux client correctly when the model is no longer used.\n\t updateChannel = bayeuxClient.getChannel(channel());\n\t System.out.println(\"Trying to subscribe: \" + channel());\n\t updateChannel.subscribe(new BayeuxMessageListener());\n\t\t}\n\t}", "title": "" }, { "docid": "38c2365f33e45847d87de6ce9c3ed14b", "score": "0.50323886", "text": "private Channels() {\n super();\n }", "title": "" }, { "docid": "8360d005ceed8cf9354fd30d99ef40af", "score": "0.49682868", "text": "@Override\n public Object callback(Object o, Object o1) {\n int msgCount = 1;\n while(isRunning()) {\n\n /*\n * Read data from Avare\n */\n String r = getDataFromHelper();\n if (null == r) {\n continue;\n }\n\n // Build the JSON object from the received string. Contained therein\n // is a collection of NMEA sentences that drives the autopilot. Send that data\n // over the connection\n try {\n JSONObject object;\n object = new JSONObject(r);\n\n // Read the type of this object. We are only interested in NMEANAV\n // messages\n String type = object.getString(\"type\");\n if (type.equals(\"nmeanav\")) {\n\n // Log our intent to the trace window. The data itself was logged in the base object\n Logger.Logit(msgCount++ + \". Sending sentences to \" + mDevName);\n\n // Extract the autopilot sentences from the message\n String apData = object.getString(\"apsentences\");\n if(0 != apData.length()) {\n int wrote = writeToStream(apData.getBytes());\n if (wrote <= 0) {\n if (isStopped()) {\n break;\n }\n try {\n Thread.sleep(1000);\n } catch (Exception ignore) {\n\n }\n\n /*\n * Try to reconnect\n */\n Logger.Logit(\"Disconnected from \" + mDevName + \", retrying to connect\");\n disconnect();\n connect(mDevName, mSecure);\n }\n }\n }\n } catch(Exception ignore) { }\n }\n return null;\n }", "title": "" }, { "docid": "7fd9eda4f8fd93496b201315b4ef9ec5", "score": "0.49674293", "text": "@Override\n\tpublic void onReceiveDisallowStream() {\n\t\t\n\t}", "title": "" }, { "docid": "9c0b2b68508d42a6bca0a8bac4b3a24f", "score": "0.49669197", "text": "void setChannels(Channels channels);", "title": "" }, { "docid": "128ddff4c81f95939fcf2f457f249b75", "score": "0.49614602", "text": "@Override\n\t\t\t\tpublic void onVideoMsg(Msg4Video msg) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "7e0978f643950ee85ad64359e162f097", "score": "0.49507987", "text": "Channels channels();", "title": "" }, { "docid": "11410c8064329dedf158b1ede101c55b", "score": "0.49502966", "text": "public ClientLobbyService(){\n this.channel = MessageConnection.CHANNEL_DEFAULT_RELIABLE;\n }", "title": "" }, { "docid": "bf1ca786524d38a7a211c332148d4a65", "score": "0.4930171", "text": "public void recieveControllerChange(int channel, int number, int value) {\n\n\t}", "title": "" }, { "docid": "0a7ccc2894a7713420c2f15e89dff2df", "score": "0.49189413", "text": "public void listen() {\n\t\tua.printLog(\"UAS: WAITING FOR INCOMING CALL\");\n\n\t\tif (!ua.user_profile.audio && !ua.user_profile.video) {\n\t\t\tua.printLog(\"ONLY SIGNALING, NO MEDIA\");\n\t\t}\n\n\t\tua.listen();\n\n\t}", "title": "" }, { "docid": "a1c65b7bf0e85c07d0acfa73e69eaf62", "score": "0.4916709", "text": "@Override\n\tpublic boolean UpdateStreaming(StreamingVO vo) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "53228d665ad4695f2bd87acd4140e191", "score": "0.49159095", "text": "static void fireChannelRead(ChannelHandlerContext ctx, CodecOutputList msgs, int numElements) {\n/* 309 */ for (int i = 0; i < numElements; i++) {\n/* 310 */ ctx.fireChannelRead(msgs.getUnsafe(i));\n/* */ }\n/* */ }", "title": "" }, { "docid": "cfa6376310ed921b3dedbc472084ba5e", "score": "0.49131852", "text": "@Override\r\n public void onReceive(Object arg0) throws Exception\r\n {\n \r\n }", "title": "" }, { "docid": "b216719311d3d494787cd216e48a1bc0", "score": "0.48733026", "text": "@Override\n\t\t\tpublic void handleMessage(Message msg)\n\t\t\t{\n\n\t\t\t\tswitch (msg.what)\n\t\t\t\t{\n\t\t\t\tcase BROADCAST_HANDLER_ADJUST_VOLUME:\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t}", "title": "" }, { "docid": "436496f12d7370067a61c0eb611f3de4", "score": "0.48713967", "text": "private void broadcastRoutingChange() {\n AudioManager.resetAudioPortGeneration();\n synchronized (mRoutingChangeListeners) {\n for (NativeRoutingEventHandlerDelegate delegate : mRoutingChangeListeners.values()) {\n delegate.notifyClient();\n }\n }\n }", "title": "" }, { "docid": "28d27836a77ea678a66a491b288921cb", "score": "0.48696434", "text": "@Test\n void reActorSystemCanBroadcastToListeners() {\n ReActorConfig reActorConfig = ReActorConfig.newBuilder()\n .setReActorName(\"TR\")\n .setDispatcherName(\"TestDispatcher\")\n .setTypedSubscriptions(TypedSubscription.LOCAL.forType(Message.class))\n .build();\n\n reActorSystem.spawn(new MagicTestReActor(1, true, reActorConfig));\n\n reActorSystem.spawn(new MagicTestReActor(1, true, ReActorConfig.fromConfig(reActorConfig)\n .setReActorName(\"2nd reactor name\")\n .build()));\n\n Message originalMsg = new Message(ReActorRef.NO_REACTOR_REF, ReActorRef.NO_REACTOR_REF, 0x31337,\n reActorSystem.getLocalReActorSystemId(), AckingPolicy.NONE,\n CoreConstants.DE_SERIALIZATION_SUCCESSFUL);\n\n reActorSystem.broadcastToLocalSubscribers(ReActorRef.NO_REACTOR_REF, originalMsg);\n\n Awaitility.await()\n .until(MagicTestReActor.RECEIVED::intValue, CoreMatchers.equalTo(2));\n }", "title": "" }, { "docid": "92f89cb93d2403f903979268cda36338", "score": "0.4862169", "text": "public abstract void setReceivedMessageList();", "title": "" }, { "docid": "30fb4d3b285e63b25c290dc4bccf0fee", "score": "0.48431948", "text": "public static void main(String[] args) throws InterruptedException {\n\t\t\n\t\tServiceInfo serviceInfo;\n\t\tString service_type = \"_grpc._service1.local.\";\n\t\tserviceInfo = SimpleServiceDiscovery.run(service_type);\n\t\tint port = serviceInfo.getPort();\n\t\tString host = \"localhost\";\n\t\t\n\t\t//int port = 50056;\n\t\t\n\t\tManagedChannel newChannel = ManagedChannelBuilder.forAddress(host, port).usePlaintext().build();\n\t\t\n\t\t\t\t\n\t\t//create an asynchronous stub for the client streaming\n\t\tnewServiceStub asyncStub = newServiceGrpc.newStub(newChannel);\n\t\t\n\t\t\n\t\tCountDownLatch latch = new CountDownLatch(1);\n\t\t\n\t\tStreamObserver<confirmation> responseObserver = new StreamObserver<confirmation>() {\n\n\t\t\t@Override\n\t\t\tpublic void onNext(confirmation value) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"Response: \" + value.getConfirmation());\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(Throwable t) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onCompleted() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"Completed\");\n\t\t\t\tlatch.countDown();\n\t\t\t}\n\t\t\t\n\t\t};\n\t\t\n\t\tStreamObserver<paymentDetails> requestObserver = asyncStub.setRecurringPayment(responseObserver);\n\t\t\n\t\tSystem.out.println(\"sending message 1\");\n\t\trequestObserver.onNext(paymentDetails.newBuilder().setName(\"John Doe\").build());\n\t\tSystem.out.println(\"sending message 2\");\n\t\trequestObserver.onNext(paymentDetails.newBuilder().setAccount(\"XXXXXXXXXXXXXXXXXX\").build());\n\t\tSystem.out.println(\"sending message 3\");\n\t\trequestObserver.onNext(paymentDetails.newBuilder().setAmount(540.50).build());\n\t\t\n\t\trequestObserver.onCompleted();\n\t\t\n\t\ttry {\n\t\tlatch.await(3L, TimeUnit.SECONDS);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t//UNARY \n\t\t\n\t\t\n\t\tcancelPayment cPayment = cancelPayment.newBuilder().setCancel(\"test1\").build();\n\t\t\n\t\t//create a blocking stub for the unary rpc\n\t\tnewServiceBlockingStub bstub = newServiceGrpc.newBlockingStub(newChannel);\n\t\t\n\t\t//Calling the server and receiving a response\n\t\t\t\tcancelled response = bstub.cancelRecurringPayment(cPayment);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Requesting cancellation\");\n\t\t\t\tSystem.out.println(response.getCancelled());\n\t\t\t\t\n\t\tThread.sleep(5000);\n\t\t\n\t\tnewChannel.shutdown().awaitTermination(5, TimeUnit.SECONDS);\n\t\t\n\t}", "title": "" }, { "docid": "764f0eaaa2beb7ee798ea3f981f19d4d", "score": "0.4826344", "text": "@Override\r\n\tprotected void processInVideoMsg(InVideoMsg inVideoMsg) {\n\r\n\t}", "title": "" }, { "docid": "95c7159767654d307de13a52a1e55aca", "score": "0.48235554", "text": "public BlaubotServerRelayConnection(final String mediatorUniqueDeviceId, String recipientUniqueDeviceId) {\n super(new BlaubotDevice(recipientUniqueDeviceId));\n /*\n * This connection can read the things written via write() to this connection instance.\n */\n final BlaubotConnectionQueueMock dummyConnection = getOtherEndpointConnection(new BlaubotDevice(\"Internal BlaubotServerRelayConnection DummyDevice \"));\n this.messageReceiver = new BlaubotMessageReceiver(dummyConnection);\n this.messageReceiver.setForwardChunks(true); // we want to just forward junks (not collect them as whole to be chunked again later)\n this.messageReceiver.activate();\n this.messageReceiver.addMessageListener(new IBlaubotMessageListener() {\n @Override\n public void onMessage(BlaubotMessage blaubotMessage) {\n // wrap the message into a relay admin message\n final RelayAdminMessage relayAdminMessage = new RelayAdminMessage(blaubotMessage.toBytes());\n // create a blaubot mesasge from the relay admin message (= blaubot message containing which is a relay admin message, which contains a blaubotmessage ;-))\n final BlaubotMessage msg = relayAdminMessage.toBlaubotMessage();\n// if (!blaubotMessage.getMessageType().isKeepAliveMessage()) {\n// Log.d(LOG_TAG, \"Dispatching ... Sending RelayAdminMessage to mediator: \" + msg);\n// }\n // send it to the mediator\n channelManager.publishToSingleDevice(msg, mediatorUniqueDeviceId);\n }\n });\n this.recipientUniqueDeviceId = recipientUniqueDeviceId;\n this.mediatorUniqueDeviceId = mediatorUniqueDeviceId;\n\n // listener handling (cleanup and wiring)\n channelManager.addAdminMessageListener(this);\n this.addConnectionListener(new IBlaubotConnectionListener() {\n @Override\n public void onConnectionClosed(IBlaubotConnection connection) {\n channelManager.removeAdminMessageListener(BlaubotServerRelayConnection.this);\n }\n });\n\n addConnectionListener(new IBlaubotConnectionListener() {\n @Override\n public void onConnectionClosed(IBlaubotConnection connection) {\n messageReceiver.deactivate(null);\n }\n });\n\n\n }", "title": "" }, { "docid": "96336d68a176cece55f7deed26d2db4e", "score": "0.48179427", "text": "@Override\n public boolean isListening() {\n return false;\n }", "title": "" }, { "docid": "5d2de6144930b076d73b2b4842fb0451", "score": "0.47913882", "text": "public interface ActorInterface {\n\n\tpublic static class RPCSpecification {\n\n\t\tpublic RPCSpecification(String name, RPCMessageDispatcher dispatcher) {\n\t\t\t_name = name;\n\t\t\t_dispatcher = dispatcher;\n\t\t}\n\n\t\tpublic String _name;\n\t\tpublic RPCMessageDispatcher _dispatcher;\n\t}\n\n\tpublic static class AsyncStub {\n\n\t\t// channel through which this stub will \n\t\t// communicate with the target actor\n\t\tprivate Channel _channel;\n\t\t// optional event loop the stub is running in\n\t\tprivate EventLoop _eventLoop;\n\n\t\tpublic AsyncStub(Channel channel, EventLoop optionalEventLoop) {\n\t\t\t_channel = channel;\n\t\t\t_eventLoop = optionalEventLoop;\n\t\t}\n\n\t\t/**\n\t\t * Get the Channel this stub is using to communicate to the Actor \n\t\t * @return Channel\n\t\t */\n\t\tpublic Channel getChannel() {\n\t\t\treturn _channel;\n\t\t}\n\n\t\t/**\n\t\t * Get the EventLoop this stub is running in\n\t\t * @return EventLoop\n\t\t */\n\t\tpublic EventLoop getEventLoop() {\n\t\t\treturn _eventLoop;\n\t\t}\n\t}\n\n\tpublic static class BlockingStub<StubType extends AsyncStub> {\n\n\t\t/** default RPC Timeout **/\n\t\tprivate static final int DEFAULT_RPC_TIMEOUT = 60000;\n\n\t\tprivate StubType _asyncStub;\n\t\tprivate int _rpcTimeout = DEFAULT_RPC_TIMEOUT;\n\n\t\tpublic StubType getAsyncStub() {\n\t\t\treturn _asyncStub;\n\t\t}\n\n\t\tpublic void setRPCTimeout(int milliseconds) {\n\t\t\t_rpcTimeout = milliseconds;\n\t\t}\n\n\t\tpublic int getRPCTimeout() {\n\t\t\treturn _rpcTimeout;\n\t\t}\n\n\t\tpublic BlockingStub(StubType asyncStub) {\n\t\t\t_asyncStub = asyncStub;\n\t\t}\n\n\t\tprotected boolean waitForResult(CountDownLatch latch) throws IOException {\n\n\t\t\tEventLoop sourceEventLoop = _asyncStub.getEventLoop();\n\n\t\t\t// if called from event thread ...\n\t\t\tif (sourceEventLoop != null && Thread.currentThread() == sourceEventLoop.getEventThread()) {\n\t\t\t\t// pump events until timeout is reached\n\n\t\t\t\tlong timeoutTime = System.currentTimeMillis() + getRPCTimeout();\n\n\t\t\t\tdo {\n\t\t\t\t\tsourceEventLoop.waitForIO(1);\n\t\t\t\t} while (latch.getCount() == 1 || System.currentTimeMillis() >= timeoutTime);\n\t\t\t} else {\n\t\t\t\ttry {\n\t\t\t\t\tlatch.await(getRPCTimeout(), TimeUnit.MILLISECONDS);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// Should never happen ... ?\n\t\t\t\t\t// TODO: IGNORE OR THROW RUNTIME EXCEPTION ?\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn latch.getCount() == 0;\n\t\t}\n\t}\n\n}", "title": "" }, { "docid": "3aef6d3d61f312b2e0d404c16830e1d0", "score": "0.47856826", "text": "@Override\n public void run() {\n\n // A local copy of the connection to be thread-safe\n Connection daemon = connection;\n\n if (daemon != null) logger.fine(\"The receiver thread for daemon messages is started.\");\n\n try {\n while (daemon != null && !interrupted()) {\n\n JsonObject message = daemon.receive();\n JsonObject arguments = message.get(JsonInterface.ARGUMENTS).asObject();\n JsonInterface json = new JsonInterface();\n\n // Interpret the received message and create an answer.\n switch (message.get(JsonInterface.TYPE).asString()) {\n case JsonInterface.ACCEPTED:\n returnAnswer(new Answer(true));\n break;\n\n case JsonInterface.BUFFER_CONFIGURATION:\n returnAnswer(new Answer(json.configurationFromJSON(arguments.get(JsonInterface.CONFIGURATION).asObject())));\n break;\n\n case JsonInterface.BUFFER_METAINFO:\n BufferDescription description = new BufferDescription(arguments.get(JsonInterface.NAME).asString(),\n arguments.get(JsonInterface.IS_HARDWARE).asBoolean(),\n json.metainfoFromJSON(arguments.get(JsonInterface.METAINFO).asArray()));\n returnAnswer(new Answer(description));\n break;\n\n case JsonInterface.BUFFER_NAMES:\n Set<String> names = new TreeSet<>();\n for (JsonValue name : arguments.get(JsonInterface.NAME).asArray().values()) {\n names.add(name.asString());\n }\n returnAnswer(new Answer(names));\n break;\n\n case JsonInterface.DISCONNECT:\n disconnectImmediately();\n break;\n\n case JsonInterface.REJECTED:\n returnAnswer(new Answer(false));\n break;\n\n case JsonInterface.PUSH:\n\n JsonValue value = arguments.get(JsonInterface.VALUE);\n SimpleData data = new SimpleData(arguments.get(JsonInterface.NAME).asString(),\n new Date(arguments.get(JsonInterface.TIMESTAMP).asLong()),\n BufferState.valueOf(arguments.get(JsonInterface.STATE).asString()),\n value == null ? null : value.asDouble());\n if (arguments.get(JsonInterface.SPONTANEOUS).asBoolean()) valueChangeDistributorQueue.put(data);\n else returnAnswer(new Answer(data));\n break;\n\n default:\n handleProtocolViolation();\n break;\n }\n\n daemon = connection;\n }\n }\n catch (InterruptedException e) {\n // This is a shutdown!\n interrupt();\n }\n catch (Exception e) {\n\n // An understandable exception, if the connection was closed.\n if (connection != null && connection.isConnected()) handleCommunicationError(e);\n }\n\n logger.fine(\"The receiver thread terminates now.\");\n }", "title": "" }, { "docid": "715fb7a46158a6cad225634a5a94bd2c", "score": "0.4777046", "text": "static void fireChannelRead(ChannelHandlerContext ctx, List<Object> msgs, int numElements) {\n/* 296 */ if (msgs instanceof CodecOutputList) {\n/* 297 */ fireChannelRead(ctx, (CodecOutputList)msgs, numElements);\n/* */ } else {\n/* 299 */ for (int i = 0; i < numElements; i++) {\n/* 300 */ ctx.fireChannelRead(msgs.get(i));\n/* */ }\n/* */ } \n/* */ }", "title": "" }, { "docid": "d3ba18b18d6daff4279ce17dad4b3dc0", "score": "0.47732487", "text": "void setChannel(Channel channel);", "title": "" }, { "docid": "da606fd301d67325b3d5330e6f94a06f", "score": "0.477159", "text": "public void update() {\r\n\t\tif (rawChSrv != null) {\r\n\t\t\tList<ChannelInfo> rawList;\r\n\t\t\ttry {\r\n\t\t\t\tlock.writeLock().lock();\r\n\t\t\t\tfor (TVChannelList cl : listTable.values()) {\r\n\t\t\t\t\tcl.onClear();\r\n\t\t\t\t}\r\n\t\t\t\tfor (TVChannel ch : channelSet) {\r\n\t\t\t\t\tch.invalid();\r\n\t\t\t\t}\r\n\t\t\t\tchannelSet.clear();\r\n\r\n\t\t\t\trawList = rawChSrv.getChannelList(ChannelCommon.DB_ANALOG);\r\n\t\t\t\tfor (ChannelInfo rawInfo : rawList) {\r\n\t\t\t\t\tTVChannel ch = new TVChannel(this, rawInfo);\r\n\t\t\t\t\taddChannel(ch, null);\r\n\t\t\t\t}\r\n\t\t\t\tlock.writeLock().unlock();\r\n\r\n\t\t\t} catch (TVMException 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\tgetContent().sendUpdate();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b75c4a27624df166456d891307384563", "score": "0.4767576", "text": "private void updateMusicStreamingChannel() {\n\n\t\t// 4 is for FM.\n if ( mPconf.GetIntParam( PConfParameters.ACM_AudioPath_Mp3, 0 ) == 4 ) {\n // stream a2dp directly through FM modulator\n mLogger.i( \"A2DP audio will be sent directly to FM transmitter\" );\n btA2dp.setA2dpAudioPath(1);\n } else {\n // Stream a2dp through the audio flinger\n mLogger.i( \"A2DP audio will be sent through Audio Flinger\" );\n btA2dp.setA2dpAudioPath(0);\n }\n }", "title": "" }, { "docid": "607f89f99a4862306cef292285c92ccd", "score": "0.47666642", "text": "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception {\n\t}", "title": "" }, { "docid": "78cb9aac391f12fa39a41c5b081293c2", "score": "0.4753254", "text": "public static void main(String[] args) {\n System.setProperty(\"reactor.bufferSize.x\", \"9\");\n\n //delayElements sits in the middle between the\n // subscriber and the publisher to regulate the amount of items being emitted through duration\n Flux.range(1, 100)\n .log()\n .delayElements(Duration.ofSeconds(1))\n .subscribe(Utils.getSubscriber(\"\"));\n\n //Display Elements also uses LimitRateInternally.\n\n Utils.sleepSeconds(120);\n\n\n }", "title": "" }, { "docid": "068a8711ba610c96a00ffd8cac85424d", "score": "0.4752915", "text": "private void unSubscribeFromChannels(Socket.Channel channel) {\n channel.unsubscribe((name, error, data) -> {\n if (error != null && error instanceof JSONObject) {\n String errorName = getGeneralFunc().getJsonValueStr(\"name\", (JSONObject) error);\n if (!errorName.equals(\"BrokerError\")) {\n unSubscribeFromChannels(channel);\n }\n } else {\n// Logger.d(\"SocketApp\", \"ChannelUnSub.Success::\" + channel.getChannelName());\n if (channel.getChannelName().contains(\"CAB_REQUEST_DRIVER_\")) {\n\n }\n }\n });\n }", "title": "" }, { "docid": "6d699c6526d82bcb59e17da573e64c1c", "score": "0.47498602", "text": "protected void helloMessageFifo() throws Exception{\r\n\t\tsendMsg(\"info\", getName(), ActorContext.dispatch, \"'hello from myself'\");\r\n\t\tString msg = receiveMsg(); //blocking\r\n\t\tprintln(\"helloMessageFifo:\"+msg);\r\n\t}", "title": "" }, { "docid": "b0c472efe8a92e64ed089eac924ef4a3", "score": "0.47418854", "text": "public static void main(String[] args)\r\n {\r\n Server upaSrvr = null;\r\n\r\n boolean clientAccepted = false;\r\n\r\n /* Create initialization arguments (InitArgs) to specify any initialization options for Transport */\r\n InitArgs initArgs = TransportFactory.createInitArgs();\r\n\r\n /* Create error to keep track of any errors that may occur in Transport methods */\r\n Error error = TransportFactory.createError();\r\n\r\n /* For this simple training app, the interactive provider only supports a single client. If the consumer disconnects,\r\n * the interactive provider would simply exit.\r\n *\r\n * If you want the provider to support multiple client sessions at the same time, you need to implement support\r\n * for multiple client sessions feature similar to what Provider example is doing.\r\n */\r\n /* Create a channel to keep track of connection */\r\n Channel channel = null;\r\n\r\n /* Create channel info as a holder */\r\n ChannelInfo channelInfo = TransportFactory.createChannelInfo();\r\n\r\n TransportBuffer msgBuf = null;\r\n\r\n long currentTime = 0;\r\n long upaRuntime = 0;\r\n long runTime = 0;\r\n\r\n /* Create decode iterator to decode the contents of the buffer */\r\n DecodeIterator decodeIter = CodecFactory.createDecodeIterator();\r\n\r\n /* Create an I/O notification mechanism (a Selector in our case) for our channel */\r\n Selector selector = null;\r\n\r\n /* Create and populate binding options to specify listening socket preferences */\r\n BindOptions bindOpts = TransportFactory.createBindOptions();\r\n\r\n /* Create accept options to specify any options for accepting */\r\n AcceptOptions acceptOpts = TransportFactory.createAcceptOptions();\r\n\r\n /* Create initialization progress info (InProgInfo) to keep track of channel initialization with Channel.init() */\r\n InProgInfo inProgInfo = TransportFactory.createInProgInfo();\r\n\r\n /* Create a bit mask to specify what I/O notification operations to keep track of (e.g. ACCEPT)*/\r\n short opMask = 0;\r\n\r\n /* Max waiting time */\r\n final int timeOutSeconds = 60;\r\n\r\n int retCode;\r\n\r\n /* the default option parameters */\r\n /* server is running on port number 14002 */\r\n String srvrPortNo = \"14002\";\r\n /* use default runTime of 300 seconds */\r\n runTime = 300;\r\n\r\n /* User specifies options such as address, port, and interface from the command line.\r\n * User can have the flexibility of specifying any or all of the parameters in any order.\r\n */\r\n if (args.length > 0)\r\n {\r\n int i = 0;\r\n\r\n while (i < args.length)\r\n {\r\n\r\n if ((args[i].equals(\"-p\")) == true)\r\n {\r\n i += 2;\r\n srvrPortNo = args[i - 1];\r\n }\r\n else if ((args[i].equals(\"-r\")) == true)\r\n {\r\n i += 2;\r\n runTime = Integer.parseInt(args[i - 1]);\r\n }\r\n else\r\n {\r\n System.out.printf(\"Error: Unrecognized option: %s\\n\\n\", args[i]);\r\n System.out.printf(\"Usage: %s or\\n%s [-p <SrvrPortNo>] [-r <runTime>]\\n\", args[0], args[0]);\r\n System.exit(TransportReturnCodes.FAILURE);\r\n }\r\n }\r\n }\r\n\r\n /**************************************************************************************************\r\n * INITIALIZATION\r\n **************************************************************************************************/\r\n /*********************************************************\r\n * Server/Provider Application Life Cycle Major Step 1: Initialize UPA\r\n * Transport using Initialize The first UPA Transport function that an\r\n * application should call. This creates and initializes internal memory\r\n * and structures, as well as performing any bootstrapping for\r\n * underlying dependencies. The Initialize function also allows the user\r\n * to specify the locking model they want applied to the UPA Transport.\r\n *********************************************************/\r\n\r\n if (Transport.initialize(initArgs, error) != TransportReturnCodes.SUCCESS)\r\n {\r\n System.out.printf(\"Error (%d) (errno: %d) %s\\n\", error.errorId(), error.sysError(), error.text());\r\n System.exit(TransportReturnCodes.FAILURE);\r\n }\r\n\r\n currentTime = System.currentTimeMillis();\r\n upaRuntime = currentTime + runTime * 1000;\r\n\r\n /* populate bind options, then pass to Bind function -\r\n * UPA Transport should already be initialized\r\n */\r\n /* Set bind options */\r\n bindOpts.serviceName(srvrPortNo); /* server is running on default port number 14002 */\r\n bindOpts.pingTimeout(60); /* servers desired ping timeout is 60 seconds, pings should be sent every 20 */\r\n bindOpts.minPingTimeout(30); /* min acceptable ping timeout is 30 seconds, pings should be sent every 10 */\r\n\r\n /* set up buffering, configure for shared and guaranteed pools */\r\n bindOpts.guaranteedOutputBuffers(1000);\r\n bindOpts.maxOutputBuffers(2000);\r\n bindOpts.sharedPoolSize(50000);\r\n bindOpts.sharedPoolLock(true);\r\n\r\n bindOpts.serverBlocking(false); /* perform non-blocking I/O */\r\n bindOpts.channelsBlocking(false); /* perform non-blocking I/O */\r\n bindOpts.compressionType(CompressionTypes.NONE); /* server does not desire compression for this connection */\r\n\r\n /* populate version and protocol with RWF information (found in Iterators.h) or protocol specific info */\r\n bindOpts.protocolType(Codec.protocolType()); /* Protocol type definition for RWF */\r\n bindOpts.majorVersion(Codec.majorVersion());\r\n bindOpts.minorVersion(Codec.minorVersion());\r\n /**************************************************************************************************\r\n * Bind and receive a server\r\n **************************************************************************************************/\r\n /* Bind UPA server */\r\n if ((upaSrvr = Transport.bind(bindOpts, error)) == null)\r\n {\r\n System.out.printf(\"Error (%d) (errno: %d) encountered with Bind. Error Text: %s\\n\", error.errorId(), error.sysError(), error.text());\r\n /* End application, uninitialize to clean up first */\r\n Transport.uninitialize();\r\n System.exit(TransportReturnCodes.FAILURE);\r\n }\r\n\r\n System.out.printf(\"Server bound on port %d\\n\", upaSrvr.portNumber());\r\n\r\n opMask |= SelectionKey.OP_ACCEPT;\r\n\r\n /* Register our channel to the selector and watch for I/O notifications specified by our operation mask */\r\n try\r\n {\r\n selector = Selector.open();\r\n upaSrvr.selectableChannel().register(selector, opMask, upaSrvr);\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.printf(\"Exception %s\\n\", e.getMessage());\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n\r\n SelectionKey key = null;\r\n Set<SelectionKey> selectedKeys = null;\r\n Iterator<SelectionKey> keyIter = null;\r\n\r\n /**************************************************************************************************\r\n * MAIN LOOP - Listen for connection requests until we accept a client\r\n **************************************************************************************************/\r\n /* Main Loop #1 for detecting incoming client connections. */\r\n while (!clientAccepted)\r\n {\r\n /* Wait for any I/O notification updates in the channel for our specified amt of seconds (e.g. 60 sec.)*/\r\n try\r\n {\r\n selector.select(timeOutSeconds * 1000);\r\n /* Create an iterator from the selector's updated channels*/\r\n selectedKeys = selector.selectedKeys();\r\n keyIter = selectedKeys.iterator();\r\n\r\n /* If our channel has been updated */\r\n if (keyIter.hasNext())\r\n {\r\n /* Check if channel is ACCEPT-able */\r\n key = upaSrvr.selectableChannel().keyFor(selector);\r\n if (key.isAcceptable())\r\n {\r\n acceptOpts.nakMount(false);\r\n\r\n /*****************************************\r\n * Step 3) Accept the connection request *\r\n *****************************************/\r\n /*********************************************************\r\n * Server/Provider Application Life Cycle Major Step 3:\r\n * Accept connection using Accept This step is performed\r\n * per connected client/connection/channel Uses the\r\n * Server that represents the listening socket\r\n * connection and begins the accepting process for an\r\n * incoming connection request. Returns an Channel that\r\n * represents the client connection. In the event of an\r\n * error, null is returned and additional information\r\n * can be found in the Error structure. The Accept\r\n * function can also begin the rejection process for a\r\n * connection through the use of the AcceptOptions\r\n * structure. Once a connection is established and\r\n * transitions to the ACTIVE state, this Channel can be\r\n * used for other transport operations.\r\n *********************************************************/\r\n /* An OMM Provider application can begin the connection accepting or rejecting process by using the Accept function */\r\n if ((channel = upaSrvr.accept(acceptOpts, error)) == null)\r\n {\r\n System.out.printf(\"Error (%d) (errno: %d): %s\\n\", error.errorId(), error.sysError(), error.text());\r\n Transport.uninitialize();\r\n }\r\n\r\n else\r\n {\r\n /* For this simple training app, the interactive provider only supports one client session from the consumer. */\r\n System.out.printf(\"New client on channel!\\n\");\r\n /*set clientAccepted to be TRUE and exit the while Main Loop #1*/\r\n clientAccepted = true;\r\n }\r\n }\r\n }\r\n }\r\n catch (IOException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n /* Keep track of READ notifications */\r\n opMask = SelectionKey.OP_READ;\r\n\r\n /*****************************************************************************************\r\n * Loop 2) Keep calling Channel.init() until it has properly connected\r\n * us to the server *\r\n *****************************************************************************************/\r\n /* Main Loop #2 for getting connection active and successful completion of the initialization process\r\n * Currently, the main loop would exit if an error condition is triggered \r\n */\r\n while (channel.state() != ChannelState.ACTIVE)\r\n {\r\n /* Register our channel to the selector and watch for I/O notifications specified by our operation mask */\r\n try\r\n {\r\n channel.selectableChannel().register(selector, opMask, channel);\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.printf(\"Exception: %s\\n\", e.getMessage());\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n\r\n /* Wait for any I/O notification updates in the channel for our specified amt of seconds (e.g. 60 sec.)*/\r\n try\r\n {\r\n selector.select(timeOutSeconds * 1000);\r\n /* Create an iterator from the selector's updated channels*/\r\n selectedKeys = selector.selectedKeys();\r\n keyIter = selectedKeys.iterator();\r\n\r\n /* If our channel has not updated, we must have timed out */\r\n if (!keyIter.hasNext())\r\n {\r\n System.out.printf(\"Channel initialization has timed out.\\n\");\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n else\r\n {\r\n /* Check if channel is READ-able */\r\n key = channel.selectableChannel().keyFor(selector);\r\n if (key.isReadable())\r\n {\r\n /****************************************************************************\r\n * Step 4) Call Channel.init() to progress channel\r\n * initialization further. * * This method is called\r\n * multiple times throughout the Loop 2, as it makes *\r\n * more progress towards channel initialization. *\r\n ***************************************************************************/\r\n /* Internally, the UPA initialization process includes several actions. The initialization includes\r\n * any necessary UPA connection handshake exchanges, including any HTTP or HTTPS negotiation.\r\n * Compression, ping timeout, and versioning related negotiations also take place during the\r\n * initialization process. This process involves exchanging several messages across the connection,\r\n * and once all message exchanges have completed the Channel.state will transition. If the connection\r\n * is accepted and all types of negotiations completed properly, the Channel state will become\r\n * ACTIVE. If the connection is rejected, either due to some kind of negotiation failure\r\n * or because an Server rejected the connection by setting nakMount to true, the Channel state\r\n * will become CLOSED.\r\n *\r\n * Note:\r\n * For both client and server channels, more than one call to InitChannel can be required to complete\r\n * the channel initialization process.\r\n */\r\n if ((retCode = channel.init(inProgInfo, error)) < TransportReturnCodes.SUCCESS)\r\n {\r\n System.out.printf(\"Error (%d) (errno: %d): %s\\n\", error.errorId(), error.sysError(), error.text());\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n\r\n /* Handle return code appropriately */\r\n switch (retCode)\r\n {\r\n case TransportReturnCodes.CHAN_INIT_IN_PROGRESS:\r\n {\r\n /* Initialization is still in progress, check the InProgInfo for additional information */\r\n if (inProgInfo.flags() == InProgFlags.SCKT_CHNL_CHANGE)\r\n {\r\n /* The InitChannel function requires the use of an additional parameter, a InProgInfo structure.\r\n * Under certain circumstances, the initialization process may be required to create new or additional underlying connections.\r\n * If this occurs, the application is required to unregister the previous socketId and register the new socketId with\r\n * the I/O notification mechanism being used. When this occurs, the information is conveyed by the InProgInfo and the InProgFlags.\r\n *\r\n * SCKT_CHNL_CHANGE indicates that a socketId change has occurred as a result of this call. The previous socketId has been\r\n * stored in InProgInfo.oldSocket so it can be unregistered with the I/O notification mechanism.\r\n * The new socketId has been stored in InProgInfo.newSocket so it can be registered with the\r\n * I/O notification mechanism. The channel initialization is still in progress and subsequent calls\r\n * to InitChannel are required to complete it.\r\n */\r\n opMask = SelectionKey.OP_READ;\r\n System.out.printf(\"Channel switch, NEW: %d OLD %d\\n\", channel.selectableChannel(), channel.oldSelectableChannel());\r\n try\r\n {\r\n key = inProgInfo.oldSelectableChannel().keyFor(selector);\r\n key.cancel();\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.printf(\"Exception: %s\\n\", e.getMessage());\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n try\r\n {\r\n channel.selectableChannel().register(selector, opMask, channel);\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.printf(\"Exception: %s\\n\", e.getMessage());\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n }\r\n else\r\n {\r\n System.out.printf(\"Channel init in progress...\\n\");\r\n }\r\n }\r\n break;\r\n /* channel connection becomes active!\r\n * Once a connection is established and transitions to the ACTIVE state,\r\n * this Channel can be used for other transport operations.\r\n */\r\n case TransportReturnCodes.SUCCESS:\r\n {\r\n System.out.printf(\"Channel is now active! Reading and writing can begin!\\n\");\r\n /*********************************************************\r\n * Connection is now active. The Channel can be\r\n * used for all additional transport\r\n * functionality (e.g. reading, writing) now\r\n * that the state transitions to ACTIVE\r\n *********************************************************/\r\n\r\n /* After channel is active, use UPA Transport utility function GetChannelInfo to query Channel negotiated\r\n * parameters and settings and retrieve all current settings. This includes maxFragmentSize and negotiated\r\n * compression information as well as many other values.\r\n */\r\n\r\n /* Populate information from channel */\r\n if ((retCode = channel.info(channelInfo, error)) != TransportReturnCodes.SUCCESS)\r\n {\r\n System.out.printf(\"Error (%d) (errno: %d) encountered with channel.info. Error Text: %s\\n\", error.errorId(), error.sysError(), error.text());\r\n /* Connection should be closed, return failure */\r\n /* Closes channel, closes server, cleans up and exits the application. */\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n\r\n /* Print out basic channel info */\r\n System.out.printf(\"\\nChannel Info:\\n\" + \"Max Fragment Size: %d\\n\" + \"Max Output Buffers: %d, %d Guaranteed\\n\" + \"Input Buffers: %d\\n\" + \"Send/Receive Buffer Sizes: %d/%d\\n\" + \"Ping Timeout: %d\\n\",\r\n channelInfo.maxFragmentSize(), /* This is the max fragment size before fragmentation and reassembly is necessary. */\r\n channelInfo.maxOutputBuffers(), /* This is the maximum number of output buffers available to the channel. */\r\n channelInfo.guaranteedOutputBuffers(), /* This is the guaranteed number of output buffers available to the channel. */\r\n channelInfo.numInputBuffers(), /* This is the number of input buffers available to the channel. */\r\n channelInfo.sysSendBufSize(), /* This is the systems Send Buffer size. This reports the systems send buffer size respective to the transport type being used (TCP, UDP, etc) */\r\n channelInfo.sysRecvBufSize(), /* This is the systems Receive Buffer size. This reports the systems receive buffer size respective to the transport type being used (TCP, UDP, etc) */\r\n channelInfo.pingTimeout()); /* This is the value of the negotiated ping timeout */\r\n int count = channelInfo.componentInfo().size();\r\n if (count == 0)\r\n System.out.printf(\"(No component info)\");\r\n else\r\n {\r\n for (int i = 0; i < count; ++i)\r\n {\r\n System.out.println(channelInfo.componentInfo().get(i).componentVersion());\r\n if (i < count - 1)\r\n System.out.printf(\", \");\r\n }\r\n }\r\n\r\n System.out.printf(\"\\n\\n\");\r\n\r\n /*********************************************************\r\n * Server/Provider Application Life Cycle Major\r\n * Step 7: Closes a listening socket associated\r\n * with an Server. This will release any pool\r\n * based resources back to their respective\r\n * pools, close the listening socket, and\r\n * perform any additional necessary cleanup. Any\r\n * established connections will remain open,\r\n * allowing for continued information exchange.\r\n *********************************************************/\r\n\r\n /* clean up server using CloseServer call.\r\n * If a server is being shut down, the CloseServer function should be used to close the listening socket and perform\r\n * any necessary cleanup. All currently connected Channels will remain open. This allows applications to continue\r\n * to send and receive data, while preventing new applications from connecting. The server has the option of calling\r\n * CloseChannel to shut down any currently connected applications.\r\n * When shutting down the UPA Transport, the application should release any unwritten pool buffers.\r\n * The listening socket can be closed by calling CloseServer. This prevents any new connection attempts.\r\n * If shutting down connections for all connected clients, the provider should call CloseChannel for each connection client.\r\n */\r\n if ((upaSrvr == null) & (upaSrvr.close(error) < TransportReturnCodes.SUCCESS))\r\n {\r\n System.out.printf(\"Error (%d) (errno: %d) encountered with CloseServer. Error Text : %s\\n\", error.errorId(), error.sysError(), error.text());\r\n\r\n /* End application, uninitialize to clean up first */\r\n Transport.uninitialize();\r\n System.exit(TransportReturnCodes.FAILURE);\r\n }\r\n\r\n /*set upaSrvr to be null*/\r\n upaSrvr = null;\r\n }\r\n break;\r\n default: /* Error handling */\r\n {\r\n System.out.printf(\"Unexpected init return code: %d\\n\", retCode);\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n catch (IOException e1)\r\n {\r\n e1.printStackTrace();\r\n }\r\n }\r\n\r\n /* Keep track of READ notifications */\r\n opMask |= SelectionKey.OP_READ;\r\n\r\n /* Initialize ping management handler */\r\n initPingManagement(channel);\r\n\r\n /****************************************************\r\n * Loop 3) Check ping operations until runtime ends *\r\n ****************************************************/\r\n /* Here were are using a new Main loop #3. An alternative design would be to combine this Main loop #3 (message processing)\r\n * with the other 2 earlier Main loops, namely, Main Loop #1 (detecting incoming client connections), and\r\n * Main Loop #2 (getting connection active and successful completion of the initialization process) as a single provider Main Loop.\r\n * Some bookkeeping would be required for that approach.\r\n */\r\n\r\n /* Main Loop #3 for message processing (reading data, writing data, and ping management, etc.)\r\n * The only way to exit this Main loop is when an error condition is triggered or after\r\n * a predetermined run-time has elapsed.\r\n */\r\n while (true)\r\n {\r\n /* Register our channel to the selector and watch for I/O notifications specified by our operation mask */\r\n try\r\n {\r\n channel.selectableChannel().register(selector, opMask, channel);\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.printf(\"Exception %s\\n\", e.getMessage());\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n\r\n /* Wait 1 second for any I/O notification updates in the channel */\r\n try\r\n {\r\n selector.select(1000);\r\n selectedKeys = selector.selectedKeys();\r\n keyIter = selectedKeys.iterator();\r\n\r\n /* If our channel has been updated */\r\n if (keyIter.hasNext())\r\n {\r\n /* Check if channel is READ-able */\r\n key = channel.selectableChannel().keyFor(selector);\r\n if (key.isReadable())\r\n {\r\n /* Initialize to a positive value for retCode in case we have more data that is available to read */\r\n retCode = 1;\r\n\r\n /******************************************************\r\n * Loop 4) Read and decode for all buffers in channel *\r\n ******************************************************/\r\n while (retCode > TransportReturnCodes.SUCCESS)\r\n {\r\n /* Create read arguments (ReadArgs) to keep track of the statuses of any reads */\r\n ReadArgs readArgs = TransportFactory.createReadArgs();\r\n\r\n /**************************************************\r\n * Step 5) Read message from channel into buffer *\r\n **************************************************/\r\n msgBuf = channel.read(readArgs, error);\r\n\r\n if (msgBuf != null)\r\n {\r\n /* if a buffer is returned, we have data to process and code is success */\r\n\r\n /* Processes a response from the channel/connection. This consists of performing a high level decode of the message and then\r\n * calling the applicable specific function for further processing.\r\n */\r\n\r\n /* No need to clear the message before we decode into it. UPA Decoding populates all message members (and that is true for any\r\n * decoding with UPA, you never need to clear anything but the iterator)\r\n */\r\n /* We have data to process */\r\n /* Create message to represent buffer data */\r\n Msg msg = CodecFactory.createMsg();\r\n\r\n /* This ClearDecodeIterator clear iterator function should be used to achieve the best performance while clearing the iterator. */\r\n /* Clears members necessary for decoding and readies the iterator for reuse. You must clear DecodeIterator\r\n * before decoding content. For performance purposes, only those members required for proper functionality are cleared.\r\n */\r\n decodeIter.clear();\r\n /* Set the RWF version to decode with this iterator */\r\n int ret = decodeIter.setBufferAndRWFVersion(msgBuf, channel.majorVersion(), channel.minorVersion());\r\n /* Associates the DecodeIterator with the Buffer from which to decode. */\r\n if ((ret) != CodecReturnCodes.SUCCESS)\r\n {\r\n System.out.printf(\"\\nSetDecodeIteratorBuffer() failed with return code: %d\\n\", ret);\r\n /* Closes channel, closes server, cleans up and exits the application. */\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n /******************************************\r\n * Step 6) Decode buffer message *\r\n ******************************************/\r\n /* decode contents into the Msg structure */\r\n if ((retCode = msg.decode(decodeIter)) != CodecReturnCodes.SUCCESS)\r\n {\r\n System.out.printf(\"Error (%d) (errno: %d): %s\\n\", error.errorId(), error.sysError(), error.text());\r\n /* Closes channel, closes server, cleans up and exits the application. */\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n\r\n /* Deduce an action based on the domain type of the message */\r\n switch (msg.domainType())\r\n {\r\n /* (1) Login Message */\r\n case DomainTypes.LOGIN:\r\n {\r\n\r\n }\r\n break;\r\n default: /* Error handling */\r\n {\r\n System.out.printf(\"Unhandled Domain Type: %d\\n\", msg.domainType());\r\n }\r\n break;\r\n }\r\n\r\n /* Acknowledge that a ping has been received */\r\n /* set flag for server message received */\r\n receivedClientMsg = true;\r\n System.out.printf(\"Ping message has been received successfully from the client due to data message ...\\n\\n\");\r\n }\r\n else\r\n {\r\n /* Deduce an action from the return code of Channel.read() */\r\n retCode = readArgs.readRetVal();\r\n /* keep track of the return values from read so data is not stranded in the input buffer.\r\n * Handle return codes appropriately, not all return values are failure conditions\r\n */\r\n switch (retCode)\r\n {\r\n /* Acknowledge that a ping has been received */\r\n case TransportReturnCodes.READ_PING:\r\n /* Update ping monitor */\r\n /* set flag for server message received */\r\n receivedClientMsg = true;\r\n System.out.printf(\"Ping message has been received successfully from the client due to ping message ...\\n\\n\");\r\n break;\r\n\r\n /* Switch to a new channel if required */\r\n case TransportReturnCodes.READ_FD_CHANGE:\r\n opMask = SelectionKey.OP_READ;\r\n System.out.printf(\"Channel switch, NEW: %d OLD %d\\n\", channel.selectableChannel(), channel.oldSelectableChannel());\r\n try\r\n {\r\n key = channel.selectableChannel().keyFor(selector);\r\n key.cancel();\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.printf(\"Exception %s\\n\", e.getMessage());\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n try\r\n {\r\n channel.selectableChannel().register(selector, opMask, channel);\r\n }\r\n catch (Exception e)\r\n {\r\n System.out.printf(\"Exception %s\\n\", e.getMessage());\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n break;\r\n\r\n case TransportReturnCodes.READ_WOULD_BLOCK:\r\n /* Nothing to read */\r\n break;\r\n case TransportReturnCodes.READ_IN_PROGRESS:\r\n /* Reading from multiple threads */\r\n break;\r\n case TransportReturnCodes.INIT_NOT_INITIALIZED:\r\n case TransportReturnCodes.FAILURE:\r\n System.out.printf(\"Error (%d) (errno: %d) channelInactive Error Text: %s\\n\", error.errorId(), error.sysError(), error.text());\r\n default: /* Error handling */\r\n if (retCode < 0)\r\n {\r\n System.out.printf(\"Error (%d) (errno: %d) encountered with Read Error Text: %s\\n\", error.errorId(), error.sysError(), error.text());\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n key = channel.selectableChannel().keyFor(selector);\r\n if (key.isWritable())\r\n {\r\n retCode = TransportReturnCodes.FAILURE;\r\n\r\n if ((retCode = channel.flush(error)) > TransportReturnCodes.SUCCESS)\r\n {\r\n /* There is still data left to flush, leave our write notification enabled so we get called again.\r\n * If everything wasn't flushed, it usually indicates that the TCP output buffer cannot accept more yet \r\n */\r\n }\r\n else\r\n {\r\n switch (retCode)\r\n {\r\n case TransportReturnCodes.SUCCESS:\r\n {\r\n /* Everything has been flushed, no data is left to send - unset/clear write fd notification */\r\n key = channel.selectableChannel().keyFor(selector);\r\n try\r\n {\r\n channel.selectableChannel().register(selector, key.interestOps() - SelectionKey.OP_WRITE, channel);\r\n }\r\n catch (ClosedChannelException e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n break;\r\n case TransportReturnCodes.FAILURE:\r\n default: /* Error handling */\r\n {\r\n System.out.printf(\"Error (%d) (errno: %d): %s\\n\", error.errorId(), error.sysError(), error.text());\r\n /* Connection should be closed, return failure */\r\n /* Closes channel/connection, cleans up and exits the application. */\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n /* Processing ping management handler */\r\n if ((retCode = processPingManagementHandler(channel, selector)) > TransportReturnCodes.SUCCESS)\r\n {\r\n /* There is still data left to flush, leave our write notification enabled so we get called again.\r\n * If everything wasn't flushed, it usually indicates that the TCP output buffer cannot accept more yet\r\n */\r\n\r\n /* set write if there's still other data queued */\r\n /* flush is done by application */\r\n opMask |= SelectionKey.OP_WRITE;\r\n }\r\n else if (retCode < TransportReturnCodes.SUCCESS)\r\n {\r\n /* Closes channel, cleans up and exits the application. */\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.FAILURE);\r\n }\r\n\r\n /* get current time */\r\n currentTime = System.currentTimeMillis();\r\n\r\n /* If the runtime has expired */\r\n if (System.currentTimeMillis() >= upaRuntime)\r\n {\r\n /* Closes all streams for the Interactive Provider after run-time has elapsed in our simple Interactive Provider example.\r\n * If the provider application must shut down, it can either leave consumer connections intact or shut them down. If the provider\r\n * decides to close consumer connections, the provider should send an StatusMsg on each connection's Login stream closing the stream.\r\n * At this point, the consumer should assume that its other open streams are also closed.\r\n */\r\n /* flush before exiting */\r\n key = channel.selectableChannel().keyFor(selector);\r\n if (key.isWritable())\r\n {\r\n retCode = 1;\r\n\r\n /******************************************************\r\n * Loop 5) Flush all remaining buffers to channel *\r\n ******************************************************/\r\n while (retCode > TransportReturnCodes.SUCCESS)\r\n {\r\n retCode = channel.flush(error);\r\n }\r\n if (retCode < TransportReturnCodes.SUCCESS)\r\n {\r\n System.out.printf(\"Flush has failed with return code %d - <%s>\\n\", retCode, error.text());\r\n }\r\n }\r\n System.out.printf(\"UPA Server run-time has expired...\\n\");\r\n closeChannelServerCleanUpAndExit(channel, upaSrvr, selector, TransportReturnCodes.SUCCESS);\r\n }\r\n }\r\n catch (IOException e1)\r\n {\r\n e1.printStackTrace();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "7cc0e5574222b8f8178d5744abd55917", "score": "0.4741139", "text": "public static void broadcastCapability(Player tracked, Player reciever) {\n\n }", "title": "" }, { "docid": "4ab0d88dbd2d6653d755a9a6a0e2268b", "score": "0.473969", "text": "@Override\n public void startListening(ClientController handler)\n {\n\n super.startListening(handler);\n\n receiver = new Thread(\n\n () -> {\n ServerMessage sm;\n do{\n sm = this.receiveMessage();\n if(sm!=null)\n {\n final ServerMessage smR = sm;\n smR.handle(this);\n }\n\n }while(sm!=null && !stop);\n if(!stop)\n {\n //System.out.println(\"ERROR received : \" + sm);\n handler.manageConnectionError();\n }\n }\n );\n receiver.setName(\"RECEIVER THREAD\");\n receiver.start();\n\n\n }", "title": "" }, { "docid": "8f8951ae34f7ed8f63cd4d5cfab58f0a", "score": "0.47390136", "text": "@Override\r\n\tprotected void doReceive() throws CommunicationException, InterruptedException {\n\t\t\r\n\t}", "title": "" }, { "docid": "7b338fdb5d01cc3f3cd90613be886f41", "score": "0.4738888", "text": "@Override\r\n\tpublic void startReceivingData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9ebb72f2922d2b48a57ce4fd3cedd5f2", "score": "0.4737235", "text": "public interface SwapiClient {\n\n // ok, ok... Mono dependency isn't to appear here. Please, this is only for demonstrations purposes ;)\n Mono<Object> catchMoviewAppearances(String name);\n\n}", "title": "" }, { "docid": "27e0eca52865169306f85fd200590594", "score": "0.47330266", "text": "public VacControllerCommunication() {\n SerialPort[] ports = SerialPort.getCommPorts();\n\n System.out.println(\"\\n\\n########## VacuumController Test1: ##########\");\n if (ports.length < 1) {\n System.out.println(\"VacuumController: ERROR: no serial ports! Please enter portDescriptor as argument to getComports().\");\n } else if (ports.length == 1){\n System.out.println(\"VacuumController: OK we have 1 port available.\");\n System.out.println(\"port description: \" + ports[0].getPortDescription());\n } else if (ports.length > 1) {\n System.out.println(\"VacuumController: WARNING we have more than one serial ports! Please enter portDescriptor as argument to getComports().\");\n }\n System.out.println(\"########## end of VacuumController Test1: ##########\\n\\n\");\n\n\n System.out.println(\"\\n\\n########## VacuumController Test 2: ##########\");\n /////////////// TEST ///////////////\n SerialPort NEW_PORT = SerialPort.getCommPort(\"/dev/pts/4\");\n System.out.println(\"NEW PORT: port description: \" + NEW_PORT.getPortDescription() + \"\\n\");\n System.out.println(\"########## end of VacuumController Test 2: ##########\\n\\n\");\n\n// comPort = ports[0];\n NEW_PORT.openPort();\n\n PacketListener listener = new PacketListener();\n NEW_PORT.addDataListener(listener);\n\n /////////////// END OF TEST ///////\n\n\n\n// if (ports.length >= 1){\n// // konfiguruj port\n// comPort = ports[0];\n// comPort.openPort();\n//\n// PacketListener listener = new PacketListener();\n// comPort.addDataListener(listener);\n// }\n\n\n// comPort.removeDataListener(); // cannot do now\n// comPort.closePort(); // We can not close port now.\n }", "title": "" }, { "docid": "e23e2c8772e4e0990c9fb3c294830c32", "score": "0.4724406", "text": "@Override\n\tpublic void channelActive(ChannelHandlerContext ctx){\n\t}", "title": "" }, { "docid": "038c949b2e50f0dbd7a06c81254137df", "score": "0.47128046", "text": "E receiveNoWait();", "title": "" }, { "docid": "bc096377d610f6b9706edc3ce01e7757", "score": "0.4703058", "text": "@Override\n public Receive createReceive()\n {\n return receiveBuilder()\n .match(ConnectRequestMessage.class, connMsg ->\n {//Get connection request and init connection client\n if(!usersInformation.containsKey(connMsg.userName))\n {//username is not in use\n ActorRef clientActor = sender();\n ActorSelection serverActor = getContext().actorSelection(\"akka.tcp://System@127.0.0.1:8000/user/Server\");\n usersInformation.put(connMsg.userName, clientActor);\n\n //send connection message to the client\n ConnectRequestMessage connectMessage = new ConnectRequestMessage();\n connectMessage.server = serverActor;\n clientActor.tell(connectMessage, self());\n\n //send connection request to the server\n// connectMessage.client = clientActor;\n// serverActor.tell(connectMessage, self());\n }\n else\n {//Server holds user name in its users map, user name is in use\n OtherMessage msg = new OtherMessage();\n msg.text = connMsg.userName +\" is in use!\";\n sender().tell(msg, ActorRef.noSender());\n }\n })\n .match(DisconnectMessage.class, disconnMsg ->\n {//Get disconnection request and remove connected user\n ActorRef clientActor;\n if(!usersInformation.containsKey(disconnMsg.userName))\n {//User is not in connected users list - user is already disconnected/ doesn't exist\n clientActor = sender();\n OtherMessage msg = new OtherMessage();\n msg.text = disconnMsg.userName + \" is already disconnected/ doesn't exist\";\n clientActor.tell(msg, ActorRef.noSender());\n }\n else\n {//Remove user from connected users list and sent disconnect message to the user\n usersInformation.remove(disconnMsg.userName);\n clientActor = sender();\n clientActor.tell(disconnMsg, ActorRef.noSender());\n// clientActor.tell(akka.actor.PoisonPill.getInstance(), self());\n }\n })\n .match(GetUserActorMessage.class, guaMsg ->\n {//Get user private text message and forwards it to the target user\n SendUserActorMessage msg = new SendUserActorMessage();\n msg.targetActor = usersInformation.get(guaMsg.targetName);\n if(!usersInformation.containsKey(guaMsg.targetName))\n msg.found = false;\n else\n msg.found = true;\n getSender().tell(msg, getSelf());\n })\n .match(PrivateGroupTextMessage.class, prvgMsg ->\n {//Get a private group text message and forwards it to the relevant user\n if(!userNotExistMessage(prvgMsg.target, sender()))\n {\n ActorRef target = usersInformation.get(prvgMsg.target);\n target.forward(prvgMsg, getContext());\n }\n })\n .match(PrivateFileMessage.class, prvfMsg ->\n {//Get user private file message and forwards it to the target user\n if(!userNotExistMessage(prvfMsg.target, sender()))\n {\n ActorRef target = usersInformation.get(prvfMsg.target);\n target.forward(prvfMsg, getContext());\n }\n })\n .match(CreateGroupRequestMessage.class, crtGrpMsg ->\n {//Get create group message, create it if group is not in groups list\n if(groupsInformation.containsKey(crtGrpMsg.groupName))\n {\n OtherMessage msg = new OtherMessage();\n msg.text = crtGrpMsg.groupName + \" already exists!\";\n sender().tell(msg, ActorRef.noSender());\n }\n else\n {//create new groupActor, add it to groups list and send relevant message to the user created it.\n ActorRef groupActor = getContext().actorOf(Props.create(GroupActor.class, crtGrpMsg.groupName), \"Group\" + crtGrpMsg.groupName);\n groupsInformation.put(crtGrpMsg.groupName, groupActor);\n\n crtGrpMsg.userActor = usersInformation.get(crtGrpMsg.userName);\n groupActor.forward(crtGrpMsg, getContext());\n\n CreateGroupApproveMessage msg = new CreateGroupApproveMessage();\n msg.groupActor = groupActor;\n msg.userName = crtGrpMsg.userName;\n msg.groupName = crtGrpMsg.groupName;\n sender().tell(msg, ActorRef.noSender());\n }\n })\n .match(LeaveGroupRequestMessage.class, lvGrpMsg ->\n {//Get a leave group message, if group exist forward the message to the group\n if(!groupNotExistMessage(lvGrpMsg.groupName, sender()))\n {\n ActorRef groupActor = groupsInformation.get(lvGrpMsg.groupName);\n groupActor.forward(lvGrpMsg, getContext());\n }\n })\n .match(GroupMessage.class, grpMsg ->\n {//Get group text message and forwards it to the target groupActor\n if(!groupNotExistMessage(grpMsg.groupName, sender()))\n {\n ActorRef groupActor = groupsInformation.get(grpMsg.groupName);\n groupActor.forward(grpMsg, getContext());\n }\n })\n .match(GroupFileMessage.class, grpfMsg ->\n {//Get group text message and forwards it to the target groupActor\n if(!groupNotExistMessage(grpfMsg.groupName, sender()))\n {\n ActorRef groupActor = groupsInformation.get(grpfMsg.groupName);\n groupActor.forward(grpfMsg, getContext());\n }\n })\n .match(InviteToGroupMessage.class, invMsg ->\n {//Get invite message from user, check if user, target, group exist and forward message to group\n if(!groupNotExistMessage(invMsg.groupName, sender()) && !userNotExistMessage(invMsg.targetName, sender()))\n {\n ActorRef groupActor = groupsInformation.get(invMsg.groupName);\n invMsg.userActor = sender();\n invMsg.targetActor = usersInformation.get(invMsg.targetName);\n groupActor.forward(invMsg, getContext());\n }\n })\n .match(RemoveFromGroupMessage.class, rmvMsg ->\n {//Get remove message from user, check if user, target, group exist and forward message to group\n if(!groupNotExistMessage(rmvMsg.groupName, sender()) && !userNotExistMessage(rmvMsg.targetName, sender()))\n {\n ActorRef groupActor = groupsInformation.get(rmvMsg.groupName);\n rmvMsg.userActor = sender();\n rmvMsg.targetActor = usersInformation.get(rmvMsg.targetName);\n groupActor.forward(rmvMsg, getContext());\n }\n })\n .match(CloseGroupMessage.class, clsGrpMsg ->\n {//Get close group message, tell it to group and remove group from groups list\n if(!groupNotExistMessage(clsGrpMsg.groupName, sender()))\n {\n groupsInformation.get(clsGrpMsg.groupName).tell(akka.actor.PoisonPill.getInstance(), self());\n groupsInformation.remove(clsGrpMsg.groupName);\n }\n })\n .match(AddCoadminGroupMessage.class, addcoMsg ->\n {//Get add coadmin message, update target user actor and forward it to group\n if(!groupNotExistMessage(addcoMsg.groupName, sender()) && !userNotExistMessage(addcoMsg.userToAdd, sender()))\n {\n ActorRef groupActor = groupsInformation.get(addcoMsg.groupName);\n addcoMsg.userToAddActor = usersInformation.get(addcoMsg.userToAdd);\n groupActor.forward(addcoMsg, getContext());\n }\n\n })\n .match(RemoveCoadminGroupMessage.class, rmvcoMsg ->\n {//Get remove coadmin message, update target user actor and forward it to group\n if(!groupNotExistMessage(rmvcoMsg.groupName, sender()) && !userNotExistMessage(rmvcoMsg.userToRemove, sender()))\n {\n ActorRef groupActor = groupsInformation.get(rmvcoMsg.groupName);\n rmvcoMsg.userToRemoveActor = usersInformation.get(rmvcoMsg.userToRemove);\n groupActor.forward(rmvcoMsg, getContext());\n }\n })\n .match(MuteGroupMessage.class, mtMsg ->\n {//Get mute message, update target user actor and sender actor and forward it to group\n if(!groupNotExistMessage(mtMsg.groupName, sender()) && !userNotExistMessage(mtMsg.target, sender()))\n {\n ActorRef groupActor = groupsInformation.get(mtMsg.groupName);\n mtMsg.userActor = sender();\n mtMsg.targetActor = usersInformation.get(mtMsg.target);\n groupActor.forward(mtMsg, getContext());\n }\n }).match(UnMuteGroupMessage.class, unmtMsg ->\n {//Get unmute message, update target user actor and sender actor and forward it to group\n if(!groupNotExistMessage(unmtMsg.groupName, sender()) && !userNotExistMessage(unmtMsg.target, sender()))\n {\n ActorRef groupActor = groupsInformation.get(unmtMsg.groupName);\n unmtMsg.userActor = sender();\n unmtMsg.targetActor = usersInformation.get(unmtMsg.target);\n groupActor.forward(unmtMsg, getContext());\n }\n }).build();\n }", "title": "" }, { "docid": "1cbb7839eb252853150d11602023a36c", "score": "0.46998692", "text": "Message receive();", "title": "" }, { "docid": "af9ff13cba9ff941553727caa05fa020", "score": "0.46998382", "text": "public void update(Observable observable, Object arg) {\n\t\tProcessor p = this.messageBuffer.getSenderProcessor();\n\t\t\n\t\tswitch (this.messageBuffer.getMessage().messageType) {\n\n\t\tcase COMPUTATION:\n\t\t\tcalculateVectorClocks(observable, arg);\n\t\t\t\n\t\t\tSystem.out.println(\"\\n---Compute by p\" + this.id + \" \" + this.messageBuffer.getMessage() + \"\\n---VC for p\"\n\t\t\t\t\t+ this.id + \" is:\" + this.vc);\n\t\t\tbreak;\n\n\t\tcase SEND:\n\t\t\t// Send VC after incrementing this processors VC.\n\t\t\tVectorClock updatedVC = calculateVectorClocks(observable, arg);\n\t\t\tMessage updatedMsg = new Message(this.messageBuffer.getMessage().messageType, updatedVC);\n\t\t\tnotifyReceiver(p, updatedMsg);\n\t\t\t\n\t\t\tSystem.out.println(\"\\n---Message sent by p\" + this.id + \" to p\" + p.id + \" \" + updatedMsg + \"\\n---VC for p\"\n\t\t\t\t\t+ this.id + \" is:\" + this.vc);\n\t\t\tbreak;\n\n\t\tcase RECEIVE:\n\t\t\tsynchronized (this) {\n\t\t\t\ttry {\n\n\t\t\t\t\twhile (this.receivedMessageQueue.get(p) == null || this.receivedMessageQueue.get(p).isEmpty()) {\n\t\t\t\t\t\tSystem.out.println(\"\\nReceive initiated: p\" + this.id + \" is waiting for p\" + p.id);\n\t\t\t\t\t\twait();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Exception while receiving\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcalculateVectorClocks(observable, arg);\n\t\t\tSystem.out.println(\"\\n---Message received by p\" + this.id + \" from p\" + p.id + \" \"\n\t\t\t\t\t+ this.messageBuffer.getMessage() + \"\\n---VC for p\" + this.id + \" is:\" + this.vc);\n\n\t\t\ttry {\n\t\t\t\tthis.receivedMessageQueue.get(p).remove(0);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"\\nException while removing message from queue of p\" + this.id + \" for p\" + p.id);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}", "title": "" }, { "docid": "05aa5139ec7a38c9dc225969e1929bac", "score": "0.46990538", "text": "@Override\n\t\t\t\tpublic void onVoiceMsg(Msg4Voice msg) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "6c6428ddac5d32d5f917515b067ad664", "score": "0.4696386", "text": "void subscribe();", "title": "" }, { "docid": "6c6428ddac5d32d5f917515b067ad664", "score": "0.4696386", "text": "void subscribe();", "title": "" }, { "docid": "f0d87dbbae0c2529c7caa9b67288e31b", "score": "0.46881193", "text": "private void process_ensemble_control_messages ( )\n {\n \tPdBase.pollPdMessageQueue ( );\n \tArrayList< Pd_Message > messages = receiver.get_messages ( );\n \tArrayList< Pd_Float > floats = receiver.get_floats ( );\n \tArrayList< String > bangs = receiver.get_bangs ( );\n \tfor ( Pd_Message message : messages )\n \t{\n \t\tif ( message.get_source ( ).equals ( Pd_Constants.SUBSCRIPTION ) )\n \t\t{\n \t\t\t\tSystem.err.println ( \"PURE_DATA: REGISTERED_USER_SYMBOL: \" + message.get_symbol ( ) );\n \t\t\tuser_control_symbols.register_symbol( message.get_symbol ( ) );\n \t\t\t\tPdBase.subscribe ( message.get_symbol ( ) );\n \t\t}\n \t\telse if ( message.get_source ( ).equals ( Pd_Constants.UNSUBSCRIPTION ) )\n \t\t{\n \t\t\t\tSystem.err.println ( \"PURE_DATA: DEREGISTERED_USER_SYMBOL: \" + message.get_symbol ( ) );\n \t\t\tuser_control_symbols.deregister_symbol ( message.get_symbol ( ) );\n \t\t\t\tPdBase.unsubscribe ( message.get_symbol ( ) );\n \t\t}\n \t}\n \tfor ( Pd_Float sent_float : floats )\n \t{\n \t\t\tif ( sent_float.get_source ( ).equals ( Pd_Constants.TICK ) )\n \t\t\t{\n \t\t\t\tticks = ( int ) sent_float.get_value ( );\n \t\t\t\tseconds = ( float ) ticks / ( Pd_Constants.SAMPLE_RATE / ( float ) PdBase.blockSize ( ) );\n \t\t\t\tSystem.err.print ( \"PURE_DATA_SETTING_TICK_SIZE: \" + ticks + \"\\n\" );\n \t\t\t}\n \t\t\telse if ( sent_float.get_source ( ).equals ( Pd_Constants.SECONDS ) )\n \t\t\t{\n \t\t\t\tseconds = sent_float.get_value ( );\n \t\t\t\tticks = ( int ) ( seconds * ( Pd_Constants.SAMPLE_RATE / ( float ) PdBase.blockSize ( ) ) );\n \t\t\t\tSystem.err.print ( \"PURE_DATA_SETTING_SECONDS: \" + seconds + \"\\n\" );\n \t\t\t}\n \t}\n \tfor ( String sent_bang : bangs )\n \t{\n \t\tif ( sent_bang.equals ( Pd_Constants.AUDIO_OFF ) )\n \t\t{\n \t\t\tpd_audio_output = false;\n \t\t\tSystem.err.println ( \"PURE_DATA: AUDIO_OFF\" );\n \t\t}\n \t\telse if ( sent_bang.equals ( Pd_Constants.AUDIO_ON ) )\n \t\t{\n \t\t\tpd_audio_output = true;\n \t\t\tSystem.err.println ( \"PURE_DATA: AUDIO_ON\" );\n \t\t}\n \t\telse if ( sent_bang.equals ( Pd_Constants.AUDIO_TOGGLE ) )\n \t\t{\t\t\t\n \t\t\tpd_audio_output = ! ( pd_audio_output );\n \t\t\tSystem.err.println ( \"PURE_DATA: AUDIO_TOGGLED\" );\n \t\t}\n \t\telse if ( sent_bang.equals ( Pd_Constants.MUTE ) )\n \t\t{\n \t\t\tmute_patch = true;\n \t\t\tpd_audio_output = ! ( mute_patch );\n \t\t\tSystem.err.println ( \"PURE_DATA: PATCH WITH NO AUDIO OUTPUT.\" );\n \t\t}\n \t}\n }", "title": "" }, { "docid": "bf2bc588deb60733f298f0fbb9dd04c3", "score": "0.4686833", "text": "void onReceive(int peerCount, double meanOfRoundTripTime, double meanOfRoundTripTimeDeviation);", "title": "" }, { "docid": "fef1b19397a4fdcab15ff2e9f848d4d8", "score": "0.46841905", "text": "public void setChannel(int c)\r\n {\r\n channel = c;\r\n }", "title": "" }, { "docid": "9348c51b660fb03d78a2f23a19fedccb", "score": "0.46804097", "text": "@Override\n public void channelWritabilityChanged(ChannelHandlerContext ctx)\n throws Exception {\n }", "title": "" }, { "docid": "1e287912301cab19aeccba7212bdd06a", "score": "0.46782464", "text": "@Override\n\tpublic void onSubscribed(String channel) {\n\n\t}", "title": "" }, { "docid": "52734431f619ac5ede31fc198d5ae79c", "score": "0.46724474", "text": "public void setupUpdateChannelsForEvents() {\n freeAtHomeBridge.channelUpdateHandler.registerChannel(deviceID, deviceChannel, measuredTempOdp, this,\n new ChannelUID(this.getThing().getUID(),\n FreeAtHomeSystemBindingConstants.THERMOSTAT_CHANNEL_MEASUREDTEMP_ID),\n new DecimalValueStateConverter());\n\n freeAtHomeBridge.channelUpdateHandler.registerChannel(deviceID, deviceChannel, heatingDemandOdp, this,\n new ChannelUID(this.getThing().getUID(),\n FreeAtHomeSystemBindingConstants.THERMOSTAT_CHANNEL_HEATDEMAND_ID),\n new DecimalValueStateConverter());\n\n freeAtHomeBridge.channelUpdateHandler.registerChannel(deviceID, deviceChannel, heatingActiveOdp, this,\n new ChannelUID(this.getThing().getUID(),\n FreeAtHomeSystemBindingConstants.THERMOSTAT_CHANNEL_HEATINGACTIVE_ID),\n new DecimalValueStateConverter());\n\n freeAtHomeBridge.channelUpdateHandler.registerChannel(deviceID, deviceChannel, setpointTempOdp, this,\n new ChannelUID(this.getThing().getUID(),\n FreeAtHomeSystemBindingConstants.THERMOSTAT_CHANNEL_SETPOINTTEMP_ID),\n new DecimalValueStateConverter());\n\n freeAtHomeBridge.channelUpdateHandler.registerChannel(deviceID, deviceChannel, setpointTempIdp, this,\n new ChannelUID(this.getThing().getUID(),\n FreeAtHomeSystemBindingConstants.THERMOSTAT_CHANNEL_SETPOINTTEMP_ID),\n new DecimalValueStateConverter());\n\n freeAtHomeBridge.channelUpdateHandler.registerChannel(deviceID, deviceChannel, onoffSwitchIdp, this,\n new ChannelUID(this.getThing().getUID(),\n FreeAtHomeSystemBindingConstants.THERMOSTAT_CHANNEL_ONOFFWITCH_ID),\n new BooleanValueStateConverter());\n\n freeAtHomeBridge.channelUpdateHandler.registerChannel(deviceID, deviceChannel, ecoSwitchIdp, this,\n new ChannelUID(this.getThing().getUID(),\n FreeAtHomeSystemBindingConstants.THERMOSTAT_CHANNEL_ECOSWITCH_ID),\n new BooleanValueStateConverter());\n\n freeAtHomeBridge.channelUpdateHandler.registerChannel(deviceID, deviceChannel, onoffIndicationOdp, this,\n new ChannelUID(this.getThing().getUID(),\n FreeAtHomeSystemBindingConstants.THERMOSTAT_CHANNEL_ONOFFWITCH_ID),\n new BooleanValueStateConverter());\n\n freeAtHomeBridge.channelUpdateHandler.registerChannel(deviceID, deviceChannel, ecoIndicationOdp, this,\n new ChannelUID(this.getThing().getUID(),\n FreeAtHomeSystemBindingConstants.THERMOSTAT_CHANNEL_ECOSWITCH_ID),\n new BooleanValueStateConverter());\n }", "title": "" }, { "docid": "ff5135f488b3a7c3fd5dfb22219643eb", "score": "0.4670834", "text": "ReceiveMessageAction receive(BuilderSupport<ReceiveMessageBuilder> configurer);", "title": "" }, { "docid": "7a22811a16175254b47bb6b07b4032a6", "score": "0.46665967", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n switch (message){\n case \"prev\":\n playPrev();\n break;\n case \"next\":\n playNext();\n break;\n case \"play/pause\":\n if(video.isPlaying()){\n video.pause();\n }\n else{\n int currentpos = video.getCurrentPosition();\n video.start();\n video.seekTo(currentpos);\n }\n break;\n case \"forward\":\n FastForward();\n break;\n case \"rewind\":\n Rewind();\n break;\n }\n }", "title": "" }, { "docid": "d30e748b88e33efd4769cc13e33b4df1", "score": "0.46630114", "text": "@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n String channelId;\n SharedPreferences sharedPreferences = getSharedPreferences(shared,0);\n channelId = sharedPreferences.getString(\"loginId\",\"\");\n\n Toast.makeText(getApplicationContext(), \"serivce :\"+channelId, 0).show();\n\n channelId = \"curious\"+channelId.substring(0,channelId.indexOf(\"@\"));\n\n remonCall = RemonCall.builder()\n .context(this)\n .serviceId(\"id\")\n .key(\"key\")\n .videoCodec(\"VP8\")\n .videoWidth(640)\n .videoHeight(480)\n //.localView(binding.localView)\n //.remoteView(binding.remoteView)\n .build();\n remonCall.connect(channelId);\n //remonCall.getOnClose();\n\n return super.onStartCommand(intent, flags, startId);\n }", "title": "" }, { "docid": "75d4fa28e0389e9cdd26720fa17f6104", "score": "0.46618858", "text": "com.google.protobuf.ByteString getDevchannel();", "title": "" }, { "docid": "ce44756c5f3667567f7b58e0cddcbb6f", "score": "0.46607378", "text": "ObserveRing createObserveRing();", "title": "" }, { "docid": "f59b4932ebfc4498d6feba72a5291e38", "score": "0.46560282", "text": "public void receiveVMA(JobA x){\n \tvMachine.add(x); \n \t//Add the trace to the VMA added by Joel 06-January-2016\n \tx.addSMA(this.getID());\n \t//Add the trace to the VMA added by Joel 06-January-2016\n }", "title": "" }, { "docid": "53dee4e222bc50f6a7ea0395437c1f6d", "score": "0.46512374", "text": "private void receive(Client cli) {\n SocketChannel channel = cli.getSockChannel();\n\n t1 = new Thread(new Runnable() {\n public void run() {\n while (!Thread.currentThread().isInterrupted()) {\n Message m = null;\n while (m == null && isActive) {\n m = Message.receive(channel);\n }\n processMessage(m);\n\n }\n }\n });\n t1.start();\n }", "title": "" }, { "docid": "bda994ac57b5e4ac98fab19ddc8b8345", "score": "0.46501777", "text": "@Bean\n\tpublic MessageChannel accountChannel() {\n\t\treturn new QueueChannel(10); // async communication\n\t}", "title": "" }, { "docid": "01c4765120dd706b304ec7823dbccb03", "score": "0.4646282", "text": "@Override\n public void update(ReceiveStreamEvent ev)\n {\n ReceiveStream receiveStream = ev.getReceiveStream();\n boolean hasStream = receiveStream != null;\n\n if (ev instanceof NewReceiveStreamEvent) {\n // XXX we might consider not adding (or not starting) new ReceiveStreams\n // unless this MediaStream's direction allows receiving.\n\n Timber.d(\"Received ReceiveStreamEvent (new): %s = %s\", receiveStreams.contains(receiveStream), ev);\n if (hasStream) {\n long receiveStreamSSRC = 0xFFFFFFFFL & receiveStream.getSSRC();\n\n addRemoteSourceID(receiveStreamSSRC);\n addReceiveStream(receiveStream);\n }\n }\n else if (ev instanceof TimeoutEvent) {\n Participant participant = ev.getParticipant();\n\n // If we recreate streams, we will already have restarted zrtpControl,\n // but when on the other end someone recreates his streams, we will receive a\n // ByeEvent (which extends TimeoutEvent) and then we must also restart our ZRTP.\n // This happens, for example, when we are already in a call and the remote peer\n // converts his side of the call into a conference call.\n // if(!zrtpRestarted)\n //\t\trestartZrtpControl();\n\n List<ReceiveStream> receiveStreamsToRemove = new ArrayList<>();\n if (hasStream) {\n receiveStreamsToRemove.add(receiveStream);\n Timber.w(\"### Receiving stream TimeoutEvent occurred for: %s\", receiveStream);\n }\n else if (participant != null) {\n Collection<ReceiveStream> receiveStreams = getReceiveStreams();\n Collection<?> rtpManagerReceiveStreams = rtpManager.getReceiveStreams();\n\n for (ReceiveStream receiveStreamX : receiveStreams) {\n if (participant.equals(receiveStreamX.getParticipant())\n && !participant.getStreams().contains(receiveStreamX)\n && !rtpManagerReceiveStreams.contains(receiveStreamX)) {\n receiveStreamsToRemove.add(receiveStreamX);\n }\n }\n }\n\n // cmeng: can happen when remote video streaming is enabled but arriving\n // late/TimeoutEvent happen or remote video streaming is stop/terminated\n for (ReceiveStream receiveStreamX : receiveStreamsToRemove) {\n removeReceiveStream(receiveStreamX);\n\n // The DataSource needs to be disconnected, because otherwise\n // its RTPStream thread will stay alive. We do this here because\n // we observed that in certain situations it fails to be done earlier.\n DataSource dataSource = receiveStreamX.getDataSource();\n if (dataSource != null)\n dataSource.disconnect();\n }\n }\n else if (ev instanceof RemotePayloadChangeEvent) {\n if (hasStream) {\n MediaDeviceSession devSess = getDeviceSession();\n\n if (devSess != null) {\n TranscodingDataSource transcodingDS\n = devSess.getTranscodingDataSource(receiveStream);\n\n // we receive packets, streams are active if processor in transcoding\n // DataSource is running, we need to recreate it by disconnect,\n // connect and starting again the DataSource\n try {\n if (transcodingDS != null) {\n transcodingDS.disconnect();\n transcodingDS.connect();\n transcodingDS.start();\n }\n\n // as output streams of the DataSource are recreated we\n // need to update mixers and everything that are using them\n devSess.playbackDataSourceChanged(receiveStream.getDataSource());\n } catch (IOException e) {\n Timber.e(e, \"Error re-creating TranscodingDataSource's processor!\");\n }\n }\n }\n }\n }", "title": "" }, { "docid": "dcaa8a454c4acdaceb6251bb7c4dca34", "score": "0.46437526", "text": "public void communicationChannelBroken() {\n\r\n\t}", "title": "" }, { "docid": "be4687a4fb5175e86849bb1c5f357498", "score": "0.46429944", "text": "private void listen(){\n\n }", "title": "" }, { "docid": "b49d204b7292eda6f6c1da672ee918da", "score": "0.464223", "text": "@Override\n public Receive createReceive() {\n return receiveBuilder()\n .match(String.class, m -> {\n reader.callWidget(LineReader.CLEAR);\n reader.getTerminal().writer().print(m);\n reader.callWidget(LineReader.REDRAW_LINE);\n reader.callWidget(LineReader.REDISPLAY);\n reader.getTerminal().writer().flush();\n })\n .build();\n }", "title": "" }, { "docid": "6cd641476103d3c7f35aecd1ca9a8995", "score": "0.46414584", "text": "public interface IVSListener extends Remote {\n\n /**\n * Connette la macchina al server\n * @param id l'id della macchina\n * @return la chiave della macchina, se la registrazione e' andata a buon fine\n * -1 altrimenti\n * @throws RemoteException\n */\n int connectVS(String id) throws RemoteException;\n\n /**\n *\n * @param id\n * @param connection\n * @return\n * @throws RemoteException\n */\n// boolean disconnectVS(String id, IVSConnection connection) throws RemoteException;\n\n\n /**\n * Inizia un allarme\n * @param key la chiave della macchina\n * @param description la descrizione dell'allarme\n * @param level la gravita' dell'allarme\n * @return l'id dell'allarme lato server o -1 in caso di problemi\n * @throws RemoteException\n */\n int startAlarm(int key, String description, AlarmLevel level) throws RemoteException;\n\n /**\n * Ferma un allarme\n * @param key la chiave della macchina\n * @param alarmId l'id dell'allarme ritornato da startAlarm\n * @return true se l'allarme e' stato spento con successo\n * @throws RemoteException\n */\n boolean stopAlarm(int key, int alarmId) throws RemoteException;\n\n /**\n * Notifica un cambiamento nei parametri del monitor\n * @param key la chiave del monitor\n * @param monitorData i dati aggiornati\n * @return\n * @throws RemoteException\n */\n void notifyMonitorUpdate(int key, MonitorData monitorData) throws RemoteException;\n\n\n}", "title": "" }, { "docid": "d5779befca0372a3c2a82601bd2482d0", "score": "0.4637731", "text": "public Builder clearSendervid() {\n \n sendervid_ = 0L;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "c405ecedb9761d1bd8ecad86e731a4da", "score": "0.4637152", "text": "public void receiveMessage(){\n\t\t\n\t}", "title": "" }, { "docid": "b353f5c1dd39c41624d76b79b7249715", "score": "0.46293974", "text": "@Test\n public void testStress() throws Exception {\n channel=createTunnelChannel(\"A\");\n channel.connect(\"agroup\");\n channel.setReceiver(new ReceiverAdapter() {\n\n @Override\n public void receive(Message msg) {\n receivedCnt++;\n if(receivedCnt % 2000 == 0)\n System.out.println(\"-- received \" + receivedCnt);\n if(receivedCnt == msgCount) {\n // let the main thread know I got all msgs\n promise.setResult(Boolean.TRUE);\n }\n } \n });\n \n // stress send messages - the sender thread\n new Thread(() -> {\n try {\n for(int i=0; i < msgCount; i++) {\n channel.send(null, new byte[payloadSize]);\n if(i % 2000 == 0)\n System.out.println(\"-- sent \" + i);\n }\n }\n catch(Exception e) {\n System.err.println(\"Error sending data over ...\");\n e.printStackTrace();\n }\n }).start();\n\n\n // wait for all the messages to come; if I don't see all of them in\n // mainTimeout ms, I fail the test\n\n Boolean result=promise.getResult(mainTimeout);\n if(result == null) {\n String msg=\"The channel has failed to send/receive \" + msgCount + \" messages \" +\n \"possibly because of the channel deadlock or too short \" +\n \"timeout (currently \" + mainTimeout + \" ms). \" + receivedCnt +\n \" messages received so far.\";\n assert false : msg;\n } \n }", "title": "" }, { "docid": "04b13378cc99c6f95e1e896158f0ff8a", "score": "0.46191424", "text": "@Override\n public void processEvent(VREvent event) {\n log.debug(this + \" received event: \" + event);\n if (!event.getSource().isActive()) {\n // stop listening to inactive objects (disconnected clients)\n event.getSource().removeListener(this);\n } else if (event.getChanges().containsKey(\"wrote\")) {\n String what = (String) event.getChanges().get(\"wrote\");\n respondTo(event.getClient(), what);\n }\n }", "title": "" }, { "docid": "2ad91f22027cd5aa4e91146effeb0a18", "score": "0.4614995", "text": "@Override\n public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Main.ALL_CHANNELS.add(ctx.getChannel());\n }", "title": "" }, { "docid": "3888ae4f20e87be5d1c78b0c30e1d655", "score": "0.46123964", "text": "public static void main(String[] args) {\n final DemoMessengerThread messengerThread1 = new DemoMessengerThread(\"messengerThread1\");\n final DemoMessengerThread messengerThread2 = new DemoMessengerThread(\"messengerThread2\");\n\n messengerThread1.toSendTo(messengerThread2);\n messengerThread2.toSendTo(messengerThread1);\n\n messengerThread1.start();\n messengerThread2.start();\n\n // Send another message from normal thread to MessengerThread\n new Thread(() -> {\n System.out.println(\"Running Inside : \" + Thread.currentThread().getName());\n messengerThread1.post(() -> System.out.println(\"Sent by workerThread1 , and Received by: \" + Thread.currentThread().getName()));\n }, \"workerThread1\").start();\n\n // Send another message from normal thread to MessengerThread\n new Thread(() -> {\n System.out.println(\"Running Inside : \" + Thread.currentThread().getName());\n messengerThread1.sendMessage(Message.obtain().withData(\"Sent by workerThread2\"));\n }, \"workerThread2\").start();\n\n\n }", "title": "" }, { "docid": "546f0506e9281736620872a65668f929", "score": "0.46108416", "text": "public Buffer tprecv(int flags) throws ConnectionException,\n ConfigurationException {\n log.debug(\"Receiving: \" + cd);\n if (closed) {\n throw new ConnectionException(ConnectionImpl.TPEPROTO,\n \"Session already closed\");\n }\n\n int toCheck = flags\n & ~(ConnectionImpl.TPNOCHANGE | ConnectionImpl.TPNOBLOCK\n | ConnectionImpl.TPNOTIME | ConnectionImpl.TPSIGRSTRT);\n if (toCheck != 0) {\n log.trace(\"invalid flags remain: \" + toCheck);\n throw new ConnectionException(ConnectionImpl.TPEINVAL,\n \"Invalid flags remain: \" + toCheck);\n }\n\n if (!canRecv) {\n throw new ConnectionException(ConnectionImpl.TPEPROTO,\n \"Session can't receive\");\n }\n Message m = receiver.receive(flags);\n // Prepare the outbound channel\n if (m.replyTo == null\n || (sender != null && !m.replyTo.equals(sender.getSendTo()))) {\n log.trace(\"Send to location has altered\");\n sender.close();\n sender = null;\n }\n if (sender == null && m.replyTo != null && !m.replyTo.equals(\"\")) {\n log.trace(\"Will require a new sender\");\n if(((String)m.replyTo).contains(\"IOR:\")) {\n sender = transport.createSender(m.replyTo);\n } else {\n sender = transport.createSender(receiver);\n }\n } else {\n log.debug(\"Not setting the sender\");\n }\n\n BufferImpl received = null;\n if (m.type != null && !m.type.equals(\"\")) {\n received = (BufferImpl) connection\n .tpalloc(m.type, m.subtype);\n received.deserialize(m.data);\n }\n log.debug(\"Prepared and ready to launch\");\n\n // Sort out session state\n if ((m.flags & ConnectionImpl.TPRECVONLY) == ConnectionImpl.TPRECVONLY) {\n canSend = true;\n canRecv = false;\n }\n\n // Check the condition of the response\n if ((m.flags & ConnectionImpl.TPRECVONLY) == ConnectionImpl.TPRECVONLY) {\n throw new ResponseException(ConnectionImpl.TPEEVENT,\n \"Reporting send only event\", ConnectionImpl.TPEV_SENDONLY,\n m.rcode, received);\n } else if (m.rval == EventListener.DISCON_CODE) {\n close();\n throw new ResponseException(ConnectionImpl.TPEEVENT,\n \"Received a disconnect event\",\n ConnectionImpl.TPEV_DISCONIMM, m.rcode, received);\n } else if (m.rval == ConnectionImpl.TPSUCCESS\n || m.rval == ConnectionImpl.TPFAIL) {\n log.debug(\"Completed session is being closed: \" + cd);\n close();\n if (m.rval == ConnectionImpl.TPSUCCESS) {\n throw new ResponseException(ConnectionImpl.TPEEVENT,\n \"Service completed successfully event\",\n ConnectionImpl.TPEV_SVCSUCC, 0, received);\n } else if (m.rcode == ConnectionImpl.TPESVCERR) {\n throw new ResponseException(ConnectionImpl.TPEEVENT,\n \"Service received an error\",\n ConnectionImpl.TPEV_SVCERR, m.rcode, received);\n } else {\n throw new ResponseException(ConnectionImpl.TPEEVENT,\n \"Service received a fail\", ConnectionImpl.TPEV_SVCFAIL,\n m.rcode, received);\n }\n }\n return received;\n }", "title": "" }, { "docid": "f5692d21bbfb0c6fec7fb6619b2a15e6", "score": "0.46103716", "text": "@Override\n public void onBuffering(boolean b) {\n }", "title": "" }, { "docid": "239396b58432d8deb78b17fd40da3988", "score": "0.46058586", "text": "private Reactor() { }", "title": "" }, { "docid": "c246558223ac1b13a6e9fff80b8d6cdb", "score": "0.46055996", "text": "public abstract List<? extends Verb> run(UserWrappedCommunication communication);", "title": "" }, { "docid": "8a3f0bbf7939160870ed427887020249", "score": "0.46030253", "text": "@Bean\n public MessageChannel inputChannel() {\n DirectChannel dc = new DirectChannel();\n if (receiverHandler == null) {\n throw new RuntimeException(\"receiver handler must not be null\");\n }\n dc.subscribe(receiverHandler);\n return dc;\n }", "title": "" }, { "docid": "bdc95b2bd372a3b530dcb7e58b5fec02", "score": "0.46017173", "text": "@Bean\n public MessageChannel outputChannel() {\n return new DirectChannel();\n }", "title": "" }, { "docid": "ecd67eb057bc6c93f7dcc062ef830d7e", "score": "0.45960748", "text": "public void run()\n {\n while( running )\n {\n SpectroCommand cmd = null;\n String message;\n\n if( m_StopRequest )\n {\n running = false;\n break;\n }\n\n //If the incoming FIFO is not full, send first command in outgoing queue\n if( !m_Incoming.isFull() )\n {\n if( System.currentTimeMillis() - m_lastReceived > 1000 )\n {\n if( m_Startup )\n {\n cmd = new ResetCommand();\n\n message = cmd.construct();\n\n message = message + \"\\r\";\n\n m_CommDriver.send( message.getBytes() );\n m_CommDriver.setRespondTimeout( 15000 );\n\n try\n {\n m_Incoming.putObject( cmd );\n }\n catch( FifoFullException fifoFullEx )\n {\n continue;\n }\n }\n else\n {\n if( m_Recovery )\n {\n cmd = m_LastCommand;\n\n m_Logger.finer( \"Return from recovery\" );\n m_Logger.finer( \"Resuming from last sent command\" );\n\n m_Logger.finer( \"Constructing command\" );\n message = cmd.construct() + \"\\r\";\n\n m_Logger.finer( \"Message constructed > \" + message );\n m_CommDriver.send( message.getBytes() );\n m_CommDriver.setRespondTimeout( 15000 );\n\n try\n {\n m_Incoming.putObject( cmd );\n }\n catch( FifoFullException fifoFullEx )\n {\n continue;\n }\n\n m_Recovery = false;\n continue;\n }\n\n m_Logger.finer( \" Retreiving Command from fifo\" );\n\n //Retrieve the command\n cmd = (SpectroCommand) m_Outgoing.getNextObject();\n\n if( cmd == null )\n {\n continue;\n }\n\n //System.out.println( \"Sending command \" + cmd.getName() );\n m_Logger.finer( \" Constructing command\" );\n message = cmd.construct() + \"\\r\";\n\n m_Logger.finer( \" Message constucted > \" + message );\n\n m_Logger.finer( \" Sending \" + cmd.getName() + \" at \" + System.currentTimeMillis() );\n m_CommDriver.send( message.getBytes() );\n\n m_CommDriver.setRespondTimeout( 15000 );\n\n try\n {\n m_Incoming.putObject( cmd );\n }\n catch( FifoFullException fifoFullEx )\n {\n continue;\n }\n\n //Command is sent, remove from outgoing FIFO\n m_Outgoing.removeNextObject();\n\n m_Logger.finer( \" Message posted.\" );\n }\n }\n }\n else\n {\n //Incoming FIFO is full, spectro is currently busy\n m_Logger.finer( \" Spectro busy.\" );\n m_Logger.finer( \" Command : \" + m_Incoming.getNextObject() );\n }\n\n try\n {\n m_Thread.sleep( 300 );\n }\n catch( InterruptedException irEx )\n {\n if( m_StopRequest )\n {\n running = false;\n break;\n }\n }\n }\n\n //Indicate that the thread has stopped running\n m_Logger.finer( \" Thread stopped.\" );\n }", "title": "" }, { "docid": "79c60af7246f9cbd142d56f681c7b801", "score": "0.4595061", "text": "@Override\n\t\tpublic void onReceive(Context context, final Intent intent) {\n\n\t\t\tif (intent.getAction().equals(Intent.ACTION_TIME_TICK)) {\n\t\t\t\t//ijkVideoView.requestFocus();\n\t\t\t\tString time=(System.currentTimeMillis()/1000)+\"\";\n\t\t\t\tshi.setText(DateUtils.timeShi(time));\n\t\t\t\tjian.setText(DateUtils.timeJian(time));\n\t\t\t\triqi.setText(DateUtils.timesTwo(time));\n\t\t\t\txingqi.setText(DateUtils.getWeek(System.currentTimeMillis()));\n\n\n\t\t\t}\n\t\t\tif (intent.getAction().equals(\"duanxianchonglian\")) {\n\n\t\t\t\t//断线重连\n\t\t\t\tif (webSocketClient!=null) {\n\n\t\t\t\t\t//\tLog.d(TAG, \"进来1\");\n\n\t\t\t\t\tif (!isLianJie) {\n\t\t\t\t\t\t//\tLog.d(TAG, \"进来2\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tbaoCunBean = baoCunBeanDao.load(123456L);\n\t\t\t\t\t\t\tWebsocketPushMsg websocketPushMsg = new WebsocketPushMsg();\n\t\t\t\t\t\t\twebsocketPushMsg.close();\n\t\t\t\t\t\t\tif (baoCunBean.getZhujiDiZhi() != null && baoCunBean.getShipingIP() != null) {\n\t\t\t\t\t\t\t\twebsocketPushMsg.startConnection(baoCunBean.getZhujiDiZhi(), \"rtsp://\" + baoCunBean.getShipingIP() + \":554/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream\");\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tLog.d(TAG, e.getMessage() + \"aaa\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}}\n\t\t}", "title": "" }, { "docid": "5611a69214bbec462cea5e8fcc05416a", "score": "0.45935714", "text": "public static void main(String[]args) throws InterruptedException {\n Subscriber lightsubscriber =new PackageLightSubscribers();\n Subscriber prosubscriber = new PackageProSubscribers();\n Subscriber ultraSubscribers=new PackageUltraSubscribers();\n\n Netflix netflix =new Netflix();\n netflix.subscribe(lightsubscriber);\n netflix.subscribe(prosubscriber);\n netflix.subscribe(ultraSubscribers);\n\n //Notify all the subscribers\n netflix.notifyObservers(\"Welcome to the Netflix!\");\n\n Thread.sleep(5000);//wait for 5 seconds\n System.out.println(\"..............................\");\n netflix.notifyObservers(\"Let's watch....\");\n\n Thread.sleep(5000);//wait for 5 seconds\n netflix.unsubscribe(prosubscriber);//pro user unsubscribe\n System.out.println(\"..............................\");\n prosubscriber.notifyObserver(\"You unsubscribed!\");\n\n Thread.sleep(5000);//wait for 5 seconds\n System.out.println(\"..............................\");\n netflix.notifyObservers(\"These are the new movies...\");\n }", "title": "" }, { "docid": "1b9bf6bfbecc2221e7fb0deebe7319df", "score": "0.45914787", "text": "@Override\n public void run() {\n String[] IPs =IPProvider.getPhonesIpsByExtens(RecipientArr);\n System.out.println(\"===Now Try To Broadcast ON Path :\" + WaveFilePath + \" on Extensions :\" + RecipientArr);\n try {\n //Get wave Lenth\n Clip clip = AudioSystem.getClip();\n AudioInputStream ais = AudioSystem.getAudioInputStream(new File(WaveFilePath));\n clip.open(ais);\n Lenth = clip.getMicrosecondLength() / 1000;\n System.out.println(\"The Track on Path :\" + WaveFilePath + \"Lenth is: \" + Lenth);\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage() + \"::\" + ex.getStackTrace());\n }\n AVTransmit2 Transmeter = null;\n String Result = \"Can't open local data port:\";\n while (Result.contains(\"Can't open local data port:\")) {\n MinPort += 2;\n if (MinPort <= MaxPort) {\n Transmeter = new AVTransmit2(new MediaLocator(\"file:/\" + WaveFilePath),BroadCastIP, String.valueOf(MinPort), form);//\"file:/C:/iqama.wav\"//\"javasound://8000\"\n Result = Transmeter.start();\n if (Result == null) {\n Result = \"\";\n }\n } else {\n MinPort = 20478;\n }\n }\n for (int i = 0; i < IPs.length; i++) {\n //Get IP\n System.out.println(\"1=== Push Recive Command TO Phones OP Port :\" + MinPort);\n System.out.println(\"IP num\" + i + \" = \" + IPs[i]);\n String PhoneIP = IPs[i];\n String[] Reciving_urls = {\"RTPRx:Stop\", \"RTPRx:\"+BroadCastIP+\":\" + MinPort + \":\"+BroadCastLevel};\n if(!PhoneIP.equals(\"\"))\n p2p.push(Reciving_urls, PhoneIP, Text2Base64.getBase64(CallManager_ApplicationUser_Credintials), true);\n\n }\n\n try {\n Thread.sleep(Lenth);//1 Min\n } catch (InterruptedException ex) {\n Logger.getLogger(SchedulerOperations.class.getName()).log(Level.SEVERE, null, ex);\n }\n Transmeter.stop();\n for (int i = 0; i < IPs.length; i++) {\n //Get IP\n System.out.println(\"1=== Push Stop Reciving Command TO Phones OP Port :\" + MinPort);\n String PhoneIP = IPs[i];\n String[] Reciving_urls = {\"RTPRx:Stop\"};\n p2p.push(Reciving_urls, PhoneIP, Text2Base64.getBase64(CallManager_ApplicationUser_Credintials), true);\n }\n this.stop();\n }", "title": "" }, { "docid": "2ec4d7753ef06e3f4bd02ec1c6442c33", "score": "0.45908535", "text": "@Override\n public Message receive() throws SuspendExecution, InterruptedException {\n maybeSetCurrentStrandAsOwner();\n \n sync.lock();\n try {\n for (;;) {\n for (Channel<? extends Message> c : channels) {\n Message m = c.tryReceive();\n if (m != null)\n return m;\n }\n sync.await();\n }\n } finally {\n sync.unlock();\n }\n }", "title": "" }, { "docid": "569ea8ce66ddb99eedb9208b6b1eb8b9", "score": "0.459031", "text": "private void deviceSessionOutputDataSourceChanged()\n {\n recreateSendStreams();\n }", "title": "" }, { "docid": "68f868d70cbed7fa6d6dbc2fb098eff1", "score": "0.45863196", "text": "void sendMessageToHandlerNoControllerReset(List<OFMessage> messages)\n throws Exception {\n setupMessageEvent(messages);\n\n // mock controller\n controller.flushAll();\n expectLastCall().anyTimes();\n expect(controller.addConnectedSwitch(1000, handler))\n .andReturn(true).anyTimes();\n replay(controller);\n\n handler.messageReceived(ctx, messageEvent);\n verify(controller);\n }", "title": "" }, { "docid": "4882c8566138eb4fbe7eadeac65d00d2", "score": "0.45859158", "text": "public interface RelayControlServiceListener {\r\n\r\n\t/**\r\n\t * On the attachment of a RelayServer to the PCS. Called by ROS.\r\n\t * \r\n\t * @param rosTcpEndpoint\r\n\t * the attached relay outbound server's address.\r\n\t * @param segment\r\n\t * the segment of the ROS.\r\n\t * @param ros\r\n\t * the reverse RPC api to the ROS (not available on ROS, only PCS)\r\n\t */\r\n\tpublic void registerRelayServer(String rosTcpEndpoint, String segment, RelayOutboundServiceController ros);\r\n\r\n\t/**\r\n\t * On the detachment of a RelayServer, we disconnect all relay sessions. Happens on disconnect of ROS.\r\n\t * \r\n\t * @param rosTcpEndpoint\r\n\t * the attached relay outbound server's address.\r\n\t */\r\n\tpublic void unregisterRelayServer(String rosTcpEndpoint);\r\n\r\n\t/**\r\n\t * The RelayServer periodically notifies of sessions which have become idle and are removed from the server. Called\r\n\t * by ROS.\r\n\t * \r\n\t * @param rosTcpEndpoint\r\n\t * the attached relay outbound server's address.\r\n\t * @param channelKeys\r\n\t * the sessions which have expired\r\n\t */\r\n\tpublic void notifySessionsRemoved(String rosTcpEndpoint, List<String> channelKeys);\r\n}", "title": "" }, { "docid": "6e4816b8b24f3e66e95331bd3d13b1be", "score": "0.4582545", "text": "@Override\n public void onReadable() {\n switch (state) {\n case PINGPONG:\n receivePing(\n result -> {\n responses.enqueue(generatePong(result));\n channel.enable(Op.WRITE);\n state = ConnectionState.ESTABLISHED;\n });\n break;\n case ESTABLISHED:\n receiveRequests();\n break;\n }\n if (!channel.isOpen()) {\n close();\n }\n }", "title": "" }, { "docid": "acd5a30f316986b8c52c8ecdc22338df", "score": "0.45738104", "text": "@Override\r\n\tprotected void watch() {\n\t\t\r\n\t}", "title": "" }, { "docid": "13639d5cc51f5f287650e380dabec036", "score": "0.45727855", "text": "private Behavior<Command> handleSubsequentReceive(BigInteger prime) {\n\n return newReceiveBuilder()\n .onAnyMessage(command -> {\n command.getSender().tell(new ManagerBehavior.ResultCommand(prime));\n return Behaviors.same();\n })\n .build();\n\n\n }", "title": "" }, { "docid": "16d4780449551839acf04d3def27ee56", "score": "0.4572412", "text": "public Builder clearSendervid() {\n \n sendervid_ = 0L;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f22034193eef6a5a8c4f02ec927aecf6", "score": "0.4563916", "text": "@Override\n\tpublic List<String> subscribeHook(String controllerID) {\n\t\tList<String> updates = new ArrayList<>();\n\t\ttry {\n\t\t\tmyTopoFilterQueue.subscribe(controllerID);\n\t\t\tupdates = myTopoFilterQueue.dequeueReverse();\n\t\t\t// logger.info(\"[Subscribe] TopoUpdates...\");\n\t\t\treturn updates;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn updates;\n\t}", "title": "" }, { "docid": "4b7868aac2b624fa5d9379b62a1ba695", "score": "0.4556993", "text": "@Override\n\tpublic void run() {\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\tSystem.err.println(\"MSG READ: \" + channel.takeMessage());\n\t\t}\n\n\t\t// Sleep for 5 seconds\n\t\tUtils.sleep(5000);\n\n\t\tfor(int i=0; i < 7; i++) {\n\t\t\tSystem.err.println(\"MSG READ: \" + channel.takeMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "353f8d52a9581f07d5d52b518398eaca", "score": "0.45568272", "text": "void setServerReceived();", "title": "" }, { "docid": "5355773ec44757d81ac064d0d44b69d8", "score": "0.45567918", "text": "public HandShakeSubscriber() {\n\t\tsetKA(-1);\n\t\tsetToken(-1);\n\t\tsetID(-1);\n\t\tisReelection=false;\n\t}", "title": "" } ]
d6b905774ad5a27273d9fa6babbe5b9c
private method used to build prior radiation type query to OJB ReportQueryByCriteria in order to construct a nested query based on patient DIDs
[ { "docid": "5c4b8479a7df2cae5f3665cd6ae43582", "score": "0.6867772", "text": "private ReportQueryByCriteria getPriorRadiationTherapySubQuery(ClinicalDataQuery clinicalQuery,PersistenceBroker _BROKER,Class subQueryClass, String fieldToSelect) throws Exception {\n \t Criteria c = buildPriorRadiationCriteria (clinicalQuery); \t \n \t if(c != null) { \t\t \n \t String ptIDCol = getColumnNameForBean(_BROKER, subQueryClass.getName(), fieldToSelect);\n \t org.apache.ojb.broker.query.ReportQueryByCriteria priorRadiationTherapyQuery =\n QueryFactory.newReportQuery(subQueryClass, new String[]{ptIDCol}, c , true); \n \t return priorRadiationTherapyQuery;\n \t } \t \n \t \n \t else {\n \t\t return null;\n \t } \n \n \t}", "title": "" } ]
[ { "docid": "8b69951e70314a02aed185efaf61e3d2", "score": "0.7366435", "text": "private Criteria buildPriorRadiationCriteria(ClinicalDataQuery clinicalQuery) {\n \t \n \t RadiationTherapyCriteria crit = clinicalQuery.getRadiationTherapyCriteria(); \t \n Criteria c = new Criteria(); \t\n \t\t \n \tif (crit != null) { \t\t \n \tArrayList radiationTypes = new ArrayList();\n for (Iterator iterator = crit.getRadiations().iterator(); iterator.hasNext();)\n \t radiationTypes.add(((RadiationTherapyDE) iterator.next()).getValueObject()); \t \n \n \t\tc.addColumnIn(PriorRadiationtherapy.RADIATION_TYPE, radiationTypes);\n \t\treturn c; \n \t \n \t }\n \t else {\n \t\t return null;\n \t }\t\n \t \n }", "title": "" }, { "docid": "6f47e648971d21463410ac1dadd4ba27", "score": "0.67438024", "text": "private Criteria buildOnStudyRadiationCriteria(ClinicalDataQuery clinicalQuery) {\n \t \n \t OnStudyRadiationTherapyCriteria crit = clinicalQuery.getOnStudyRadiationTherapyCriteria(); \t \n Criteria c = new Criteria(); \t\n \t\t \n \tif (crit != null) { \t\t \n \tArrayList radiationTypes = new ArrayList();\n for (Iterator iterator = crit.getRadiations().iterator(); iterator.hasNext();)\n \t radiationTypes.add(((OnStudyRadiationTherapyDE) iterator.next()).getValueObject()); \t \n \n \t\tc.addColumnIn(OnStudyRadiationtherapy.RADIATION_TYPE, radiationTypes);\n \t\treturn c; \n \t \n \t }\n \t else {\n \t\t return null;\n \t }\t\n \t \n }", "title": "" }, { "docid": "fb4ba38540ca0fac15e43f2106301af1", "score": "0.6499857", "text": "private PriorRadiationtherapy[] populatePriorRadiation(ClinicalDataQuery clinicalQuery, Collection patientDIDs)throws Exception {\n \t \t \n \t\t\t if(patientDIDs.size()>=1) {\n \t\t\t Criteria priorRadiationCrit = buildPriorRadiationCriteria(clinicalQuery);\n \t \t if(priorRadiationCrit== null) {\n \t \t\t priorRadiationCrit = new Criteria();\n \t \t }\n \t \t \t\t \n \t \t priorRadiationCrit.addIn(PriorRadiationtherapy.PATIENT_DID, patientDIDs);\n \t \t\t final PersistenceBroker pb = PersistenceBrokerFactory.defaultPersistenceBroker();\n \t \t ReportQueryByCriteria priorRadiationQuery = QueryFactory.newReportQuery(PriorRadiationtherapy.class, priorRadiationCrit, true);\n \t \t \n \t \t priorRadiationQuery.setAttributes(new String[] {\n \t \t \t\t PriorRadiationtherapy.TIME_POINT, PriorRadiationtherapy.RADIATION_SITE,\n \t \t \t\t PriorRadiationtherapy.DOSE_START_DATE, PriorRadiationtherapy.DOSE_STOP_DATE,\n \t \t \t\t PriorRadiationtherapy.FRACTION_DOSE, PriorRadiationtherapy.FRACTION_NUMBER,\n \t \t \t\t PriorRadiationtherapy.RADIATION_TYPE, PriorRadiationtherapy.PATIENT_DID} ); \n \t \t \n \t \t \n \t \t Iterator priorRadiationDataObjects = pb.getReportQueryIteratorByQuery(priorRadiationQuery);\n \t \t \n \t \t ArrayList results = new ArrayList();\n \t \t populatePriorRadiationResults(priorRadiationDataObjects, results);\n \t \t \n \t \t \n \t \t PriorRadiationtherapy[] finalResult = new PriorRadiationtherapy[results.size()];\n \t \t for (int i = 0; i < results.size(); i++) {\n \t \t \tPriorRadiationtherapy priorRadiationData = (PriorRadiationtherapy) results.get(i);\n \t \t finalResult[i] = priorRadiationData ;\n \t \t }\n \t \t pb.close();\n \t \t \n \t \t return finalResult; \n \t }\n \t else {\n \t return null;\n \t }\n \t \n \t }", "title": "" }, { "docid": "3d7ee1df17de655ecaf0767b186ef9f6", "score": "0.62974244", "text": "private ReportQueryByCriteria getPriorSurgeryTherapySubQuery(ClinicalDataQuery clinicalQuery,PersistenceBroker _BROKER,Class subQueryClass, String fieldToSelect) throws Exception {\n \t\n \t Criteria c = buildPriorSurgeryCriteria(clinicalQuery); \t \n \t if(c != null) { \n \t\t\n \t String ptIDCol = getColumnNameForBean(_BROKER, subQueryClass.getName(), fieldToSelect);\n \t org.apache.ojb.broker.query.ReportQueryByCriteria priorChemoTherapyQuery =\n QueryFactory.newReportQuery(subQueryClass, new String[]{ptIDCol}, c , true); \n \t return priorChemoTherapyQuery;\n \t }\n \t \n \t \n \t else {\n \t\t return null;\n \t } \n \n }", "title": "" }, { "docid": "98730e5c936939b0dc650f07baa59fa5", "score": "0.6239152", "text": "private ReportQueryByCriteria getPriorChemoTherapySubQuery(ClinicalDataQuery clinicalQuery,PersistenceBroker _BROKER,Class subQueryClass, String fieldToSelect) throws Exception {\n \t\n \t Criteria c = buildPriorChemoCriteria(clinicalQuery); \t \n \t if(c != null) { \t\t \n \t String ptIDCol = getColumnNameForBean(_BROKER, subQueryClass.getName(), fieldToSelect);\n \t org.apache.ojb.broker.query.ReportQueryByCriteria priorChemoTherapyQuery =\n QueryFactory.newReportQuery(subQueryClass, new String[]{ptIDCol}, c , true); \n \t return priorChemoTherapyQuery;\n \t }\n \t \n \t \n \t else {\n \t\t return null;\n \t } \n \n }", "title": "" }, { "docid": "f8b144c1a3dd1471d898984a1f76854a", "score": "0.6088598", "text": "private Criteria buildPriorSurgeryCriteria (ClinicalDataQuery clinicalQuery) {\n \t \n \t SurgeryOutcomeCriteria crit = clinicalQuery.getSurgeryOutcomeCriteria(); \n \t PriorSurgeryTitleCriteria crit2 = clinicalQuery.getPriorSurgeryTitleCriteria(); \n \t \n Criteria c = new Criteria(); \t \n \t if (crit != null || crit2 != null ) {\n \t\t \n \t\t if(crit != null) {\n \t\t \n \t\t ArrayList outcomes = new ArrayList();\n for (Iterator iterator = crit.getOutcomes().iterator(); iterator.hasNext();)\n \t outcomes.add(((SurgeryOutcomeDE) iterator.next()).getValueObject()); \t \n \t c.addColumnIn(PriorSurgery.SURGERY_OUTCOME, outcomes);\n \t\t }\n \t\t \n \t\t if(crit2 != null) {\n \t\t\t \n \t\t\t ArrayList titles = new ArrayList();\n for (Iterator iterator = crit2.getTitles().iterator(); iterator.hasNext();)\n \t titles.add(((PriorSurgeryTitleDE) iterator.next()).getValueObject()); \t \n \t c.addColumnIn(PriorSurgery.PROCEDURE_TITLE, titles);\n \t\n \t\t }\n \t\n \t\treturn c; \n \t \n \t }\n \t else {\n \t\t return null;\n \t }\t\n \t \n }", "title": "" }, { "docid": "05a598c2e781818ce30c91fef933a0c2", "score": "0.6008349", "text": "private Criteria buildPriorChemoCriteria (ClinicalDataQuery clinicalQuery) {\n \t \n \t ChemoAgentCriteria crit = clinicalQuery.getChemoAgentCriteria(); \t \n Criteria c = new Criteria(); \n \n \t if (crit != null) { \t\t \n \t\t ArrayList agentTypes = new ArrayList();\n for (Iterator iterator = crit.getAgents().iterator(); iterator.hasNext();)\n \t agentTypes.add(((ChemoAgentDE) iterator.next()).getValueObject()); \t \n \n \t\tc.addColumnIn(PriorChemotherapy.AGENT_NAME, agentTypes);\n \t\treturn c; \n \t }\n \t else {\n \t\t return null;\n \t }\t\n \t \n }", "title": "" }, { "docid": "930b78d95d327a3d98c40149101107ed", "score": "0.60065234", "text": "private PriorSurgery[] populatePriorSurgery(ClinicalDataQuery clinicalQuery, Collection patientDIDs)throws Exception {\n \t \t \n \t\t\t if(patientDIDs.size()>=1) {\n \t\t\t Criteria priorSurgeryCrit = buildPriorSurgeryCriteria(clinicalQuery);\n \t \t if(priorSurgeryCrit== null) {\n \t \t\t priorSurgeryCrit = new Criteria();\n \t \t }\n \t \t \t\t \n \t \t priorSurgeryCrit.addIn(PriorSurgery.PATIENT_DID, patientDIDs);\n \t \t\t final PersistenceBroker pb = PersistenceBrokerFactory.defaultPersistenceBroker();\n \t \t ReportQueryByCriteria priorSurgeryQuery = QueryFactory.newReportQuery(PriorSurgery.class, priorSurgeryCrit, true);\n \t \t \n \t \t priorSurgeryQuery.setAttributes(new String[] {\n \t \t \t\t PriorSurgery.TIME_POINT, PriorSurgery.PROCEDURE_TITLE,\n \t \t \t\t PriorSurgery.TUMOR_HISTOLOGY,PriorSurgery.SURGERY_DATE, \n \t \t \t\t PriorSurgery.SURGERY_OUTCOME,PriorSurgery.PATIENT_DID} ); \n \t \t \n \t \t \n \t \t Iterator priorSurgeryDataObjects = pb.getReportQueryIteratorByQuery(priorSurgeryQuery);\n \t \t \n \t \t ArrayList results = new ArrayList();\n \t \t populatePriorSurgeryResults(priorSurgeryDataObjects, results);\n \t \t \n \t \t \n \t \t PriorSurgery[] finalResult = new PriorSurgery[results.size()];\n \t \t for (int i = 0; i < results.size(); i++) {\n \t \t \tPriorSurgery priorSurgeryData = (PriorSurgery) results.get(i);\n \t \t finalResult[i] = priorSurgeryData ;\n \t \t }\n \t \t pb.close();\n \t \t \n \t \t return finalResult; \n \t }\n \t else {\n \t return null;\n \t }\n \t \n \t }", "title": "" }, { "docid": "c4470778dd6386e15fd3d94c8d66f93d", "score": "0.59924847", "text": "private ReportQueryByCriteria getOnStudyRadiationTherapySubQuery(ClinicalDataQuery clinicalQuery,PersistenceBroker _BROKER,Class subQueryClass, String fieldToSelect) throws Exception {\n \t Criteria c = buildOnStudyRadiationCriteria (clinicalQuery); \t \n \t if(c != null) { \t\t \n \t String ptIDCol = getColumnNameForBean(_BROKER, subQueryClass.getName(), fieldToSelect);\n \t org.apache.ojb.broker.query.ReportQueryByCriteria onStudyRadiationTherapyQuery =\n QueryFactory.newReportQuery(subQueryClass, new String[]{ptIDCol}, c , true); \n \t return onStudyRadiationTherapyQuery;\n \t } \t \n \t \n \t else {\n \t\t return null;\n \t } \n \n \t}", "title": "" }, { "docid": "f5c5ff962a2f944ef055b81fbe60908b", "score": "0.5907344", "text": "private PriorChemotherapy[] populatePriorChemo(ClinicalDataQuery clinicalQuery, Collection patientDIDs)throws Exception {\n \t \t \n \t\t\t if(patientDIDs.size()>=1) {\n \t\t\t Criteria priorChemoCrit = buildPriorChemoCriteria(clinicalQuery);\n \t \t if(priorChemoCrit== null) {\n \t \t\t priorChemoCrit = new Criteria();\n \t \t }\n \t \t \t\t \n \t \t priorChemoCrit.addIn(PriorChemotherapy.PATIENT_DID, patientDIDs);\n \t \t\t final PersistenceBroker pb = PersistenceBrokerFactory.defaultPersistenceBroker();\n \t \t ReportQueryByCriteria priorChemoQuery = QueryFactory.newReportQuery(PriorChemotherapy.class, priorChemoCrit, true);\n \t \t \n \t \t priorChemoQuery.setAttributes(new String[] {\n \t \t \t\t PriorChemotherapy.TIME_POINT, PriorChemotherapy.AGENT_ID,\n \t \t \t\t PriorChemotherapy.AGENT_NAME, PriorChemotherapy.COURSE_COUNT,\n \t \t \t\t PriorChemotherapy.DOSE_START_DATE, PriorChemotherapy.DOSE_STOP_DATE,\n \t \t \t\t PriorChemotherapy.STUDY_SOURCE,PriorChemotherapy.PROTOCOL_NUMBER,\n \t \t \t\t PriorChemotherapy.PATIENT_DID} ); \n \t \t \n \t \t \n \t \t Iterator priorRadiationDataObjects = pb.getReportQueryIteratorByQuery(priorChemoQuery);\n \t \t \n \t \t ArrayList results = new ArrayList();\n \t \t populatePriorChemoResults(priorRadiationDataObjects, results);\n \t \t \n \t \t \n \t \t PriorChemotherapy[] finalResult = new PriorChemotherapy[results.size()];\n \t \t for (int i = 0; i < results.size(); i++) {\n \t \t \tPriorChemotherapy priorChemoData = (PriorChemotherapy) results.get(i);\n \t \t finalResult[i] = priorChemoData ;\n \t \t }\n \t \t pb.close();\n \t \t \n \t \t return finalResult; \n \t }\n \t else {\n \t return null;\n \t }\n \t \n \t }", "title": "" }, { "docid": "f27af3c1e038069dda977c354eb01de8", "score": "0.5820161", "text": "public String getHibernateQuery(PrescriptionCriteriaSearchDto criteria) {\n\n\t\tString hQuery = \"FROM PrescriptionDto\";\n\t\tif (criteria.getPatientId() != 0 || criteria.getToDate() != null\n\t\t\t\t|| criteria.getFromData() != null) {\n\n\t\t\thQuery += \" where prescriptionId>0\";\n\t\t}\n\t\tif (criteria.getPatientId() != 0) {\n\n\t\t\thQuery += \" AND patient.patientId=:patientId\";\n\t\t}\n\n\t\tif (criteria.getFromData() != null) {\n\n\t\t\thQuery += \" AND year(date) >= year(:fromDate) and month(date) >= month(:fromDate) and day(date) >= day(:fromDate) \";\n\t\t}\n\t\tif (criteria.getToDate() != null) {\n\n\t\t\thQuery += \" AND year(date) <= year(:toDate) and month(date) <= month(:toDate) and day(date) <= day(:toDate) \";\n\t\t}\n\t\treturn hQuery;\n\t}", "title": "" }, { "docid": "0207db089f0bfc8b065bb363e66a7e3e", "score": "0.57588637", "text": "public ResultSet[] handle(Query query) throws Exception {\n ClinicalDataQuery clinicalQuery = (ClinicalDataQuery) query;\n Criteria allCriteria = new Criteria();\n \n \n // add suvival range, age range, gender and race info to the OJB where clause criteria\n buildSurvivalRangeCrit(clinicalQuery, allCriteria);\n buildAgeRangeCrit(clinicalQuery, allCriteria);\n buildGenderCrit(clinicalQuery, allCriteria);\n buildRaceCrit(clinicalQuery, allCriteria); \n \n \n PersistenceBroker _BROKER = PersistenceBrokerFactory.defaultPersistenceBroker(); \n \n Class targetFactClass = PatientData.class;\n \n // build common factors disease types, sample ids, and institution access to the OJB where clause criteria \n // for the patient_data table\n //CommonFactHandler.addDiseaseCriteria(clinicalQuery, targetFactClass, _BROKER, allCriteria);\n CommonFactHandler.addDiseaseSampleCriteria(clinicalQuery, targetFactClass, allCriteria);\n CommonFactHandler.addAccessCriteria(clinicalQuery, targetFactClass, allCriteria);\n \n // build nested query for any clinical data which is not located in the patient_data table\n // and from the patient_data table to those are 1 to many relationship, and the link from\n // patient_data table to \"many\" table is based on patient dids\n // in order to build nested queries, OJB requires ReportQueryByCriteria type.\n \n ReportQueryByCriteria clinicalEvalQuery = getClinicalEvalSubQuery(clinicalQuery,_BROKER,NeuroEvaluation.class,NeuroEvaluation.PATIENT_DID);\n ReportQueryByCriteria priorRadiationQuery = getPriorRadiationTherapySubQuery(clinicalQuery,_BROKER,PriorRadiationtherapy.class,PriorRadiationtherapy.PATIENT_DID);\n ReportQueryByCriteria priorChemoQuery = getPriorChemoTherapySubQuery(clinicalQuery,_BROKER,PriorChemotherapy.class,PriorChemotherapy.PATIENT_DID);\n ReportQueryByCriteria priorSurgeryQuery = getPriorSurgeryTherapySubQuery(clinicalQuery,_BROKER,PriorSurgery.class,PriorSurgery.PATIENT_DID);\n ReportQueryByCriteria onStudyRadiationQuery = getOnStudyRadiationTherapySubQuery(clinicalQuery,_BROKER,OnStudyRadiationtherapy.class,OnStudyRadiationtherapy.PATIENT_DID);\n ReportQueryByCriteria onStudyChemoQuery = getOnStudyChemoTherapySubQuery(clinicalQuery,_BROKER,OnStudyChemotherapy.class,OnStudyChemotherapy.PATIENT_DID);\n ReportQueryByCriteria onStudySurgeryQuery = getOnStudySurgeryTherapySubQuery(clinicalQuery,_BROKER,OnStudySurgery.class,OnStudySurgery.PATIENT_DID);\n \n \n Criteria priorTherapy = new Criteria();\n Criteria priorRadiationCrit = new Criteria();\n Criteria priorChemoCrit= new Criteria();\n Criteria priorSurgeryCrit = new Criteria();\n \n \n Criteria onStudyTherapy = new Criteria();\n Criteria onStudyRadiationCrit = new Criteria();\n Criteria onStudyChemoCrit = new Criteria();\n Criteria onStudySurgeryCrit = new Criteria();\n \n \n \n _BROKER.close();\n \n if(clinicalEvalQuery != null) {\n allCriteria.addIn(PatientData.PATIENT_DID, clinicalEvalQuery); \n }\n \n if(priorRadiationQuery != null) {\n \n \tpriorRadiationCrit.addIn(PatientData.PATIENT_DID, priorRadiationQuery); \n priorTherapy.addOrCriteria(priorRadiationCrit); \n }\n \n if(priorChemoQuery != null) {\n \n \t\n \tpriorChemoCrit.addIn(PatientData.PATIENT_DID, priorChemoQuery); \n \tpriorTherapy.addOrCriteria(priorChemoCrit); \n \n }\n \n if(priorSurgeryQuery != null) {\n \n \tpriorSurgeryCrit.addIn(PatientData.PATIENT_DID, priorSurgeryQuery); \n \tpriorTherapy.addOrCriteria(priorSurgeryCrit); \n }\n \n \n \n if(onStudyRadiationQuery != null) {\n \n \tonStudyRadiationCrit.addIn(PatientData.PATIENT_DID, onStudyRadiationQuery); \n onStudyTherapy.addOrCriteria(onStudyRadiationCrit); \n }\n \n if(onStudyChemoQuery != null) {\n \n \t\n \t onStudyChemoCrit.addIn(PatientData.PATIENT_DID, onStudyChemoQuery); \n \t onStudyTherapy.addOrCriteria(onStudyChemoCrit); \n \n }\n \n if(onStudySurgeryQuery != null) {\n onStudySurgeryCrit.addIn(PatientData.PATIENT_DID, onStudySurgeryQuery); \n \t onStudyTherapy.addOrCriteria(onStudySurgeryCrit); \n }\n \n \n // make sure if the user selects therapy entries or not \n if(!priorTherapy.isEmpty()){\n allCriteria.addAndCriteria(priorTherapy);\n }\n \n if(!onStudyTherapy.isEmpty()){\n allCriteria.addAndCriteria(onStudyTherapy);\n }\n \n // excute the whole clinical query after the whole query has been constructed, then formatted to \n // a PatientData[] array for later use, PatientData implements ResultSet interface\n PatientData[] results = executeQuery(allCriteria);\n \n // after data has been retrieved from patient_data table, the next step is to retrieve child tables info \n // such as NEUROLOGICAL_EVALUATION , PRIOR_CHEMOTHERAPY, PRIOR_RADIATIONTHERAPY, PRIOR_SURGERY,\n // PT_RADIATIONTHERAPY, PT_SURGERY, PT_CHEMOTHERAPY tables which are 1 to many relationship with the\n // PATIENT_DATA table based on patientDIDs\n \n if(clinicalEvalQuery != null || !priorTherapy.isEmpty() || !onStudyTherapy.isEmpty()|| results.length >=1) {\n \t\n clinicalEvalDataResult = populateClinicalEval(clinicalQuery,patientDIDs); \n priorRadiationResult = populatePriorRadiation(clinicalQuery,patientDIDs); \n priorChemoResult = populatePriorChemo(clinicalQuery,patientDIDs); \n priorSurgeryResult = populatePriorSurgery(clinicalQuery,patientDIDs); \n \n onStudyRadiationResult = populateOnStudyRadiation(clinicalQuery,patientDIDs); \n onStudyChemoResult = populateOnStudyChemo(clinicalQuery,patientDIDs); \n onStudySurgeryResult = populateOnStudySurgery(clinicalQuery,patientDIDs); \n \n // after the data has been retrieved, the next step is to format them to the \n // PatientData[] array for later display\n results = addClinicalEvalToPatientData(results,clinicalEvalDataResult);\n results = addPriorRadiationToPatientData(results,priorRadiationResult);\n results = addPriorChemoToPatientData(results,priorChemoResult);\n results = addPriorSurgeryToPatientData(results,priorSurgeryResult);\n \n results = addOnStudyRadiationToPatientData(results,onStudyRadiationResult);\n results = addOnStudyChemoToPatientData(results,onStudyChemoResult);\n results = addOnStudySurgeryToPatientData(results,onStudySurgeryResult);\n \n }\n \n \n return results;\n }", "title": "" }, { "docid": "bf83d3291c61bbc4dc974d9d55f2fca7", "score": "0.56926984", "text": "private OnStudyRadiationtherapy[] populateOnStudyRadiation(ClinicalDataQuery clinicalQuery, Collection patientDIDs)throws Exception {\n \t \t \n \t\t\t if(patientDIDs.size()>=1) {\n \t\t\t Criteria onStudyRadiationCrit = buildOnStudyRadiationCriteria(clinicalQuery);\n \t \t if(onStudyRadiationCrit== null) {\n \t \t\t onStudyRadiationCrit = new Criteria();\n \t \t }\n \t \t \t\t \n \t \t onStudyRadiationCrit.addIn(OnStudyRadiationtherapy.PATIENT_DID, patientDIDs);\n \t \t\t final PersistenceBroker pb = PersistenceBrokerFactory.defaultPersistenceBroker();\n \t \t ReportQueryByCriteria onStudyRadiationQuery = QueryFactory.newReportQuery(OnStudyRadiationtherapy.class, onStudyRadiationCrit, true);\n \t \t \n \t \t onStudyRadiationQuery.setAttributes(new String[] {\n \t \t \t\t OnStudyRadiationtherapy.TIME_POINT, OnStudyRadiationtherapy.RADIATION_SITE,\n \t \t \t\t OnStudyRadiationtherapy.DOSE_START_DATE, OnStudyRadiationtherapy.DOSE_STOP_DATE,\n \t \t \t\t OnStudyRadiationtherapy.FRACTION_DOSE, OnStudyRadiationtherapy.FRACTION_NUMBER,\n \t \t \t\t OnStudyRadiationtherapy.RADIATION_TYPE, OnStudyRadiationtherapy.PATIENT_DID,\n \t \t \t\t OnStudyRadiationtherapy.NEUROSIS_STATUS} ); \n \t \t \n \t \t \n \t \t Iterator onStudyRadiationDataObjects = pb.getReportQueryIteratorByQuery(onStudyRadiationQuery);\n \t \t \n \t \t ArrayList results = new ArrayList();\n \t \t populateOnStudyRadiationResults(onStudyRadiationDataObjects, results);\n \t \t \n \t \t \n \t \t OnStudyRadiationtherapy[] finalResult = new OnStudyRadiationtherapy[results.size()];\n \t \t for (int i = 0; i < results.size(); i++) {\n \t \t \tOnStudyRadiationtherapy onStudyRadiationData = (OnStudyRadiationtherapy) results.get(i);\n \t \t finalResult[i] = onStudyRadiationData ;\n \t \t }\n \t \t pb.close();\n \t \t \n \t \t return finalResult; \n \t }\n \t else {\n \t return null;\n \t }\n \t \n \t }", "title": "" }, { "docid": "3706d9251376d1a9c3fd32db0f51b2d4", "score": "0.5624287", "text": "private Criteria buildOnStudySurgeryCriteria (ClinicalDataQuery clinicalQuery) {\n \t \n OnStudySurgeryOutcomeCriteria crit = clinicalQuery.getOnStudySurgeryOutcomeCriteria(); \n OnStudySurgeryTitleCriteria crit2 = clinicalQuery.getOnStudySurgeryTitleCriteria(); \n \n Criteria c = new Criteria(); \t \n \t if (crit != null || crit2 != null ) {\n \t\t \n \t\t if(crit != null) {\n \t\t \n \t\t ArrayList outcomes = new ArrayList();\n for (Iterator iterator = crit.getOutcomes().iterator(); iterator.hasNext();)\n \t outcomes.add(((OnStudySurgeryOutcomeDE) iterator.next()).getValueObject()); \t \n \t c.addColumnIn(OnStudySurgery.SURGERY_OUTCOME, outcomes);\n \t\t }\n \t\t \n \t\t if(crit2 != null) {\n \t\t\t \n \t\t\t ArrayList titles = new ArrayList();\n for (Iterator iterator = crit2.getTitles().iterator(); iterator.hasNext();)\n \t titles.add(((OnStudySurgeryTitleDE) iterator.next()).getValueObject()); \t \n \t c.addColumnIn(OnStudySurgery.PROCEDURE_TITLE, titles);\n \t\n \t\t }\n \t\n \t\treturn c; \n \t \n \t }\n \t else {\n \t\t return null;\n \t }\t\n \t \n }", "title": "" }, { "docid": "f595ab889874bb0a1acd7f072d2f47f9", "score": "0.56180274", "text": "private String buildQuery() {\n Condition compositeQuery = getCompositeCondition();\n return compositeQuery != null ? (String) compositeQuery.query(new RSQLVisitor()) : \"\";\n }", "title": "" }, { "docid": "4d9e6338c179e63d74ee9c4b34bdba9b", "score": "0.56089103", "text": "public String getHiberenateQueryFromCriteriaInAdvanceSearch(\n\t\t\tPatientSearchCriteriaDto criteria) {\n\n\t\tString hQuery = NULL_STRING;\n\n\t\tif (!criteria.getName().equals(NULL_STRING)) {\n\n\t\t\thQuery += \" and prescription.patient.name LIKE CONCAT('%',:name,'%')\";\n\t\t}\n\t\tif (criteria.getGender() != null) {\n\n\t\t\thQuery += \" and prescription.patient.gender=:gender\";\n\t\t}\n\t\treturn hQuery;\n\t}", "title": "" }, { "docid": "8a08e410ca79bf461afece049f115df9", "score": "0.5605168", "text": "private ReportQueryByCriteria getClinicalEvalSubQuery(ClinicalDataQuery clinicalQuery,PersistenceBroker _BROKER,Class subQueryClass, String fieldToSelect) throws Exception {\n \t Criteria clinalEvalCrit = buildClinicalEvalCriteria(clinicalQuery);\n \t if(clinalEvalCrit != null) {\n \t\t String ptIDCol = getColumnNameForBean(_BROKER, subQueryClass.getName(), fieldToSelect);\n \t\t org.apache.ojb.broker.query.ReportQueryByCriteria clinicalEvalQuery =\n QueryFactory.newReportQuery(subQueryClass, new String[] {ptIDCol}, clinalEvalCrit , true); \n return clinicalEvalQuery; \n \t\t \n \t }\n \t else {\n \t\t return null; \n \t\t \n \t } \t \n \n \t}", "title": "" }, { "docid": "692b2a012f9b47afb456ee8105b36977", "score": "0.5543308", "text": "private ReportQueryByCriteria getOnStudyChemoTherapySubQuery(ClinicalDataQuery clinicalQuery,PersistenceBroker _BROKER,Class subQueryClass, String fieldToSelect) throws Exception {\n \t\n \t Criteria c = buildOnStudyChemoCriteria(clinicalQuery); \t \n \t if(c != null) { \t\t \n \t String ptIDCol = getColumnNameForBean(_BROKER, subQueryClass.getName(), fieldToSelect);\n \t org.apache.ojb.broker.query.ReportQueryByCriteria onStudyChemoTherapyQuery =\n QueryFactory.newReportQuery(subQueryClass, new String[]{ptIDCol}, c , true); \n \t return onStudyChemoTherapyQuery;\n \t }\n \t \n \t \n \t else {\n \t\t return null;\n \t } \n \n }", "title": "" }, { "docid": "9098ee881af2650c17ea2040cafd1baa", "score": "0.54856795", "text": "private PatientData[] addPriorRadiationToPatientData(PatientData[] patientDataResults, ResultSet[] priorRadiationDataResult) {\n \t\t\n \t\tif(patientDataResults instanceof PatientData[]) {\n \t\t\t\n \t\t\t\n \t\t\tfor(int i=0; i< patientDataResults.length;i++) {\n \t\t\t\tPatientData ptData = (PatientData)patientDataResults[i];\n \t\t\t\t\n \t\t\t\tLong patientDid = ptData.getPatientDid();\n \t\t\t\tStringBuffer timePoints = new StringBuffer();\n \t\t\t\tStringBuffer radiationSites = new StringBuffer();\n \t\t\t\tStringBuffer doseStartDates = new StringBuffer();\t\t\t\t\t\t\t\n \t\t\t\tStringBuffer doseStopDates = new StringBuffer();\n \t\t\t\tStringBuffer fractionDoses = new StringBuffer();\t\n \t\t\t\tStringBuffer fractionNumbers = new StringBuffer();\n \t\t\t\tStringBuffer radiationTypes = new StringBuffer();\n \t\t\t\t\n \t\t\t\tfor (int j=0; j<priorRadiationDataResult.length;j++) {\n \t\t\t\t\tPriorRadiationtherapy priorRadiationData = (PriorRadiationtherapy)priorRadiationDataResult[j];\t\t\n \t\t\t\t\t\n \t\t\t\t\tLong ptDid = priorRadiationData.getPatientDid();\n \t\t\t\t\tif(patientDid.toString().equals(ptDid.toString())) {\n \t\t\t\t\t\tif(priorRadiationData.getTimePoint()!= null) {\n \t\t\t\t\t\t timePoints.append(priorRadiationData.getTimePoint());\n \t\t\t\t\t\t timePoints.append(\"| \");\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif(priorRadiationData.getRadiationSite() != null) {\n \t\t\t\t\t\t\tradiationSites.append(priorRadiationData.getRadiationSite());\t\n \t\t\t\t\t\t\tradiationSites.append(\"| \");\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\tif(priorRadiationData.getDoseStartDate() != null) {\n \t\t\t\t\t\t\tdoseStartDates.append(priorRadiationData.getDoseStartDate());\n \t\t\t\t\t\t\tdoseStartDates.append(\"| \");\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\tif(priorRadiationData.getDoseStopDate() != null) {\n \t\t\t\t\t\t\tdoseStopDates.append(priorRadiationData.getDoseStopDate());\n \t\t\t\t\t\t doseStopDates.append(\"| \");\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\tif(priorRadiationData.getFractionDose() != null) {\n \t\t\t\t\t\t\tfractionDoses.append(priorRadiationData.getFractionDose());\n \t\t\t\t\t\t\tfractionDoses.append(\"| \");\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\tif(priorRadiationData.getFractionNumber() != null) {\n \t\t\t\t\t\t\tfractionNumbers.append(priorRadiationData.getFractionNumber());\n \t\t\t\t\t\t\tfractionNumbers.append(\"| \");\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\tif(priorRadiationData.getRadiationType() != null) {\n \t\t\t\t\t\t\tradiationTypes.append(priorRadiationData.getRadiationType());\n \t\t\t\t\t\t\tradiationTypes.append(\"| \");\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\n \t\t\t\t\t}\t\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(timePoints.length() >0) {\n \t\t\t\t timePoints.deleteCharAt(timePoints.length()-2);\n \t\t\t\t ptData.setPriorRadiationTimePoints(timePoints.toString());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif(radiationSites.length()>0) {\n \t\t\t\t radiationSites.deleteCharAt(radiationSites.length()-2);\n \t\t\t\t ptData.setPriorRadiationRadiationSites(radiationSites.toString());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif(doseStartDates.length()>0) {\n \t\t\t\t\tdoseStartDates.deleteCharAt(doseStartDates.length()-2);\n \t\t\t\t ptData.setPriorRadiationDoseStartDates(doseStartDates.toString());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif(doseStopDates.length()>0) {\t\t\t\t\n \t\t\t\t\tdoseStopDates.deleteCharAt(doseStopDates.length()-2);\n \t\t\t\t ptData.setPriorRadiationDoseStopDates(doseStopDates.toString());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif(fractionDoses.length()>0) {\t\n \t\t\t\t\tfractionDoses.deleteCharAt(fractionDoses.length()-2);\n \t\t\t\t ptData.setPriorRadiationFractionDoses(fractionDoses.toString());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif(fractionNumbers.length()>0) {\t\t\t\t\t\n \t\t\t\t\tfractionNumbers.deleteCharAt(fractionNumbers.length()-2);\n \t\t\t\t ptData.setPriorRadiationFractionNumbers(fractionNumbers.toString());\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif(radiationTypes.length()>0) {\t\t\t\t\t\n \t\t\t\t\tradiationTypes.deleteCharAt(radiationTypes.length()-2);\n \t\t\t\t ptData.setPriorRadiationRadiationTypes(radiationTypes.toString());\n \t\t\t\t}\t\t\t\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\t\n \t\t }\n \t\t\n \t\treturn patientDataResults;\n \t\n \t}", "title": "" }, { "docid": "7359c6d3836b7d5d55708dc45d532cf4", "score": "0.5481762", "text": "private Criteria buildClinicalEvalCriteria(ClinicalDataQuery clinicalQuery){\n \t \n \t Criteria karnofskyCrit = buildKarnofskyClinicalEvalCrit(clinicalQuery);\n Criteria lanskyCrit = buildLanskyClinicalEvalCrit(clinicalQuery);\n Criteria neuroExamCrit = buildNeuroExamClinicalEvalCrit(clinicalQuery);\n Criteria mriCrit = buildMRIClinicalEvalCrit(clinicalQuery);\n \n if(karnofskyCrit ==null && lanskyCrit == null && neuroExamCrit==null && mriCrit==null) {\n return null;\n }\n else { \t\n \n \t Criteria clinalEvalCrit = new Criteria();\n \t \n \t if(karnofskyCrit != null) {\n \t clinalEvalCrit.addOrCriteria(karnofskyCrit);\n \t }\n \t \n \t if(lanskyCrit != null) {\n \t clinalEvalCrit.addOrCriteria(lanskyCrit);\n \t }\n \t \n \t if(neuroExamCrit != null) {\n \t clinalEvalCrit.addOrCriteria(neuroExamCrit);\n \t }\n \t \n \t if(mriCrit != null) {\n \t clinalEvalCrit.addOrCriteria(mriCrit);\n \t }\n \t return clinalEvalCrit;\n \t }\n \n }", "title": "" }, { "docid": "c6edddcfc049b9b2780acf6de160afb1", "score": "0.5430373", "text": "private String buildQuery() throws Exception {\n\n\t\t// initialize parameters\n\t\tString sql = \"\";\n\n\t\t// add search items\n\t\tsql += buildQueryForStringBasedItem(LoadcaseFactorInfoType.NAME);\n\t\tsql += buildQueryForStringBasedItem(LoadcaseFactorInfoType.SPECTRUM_NAME);\n\t\tsql += buildQueryForStringBasedItem(LoadcaseFactorInfoType.PILOT_POINT_NAME);\n\t\tsql += buildQueryForStringBasedItem(LoadcaseFactorInfoType.AC_PROGRAM);\n\t\tsql += buildQueryForStringBasedItem(LoadcaseFactorInfoType.AC_SECTION);\n\t\tsql += buildQueryForStringBasedItem(LoadcaseFactorInfoType.FAT_MISSION);\n\t\tsql += buildQueryForStringBasedItem(LoadcaseFactorInfoType.DELIVERY_REF);\n\t\tsql += buildQueryForStringBasedItem(LoadcaseFactorInfoType.DESCRIPTION);\n\n\t\t// remove trailing operator\n\t\tsql = sql.substring(0, sql.lastIndexOf(\" or \"));\n\n\t\t// return query\n\t\treturn sql;\n\t}", "title": "" }, { "docid": "3e36d0ba5d6312289d8a19ffbac00df9", "score": "0.5430024", "text": "public abstract List buildQuery(Report report);", "title": "" }, { "docid": "30302e8406e7f231a6da5b645412860c", "score": "0.5420763", "text": "private ReportQueryByCriteria getOnStudySurgeryTherapySubQuery(ClinicalDataQuery clinicalQuery,PersistenceBroker _BROKER,Class subQueryClass, String fieldToSelect) throws Exception {\n \t\n \t Criteria c = buildOnStudySurgeryCriteria(clinicalQuery); \t \n \t if(c != null) { \n \t\t\n \t String ptIDCol = getColumnNameForBean(_BROKER, subQueryClass.getName(), fieldToSelect);\n \t org.apache.ojb.broker.query.ReportQueryByCriteria onStudyChemoTherapyQuery =\n QueryFactory.newReportQuery(subQueryClass, new String[]{ptIDCol}, c , true); \n \t return onStudyChemoTherapyQuery;\n \t }\n \t \n \t \n \t else {\n \t\t return null;\n \t } \n \n }", "title": "" }, { "docid": "3da8716d818ab6dd09767708fa527eb0", "score": "0.5405227", "text": "public String getHiberenateQueryFromCriteriaInNormalSearch(\n\t\t\tPatientSearchCriteriaDto criteria) {\n\n\t\tString hQuery = \"SELECT p From PatientDto p\";\n\n\t\tif (criteria.getName() != null || criteria.getGender() != null\n\t\t\t\t|| criteria.getDrugId() != 0) {\n\n\t\t\thQuery += \" where p.patientId > 0 \";\n\t\t}\n\t\tif (!criteria.getName().equals(NULL_STRING)) {\n\n\t\t\thQuery += \" AND p.name LIKE CONCAT('%',:name,'%')\";\n\t\t}\n\t\tif (!criteria.getGender().equals(NULL_STRING)) {\n\n\t\t\thQuery += \" AND p.gender=:gender\";\n\t\t}\n\t\treturn hQuery;\n\t}", "title": "" }, { "docid": "24245b10175d34d3a2304f72d54435ba", "score": "0.5367381", "text": "private Criteria buildMRIClinicalEvalCrit(ClinicalDataQuery clinicalQuery) { \t \n \n \tMRIClinicalEvalCriteria crit = clinicalQuery.getMriCriteria();\n \tCriteria c = new Criteria(); \n \t \n \t if (crit != null) {\n \t\t c.addEqualTo(NeuroEvaluation.MRI_CT_SCORE, Integer.parseInt(crit.getMRIClinicalEvalDE().getValueObject())); \t\n \t return c;\n \t }\n \t \n \t else {\n \t\t return null;\n \t } \t \n }", "title": "" }, { "docid": "632596d303af4df68a719ff540286e71", "score": "0.53383476", "text": "protected IQuery createOdiQuery( ) throws DataException\n \t\t{\n \t\t\treturn DataSourceFactory.getFactory().newDataSource( null ).\n \t\t\t\t\tnewCandidateQuery();\n \t\t}", "title": "" }, { "docid": "0cc75d21162b03281022dcd822fb876b", "score": "0.5323476", "text": "public interface IReportQuery {\r\n\r\n\t// query to retrieve JRXML from database\r\n\tpublic static final String GET_JASPER_REPORT_OBJECT = CustomStringUtil.appendString(\r\n\t\t\t\"SELECT FR.FILE_TYPE, FR.DATA DATA, re.label LABEL FROM JIRESOURCEFOLDER RF, JIRESOURCE RE, JIFILERESOURCE FR\" ,\r\n\t\" WHERE RF.URI LIKE ? AND RF.ID = RE.PARENT_FOLDER AND RE.ID = FR.ID and (FR.FILE_TYPE = 'jrxml' OR FR.FILE_TYPE = 'img') \",\r\n\t\" ORDER BY RE.LABEL \"); // and (ROWNUM <=1 or re.label = 'Main jrxml') //Added order by in order to maintain subreport order in the report\r\n\r\n\t// query to retrieve JRXML from database for given file name\r\n\tpublic static final String GET_JASPER_REPORT_OBJECT_FOR_NAME = CustomStringUtil.appendString(\r\n\t\t\t\"SELECT TOP(1) FR.DATA DATA, re.label LABEL FROM JIRESOURCEFOLDER RF, JIRESOURCE RE, JIFILERESOURCE FR \",\r\n\t\t\t\" WHERE re.label = ? AND RF.ID = RE.PARENT_FOLDER AND RE.ID = FR.ID and FR.FILE_TYPE = 'jrxml'\");\r\n\r\n\r\n\t// query to retrieve input control details of a report\r\n\tpublic static final String GET_INPUT_CONTROL_DETAILS = CustomStringUtil.appendString(\t\t\t\r\n\t\t\t\"\tSELECT RE.LABEL LBL, \t\",\r\n\t\t\t\"\t RUIC.INPUT_CONTROL_ID CONTROLID,\t\",\r\n\t\t\t\"\t RE.NAME LABELID,\t\",\r\n\t\t\t\"\t RUIC.CONTROL_INDEX SEQ, \t\",\r\n\t\t\t\"\t IC.TYPE TYPE, \t\",\r\n\t\t\t\"\t IC.DATA_TYPE DATATYPE, \t\",\r\n\t\t\t\"\t IC.READONLY READ_ONLY, \t\",\r\n\t\t\t\"\t IC.VISIBLE VISIBLE, \t\",\r\n\t\t\t\"\t IC.MANDATORY MANDATORY, \t\",\r\n\t\t\t\"\t IC.QUERY_VALUE_COLUMN QUERY_VALUE_COLUMN, \t\",\r\n\t\t\t\"\t (SELECT DATASOURCE FROM JIQUERY WHERE ID=IC.LIST_QUERY) DATASOURCE,\t\",\r\n\t\t\t\"\t (SELECT SQL_QUERY FROM JIQUERY WHERE ID=IC.LIST_QUERY) SQL_QUERY, \t\",\r\n\t\t\t\"\t STUFF((SELECT ',' + ISNULL(li.label,'') FROM jilistofvaluesitem li WHERE li.id = IC.LIST_OF_VALUES FOR XML PATH('')), 1, 1, '') LIST_OF_VALUES,\t\",\r\n\t\t\t\"\t DT.type FIELD_TYPE, \t\",\r\n\t\t\t\"\t (SUBSTRING(CONVERT(varchar(max),DT.minvalue,2), 16, LEN(CONVERT(varchar(max),DT.minvalue,2)))) MIN_LENGTH, \t\",\r\n\t\t\t\"\t (SUBSTRING(CONVERT(varchar(max),DT.max_value,2), 16, LEN(CONVERT(varchar(max),DT.max_value,2))) ) MAX_LENGTH \t\",\r\n\t\t\t\"\t FROM JIREPORTUNITINPUTCONTROL RUIC \t\",\r\n\t\t\t\"\t JOIN JIRESOURCE RE ON RE.ID = RUIC.INPUT_CONTROL_ID \t\",\r\n\t\t\t\"\t JOIN JIINPUTCONTROL IC ON IC.ID = RUIC.INPUT_CONTROL_ID \t\",\r\n\t\t\t\"\t LEFT JOIN jidatatype DT ON DT.id = IC.DATA_TYPE \t\",\r\n\t\t\t\"\t WHERE REPORT_UNIT_ID = (SELECT RU.ID \t\",\r\n\t\t\t\"\t FROM JIREPORTUNIT RU, \t\",\r\n\t\t\t\"\t JIRESOURCE R, \t\",\r\n\t\t\t\"\t JIRESOURCEFOLDER RF \t\",\r\n\t\t\t\"\t WHERE RU.MAINREPORT = R.ID\t\",\r\n\t\t\t\"\t AND R.PARENT_FOLDER = RF.ID \t\",\r\n\t\t\t\"\t AND RF.URI = ?) \t\",\r\n\t\t\t\"\t ORDER BY SEQ\t\");\r\n\r\n\tpublic static final String GET_ALL_INPUT_CONTROLS = CustomStringUtil.appendString(\r\n\t\t\t\"SELECT distinct RE.NAME LABELID \",\r\n\t\t\t\"FROM JIREPORTUNITINPUTCONTROL RUIC, JIRESOURCE RE, JIINPUTCONTROL IC \",\r\n\t\"WHERE RE.ID = RUIC.INPUT_CONTROL_ID AND RUIC.INPUT_CONTROL_ID = IC.ID\");\r\n\r\n\t/**\r\n\t * @author Joy\r\n\t * It returns all report details for manage reports screen and\r\n\t * retrieve a report based on the report id\r\n\t * */ \r\n\tpublic static final String GET_DASHBOARD_DETAILS = \"FACT.PKG_MANAGE_REPORT$SP_GET_REPORT_LIST(?,?,?)\";\r\n\t\r\n\t/**\r\n\t * @author Joy\r\n\t * Add a new report\r\n\t * */\r\n\tpublic static final String ADD_REPORT = \"FACT.PKG_MANAGE_REPORT$SP_ADD_REPORT(?,?,?,?,?,?,?,?,?,?,?,?)\";\r\n\t\r\n\t/**\r\n\t * @author Joy\r\n\t * Edit a report\r\n\t * */\r\n\tpublic static final String EDIT_REPORT = \"FACT.PKG_MANAGE_REPORT$SP_EDIT_REPORT(?,?,?,?,?,?,?,?,?,?,?,?,?)\";\r\n\t\r\n\t/**\r\n\t * @author Joy\r\n\t * Delete a report\r\n\t * */\r\n\tpublic static final String DELETE_REPORT = \"FACT.PKG_MANAGE_REPORT$SP_DELETE_REPORT(?,?,?,?)\";\r\n\r\n\t// query to group download files\r\n\tpublic static final String GET_GROUP_DOWNLOAD_LIST = CustomStringUtil.appendString(\r\n\t\t\t\"SELECT JT.JOB_ID, JT.JOB_STATUS, JT.REQUEST_TYPE, JT.REQUEST_DETAILS, JT.REQUEST_SUMMARY,\",\r\n\t\t\t\" \t\tJT.EXTRACT_CATEGORY, JT.JOB_NAME, JT.REQUEST_FILENAME REQUEST_FILENAME, \",\r\n\t\t\t\" \t\tISNULL((SELECT DB_PROPERY_VALUE FROM DASH_CONTRACT_PROP \",\r\n\t\t\t\" \t\t\t\tWHERE DB_PROPERTY_NAME = 'static.pdf.location') ,'')+ISNULL(JT.REQUEST_FILENAME,'') S3_KEY, \",\r\n\t\t\t\" \t\tJT.UPDATED_DATE_TIME, JT.CREATED_DATE_TIME, JT.FILE_SIZE FROM JOB_TRACKING JT \",\r\n\t\t\t\" WHERE JT.JOB_STATUS !='DL' AND JT.USERID = ? \",\r\n\t\t\t\" ORDER BY CREATED_DATE_TIME DESC\");\r\n\r\n\t// query to group download request Details\r\n\tpublic static final String GET_GROUP_DOWNLOAD_REQUEST_VIEW = CustomStringUtil.appendString(\r\n\t\"select * from job_tracking where job_Id=?\");\r\n\t\r\n\tpublic static final String GET_ALL_ASSESSMENT_LIST = \"{CALL FACT.PKG_MENU_ACCESS$GET_ALL_ASSESSMENT_LIST(?, ?, ?, ?, ?)}\";\r\n\tpublic static final String GET_GROWTH_ASSESSMENT_LIST = \"{CALL FACT.PKG_MENU_ACCESS$GET_GROWTH_ASSESSMENT_LIST(?, ?, ?, ?, ?)}\";\r\n\tpublic static final String GET_EDU_ASSESSMENT_LIST = \"{CALL FACT.PKG_MENU_ACCESS$GET_EDU_ASSESSMENT_LIST(?, ?, ?, ?, ?)}\";\r\n\tpublic static final String GET_ALL_BUT_GROWTH_ASSESSMENT_LIST = \"{CALL FACT.PKG_MENU_ACCESS$GET_ALL_BUT_GRW_ASS_LIST(?, ?, ?, ?, ?)}\";\r\n\r\n\tpublic static final String GET_LIST_OF_ROLES = CustomStringUtil.appendString(\r\n\t\t\t\"SELECT FACT.SF_GET_LIST_OF_ROLES(?) ROLES\"); \r\n\r\n\tpublic static final String REPORT_TYPE = CustomStringUtil.appendString(\"select REPORT_TYPE as TYPE, DB_REPORTID as ID, \" +\r\n\t\" REPORT_FOLDER_URI As URI from dash_reports WHERE (REPORT_FOLDER_URI = ? OR DB_REPORTID = ?) \");\r\n\r\n\tpublic static final String DELETE_GROUP_FILES = CustomStringUtil.appendString(\"update job_tracking set job_status='DL',updated_date_time=SYSDATETIME() where job_id=?\");\r\n\t\r\n\tpublic static final String DELETE_SCHEDULED_GROUP_FILES = CustomStringUtil.appendString(\"update job_tracking set job_status='DL',\",\r\n\t\t\t\" updated_date_time=SYSDATETIME(),job_log=isnull(job_log,'')+isnull(?,'') \",\r\n\t\t\t\" where job_id=?\");\r\n\t\r\n\t//public static final String GET_DELETE_SCHEDULED_GROUP_DOWNLOAD_LIST = CustomStringUtil.appendString(\"select request_filename,job_id from job_tracking where job_status!='DL' and SYSDATE>=created_date_time+? and request_filename is not null\");\r\n\t\r\n\tpublic static final String GET_DELETE_SCHEDULED_GROUP_DOWNLOAD_LIST = CustomStringUtil.appendString(\r\n\t\t\t\"select request_filename,job_id from job_tracking \",\r\n\t\t\t\" where job_status!='DL' \",\r\n\t\t\t\" and SYSDATETIME() >=dateadd(day, ? , created_date_time)\");\r\n\r\n\tpublic static final String GET_PROCESS_SEQ = \"SELECT NEXT VALUE FOR SEQ_ISTEP_PROCESS_ID STAGING_SEQ\";\r\n\t\r\n\t/*public static final String INSERT_JOB_TRACKING = CustomStringUtil.appendString(\r\n\t\t\t\t\t\"INSERT INTO JOB_TRACKING\",\r\n\t\t\t\t\t\" (JOB_ID, USERID,\",\r\n\t\t\t\t\t\" JOB_NAME, EXTRACT_STARTDATE, EXTRACT_CATEGORY, EXTRACT_FILETYPE, REQUEST_TYPE, REQUEST_SUMMARY,\",\r\n\t\t\t\t\t\" REQUEST_DETAILS,\",\r\n\t\t\t\t\t\" REQUEST_FILENAME, REQUEST_EMAIL, JOB_LOG, JOB_STATUS,\",\r\n\t\t\t\t\t\" ADMINID, CUSTOMERID, CREATED_DATE_TIME, OTHER_REQUEST_PARAMS) VALUES \",\r\n\t\t\t\t\t\"(?, (SELECT USERID FROM USERS WHERE UPPER(USERNAME) = UPPER(?) ), ?, SYSDATE,\",\r\n\t\t\t\t\t\"?, ?, ?, ?, ?, ?, ?, ?, ?, (SELECT ADMINID FROM CUST_PRODUCT_LINK WHERE CUSTOMERID=? AND PRODUCTID=? AND ROWNUM=1),\",\r\n\t\t\t\t\t\" ?, SYSDATE, ?)\");*/\r\n\t\r\n\tpublic static final String INSERT_JOB_TRACKING = \"{ CALL FACT.PKG_GROUP_DOWNLOADS_MO$SP_ADD_JOB_TRACKING(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}\";\r\n\t\r\n\tpublic static final String INSERT_JOB_TRACKING_DATE = CustomStringUtil.appendString(\r\n\t\t\t\" insert into JOB_TRACKING(job_id,userid, job_name,extract_startdate,extract_enddate,\",\r\n\t\t\t\" extract_category,extract_filetype,request_type, request_summary,request_details,request_filename, \",\r\n\t\t\t\" request_email,job_log,job_status,adminid, customerid,created_date_time,updated_date_time, OTHER_REQUEST_PARAMS) \",\r\n\t\t\t\" SELECT ?,?,?,CONVERT(datetime2(0), ?,101),CONVERT(datetime2(0), ?,101),?,?,?,?,?,?,?,?,?, \",\r\n\t\t\t\" (select adminid from admin_dim Where is_current_admin = 'Y'),?,SYSDATETIME(),SYSDATETIME(),?\");\r\n\t\r\n\tpublic static final String INSERT_JOB_TRACKING_DEFAULT_DATE = CustomStringUtil.appendString(\r\n\t\t\t\" insert into JOB_TRACKING(job_id,userid, job_name,extract_startdate,extract_enddate, \",\r\n\t\t\t\" extract_category,extract_filetype,request_type, request_summary,request_details,request_filename, \",\r\n\t\t\t\" request_email,job_log,job_status,adminid, customerid,created_date_time,updated_date_time, OTHER_REQUEST_PARAMS) \",\r\n\t\t\t\" select ?,?,?,SYSDATETIME(),dateadd(day, 10, SYSDATETIME()),?,?,?,?,?,?,?,?,?, \",\r\n\t\t\t\" (select adminid from admin_dim Where is_current_admin = 'Y'),?,SYSDATETIME(),SYSDATETIME(),?\");\r\n\t\r\n\tpublic static final String UPDATE_JOB_TRACKING = \"UPDATE JOB_TRACKING SET EXTRACT_ENDDATE=dateadd(day, #, SYSDATETIME()), REQUEST_FILENAME=?, REQUEST_SUMMARY=?, JOB_LOG=?, JOB_STATUS=?, UPDATED_DATE_TIME=,SYSDATETIME(), FILE_SIZE=? WHERE JOB_ID=?\";\r\n\t\r\n\tpublic static final String UPDATE_FILENAME_JOB_TRACKING=\"UPDATE JOB_TRACKING SET REQUEST_FILENAME=?,UPDATED_DATE_TIME=SYSDATETIME() WHERE JOB_ID=?\";\t\r\n\t\r\n\tpublic static final String GET_FILENAME_GD = CustomStringUtil.appendString(\r\n\t\t\t\" SELECT DISTINCT TOP(1) 'IN'+ISNULL(FACT.TEST_DATE,'')+'.'+ISNULL(FACT.ISTEP_TEST_NAME,'')+'.'+ISNULL(FACT.ORGTSTGPGM,'') \",\r\n\t\t\t\" +'.'+ISNULL(DISTRICT.ORG_NODE_NAME,'')+'.'+ISNULL(CONVERT(varchar(100),DISTRICT.ORG_NODEID),'')+'.'+ISNULL( SCHOOL.ORG_NODE_NAME,'') \",\r\n\t\t\t\" +'.'+ISNULL(CONVERT(varchar(100),SCHOOL.ORG_NODEID),'')+'.'+ISNULL(CONVERT(varchar(100),FACT.GRADEID),'') /*STUDENTELEMENTNO ||'.'|| RESORTID */ FILE_NAME\",\r\n\t\t\t\" FROM ORG_NODE_DIM DISTRICT, ORG_NODE_DIM SCHOOL, ORG_LSTNODE_LINK LINK1, ORG_LSTNODE_LINK LINK2, RESULTS_GRT_FACT FACT \",\r\n\t\t\t\" WHERE FACT.ORG_NODEID IN (SELECT DISTINCT ORG_NODEID FROM ORG_NODE_DIM \",\r\n\t\t\t\" WHERE PARENT_ORG_NODEID=?) \",\r\n\t\t\t\" AND FACT.ORG_NODEID = LINK2.ORG_LSTNODEID AND LINK2.ORG_NODEID = DISTRICT.ORG_NODEID AND DISTRICT.ORG_NODE_LEVEL = 2 \",\r\n\t\t\t\" AND DISTRICT.ORG_NODEID = SCHOOL.PARENT_ORG_NODEID AND SCHOOL.ORG_NODEID = LINK1.ORG_NODEID AND LINK1.ORG_LSTNODEID = FACT.ORG_NODEID \",\r\n\t\t\t\" AND SCHOOL.ORG_NODE_LEVEL = 3\"\r\n\t\t\t);\r\n\r\n\tpublic static final String GET_REQUEST_SUMMARY = CustomStringUtil.appendString(\r\n\t\t\t\"SELECT 'EXTRACT_STARTDATE' [KEY], CONVERT(varchar(100),CONVERT(datetime2(0),EXTRACT_STARTDATE),113) VALUE \",\r\n\t\t\t\" FROM JOB_TRACKING WHERE JOB_ID = ? UNION ALL SELECT 'PRODUCT_NAME' [KEY], PRODUCT_NAME VALUE FROM PRODUCT \",\r\n\t\t\t\" WHERE PRODUCTID = ? UNION ALL SELECT 'GRADE_NAME' [KEY], GRADE_NAME VALUE FROM GRADE_DIM WHERE GRADEID = ? \",\r\n\t\t\t\" UNION ALL \",\r\n\t\t\t\" SELECT CONVERT(varchar(100),ORG_NODEID) [KEY], ORG_NODE_NAME VALUE FROM ORG_NODE_DIM WHERE ORG_NODEID IN (~)\"\r\n\t\t\t);\r\n\tpublic static final String GET_STUDENT_SELECTION_STATISTICS = CustomStringUtil.appendString(\r\n\t\t\t\"SELECT COUNT(DISTINCT SCHOOL.ORG_NODE_NAME) SCHOOLS,\",\r\n\t\t\t\" COUNT(DISTINCT CLASS.ORG_NODE_NAME) CLASSES,\",\r\n\t\t\t\" COUNT(SBD.STUDENT_BIO_ID) STUDENTS\",\r\n\t\t\t\" FROM STUDENT_BIO_DIM SBD, ORG_NODE_DIM CLASS, ORG_NODE_DIM SCHOOL\",\r\n\t\t\t\" WHERE SBD.ORG_NODEID = CLASS.ORG_NODEID\",\r\n\t\t\t\" AND CLASS.PARENT_ORG_NODEID = SCHOOL.ORG_NODEID\",\r\n\t\t\t\" AND CLASS.ORG_NODE_LEVEL = 4\",\r\n\t\t\t\" AND SCHOOL.ORG_NODE_LEVEL = 3\",\r\n\t\t\t\"AND SBD.STUDENT_BIO_ID IN (~)\"\r\n\t\t\t);\r\n\t\r\n\tpublic static final String GET_ALL_MENUS = CustomStringUtil.appendString(\r\n\t\t\t\" SELECT DB_MENUID,MENU_NAME,DESCRIPTION FROM DASH_MENUS\"\r\n\t\t\t);\r\n}", "title": "" }, { "docid": "47fc0d741510d2629fbf2ca3058df236", "score": "0.53206575", "text": "@PostMapping(\"/rns-quotations-detail-reports\")\n @Timed\n public @ResponseBody void getAllRnsQuotationsDetailReports(@RequestBody RnsQuotationSearch rnsQuotationSearch, HttpServletResponse response) {\n log.debug(\"REST request to get all RnsQuotations\");\n //Criteria Builder\n String id = \"%\";\n String projectTitle=\"%\";\n\n //End Criteria Builder\n List<RnsQuotationDetailReportBean> rnsQuotationList = new ArrayList<RnsQuotationDetailReportBean>();\n CriteriaBuilder builder = entityManager.getCriteriaBuilder();\n CriteriaQuery<RnsQuotation> cq = builder.createQuery(RnsQuotation.class);\n Root<RnsQuotation> root = cq.from(RnsQuotation.class);\n cq.select(root);\n Predicate predicate = builder.conjunction();\n if(rnsQuotationSearch.getTitle()!=null && rnsQuotationSearch.getTitle().length()>0)\n {\n predicate = builder.and(predicate, builder.like(builder.upper(root.get(\"projectTitle\")),\"%\"+rnsQuotationSearch.getTitle().toUpperCase()+\"%\"));\n }\n if(rnsQuotationSearch.getDateFrom()!=null && rnsQuotationSearch.getDateTo()!=null){\n try {\n System.out.println(\"Date Range \"+rnsQuotationSearch.getDateFrom()+\" \"+rnsQuotationSearch.getDateTo());\n predicate = builder.and(predicate, builder.between(builder.function(\"TRUNC\",java.time.Instant.class,root.get(\"createdOn\")), new SimpleDateFormat(\"yyyy-MM-dd\").parse(rnsQuotationSearch.getDateFrom()).toInstant(), new SimpleDateFormat(\"yyyy-MM-dd\").parse(rnsQuotationSearch.getDateTo()).toInstant()));\n } catch(ParseException pe){System.out.println(\"RnsQuotationResource \"+pe.getMessage());}\n\n }\n if(rnsQuotationSearch.getCatgCode()!=null){\n predicate = builder.and(predicate, builder.equal(root.get(\"rnsCatgCode\"),rnsQuotationSearch.getCatgCode()));\n }\n\n if(rnsQuotationSearch.getProjectType()!=null && rnsQuotationSearch.getProjectType().length()>0){\n predicate = builder.and(predicate, builder.like(root.get(\"quoteType\"),rnsQuotationSearch.getProjectType()+\"%\"));\n }\n\n if(rnsQuotationSearch.getSourceTeam()!=null && rnsQuotationSearch.getSourceTeam().length()>0){\n predicate = builder.and(predicate, builder.equal(root.get(\"sourceTeam\"),rnsQuotationSearch.getSourceTeam()));\n }\n if(rnsQuotationSearch.getId()>0)\n {\n predicate = builder.and(builder.equal(root.get(\"id\"),rnsQuotationSearch.getId()));\n }\n cq.where(predicate);\n cq.orderBy(builder.desc(root.get(\"id\")));\n\n List<RnsQuotation> quotationList = null;\n try {\n quotationList = entityManager.createQuery(cq.select(root)).getResultList();\n } catch(Exception e){}\n if(quotationList!=null && quotationList.size()>0) {\n List<Long> userCatgList = getAllRnsCatgMasters();\n Map<String, RnsSourceTeamMaster> mapSourceTeam = new HashMap<String, RnsSourceTeamMaster>();\n Map<String, Template> mapTemplate = new HashMap<String, Template>();\n Map<String, RnsDelTermsMaster> rnsDelTermsMasterMap = new HashMap<String, RnsDelTermsMaster>();\n Map<String, RnsTaxTermsMaster> rnsTaxTermsMasterMap = new HashMap<String, RnsTaxTermsMaster>();\n Map<String, RnsDelPlaceMaster> rnsDelPlaceMasterMap = new HashMap<String, RnsDelPlaceMaster>();\n Map<String, RnsPayTermsMaster> rnsPayTermsMasterMap = new HashMap<String, RnsPayTermsMaster>();\n for (RnsQuotation quotationData : quotationList) {\n Long quotationId = quotationData.getId();\n if (userCatgList != null && userCatgList.contains(quotationData.getRnsCatgCode().getId())) {\n List<RnsQuotationVariant> rnsQuotationVariants = rnsQuotationVariantRepository.getRnsQuotationVariantByQuotation(quotationData.getId());\n for(RnsQuotationVariant rnsQuotationVariant : rnsQuotationVariants) {\n RnsQuotationDetailReportBean rnsQuotationDetailReportBean = new RnsQuotationDetailReportBean();\n rnsQuotationDetailReportBean.setId(quotationData.getId());\n rnsQuotationDetailReportBean.setCreatedOn(Timestamp.from(quotationData.getCreatedOn()));\n rnsQuotationDetailReportBean.setCreatedBy(quotationData.getUser().getFirstName() + \" \" + quotationData.getUser().getLastName());\n if(quotationData.getUpdatedUser()!=null) {\n rnsQuotationDetailReportBean.setUpdatedBy(quotationData.getUpdatedUser().getFirstName() + \" \" + quotationData.getUpdatedUser().getLastName());\n rnsQuotationDetailReportBean.setUpdatedDate(Timestamp.from(quotationData.getUpdatedDate()));\n }\n rnsQuotationDetailReportBean.setEventType(quotationData.getEventType());\n if(mapSourceTeam.containsKey(quotationData.getSourceTeam())){\n RnsSourceTeamMaster rnsSourceTeamMaster = mapSourceTeam.get(quotationData.getSourceTeam());\n rnsQuotationDetailReportBean.setSourceTeam(rnsSourceTeamMaster.getDescription());\n } else {\n RnsSourceTeamMaster rnsSourceTeamMaster = rnsSourceTeamMasterRepository.findById(Long.parseLong(quotationData.getSourceTeam())).orElse(new RnsSourceTeamMaster());\n rnsQuotationDetailReportBean.setSourceTeam(rnsSourceTeamMaster.getDescription());\n mapSourceTeam.put(quotationData.getSourceTeam(), rnsSourceTeamMaster);\n }\n rnsQuotationDetailReportBean.setQuoteType(quotationData.getQuoteType());\n rnsQuotationDetailReportBean.setPchCode(quotationData.getPchCode());\n rnsQuotationDetailReportBean.setCrmRequestNumber(quotationData.getCrmRequestNumber());\n if(quotationData.getTargetPcd()!=null) {\n rnsQuotationDetailReportBean.setTargetPcd(Date.from(quotationData.getTargetPcd().atStartOfDay(ZoneId.systemDefault()).toInstant()));\n }\n rnsQuotationDetailReportBean.setRequestedBy(quotationData.getRequestedBy());\n rnsQuotationDetailReportBean.setBuyerCode(quotationData.getBuyerCode());\n rnsQuotationDetailReportBean.setBuyerName(quotationData.getBuyerName());\n rnsQuotationDetailReportBean.setInternalRemarks(quotationData.getInternalRemarks());\n rnsQuotationDetailReportBean.setMerchantRemarks(quotationData.getMerchantRemarks());\n rnsQuotationDetailReportBean.setArticleCode(quotationData.getArticleCode());\n rnsQuotationDetailReportBean.setArticleDesc(quotationData.getArticleDesc());\n rnsQuotationDetailReportBean.setCatgCode(quotationData.getRnsCatgCode().getCatgCodeDesc());\n rnsQuotationDetailReportBean.setLotNumber(rnsQuotationVariant.getTitle());\n Template template = null;\n if(mapTemplate.containsKey(quotationData.getTemplate())){\n template = mapTemplate.get(quotationData.getTemplate());\n } else {\n template = templateRepository.findById(new Long(quotationData.getTemplate())).orElse(new Template());\n mapTemplate.put(quotationData.getTemplate(), template);\n }\n rnsQuotationDetailReportBean.setVarDescSpec1(template.getSpecificationOne());\n rnsQuotationDetailReportBean.setVarDescSpec2(template.getSpecificationTwo());\n rnsQuotationDetailReportBean.setVarDescSpec3(template.getSpecificationThree());\n rnsQuotationDetailReportBean.setVarDescSpec4(template.getSpecificationFour());\n rnsQuotationDetailReportBean.setVarDescSpec5(template.getSpecificationFive());\n rnsQuotationDetailReportBean.setVarDescSpec6(template.getSpecificationSix());\n rnsQuotationDetailReportBean.setVarDescSpec7(template.getSpecificationSeven());\n rnsQuotationDetailReportBean.setVarDescSpec8(template.getSpecificationEight());\n rnsQuotationDetailReportBean.setVarDescSpec9(template.getSpecificationNine());\n rnsQuotationDetailReportBean.setVarDescSpec10(template.getSpecificationTen());\n\n rnsQuotationDetailReportBean.setVarDescSpec1Value(rnsQuotationVariant.getVarDescSpec1Value());\n rnsQuotationDetailReportBean.setVarDescSpec2Value(rnsQuotationVariant.getVarDescSpec2Value());\n rnsQuotationDetailReportBean.setVarDescSpec3Value(rnsQuotationVariant.getVarDescSpec3Value());\n rnsQuotationDetailReportBean.setVarDescSpec4Value(rnsQuotationVariant.getVarDescSpec4Value());\n rnsQuotationDetailReportBean.setVarDescSpec5Value(rnsQuotationVariant.getVarDescSpec5Value());\n rnsQuotationDetailReportBean.setVarDescSpec6Value(rnsQuotationVariant.getVarDescSpec6Value());\n rnsQuotationDetailReportBean.setVarDescSpec7Value(rnsQuotationVariant.getVarDescSpec7Value());\n rnsQuotationDetailReportBean.setVarDescSpec8Value(rnsQuotationVariant.getVarDescSpec8Value());\n rnsQuotationDetailReportBean.setVarDescSpec9Value(rnsQuotationVariant.getVarDescSpec9Value());\n rnsQuotationDetailReportBean.setVarDescSpec10Value(rnsQuotationVariant.getVarDescSpec10Value());\n\n try {\n if (rnsQuotationVariant.getTaxTerms() != null && rnsQuotationVariant.getTaxTerms().length() > 0) {\n if(rnsTaxTermsMasterMap.containsKey(rnsQuotationVariant.getTaxTerms())) {\n RnsTaxTermsMaster rnsTaxTermsMaster = rnsTaxTermsMasterMap.get(rnsQuotationVariant.getTaxTerms());\n if (rnsTaxTermsMaster != null) {\n rnsQuotationDetailReportBean.setTaxTerms(rnsQuotationVariant.getTaxTerms());\n rnsQuotationDetailReportBean.setDealtermsTaxTermsDesc(rnsTaxTermsMaster.getTaxTermsDesc());\n }\n } else{\n RnsTaxTermsMaster rnsTaxTermsMaster = rnsTaxTermsMasterRepository.findByTaxTermsCode(rnsQuotationVariant.getTaxTerms());\n if (rnsTaxTermsMaster != null) {\n rnsQuotationDetailReportBean.setTaxTerms(rnsQuotationVariant.getTaxTerms());\n rnsQuotationDetailReportBean.setDealtermsTaxTermsDesc(rnsTaxTermsMaster.getTaxTermsDesc());\n rnsTaxTermsMasterMap.put(rnsQuotationVariant.getTaxTerms(), rnsTaxTermsMaster);\n }\n }\n }\n if (rnsQuotationVariant.getDealtermPaymentTerms() != null && rnsQuotationVariant.getDealtermPaymentTerms().length() > 0) {\n if(rnsPayTermsMasterMap.containsKey(rnsQuotationVariant.getDealtermPaymentTerms())) {\n RnsPayTermsMaster rnsPayTermsMaster = rnsPayTermsMasterMap.get(rnsQuotationVariant.getDealtermPaymentTerms());\n if (rnsPayTermsMaster != null) {\n rnsQuotationDetailReportBean.setDealtermPaymentTerms(rnsQuotationVariant.getDealtermPaymentTerms());\n rnsQuotationDetailReportBean.setDealtermPaymentTermsDesc(rnsPayTermsMaster.getPayTermsCodeDesc());\n }\n } else{\n RnsPayTermsMaster rnsPayTermsMaster = rnsPayTermsMasterRepository.findByPayTermsCode(rnsQuotationVariant.getDealtermPaymentTerms());\n if (rnsPayTermsMaster != null) {\n rnsQuotationDetailReportBean.setDealtermPaymentTerms(rnsQuotationVariant.getDealtermPaymentTerms());\n rnsQuotationDetailReportBean.setDealtermPaymentTermsDesc(rnsPayTermsMaster.getPayTermsCodeDesc());\n rnsPayTermsMasterMap.put(rnsQuotationVariant.getDealtermPaymentTerms(), rnsPayTermsMaster);\n }\n }\n }\n if (rnsQuotationVariant.getDealtermDeliveryTerms() != null && rnsQuotationVariant.getDealtermDeliveryTerms().length() > 0) {\n if(rnsDelTermsMasterMap.containsKey(rnsQuotationVariant.getDealtermDeliveryTerms())) {\n RnsDelTermsMaster rnsDelTermsMaster = rnsDelTermsMasterMap.get(rnsQuotationVariant.getDealtermDeliveryTerms());\n if (rnsDelTermsMaster != null) {\n rnsQuotationDetailReportBean.setDealtermDeliveryTerms(rnsQuotationVariant.getDealtermDeliveryTerms());\n rnsQuotationDetailReportBean.setDealtermDeliveryTermsDesc(rnsDelTermsMaster.getDelTermsCodeDesc());\n }\n } else{\n RnsDelTermsMaster rnsDelTermsMaster = rnsDelTermsMasterRepository.findByDelTermsCode(rnsQuotationVariant.getDealtermDeliveryTerms());\n if (rnsDelTermsMaster != null) {\n rnsQuotationDetailReportBean.setDealtermDeliveryTerms(rnsQuotationVariant.getDealtermDeliveryTerms());\n rnsQuotationDetailReportBean.setDealtermDeliveryTermsDesc(rnsDelTermsMaster.getDelTermsCodeDesc());\n rnsDelTermsMasterMap.put(rnsQuotationVariant.getDealtermDeliveryTerms(), rnsDelTermsMaster);\n }\n }\n }\n if (rnsQuotationVariant.getDealtermDeliverAt() != null && rnsQuotationVariant.getDealtermDeliverAt().length() > 0) {\n if(rnsDelPlaceMasterMap.containsKey(rnsQuotationVariant.getDealtermDeliverAt())) {\n RnsDelPlaceMaster rnsDelPlaceMaster = rnsDelPlaceMasterMap.get(rnsQuotationVariant.getDealtermDeliverAt());\n if (rnsDelPlaceMaster != null) {\n rnsQuotationDetailReportBean.setDealtermDeliverAt(rnsQuotationVariant.getDealtermDeliverAt());\n rnsQuotationDetailReportBean.setDealtermsDelPlaceDesc(rnsDelPlaceMaster.getCodeDesc());\n }\n } else{\n RnsDelPlaceMaster rnsDelPlaceMaster = rnsDelPlaceMasterRepository.findByDelPlaceCode(rnsQuotationVariant.getDealtermDeliverAt());\n if (rnsDelPlaceMaster != null) {\n rnsQuotationDetailReportBean.setDealtermDeliverAt(rnsQuotationVariant.getDealtermDeliverAt());\n rnsQuotationDetailReportBean.setDealtermsDelPlaceDesc(rnsDelPlaceMaster.getCodeDesc());\n rnsDelPlaceMasterMap.put(rnsQuotationVariant.getDealtermDeliverAt(), rnsDelPlaceMaster);\n }\n }\n }\n } catch(Exception e){System.out.println(\"RnsQuotationResource getRnsAuctionQuotationFullDetails()\"+ e.getMessage());}\n\n rnsQuotationDetailReportBean.setOrderQuantity(rnsQuotationVariant.getOrderQuantity());\n rnsQuotationDetailReportBean.setOrderUom(rnsQuotationVariant.getOrderUom());\n rnsQuotationDetailReportBean.setHistoricalPrice(rnsQuotationVariant.getHistoricalPrice());\n rnsQuotationDetailReportBean.setCurrency(rnsQuotationVariant.getCurrency());\n rnsQuotationDetailReportBean.setOpenCosting(rnsQuotationVariant.getOpenCosting());\n rnsQuotationDetailReportBean.setRemarks(rnsQuotationVariant.getRemarks());\n List<RnsFileUpload> rnsFileUploads = rnsFileUploadRepository.findAll(rnsQuotationVariant.getId(), \"L\");\n if(rnsFileUploads !=null && rnsFileUploads.size()>0) {\n rnsQuotationDetailReportBean.setAttachments(\"Yes\");\n } else {\n rnsQuotationDetailReportBean.setAttachments(\"No\");\n }\n\n AuctionVrnt auctionVrnt = auctionVrntRepository.getAuctionVrntbyVariant(rnsQuotationVariant.getId());\n if (auctionVrnt != null) {\n rnsQuotationDetailReportBean.setTextOne(auctionVrnt.getTextOne());\n rnsQuotationDetailReportBean.setUomOne(auctionVrnt.getUomOne());\n rnsQuotationDetailReportBean.setConvFactOne(auctionVrnt.getConvFactOne());\n rnsQuotationDetailReportBean.setTextTwo(auctionVrnt.getTextTwo());\n rnsQuotationDetailReportBean.setUomTwo(auctionVrnt.getUomTwo());\n rnsQuotationDetailReportBean.setConvFactTwo(auctionVrnt.getConvFactTwo());\n rnsQuotationDetailReportBean.setTextThree(auctionVrnt.getTextThree());\n rnsQuotationDetailReportBean.setUomThree(auctionVrnt.getUomThree());\n rnsQuotationDetailReportBean.setConvFactThree(auctionVrnt.getConvFactThree());\n rnsQuotationDetailReportBean.setTextFour(auctionVrnt.getTextFour());\n rnsQuotationDetailReportBean.setUomFour(auctionVrnt.getUomFour());\n rnsQuotationDetailReportBean.setConvFactFour(auctionVrnt.getConvFactFour());\n rnsQuotationDetailReportBean.setTextFive(auctionVrnt.getTextFive());\n rnsQuotationDetailReportBean.setUomFive(auctionVrnt.getUomFive());\n rnsQuotationDetailReportBean.setConvFactFive(auctionVrnt.getConvFactFive());\n rnsQuotationDetailReportBean.setTextSix(auctionVrnt.getTextSix());\n rnsQuotationDetailReportBean.setUomSix(auctionVrnt.getUomSix());\n rnsQuotationDetailReportBean.setConvFactSix(auctionVrnt.getConvFactSix());\n rnsQuotationDetailReportBean.setTextSeven(auctionVrnt.getTextSeven());\n rnsQuotationDetailReportBean.setUomSeven(auctionVrnt.getUomSeven());\n rnsQuotationDetailReportBean.setConvFactSeven(auctionVrnt.getConvFactSeven());\n rnsQuotationDetailReportBean.setTextEight(auctionVrnt.getTextEight());\n rnsQuotationDetailReportBean.setUomEight(auctionVrnt.getUomEight());\n rnsQuotationDetailReportBean.setConvFactEight(auctionVrnt.getConvFactEight());\n rnsQuotationDetailReportBean.setTextNine(auctionVrnt.getTextNine());\n rnsQuotationDetailReportBean.setUomNine(auctionVrnt.getUomNine());\n rnsQuotationDetailReportBean.setConvFactNine(auctionVrnt.getConvFactNine());\n rnsQuotationDetailReportBean.setTextTen(auctionVrnt.getTextTen());\n rnsQuotationDetailReportBean.setUomTen(auctionVrnt.getUomTen());\n rnsQuotationDetailReportBean.setConvFactTen(auctionVrnt.getConvFactTen());\n }\n if(quotationData.getRfqPublishDate()!=null){\n rnsQuotationDetailReportBean.setRfqSent(\"Yes\");\n } else{\n rnsQuotationDetailReportBean.setRfqSent(\"No\");\n }\n\n if(quotationData.getAuctionPublishDate()!=null){\n rnsQuotationDetailReportBean.setRfbSent(\"Yes\");\n } else{\n rnsQuotationDetailReportBean.setRfbSent(\"No\");\n }\n rnsQuotationList.add(rnsQuotationDetailReportBean);\n }\n }\n }\n }\n String path = applicationProperties.getTemplatePath()+\"jasper/\";\n try {\n JasperDesign jasperDesign = JRXmlLoader.load(path+\"/quotationDetails.jrxml\");\n JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);\n Map<String,Object> parameters = new HashMap<String, Object>();\n JRDataSource jrDataSource = new JRBeanCollectionDataSource(rnsQuotationList);\n parameters.put(\"datasource\", jrDataSource);\n JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,parameters, jrDataSource);\n if(rnsQuotationSearch.getType() !=null && rnsQuotationSearch.getType().equalsIgnoreCase(\"CSV\")) {\n response.setContentType(\"application/octet-stream\");\n response.setHeader(\"Content-Disposition\", \"attachment; filename=rnsQuotationDetails.csv\");\n JRCsvExporter exporter = new JRCsvExporter();\n exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\n OutputStream ouputStream = response.getOutputStream();\n exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, ouputStream);\n exporter.exportReport();\n } else if(rnsQuotationSearch.getType() !=null && rnsQuotationSearch.getType().equalsIgnoreCase(\"XLSX\")) {\n response.setContentType(\"application/vnd.ms-excel\");\n response.setHeader(\"Content-Disposition\", \"attachment; filename=rnsQuotationDetails.xlsx\");\n JRXlsxExporter exporter = new JRXlsxExporter();\n exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\n OutputStream ouputStream = response.getOutputStream();\n exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, ouputStream);\n exporter.exportReport();\n } else if(rnsQuotationSearch.getType() !=null && rnsQuotationSearch.getType().equalsIgnoreCase(\"PDF\")){\n response.setContentType(\"application/x-pdf\");\n response.setHeader(\"Content-Disposition\",\"attachment; filename=templateMasters.pdf\");\n final OutputStream outputStream = response.getOutputStream();\n JasperExportManager.exportReportToPdfStream(jasperPrint,outputStream);\n }\n } catch (JRException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "287fd41311cf170ac12f1d45c6cc0ec1", "score": "0.5308475", "text": "private String getWhereClause() {\n\n String whereClause = \"\";\n\n whereClause = \" a.ad_client_id =\" + this.adClientID;\n\n if (this.adOrgID > 0){\n whereClause += \" and a.ad_org_id =\" + this.adOrgID;\n }\n\n if (this.cBPartnerID > 0){\n whereClause += \" and a.c_bpartner_id =\" + this.cBPartnerID;\n }\n\n if (this.cBpGroupID > 0){\n whereClause += \" and bp.c_bp_group_id =\" + this.cBpGroupID;\n }\n\n if (this.cCurrencyID > 0){\n whereClause += \" and a.c_currency_id =\" + this.cCurrencyID;\n }\n\n if (this.tipoFecha.equalsIgnoreCase(\"VALOR\")){\n whereClause += \" and a.datedoc between '\" + this.startDate + \"' AND '\" + this.endDate + \"'\";\n }\n else if (this.tipoFecha.equalsIgnoreCase(\"VENCIMIENTO\")){\n whereClause += \" and a.duedate between '\" + this.startDate + \"' AND '\" + this.endDate + \"'\";\n }\n else if (this.tipoFecha.equalsIgnoreCase(\"ACCT\")){\n whereClause += \" and a.dateacct between '\" + this.startDate + \"' AND '\" + this.endDate + \"'\";\n }\n\n if (this.tipoSocioNegocio.equalsIgnoreCase(\"CLIENTES\")){\n whereClause += \" and a.TipoSocioNegocio ='CLIENTES'\";\n }\n else if (this.tipoSocioNegocio.equalsIgnoreCase(\"PROVEEDORES\")){\n whereClause += \" and a.TipoSocioNegocio ='PROVEEDORES'\";\n }\n\n return whereClause;\n }", "title": "" }, { "docid": "0cf93a9b70271eeaebf2aacbc1b9b38d", "score": "0.5306461", "text": "@Override\r\n\t\t\tpublic Predicate toPredicate(Root<Dan> root, CriteriaQuery<?> query, CriteriaBuilder cb) {\r\n\t\t\t\tList<Predicate> list = new ArrayList<Predicate>();\r\n\t\t\t\tif (StringUtils.isNotBlank(d_balname)) {\r\n//\t\t\t\t\tSystem.out.println(\"888888888\");\r\n\t list.add(cb.equal(root.get(\"borrow_name\").as(String.class), d_balname));\r\n\t list.add(cb.equal(root.get(\"lend_name\").as(String.class), d_balname));\r\n//\t\t\t\t\tPredicate p1 = cb.equal(root.get(\"borrow_name\").as(String.class), d_balname);\r\n//\t\t\t\t\tPredicate p2 = cb.equal(root.get(\"lend_name\").as(String.class), d_balname);\r\n//\t\t\t\t\tp3 = cb.or(p1,p2);\r\n\t }\r\n\r\n\t if (StringUtils.isNotBlank(d_state)) {\r\n//\t \tSystem.out.println(\"777777777\");\r\n\t list.add(cb.equal(root.get(\"dan_state\").as(String.class), d_state));\r\n//\t \tPredicate p4 = cb.equal(root.get(\"dan_state\").as(String.class), d_state);\r\n//\t \tp6 = cb.and(p4,p3);\r\n\t }\r\n\r\n\t if (StringUtils.isNotBlank(d_pay_data)&&StringUtils.isBlank(d_pay_data1)) {\r\n//\t \tSystem.out.println(\"22222222\");\r\n\t \tlist.add(cb.equal(root.get(\"pay_data\").as(String.class), d_pay_data));\r\n//\t \tPredicate p7 = cb.equal(root.get(\"pay_data\").as(Dan.class), d_pay_data);\r\n//\t \tp8 = cb.and(p6,p7);\r\n\t }\r\n\r\n\t if (StringUtils.isNotBlank(d_pay_data)&&StringUtils.isNotBlank(d_pay_data1)) {\r\n//\t \tSystem.out.println(\"111111\");\r\n\t \tlist.add(cb.lessThanOrEqualTo(root.get(\"pay_data\").as(String.class), d_pay_data1));\r\n\t \tlist.add(cb.greaterThanOrEqualTo(root.get(\"pay_data\").as(String.class), d_pay_data));\r\n//\t \tPredicate p7 = cb.lessThanOrEqualTo(root.get(\"pay_data\").as(String.class), d_pay_data1);\r\n//\t \tp9 = cb.and(p8,p7);\r\n\t }\r\n//\t System.out.println(\"111111\");\r\n\t if(StringUtils.isNotBlank(d_balname)) {\r\n\t \tint i = list.size();\r\n\t \tif(i == 2)\r\n\t \t\treturn cb.or(list.get(0),list.get(1));\r\n\t \tif(i == 3)\r\n\t \t\treturn cb.and(list.get(2),cb.or(list.get(0),list.get(1)));\r\n\t \tif(i == 4)\r\n\t \t\treturn cb.and(list.get(3),cb.and(list.get(2),cb.or(list.get(1),list.get(0))));\r\n\t \tif(i == 5)\r\n\t \t\treturn cb.and(list.get(4),cb.and(list.get(3),cb.and(list.get(2),cb.or(list.get(1),list.get(0)))));\r\n\t }\r\n\t \tPredicate[] p = new Predicate[list.size()];\r\n\t return cb.and(list.toArray(p));\r\n// Predicate[] p = new Predicate[list.size()];\r\n// return cb.and(list.get(3),cb.and(list.get(2),cb.or(list.get(1),list.get(0))));\r\n\t }", "title": "" }, { "docid": "8f9807cc9796e9c551135e57d590a045", "score": "0.52943903", "text": "private String getQuerySql() throws Exception {\n\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\" select h.pk_rept4 , \");\n\t\tsql.append(\" h.sdate , \");\n\t\tsql.append(\" h.ddate ,\");\n\t\tsql.append(\" h.pk_corp ,\");\n\t\tsql.append(\" h.dmakedate ,\");\n\t\tsql.append(\" h.pk_accsubj ,\");\n\t\tsql.append(\" h.checkvalue ,\");\n\t\tsql.append(\" h.num20 ,\");\n\t\tsql.append(\" h.num21 ,\");\n\t\tsql.append(\" h.num22 ,\");\n\t\tsql.append(\" h.num23 ,\");\n\t\tsql.append(\" h.num1 ,\");\n\t\tsql.append(\" h.num2 ,\");\n\t\tsql.append(\" h.num3 ,\");\n\t\tsql.append(\" h.num4 ,\");\n\t\tsql.append(\" h.num5 ,\");\n\t\tsql.append(\" h.num6 ,\");\n\t\tsql.append(\" h.num7 ,\");\n\t\tsql.append(\" h.num8 ,\");\n\t\tsql.append(\" h.num9 ,\");\n\t\tsql.append(\" h.num10 \");\n\t\tsql.append(\" from hd_rept4 h \");\n\t\tsql.append(\" where \");\n\t\tsql.append(\" isnull(h.dr,0)=0 \");\n\t\tsql.append(\" and h.pk_corp='\"\n\t\t\t\t+ ClientEnvironment.getInstance().getCorporation()\n\t\t\t\t\t\t.getPrimaryKey() + \"'\");\n\n\t\tif (getQuerySQL() != null && getQuerySQL().length() != 0) {\n\t\t\tString wheresql = \" \";\n\t\t\tQueryDLG querylg = getQueryDlg();// 获取查询对话\n\t\t\tConditionVO[] vos = (ConditionVO[]) ObjectUtils\n\t\t\t\t\t.serializableClone(querylg.getConditionVO());// 获取已被用户填写的查询条件\n\t\t\tString wsql = \"\";\n\t\t\tif (vos == null || vos.length == 0) {\n\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < vos.length; i++) {\n\t\t\t\t\tString code = vos[i].getFieldCode();\n\t\t\t\t\tif (code.equals(\"prepareddatev\")) {// 生效日期\n\t\t\t\t\t\tif (vos[i].getFieldName().equals(\"开始日期\")) {\n\t\t\t\t\t\t\twsql = wsql + \" and h.dmakedate >='\" + vos[i].getValue()\n\t\t\t\t\t\t\t\t\t+ \"'\";\n\t\t\t\t\t\t\tsdate = vos[i].getValue();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (vos[i].getFieldName().equals(\"结束日期\")) {\n\t\t\t\t\t\t\twsql = wsql + \" and h.dmakedate <='\"\n\t\t\t\t\t\t\t\t\t+ vos[i].getValue() + \"'\";\n\t\t\t\t\t\t\tddate = vos[i].getValue();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (code.equals(\"checkvalue\")) {\n\t\t\t\t\t\tprid = vos[i].getValue();\n\t\t\t\t\t\twsql = wsql + \" and h.checkvalue ='\"\n\t\t\t\t\t\t+ vos[i].getValue() + \"'\";\n\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsql.append(wsql);\n\t\t}\n\t\treturn sql.toString();\n\t}", "title": "" }, { "docid": "e4db28bb53ec81eaa2bf8923f83f9368", "score": "0.52532953", "text": "private Criteria buildOnStudyChemoCriteria (ClinicalDataQuery clinicalQuery) {\n \t \n \t OnStudyChemoAgentCriteria crit = clinicalQuery.getOnStudyChemoAgentCriteria(); \t \n Criteria c = new Criteria(); \n \n \t if (crit != null) { \t\t \n \t\t ArrayList agentTypes = new ArrayList();\n for (Iterator iterator = crit.getAgents().iterator(); iterator.hasNext();)\n \t agentTypes.add(((OnStudyChemoAgentDE) iterator.next()).getValueObject()); \t \n \n \t\tc.addColumnIn(OnStudyChemotherapy.AGENT_NAME, agentTypes);\n \t\treturn c; \n \t }\n \t else {\n \t\t return null;\n \t }\t\n \t \n }", "title": "" }, { "docid": "230e91cc769d8fdd0bff65cc26aa45cd", "score": "0.5244335", "text": "public Query setQueryParameters(Query query,\n\t\t\tPrescriptionCriteriaSearchDto criteria) {\n\n\t\tif (criteria.getPatientId() != 0) {\n\n\t\t\tquery.setParameter(\"patientId\", criteria.getPatientId());\n\t\t}\n\t\tif (criteria.getFromData() != null) {\n\n\t\t\tquery.setParameter(\"fromDate\", criteria.getFromData());\n\t\t}\n\t\tif (criteria.getToDate() != null) {\n\n\t\t\tquery.setParameter(\"toDate\", criteria.getToDate());\n\t\t}\n\t\treturn query;\n\t}", "title": "" }, { "docid": "f4f0d20523f2ba5dc82e0b957286d1ef", "score": "0.52020353", "text": "private QueryBuilder builtQuery(final FilterDTO filterDTO) {\r\n return builtQuery(filterDTO, false);\r\n }", "title": "" }, { "docid": "5bd25d58c66b4295989f82abc53ec29a", "score": "0.51668733", "text": "@PostMapping(\"/rns-quotations-custom-query\")\n @Timed\n public List<RnsQuotationCustomVM> getAllRnsQuotationsCustomVM(@RequestBody RnsQuotationSearch rnsQuotationSearch) {\n log.debug(\"REST request to get all RnsQuotations\");\n //Criteria Builder\n String id = \"%\";\n String projectTitle=\"%\";\n\n //End Criteria Builder\n List<RnsQuotationCustomVM> rnsQuotationList = new ArrayList<RnsQuotationCustomVM>();\n CriteriaBuilder builder = entityManager.getCriteriaBuilder();\n CriteriaQuery<RnsQuotation> cq = builder.createQuery(RnsQuotation.class);\n Root<RnsQuotation> root = cq.from(RnsQuotation.class);\n cq.select(root);\n Predicate predicate = builder.conjunction();\n if(rnsQuotationSearch.getTitle()!=null && rnsQuotationSearch.getTitle().length()>0)\n {\n predicate = builder.and(predicate, builder.like(builder.upper(root.get(\"projectTitle\")),\"%\"+rnsQuotationSearch.getTitle().toUpperCase()+\"%\"));\n }\n if(rnsQuotationSearch.getDateFrom()!=null && rnsQuotationSearch.getDateTo()!=null){\n try {\n System.out.println(\"Date Range \"+rnsQuotationSearch.getDateFrom()+\" \"+rnsQuotationSearch.getDateTo());\n predicate = builder.and(predicate, builder.between(builder.function(\"TRUNC\",java.time.Instant.class,root.get(\"createdOn\")), new SimpleDateFormat(\"yyyy-MM-dd\").parse(rnsQuotationSearch.getDateFrom()).toInstant(), new SimpleDateFormat(\"yyyy-MM-dd\").parse(rnsQuotationSearch.getDateTo()).toInstant()));\n } catch(ParseException pe){System.out.println(\"RnsQuotationResource \"+pe.getMessage());}\n\n }\n if(rnsQuotationSearch.getCatgCode()!=null){\n predicate = builder.and(predicate, builder.equal(root.get(\"rnsCatgCode\"),rnsQuotationSearch.getCatgCode()));\n }\n\n if(rnsQuotationSearch.getProjectType()!=null && rnsQuotationSearch.getProjectType().length()>0){\n predicate = builder.and(predicate, builder.like(root.get(\"quoteType\"),rnsQuotationSearch.getProjectType()+\"%\"));\n }\n\n if(rnsQuotationSearch.getSourceTeam()!=null && rnsQuotationSearch.getSourceTeam().length()>0){\n predicate = builder.and(predicate, builder.equal(root.get(\"sourceTeam\"),rnsQuotationSearch.getSourceTeam()));\n }\n if(rnsQuotationSearch.getId()>0)\n {\n predicate = builder.and(builder.equal(root.get(\"id\"),rnsQuotationSearch.getId()));\n }\n\n if(rnsQuotationSearch.getRfqStatus() != null && rnsQuotationSearch.getRfqStatus().equalsIgnoreCase(\"N\")) {\n Predicate predicate1 = builder.conjunction();\n predicate1 = builder.isNull(root.get(\"rfqApplicable\"));\n predicate1 = builder.or(predicate1, builder.equal(root.get(\"rfqApplicable\"),0));\n predicate = builder.and(predicate, predicate1);\n } else if(rnsQuotationSearch.getRfqStatus() != null && rnsQuotationSearch.getRfqStatus().equalsIgnoreCase(\"F\")) {\n Predicate predicate1 = builder.conjunction();\n predicate1 = builder.isNull(root.get(\"approvedFlag\"));\n predicate1 = builder.or(predicate1, builder.notEqual(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, predicate1);\n predicate = builder.and(predicate, builder.equal(root.get(\"rfqApplicable\"),1));\n } else if(rnsQuotationSearch.getRfqStatus() != null && rnsQuotationSearch.getRfqStatus().equalsIgnoreCase(\"P\")) {\n predicate = builder.and(predicate, builder.equal(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, builder.equal(root.get(\"rfqApplicable\"),1));\n Predicate predicate1 = builder.conjunction();\n predicate1 = builder.isNull(root.get(\"rfq\"));\n predicate1 = builder.or(predicate1, builder.equal(root.get(\"rfq\"),0));\n predicate = builder.and(predicate, predicate1);\n } else if(rnsQuotationSearch.getRfqStatus() != null && rnsQuotationSearch.getRfqStatus().equalsIgnoreCase(\"I\")) {\n predicate = builder.and(predicate, builder.equal(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, builder.equal(root.get(\"rfqApplicable\"),1));\n predicate = builder.and(predicate, builder.greaterThan(root.<Timestamp>get(\"validity\"), Timestamp.from(Instant.now())));\n } else if(rnsQuotationSearch.getRfqStatus() != null && rnsQuotationSearch.getRfqStatus().equalsIgnoreCase(\"C\")) {\n predicate = builder.and(predicate, builder.equal(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, builder.equal(root.get(\"rfqApplicable\"),1));\n predicate = builder.and(predicate, builder.lessThan(root.<Timestamp>get(\"validity\"), Timestamp.from(Instant.now())));\n }\n\n if(rnsQuotationSearch.getRfbStatus() != null && rnsQuotationSearch.getRfbStatus().equalsIgnoreCase(\"N\")) {\n Predicate predicate1 = builder.conjunction();\n predicate1 = builder.isNull(root.get(\"auctionApplicable\"));\n predicate1 = builder.or(predicate1, builder.equal(root.get(\"auctionApplicable\"),0));\n predicate = builder.and(predicate, predicate1);\n } else if(rnsQuotationSearch.getRfbStatus() != null && rnsQuotationSearch.getRfbStatus().equalsIgnoreCase(\"F\")) {\n Predicate predicate1 = builder.conjunction();\n predicate1 = builder.isNull(root.get(\"approvedFlag\"));\n predicate1 = builder.or(predicate1, builder.notEqual(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, predicate1);\n predicate = builder.and(predicate, builder.equal(root.get(\"auctionApplicable\"),1));\n } else if(rnsQuotationSearch.getRfbStatus() != null && rnsQuotationSearch.getRfbStatus().equalsIgnoreCase(\"P\")) {\n predicate = builder.and(predicate, builder.equal(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, builder.equal(root.get(\"auctionApplicable\"),1));\n Predicate predicate1 = builder.conjunction();\n predicate1 = builder.isNull(root.get(\"auction\"));\n predicate1 = builder.or(predicate1, builder.equal(root.get(\"auction\"),0));\n predicate = builder.and(predicate, predicate1);\n } else if(rnsQuotationSearch.getRfbStatus() != null && rnsQuotationSearch.getRfbStatus().equalsIgnoreCase(\"I\")) {\n predicate = builder.and(predicate, builder.equal(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, builder.equal(root.get(\"auctionApplicable\"),1));\n predicate = builder.and(predicate, builder.equal(root.get(\"auction\"),1));\n predicate = builder.and(predicate, builder.isNull(root.get(\"auctionClose\")));\n } else if(rnsQuotationSearch.getRfbStatus() != null && rnsQuotationSearch.getRfbStatus().equalsIgnoreCase(\"C\")) {\n predicate = builder.and(predicate, builder.equal(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, builder.equal(root.get(\"auctionApplicable\"),1));\n predicate = builder.and(predicate, builder.equal(root.get(\"auction\"),1));\n predicate = builder.and(predicate, builder.equal(root.get(\"auctionClose\"), 1));\n }\n\n if(rnsQuotationSearch.getWorkflowStatus() != null && rnsQuotationSearch.getWorkflowStatus().equalsIgnoreCase(\"F\")) {\n Predicate predicate1 = builder.conjunction();\n predicate1 = builder.isNull(root.get(\"approvedFlag\"));\n predicate1 = builder.or(predicate1, builder.notEqual(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, predicate1);\n predicate = builder.and(predicate, builder.isNull(root.get(\"workflowStatus\")));\n } else if(rnsQuotationSearch.getWorkflowStatus() != null && rnsQuotationSearch.getWorkflowStatus().equalsIgnoreCase(\"P\")) {\n predicate = builder.and(predicate, builder.equal(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, builder.isNull(root.get(\"workflowStatus\")));\n } else if(rnsQuotationSearch.getWorkflowStatus() != null && rnsQuotationSearch.getWorkflowStatus().equalsIgnoreCase(\"I\")) {\n predicate = builder.and(predicate, builder.equal(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, builder.isNotNull(root.get(\"workflowStatus\")));\n predicate = builder.and(predicate, builder.notEqual(root.get(\"workflowStatus\"), \"C\"));\n } else if(rnsQuotationSearch.getWorkflowStatus() != null && rnsQuotationSearch.getWorkflowStatus().equalsIgnoreCase(\"C\")) {\n predicate = builder.and(predicate, builder.equal(root.get(\"approvedFlag\"),\"C\"));\n predicate = builder.and(predicate, builder.isNotNull(root.get(\"workflowStatus\")));\n predicate = builder.and(predicate, builder.equal(root.get(\"workflowStatus\"), \"C\"));\n }\n\n cq.where(predicate);\n cq.orderBy(builder.desc(root.get(\"id\")));\n\n List<RnsQuotation> quotationList = null;\n try {\n quotationList = entityManager.createQuery(cq.select(root)).getResultList();\n } catch(Exception e){}\n\n if(quotationList!=null && quotationList.size()>0) {\n List<Long> userCatgList = getAllRnsCatgMasters();\n for (RnsQuotation quotationData : quotationList) {\n log.debug(\"------===---\");\n Long quotationId = quotationData.getId();\n if (userCatgList != null && userCatgList.contains(quotationData.getRnsCatgCode().getId())) {\n RnsQuotationCustomVM rnsQuotation = new RnsQuotationCustomVM();\n rnsQuotation.setId(quotationData.getId());\n rnsQuotation.setQuoteNumber(quotationData.getQuoteNumber());\n rnsQuotation.setProjectTitle(quotationData.getProjectTitle());\n rnsQuotation.setRnsCatgCode(quotationData.getRnsCatgCode());\n rnsQuotation.setRnsPchMaster(quotationData.getRnsPchMaster());\n rnsQuotation.setArticleCode(quotationData.getArticleCode());\n rnsQuotation.setArticleDesc(quotationData.getArticleDesc());\n rnsQuotation.setRfq(quotationData.getRfq());\n rnsQuotation.setAuction(quotationData.getAuction());\n rnsQuotation.setValidity(quotationData.getValidity());\n rnsQuotation.setRnsTypeMaster(quotationData.getRnsTypeMaster());\n rnsQuotation.setUser(quotationData.getUser());\n rnsQuotation.setCreatedOn(quotationData.getCreatedOn());\n rnsQuotation.setAuctionClose(quotationData.getAuctionClose());\n rnsQuotation.setApprovedFlag(quotationData.getApprovedFlag());\n rnsQuotation.setApprovedDate(quotationData.getApprovedDate());\n rnsQuotation.setApprovedBy(quotationData.getApprovedBy());\n rnsQuotation.setRfqApplicable(quotationData.getRfqApplicable());\n rnsQuotation.setAuctionApplicable(quotationData.getAuctionApplicable());\n String workflowStatus = quotationData.getWorkflowStatus();\n Boolean passVendor = true;\n Boolean passRFQ = true;\n if (quotationData.getValidity() == null) {\n passRFQ = false;\n }\n rnsQuotation.setAuctionValidate(passVendor);\n rnsQuotation.setRfqValidate(passRFQ);\n rnsQuotationList.add(rnsQuotation);\n\n if (rnsQuotation.getApprovedFlag() != null && rnsQuotation.getApprovedFlag().equalsIgnoreCase(\"C\")) {\n // Rfq Status\n if (rnsQuotation.getRfqApplicable() != null && rnsQuotation.getRfqApplicable() == true) {\n if (rnsQuotation.getRfq() != null && rnsQuotation.getRfq() == true) {\n rnsQuotation.setRfqActive(false);\n if(rnsQuotation.getValidity() != null && Date.from(rnsQuotation.getValidity().toInstant()).before(new Date())) {\n rnsQuotation.setRfqStatus(\"btn-success\");\n rnsQuotation.setRfqIcon(\"check\");\n } else {\n rnsQuotation.setRfqStatus(\"btn-danger\");\n rnsQuotation.setRfqIcon(\"check\");\n }\n } else {\n rnsQuotation.setRfqActive(true);\n rnsQuotation.setRfqStatus(\"btn-success\");\n rnsQuotation.setRfqIcon(\"times\");\n }\n } else {\n rnsQuotation.setRfqActive(false);\n rnsQuotation.setRfqIcon(\"times\");\n rnsQuotation.setRfqMessage(\"RFQ is not applicable for Project# \" + quotationData.getId() + \"!!!\");\n }\n\n // Rfb Status\n if (rnsQuotation.getAuctionApplicable() != null && rnsQuotation.getAuctionApplicable() == true) {\n if (rnsQuotation.getAuction() != null && rnsQuotation.getAuction() == true) {\n rnsQuotation.setRfbActive(false);\n if(rnsQuotation.getAuctionClose()!= null && rnsQuotation.getAuctionClose() == true) {\n rnsQuotation.setRfbStatus(\"btn-success\");\n rnsQuotation.setRfbIcon(\"check\");\n } else {\n rnsQuotation.setRfbStatus(\"btn-danger\");\n rnsQuotation.setRfbIcon(\"check\");\n }\n } else {\n if (rnsQuotation.getRfqApplicable() != null && rnsQuotation.getRfqApplicable() == true) {\n if (rnsQuotation.getRfq() != null && rnsQuotation.getRfq() == true) {\n if(rnsQuotation.getValidity() != null && Date.from(rnsQuotation.getValidity().toInstant()).before(new Date())) {\n rnsQuotation.setRfbActive(true);\n rnsQuotation.setRfbStatus(\"btn-success\");\n rnsQuotation.setRfbIcon(\"times\");\n } else {\n rnsQuotation.setRfbActive(false);\n rnsQuotation.setRfbStatus(\"btn-success\");\n rnsQuotation.setRfbIcon(\"times\");\n rnsQuotation.setRfbMessage(\"RFQ is not closed!!!\");\n }\n } else {\n rnsQuotation.setRfbActive(false);\n rnsQuotation.setRfbStatus(\"btn-success\");\n rnsQuotation.setRfbIcon(\"times\");\n rnsQuotation.setRfbMessage(\"RFQ initialize first!!!\");\n }\n } else {\n rnsQuotation.setRfbActive(true);\n rnsQuotation.setRfbStatus(\"btn-success\");\n rnsQuotation.setRfbIcon(\"times\");\n }\n }\n } else {\n rnsQuotation.setRfbActive(false);\n rnsQuotation.setRfbIcon(\"times\");\n rnsQuotation.setRfbMessage(\"Bidding is not applicable for Project# \" + quotationData.getId() + \"!\");\n }\n\n //Workflow\n if (rnsQuotation.getRfqApplicable() != null && rnsQuotation.getRfqApplicable() == true && rnsQuotation.getAuctionApplicable() != null && rnsQuotation.getAuctionApplicable() == true){\n boolean workflowAllow = false;\n if (rnsQuotation.getRfq() != null && rnsQuotation.getRfq() == true) {\n if (rnsQuotation.getValidity() != null && Date.from(rnsQuotation.getValidity().toInstant()).before(new Date())) {\n workflowAllow = true;\n } else {\n workflowAllow = false;\n rnsQuotation.setWorkflowMessage(\"RFQ is not expired for Project# \" + quotationData.getId() + \"!!!\");\n }\n } else {\n workflowAllow = false;\n rnsQuotation.setWorkflowMessage(\"RFQ is pending for Project# \" + quotationData.getId() + \"!!!\");\n }\n if (workflowAllow == true) {\n if (rnsQuotation.getAuctionClose() != null && rnsQuotation.getAuctionClose() == true) {\n workflowAllow = true;\n } else {\n workflowAllow = false;\n rnsQuotation.setWorkflowMessage(\"Bidding is not closed for Project# \" + quotationData.getId() + \"!!!\");\n }\n }\n rnsQuotation.setWorkflowActive(workflowAllow);\n rnsQuotation.setWorkflowIcon(\"times\");\n rnsQuotation.setWorkflowStatus(\"btn-success\");\n } else if (rnsQuotation.getRfqApplicable() != null && rnsQuotation.getRfqApplicable() == true) {\n boolean workflowAllow = false;\n if (rnsQuotation.getRfq() != null && rnsQuotation.getRfq() == true) {\n if (rnsQuotation.getValidity() != null && Date.from(rnsQuotation.getValidity().toInstant()).before(new Date())) {\n workflowAllow = true;\n } else {\n workflowAllow = false;\n rnsQuotation.setWorkflowMessage(\"RFQ is not expired for Project# \" + quotationData.getId() + \"!!!\");\n }\n } else {\n workflowAllow = false;\n rnsQuotation.setWorkflowMessage(\"RFQ is pending for Project# \" + quotationData.getId() + \"!!!\");\n }\n rnsQuotation.setWorkflowActive(workflowAllow);\n rnsQuotation.setWorkflowIcon(\"times\");\n rnsQuotation.setWorkflowStatus(\"btn-success\");\n } else if (rnsQuotation.getAuctionApplicable() != null && rnsQuotation.getAuctionApplicable() == true) {\n boolean workflowAllow = false;\n if (rnsQuotation.getAuctionClose() != null && rnsQuotation.getAuctionClose() == true) {\n workflowAllow = true;\n } else {\n workflowAllow = false;\n rnsQuotation.setWorkflowMessage(\"Bidding is not closed for Project# \" + quotationData.getId() + \"!!!\");\n }\n rnsQuotation.setWorkflowActive(workflowAllow);\n rnsQuotation.setWorkflowIcon(\"times\");\n rnsQuotation.setWorkflowStatus(\"btn-success\");\n }\n if(workflowStatus != null && workflowStatus.equalsIgnoreCase(\"F\")) {\n rnsQuotation.setWorkflowIcon(\"check\");\n rnsQuotation.setWorkflowStatus(\"btn-danger\");\n } else if(workflowStatus != null && workflowStatus.equalsIgnoreCase(\"C\")) {\n rnsQuotation.setWorkflowIcon(\"check\");\n rnsQuotation.setWorkflowStatus(\"btn-success\");\n }\n } else {\n rnsQuotation.setRfqActive(false);\n rnsQuotation.setRfbActive(false);\n rnsQuotation.setWorkflowActive(false);\n\n rnsQuotation.setRfqIcon(\"times\");\n rnsQuotation.setRfbIcon(\"times\");\n rnsQuotation.setWorkflowIcon(\"times\");\n\n if (rnsQuotation.getRfqApplicable() != null && rnsQuotation.getRfqApplicable() == true) {\n rnsQuotation.setRfqStatus(\"btn-danger\");\n }\n\n if (rnsQuotation.getAuctionApplicable() != null && rnsQuotation.getAuctionApplicable() == true) {\n rnsQuotation.setRfbStatus(\"btn-danger\");\n }\n rnsQuotation.setWorkflowStatus(\"btn-danger\");\n\n rnsQuotation.setRfqMessage(\"Project# \" + quotationData.getId() + \" is not approved!!!\");\n rnsQuotation.setRfbMessage(\"Project# \" + quotationData.getId() + \" is not approved!!!\");\n rnsQuotation.setWorkflowMessage(\"Project# \" + quotationData.getId() + \" is not approved!!!\");\n }\n }\n }\n }\n return rnsQuotationList;\n }", "title": "" }, { "docid": "20da4b10b1543dce0bcb7e38f338f219", "score": "0.5163715", "text": "@Override\n\tprotected Criteria buildCriteria(Criteria criteria, WebSiteQO qo) {\n\t\treturn criteria;\n\t}", "title": "" }, { "docid": "28e8c6aed95d0536d9c681fd4507a834", "score": "0.5156169", "text": "private QueryCondition() {\n initFields();\n }", "title": "" }, { "docid": "ef9918f1fd3e3438190052e496b17f5f", "score": "0.51347494", "text": "public Query setQueryParametersInAdvanceSearch(Query query,\n\t\t\tPatientSearchCriteriaDto criteria) {\n\n\t\t/* setting the default parameter */\n\t\tquery.setParameter(\"drugId\", criteria.getDrugId());\n\t\tif (!criteria.getName().equals(NULL_STRING)) {\n\n\t\t\tquery.setParameter(\"name\", criteria.getName());\n\t\t}\n\t\tif (criteria.getGender() != null) {\n\n\t\t\tquery.setParameter(\"gender\", criteria.getGender());\n\t\t}\n\t\treturn query;\n\t}", "title": "" }, { "docid": "a53ab3f95619896ddc18141481160af8", "score": "0.51329046", "text": "public List buildQuery(Report report) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e02ee8fb00dbc89f08e99a6df31ac635", "score": "0.51074535", "text": "private Criteria buildNeuroExamClinicalEvalCrit(ClinicalDataQuery clinicalQuery) { \t \n \n \tNeuroExamClinicalEvalCriteria crit = clinicalQuery.getNeuroExamCriteria(); \n \tCriteria c = new Criteria(); \n \t if (crit != null) {\n \t\t c.addEqualTo(NeuroEvaluation.NEURO_EXAM, Integer.parseInt(crit.getNeuroExamClinicalEvalDE().getValueObject()));\n \t\t return c;\n } \t\n \t else {\n \t \treturn null;\n \t }\n \t \n }", "title": "" }, { "docid": "dcc149a4b8cc7b1da656338f25645079", "score": "0.508914", "text": "abstract protected Criteria getCriteria();", "title": "" }, { "docid": "1e9b5c4916b759ce457ec42050538db6", "score": "0.5039169", "text": "public String conditionQuery(HireRehireMisReport bean,\r\n\t\t\tString[] labelNames) {\n\t\tString query=\"\";\r\n\t\ttry{\r\n\t\t\tquery =\"FROM HRMS_D1_NEW_HIRE_REHIRE \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON (HRMS_D1_NEW_HIRE_REHIRE.HIRE_INITIATOR = HRMS_EMP_OFFC.EMP_ID) \"\r\n\t\t\t\t+ \" LEFT JOIN HRMS_DIVISION ON (HRMS_DIVISION.DIV_ID = HRMS_EMP_OFFC.EMP_DIV) \"\r\n\t\t\t\t+ \" LEFT JOIN HRMS_DEPT ON (HRMS_DEPT.DEPT_ID = HRMS_EMP_OFFC.EMP_DEPT) \" \r\n\t\t\t\t+ \" LEFT JOIN HRMS_CENTER ON (HRMS_CENTER.CENTER_ID = HRMS_EMP_OFFC.EMP_CENTER) \" \r\n\t\t\t\t+ \" LEFT JOIN HRMS_EMP_TYPE ON (HRMS_EMP_TYPE.TYPE_ID = HRMS_EMP_OFFC.EMP_TYPE) \"\r\n\t\t\t\t+ \" LEFT JOIN HRMS_RANK ON (HRMS_RANK.RANK_ID = HRMS_EMP_OFFC.EMP_RANK) \"\r\n\t\t\t\t+ \" LEFT JOIN HRMS_QUA ON (HRMS_QUA.QUA_ID = HRMS_D1_NEW_HIRE_REHIRE.EMP_EDUCATION) \" \r\n\t\t\t\t+ \" LEFT JOIN HRMS_EMP_OFFC EXECUTIVE ON(EXECUTIVE.EMP_ID = HRMS_D1_NEW_HIRE_REHIRE.EXE_EMP_CODE) \"\r\n\t\t\t\t+\" LEFT JOIN HRMS_D1_REFERRAL on (HRMS_D1_REFERRAL.REFERRAL_ID =HRMS_D1_NEW_HIRE_REHIRE.EMP_REFFERAL_SOURCE) \"\r\n\t\t\t\t+ \" LEFT JOIN HRMS_CADRE ON (HRMS_CADRE.CADRE_ID =HRMS_D1_NEW_HIRE_REHIRE.GRADE)\"\r\n\t\t\t\t+ \" WHERE 1 = 1 \";\r\n\t\t\t//DIVISION\r\n\t\t\tif(!(bean.getDivId().equals(\"\")) && !(bean.getDivId() == null) && !(bean.getDivId().equals(\"null\"))){\r\n\t\t\t\tquery += \" AND HRMS_EMP_OFFC.EMP_DIV = \"+bean.getDivId();\r\n\t\t\t}\r\n\t\t\t//DEPARTMENT\r\n\t\t\tif(!(bean.getDeptId().equals(\"\")) && !(bean.getDeptId() == null) && !(bean.getDeptId().equals(\"null\")) ){\r\n\t\t\t\tquery += \" AND HRMS_EMP_OFFC.EMP_DEPT = \"+bean.getDeptId();\r\n\t\t\t}\r\n\t\t\t//BRANCH\r\n\t\t\tif(!(bean.getBranchId().equals(\"\")) && !(bean.getBranchId() == null) && !(bean.getBranchId().equals(\"null\")) ){\r\n\t\t\t\tquery += \" AND HRMS_EMP_OFFC.EMP_CENTER = \"+bean.getBranchId();\r\n\t\t\t}\r\n\t\t\t//EMPLOYEE TYPE\r\n\t\t\tif(!(bean.getEmpTypeId().equals(\"\")) && !(bean.getEmpTypeId() == null) && !(bean.getEmpTypeId().equals(\"null\")) ){\r\n\t\t\t\tquery += \" AND HRMS_EMP_OFFC.EMP_TYPE = \"+bean.getEmpTypeId();\r\n\t\t\t}\r\n\t\t\t//DESIGNATION\r\n\t\t\tif(!(bean.getDesigId().equals(\"\")) && !(bean.getDesigId() == null) && !(bean.getDesigId().equals(\"null\")) ){\r\n\t\t\t\tquery += \" AND HRMS_EMP_OFFC.EMP_RANK = \"+bean.getDesigId();\r\n\t\t\t}\r\n\t\t\t//STATUS\r\n\t\t\tif(!(bean.getStatus().equals(\"1\")) && !(bean.getStatus() == null) && !(bean.getStatus().equals(\"null\")) ){\r\n\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.HIRE_STATUS = '\"+bean.getStatus().trim()+\"'\";\r\n\t\t\t}\r\n\t\t\t//EMPLOYEE\r\n\t\t\tif(!(bean.getEmpId().equals(\"\")) && !(bean.getEmpId() == null) && !(bean.getEmpId().equals(\"null\")) ){\r\n\t\t\t\tquery += \" AND HRMS_EMP_OFFC.EMP_ID = \"+bean.getEmpId();\r\n\t\t\t}\t\r\n\t\t\t//EMPLOYEE FIRST NAME\r\n\t\t\tif(!(bean.getEmpFirstName().equals(\"\")) && !(bean.getEmpFirstName() == null) && !(bean.getEmpFirstName().equals(\"null\")) ){\r\n\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.EMP_FIRST_NAME = '\"+bean.getEmpFirstName().trim()+\"'\";\r\n\t\t\t}\r\n\t\t\t//TRACKING NO\r\n\t\t\tif(!(bean.getTrackingNumber().equals(\"\")) && !(bean.getTrackingNumber() == null) && !(bean.getTrackingNumber().equals(\"null\")) ){\r\n\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.TRACKING_NUMBER = '\"+bean.getTrackingNumber().trim()+\"'\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//ACTIOn REASON\r\n\t\t\tif(!(bean.getActionReason().equals(\"1\")) && !(bean.getActionReason() == null) && !(bean.getActionReason().equals(\"null\")) ){\r\n\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.ACTION_REASON = '\"+bean.getActionReason().trim()+\"'\";\r\n\t\t\t}\r\n\t\t\t//ADVANCE FILTER\r\n\t\t\t//APPLICATION DATE\r\n\t\t\tif (!bean.getAppliDateSelect().trim().equals(\"\")) {\r\n\t\t\t\tif (bean.getAppliDateSelect().trim().equals(\"ON\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.APPLICATION_DATE = TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAppliFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t}\r\n\t\t\t\tif (bean.getAppliDateSelect().trim().equals(\"OB\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.APPLICATION_DATE <= TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAppliFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t}\r\n\t\t\t\tif (bean.getAppliDateSelect().trim().equals(\"OA\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.APPLICATION_DATE >= TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAppliFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t}\r\n\t\t\t\tif (bean.getAppliDateSelect().trim().equals(\"BF\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.APPLICATION_DATE < TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAppliFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t}\r\n\t\t\t\tif (bean.getAppliDateSelect().trim().equals(\"AF\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.APPLICATION_DATE > TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAppliFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t}\r\n\t\t\t\tif (bean.getAppliDateSelect().trim().equals(\"BN\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.APPLICATION_DATE >= TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAppliFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t\tif(!(bean.getAppliToDate().equals(\"\") || bean.getAppliToDate().equals(\"DD-MM-YYYY\"))){\r\n\t\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.APPLICATION_DATE <= TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAppliToDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//HIRE DATE\r\n\t\t\tif (!bean.getAttDateSelect().trim().equals(\"\")) {\r\n\t\t\t\t//write code here\r\n\t\t\t\tif (bean.getAttDateSelect().trim().equals(\"ON\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.HIRE_DATE = TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAttFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t}\r\n\t\t\t\tif (bean.getAttDateSelect().trim().equals(\"OB\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.HIRE_DATE <= TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAttFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t}\r\n\t\t\t\tif (bean.getAttDateSelect().trim().equals(\"OA\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.HIRE_DATE >= TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAttFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t}\r\n\t\t\t\tif (bean.getAttDateSelect().trim().equals(\"BF\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.HIRE_DATE < TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAttFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t}\r\n\t\t\t\tif (bean.getAttDateSelect().trim().equals(\"AF\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.HIRE_DATE > TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAttFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t}\r\n\t\t\t\tif (bean.getAttDateSelect().trim().equals(\"BN\")) {\r\n\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.HIRE_DATE >= TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAttFromDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t\tif(!(bean.getAttToDate().equals(\"\") || bean.getAttToDate().equals(\"DD-MM-YYYY\"))){\r\n\t\t\t\t\t\tquery += \" AND HRMS_D1_NEW_HIRE_REHIRE.HIRE_DATE <= TO_DATE('\"\r\n\t\t\t\t\t\t\t+ bean.getAttToDate() + \"','DD-MM-YYYY')\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Sorting code\r\n\t\t\tif(!bean.getSortBy().equals(\"1\") || !bean.getThenBy1().equals(\"1\") || \r\n\t\t\t\t\t!bean.getThenBy2().equals(\"1\")){\r\n\t\t\t\tquery += \" ORDER BY \";\r\n\t\t\t}\r\n\t\t\tif (!bean.getSortBy().equals(\"1\")) {\r\n\t\t\t\tquery += getSortVal(bean.getSortBy(), labelNames) + \" \"\r\n\t\t\t\t\t\t+ getSortOrder(bean.getSortByOrder());\r\n\t\t\t\tif (!bean.getThenBy1().equals(\"1\")\r\n\t\t\t\t\t\t|| !bean.getThenBy2().equals(\"1\")) {\r\n\t\t\t\t\tquery += \" , \";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!bean.getThenBy1().equals(\"1\")) {\r\n\t\t\t\tquery += getSortVal(bean.getThenBy1(), labelNames) + \" \"\r\n\t\t\t\t\t\t+ getSortOrder(bean.getThenByOrder1());\r\n\t\t\t\tlogger.info(\"bean.getThenByOrder1() -- > \"+bean.getThenByOrder1());\r\n\t\t\t\tif (!bean.getThenBy2().equals(\"1\")) {\r\n\t\t\t\t\tquery += \" , \";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!bean.getThenBy2().equals(\"1\")) {\r\n\t\t\t\tquery += getSortVal(bean.getThenBy2(), labelNames) + \" \"\r\n\t\t\t\t\t\t+ getSortOrder(bean.getThenByOrder2());\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.error(\"Exception in condition Query\"+e);\r\n\t\t}\r\n\t\t//logger.info(\"condition query -- \"+query);\r\n\t\treturn query;\r\n\t}", "title": "" }, { "docid": "ac454874213cd06a725b7fba639656b9", "score": "0.5033163", "text": "private void buildRaceCrit(ClinicalDataQuery clinicalQuery, Criteria raceCrit){\n \t RaceCriteria crit = clinicalQuery.getRaceCriteria(); \n \t \n if (crit != null) {\n \t ArrayList raceTypes = new ArrayList();\n \t for (Iterator iterator = crit.getRaces().iterator(); iterator.hasNext();) {\n \t\t raceTypes.add(((RaceDE) iterator.next()).getValueObject());\n \t }\n \t raceCrit.addIn(PatientData.RACE, raceTypes);\n } \n \n }", "title": "" }, { "docid": "b38263902ca57a74758bd9e8ded2f735", "score": "0.49967286", "text": "private Criteria buildLanskyClinicalEvalCrit(ClinicalDataQuery clinicalQuery) { \t \n \n \tLanskyClinicalEvalCriteria crit = clinicalQuery.getLanskyCriteria();\n \tCriteria c = new Criteria(); \t \n \t if (crit != null) {\n \t\t c.addEqualTo(NeuroEvaluation.LANSKY_SCORE, Integer.parseInt(crit.getLanskyClinicalEvalDE().getValueObject())); \t\n \t return c;\n \t }\n \t else {\n \t \treturn null;\n \t }\n }", "title": "" }, { "docid": "e7c14a2dfea424d53577346816338681", "score": "0.49960348", "text": "private OnStudyChemotherapy[] populateOnStudyChemo(ClinicalDataQuery clinicalQuery, Collection patientDIDs)throws Exception {\n \t \t \n \t\t\t if(patientDIDs.size()>=1) {\n \t\t\t Criteria onStudyChemoCrit = buildOnStudyChemoCriteria(clinicalQuery);\n \t \t if(onStudyChemoCrit== null) {\n \t \t\t onStudyChemoCrit = new Criteria();\n \t \t }\n \t \t \t\t \n \t \t onStudyChemoCrit.addIn(OnStudyChemotherapy.PATIENT_DID, patientDIDs);\n \t \t\t final PersistenceBroker pb = PersistenceBrokerFactory.defaultPersistenceBroker();\n \t \t ReportQueryByCriteria onStudyChemoQuery = QueryFactory.newReportQuery(OnStudyChemotherapy.class, onStudyChemoCrit, true);\n \t \t \n \t \t onStudyChemoQuery.setAttributes(new String[] {\n \t \t \t\t OnStudyChemotherapy.TIME_POINT, OnStudyChemotherapy.AGENT_ID,\n \t \t \t\t OnStudyChemotherapy.AGENT_NAME, OnStudyChemotherapy.COURSE_COUNT,\n \t \t \t\t OnStudyChemotherapy.DOSE_START_DATE, OnStudyChemotherapy.DOSE_STOP_DATE,\n \t \t \t\t OnStudyChemotherapy.STUDY_SOURCE,OnStudyChemotherapy.PROTOCOL_NUMBER,\n \t \t \t\t OnStudyChemotherapy.PATIENT_DID,OnStudyChemotherapy.REGIMEN_NUMBER} ); \n \t \t \n \t \t \n \t \t Iterator onStudyRadiationDataObjects = pb.getReportQueryIteratorByQuery(onStudyChemoQuery);\n \t \t \n \t \t ArrayList results = new ArrayList();\n \t \t populateOnStudyChemoResults(onStudyRadiationDataObjects, results);\n \t \t \n \t \t \n \t \t OnStudyChemotherapy[] finalResult = new OnStudyChemotherapy[results.size()];\n \t \t for (int i = 0; i < results.size(); i++) {\n \t \t \tOnStudyChemotherapy onStudyChemoData = (OnStudyChemotherapy) results.get(i);\n \t \t finalResult[i] = onStudyChemoData ;\n \t \t }\n \t \t pb.close();\n \t \t \n \t \t return finalResult; \n \t }\n \t else {\n \t return null;\n \t }\n \t \n \t }", "title": "" }, { "docid": "74f6e6a07fbd0bc075aa683dcf533831", "score": "0.49893954", "text": "@Override\n public Criteria getCriteria() {\n //region your codes 2\n return null;\n //endregion your codes 2\n }", "title": "" }, { "docid": "74f6e6a07fbd0bc075aa683dcf533831", "score": "0.49893954", "text": "@Override\n public Criteria getCriteria() {\n //region your codes 2\n return null;\n //endregion your codes 2\n }", "title": "" }, { "docid": "74f6e6a07fbd0bc075aa683dcf533831", "score": "0.49893954", "text": "@Override\n public Criteria getCriteria() {\n //region your codes 2\n return null;\n //endregion your codes 2\n }", "title": "" }, { "docid": "0272c6ee45295dd880a85303d3a62f19", "score": "0.49844068", "text": "private String createQuery()\n\t{\n\t\t/** Base Query\n\t\tSELECT *\n\t\tFROM M_Product p\n \t\t INNER JOIN M_ProductPrice pr ON (p.M_Product_ID=pr.M_Product_ID)\n \t\t LEFT OUTER JOIN M_AttributeSet pa ON (p.M_AttributeSet_ID=pa.M_AttributeSet_ID)\n\t\tWHERE\n\t\t**/\n\t\t\n\t\t/***\tInstance Attributes\t\t*/\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//\tSerial No\n\t\tString s = serNoField.getComponent().getText();\n\t\tif (s != null && s.length() > 0)\n\t\t{\n\t\t\tsb.append(\" AND asi.SerNo\");\n\t\t\tif (s.indexOf('%') == -1 && s.indexOf('_') == 1)\n\t\t\t\tsb.append(\"=\");\n\t\t\telse\n\t\t\t\tsb.append(\" LIKE \");\n\t\t\tsb.append(DB.TO_STRING(s));\n\t\t}\n\t\t//\tLot Number\n\t\ts = lotField.getComponent().getText();\n\t\tif (s != null && s.length() > 0)\n\t\t{\n\t\t\tsb.append(\" AND asi.Lot\");\n\t\t\tif (s.indexOf('%') == -1 && s.indexOf('_') == 1)\n\t\t\t\tsb.append(\"=\");\n\t\t\telse\n\t\t\t\tsb.append(\" LIKE \");\n\t\t\tsb.append(DB.TO_STRING(s));\n\t\t}\n\t\t//\tLot ID\n\t\tListItem li = lotSelection.getSelectedItem();\n\t\tif(li != null && li.getValue() != null)\n\t\t{\n\t\t\tKeyNamePair pp = (KeyNamePair) li.getValue();\n\t\t\tif (pp != null && pp.getKey() != -1)\n\t\t\t{\n\t\t\t\tint ID = pp.getKey();\n\t\t\t\tsb.append(\" AND asi.M_Lot_ID=\").append(ID);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//\tGuarantee Date\n\t\tTimestamp ts = (Timestamp)guaranteeDateField.getValue();\n\t\tif (ts != null)\n\t\t{\n\t\t\tsb.append(\" AND TRUNC(asi.GuaranteeDate)\");\n\t\t\tint index = guaranteeDateSelection.getSelectedIndex();\t//\t < = >\n\t\t\tif (index == 0)\n\t\t\t\tsb.append(\"<\");\n\t\t\telse if (index == 1)\n\t\t\t\tsb.append(\"=\");\n\t\t\telse\n\t\t\t\tsb.append(\">\");\n\t\t\tsb.append(DB.TO_DATE(ts,true));\n\t\t}\n\t\t\n\t\t//\tInstance Editors\n\t\tfor (int i = 0; i < m_instanceEditors.size(); i++)\n\t\t{\n\t\t\tStringBuffer iAttr = new StringBuffer();\n\t\t\tComponent c = (Component)m_instanceEditors.get(i);\n\t\t\tComponent cTo = (Component)m_instanceEditorsTo.get(i);\n\t\t\tint M_Attribute_ID = Integer.parseInt(c.getId());\n\t\t\tif (c instanceof Listbox)\n\t\t\t{\n\t\t\t\tListbox field = (Listbox)c;\n\t\t\t\tli = field.getSelectedItem();\n\t\t\t\tif(li != null && li.getValue() != null)\n\t\t\t\t{\n\t\t\t\t\tKeyNamePair pp = (KeyNamePair)li.getValue();\n\t\t\t\t\tif (pp != null && pp.getKey() != -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tiAttr.append(\"M_Attribute_ID=\").append(M_Attribute_ID)\n\t\t\t\t\t\t\t.append(\" AND M_AttributeValue_ID=\").append(pp.getKey());\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (c instanceof NumberBox)\n\t\t\t{\n\t\t\t\tNumberBox field = (NumberBox)c;\n\t\t\t\tBigDecimal value = (BigDecimal)field.getValue();\n\t\t\t\tNumberBox fieldTo = (NumberBox)cTo;\n\t\t\t\tBigDecimal valueTo = (BigDecimal)fieldTo.getValue();\n\t\t\t\tif (value != null || valueTo != null)\n\t\t\t\t{\n\t\t\t\t\tiAttr.append(\"M_Attribute_ID=\").append(M_Attribute_ID)\n\t\t\t\t\t\t.append(\" AND ValueNumber\");\n\t\t\t\t\tif (value != null && valueTo == null)\n\t\t\t\t\t\tiAttr.append(\"=\").append(value);\n\t\t\t\t\telse if (value == null && valueTo != null)\n\t\t\t\t\t\tiAttr.append(\"<=\").append(valueTo);\n\t\t\t\t\telse if (value != null && valueTo != null)\n\t\t\t\t\t\tiAttr.append(\" BETWEEN \").append(value)\n\t\t\t\t\t\t\t.append(\" AND \").append(valueTo);\n\t\t\t\t} \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tTextbox field = (Textbox)c;\n\t\t\t\tString value = field.getText();\n\t\t\t\tif (value != null && value.length() > 0)\n\t\t\t\t{\n\t\t\t\t\tiAttr.append(\"M_Attribute_ID=\").append(M_Attribute_ID)\n\t\t\t\t\t\t.append(\" AND Value\");\n\t\t\t\t\tif (value.indexOf('%') == -1 && value.indexOf('_') == -1)\n\t\t\t\t\t\tiAttr.append(\"=\");\n\t\t\t\t\telse\n\t\t\t\t\t\tiAttr.append(\" LIKE \");\n\t\t\t\t\tiAttr.append(DB.TO_STRING(value));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//\tAdd to where\n\t\t\tif (iAttr.length() > 0)\n\t\t\t\tsb.append(\" AND asi.M_AttributeSetInstance_ID IN \"\n\t\t\t\t\t+ \"(SELECT M_AttributeSetInstance_ID FROM M_AttributeInstance \"\n\t\t\t\t\t+ \"WHERE \")\n\t\t\t\t\t.append(iAttr).append(\")\");\n\t\t}\n\t\t\n\t\t//\tfinish Instance Attributes\n\t\tif (sb.length() > 0)\n\t\t{\n\t\t\tsb.insert(0, \" AND EXISTS (SELECT * FROM M_Storage s\"\n\t\t\t\t+ \" INNER JOIN M_AttributeSetInstance asi ON (s.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID) \"\n\t\t\t\t+ \"WHERE s.M_Product_ID=p.M_Product_ID\");\n\t\t\tsb.append(\")\");\n\t\t}\n\t\t\n\t\t\n\t\t//\tProduct Attributes \n\t\tfor (int i = 0; i < m_productEditors.size(); i++)\n\t\t{\n\t\t\tStringBuffer pAttr = new StringBuffer();\n\t\t\tComponent c = (Component)m_productEditors.get(i);\n\t\t\tComponent cTo = (Component)m_productEditorsTo.get(i);\n\t\t\tint M_Attribute_ID = Integer.parseInt(c.getId());\n\t\t\tif (c instanceof Listbox)\n\t\t\t{\n\t\t\t\tListbox field = (Listbox)c;\n\t\t\t\tli = field.getSelectedItem();\n\t\t\t\tif(li != null && li.getValue() != null)\n\t\t\t\t{\n\t\t\t\t\tKeyNamePair pp = (KeyNamePair)li.getValue();\n\t\t\t\t\tif (pp != null && pp.getKey() != -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tpAttr.append(\"M_Attribute_ID=\").append(M_Attribute_ID)\n\t\t\t\t\t\t\t.append(\" AND M_AttributeValue_ID=\").append(pp.getKey());\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (c instanceof NumberBox)\n\t\t\t{\n\t\t\t\tNumberBox field = (NumberBox)c;\n\t\t\t\tBigDecimal value = (BigDecimal)field.getValue();\n\t\t\t\tNumberBox fieldTo = (NumberBox)cTo;\n\t\t\t\tBigDecimal valueTo = (BigDecimal)fieldTo.getValue();\n\t\t\t\tif (value != null || valueTo != null)\n\t\t\t\t{\n\t\t\t\t\tpAttr.append(\"M_Attribute_ID=\").append(M_Attribute_ID)\n\t\t\t\t\t\t.append(\" AND ValueNumber\");\n\t\t\t\t\tif (value != null && valueTo == null)\n\t\t\t\t\t\tpAttr.append(\"=\").append(value);\n\t\t\t\t\telse if (value == null && valueTo != null)\n\t\t\t\t\t\tpAttr.append(\"<=\").append(valueTo);\n\t\t\t\t\telse if (value != null && valueTo != null)\n\t\t\t\t\t\tpAttr.append(\" BETWEEN \").append(value)\n\t\t\t\t\t\t\t.append(\" AND \").append(valueTo);\n\t\t\t\t} \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tTextbox field = (Textbox)c;\n\t\t\t\tString value = field.getText();\n\t\t\t\tif (value != null && value.length() > 0)\n\t\t\t\t{\n\t\t\t\t\tpAttr.append(\"M_Attribute_ID=\").append(M_Attribute_ID)\n\t\t\t\t\t\t.append(\" AND Value\");\n\t\t\t\t\tif (value.indexOf('%') == -1 && value.indexOf('_') == -1)\n\t\t\t\t\t\tpAttr.append(\"=\");\n\t\t\t\t\telse\n\t\t\t\t\t\tpAttr.append(\" LIKE \");\n\t\t\t\t\tpAttr.append(DB.TO_STRING(value));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//\tAdd to Where\n\t\t\tif (pAttr.length() > 0)\n\t\t\t\tsb.append(\" AND p.M_AttributeSetInstance_ID IN \"\n\t\t\t\t\t+ \"(SELECT M_AttributeSetInstance_ID \"\n\t\t\t\t\t+ \"FROM M_AttributeInstance WHERE \")\n\t\t\t\t\t.append(pAttr).append(\")\");\n\t\t}\n\t\t//\n\t\tm_query = null;\n\t\tif (sb.length() > 0)\n\t\t\tm_query = sb.toString();\n\t\tlog.config(m_query);\t\t\n\t\treturn m_query;\n\t}", "title": "" }, { "docid": "79ffbb1775c9c37199e3586b5c95075a", "score": "0.49730745", "text": "@Query(\" SELECT rsi.siacTSubdocIvaFiglio \"\n\t\t\t+ \" FROM SiacRSubdocIva rsi \"\n\t\t\t+ \" WHERE rsi.dataCancellazione IS NULL \"\n\t\t\t+ \" AND rsi.siacDRelazTipo.relazTipoCode = '\"+SiacDRelazTipoEnum.CodiceNotaCreditoIva+\"' \"\n\t\t\t+ \" AND (rsi.siacTSubdocIvaPadre IN (SELECT rssi.siacTSubdocIva \" //Legato alla quota...\n\t\t\t+ \" FROM SiacRSubdocSubdocIva rssi \"\n\t\t\t+ \" WHERE rssi.siacTSubdoc.subdocId = :subdocId \"\n\t\t\t+ \" AND rssi.dataCancellazione IS NULL \"\n\t\t\t+ \" ) \"\n//\t\t\t+ \" OR rsi.siacTSubdocIvaPadre IN (SELECT rdi.siacTSubdocIvas \"//...oppure legato al Documento.\n//\t\t\t+ \" FROM SiacRDocIva rdi, SiacTDoc d \"\n//\t\t\t+ \" WHERE rdi.siacTDoc = d \"\n//\t\t\t+ \" AND EXISTS (FROM d.siacTSubdocs s \"\n//\t\t\t+ \" WHERE s.subdocId = :subdocId \"\n//\t\t\t+ \" AND s.dataCancellazione IS NULL \"\n//\t\t\t+ \" ) \"\n//\t\t\t+ \" ) \"\n\t\t\t+ \" OR rsi.siacTSubdocIvaPadre IN (SELECT si \"\n\t\t\t+ \" FROM SiacTSubdocIva si, SiacTDoc d \"//...oppure legato al Documento.\n\t\t\t+ \" WHERE si.dataCancellazione IS NULL \"\n\t\t\t+ \" AND si.siacRDocIva.dataCancellazione IS NULL\"\n\t\t\t+ \" AND si.siacRDocIva.siacTDoc = d \"\n\t\t\t+ \" AND EXISTS (FROM d.siacTSubdocs s \"\n\t\t\t+ \" WHERE s.subdocId = :subdocId \"\n\t\t\t+ \" AND s.dataCancellazione IS NULL \"\n\t\t\t+ \" ) \"\n\t\t\t+ \" ) \"\n\t\t\t\n\t\t\t+ \" ) \"\n\t\t\t+ \"\")\n\tSiacTSubdocIva findSiacTSubdocIvaNotaCreditoIvaAssociata(@Param(\"subdocId\") Integer subdocId);", "title": "" }, { "docid": "923f86db65622396e905135a77c8e0cf", "score": "0.49536043", "text": "@Override\n public List<Object[]> findDataLChartChildService(DashboardRequestDTO dashboardRequestDTO, Long plngServiceId) throws Exception {\n HashMap vhmpMapParams = new HashMap();\n int vintCycleId = dashboardRequestDTO.getCycleId();\n Long vlngPrdId = DataUtil.convertToPrdId(dashboardRequestDTO.getPrdId());\n java.sql.Date vdtDate = new Date(dashboardRequestDTO.getPrdId());\n Calendar cal = Calendar.getInstance();\n cal.setTime(vdtDate);\n cal.set(Calendar.DAY_OF_MONTH, cal.getActualMinimum(Calendar.DAY_OF_MONTH));\n Long vlngPrdStartMonth = Long.valueOf(formatToPrd.format(cal.getTime()));\n cal.set(Calendar.DAY_OF_YEAR, cal.getActualMinimum(Calendar.DAY_OF_YEAR));\n Long vlngPrdStartYear = Long.valueOf(formatToPrd.format(cal.getTime()));\n StringBuilder vsbdSqlBuilder = new StringBuilder();\n\n //CHU KI NGAY\n if (vintCycleId == Constants.CYCLE_ID.DAY) {\n vsbdSqlBuilder.append(\"select date_format(cast(prd_id as date), '%d/%m/%Y'), \");\n vsbdSqlBuilder.append(\"(select name from service where id = p.service_id), \");\n vsbdSqlBuilder.append(\"th, vds_channel_code, shop_code, dvt, \");\n vsbdSqlBuilder.append(\"(select name from unit where code = p.dvt and status = '1') \");\n vsbdSqlBuilder.append(\"from chart_service_measure_daily p \");\n vsbdSqlBuilder.append(\"where 1 = 1 \");\n vsbdSqlBuilder.append(\"and staff_code is null \");\n if (!DataUtil.isNullOrZero(plngServiceId)) {\n vsbdSqlBuilder.append(\"and service_id = :serviceId \");\n vhmpMapParams.put(\"serviceId\", plngServiceId);\n }\n if (!DataUtil.isNullOrEmpty(dashboardRequestDTO.getObjectCode())) {\n vsbdSqlBuilder.append(\"and ifnull(shop_code, 'a') = ifnull(:shopCode, 'a') \");\n vhmpMapParams.put(\"shopCode\", dashboardRequestDTO.getObjectCode());\n }\n if (!DataUtil.isNullOrEmpty(dashboardRequestDTO.getVdsChannelCode())) {\n vsbdSqlBuilder.append(\" and ifnull(vds_channel_code, 'a') = ifnull(:vdsChannelCode, 'a') \");\n vhmpMapParams.put(\"vdsChannelCode\", dashboardRequestDTO.getVdsChannelCode());\n } else {\n vsbdSqlBuilder.append(\" and vds_channel_code is null \");\n }\n vsbdSqlBuilder.append(\"and prd_id between :prdStartMonth and :prdId \");\n vhmpMapParams.put(\"prdStartMonth\", vlngPrdStartMonth);\n }\n //CHU KI THANG\n if (vintCycleId == Constants.CYCLE_ID.MONTH) {\n vsbdSqlBuilder.append(\"select date_format(cast(prd_id as date), '%m/%Y'), \");\n vsbdSqlBuilder.append(\"(select name from service where id = p.service_id), \");\n vsbdSqlBuilder.append(\"th, vds_channel_code, shop_code, dvt, \");\n vsbdSqlBuilder.append(\"(select name from unit where code = p.dvt and status = '1') \");\n vsbdSqlBuilder.append(\"from chart_service_measure_monthly p \");\n vsbdSqlBuilder.append(\"where 1 = 1 \");\n vsbdSqlBuilder.append(\"and staff_code is null \");\n if (!DataUtil.isNullOrZero(plngServiceId)) {\n vsbdSqlBuilder.append(\"and service_id = :serviceId \");\n vhmpMapParams.put(\"serviceId\", plngServiceId);\n }\n if (!DataUtil.isNullOrEmpty(dashboardRequestDTO.getObjectCode())) {\n vsbdSqlBuilder.append(\"and ifnull(shop_code, 'a') = ifnull(:shopCode, 'a') \");\n vhmpMapParams.put(\"shopCode\", dashboardRequestDTO.getObjectCode());\n }\n if (!DataUtil.isNullOrEmpty(dashboardRequestDTO.getVdsChannelCode())) {\n vsbdSqlBuilder.append(\" and ifnull(vds_channel_code, 'a') = ifnull(:vdsChannelCode, 'a') \");\n vhmpMapParams.put(\"vdsChannelCode\", dashboardRequestDTO.getVdsChannelCode());\n } else {\n vsbdSqlBuilder.append(\" and vds_channel_code is null \");\n }\n vsbdSqlBuilder.append(\"and prd_id between :prdStartYear and :prdId \");\n vhmpMapParams.put(\"prdStartYear\", vlngPrdStartYear);\n }\n //CHU KI QUY\n if (vintCycleId == Constants.CYCLE_ID.QUARTER) {\n vsbdSqlBuilder.append(\"select concat('Q', quarter(cast(prd_id as date)), '/', year(cast(prd_id as date))), \");\n vsbdSqlBuilder.append(\"(select name from service where id = p.service_id), \");\n vsbdSqlBuilder.append(\"th, vds_channel_code, shop_code, dvt, \");\n vsbdSqlBuilder.append(\"(select name from unit where code = p.dvt and status = '1') \");\n vsbdSqlBuilder.append(\"from chart_service_measure_quaterly p \");\n vsbdSqlBuilder.append(\"where 1 = 1 \");\n vsbdSqlBuilder.append(\"and staff_code is null \");\n if (!DataUtil.isNullOrZero(plngServiceId)) {\n vsbdSqlBuilder.append(\"and service_id = :serviceId \");\n vhmpMapParams.put(\"serviceId\", plngServiceId);\n }\n if (!DataUtil.isNullOrEmpty(dashboardRequestDTO.getObjectCode())) {\n vsbdSqlBuilder.append(\"and ifnull(shop_code, 'a') = ifnull(:shopCode, 'a') \");\n vhmpMapParams.put(\"shopCode\", dashboardRequestDTO.getObjectCode());\n }\n if (!DataUtil.isNullOrEmpty(dashboardRequestDTO.getVdsChannelCode())) {\n vsbdSqlBuilder.append(\" and ifnull(vds_channel_code, 'a') = ifnull(:vdsChannelCode, 'a') \");\n vhmpMapParams.put(\"vdsChannelCode\", dashboardRequestDTO.getVdsChannelCode());\n } else {\n vsbdSqlBuilder.append(\" and vds_channel_code is null \");\n }\n vsbdSqlBuilder.append(\"and prd_id between :prdStartYear and :prdId \");\n vhmpMapParams.put(\"prdStartYear\", vlngPrdStartYear);\n }\n\n Query query = entityManager.createNativeQuery(vsbdSqlBuilder.toString());\n vhmpMapParams.put(\"prdId\", vlngPrdId);\n vhmpMapParams.forEach((k, v) -> {\n query.setParameter(k.toString(), v);\n });\n\n List<Object[]> vlstData = query.getResultList();\n return vlstData;\n }", "title": "" }, { "docid": "b3579bee1727308176a4775dfc9cd03d", "score": "0.4950409", "text": "@Override\n\tpublic Map<String, Map<String, Object>> buildWhereHql() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b6027c943c897def4bcae1b4d55c536f", "score": "0.49417233", "text": "private String buildQuery(){\r\n\t\tString str=\"select event.eventid, event.title, event.location, event.dateevent, event.description, event.numberplaces\"\r\n\t\t\t\t+ \", event.suserid, username \"\r\n\t\t\t\t+ \"from event \"+\r\n\t\t\t\t\"join signeduser on event.suserid = signeduser.suserid \"+\r\n\t\t\t\t\"where dateevent > CURRENT_DATE() and UPPER(status) not = 'CANCELLED'\" ;\r\n\t\treturn str ;\r\n\t}", "title": "" }, { "docid": "51c0818a94aaae5b326143b75887ab5a", "score": "0.49383405", "text": "public static String SQL_Req()\n {\n String SqlReq=\"select dd.id as DDID \\n\" +\n \" ,dd.patient_id as DD_PAT \\n\" +\n \" ,dc.patient_id as DC_PAT \\n\" +\n \" ,p.snils as snils \\n\" +\n \" ,p.lastname as surname \\n\" +\n \" ,p.firstname as name \\n\" +\n \" ,p.middlename as patronimic\\n\" +\n \" ,case when (dc.placementservice is not null or dc.placementservice ='1') then '1' else '0' end as BOZ_FLAG \\n\" +\n \" ,dd.job as LPU_EMPLOYER \\n\" +\n \" ,dd.workcombotype_id as LPU_EMPL_FLAG \\n\" +\n \" ,dd.number as ln_code \\n\" +\n \" ,vddp.code as PRIMARY_FLAG\\n\" +\n \" ,case when (select count(a.id) from disabilitydocument a where a.duplicate_id=dd.id) >0 then '1' else '0'end as duplicate_flag --111\\n\" +\n \" ,dd.issuedate as ln_date\\n\" +\n \" ,case when ml2.id is not null then ml2.name else ml1.name end as lpu_name\\n\" +\n \" ,case when ml2.id is not null then ml2.printaddress else ml1.printaddress end as lpu_address \\n\" +\n \" ,case when ml2.id is not null then ml2.ogrn else ml1.ogrn end as lpu_ogrn\\n\" +\n \" ,p.birthday as birthday \\n\" +\n \" ,case when sex.omccode = '1' then '0' else '1' end as gender \\n\" +\n \" ,vdr.codef as REASON1 \\n\" +\n \" ,vdr2.code as REASON2 \\n\" +\n \" ,vdr3.code as REASON3 \\n\" +\n \" ,mkb.code as diagnos\\n\" +\n \" ,dd.mainworkdocumentnumber as PARENT_CODE \\n\" +\n \" ,dd.sanatoriumdatefrom as date1 \\n\" +\n \" ,dd.sanatoriumdateto as date2\\n\" +\n \" ,dd.sanatoriumticketnumber as voucher_no \\n\" +\n \" ,dd.sanatoriumogrn as voucher_ogrn \\n\" +\n \" ,case when p1.id is not null and p1.id!=p.id then to_char(p1.birthday,'yyyy-MM-dd') else to_char(p12.birthday,'yyyy-MM-dd') end as serv1_age\\n\" +\n \" ,case when p1.id is not null and p1.id!=p.id then vkr1.code else vkr1.oppositeRoleCode end as serv1_relation_code\\n\" +\n \" ,case when p1.id is not null and p1.id!=p.id then p1.lastname||' '||p1.firstname||' '||p1.middlename else p12.lastname||' '||p12.firstname||' '||p12.middlename end as serv1_fio\\n\" +\n \" ,case when p2.id is not null and p2.id!=p.id then to_char(p2.birthday,'yyyy-MM-dd') else to_char(p22.birthday,'yyyy-MM-dd') end as serv2_age \\n\" +\n \" ,case when p2.id is not null and p2.id!=p.id then vkr2.code else vkr2.oppositeRoleCode end as serv2_relation_code\\n\" +\n \" ,case when p2.id is not null and p2.id!=p.id then p2.lastname||' '||p2.firstname||' '||p2.middlename else p22.lastname||' '||p22.firstname||' '||p22.middlename end as serv2_fio \\n\" +\n // \" --,p2.lastname||' '||p2.firstname||' '||p2.middlename as serv2_fio\\n\" +\n \" ,case when (dc.earlypregnancyregistration is not null or dc.earlypregnancyregistration ='1') then '1' else '' end as PREGN12W_FLAG \\n\" +\n \" ,dd.hospitalizedfrom as HOSPITAL_DT1 \\n\" +\n \" ,dd.hospitalizedto as HOSPITAL_DT2 \\n\" +\n \" ,dd.closereason_id as closereason\\n\" +\n \" ,dd.otherclosedate as other_state_dt \\n\" +\n \" ,dd3.number as NEXT_LN_CODE \\n\" +\n \" ,dd.status_id as ln_state\\n\" +\n \" ,mss.assignmentdate as mse_dt1 \\n\" +\n \" ,mss.registrationdate as mse_dt2\\n\" +\n \" ,mss.examinationdate as mse_dt3\\n\" +\n \" ,vi.code \\n\" +\n \" ,disrec.datefrom as tread_dt1 \\n\" +\n \" ,disrec.dateto as tread_dt2\\n\" +\n \" ,vwf.name as tread_doctor_role\\n\" +\n \" ,docname.lastname ||' '|| docname.firstname ||' '|| docname.middlename as treat_doctor \\n\" +\n \" ,vwf2.name as TREAT_CHAIRMAN_ROLE --должность вк\\n\" +\n \" ,vkname.lastname ||' '|| vkname.firstname ||' '|| vkname.middlename as TREAT_CHAIRMAN --фио вк\\n\" +\n \" ,rvr.datefrom as HOSPITAL_BREACH_CODE \\n\" +\n \" ,rvr.regimeviolationtype_id as HOSPITAL_BREACH_DT\\n\" +\n \" ,dd.isclose \\n\" +\n // \" --,docname.id as DocId\\n\" +\n \" ,dd.idc10_id as none_giagnosis \\n\" +\n \" ,dd.disabilitycase_id as none_discase \\n\" +\n \" ,dd.documenttype_id as none_ln_type \\n\" +\n \" ,dd.hospitalizednumber \\n\" +\n // \" -- ,dd.duplicate_id as f_duplicate \\n\" +\n // \" --,case when (select dd.id from disabilitydocument b, disabilitydocument c where b.id=c.duplicate_id and b.id=dd.id) is not null then '1' else '0'end as dublicate --111\\n\" +\n // \" --,p2.birthday as serv2_age \\n\" +\n // \" --,vkr2.code as serv2_relation \\n\" +\n \" ,dd2.number as prevDocument \\n\" +\n \" ,coalesce(vddcr.codef,'') as mse_result \\n\" +\n \" ,dd.issuedate as GoToWork \\n\" +\n \" from disabilitydocument dd \\n\" +\n \" left join (select min(datefrom) as datefrom,disabilitydocument_id from disabilityrecord group by disabilitydocument_id) as dr on dr.disabilitydocument_id=dd.id \\n\" +\n \" left join vocdisabilitydocumentclosereason vddcr on vddcr.id = dd.closereason_id \\n\" +\n \" left join disabilitydocument dd3 on dd3.prevdocument_id=dd.id \\n\" +\n \" left join disabilitydocument dd2 on dd2.id=dd.prevdocument_id \\n\" +\n \" left join disabilitycase dc on dc.id=dd.disabilitycase_id \\n\" +\n \" left join patient p on p.id=dc.patient_id \\n\" +\n \" left join vocsex sex on sex.id=p.sex_id \\n\" +\n \" left join vocidc10 mkb on mkb.id=dd.idc10final_id \\n\" +\n \" left join vocdisabilityreason vdr on vdr.id=dd.disabilityreason_id \\n\" +\n \" left join vocdisabilityreason vdr3 on vdr3.id=dd.disabilityreasonchange_id \\n\" +\n \" left join kinsman k1 on k1.id=dc.nursingperson1_id \\n\" +\n \" left join vockinsmanrole vkr1 on vkr1.id=k1.kinsmanrole_id \\n\" +\n \" left join patient p1 on p1.id=k1.kinsman_id \\n\" +\n \" left join patient p12 on p12.id=k1.person_id \\n\" +\n \" left join kinsman k2 on k2.id=dc.nursingperson2_id \\n\" +\n \" left join vockinsmanrole vkr2 on vkr2.id=k2.kinsmanrole_id \\n\" +\n \" left join patient p2 on p2.id=k2.kinsman_id \\n\" +\n \" left join patient p22 on p22.id=k2.person_id \\n\" +\n \" left join statisticstub ss on ss.code=dd.hospitalizednumber and ss.year=cast(to_char(dd.hospitalizedfrom,'yyyy')as int) \\n\" +\n \" left join medcase mc on mc.id=ss.medcase_id \\n\" +\n \" left join mislpu ml1 on ml1.id=mc.lpu_id \\n\" +\n \" left join mislpu ml2 on ml2.id=ml1.parent_id \\n\" +\n \" left join vocdisabilityreason2 vdr2 on vdr2.id=dd.disabilityreason2_id \\n\" +\n \" left join vocdisabilitydocumentprimarity vddp on vddp.id=dd.primarity_id\\n\" +\n \" left join disabilityrecord disrec on disrec.disabilitydocument_id = dd.id\\n\" +\n \" left join workfunction wf on wf.id = disrec.workfunction_id \\n\" +\n \" left join worker w on w.id = wf.worker_id\\n\" +\n \" left join patient docname on docname.id = w.person_id \\n\" +\n \" left join VocWorkFunction vwf on vwf.id = wf.workFunction_id\\n\" +\n \" left join workfunction wf2 on wf2.id = disrec.workfunctionadd_id\\n\" +\n \" left join worker w2 on w2.id = wf2.worker_id\\n\" +\n \" left join patient vkname on vkname.id = w2.person_id\\n\" +\n \" left join VocWorkFunction vwf2 on vwf2.id = wf2.workFunction_id\\n\" +\n \" left join regimeviolationrecord rvr on rvr.disabilitydocument_id = dd.id\\n\" +\n \" left join medsoccommission mss on mss.disabilitydocument_id=dd.id\\n\" +\n \" left join vocinvalidity vi on vi.id=mss.invalidity_id\\n\" +\n \" where dd.exportdate is null \\n\" +\n \" and dd.anotherlpu_id is null \\n\" +\n \" and (dd.noactuality is null or dd.noactuality='0') \\n\" +\n \" and (ss.dtype='StatisticStubExist' or ss.id is null) \\n\" +\n \" and dd.id = \"+GlobalVariables.DisabilityDocument_id;\n\n return SqlReq;\n }", "title": "" }, { "docid": "e1e5cbb81993c0d60014521144ba3fba", "score": "0.49288636", "text": "private OnStudySurgery[] populateOnStudySurgery(ClinicalDataQuery clinicalQuery, Collection patientDIDs)throws Exception {\n \t \t \n \t\t\t if(patientDIDs.size()>=1) {\n \t\t\t Criteria onStudySurgeryCrit = buildOnStudySurgeryCriteria(clinicalQuery);\n \t \t if(onStudySurgeryCrit== null) {\n \t \t\t onStudySurgeryCrit = new Criteria();\n \t \t }\n \t \t \t\t \n \t \t onStudySurgeryCrit.addIn(OnStudySurgery.PATIENT_DID, patientDIDs);\n \t \t\t final PersistenceBroker pb = PersistenceBrokerFactory.defaultPersistenceBroker();\n \t \t ReportQueryByCriteria onStudySurgeryQuery = QueryFactory.newReportQuery(OnStudySurgery.class, onStudySurgeryCrit, true);\n \t \t \n \t \t onStudySurgeryQuery.setAttributes(new String[] {\n \t \t \t\t OnStudySurgery.TIME_POINT, OnStudySurgery.PROCEDURE_TITLE,\n \t \t \t\t OnStudySurgery.INDICATION,OnStudySurgery.SURGERY_DATE, \n \t \t \t\t OnStudySurgery.SURGERY_OUTCOME,OnStudySurgery.PATIENT_DID,\n \t \t \t\t OnStudySurgery.HISTO_DIAGNOSIS} ); \n \t \t \n \t \t \n \t \t Iterator onStudySurgeryDataObjects = pb.getReportQueryIteratorByQuery(onStudySurgeryQuery);\n \t \t \n \t \t ArrayList results = new ArrayList();\n \t \t populateOnStudySurgeryResults(onStudySurgeryDataObjects, results);\n \t \t \n \t \t \n \t \t OnStudySurgery[] finalResult = new OnStudySurgery[results.size()];\n \t \t for (int i = 0; i < results.size(); i++) {\n \t \t \tOnStudySurgery onStudySurgeryData = (OnStudySurgery) results.get(i);\n \t \t finalResult[i] = onStudySurgeryData ;\n \t \t }\n \t \t pb.close();\n \t \t \n \t \t return finalResult; \n \t }\n \t else {\n \t return null;\n \t }\n \t \n \t }", "title": "" }, { "docid": "d4578f74e07d353f2e02e952a272d351", "score": "0.49055812", "text": "private PatientData[] executeQuery(Criteria allCriteria) throws Exception {\n final PersistenceBroker pb = PersistenceBrokerFactory.defaultPersistenceBroker();\n ReportQueryByCriteria sampleQuery = QueryFactory.newReportQuery(PatientData.class, allCriteria, true);\n \n sampleQuery.setAttributes(new String[] {\n PatientData.BIOSPECIMEN_ID, PatientData.GENDER,\n PatientData.DISEASE_TYPE, PatientData.AGE_GROUP,\n PatientData.SAMPLE_ID, PatientData.SURVIVAL_LENGTH_RANGE,\n PatientData.RACE,PatientData.PATIENT_DID,\n PatientData.SURVIVAL_LENGTH,PatientData.CENSORING_STATUS,\n PatientData.AGE,PatientData.WHO_GRADE,\n PatientData.INSTITUTION_NAME, PatientData.SPECIMEN_NAME\n } ); \n \n \n \n Iterator patientDataObjects = pb.getReportQueryIteratorByQuery(sampleQuery);\n \n ArrayList results = new ArrayList();\n populateResults(patientDataObjects, results);\n \n \n PatientData[] finalResult = new PatientData[results.size()];\n for (int i = 0; i < results.size(); i++) {\n PatientData patientData = (PatientData) results.get(i);\n finalResult[i] = patientData ;\n }\n pb.close();\n return finalResult;\n }", "title": "" }, { "docid": "064f4a3a8c1c3e769b9d007269b3b7c8", "score": "0.48977432", "text": "private QueryBuilder builFiltertQuery(final FilterDTO filterDTO) {\r\n return builFiltertQuery(filterDTO, false);\r\n }", "title": "" }, { "docid": "8b954e2561f59f47598bb15f2e80b645", "score": "0.48940197", "text": "QueryType createQueryType();", "title": "" }, { "docid": "bef7362e049ab997b9a82045948162cf", "score": "0.48839593", "text": "public EntidadUsuario cargarDetalleRutaVendedor(int idEntidadUsuario)\r\n/* 276: */ {\r\n/* 277:321 */ CriteriaBuilder criteriaBuilder = this.em.getCriteriaBuilder();\r\n/* 278: */ \r\n/* 279: */ \r\n/* 280:324 */ CriteriaQuery<EntidadUsuario> cqCabecera = criteriaBuilder.createQuery(EntidadUsuario.class);\r\n/* 281:325 */ Root<EntidadUsuario> fromCabecera = cqCabecera.from(EntidadUsuario.class);\r\n/* 282:326 */ Fetch<Object, Object> empleado = fromCabecera.fetch(\"empleado\", JoinType.LEFT);\r\n/* 283:327 */ empleado.fetch(\"empresa\", JoinType.LEFT);\r\n/* 284:328 */ fromCabecera.fetch(\"tipoVendedor\", JoinType.LEFT);\r\n/* 285: */ \r\n/* 286:330 */ Path<Integer> pathId = fromCabecera.get(\"idUsuario\");\r\n/* 287:331 */ cqCabecera.where(criteriaBuilder.equal(pathId, Integer.valueOf(idEntidadUsuario)));\r\n/* 288:332 */ CriteriaQuery<EntidadUsuario> selectUsuario = cqCabecera.select(fromCabecera);\r\n/* 289: */ \r\n/* 290:334 */ EntidadUsuario entidadUsuario = (EntidadUsuario)this.em.createQuery(selectUsuario).getSingleResult();\r\n/* 291: */ \r\n/* 292:336 */ CriteriaQuery<RutaVendedor> cqVendedorSector = criteriaBuilder.createQuery(RutaVendedor.class);\r\n/* 293:337 */ Root<RutaVendedor> fromVendedorSector = cqVendedorSector.from(RutaVendedor.class);\r\n/* 294:338 */ fromVendedorSector.fetch(\"usuario\", JoinType.LEFT);\r\n/* 295:339 */ fromVendedorSector.fetch(\"sector\", JoinType.LEFT);\r\n/* 296:340 */ Path<Integer> pathVendedor = fromVendedorSector.join(\"usuario\").get(\"idUsuario\");\r\n/* 297:341 */ cqVendedorSector.where(criteriaBuilder.equal(pathVendedor, Integer.valueOf(idEntidadUsuario)));\r\n/* 298:342 */ CriteriaQuery<RutaVendedor> selectVendedorSector = cqVendedorSector.select(fromVendedorSector);\r\n/* 299:343 */ List<RutaVendedor> listaVendedorSector = this.em.createQuery(selectVendedorSector).getResultList();\r\n/* 300:344 */ entidadUsuario.setListaRutaVendedor(listaVendedorSector);\r\n/* 301: */ \r\n/* 302:346 */ entidadUsuario.setListaUsuarioSuperior(new ArrayList());\r\n/* 303:347 */ entidadUsuario.setListaUsuarioDimensionContable(new ArrayList());\r\n/* 304: */ \r\n/* 305:349 */ return entidadUsuario;\r\n/* 306: */ }", "title": "" }, { "docid": "c9a325d0c7d160b2455fd0016e1569a1", "score": "0.4877529", "text": "public Query setQueryParametersInNormalSearch(Query query,\n\t\t\tPatientSearchCriteriaDto criteria) {\n\n\t\tif (!criteria.getName().equals(NULL_STRING)) {\n\t\t\tquery.setParameter(\"name\", criteria.getName());\n\t\t}\n\t\tif (!criteria.getGender().equals(NULL_STRING)) {\n\t\t\tquery.setParameter(\"gender\", criteria.getGender());\n\t\t}\n\t\treturn query;\n\t}", "title": "" }, { "docid": "3a2e69b8170849a912583db544b59057", "score": "0.4867593", "text": "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "title": "" }, { "docid": "3a2e69b8170849a912583db544b59057", "score": "0.4867593", "text": "protected Criteria createCriteriaInternal() {\r\n Criteria criteria = new Criteria();\r\n return criteria;\r\n }", "title": "" }, { "docid": "aaca98df7602f81cf4e00bfc20645b2f", "score": "0.4853325", "text": "public Cass obtenerCassUnico(int idOrganizacion, String recordId, String cassAreaCode, Integer airlinePrefix, Integer datePeriodStart, Integer datePeriodEnd, Integer dateOfBilling, Integer fileNumber, String currencyCode)\r\n/* 20: */ {\r\n/* 21:32 */ StringBuilder sql = new StringBuilder();\r\n/* 22:33 */ sql.append(\" SELECT c FROM Cass c \");\r\n/* 23:34 */ sql.append(\" WHERE c.idOrganizacion = :idOrganizacion \");\r\n/* 24:35 */ sql.append(\" AND c.recordId = :recordId \");\r\n/* 25:36 */ sql.append(\" AND c.cassAreaCode = :cassAreaCode \");\r\n/* 26:37 */ sql.append(\" AND c.airlinePrefix = :airlinePrefix \");\r\n/* 27:38 */ sql.append(\" AND c.datePeriodStart = :datePeriodStart \");\r\n/* 28:39 */ sql.append(\" AND c.datePeriodEnd = :datePeriodEnd \");\r\n/* 29:40 */ sql.append(\" AND c.dateOfBilling = :dateOfBilling \");\r\n/* 30:41 */ sql.append(\" AND c.fileNumber = :fileNumber \");\r\n/* 31:42 */ sql.append(\" AND c.currencyCode = :currencyCode \");\r\n/* 32:43 */ sql.append(\" AND c.estado != :estado \");\r\n/* 33: */ \r\n/* 34:45 */ Query query = this.em.createQuery(sql.toString());\r\n/* 35:46 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 36:47 */ query.setParameter(\"recordId\", recordId);\r\n/* 37:48 */ query.setParameter(\"cassAreaCode\", cassAreaCode);\r\n/* 38:49 */ query.setParameter(\"airlinePrefix\", airlinePrefix);\r\n/* 39:50 */ query.setParameter(\"datePeriodStart\", datePeriodStart);\r\n/* 40:51 */ query.setParameter(\"datePeriodEnd\", datePeriodEnd);\r\n/* 41:52 */ query.setParameter(\"dateOfBilling\", dateOfBilling);\r\n/* 42:53 */ query.setParameter(\"fileNumber\", fileNumber);\r\n/* 43:54 */ query.setParameter(\"currencyCode\", currencyCode);\r\n/* 44:55 */ query.setParameter(\"estado\", Estado.ANULADO);\r\n/* 45: */ try\r\n/* 46: */ {\r\n/* 47:58 */ return (Cass)query.getSingleResult();\r\n/* 48: */ }\r\n/* 49: */ catch (NoResultException e) {}\r\n/* 50:60 */ return null;\r\n/* 51: */ }", "title": "" }, { "docid": "d05d6d51ad7e6a22752c1039ae0832d1", "score": "0.48511592", "text": "private NativeSearchQueryBuilder buildQuery(Pesquisa pesquisa) {\n\t\tNativeSearchQueryBuilder builder = new NativeSearchQueryBuilder();\n\t\tbuilder.withFields(pesquisa.campos());\n\t\tbuilder.withTypes(pesquisa.tipos());\n\t\tbuilder.withIndices(pesquisa.indices());\n\t\tbuilder.withSearchType(DFS_QUERY_THEN_FETCH);\n\t\tMap<String, String> ordenadores = pesquisa.ordenadores();\n\t\tordenadores.keySet().forEach(ordenador -> {\n\t\t\tSortOrder sentido = (DESC.toString().equalsIgnoreCase(ordenadores.get(ordenador))) ? DESC : ASC;\n\t\t\tbuilder.withSort(fieldSort(ordenador).order(sentido));\n\t\t});\n\t\treturn builder;\n\t}", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" }, { "docid": "98c82600b947fafef2baf87346c5e73c", "score": "0.4848986", "text": "public Criteria createCriteria() {\n Criteria criteria = createCriteriaInternal();\n if (oredCriteria.size() == 0) {\n oredCriteria.add(criteria);\n }\n return criteria;\n }", "title": "" } ]
89dc6b1970f3b782d256c88f6f19e9c3
Set the value related to the column: bimanual_lateral
[ { "docid": "e88bd90b0e507d5c26b5f33f2ca40393", "score": "0.6865346", "text": "public void setBimanualLateral (java.lang.String bimanualLateral) {\n\t\tthis.bimanualLateral = bimanualLateral;\n\t}", "title": "" } ]
[ { "docid": "4e321c86c36611019025d02b5598a839", "score": "0.64607435", "text": "public void setLateralidade(byte value) {\n this.lateralidade = value;\n }", "title": "" }, { "docid": "ea1098bba8da08391563a3bfb5fc3e3e", "score": "0.5888503", "text": "public java.lang.String getBimanualLateral () {\n\t\treturn bimanualLateral;\n\t}", "title": "" }, { "docid": "79caba1406596be3b0efacdd665fb347", "score": "0.5603295", "text": "public void setCOLLATERAL_BRANCH(BigDecimal COLLATERAL_BRANCH)\r\n {\r\n\tthis.COLLATERAL_BRANCH = COLLATERAL_BRANCH;\r\n }", "title": "" }, { "docid": "1477da2371fc9b68d4c728d7e5d8c8ff", "score": "0.53869116", "text": "public void setBalorazioenBB(double balorazioenBB);", "title": "" }, { "docid": "218eba0c1d1b9e93cd335cccf2ea7459", "score": "0.51868975", "text": "public void setCanal(Canal canal)\r\n/* 551: */ {\r\n/* 552:686 */ this.canal = canal;\r\n/* 553: */ }", "title": "" }, { "docid": "dc9d751c450483dcb603fd86a3d8b6f6", "score": "0.51639867", "text": "public void actualizar_bateria (String bateria) {\r\n this.bateria = bateria;\r\n }", "title": "" }, { "docid": "01d55f14d1170e4703d4988f008b47f9", "score": "0.51306933", "text": "public void setBatiment(Batiment batiment) {\r\n this.batiment = batiment;\r\n }", "title": "" }, { "docid": "42cdde212b79c2d75470ad218cd1b179", "score": "0.5115156", "text": "public void setMontlySalary(double monthlysalary) {\n\n\n montlySalary = monthlysalary;\n }", "title": "" }, { "docid": "5ebbaf6e6d668d477ce38dae4aad7750", "score": "0.5081241", "text": "public void setBateriaBaixa(boolean bateriaBaixa)\r\n/* */ {\r\n/* 315 */ this.bateriaBaixa = (this.tensaoBateria < 19.0F);\r\n/* */ }", "title": "" }, { "docid": "2a374e5be57dc04b8acf1a5e3afa834d", "score": "0.5057651", "text": "public void setSouthBL(double southBL)\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(SOUTHBL$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SOUTHBL$4);\n }\n target.setDoubleValue(southBL);\n }\n }", "title": "" }, { "docid": "fce1c798db8f9dad9def7c32589aafa7", "score": "0.50336397", "text": "public void setBateriaBaixa(int bateriaBaixa) {}", "title": "" }, { "docid": "e59090d048275193aa2481596245cd44", "score": "0.5002996", "text": "public void dapatLebar(double lebar) {\r\n this.lebar = lebar;\r\n }", "title": "" }, { "docid": "2b7460637bb4f0701cfbae44368e20ad", "score": "0.4993359", "text": "public void atualizar(Aluno aluno){\n //Criei um ContentValues que são os valores que eu vou atualizar na tabela\n ContentValues values = new ContentValues();\n values.put(\"nome\", aluno.getNome());\n values.put(\"cpf\", aluno.getCpf());\n values.put(\"telefone\", aluno.getTelefone());\n values.put(\"cep\", aluno.getCep());\n values.put(\"logradouro\", aluno.getLogradouro());\n values.put(\"complemento\", aluno.getComplemento());\n values.put(\"bairro\", aluno.getBairro());\n values.put(\"localidade\", aluno.getLocalidade());\n values.put(\"estado\", aluno.getUf());\n\n //No lugar do meu interrogação '?' aqui ele passa o meu {a.getId().toString()}\n banco.update(\"aluno\", values,\n \"id = ?\", new String[]{aluno.getId().toString()});\n }", "title": "" }, { "docid": "a12dd59c7951ecfb3c8045b2d4cbd7b5", "score": "0.4957048", "text": "public void setBianhao(Long bianhao) {\r\n this.bianhao = bianhao;\r\n }", "title": "" }, { "docid": "0f15ce6838b440f7d92f1bae7a6cccf1", "score": "0.49279934", "text": "public void setBulanLahir(int bulanLahir) throws NumberFormatException {\n if(bulanLahir>0 && bulanLahir<13)\r\n this.bulanLahir = bulanLahir;\r\n else{ throw new NumberFormatException(\"Bulan Lahir tidak vaild\");}\r\n }", "title": "" }, { "docid": "bf3fe10f935ea7f364093363a3380497", "score": "0.49189836", "text": "public void setBal(int bal) {\n //this.variableConstructor = variableSet;\n this.bal = bal; \n }", "title": "" }, { "docid": "86c7b580fca607e4819ab79fa5b60d7d", "score": "0.49082178", "text": "public void setB(int value) {\n this.b = value;\n }", "title": "" }, { "docid": "5468f054ccc0686e4a13077512450996", "score": "0.48987487", "text": "void tinhgia() {\n\n for (int i = 0; i < model.getRowCount(); i++) {\n int a = 0;\n int b = (int) Double.parseDouble(tblsanpham.getValueAt(i, 3).toString());\n int c = (int) Double.parseDouble(tblsanpham.getValueAt(i, 2).toString());\n a = b * c;\n tblsanpham.setValueAt(a, i, 5);\n }\n }", "title": "" }, { "docid": "1cd450729a6730310bc9c99b6a21e570", "score": "0.48966965", "text": "public void setTasaIVA(java.math.BigDecimal tasaIVA)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TASAIVA$10, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TASAIVA$10);\r\n }\r\n target.setBigDecimalValue(tasaIVA);\r\n }\r\n }", "title": "" }, { "docid": "bbe61060bed55c5267692b92cb7bbbe0", "score": "0.48608613", "text": "public void setCanal(IbCanal canal) {\n this.canal = canal;\n }", "title": "" }, { "docid": "ff6f88524e22f0f2aee20b1b6c56b098", "score": "0.48585406", "text": "public abstract void setPeti_alta(java.lang.Long newPeti_alta);", "title": "" }, { "docid": "2b1b65be149292538352b71d0dd967cd", "score": "0.4812552", "text": "public void setBetrag(BigDecimal betrag) throws SEPAException\n {\n checkBetrag(betrag);\n this.betrag = betrag;\n }", "title": "" }, { "docid": "703a3352f41cd38168e0413fbfa699f0", "score": "0.48116657", "text": "public void setBill(Bill _foreigner, boolean _autocommit)\n\t{\n\t\tbill_id= _foreigner.getId();\n\t\tif (_autocommit == true)\n\t\t\tcommit();\n\t}", "title": "" }, { "docid": "96b57a11aef1917eb8c8c7301f7a6ee7", "score": "0.4792339", "text": "public void setRef_OrderLine_ID (BigDecimal Ref_OrderLine_ID)\n{\nset_Value (\"Ref_OrderLine_ID\", Ref_OrderLine_ID);\n}", "title": "" }, { "docid": "dcb27736b1241004ac25c6cb6fd8eef3", "score": "0.47746444", "text": "public void setC_Tax_ID (int C_Tax_ID)\n{\nset_Value (\"C_Tax_ID\", new Integer(C_Tax_ID));\n}", "title": "" }, { "docid": "6d45afad6d2c2d83b64b83b508cd9987", "score": "0.4767018", "text": "public synchronized void setArian(float arian) {\n this.arian = arian;\n }", "title": "" }, { "docid": "4a0c3234bcef50ae471e681c8008904a", "score": "0.47520214", "text": "public void setBRANCH(BigDecimal BRANCH) {\r\n this.BRANCH = BRANCH;\r\n }", "title": "" }, { "docid": "4a0c3234bcef50ae471e681c8008904a", "score": "0.47520214", "text": "public void setBRANCH(BigDecimal BRANCH) {\r\n this.BRANCH = BRANCH;\r\n }", "title": "" }, { "docid": "fa4a319c623f48ec099d7a02dea2bec5", "score": "0.47397134", "text": "public void setBateriaCarregada(int bateriaCarregada) {}", "title": "" }, { "docid": "95784a8367a9be96157c55a40288c201", "score": "0.4735018", "text": "public void setMONTHLY_SALARY(BigDecimal MONTHLY_SALARY) {\r\n this.MONTHLY_SALARY = MONTHLY_SALARY;\r\n }", "title": "" }, { "docid": "61c6e3eab74b11592d13bb556a91de80", "score": "0.47295502", "text": "public void setTrangThaiXuLy(int TrangThaiXuLy);", "title": "" }, { "docid": "1b57a6d1a3ac015e7e86d3dd808ae359", "score": "0.47291672", "text": "public void setWarGoalTabColumnValues() {\n\t\t/* Wargoal tab columns */\n\t\tcontroller.getColWarGoalActor().setCellValueFactory(\n\t\t\t\tnew PropertyValueFactory<WarGoal, String>(\"actor\"));\n\t\tcontroller.getColWarGoalReceiver().setCellValueFactory(\n\t\t\t\tnew PropertyValueFactory<WarGoal, String>(\"receiver\"));\n\t\tcontroller.getColWarGoalCasusBelli().setCellValueFactory(\n\t\t\t\tnew PropertyValueFactory<WarGoal, String>(\"casus_belli\"));\n\t\tcontroller.getColWarGoalCountry().setCellValueFactory(\n\t\t\t\tnew PropertyValueFactory<WarGoal, String>(\"country\"));\n\t\tcontroller.getColWarGoalStateID()\n\t\t\t\t.setCellValueFactory(\n\t\t\t\t\t\tnew PropertyValueFactory<WarGoal, Integer>(\n\t\t\t\t\t\t\t\t\"state_province_id\"));\n\t\t/*\n\t\t * Giving values to columns only if the game is HoD. Also hiding some\n\t\t * columns if there is nothing to put in them\n\t\t */\n\t\tif (FileLoader.checkVersion()) {\n\t\t\tcontroller.getColWarGoalDate().setCellValueFactory(\n\t\t\t\t\tnew PropertyValueFactory<WarGoal, String>(\"date\"));\n\t\t\tcontroller.getColWarGoalScore().setCellValueFactory(\n\t\t\t\t\tnew PropertyValueFactory<WarGoal, Double>(\"score\"));\n\t\t\tcontroller.getColWarGoalChange().setCellValueFactory(\n\t\t\t\t\tnew PropertyValueFactory<WarGoal, Double>(\"change\"));\n\t\t\tcontroller.getColWarGoalFulfilled().setCellValueFactory(\n\t\t\t\t\tnew PropertyValueFactory<WarGoal, Result>(\"fulfilled\"));\n\t\t\tcontroller.getColWarGoalDate().setVisible(true);\n\t\t\tcontroller.getColWarGoalScore().setVisible(true);\n\t\t\tcontroller.getColWarGoalChange().setVisible(true);\n\t\t\tcontroller.getColWarGoalFulfilled().setVisible(true);\n\t\t} else {\n\t\t\tcontroller.getColWarGoalDate().setVisible(false);\n\t\t\tcontroller.getColWarGoalScore().setVisible(false);\n\t\t\tcontroller.getColWarGoalChange().setVisible(false);\n\t\t\tcontroller.getColWarGoalFulfilled().setVisible(false);\n\t\t}\n\t}", "title": "" }, { "docid": "570dcd60e88f63a8d3ce174547ba168f", "score": "0.47227025", "text": "public void setTariff(Double newVal) {\n if ((newVal != null && this.tariff != null && (newVal.compareTo(this.tariff) == 0)) || \n (newVal == null && this.tariff == null && tariff_is_initialized)) {\n return; \n } \n this.tariff = newVal; \n tariff_is_modified = true; \n tariff_is_initialized = true; \n }", "title": "" }, { "docid": "e9a4b15c98a1ed33bab49c1e61a44e29", "score": "0.4717855", "text": "public void setTuition(double pTuition) {\r\n mTuition = pTuition;\r\n }", "title": "" }, { "docid": "52c793fb541943d25b26e7626e300058", "score": "0.47125253", "text": "public void setSecond(B b) {\n this.b = b;\n }", "title": "" }, { "docid": "d673c9daae5142dd481c90534ae16582", "score": "0.4711882", "text": "public void SetBayer(int _x)\r\n\t{\r\n\t\tthis.Bayer = _x;\r\n\t}", "title": "" }, { "docid": "1ab242798fea851c566dda4e6674b833", "score": "0.47106206", "text": "public void setBetalt(boolean i){\n betalt=i;\n }", "title": "" }, { "docid": "1b43c1a23e453c7913301c54ab3a4db6", "score": "0.4705238", "text": "void setDirectTerm1(BigDecimal value);", "title": "" }, { "docid": "9899a36a9dd38c47344e5c34e06434a0", "score": "0.4681865", "text": "public void setCEDEXBureauInternal(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CEDEXBUREAUINTERNAL_PROP.get(), value);\n }", "title": "" }, { "docid": "074b21255be9cb4c1cc555c90f25b372", "score": "0.46803793", "text": "public Builder setB(long value) {\n \n b_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "64aadb05fd84c976fa100b5833fcdfae", "score": "0.46792346", "text": "public void setBhTAvail(BigDecimal bhTAvail) {\r\n this.bhTAvail = bhTAvail;\r\n }", "title": "" }, { "docid": "b9ffa6c94b1c462f17930246caeb135a", "score": "0.46722367", "text": "public abstract void setLarghezzaEtichetta(int larghezza);", "title": "" }, { "docid": "4f5a4bec8a3c673ff3306a489467c21f", "score": "0.46706113", "text": "public void setPlco_bl_equivalencia(boolean plco_bl_equivalencia)\n/* */ {\n/* 85 */ this.plco_bl_equivalencia = plco_bl_equivalencia;\n/* */ }", "title": "" }, { "docid": "3069775efeb9f7d90d852fa3ed64eca4", "score": "0.46695307", "text": "public void setCarregandoBateria(int carregandoBateria) {}", "title": "" }, { "docid": "4d6142fee71f4ab13c39949971ed8cf7", "score": "0.46614695", "text": "void setDirectTerm3(BigDecimal value);", "title": "" }, { "docid": "d301e894049c51fd5ddb5968e9784861", "score": "0.4661172", "text": "public void setNorthBL(double northBL)\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(NORTHBL$6, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NORTHBL$6);\n }\n target.setDoubleValue(northBL);\n }\n }", "title": "" }, { "docid": "b68fb918058d92ad88a8b24d4551ca74", "score": "0.4661111", "text": "public int getBulanLahir() {\n return bulanLahir;\r\n }", "title": "" }, { "docid": "f7ec9a860b4bfa330db44e228bfe894e", "score": "0.4659341", "text": "public void setTabanAlani(Double tabanAlani) {\r\n\t\tthis.tabanAlani = tabanAlani;\r\n\t}", "title": "" }, { "docid": "e33716a410d27e033b19f72e7fe81d91", "score": "0.46563494", "text": "public void xsetSouthBL(org.apache.xmlbeans.XmlDouble southBL)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDouble target = null;\n target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(SOUTHBL$4, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(SOUTHBL$4);\n }\n target.set(southBL);\n }\n }", "title": "" }, { "docid": "30534834e94ea406fb2a9f621c447aa6", "score": "0.465043", "text": "@Override\n\tpublic void setTemp_price_b(float b) {\n\t\tthis.temp_price_b=b;\n\t}", "title": "" }, { "docid": "165529cd40d84a2351f9dd58e242a4b4", "score": "0.46477887", "text": "public void setB(double b) {\n mB = b;\n mNormalized = false;\n }", "title": "" }, { "docid": "cf04d1346b6a92621327e7051265f320", "score": "0.46343917", "text": "public OperacaoBancariaPersist valorTarifa(BigDecimal valorTarifa) {\n this.valorTarifa = valorTarifa;\n return this;\n }", "title": "" }, { "docid": "5dc92f3cbd2448f554fde611ef61d6a2", "score": "0.4628741", "text": "public void setBanhao(Long banhao) {\r\n this.banhao = banhao;\r\n }", "title": "" }, { "docid": "e03e02d677286f116cbdd8fa9a3cb03b", "score": "0.4615685", "text": "public void setBina(Bina bina) {\r\n\t\tthis.bina = bina;\r\n\t}", "title": "" }, { "docid": "f4423884815dea1eda2ab87e4195e055", "score": "0.4615531", "text": "public void setTanggal(Date tanggal) {\r\n this.tanggal = tanggal;\r\n }", "title": "" }, { "docid": "7f0ae8331dc9659c15d84b46fffaa6fa", "score": "0.4604353", "text": "public void setBateriaDescarregada(int bateriaDescarregada) {}", "title": "" }, { "docid": "a64c9845955ab497a684ab980252e51c", "score": "0.46039808", "text": "public void setBowColumn(int column)\n {\n bowColumn = column;\n }", "title": "" }, { "docid": "78f9133116b8621e45dd7021d3c7a1ee", "score": "0.46021235", "text": "public void setYunjia(BigDecimal yunjia) {\r\n this.yunjia = yunjia;\r\n }", "title": "" }, { "docid": "fbbc999eff06c08a65f6aa8b589a8fa9", "score": "0.46007675", "text": "public void setCEDEXBureauInternal(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CEDEXBUREAUINTERNAL_PROP.get(), value);\n }", "title": "" }, { "docid": "ce970a2e5f072b04ca5e1564c569b647", "score": "0.45955688", "text": "public void setBodega(Bodega bodega)\r\n/* 86: */ {\r\n/* 87:174 */ this.bodega = bodega;\r\n/* 88: */ }", "title": "" }, { "docid": "2ed601cf7011649270a04bf59d3a7324", "score": "0.45937127", "text": "private void setContentValue(Mentor mentor) {\n initialValues = new ContentValues();\n initialValues.put(MENTOR_ID, mentor.getId());\n initialValues.put(MENTOR_NAME, mentor.getName());\n initialValues.put(MENTOR_PHONE, mentor.getPhone());\n initialValues.put(MENTOR_EMAIL, mentor.getEmail());\n initialValues.put(MENTOR_COURSE_ID, mentor.getCourseId());\n }", "title": "" }, { "docid": "a3ef8e146fbd02bb176b6a63b3b5ab50", "score": "0.45921466", "text": "public abstract void setCierre_alta(java.lang.String newCierre_alta);", "title": "" }, { "docid": "35f4171e4818039fa588d3b2cda32e2b", "score": "0.45700252", "text": "public BigDecimal getCOLLATERAL_BRANCH()\r\n {\r\n\treturn COLLATERAL_BRANCH;\r\n }", "title": "" }, { "docid": "4cecc822f9158dd4285086ef48002e20", "score": "0.45656127", "text": "@Generated(hash = 1048215057)\n public void setMeal(Meal meal) {\n synchronized (this) {\n this.meal = meal;\n mealsId = meal == null ? null : meal.getId();\n meal__resolvedKey = mealsId;\n }\n }", "title": "" }, { "docid": "f83f38a595862113e829e3b4fd7aa69e", "score": "0.45648572", "text": "public void setSucursal(Sucursal sucursal)\r\n/* 305: */ {\r\n/* 306:400 */ this.sucursal = sucursal;\r\n/* 307: */ }", "title": "" }, { "docid": "fa35c650d759e27e993bd3b6f12615ea", "score": "0.4556172", "text": "@MavlinkFieldInfo(\n position = 4,\n unitSize = 4,\n signed = true,\n description = \"barometeric altitude above ground in meters, expressed as * 1000 (millimeters)\"\n )\n public final Builder altBarometric(int altBarometric) {\n this.altBarometric = altBarometric;\n return this;\n }", "title": "" }, { "docid": "e5cd9ab0c34461549cea6ffd066b810d", "score": "0.45516792", "text": "public void setBasedOnValue(entity.FormEdgeTable value);", "title": "" }, { "docid": "9dfa637b20c1789939b5653b137393b4", "score": "0.45507216", "text": "void setDirectTerm2(BigDecimal value);", "title": "" }, { "docid": "fbe65f836a73b1446035cdc33b35bb78", "score": "0.45460021", "text": "public ScGridColumn<AcUspsDomesticSupplyAdjustment> newArrivalEndLocalTmColumn()\n {\n return newArrivalEndLocalTmColumn(\"Arrival End Local Tm\");\n }", "title": "" }, { "docid": "4e38dc806dec8db8bfa548d91654408e", "score": "0.4542788", "text": "public void setDebito(BigDecimal debito)\r\n/* 88: */ {\r\n/* 89:185 */ this.debito = debito;\r\n/* 90: */ }", "title": "" }, { "docid": "811f1a21211e1afa7b7cf46fec5da09b", "score": "0.45424023", "text": "public void setBDField(String ime,BigDecimal iznos,Object obj){\n try {\n if (buseBD)\n obj.getClass().getField(ime.toLowerCase()).set(obj,iznos);\n else {\n obj.getClass().getField(ime.toLowerCase()).setDouble(obj,iznos.doubleValue());\n }\n\n } catch (Exception e) {\n if (greska)\n System.out.println(\"Greška setBDField \"+e);\n }\n }", "title": "" }, { "docid": "f94b57e7af1077bd88c01315d3f24a19", "score": "0.45408612", "text": "public void setBaseImponible(BigDecimal baseImponible)\r\n/* 114: */ {\r\n/* 115:145 */ this.baseImponible = baseImponible;\r\n/* 116: */ }", "title": "" }, { "docid": "2689c47fb3a1b631039e8b359e39f75b", "score": "0.45374358", "text": "public void setTransparencia(boolean t){\n this.transparencia=t; \n }", "title": "" }, { "docid": "be9093397eee8b66dc3753ba4a990063", "score": "0.4532959", "text": "public void setMeal(Meal meal) {\n this.meal = meal;\n }", "title": "" }, { "docid": "895d3f7104a0c5928c644be39c0b752e", "score": "0.45325586", "text": "public void setTotalDebito(BigDecimal totalDebito)\r\n/* 111: */ {\r\n/* 112:226 */ this.totalDebito = totalDebito;\r\n/* 113: */ }", "title": "" }, { "docid": "14af7b9047f310e1d4514d83609e2962", "score": "0.4530438", "text": "public void setB(J b) {\r\n this.b = b;\r\n }", "title": "" }, { "docid": "b530e198e2aa227c5b9a76fdb7a7c494", "score": "0.45292467", "text": "public void setDescuento(BigDecimal descuento)\r\n/* 445: */ {\r\n/* 446:534 */ this.descuento = descuento;\r\n/* 447: */ }", "title": "" }, { "docid": "efb8bc2c1d826fa7edb4e8f393c76bd7", "score": "0.45287848", "text": "public void setBateriaCritica(int bateriaCritica) {}", "title": "" }, { "docid": "b29f79d062836af1943b8941a5d758c7", "score": "0.45249057", "text": "public void setValue(DataElement hlaObject, FixedRecordDataType fomDataType, Object value) {\n }", "title": "" }, { "docid": "73f6998e13d3ea96d6f1dce8988dda4d", "score": "0.4524112", "text": "@Override\n\t\tpublic void setBias(Blob bias) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0a680dcaf78874166689f1fd521dfa24", "score": "0.45224214", "text": "public void setBodega(Bodega bodega)\r\n/* 581: */ {\r\n/* 582:743 */ this.bodega = bodega;\r\n/* 583: */ }", "title": "" }, { "docid": "c26ad17ba611ae7432dac7b1bee72289", "score": "0.45222038", "text": "public void setSchoolLoanMonthPay()\n {\n double monthlyInterest = (interest/100)/12;\n double temp = 1 + monthlyInterest;\n double calculatedNum = Math.pow(temp, -120);\n double oppositeCalNum = 1 - calculatedNum;\n double payment = schoolLoanAmt * monthlyInterest;\n double monthlyPayment = (payment / oppositeCalNum);\n schoolLoanMonthPay = (int) monthlyPayment;\n }", "title": "" }, { "docid": "976b1a13341437e9b6150c6ed6450c50", "score": "0.45137095", "text": "public void setFixed(entity.FormEdgeTable value);", "title": "" }, { "docid": "dc59ac03981c34b909cfbb08b0d7403b", "score": "0.45078236", "text": "public ContaB (){\n this.saldo = 0.0;\n if (this.saldo <= 1000.00) {\n this.limite = 1000.00;\n } else {\n this.saldo = 5000.00;\n }\n }", "title": "" }, { "docid": "f71b7a9bac82cc7ba3ac33237d5ae0ff", "score": "0.4499518", "text": "public void limpiar() {\r\n\r\n\t// codTemporal.setText(\"\");\r\n\thabilita(true, false, false, false, false, true, false, true, true);\r\n }", "title": "" }, { "docid": "294d618f2abc7f657245c959a842c756", "score": "0.44970018", "text": "public void setPOSTAL_CODE(BigDecimal POSTAL_CODE) {\r\n this.POSTAL_CODE = POSTAL_CODE;\r\n }", "title": "" }, { "docid": "3fab366051dad567a765b5dc4081fb33", "score": "0.44935963", "text": "@Override\n\tpublic void atualiza(double taxa) {\n\t\t\n\t}", "title": "" }, { "docid": "c953a5219a569a9bb81e6f26c21f6c3f", "score": "0.4482364", "text": "public void setUserrefundMoneymust(BigDecimal userrefundMoneymust) {\n this.userrefundMoneymust = userrefundMoneymust;\n }", "title": "" }, { "docid": "b3d008726a73efef919e328013ce9cdf", "score": "0.44811773", "text": "public void setMeal(Meal meal) {\n this.meal = meal;\n }", "title": "" }, { "docid": "58c9a5cb816981e91d869bc4fda33b54", "score": "0.447299", "text": "public void setArraivaldate(java.sql.Timestamp newVal) {\n if ((newVal != null && this.arraivaldate != null && (newVal.compareTo(this.arraivaldate) == 0)) || \n (newVal == null && this.arraivaldate == null && arraivaldate_is_initialized)) {\n return; \n } \n this.arraivaldate = newVal; \n arraivaldate_is_modified = true; \n arraivaldate_is_initialized = true; \n }", "title": "" }, { "docid": "710f67b8e8db58180c59e610b786954a", "score": "0.4472163", "text": "public void setValuesB(String[] param){\n \n validateValuesB(param);\n\n localValuesBTracker = true;\n \n this.localValuesB=param;\n }", "title": "" }, { "docid": "e76310c6576272a6fb4133bb160d8be1", "score": "0.44721437", "text": "public void setUlusalBinaNo(String ulusalBinaNo) {\r\n\t\tthis.ulusalBinaNo = ulusalBinaNo;\r\n\t}", "title": "" }, { "docid": "6ceac538db7a1af10e244426d0a6fe2a", "score": "0.44705954", "text": "public void setYunfei(BigDecimal yunfei) {\r\n this.yunfei = yunfei;\r\n }", "title": "" }, { "docid": "04fb621b7655e60bedba85c11fb4fcb0", "score": "0.44646463", "text": "public void setTanggalLahir(int tanggalLahir) throws NumberFormatException {\n if(tanggalLahir>0 && tanggalLahir<32)\r\n this.tanggalLahir = tanggalLahir;\r\n else{ throw new NumberFormatException(\"Tanggal Lahir tidak vaild\");}\r\n }", "title": "" }, { "docid": "51236a13d1decd7477b108c3b3558eb5", "score": "0.44644532", "text": "void setPhi(double phi);", "title": "" }, { "docid": "addaf6f78506e6775f9d9a7ef2af5aa1", "score": "0.44588804", "text": "public void setIsOrdinal(boolean b) {\n this.isOrdinal = b;\n if (this.isOrdinal) {\n // don't call setYRange, because it's just going to return without doing anything\n this.yMin = 0;\n this.yMax = 1;\n setUnitHeight();\n }\n }", "title": "" }, { "docid": "7d4038be5c8829cbf329e402a88aab3c", "score": "0.4456617", "text": "public void setBarang (String nama) {\n this.barang = nama;\n }", "title": "" }, { "docid": "5aa7d6e97e8f9cc148d1b93d6fd3601c", "score": "0.44564667", "text": "public void setCombustivel(double combustivel){this.combustivel=combustivel;}", "title": "" }, { "docid": "017bc66ab289bb5935c5fac021ba25cb", "score": "0.4452607", "text": "void setDBTerritory(DBTerritory value);", "title": "" }, { "docid": "313ec95588a459824ac7a3d4b13ec250", "score": "0.44509968", "text": "private void collBooking(YOY9Data dataOneCollateral, boolean deactivateColl) throws Exception{\n\n\t\t//konstante\n\t\tBigDecimal colCatIdCashDep = new BigDecimal(\"612223.0\");\n\t\tBigDecimal zeroNumber = new BigDecimal(\"0.00\");\n\n\t\tBigDecimal rbaCusId = new BigDecimal(\"8218251.0\"); //id RBA (konstanta)\n\t\tBigDecimal hrkCurId = new BigDecimal (\"63999.0\");\n\t\t//kraj konstanti\n\t\t\n\t\tBigDecimal valueFirstRbaMortgage=zeroNumber;\t\n\t\tBigDecimal valueBeforeRbaMortgage=zeroNumber; //varijabla u koju se spremaju vrijednosti hipoteka do prve RBA hipoteke\n\t\tBigDecimal valueAfterRbaMortgage=zeroNumber; //varijabla u koju se spremaju vrijednosti hipoteka od prve RBA hipoteke\n\t\t\n\t\t//varijable za cash depozit\n\t\tboolean isRBADeposit = false;//ako je collateral cash deposit zastavica nam govori da li je cash deposit RBA deposit\n\t\tboolean vKlauzula=false;\n\t\tBigDecimal cdeCusId = null;\n\n\t\tBigDecimal remValue=zeroNumber;\t\t\t//varijabla za iznos u koju se sprema vrijednost collaterala\n\t\t\n\t\t//Varijable za odredivanje stanja\n\t\tDate maxBalanceDate=null;\t\t\t\t\t//varijabla za odredivanje zadnjeg datuma stanja\n\t\n\t\tVector balance = new Vector();\t\t\t\t//vektor u koji se pohranjuje varijable stanja iz poziva sql-a\n \tBigDecimal currentDebitTotal = zeroNumber;\t//varijabla za dugovni kumulativ\n \tBigDecimal currentCreditTotal = zeroNumber;\t//varijabla potrazni kumulativ\n \tBigDecimal currentBalance = zeroNumber;\t\t//varijabla za saldo partije na dan maxBalanceDate\n\n \tVector owner = new Vector();\t\t//vektor gdje su pohranjeni podaci o vlasniku\n \tBigDecimal ownerCusId=null;\t\t//owner cus_id\n \tString ownerRegisterNo=null;\t//owner register_no\n \t\n \tString currencyNumCode=null;\t\t//code valute \n \tString useOpenAbbreviation=null;\t//login korisnika koji je otvorio collateral\n \tString orgUniCode=null;\t\t\t\t//code ogranizaciske jedinice \n \t \t\n \tString status=null;\t\t\t\t\t//status koji se upisuje nakon obrade u financial_flag\n \t\n \tYOY91.IterMortgage iterMortgage=null; //iterator za hipoteke na kolateralu\n \t\n\t\tDate todaySQLDate = null;\n\t\tGregorianCalendar calendar = new GregorianCalendar();\n\t\tlong timeT = calendar.getTime().getTime();\n\t\ttodaySQLDate = new Date(timeT);\n\t\t\t\t\n\t\tPostingEngineInputData postEngInputData = new PostingEngineInputData();\n\t\tPostingEngineResponseData postEngRespnse = new PostingEngineResponseData();\n\t\t\n\t\ttry{\n\t\t //ostavio provjeru da li je RBA depozit i ovdje za svaki slucaj\n\t\t\trc.debug(\"Vrijednost kolaterala:\" + dataOneCollateral.realEstNomiValu);\n\t\t\t//PROVJERAVANJE DA LI JE COLLATERAL CASH DEPOZIT, AKO JE PROVJERAVA SE DA LI JE MOZDA RBA CASH DEPOZIT\n\t\t\t//AKO JE RBA CASH DEPOZIT ONDA SE NE KNJIZI (zastavica isRBADeposit se postavlja na true) \n\t\t\tif(dataOneCollateral.colCatId.compareTo(colCatIdCashDep)==0){\n\t\t\t\tcdeCusId=yoy91.getCashDepozitCdeCusId(dataOneCollateral.colHeaId);\n\t\t\t\tif(cdeCusId!=null && cdeCusId.compareTo(rbaCusId)==0){\n\t\t\t\t\tisRBADeposit=true;\n\t\t\t\t\trc.debug(\"Kolateral je RBA deposit.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//DOHVAT IZNOSA TUDJIH HIPOTEKA\n\t\t\titerMortgage=yoy91.getThirdRightsMortgage(dataOneCollateral.colHeaId);\n\t\t\tboolean firstRbaMortgage=false; //zastavica koja odreduje kada se doslo do prve RBA hipoteke\n\t\t\tint i=0; //brojac iteracija\n\t\t\twhile(iterMortgage.next()){\n\t\t\t rc.debug(i+\". Iteracija, owner=\"+iterMortgage.hf_own_cus_id()+\" , priority=\"+iterMortgage.hf_priority()+\", amount= \"+iterMortgage.amount());\n\t\t\t if (iterMortgage.hf_own_cus_id().compareTo(rbaCusId)==0 && firstRbaMortgage==false){\n\t\t\t rc.debug(\"Prva RBA hipoteka.\");\n\t\t\t valueFirstRbaMortgage=iterMortgage.amount();\n\t\t\t firstRbaMortgage=true;\n\t\t\t }\t\t\t \n\t\t\t if (!(iterMortgage.hf_own_cus_id().compareTo(rbaCusId)==0) && !iterMortgage.hf_priority().equals(\"NA\")) {\n\t\t\t rc.debug(\"Zbrajam hipoteke.\");\n\t\t\t\t if (firstRbaMortgage==false){\n\t\t\t\t rc.debug(\"Prije RBA hipoteke\");\n\t\t\t\t valueBeforeRbaMortgage=valueBeforeRbaMortgage.add(iterMortgage.amount()); \n\t\t\t\t }else{\n\t\t\t\t rc.debug(\"Poslje RBA hipoteke\");\n\t\t\t\t valueAfterRbaMortgage=valueAfterRbaMortgage.add(iterMortgage.amount()); \n\t\t\t\t }\n\t\t\t }\n\t\t\t\trc.debug(\"Vrijednost hipoteka prije RBA hipoteke:\" + valueBeforeRbaMortgage);\t\t\t\t\t\t\n\t\t\t\trc.debug(\"Vrijednost hipoteka poslije RBA hipoteke:\" + valueAfterRbaMortgage);\n\t\t\t\ti++;\n\t\t\t}\n\t\t\ttry { \n\t\t\t iterMortgage.close();\n\t\t\t} catch (Exception ignored) { }\n\t\t\t\n\t\t\t//IZNOS COLLATERAL OFFICERA UMANJEN ZA IZNOS TUDJIH HIPOTEKA\n\t\t\t//usporeduje se vrijednost 1 rba hipoteke sa trzisnom vrijednosti - zbrojem hipoteka prije 1.rba hipoteke i poslje 1.rba hipoteke \n\t\t\tif (valueFirstRbaMortgage.compareTo(dataOneCollateral.realEstNomiValu.subtract(valueBeforeRbaMortgage.add(valueAfterRbaMortgage)))>=0){\n\t\t\t remValue = dataOneCollateral.realEstNomiValu.subtract(valueBeforeRbaMortgage); \n\t\t\t if (valueFirstRbaMortgage.compareTo(remValue) < 0) {\n\t\t\t \tremValue = valueFirstRbaMortgage;\n\t\t\t }\n\t\t\t}else{\n\t\t\t remValue = dataOneCollateral.realEstNomiValu.subtract(valueBeforeRbaMortgage.add(valueAfterRbaMortgage));\n\t\t\t}\n\t\t\t \n\t\t\tif (remValue.compareTo(zeroNumber) < 0) {\n\t\t\t\tremValue = zeroNumber; \n\t\t\t}\n\t\t\trc.debug(\"Vrijednost umanjena za tude hipoteke:\" + remValue);\n\t\t\t\n\t\t\t//DOHVAT MAX DATUMA U SALDIMA STANJA PARTIJA (CUSACC_BALANCE)\n\t\t\t//AKO SE DATUM DOHVATI ZNACI DA POSTOJI SALDO ZA COLLATERAL I POZIVA SE METODA ZA DOHVAT TIH SALDA\n\t\t\tmaxBalanceDate=yoy91.getMaxBalanceDate(dataOneCollateral.colHeaId);\n\t\t\trc.debug(\"Vrijednost maxBalanceDate:\" + maxBalanceDate);\t\t\t\n\t\t\tif (maxBalanceDate!=null){\n\t\t\t\tbalance=yoy91.getBalanceState(dataOneCollateral.colHeaId,maxBalanceDate);\n\t\t\t\ttry{\n\t\t\t\t\tcurrentDebitTotal=(BigDecimal) balance.get(0);\n\t\t\t\t\tcurrentCreditTotal=(BigDecimal) balance.get(1);\n\t\t\t\t\tcurrentBalance=(BigDecimal) balance.get(2);\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\trc.debug(\"_______________________________________________________________________________________\");\n\t\t\t\t\trc.debug(\"Greska pri postavljanju verijabli iz vektora balance\");\n\t\t\t\t\trc.debug(\"Vektor balance=\" + balance.toString());\n\t\t\t\t\trc.debug(\"Error message = \" + e.getMessage());\n\t\t\t\t\trc.debug(\"_______________________________________________________________________________________\");\t\t\t\t\t\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\tcurrentBalance = currentBalance.abs();\n\t\t\t}\n\t\t\trc.debug(\"Vrijednost currentBalance:\" + currentBalance);\n\t\t\t\n\t\t\towner=yoy91.getCollOwner(dataOneCollateral.colHeaId);\n\t\t\tif (owner!=null){\n\t\t\t\townerCusId = (BigDecimal) owner.get(0);\n\t\t\t\townerRegisterNo = (String) owner.get(1);\n\t\t\t}else{\n\t\t\t\trc.debug(\"Nije pronađen owner za collateral\");\n\t\t\t\trc.debug(\"Nije pronađen owner za collateral\");\t\n\t\t\t\tthrow new NullPointerException();\n\t\t\t}\n\t\t\trc.debug(\"Register_no vlasnika na kojeg se knjizi:\" + ownerRegisterNo);\n\t\t\trc.debug(\"Cus_id vlasnika na kojeg se knjizi:\" + ownerCusId);\n\t\t\t\n\t\t\t//provjera da li je collateral sa valutnom klauzulom\n\t\t\tvKlauzula=yoy91.checkValutnaKlauzula(dataOneCollateral.colHeaId);\n\t\t\t//ako je valutna klauzula treba vrijednost pretvorit u eure \n\t\t\tif(vKlauzula){\n\t\t\t\tif (dataOneCollateral.colCatId.compareTo(colCatIdCashDep)!=0) {\n\t\t\t\t\tremValue=yoy91.getValueInEuro(remValue,dataOneCollateral.realEstNmCurId);\n\t\t\t \tdataOneCollateral.realEstNmCurId=new BigDecimal(\"64999\"); //mijenja se vrijednost id-a valute u euro zato jel je kolateral sa VK\n\t\t\t\t\trc.debug(\"Usao u valutnu klauzulu\");\n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\n\t\t\t//DOHVAT CUR CODE ZBOG COMMONA ZA KNJIZENJE\n\t\t\tcurrencyNumCode=yoy91.getCurrencyNumCode(dataOneCollateral.realEstNmCurId);\n\t\t\trc.debug(\"Numericki kod valute kolaterala:\" + currencyNumCode);\n\t\t\t \n\t\t\t//DOHVAT LOGINA KORISNIKA KOJI JE UNIO COLLATERAL\n\t\t\tuseOpenAbbreviation=yoy91.getUserAbb(dataOneCollateral.useOpenId);\n\t\t\trc.debug(\"useOpenAbbreviation=\" + useOpenAbbreviation);\n\t\t\t\n\t\t\t//DOHVAT ORG UNIT CODE-a ZBOG COMMONA ZA KNJIZENJE\n\t\t\torgUniCode=yoy91.getOrgCode(dataOneCollateral.originOrgUniId);\n\t\t\t\n\t\t\t\n\t\t\t//odlucivanje da li ce se knjizit ili isknjizavat, a ako je 0 onda nema ni knjizenja ni isknjizenja\n\t\t\t//ako je deactivateColl == true ide se na isknjizenje obavezno i postavlja se u vrijednost isknjizenja vrijednost \n\t\t\t//kolaterala koja se nasla na saldu(currentBalance) \n\t\t\tif(remValue.compareTo(currentBalance)== -1 || deactivateColl==true){\n\t\t\t\t//ISKNJIZAVANJE\t\n\t\t\t if (deactivateColl==true){\n\t\t\t postEngInputData.amount = currentBalance;\n\t\t\t }else{\n\t\t\t postEngInputData.amount = currentBalance.subtract(remValue); \n\t\t\t }\t\t\t\t\n\t\t\t\tpostEngInputData.eventTypeId = new java.math.BigDecimal(\"1666960003.0\");\n\t\t\t} else if(remValue.compareTo(currentBalance)== 1){\n\t\t\t\t//KNJIZENJE\n\t\t\t\tpostEngInputData.amount = remValue.subtract(currentBalance);\n\t\t\t\tpostEngInputData.eventTypeId = new java.math.BigDecimal(\"1666879003.0\");\n\t\t\t}else{\n\t\t\t\tpostEngInputData.amount = zeroNumber;\n\t\t\t}\n\t\t\trc.debug(\"postEngInputData.amount=\" + postEngInputData.amount);\n\t\t\t\n\t\t\tpostEngInputData.accountCredit = dataOneCollateral.colNum;\n\t\t\tpostEngInputData.accountDebit = dataOneCollateral.colNum;\t\t\t\t\n\t\t\t\n\t\t\tpostEngInputData.currencyCode = currencyNumCode;\n\t\t\t\n\t\t\trc.debug(\"postEngInputData.currencyCode=\" + postEngInputData.currencyCode);\n\t\t\t\n\t\t\tpostEngInputData.customerCredit = ownerRegisterNo;\n\t\t\tpostEngInputData.customerDebit = ownerRegisterNo;\n\t\t\t\n\t\t\tpostEngInputData.indicatorOUDomicilCredit = \"f\";\n\t\t\tpostEngInputData.indicatorOUDomicilDebit = \"f\";\n\t\t\tpostEngInputData.organizationUnitDomicilCredit = orgUniCode;\n\t\t\tpostEngInputData.organizationUnitDomicilDebit = orgUniCode;\n\t\t\tpostEngInputData.organizationUnitInitiator = orgUniCode;\t\t\t\n\t\t\t\t\n\t\t\tpostEngInputData.paymentData = null;\n\t\t\tpostEngInputData.referentIniciatorId=dataOneCollateral.useOpenId;\n\t\t\tpostEngInputData.referentIniciator = null; //useOpenAbbreviation - koji se dobije od dataOneCollateral.useOpenId\n\t\t\tpostEngInputData.relatedCustomerData = null;\n\t\t\tpostEngInputData.reversed = \"N\";\n\t\t\tpostEngInputData.trn = null;\n\t\t\tpostEngInputData.turnoverReference = null;\n\t\t\tpostEngInputData.valueDate = todaySQLDate;\n\n\t\t\t//ovdje se ulazi samo ako je iznos za knjizenje/isknjizenje razlicit od nule\n\t\t\tif(postEngInputData.amount.compareTo(zeroNumber)!=0){\n\t\t\t if(!isRBADeposit){\n\t\t\t\t\tYFWL0 objek1 = new YFWL0(rc);\n\t\t\t\t\ttry{\n\t\t\t\t\t\tpostEngRespnse = objek1.execute(postEngInputData);\n\t\t\t\t\t\tif (postEngRespnse.errorCode!=0){\n\t\t\t\t\t\t rc.debug(\"KNJIZENJE ZA col_hea_id=\" + dataOneCollateral.colHeaId + \"zavrseno sa error=\" + postEngRespnse.errorCode);\n\t\t\t\t\t\t\tthrow new Exception(\"KNJIZENJE ZA col_hea_id=\" + dataOneCollateral.colHeaId + \"nije provedeno zbog error code-a=\" + postEngRespnse.errorCode); \n\t\t\t\t\t\t}\n\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\trc.debug(\"_______________________________________________________________________________________\");\n\t\t\t\t\t\trc.debug(\"GRESKA za col_hea_id=\" + dataOneCollateral.colHeaId + \" error=\" + e.getMessage());\n\t\t\t\t\t\trc.debug(\"GRESKA za col_hea_id=\" + dataOneCollateral.colHeaId + \" error=\" + e.toString());\n\t\t\t\t\t\trc.debug(\"_______________________________________________________________________________________\");\n\t\t\t\t\t\tthrow e;\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tstatus=\"1\";\n\t\t\t\t\trc.debug(\"Knjizenje collaterala uspjesno zavrseno.\");\n\t\t\t\t\trc.debug(\"Knjizenje collaterala sa col_hea_id=\" + dataOneCollateral.colHeaId + \" zavrseno.\");\n\t\t\t\t}else{\n\t\t\t\t\tstatus=\"X\";\n\t\t\t\t\trc.debug(\"Kolateral se nije knjizio jer je RBA depozit.\");\n\t\t\t\t\trc.debug(\"Knjizenje collaterala sa col_hea_id=\" + dataOneCollateral.colHeaId + \" se nije izvrsilo jel je RBA depozit.\");\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//POSTAVI STATUS\n\t\t\t\ttry{\n\t\t\t\t\tyoy91.updateFinStatus(dataOneCollateral.colHeaId,status);\n\t\t\t\t}catch(SQLException sqle){\n\t\t\t\t\trc.debug(\"_______________________________________________________________________________________\");\n\t\t\t\t\trc.debug(\"Greska pri UPDATE-u statusa za col_hea_id=\" + dataOneCollateral.colHeaId);\n\t\t\t\t\trc.debug(\"_______________________________________________________________________________________\");\n\t\t\t\t\tthrow sqle;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\trc.debug(\"Kolateral se nije knjizio jer je vrijednost za knjizenje '0.00'.\\n col_hea_id=\" + dataOneCollateral.colHeaId );\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\trc.debug(\"_______________________________________________________________________________________\");\n\t\t\trc.debug(\"******* Greska pri obradi jednog collaterala - collBooking *******\");\n\t\t\trc.debug(\"colHeaId = \"+dataOneCollateral.colHeaId);\n\t\t\trc.debug(\"colNum = \"+dataOneCollateral.colNum);\n\t\t\trc.debug(\"realEstNomiValu = \"+dataOneCollateral.realEstNomiValu);\n\t\t\trc.debug(\"realEstNmCurId = \"+dataOneCollateral.realEstNmCurId);\n\t\t\trc.debug(\"useOpenId = \"+dataOneCollateral.useOpenId);\n\t\t\trc.debug(\"originOrgUniId = \"+dataOneCollateral.originOrgUniId);\n\t\t\trc.debug(\"colCatId = \"+dataOneCollateral.colCatId);\n\t\t\trc.debug(\"Error message = \"+e.getMessage());\t\t\n\t\t\trc.debug(\"_______________________________________________________________________________________\");\t\t\t\n\t\t\tthrow e;\n\t\t}\n\t}", "title": "" } ]
b61d375868b9721fcc47759bf50bcd76
string id = 1;
[ { "docid": "0b34d3eb877f63ad23e709d8c5f6a430", "score": "0.0", "text": "public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n id_ = s;\n return s;\n }\n }", "title": "" } ]
[ { "docid": "634f1fe6d91a7956a48aeaf128de37ec", "score": "0.7270131", "text": "String getID();", "title": "" }, { "docid": "634f1fe6d91a7956a48aeaf128de37ec", "score": "0.7270131", "text": "String getID();", "title": "" }, { "docid": "634f1fe6d91a7956a48aeaf128de37ec", "score": "0.7270131", "text": "String getID();", "title": "" }, { "docid": "50ff88eb983ca9380b023742629f2b05", "score": "0.72674465", "text": "public String getId() { return String.valueOf(_id); }", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "2845e0c41163fb67176092d499fb15b4", "score": "0.7265513", "text": "String getId();", "title": "" }, { "docid": "1398a942d16835ec17a57a51fcd3b548", "score": "0.71910924", "text": "private static String getStringLiteralIdentifier(int id)\n \t{\n \t\treturn \"%.string_\" + String.valueOf(id);\n \t}", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "10c96dce7faf310cf345c4ddfececdbc", "score": "0.71436393", "text": "String id();", "title": "" }, { "docid": "0566a6f2cf6efd6da1b41c59ed3fa645", "score": "0.7101445", "text": "java.lang.String getID();", "title": "" }, { "docid": "0566a6f2cf6efd6da1b41c59ed3fa645", "score": "0.7101445", "text": "java.lang.String getID();", "title": "" }, { "docid": "72e5c0726d8b3517d8921bb901f9a2c7", "score": "0.6980143", "text": "public java.lang.String getId(){\n return id;\n }", "title": "" }, { "docid": "267cfbb759dc708da397b305107163ce", "score": "0.6974467", "text": "static String createAtomId(String id) {\r\n\t\ttry {\r\n\t\t\tnew Integer(id);\r\n\t\t} catch (NumberFormatException nfe) {\r\n\t\t\tthrow new RuntimeException(\"id should be integer\");\r\n\t\t}\r\n\t\treturn \"a\"+id;\r\n\t}", "title": "" }, { "docid": "2c494ebb55c9d73cead13828b69d279d", "score": "0.6964046", "text": "public void setId(String string) {\n\t\t\r\n\t}", "title": "" }, { "docid": "8197e271f4430f4f57a9c583b60c8ca0", "score": "0.6913669", "text": "public void setID(String id) {\n\t\t\n\t\tstringID = id;\n\t\t\n\t}", "title": "" }, { "docid": "edbee2d9b86bbb9111fa7196d195b478", "score": "0.68519354", "text": "String getIdAsString();", "title": "" }, { "docid": "d211df1960b0373beb24b5fb38c54db7", "score": "0.6844768", "text": "int id();", "title": "" }, { "docid": "502fa2123bcd3ef8f3d1aa78145efe9a", "score": "0.6824454", "text": "public String getId() {\n return new String(id);\n }", "title": "" }, { "docid": "8925aadc05606de0d26f28ee7ba8cd74", "score": "0.68206155", "text": "private void setId(\n java.lang.String value) {\n java.lang.Class<?> valueClass = value.getClass();\n \n id_ = value;\n }", "title": "" }, { "docid": "8925aadc05606de0d26f28ee7ba8cd74", "score": "0.68206155", "text": "private void setId(\n java.lang.String value) {\n java.lang.Class<?> valueClass = value.getClass();\n \n id_ = value;\n }", "title": "" }, { "docid": "8925aadc05606de0d26f28ee7ba8cd74", "score": "0.68206155", "text": "private void setId(\n java.lang.String value) {\n java.lang.Class<?> valueClass = value.getClass();\n \n id_ = value;\n }", "title": "" }, { "docid": "8925aadc05606de0d26f28ee7ba8cd74", "score": "0.68206155", "text": "private void setId(\n java.lang.String value) {\n java.lang.Class<?> valueClass = value.getClass();\n \n id_ = value;\n }", "title": "" }, { "docid": "b65df662164797bb4cc988621ef87c40", "score": "0.680854", "text": "public void setId(String s) {\n\t\tid = s;\n\t}", "title": "" }, { "docid": "9bea5fb49bcc5e7cdaf9d9451b5ceb5b", "score": "0.6772828", "text": "java.lang.String getSyougaiId();", "title": "" }, { "docid": "9bea5fb49bcc5e7cdaf9d9451b5ceb5b", "score": "0.6772828", "text": "java.lang.String getSyougaiId();", "title": "" }, { "docid": "c1e2f8c6add3d8e7ca2601e09ebe7017", "score": "0.6753632", "text": "public String getId()\n/* */ {\n/* 326 */ return this.id;\n/* */ }", "title": "" }, { "docid": "822335510775505e8a2cbfb850839320", "score": "0.6751906", "text": "int getID();", "title": "" }, { "docid": "822335510775505e8a2cbfb850839320", "score": "0.6751906", "text": "int getID();", "title": "" }, { "docid": "822335510775505e8a2cbfb850839320", "score": "0.6751906", "text": "int getID();", "title": "" }, { "docid": "822335510775505e8a2cbfb850839320", "score": "0.6751906", "text": "int getID();", "title": "" }, { "docid": "822335510775505e8a2cbfb850839320", "score": "0.6751906", "text": "int getID();", "title": "" }, { "docid": "7ac9d47c5ef796452164357659b8e154", "score": "0.6749843", "text": "String identifier();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" }, { "docid": "d781136ba761071a3e6bafd7c6ef4c82", "score": "0.6740489", "text": "java.lang.String getId();", "title": "" } ]
c6425792e00a1e5da1bad0c41ba6b984
Returns the number of objects of type "specified end" previously added to the collection of the current object.
[ { "docid": "2e9f942eef60316b06ca244a181a6e45", "score": "0.0", "text": "int countSpecifiedEnds();", "title": "" } ]
[ { "docid": "9f8fafebea90a0494b82a1fafa1476a1", "score": "0.65919787", "text": "public int size() {\n\t\treturn end;\n\t}", "title": "" }, { "docid": "bd93c43d5ffd4b0cc69541fb01b7ddc7", "score": "0.6411524", "text": "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "title": "" }, { "docid": "a803d95c961b08133c8b63a6d496076d", "score": "0.64068663", "text": "public long size() {\n\treturn end - start + 1;\n }", "title": "" }, { "docid": "3486ea9c4533c108beaf35f3e7eeef03", "score": "0.63613206", "text": "public int getCount() {\n return objects.size();\n }", "title": "" }, { "docid": "4985f41dac659d6c48a20475dad9532a", "score": "0.6334546", "text": "public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\t\twhile(start.nextNum != null){\n\t\t\tcount++;\n\t\t\tstart = start.nextNum;\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "66d2d124113518d7042c3ee31a5f725b", "score": "0.6189147", "text": "public int size() {\n maintain();\n return collection.size();\n }", "title": "" }, { "docid": "530e66cf85b41a657731263e7b33a114", "score": "0.6103228", "text": "public int getCount() {\n return typeOffsetList.size();\n }", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.6101447", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.6101447", "text": "int getItemsCount();", "title": "" }, { "docid": "65538a6e2996d075581434c669bba602", "score": "0.6094317", "text": "public int size(){\r\n\t\treturn numAdded;\r\n\t}", "title": "" }, { "docid": "5b8d5f30b4a6f32c864ce4f93818f40e", "score": "0.60933363", "text": "public int size() {\r\n return lastCursor - firstCursor - 1;\r\n }", "title": "" }, { "docid": "30038072e26b7d3c4866774cae6bff7a", "score": "0.6072798", "text": "public int size() {return collection.size();}", "title": "" }, { "docid": "9bc42d4274a322ab127a230f831b0a86", "score": "0.60687375", "text": "@Override\r\n\tpublic int size() {\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "57436273773db7b71735a79974d5f8f5", "score": "0.6067686", "text": "public int getNumObjects(){\n return numObjects;\n }", "title": "" }, { "docid": "5dd88e9aecae6cfccefec8073de9b09a", "score": "0.6066362", "text": "@Override\n public int size() {\n return count;\n }", "title": "" }, { "docid": "5dd88e9aecae6cfccefec8073de9b09a", "score": "0.6066362", "text": "@Override\n public int size() {\n return count;\n }", "title": "" }, { "docid": "c4d7f4d36a9a3400fadf1d9d6e2394c8", "score": "0.60617113", "text": "public int size ()\n {\n return lastIndex + 1;\n }", "title": "" }, { "docid": "e47affd54640f5a00f081703fff53db2", "score": "0.60605526", "text": "public int getLength() {\n return collection.size();\n }", "title": "" }, { "docid": "61cc5d6f4e52d46fe8a62c0e079b6ba9", "score": "0.60585326", "text": "public int size() {\n return collection.size();\n }", "title": "" }, { "docid": "b2ec1a06e6cff4294a8661ca40b42381", "score": "0.6029945", "text": "public int size() { return count; }", "title": "" }, { "docid": "bf93ed36064794e0c1f784ed907db800", "score": "0.6029169", "text": "public int size() {\n\t\treturn collection.size();\n\t}", "title": "" }, { "docid": "f418a053e49541e035ca7a300468fe7b", "score": "0.60280126", "text": "@Override\r\n\tpublic int size() {\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "c067e02b513bcfb4a90ec3e29412658c", "score": "0.5988317", "text": "public int getCount(){\n\t\treturn mDataObjects.size();\n\t}", "title": "" }, { "docid": "82beca835c1780edc69de1b43d2622de", "score": "0.59757704", "text": "@Override\n\tpublic int size() {\n\t\treturn util.iterator.IteratorUtilities.size(iterator());\n\t}", "title": "" }, { "docid": "d2455e2b4def71658e11ba88529f11b7", "score": "0.59688437", "text": "int getEntryCount();", "title": "" }, { "docid": "683f3d1322dec0a9ac666499ad0c55ca", "score": "0.59594375", "text": "public int getSize() {\n\t\t\treturn objects.size();\n\t\t}", "title": "" }, { "docid": "3121ce3d4d5f196061032d20b1d78ecc", "score": "0.5922525", "text": "public int size()\r\n {\r\n return nItems;\r\n }", "title": "" }, { "docid": "a81a1d6da9aa185c7e83b87d5881ac66", "score": "0.592044", "text": "public int size() {\n return this.collection.size();\n }", "title": "" }, { "docid": "1bd21ad4f4c3f7edaca62ad269d0f966", "score": "0.59194255", "text": "@Override\r\n\tpublic int getCollectionTotalCount() {\n\t\treturn data != null ? data.recordCount : 0;\r\n\t}", "title": "" }, { "docid": "db74b99a5f102a37351dd34eb827a3a3", "score": "0.59064966", "text": "public int size()\r\n {\r\n return count;\r\n }", "title": "" }, { "docid": "ab1cfcc6275c6b2f38b7e0c4ca04b4b4", "score": "0.59017247", "text": "public int size()\n {\n return count;\n }", "title": "" }, { "docid": "f65e3ecb002210e6280026c4d578e0d5", "score": "0.58992815", "text": "@Override\r\n\tpublic int size() {\r\n\t\treturn numItems;\r\n\t}", "title": "" }, { "docid": "26ff561d0ca13dc66e40d60691dbefc1", "score": "0.58958244", "text": "public int size() {\n return nItems;\n }", "title": "" }, { "docid": "6c2de4264b1eb6030a98f96bd893d40d", "score": "0.5890785", "text": "public final int size()\n {\n return m_count;\n }", "title": "" }, { "docid": "a6a2bab08a002f52d5a33c04023e2610", "score": "0.58849263", "text": "public int size() {\n return count;\n }", "title": "" }, { "docid": "4a884ae2376af2eff24e2eb31932a10d", "score": "0.58758134", "text": "public int getSize() {\n\t\treturn collection.size();\n\t\t\n\t}", "title": "" }, { "docid": "ac6b7ff312ec18b777f8f7ff358c3622", "score": "0.58537215", "text": "public int size(){\n return count;\n }", "title": "" }, { "docid": "867b4410e2d0659ba3032a16cf974f38", "score": "0.58504516", "text": "int getInCount();", "title": "" }, { "docid": "d5558311e10c8e2759a985d2f1b42bfd", "score": "0.58465356", "text": "public int size()\r\n\t{\r\n\t\treturn count;\r\n\t}", "title": "" }, { "docid": "62f668ab2cadbf659f4586a72627a3af", "score": "0.5846314", "text": "Collection<? extends Object> getEndingHadithNo();", "title": "" }, { "docid": "004d872887e58e6564aef8ed38afcb40", "score": "0.584123", "text": "public int size(){\n return numItems;\n }", "title": "" }, { "docid": "b09d9bee6578ca4980392888010778ad", "score": "0.5840666", "text": "public int size() {\n\t\treturn count;\n\t}", "title": "" }, { "docid": "b09d9bee6578ca4980392888010778ad", "score": "0.5840666", "text": "public int size() {\n\t\treturn count;\n\t}", "title": "" }, { "docid": "b09d9bee6578ca4980392888010778ad", "score": "0.5840666", "text": "public int size() {\n\t\treturn count;\n\t}", "title": "" }, { "docid": "738faf8ae31c5fa75dc91b54cb8a35d6", "score": "0.5840588", "text": "public int size() {\n return numItems;\n }", "title": "" }, { "docid": "37bcbb55c8450c781a7d2f800197a6d2", "score": "0.5838957", "text": "public int getEnd() {\r\n\t\treturn this.offset + this.numResults;\r\n\t}", "title": "" }, { "docid": "624f14f661e01ff797bf8a59a9c03eea", "score": "0.5837239", "text": "@Override\n public int size() {\n int size = 0;\n if (this.cursor == 1) {\n size = 1;\n } else {\n size = this.cursor - 1;\n }\n return size;\n }", "title": "" }, { "docid": "04634b61fb23098e0e51f72f22a68374", "score": "0.5826955", "text": "public int size() \n { \n return count; \n }", "title": "" }, { "docid": "459824cf167f45e04456b58a2b712a22", "score": "0.58257353", "text": "@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}", "title": "" }, { "docid": "20b991944e2500eaac3bed443026bd4c", "score": "0.5822489", "text": "public int getEnd() {\n return this.end;\n }", "title": "" }, { "docid": "c2620c771a34a0bc658043ee8233c13e", "score": "0.58099526", "text": "public int getEnd()\n {\n return end;\n }", "title": "" }, { "docid": "861a3f9bd9448b278e2dc912f9fb5668", "score": "0.5806374", "text": "protected long getObjectCount() {\r\n return objectCount;\r\n }", "title": "" }, { "docid": "b827a7c21223a7c02c1899697acff182", "score": "0.58059824", "text": "public int getEnd() {\r\n return end;\r\n }", "title": "" }, { "docid": "95ecb95789b0c461e1cb0a3117449a29", "score": "0.58041257", "text": "public int getEnd() {\r\n\t\treturn end;\r\n\t}", "title": "" }, { "docid": "a4d090f2a0c2703b4c79482f1c2a588d", "score": "0.5794801", "text": "public int getEnd() {\n\t\treturn end;\n\t}", "title": "" }, { "docid": "bc96763af35bf73539a4e74f43b244f8", "score": "0.57914543", "text": "List<Object> getCountExtent();", "title": "" }, { "docid": "5e6c2781dd9445e48b02b188fdba1eb2", "score": "0.5789972", "text": "public int getEnd() {\n return end;\n }", "title": "" }, { "docid": "9e703d674f3c472a439602726cb06f82", "score": "0.5785009", "text": "@Override\n\tpublic int size() {\n\t\treturn (top + 1);\n\t}", "title": "" }, { "docid": "c8574599055a2fa9275e8e7c11786592", "score": "0.5771085", "text": "public int size() {\n \treturn numItems;\n }", "title": "" }, { "docid": "c142163ad0f133ce700c6ee4eddf17ac", "score": "0.57692003", "text": "public static int size() \r\n\t{\r\n\t\treturn m_count;\r\n }", "title": "" }, { "docid": "2e378f2f8636e640fee67e981102c272", "score": "0.57674474", "text": "@Override\n int size();", "title": "" }, { "docid": "4d6d63f9b747cb241cfaedc21fb32c3e", "score": "0.5766936", "text": "@Override\n\tpublic int size() {\n\t\treturn top + 1;\n\t}", "title": "" }, { "docid": "16f197de58e0df6ba5b1d9deeb476c45", "score": "0.57627237", "text": "public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}", "title": "" }, { "docid": "978d6a5aea76da0914f15d23f82b106c", "score": "0.57624793", "text": "@Override\n public int size() {\n int totalSize = 0;\n // iterating over collectionList\n for (Collection<E> coll : collectionList)\n totalSize += coll.size();\n return totalSize;\n }", "title": "" }, { "docid": "25a86a2662fdb470f0019148f2cf2184", "score": "0.57623357", "text": "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "title": "" }, { "docid": "6309cf2b57d966b578f4194414f9f0d4", "score": "0.5760841", "text": "@Override\n public int size(){\n return sizeHelper(this.first);\n }", "title": "" }, { "docid": "ec9e0d8e8ae724ad97a20a555f8999b8", "score": "0.57591575", "text": "public int getCount()\r\n {\r\n return counts.peekFirst();\r\n }", "title": "" }, { "docid": "4116aa536a276a92b036b786d7acdc68", "score": "0.5749483", "text": "public int size() {\n\t\tint result = 0;\n\t\tfor (E val: this)\n\t\t\tresult++;\n\t\treturn result;\n\t}", "title": "" }, { "docid": "09ee292b5ad4c0ea95e1080693fe996e", "score": "0.5746769", "text": "@Override\n\tpublic int size() {\n\t\t\n\t\treturn list.size();\n\t}", "title": "" }, { "docid": "d9d8cee63fc66b07f525e2f6dca50931", "score": "0.5743934", "text": "int getPartsCount();", "title": "" }, { "docid": "d9d8cee63fc66b07f525e2f6dca50931", "score": "0.5743934", "text": "int getPartsCount();", "title": "" }, { "docid": "80ea7cea4f3dff9d3185c411c51eddb4", "score": "0.57422066", "text": "public int numItemInList() {\n return nextindex - startIndex;\n }", "title": "" }, { "docid": "e218f4fd510f944e6d217631ca78e160", "score": "0.5738611", "text": "@Override\n\tpublic int size() {\n\t\treturn N;\n\t}", "title": "" }, { "docid": "23383667b570fb1ee03aeb6836e3bef8", "score": "0.5738393", "text": "public int getLimitEnd() {\n return limitEnd;\n }", "title": "" }, { "docid": "23383667b570fb1ee03aeb6836e3bef8", "score": "0.5738393", "text": "public int getLimitEnd() {\n return limitEnd;\n }", "title": "" }, { "docid": "621bf6a32866d3395989b60bdacfa78c", "score": "0.57359356", "text": "public int size() {\n return super.size();\n }", "title": "" }, { "docid": "9e01f8cc803192d9094d27900ec47f59", "score": "0.5734468", "text": "public int size() {\n if (hasKeys) {\n return keys.size();\n } else {\n return objects.size();\n }\n }", "title": "" }, { "docid": "8036d57027b5e7ea4aeeb3b1287945ed", "score": "0.573325", "text": "@Override\n\tpublic int size() {\n\t\treturn numItems;// numItems represents size\n\t}", "title": "" }, { "docid": "601f704e31d1bd9b097d98a91509029f", "score": "0.57254803", "text": "public int getObjectCount() {\n\t\treturn nestedConcept.getExtent().size();\n\t}", "title": "" }, { "docid": "f63e1bde2588c6a9fb37edea6ec78c16", "score": "0.5721773", "text": "protected long doGetNumberOfSubtypes() {\r\n\t\treturn getParentIndex().getSubtypes().size();\r\n\t}", "title": "" }, { "docid": "a5ee26fcb0aaf59983fd6c032ba498b4", "score": "0.5716254", "text": "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.next;\n counter += 1;\n }\n return counter;\n }", "title": "" }, { "docid": "e99e492f080a263b31cb1c44d21beb44", "score": "0.57098335", "text": "public int size(){ return itemCount;}", "title": "" }, { "docid": "62a2d2477e212be6324398b52774a02d", "score": "0.5709425", "text": "public int getCount() {\n\t\t\treturn list.size();\r\n\t\t}", "title": "" }, { "docid": "3e506ae2e2d29ba55e0c5dc9758cce15", "score": "0.57055044", "text": "public int getNumberOfEntries();", "title": "" }, { "docid": "fd33ae93ef97d86df5d1c62055fc68ea", "score": "0.5700585", "text": "public int getNumberOfEntries() ;", "title": "" }, { "docid": "8fc69b2a288d2737191489af022ddc61", "score": "0.56771153", "text": "public int end() { return _end; }", "title": "" }, { "docid": "a578c140f5543273d2a431c36b35afce", "score": "0.5674951", "text": "@Override\n public int size() {\n return (totalSize - offset);\n }", "title": "" }, { "docid": "13b38c9fa44e0b774b8af2056388bceb", "score": "0.5672646", "text": "@Override\n public int size() {\n return theSet.size();\n }", "title": "" }, { "docid": "eb162a30a98578dd54f0c71a2489794a", "score": "0.5662549", "text": "public int size(){\n\t\treturn types.size();\n\t}", "title": "" }, { "docid": "d6b1eb8416cf51857dac330133469696", "score": "0.565273", "text": "public int getCount() {\n return definition.getInteger(COUNT, 1);\n }", "title": "" }, { "docid": "f7df0cd18805b626dd822fc3d8b1c014", "score": "0.56487715", "text": "public int getResultLength() { return i_end; }", "title": "" }, { "docid": "d0f23788b2177bbfbbb2f49131df275a", "score": "0.5647131", "text": "@Override\n\t\tpublic long size() {\n\t\t\t\n\t\t\treturn super.size();\n\t\t}", "title": "" }, { "docid": "6ff918afe3321c67bbe0f36e2a2dd2c8", "score": "0.56397444", "text": "public static int numberObjects()\r\n\t{\r\n\t\treturn(no_of_obj);\r\n\t}", "title": "" }, { "docid": "f23268192ba060091ee129f85f0724a3", "score": "0.5637682", "text": "public Long getElementCount();", "title": "" }, { "docid": "ef9240def24752befda6235a7d1c408e", "score": "0.5637502", "text": "public int getNumbObjects()\n\t{\n\t\treturn this.numObjects;\n\t}", "title": "" }, { "docid": "f1781dd1d1c2e68325da3a2b8658e0e9", "score": "0.5634793", "text": "public int totalNum(){\n return wp.size();\n }", "title": "" }, { "docid": "74f5032d1e26409fc820b552a0bade0e", "score": "0.5632874", "text": "public int getSize(){\n\t\t\n\t\tint counter = 0;\t\t\t\t\t\t\t\t\t\t\t/* ====> Size counter */\n\t\t\n\t\tUser marker = new User();\t\t\t\t\t\t\t\t\t/* ====> Create a marker */\n\t\tmarker = this.getHead();\t\t\t\t\t\t\t\t\t/* ====> Set the marker at the beginning of the list */\n\t\t\n\t\twhile(marker.getNext()!= null){\t\t\t\t\t\t\t\t/* ====> Move marker to next element until it reaches the end. */ \n\t\t\tmarker = marker.getNext();\n\t\t\tcounter++;\t\t\t\t\t\t\t\t\t\t\t\t/* ====> Increment counter everytime the loop goes through */\n\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\treturn counter;\t\t\t\t\t\t\t\t\t\t\t\t/* ====> Return number of Users in UserList */\n\t\t\n\t}", "title": "" }, { "docid": "a61819e0de78b4f1904f326ba5dc7986", "score": "0.56320995", "text": "@Override\n public int size() {\n return list.size();\n }", "title": "" }, { "docid": "14979e8c31e1dde7171ac431cd00d0f1", "score": "0.5626874", "text": "public Integer getLimitEnd() {\r\n return limitEnd;\r\n }", "title": "" }, { "docid": "ece4a2e981661189e8a9574823c9323c", "score": "0.5626422", "text": "public int length() { return _end - _start; }", "title": "" }, { "docid": "46fcf88e64048941a430f7e1c7c2e63a", "score": "0.5625348", "text": "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "title": "" } ]
c718378dacf8f1265a4aa08475d4caac
/ End of store_final_results() / checks whether number of infected people are zero or not, Function Parameters: (num_infect_node)
[ { "docid": "48039f0b515567f1f534700fee544264", "score": "0.6477104", "text": "public boolean check_termination_of_simulation(int[] num_infect_node) \n\t{\n\t\t\n\t for(int i=0; i<nodes; i++)\n\t {\n\t\t if(num_infect_node[i] != 0)\n\t\t { return false;\n\t\t }\n\t } \n\t return true;\n\t\t\n\t}", "title": "" } ]
[ { "docid": "8cf19f34dc0b0032fdc2a2aaa8b242b1", "score": "0.72347647", "text": "public void find_infected_after_recovery_at_each_node(int[] num_infect_node, int[] curr_pos_people) throws IOException \n\t{\t\t\t\t\n\t\tSystem.out.print(\"\\n\");\t\t\n\t\tfor(int i=0; i<nodes; i++)\n\t\t{\n\t\t\tSystem.out.print(\"infected people at node \" + (i)+ \" : \");\t\t\t\n\t\t\tint count=0;\t\t\t\t\t\t\n\t\t\tfor(int j=0; j<people;j++)\n\t\t\t{\n\t\t\t\tif((curr_pos_people[j] == i) && (curr_state_people[j] == 1))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print((j) + \" \");\n\t\t\t\t\tcount = count+1;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\t\t\t\n\t\t\tnum_infect_node[i] = count;\n\t\t\tSystem.out.print( \" -- \" + num_infect_node[i] + \"\\n\");\n\t\t }\t\t\n\t\t\n\t}", "title": "" }, { "docid": "91ed9e4be6a5424c2211cf22c50fedfd", "score": "0.698826", "text": "public void find_infected_at_each_node(String outputFile, int[] num_infect_node, int[] curr_pos_people) throws IOException \n\t{\n\t\tFileWriter fw = new FileWriter(outputFile, true);\t\t\n\t\tfw.write(\"\\n\");\n\t\t\n\t\tint num_recovered = 0;\n\t\tint num_infected = 0;\n\t\tint num_suscepted = 0;\n\t\t\n\t\tfor(int i=0; i<nodes; i++)\n\t\t{\n\t\t\tfw.write(\"infected people at node \" + (i)+ \" : \");\n\t\t\t\n\t\t\tint count_node = 0; // counts the total number of infected people at each node\t\t\t\n\t\t\tint count_sample = 0; // counts the number of infected people with in sample \n\t\t\tint sample_size = 0; // for sample size;\n\t\t\t\n\t\t\tfor(int j=1; j<=num_pop_node[i][0];j++)\n\t\t\t{\n\t\t\t\tint k = num_pop_node[i][j];\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tdouble rn = Math.random();\t\t\t\t\n\t\t\t\tif(rn < 0.5)\n\t\t\t\t\tsample_size = sample_size + 1;\n\t\t\t\t\t\n\t\t\t\tif(curr_state_people[k] == 1)\n\t\t\t\t{\n\t\t\t\t\tfw.write((k) + \" \");\n\t\t\t\t\tcount_node = count_node+1;\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(sample_size < 100)\n\t\t\t\t\t\t count_sample = count_sample + 1;\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(curr_state_people[k] == 2)\n\t\t\t\t\t\tnum_recovered = num_recovered + 1;\n\t\t\t }\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tnum_infect_node[i] = count_node;\n\t\t\tnum_infect_sample[i] = count_sample;\n\t\t\tnum_infected = num_infected + count_node;\t\t\t\n\t\t\tfw.write( \" -- \" + num_infect_node[i] + \" sample infected: \" +num_infect_sample[i] + \"\\n\");\n\t\t }\t\t\n\t\tfw.close();\n\t\t\n\t\tnum_suscepted = people - (num_infected + num_recovered);\n\t\t\n\t\tFileWriter fw1 = new FileWriter(outputFile1, true);\t\t\n\t\tfw1.write(\"\\nHCU Id : \"+hcus+\" At time t=\" + curr_time + \" Suscepted : \" + num_suscepted + \" Infected : \" + num_infected + \" Recovered : \" + num_recovered);\n\t\tfw1.close();\n\t\t\n\t}", "title": "" }, { "docid": "4bb99c0fb619bc45601144d0e60c761e", "score": "0.59123856", "text": "public void initial_state_of_people(int [][] init_infected) \n\t{\n\t\tnum_infect_node = new int[nodes]; \n\t\tnum_infect_sample = new int[nodes];\n\t\tcurr_state_people = new int[people];\n\t\tnext_state_people\t = new int[people];\n\t\ttime_stamp_people = new int[people];\t\n\t\t\n\t\tfor(int i=0; i<num_infected; i++)\n\t\t{\n\t\t\tcurr_state_people[(init_infected[0][i])] = 1;\t\t\t\n\t\t\t\n\t\t\tfor(int j=0; j<nodes; j++) \n\t\t\t{\n\t\t\t\tif(curr_pos_people[(init_infected[0][i])] == j)\n\t\t\t\t\tnum_infect_node[j] = num_infect_node[j] + 1;\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tinfect_prob_of_people_initially(curr_state_people);\n\t\t\n\t}", "title": "" }, { "docid": "1df8db98b3832d98e333d1b9609b51dd", "score": "0.5725277", "text": "private static void verifyDetection() {\n\t\tif (nodesUpdatedCount.size() < clientCommunicators.size())\n\t\t\treturn;//do nothing\n\t\t//for the detection to end the total no. of uodated nodes should be less than a certain preset factor\n\t\tint totalUpdates = 0;\n\t\tfor (int result : nodesUpdatedCount) {\n\t\t\ttotalUpdates += result;\n\n\t\t}\n\t\tif (totalUpdates > nodes.length * .02) {// the updated nodes should be less than some fraction well consider less than 3% of total nodes for success\n\t\t\tnodesUpdatedCount.clear();//reset the results\n\t\t\trunDetection();//go for another round\t\t\t\t\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.println(\"Wrting communitites to file..\");\n\t\tUtils.writeNodesToFile(nodes, nh, outputPath);\n\n\t\tSystem.exit(0);\n\n\t}", "title": "" }, { "docid": "e04c6c4f517a68eea82a116401eb1815", "score": "0.5708859", "text": "public void infect_prob_of_people_initially(int [] curr_state_people)\n\t{\n\t\tinfect_prob_people = new double[people];\n\t\thealthy_prob_node = new double[nodes];\n\t\t\n\t\tfor(int i=0; i<people; i++)\n\t\t{\n\t\t\tif(curr_state_people[i] == 1)\n\t\t\t\tinfect_prob_people[i] = 1.0;\n\t\t\telse\n\t\t\t\tinfect_prob_people[i] = 0.0;\n\t\t}\t\t\n\t\t\n\t}", "title": "" }, { "docid": "33d63ed035cf890af5e63d5542bc3122", "score": "0.5702729", "text": "public void clear_infected_at_node_with_HCU(int id, int pos, int time, int[] curr_pos_people, int[] curr_state_people, double[] infect_prob_people, int[][] adj_matrix, int[] degree_node, double [][] trans_HCUs_dist) throws IOException\n\t{\n\t\tFileWriter fw = new FileWriter(outputFile, true);\t\t\t\n\t\tArrayList<Integer> sample = new ArrayList<Integer>();\n\t\t\n\t\tint scan_count = 0;\n\t\t\n\t\tfor(int j=1; j<=num_pop_node[pos][0]; j++)\n\t\t{\n\t\t\tint i = num_pop_node[pos][j];\n\t\t\t\t\t\t\t\t\n\t\t\tif(scan_people[i] == false)\n\t\t\t{\n\t\t\t\tsample.add(i);\n\t\t\t\tscan_count = scan_count+1;\n\t\t\t}\t\t\t\t\n\t\t\t\n\t\t\tif(scan_count >= sample_size)\n\t\t\t\tbreak; \t\n\t\t}\n\t\t\n\t\tif(sample.isEmpty())\n\t\t{\n\t\t\tSystem.out.println();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint infect_count=0;\n\t\t\tfw.write(\"\\npeople recovered at node \" + (pos) + \" : \");\n\t\t\tSystem.out.print(\"\\npeople recovered at node \" + (pos) + \" :\");\t\t\t\n\t\t\t\t\t\n\t\t\tfor(int j=0; j < scan_count; j++) \n\t\t\t{\n\t\t\t\tint i = sample.get(j);\n\t\t\t\tscan_people[i] = true;\n\t\t\t\n\t\t\t\tif(curr_state_people[i] == 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print( (i) + \" \");\n\t\t\t\t\tfw.write((i) + \" \" );\n\t\t\t\t\tcurr_state_people[i] = 2;\n\t\t\t\t\tnext_state_people[i] = 2;\n\t\t\t\t\tinfect_prob_people[i] = 0.0;\n\t\t\t\t\tinfect_count++;\n\t\t\t\t\tnum_HCU_recover = num_HCU_recover + 1;\n\t\t\t\t}\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\tSystem.out.println();\t\t\n\t\t\tfw.write(\"\\n\");\n\t\t\t\n\t\t\tif((infect_count >= (inf_threshold * sample_size)) && (scan_count >= sample_size))\n\t\t\t{\n\t\t\t\tfw.write(\"Yes Entered : HUCs \" + hcus + \" time :\" + time + \"\\n\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tcurr_pos_HCUs[id] = pos; \n\t\t\t\ttime_stamp_HCUs[id] = curr_time+1; \n\t\t\t\t//random_based_HCU_selection(time, id, pos, trans_HCUs_dist);\n\t\t\t}\t\t\t\n\t\t}\t\t\n\t\tfw.close();\n\t\n\t}", "title": "" }, { "docid": "c168e5bf8462e5225082542d0a2d09f5", "score": "0.5604095", "text": "public void clear_infected_at_node_with_HCU(int pos, int[] curr_pos_people, int[] curr_state_people, double[] infect_prob_people) throws IOException\n\t{\n\t\tFileWriter fw = new FileWriter(outputFile, true);\t\n\t\t\n\t\tfw.write(\"\\npeople recovered at node \" + (pos+1) + \" : \");\n\t\tSystem.out.print(\"\\npeople recovered at node \" + (pos+1) + \" :\");\t\t\t\n\t\t\n\t\t\n\t\tfor(int j=0; j < people; j++) \n\t\t{\n\t\t\tif((curr_pos_people[j] == pos) && (curr_state_people[j] == 1))\n\t\t\t{\n\t\t\t\tSystem.out.print( (j+1) + \" \");\n\t\t\t\tfw.write((j+1) + \" \" );\n\t\t\t\tcurr_state_people[j] = 2;\n\t\t\t\tinfect_prob_people[j] = 0.0;\n\t\t\t}\t\t\t\t\n\t\t}\n\t\t\t\t\n\t\tSystem.out.println();\t\t\n\t\tfw.write(\"\\n\");\n\t\tfw.close();\n\t}", "title": "" }, { "docid": "53c91212b84308795eb95c485ca28159", "score": "0.55585873", "text": "public void neighborhoodVictimCount(){\n ArrayList<String> neighborhoods = getNeighborhood();\n ArrayList<Integer> victims = getVictims();\n\n HashMap<String, Integer> districtVictims = new HashMap<>();\n\n StringBuilder result = new StringBuilder();\n\n if (neighborhoods != null && victims != null) {\n for (int i = 0; i < neighborhoods.size(); i++) {\n if (districtVictims.containsKey(neighborhoods.get(i)) && victims.get(i) > 0)\n districtVictims.replace(neighborhoods.get(i), districtVictims.get(neighborhoods.get(i)) + victims.get(i));\n else if (!districtVictims.containsKey(neighborhoods.get(i)) && victims.get(i) > 0)\n districtVictims.put(neighborhoods.get(i), victims.get(i));\n }\n System.out.println();\n boolean printed = false;\n for (Map.Entry<String, Integer> entry : districtVictims.entrySet()) {\n if (!printed) {\n result.append(\"Printing out victim count to their respective neighborhoods:\\n\");\n printed = true;\n }\n result.append(entry.getKey()).append(\": \").append(entry.getValue()).append(\"\\n\");\n }\n System.out.println(result);\n }\n }", "title": "" }, { "docid": "2b99bebf3d703592a39b7bf35c191169", "score": "0.5557751", "text": "public void store_final_results(int time) throws IOException \n\t{\n\t\t int count=0;\n\t\t for(int i=0; i<people; i++)\n\t\t {\n\t\t\t if(curr_state_people[i] == 2)\n\t\t\t { count++;\n\t\t\t }\n\t\t }\n\t\tString fileName = outputFolder + \"time-inf.txt\";\n\t\tFileWriter fw = new FileWriter(fileName, true);\t\t \n\t\tfw.write(\"\\nPeople:\" + people + \"; Nodes:\" + nodes + \"; Time:\" + time + \"; HCUs:\" + hcus + \" Total People Infected : \" +count + \" People Recovered By HCU : \" + num_HCU_recover);\n \tfw.close(); \n\t}", "title": "" }, { "docid": "a614ecac8fe3321e7748dc2f4947beaf", "score": "0.55547875", "text": "NumberofInfantsBornAlive createNumberofInfantsBornAlive();", "title": "" }, { "docid": "d747bef7ac23c283cf9b0fb348e4914a", "score": "0.54998964", "text": "public static void infectNumOfPeople(Person[] people, int num) {\n\t\tfor(int j = 0; j < num; j ++) {\n\t\t\tfor(int i = j; i < people.length; i ++) {\n\t\t\t\tif(people[i] instanceof ImmunePerson) continue;\n\t\t\t\tif(people[i].getIsInfected()) continue;\n\n\t\t\t\tpeople[i].setInfected(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4425227f61fb6dbe71f040fd135ba895", "score": "0.5359626", "text": "public void streetVictimCount(){\n /**\n * Possible deadlock here since districtVictimCount needs getVictims() and getDistrict() as does this method\n */\n ArrayList<String> streets = getStreet();\n ArrayList<Integer> victims = getVictims();\n ArrayList<String> districts = getDistrict();\n\n HashMap<String, Integer> districtVictims = new HashMap<>();\n\n StringBuilder result = new StringBuilder();\n\n if(streets != null && victims != null) {\n for (int i = 0; i < streets.size(); i++) {\n if(districtVictims.containsKey(districts.get(i) +\", \"+streets.get(i)) && victims.get(i) > 0)\n districtVictims.replace(districts.get(i) +\", \"+streets.get(i), districtVictims.get(districts.get(i) +\", \"+streets.get(i)) + victims.get(i));\n else if(!districtVictims.containsKey(districts.get(i) +\", \"+streets.get(i)) && victims.get(i) > 0)\n districtVictims.put(districts.get(i) +\", \"+streets.get(i), victims.get(i));\n }\n System.out.println();\n boolean printed = false;\n for(Map.Entry<String,Integer> entry : districtVictims.entrySet()) {\n if (!printed) {\n result.append(\"Printing out victim count to their respective districts and streets:\\n\");\n printed = true;\n }\n result.append(entry.getKey()).append(\": \").append(entry.getValue()).append(\"\\n\");\n }\n System.out.println(result);\n\n }\n }", "title": "" }, { "docid": "380cc7a9e84e02bf9b7d52433bbb71f4", "score": "0.52676153", "text": "public int infected_based_HCU_selection(int time, int hcu_id, int pos, int[][] adj_matrix, int [] num_infect_node) \n\t{\n\t\tint max_pop = 0;\n\t\tint max_nbr = pos;\t\t\t\n\t\t\n\t\tSystem.out.println(\"\\npopulation and neighbor id \");\n\n\t\tfor(int i=0; i<nodes; i++)\n\t\t{\n\t\t\tif(adj_matrix[pos][i] == 1)\n\t\t\t{\n\t\t\t\tboolean isExist = check_HCU_exist_at_neighbor(hcu_id, i);\n\t\t\t\t//int pop_nbr = num_infect_node[i];\n\t\t\t\tint pop_nbr = num_infect_sample[i];\n\t\t\t\t\n\t\t\t\tif( (!isExist) && (pop_nbr > max_pop) )\n\t\t\t\t{\n\t\t\t\t\tmax_nbr = i;\n\t\t\t\t\tmax_pop = pop_nbr;\n\t\t\t\t\tSystem.out.print(\" pop :\" + pop_nbr + \"; id: \" + i);\n\t\t\t\t}\n\t\t\t} \n\t\t}\t\t\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\ttime_stamp_HCUs[(hcu_id)] = time;\n\t\tprev_pos_HCUs[0][(hcu_id)] = prev_pos_HCUs[1][(hcu_id)];\n \t\tprev_pos_HCUs[1][(hcu_id)] = max_nbr;//curr_pos_HCUs[(hcu_id)];\n\t\t\n\t\t\n\t\t/* Make all people at this position is not scanned*/\n\t\tfor(int j=0; j<people; j++)\n\t\t{\n\t\t\tif( (curr_pos_people[j] == max_nbr) && (curr_state_people[j] != 2) )\n\t\t\t\tscan_people[j] = false;\n\t\t}\n\t\t\n\t\treturn max_nbr;\n\t\t\n\t}", "title": "" }, { "docid": "4d44539219dde84dafb23cd6eb39b4db", "score": "0.5252662", "text": "public void districtVictimCount(){\n ArrayList<String> districts = getDistrict();\n ArrayList<Integer> victims = getVictims();\n\n HashMap<String, Integer> districtVictims = new HashMap<>();\n\n StringBuilder result = new StringBuilder();\n\n if(districts != null && victims != null) {\n for (int i = 0; i < districts.size(); i++) {\n if(districtVictims.containsKey(districts.get(i)) && victims.get(i) > 0)\n districtVictims.replace(districts.get(i), districtVictims.get(districts.get(i)) + victims.get(i));\n else if(!districtVictims.containsKey(districts.get(i)) && victims.get(i) > 0)\n districtVictims.put(districts.get(i), victims.get(i));\n }\n boolean printed = false;\n for(Map.Entry<String,Integer> entry : districtVictims.entrySet()) {\n if (!printed) {\n result.append(\"Printing out victim count to their respective Districts:\\n\");\n printed = true;\n }\n result.append(entry.getKey()).append(\": \").append(entry.getValue()).append(\"\\n\");\n }\n System.out.println(result);\n\n }\n }", "title": "" }, { "docid": "d25b6189c9f9828f97761fe0db50d94f", "score": "0.5233129", "text": "boolean hasOnlinePeopleCount();", "title": "" }, { "docid": "451150e9814db185cdd4a978ad3e742c", "score": "0.52069944", "text": "Long countItCorrespondant();", "title": "" }, { "docid": "65ca98caa8b831fe7c41dae947291ed9", "score": "0.518958", "text": "public void random_state_selection(int id, double randum, int [][] num_pop_node, int [] num_infect_node, int [] curr_state_people, double [] infect_prob_people, double [] healthy_prob_node) \n\t {\n\t\tint pos = curr_pos_people[(id)]; //current position of individual( id ) \n\t\tint in = num_infect_node[pos]; //total number of people infected at that node\n\t\t\t\t\n\t\tif(in == 0)\n\t\t{\n\t\t\tSystem.out.println(\"Person Id: \" + (id+1) + \"; prev state : \" + curr_state_people[(id)] + \"; curr state : \" + curr_state_people[(id)] );\n\t\t\treturn;\t\t\n\t\t}\n\t\t\n\t\tdouble inf_prob = 0.0; // probability of getting infection\n\t\tdouble rec_prob = 0.0; // probability of recovery from infection \n\t\tdouble zeta = 0.0; // probability of not getting infection from neighbors\n\t\t\n\t\tzeta = healthy_prob_wrt_neighbors(id, pos, infect_prob_people);\t\t\n\t\tinf_prob = (1.0 - zeta );\n\t\trec_prob = recovery_prob_of_people(id, infect_prob_people, zeta);\n\t\t\t\t\n\t\tif( (inf_prob > 1.0) || (inf_prob < 0.0) || (rec_prob > 1.0) || (rec_prob < 0.0) )\n\t\t{\n\t\t\tSystem.out.println(\"healthy prob : \" + (healthy_prob_node[pos]) + \" (1-beta)\" + (1-beta) + \"rec prob : \" + rec_prob + \"\\n Error In probility Calculation\") ;\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tdouble rn = randum;\n\t\t\n\t\tSystem.out.print(\"Person Id: \" + (id+1) + \"; prev state : \" + curr_state_people[(id)] + \"; Random : \" + rn + \"; inf prob : \" + inf_prob + \"; rec prob : \" + rec_prob + \"; \");\n\t\t\n\t\tif(curr_state_people[(id)] == 0)\n\t\t{\n\t\t\tif(rn <= inf_prob)\n\t\t\t{\n\t\t\t\tcurr_state_people[(id)] = 1;\n\t\t\t\tinfect_prob_people[id] = inf_prob;\n\t\t\t\tscan_people[(id)] = false;\n\t\t\t}\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(rn <= rec_prob)\n\t\t\t{\n\t\t\t\tcurr_state_people[(id)] = 2;\n\t\t\t\tinfect_prob_people[id] = 0.0;\n\t\t\t\tscan_people[(id)] = true;\n\t\t\t}\t \n\t\t}\t\t\n\t\tSystem.out.print(\" curr state : \" + curr_state_people[(id)] + \"\\n\");\n\t\t\n\t}", "title": "" }, { "docid": "aeb0843f3b22fc5717a4385bf4ee5619", "score": "0.51861703", "text": "boolean hasDefeatCount();", "title": "" }, { "docid": "6ebb073dbc216c284029b123e2e9f5c9", "score": "0.51817054", "text": "public static int Count() {\n int NumVacants = 0;\n int Count = 0;\n\n for ( int iP = SetupPlayerNames.HumanPlayerSPN.ordinal();\n iP < PRGDActualNumPlayers; iP++){\n for ( int ibs = 0; ibs < Constants.MaxCitySiteSlots; ibs++) {\n if ( BuildingInCitySlot[iP][ibs].Occupied ) {\n NumVacants = 0;\n if ( BuildingInCitySlot[iP][ibs].Building == BuildingIdx.NullBldgIdx ) {}\n else\n Count = Count + BuildingInventory[BuildingInCitySlot[iP][ibs].Building.ordinal()].NumPosts\n - BuildingInCitySlot[iP][ibs].NumColonists;\n }\n else {\n NumVacants++;\n if ( NumVacants > 1)\n break;\n };\n };\n };\n return Count;\n }", "title": "" }, { "docid": "b78d81bcdc66b76dbbca8741fdac5273", "score": "0.5153859", "text": "public void find_people_at_each_node(String outputFile, int [][] num_pop_node, int [] curr_pos_people) throws IOException \n\t{\n\t\tFileWriter fw = new FileWriter(outputFile, true);\t\t\n\t\tfw.write(\"\\n\");\n\t\t\n\t\tint count=1; \n\t\tint total=0;\n\t\t\n\t\tfor(int i=0; i<nodes; i++)\n\t\t{\n\t\t\tcount = 1;\n\t\t\tfw.write(\"people at node \" + (i)+ \" : \");\n\t\t\t\n\t\t\tfor(int j=0; j<people;j++)\n\t\t\t{\n\t\t\t\tif(curr_pos_people[j] == i)\n\t\t\t\t{\n\t\t\t\t\tfw.write((j) + \" \");\t\t\t\t\t\n\t\t\t\t\tnum_pop_node[i][(count)] = j;\n\t\t\t\t\tcount = count+1;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tnum_pop_node[i][0] = count-1;\n\t\t\ttotal = total+num_pop_node[i][0];\n\t\t\t//System.out.println(num_pop_node[i][0]);\n\t\t\tfw.write(\" -- \" + num_pop_node[i][0] +\"\\n\");\n\t\t }\t\t\t\n\t\tfw.close();\n\t\t\n\t\tif(total != people)\n\t\t{\n\t\t\tSystem.out.println(\"\\nError! In the total population and Sum Of the People at each node\");;\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c538f51894311f51d053c73d398b3697", "score": "0.51349425", "text": "public void test(boolean inf, populationList exposed, int caseNum){\n this.totalTestsUsed++;\n switch(caseNum){\n case 1:\n this.case1Tests++;\n break;\n case 2:\n this.case2Tests++;\n break;\n case 3:\n this.case3Tests++;\n break;\n }\n if (inf == true){\n this.totalTestsUsed++;\n populationList a = new populationList();\n boolean aInf = false;\n\n populationList b = new populationList();\n boolean bInf = false;\n\n int grpSz = exposed.getSize(exposed);\n\n //we cant recurse any longer\n if (grpSz == 2){\n for (int i = 0; i < 2;i ++){\n Person temp = exposed.dequeue();\n if (temp.infected == true){\n this.totalSick++; //we found the person making the group test positive\n }\n }\n } else {\n //go through list half by half\n for (int i = 0; i < grpSz / 2; i++){\n Person temp = exposed.dequeue(); //this just feels like this the office\n if (temp.infected == true){\n aInf = true;\n }\n a.enqueue(temp.infected);\n }\n for (int j = 0; j < grpSz / 2; j++){\n Person temp = exposed.dequeue(); //this just feels like this the office\n if (temp.infected == true){\n bInf = true;\n }\n b.enqueue(temp.infected);\n }\n\n //no matter what just test both\n test(aInf, a, caseNum);\n test(bInf, b, caseNum);\n }\n\n } //else : do nothing no infection = were done\n }", "title": "" }, { "docid": "cbac832a05db19632d8022e06416c944", "score": "0.4967564", "text": "public void victimPartOfDayCount(){\n ArrayList<String> partOfDay = getPartOfDay();\n ArrayList<Integer> victims = getVictims();\n\n HashMap<String, Integer> districtVictims = new HashMap<>();\n\n StringBuilder result = new StringBuilder();\n\n if(partOfDay != null && victims != null) {\n for (int i = 0; i < partOfDay.size(); i++) {\n if(districtVictims.containsKey(partOfDay.get(i)) && victims.get(i) > 0)\n districtVictims.replace(partOfDay.get(i), districtVictims.get(partOfDay.get(i)) + victims.get(i));\n else if(!districtVictims.containsKey(partOfDay.get(i)) && victims.get(i) > 0)\n districtVictims.put(partOfDay.get(i), victims.get(i));\n }\n System.out.println();\n boolean printed = false;\n for(Map.Entry<String,Integer> entry : districtVictims.entrySet()) {\n if (!printed) {\n result.append(\"Printing out victim count to their respective parts of day:\\n\");\n printed = true;\n }\n result.append(entry.getKey()).append(\": \").append(entry.getValue()).append(\"\\n\");\n }\n System.out.println(result);\n\n }\n }", "title": "" }, { "docid": "54ca4bd72e1e4887d6cd8b4257b7a69c", "score": "0.4960282", "text": "@Test\n public void firstRelevantResultOutsideKResults() {\n final ObjectNode judgements = mapper.createObjectNode();\n stream(FIFTEEN_SEARCH_HITS).skip(11).limit(1).forEach(docid -> judgements.set(docid, createJudgmentNode(3)));\n cut.setRelevantDocuments(judgements);\n\n cut.setTotalHits(FIFTEEN_SEARCH_HITS.length, A_VERSION);\n stream(FIFTEEN_SEARCH_HITS)\n .map(this::searchHit)\n .forEach(hit -> cut.collect(hit, counter.incrementAndGet(), A_VERSION));\n\n assertEquals(0.0d, cut.valueFactory(A_VERSION).value().doubleValue(), 0);\n }", "title": "" }, { "docid": "90605b7a97be0be101a7d0a64c0645b6", "score": "0.49340975", "text": "public int computeNewlySick(final int infected, final int susceptible, final int population) {\n return toIntExact(round(infectionRate * infected * ((double) susceptible / (double) population)));\n }", "title": "" }, { "docid": "328efb56383627ecb3145f02b25aa198", "score": "0.49146476", "text": "private int membership(Node n){\n\t\n\t\tint numwords = 0;\n\t\tint c, d;\n\n\t\t//if the given node is terminal, increment the counter\n\t\tif(n.isTerminal()) {\n\t\t\tnumwords++;\n\t\t}\n\t\n\t\t// check all of the children, looping through 1-25 until d = the out-degree of the node\t\t\n\t\tfor(c = 0 ,d = 0; (c <= 25 && d < n.getDegree()) ;c++)\n\t\t{\n\t\t\t//if the node has a child of value c, get the number of terminal nodes in that branch\n\t\t\tif(n.hasChild(c)) {\n\t\t\t\td++;\n\t\t\t\tnumwords += membership(n.getChild(c));\n\t\t\t}\n\t\t}\n\n\t\t//return the number of terminal values\n\t\treturn numwords;\n\t}", "title": "" }, { "docid": "5ce408873e5b65ba8d861ccfce0adb59", "score": "0.4900033", "text": "public void weekdayVictimCount() {\n ArrayList<String> weekdays = getWeekday();\n ArrayList<Integer> victims = getVictims();\n\n HashMap<String, Integer> districtVictims = new HashMap<>();\n\n StringBuilder result = new StringBuilder();\n\n if (weekdays != null && victims != null) {\n for (int i = 0; i < weekdays.size(); i++) {\n if (districtVictims.containsKey(weekdays.get(i)) && victims.get(i) > 0)\n districtVictims.replace(weekdays.get(i), districtVictims.get(weekdays.get(i)) + victims.get(i));\n else if (!districtVictims.containsKey(weekdays.get(i)) && victims.get(i) > 0)\n districtVictims.put(weekdays.get(i), victims.get(i));\n }\n System.out.println();\n boolean printed = false;\n for (Map.Entry<String, Integer> entry : districtVictims.entrySet()) {\n if (!printed) {\n result.append(\"Printing out victim count to their respective weekdays:\\n\");\n printed = true;\n }\n result.append(entry.getKey()).append(\": \").append(entry.getValue()).append(\"\\n\");\n }\n System.out.println(result);\n }\n }", "title": "" }, { "docid": "46fbe26efd9ad85c66229cbbe792b1cd", "score": "0.48935908", "text": "private void checkClusterNecessity()\n \t{\n \t\tLogging.log(this, \"Checking necessity of this cluster\");\n \t\t// no further external candidates available/known (all candidates are gone) or has the last local inferior coordinator left the area?\n \t\tif ((countConnectedClusterMembers() < 1 /* do we still have cluster members? */) || (mInferiorLocalCoordinators.size() == 0 /* has the last local coordinator left this cluster? */)){\n \t\t\tLogging.log(this, \"checkClusterNecessity() detected an unneeded cluster\");\n \t\t\t\n \t\t\t/**\n \t\t\t * TRIGGER: cluster invalid\n \t\t\t */\n \t\t\teventClusterRoleInvalid();\n \t\t}\n \t}", "title": "" }, { "docid": "04123c5b90e7ff34d81ea46de294a700", "score": "0.48820814", "text": "public String testPop(){\n int numOfGroups = this.popSize / this.groupSize; //nned to add one to run a number where theres pop size not / by groupsize\n int groupCounter = 0;\n String print = \"\";\n\n //each time we run through this we make a new group\n //we shld run through this 125 times\n while(!(population.isEmpty()) && (groupCounter <= numOfGroups)){\n boolean case2or3 = false; //lets assume its case 1. it probably is\n this.testCounter = 0; //reset\n\n populationList groupX = new populationList();\n\n //add groupSize(8) people to groupX\n for (int i = 0; i < groupSize; i++) {\n\n Person copyPerson = population.dequeue(); //it feels weird to say new when i named the variable person??\n\n if (copyPerson.infected == true){\n //we must find them!!\n case2or3 = true; //theres someone infected\n this.testCounter++; //number of inf people in this group goes up by 1\n }\n groupX.enqueue(copyPerson.infected);\n }\n\n if (this.testCounter == 0){\n this.case1Count++;\n } else if (this.testCounter == 1){\n this.case2Count++;\n } else {\n this.case3Count++;\n testCounter = 2; //if its greater than 2 just so we know its case 3\n }\n\n this.test(case2or3, groupX, (testCounter + 1));\n }\n\n case2Tests = totalTestsUsed - case1Tests - case3Tests;\n if (case1Tests + case2Tests + case3Tests != totalTestsUsed){\n System.out.println(\"uh oh we messed up with the test count\");\n }\n print = ((\"Case(1): \") + numOfGroups + \" x 0.85 --> \" + case1Count + \" instances with \"+ case1Tests +\" tests used \\n\" +\n \"Case(2): \" + numOfGroups + \" x 0.1496 --> \" + case2Count + \" instances with \" + case2Tests +\" tests used \\n\" +\n \"Case(3): \" + numOfGroups + \" x 0.0004 --> \" + case3Count + \" instances with \" + case3Tests + \" tests used \\n\" +\n \"---------------------------------------------------------------------------------------------------------------------------------------------------- \\n\" +\n this.totalTestsUsed + \" tests found \" + totalSick + \" infected people in a population of \" + popSize + \" people with an infection rate of \" + (infectionRate * 100) + \"% \\n\\n\\n\" );\n return print;\n }", "title": "" }, { "docid": "b923bb89ddcc008f0596b6c082d79e37", "score": "0.48801586", "text": "static void Evacuate(SetupPlayerNames sPlayer ) {\n int Player = sPlayer.ordinal();\n int NumVacantSlot = 0;\n\n for (int ics = 0; ics < Constants.MaxCitySiteSlots; ics++){\n if ( BuildingInCitySlot[Player][ics].Occupied ) {\n NumVacantSlot = 0;\n if ( BuildingInCitySlot[Player][ics].Building == BuildingIdx.NullBldgIdx ) {}\n else\n ReStaff(sPlayer, CitySlotToBuildingSlot(ics), -BuildingInCitySlot[Player][ics].NumColonists);\n }\n else {\n NumVacantSlot++;\n if ( NumVacantSlot > 1 )\n return;\n \n };\n };\n\n}", "title": "" }, { "docid": "54d7fd9ac3d2a7234d483f914716a681", "score": "0.48646587", "text": "public void ExistingPerson() {\n read = new Scanner(System.in);\n System.out.println(\"Please enter your idNumber: \");\n String idNumber = read.nextLine();\n boolean PersonExists = CheckidNumber(idNumber);\n if (PersonExists) {\n System.out.println();\n System.out.println();\n System.out.println();\n char resp = 'S';\n while (resp == 'S' || resp == 's') {\n System.out.println(\"***** Person Menu *****\");\n System.out.println(\"1. View Personal Information.\");\n System.out.println(\"2. Modify Personal Information.\");\n System.out.println(\"3. Create new Job Request.\");\n System.out.println(\" Enter your response [1 to 3]\");\n int response = LimitedIntEntry(1, 3);\n switch (response) {\n case 1:\n String PersonalDetails = ExecuteRequestQuery(\"MATCH (p:Person)\\n\" + \"WHERE p.idNumber = \\\"\" + idNumber + \"\\\"\\n\" + \"RETURN p\").toString();\n System.out.println();\n System.out.println(PersonalDetails);\n break;\n case 2:\n break;\n case 3:\n System.out.println(\"Accessing data..\");\n System.out.println();\n System.out.println(\"\");\n String careerCompare= RequestPersonCareer(idNumber);\n ArrayList<String> jobRecommendationsUser = new ArrayList<String>();\n jobRecommendationsUser = jobRecommendations(careerCompare);\n ArrayList<String> jobCIF = new ArrayList<String>();\n ArrayList<String> jobSalaryG = new ArrayList<String>();\n ArrayList<String> jobSchedule = new ArrayList<String>();\n \n //Divided per Attribute, consumes more resource than the necessary\n jobCIF= jobCIFGETTER(careerCompare);\n jobSalaryG=jobSalary(careerCompare);\n jobSchedule=jobTime(careerCompare);\n System.out.println(\"Data acquired\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"Potential Jobs\");\n int counter=0;\n for (int i = 0; i < jobRecommendationsUser.size(); i++) {\n counter=i;\n System.out.println(i+\": \"+jobRecommendationsUser.get(i)+\" salary: LPS.\"+jobSalaryG+\" Schedule \"+jobSchedule);\n }\n String ContinueAdding=\"1\";\n int jobSelect;\n while(ContinueAdding==\"1\"){\n System.out.println(\"Select a job you like to apply: \");\n System.out.println(\"0-\"+counter);\n jobSelect=read.nextInt();\n String addQueryCypher=\"\";\n addQueryCypher = CypherJobRequestCreator(jobCIF.get(jobSelect), idNumber, jobRecommendationsUser.get(counter)\n , jobSalaryG.get(counter), jobSchedule.get(counter));\n ExecuteQuery(addQueryCypher);\n String addRelationQuery=\"\";\n addRelationQuery=CypherJobRequestRelationShipCreator(jobCIF.get(jobSelect), idNumber, jobRecommendationsUser.get(counter)\n , jobSalaryG.get(counter), jobSchedule.get(counter));\n ExecuteQuery(addRelationQuery);\n System.out.println(\"\");\n System.out.println(\"Continue applying? 1/ Yes, 2/No\");\n ContinueAdding=read.nextLine();\n \n }\n break;\n default:\n System.out.println(\"Dato Invalido\");\n break;\n }\n read = new Scanner(System.in);\n System.out.println(\"Return to Person Menu? [S/N]\");\n resp = read.nextLine().charAt(0);\n }\n\n } else {\n System.out.println(\"idNumber is invalid or not existing in our database.\");\n }\n }", "title": "" }, { "docid": "450ccc27033eef9b0a6fe1a443516318", "score": "0.4849962", "text": "private boolean hasNonzeroNeighbors(){\n \treturn (Collections.frequency(neighborState, (Integer) Cell.EMPTY) - neighborState.size() < 0.1); \n }", "title": "" }, { "docid": "03ea82423d4eee6dcd6f47e2469afbee", "score": "0.48399323", "text": "int getMissCount();", "title": "" }, { "docid": "e5bd880a0df48f22e67e2d4a0bef6898", "score": "0.48341823", "text": "public void rescueRemainingNonCriticals(int remaining, int currentX, int currentY) { //CALLED WHEN WE RE AT THE FIRST NON-CRITICAL TO BE TAKEN TO THE HOSPITAL\r\n\t\t// for every victim that is saved, the method: m.rescuedNonCritical(x,y) must be\r\n\t\t// called upon taking the victim in question to the hospital.\r\n\t\t// This is important to remove the Jason belief for the victim location in\r\n\t\t// paramedic\r\n\t\tSystem.out.println(\"RESCUING ALL NON CRITICAL\");\r\n\r\n\t\tupdateGrid();\r\n\r\n\t\tList<Node> noncriticalVictims = new ArrayList<>();\r\n\t\tint xNow = currentX;\r\n\t\tint yNow = currentY;\r\n\t\tint xVictim = 0;\r\n\t\tint yVictim = 0;\r\n\t\t\r\n\t\tfor(int y = 0; y < gridArray.length; y++) {\r\n\t\t\tfor (int x = 0; x < gridArray[y].length; x++) {\r\n\t\t\t\tif (gridArray[x][y] == 'N') {\r\n\t\t\t\t\tnoncriticalVictims.add(new Node(null, x, y, 0, 0));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//THERE SHOULD BE A LOOP THAT GOES TO THE NEXT VICTIM AND THEN TO THE HOSPITAL, AS THIS FUNCTION IS CALLED WHEN WE ARE LOCATED ON A NON CRITICAL VICTIM, THE VICTIM WE\r\n\t\t//ARE ON WILL OBVIOUSLY BE THE CLOSEST ONE TO US, SO IT WILL BE THE ONE THAT IS RESCUED FIRST, LOOP THAT UNTIL THE VARIABLE m.actualVictimsRemaining == 0\r\n\t\tfor (int i = 0; i < noncriticalVictims.size() ; i++) {\r\n\r\n\r\n\t\t\txVictim = noncriticalVictims.get(i).x;\r\n\t\t\tyVictim = noncriticalVictims.get(i).y;\r\n\t\t\tSystem.out.println(\"GOING TO \"+ xVictim + \",\" + yVictim + \" \");\r\n\r\n\t\t\t//Go to victim location\r\n\t\t\tList<String> commands = a.getListOfCommandsFromOneLocationToAnother(xNow, yNow, xVictim, yVictim);\r\n\t\t\tpc.sendMultipleCommands(commands);\r\n\t\t\t\r\n\t\t\t//Go to hospital\r\n\t\t\tgoToHospital(xVictim,yVictim);\r\n\r\n\t\t\t//set current location\r\n\t\t\txNow = 0;\r\n\t\t\tyNow = 0;\r\n\t\t}\t\r\n\r\n\t\tSystem.out.println(\"DONEEEE ---------------------------\");\r\n\t}", "title": "" }, { "docid": "3014dec5a826ed22b33ac9b7b596dd3c", "score": "0.48300126", "text": "public void compute(){\n for(int i=0; i<userNumbers.length;i++){\n for(int j=0;j<userNumbers[i].length;j++) {\n for(int k=0;k<lotteryNumbers.length;k++){\n if(lotteryNumbers[k]==userNumbers[i][j]){\n check[i][j]=userNumbers[i][j];\n }\n }\n }\n }\n\n // Count of player's successful guess numbers in check array.\n // if number is not zero, then count is getting incremented by 1\n for(int i=0; i<check.length;i++){\n for(int j=0; j<check[i].length; j++){\n if((i==0) && (check[i][j]!=0)){\n firstRoundMatchedNumbers++;\n }\n if((i==1) && (check[i][j]!=0)){\n secondRoundMatchedNumbers++;\n }\n if((i==2) && (check[i][j]!=0)){\n thirdRoundMatchedNumbers++;\n }\n }\n }\n // check ifplayer is entitled to prize foreach set of numbers as per project requirement\n firstRoundResult=gameResults(firstRoundMatchedNumbers);\n secondRoundResult=gameResults(secondRoundMatchedNumbers);\n thirdRoundResult=gameResults(thirdRoundMatchedNumbers);\n }", "title": "" }, { "docid": "c3c252f5ccb6d993a5db197bb314557d", "score": "0.48295367", "text": "int wheNewPathIsPotDomPreIndex(LazyLabel newLabel, NodeLazyLabelArray nodeLableArray, LazyLabel labelMaxInf){\r\n\t\tint flag = 0;\r\n\t\t//double cost = newLabel.cost;\r\n\t\tdouble infoCov = newLabel.infoCov;\r\n\t\tTreeSet<String> keywordsSet = newLabel.keywordsSet;\r\n\t\tArrayList<LazyLabel> arrLab = nodeLableArray.labelArr;\r\n\t\tint numLab = arrLab.size();\r\n\t\tif(infoCov==0 && numLab>0)//deal with infoCov=0\r\n\t\t\treturn 2;\r\n\t\t//compare the new label with the label with maximum inf\r\n\t\tif(labelMaxInf != null){\r\n\t\t\tdouble joinInfMax = comNumKeyCovJoin(keywordsSet, labelMaxInf.keywordsSet);\r\n\t\t\tdouble diffMax = infoCov - joinInfMax;\r\n\t\t\tif(diffMax/labelMaxInf.infoCov <= Epsilon){\r\n\t\t\t\treturn 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i=0; i<numLab; i++){\r\n\t\t\tLazyLabel aLabel = arrLab.get(i);\r\n\t\t\t//compute the f(p_1 \\join p_2)\r\n\t\t\tdouble joinInf = comNumKeyCovJoin(keywordsSet, aLabel.keywordsSet);\r\n\t\t\tdouble diff = infoCov - joinInf;\r\n\t\t\tif(diff/aLabel.infoCov <= Epsilon){\r\n\t\t\t\treturn 2;\r\n\t\t\t}\r\n\t\t\telse if(flag == 0){\r\n\t\t\t\tif(diff/aLabel.estInfoCov <= Epsilon){\r\n\t\t\t\t\tflag = 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn flag;\r\n\t}", "title": "" }, { "docid": "fd389ad535b2f1084683d54aa535f464", "score": "0.48274055", "text": "public int[] chooseInfected(){\n //find # of infected ppl per infection rate w this pop size\n int amtPplInfected = (int)(popSize * infectionRate);\n int[] pplInf = new int[amtPplInfected];\n\n int[] indices = new int[population.getSize(population)];\n Person last = population.first;\n int counter = 0;\n while (last.pointer != null){\n indices[counter] = last.index;\n last = last.pointer;\n counter++;\n }\n //for each person infected, find a random index\n for(int i = 0; i < pplInf.length; i++){\n Random rand = new Random();\n //generate random values from 0 - max population size\n int randomInf = rand.nextInt(popSize);\n if (indices[randomInf] == -1){\n while(indices[randomInf] == -1){\n Random rando = new Random();\n //generate random values from 0 - max population size\n randomInf = rando.nextInt(popSize);\n }\n pplInf[i] = randomInf;\n indices[randomInf] = -1; //means this one was already chosen\n } else {\n pplInf[i] = randomInf;\n indices[randomInf] = -1; //means this one was already chosen\n }\n }\n\n //lets sort this to make our lives a little easier //we have the code why not\n Sort s = new Sort(pplInf);\n s.quickSort(0, pplInf.length - 1);\n pplInf = s.arr;\n\n /* for (int m = 0; m < pplInf.length; m++){\n System.out.println(pplInf[m]);\n }*/\n return pplInf;\n }", "title": "" }, { "docid": "e8a35d4264a558b2fb31b8d4a6691828", "score": "0.4824646", "text": "public int getBestFitEmptyIndex(int noOfPeople){\n\t\tif(noOfPeople<=0 || noOfPeople>10){\n\t\t\tSystem.out.print(\"Error. Check input\");\n\t\t\treturn -1;\n\t\t}\n\t\telse{\n\t\t\tint tempTableID = -1;\n\t\t\tif(showEmpty()==0) //if no tables are empty, return -1\n\t\t\t\treturn tempTableID;\n\t\t\tint tempDifference = 10;\n\t\t\tfor(int i=0;i<10;i++){\n\t\t\t\tif(table[i].getCapacity() >= noOfPeople && !table[i].isOccupied())\n\t\t\t\t\tif((table[i].getCapacity()-noOfPeople)<=tempDifference){\n\t\t\t\t\t\ttempDifference = table[i].getCapacity()-noOfPeople;\n\t\t\t\t\t\ttempTableID = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn tempTableID;\n\t\t}\n\t}", "title": "" }, { "docid": "48186d7af5ae07ee3cf2a86dc7b6adb2", "score": "0.48139462", "text": "public void goViral(){\n\n int[] infectedPpl = chooseInfected();\n populationList.infectPpl(population, infectedPpl);\n\n }", "title": "" }, { "docid": "5907707df6ba9aa6eedfa2de3823bbe1", "score": "0.47947627", "text": "public void checkForUnicornSolution(){\n if(isUnicornPossible){\n System.out.println(\"Test solution...\");\n if(isExerciseSatisfied()){\n FadeTransition ft = ExampleGraphs.generateUnicorn(0, 0, exampleScale);\n pane.getChildren().add(ft.getNode());\n Tooltip tooltip = new Tooltip(Values.exampleSolved);\n Tooltip.install(ft.getNode(), tooltip);\n ft.play();\n\n exerciseSolutions = new boolean[0];\n exerciseNodes = new ArrayList<>();\n isUnicornPossible = false;\n }\n }\n }", "title": "" }, { "docid": "24f95ce31eb905561c2707b60484bbaa", "score": "0.47880742", "text": "protected int countBlank() {\n // Declare a counter.\n int counter = 0;\n // Iterate over each coordinate.\n Iterator<Coordinate> i = coords.iterator();\n // If the corrent coordinate does not have a number assigned,\n // increment the counter by one. \n while (i.hasNext()) {\n if (i.next().number == null) {\n counter++;\n }\n }\n // return the counter\n return counter;\n }", "title": "" }, { "docid": "d9c5f8bf4091f1928d5e34d8b74fa1b4", "score": "0.47756457", "text": "public int checkForEliminationVictory() {\n int yourPieces = 0;\n int opponentsPieces = 0;\n //Goes through all units and counts how many are alive for each player.\n for (int i = 0; i < grid.tileList.length; i++) {\n for (int j = 0; j < grid.tileList[i].length; j++) {\n if (grid.tileList[i][j].getUnit() != null) {\n if (grid.tileList[i][j].getUnit().getEnemy()) {\n opponentsPieces++;\n } else {\n yourPieces++;\n }\n }\n }\n }\n if (yourPieces == 0) {\n return 1;\n } else if (opponentsPieces == 0) {\n return 0;\n } else {\n return -1;\n }\n }", "title": "" }, { "docid": "d556cc5f741f2763543fdde77f2db8c8", "score": "0.47741732", "text": "public int countEndEqualNum(int number) throws DataNotFoundException\n {\n // if root has something...\n if(root != null)\n {\n // if the counter found boys ending in that number...\n if(root.countEndEqualNum(number) != 0)\n {\n // call the method in Node\n return root.countEndEqualNum(number);\n }\n // if the counter couldn't find boys ending in that number...\n else\n {\n throw new DataNotFoundException(\"There are no students ending in that number\");\n }\n }\n throw new DataNotFoundException(\"There are no students yet\");\n }", "title": "" }, { "docid": "ad8f9f9cadd6a04b9c830dc3439d181e", "score": "0.47580165", "text": "public void weekdayPartOfDayVictimCount(){\n ArrayList<String> weekdays = getWeekday();\n ArrayList<String> partOfDay = getPartOfDay();\n ArrayList<Integer> victims = getVictims();\n\n HashMap<String, Integer> districtVictims = new HashMap<>();\n\n StringBuilder result = new StringBuilder();\n\n if (weekdays != null && victims != null && partOfDay != null) {\n for (int i = 0; i < weekdays.size(); i++) {\n if (districtVictims.containsKey(weekdays.get(i)+\", \"+partOfDay.get(i)) && victims.get(i) > 0)\n districtVictims.replace(weekdays.get(i)+\", \"+partOfDay.get(i), districtVictims.get(weekdays.get(i)+\", \"+partOfDay.get(i)) + victims.get(i));\n else if (!districtVictims.containsKey(weekdays.get(i)+\", \"+partOfDay.get(i)) && victims.get(i) > 0)\n districtVictims.put(weekdays.get(i)+\", \"+partOfDay.get(i), victims.get(i));\n }\n System.out.println();\n boolean printed = false;\n for (Map.Entry<String, Integer> entry : districtVictims.entrySet()) {\n if (!printed) {\n result.append(\"Printing out victim count to their respective parts of day during the week:\\n\");\n printed = true;\n }\n result.append(entry.getKey()).append(\": \").append(entry.getValue()).append(\"\\n\");\n }\n System.out.println(result);\n }\n }", "title": "" }, { "docid": "9c14eb50f0eb65ba7afc85a5c9c546cc", "score": "0.47463292", "text": "public void next_state_of_people(int time, int [][] num_pop_node, int [] num_infect_node, int [] curr_state_people) throws IOException\n\t{\n\t\tSystem.out.println();\t\t\n\t\tString fileName = stateFolder + time + \".txt\";\n\t\t//read_positions_of_people(fileName, curr_pos_people);\n\t\t\t\n\t\tFile fe = new File(fileName);\n\t\tFileReader fr = new FileReader(fe);\t\t\n\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\n\t\tString readline = br.readLine();\n\t\tif(Integer.parseInt(readline) != people)\n\t\t\tSystem.out.println(\"\\n Mismatching with people :\" + readline);\n\t\t\n\t\tint i = 0;\n\t\t\n\t\twhile((readline = br.readLine()) != null)\n\t\t{\n\t\t\tdouble randum = parse_state_of_people(readline);\n\t\t\t//random_state_selection(i, randum, num_pop_node, num_infect_node, curr_state_people, infect_prob_people, healthy_prob_node);\t\n\t\t\trandom_state_selection(i, randum);\n\t\t\ti=i+1;\n\t\t}\t\t\n\t\tfr.close();\t\t\t\t\n\t\t//System.out.println();\t\n\t\t\n\t}", "title": "" }, { "docid": "9f644232b7e0794ba3c84ae3b3cc3ee0", "score": "0.47457516", "text": "public boolean setNumberCommunities(){\n numberCommunities=-1;\n int sc=-1;\n boolean fail=false;\n for (int s=0; s<numberElements; s++){\n sc = communityOfElement[s];\n if (numberCommunities<sc) numberCommunities=sc;\n if (sc<0) fail=true;\n }//eo for s\n numberCommunities++;\n return fail;\n }", "title": "" }, { "docid": "29256e26b5405a0e9c2e5012ef5229da", "score": "0.47439227", "text": "private boolean probeTableEmpty() {\n ResultSet rs = getResultSet(_CountProbes);\n if (rs != null) {\n try {\n if (rs.next()) {\n String noProbes = (String) rs.getString(\"numberOfProbes\");\n if (noProbes != null && noProbes.length() > 0) {\n int numberOfProbes = Integer.parseInt(noProbes);\n if (numberOfProbes > 0) {\n return false;\n }\n }\n\n }\n } catch (SQLException ex) {\n Logger.getLogger(ProbeAttributeDataAccess.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return true;\n }", "title": "" }, { "docid": "bcf535a13ec9f45b091c6efca82092de", "score": "0.47289994", "text": "void verify() {\n\t\tint n = map.length;\n\t\tint[] cees = { 0, 0, 0, 0, 83562, 83870, 86074, 94981, 97651, 107691, 123499, 125179, 133126, 146619, 168980,\n\t\t\t\t192698, 229431, 229535, 230051, 231018, 233288, 241460, 244747 };\n\t\tif (n < cees.length && (int) (bestLen * 10) != cees[n]) {\n\t\t\tSystem.out.println(\"*************\");\n\t\t\tSystem.out.println(\"Fail with n=\" + n);\n\t\t\tSystem.out.println((int) (bestLen * 10) + \" != \" + cees[n]);\n\t\t\tSystem.out.println(\"*************\");\n\t\t}\n\t}", "title": "" }, { "docid": "e0494a95c3ffc588da2b57cd8280f906", "score": "0.47267845", "text": "public int computeNewlyRecovered(final int infected) {\n return toIntExact(round(recoveryRate * (double) infected));\n }", "title": "" }, { "docid": "5cf3ba9a41ee4d515295c5d3cb692b19", "score": "0.47242418", "text": "public void count()\r\n\t{\r\n\t\tint[] counter = new int[this.clustersAmount];\r\n\t\tint noise = 0;\r\n\t\tint infrontier = 0;\r\n\r\n\t\tfor(int i = 0; i < this.dataSize; i++)\r\n\t\t{\r\n\t\t\tif( this.instClassification[i] >= 0 )\r\n\t\t\t\tcounter[ this.instClassification[i] ]++;\r\n\t\t\telse\r\n\t\t\t\tswitch(this.instClassification[i])\r\n\t\t\t\t{\r\n\t\t\t\t\tcase NOISE:\r\n\t\t\t\t\t\tnoise++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase FRONTIER:\r\n\t\t\t\t\t\tinfrontier++;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(int i = 0; i < this.clustersAmount; i++)\r\n\t\t\tSystem.out.println(\"Cluster \"+i+\" = \"+counter[i]);\r\n\t\tSystem.out.println(\"Noise = \" + noise + \"\\nIn frontier = \" + infrontier + \"\\n\");\r\n\t}", "title": "" }, { "docid": "4a2c915c5eb793825065e66f50fd7574", "score": "0.4718049", "text": "public int getEmptyCommunity(){\n return nextCommunityLabel++;\n }", "title": "" }, { "docid": "916095687223d1f128c440c26027768a", "score": "0.4716488", "text": "private boolean isDone(NodeThompson e) {\n String th = e.getDataNode();\n boolean res = false;\n if (thompsonDone.length == 0) {\n return false;\n }\n for (int i = 0; i < 20; i++) {\n if (th.equals(thompsonDone[i])) {\n res = thompsonDone[i] != null;\n if (res == false){\n return false;\n }\n }\n }\n return res;\n }", "title": "" }, { "docid": "564183515008ac9cb5d5f5216f52c922", "score": "0.47114375", "text": "public void computeNextGeneration() {\r\n int numNeighbours;\r\n for (int i = 0; i < numCellsY; i++) {\r\n for (int j = 0; j < numCellsX; j++) {\r\n numNeighbours = countLivingNeighbours(i,j);\r\n aliveNext[i][j] = !(numNeighbours <= 1 || numNeighbours >= 4 || alive[i][j] == false && numNeighbours == 2);\r\n }\r\n } \r\n }", "title": "" }, { "docid": "cfb1f39f44408fa3a2f1ec02ac8cf1fe", "score": "0.47109056", "text": "public void evensAreZero()\n {\n for ( int i = 0; i < this.values.length - 1; i++ )\n {\n \n }\n /*for ( int element : this.values )\n { \n double remainder = Math.IEEEremainder( element, 2 );\n if ( remainder == 0)\n {\n \n }\n }*/\n }", "title": "" }, { "docid": "8c6a7cc0f6e9620bb51d58cbd20aca80", "score": "0.4708551", "text": "public static void verifyReachable() {\n\tint reachable = 0, unreachable = 0;\n\n\tfor(int i = 0; i < hTable.capacity; ++i) {\n\t\tif (hTable.locate((Member) hTable.table[i]) > -2) ++reachable;\n\t\telse ++unreachable; \n\t}\n\tclearScreen();\n\tSystem.out.printf(\"Hashtable size = %d\\nReachable Members = %d\\n\" + \n\t\t\"Unreachable Members = %d\\n\\n\",\n\t\t hTable.capacity, reachable, unreachable);\n}", "title": "" }, { "docid": "ddddafbedd3235333d1cc7497bedadaa", "score": "0.47035155", "text": "public void monthVictimCount(){\n ArrayList<String> months = getMonths();\n ArrayList<Integer> victims = getVictims();\n\n HashMap<String, Integer> districtVictims = new HashMap<>();\n\n StringBuilder result = new StringBuilder();\n\n if(months != null && victims != null) {\n for (int i = 0; i < months.size(); i++) {\n if(districtVictims.containsKey(months.get(i)) && victims.get(i) > 0)\n districtVictims.replace(months.get(i), districtVictims.get(months.get(i)) + victims.get(i));\n else if(!districtVictims.containsKey(months.get(i)) && victims.get(i) > 0)\n districtVictims.put(months.get(i), victims.get(i));\n }\n System.out.println();\n boolean printed = false;\n for(Map.Entry<String,Integer> entry : districtVictims.entrySet()) {\n if (!printed) {\n result.append(\"Printing out victim count to their respective months:\\n\");\n printed = true;\n }\n result.append(entry.getKey()).append(\": \").append(entry.getValue()).append(\"\\n\");\n }\n System.out.println(result);\n\n }\n }", "title": "" }, { "docid": "26eea26a3440a5c7ffc3d9a5d3e7ed48", "score": "0.47001827", "text": "public int getPendingGraylistCount() {\n\t\t//TODO: in developer mode, show don't supress unknown users.\n\t\tSQLiteDatabase db = initializeDatabase();\n\t\tString table = MIdentity.TABLE;\n String[] columns = new String[] { \"COUNT(\" + MIdentity.COL_ID + \")\" };\n String selection = MIdentity.COL_WHITELISTED + \"=0 AND \" + MIdentity.COL_OWNED + \" = 0\" + \" AND \" + MIdentity.COL_BLOCKED +\"=0\" +\n \t\t \" AND \" + MIdentity.COL_TYPE +\"<>\" + Authority.Local.ordinal() + \" AND \"\n\t\t\t+ \"(\" \n \t\t\t+ MIdentity.TABLE + \".\" + MIdentity.COL_MUSUBI_NAME + \" IS NOT NULL OR \" \n\t\t\t\t+ MIdentity.TABLE + \".\" + MIdentity.COL_NAME + \" IS NOT NULL OR \"\n\t\t\t\t+ MIdentity.TABLE + \".\" + MIdentity.COL_THUMBNAIL + \" IS NOT NULL OR \"\n\t\t\t\t+ MIdentity.TABLE + \".\" + MIdentity.COL_MUSUBI_THUMBNAIL + \" IS NOT NULL OR \"\n\t\t\t\t+ MIdentity.TABLE + \".\" + MIdentity.COL_PRINCIPAL + \" IS NOT NULL\" \n\t\t\t+ \")\";\n\n String[] selectionArgs = null;\n String groupBy = null, having = null;\n String orderBy = null;\n Cursor c = db.query(\n table, columns, selection, selectionArgs, groupBy, having, orderBy);\n\t\ttry {\n\t\t\twhile(c.moveToNext()) {\n\t\t\t\treturn c.getInt(0);\n\t\t\t}\n\t\t\treturn 0;\n\t\t} finally {\n\t\t\tc.close();\n\t\t}\n\t}", "title": "" }, { "docid": "e8f77dda139f90c60b9b32e1b05f13e9", "score": "0.46905687", "text": "public static int StaffCount(SetupPlayerNames sPlayer ) {\n int Player = sPlayer.ordinal();\n int NumVacantSlot = 0;\n int StaffCount = 0;\n\n for ( int ibs = 0; ibs < Constants.MaxCitySiteSlots; ibs++){\n if ( BuildingInCitySlot[Player][ibs].Occupied ) {\n NumVacantSlot = 0;\n if ( BuildingInCitySlot[Player][ibs].Building == BuildingIdx.NullBldgIdx ) {}\n else\n StaffCount = StaffCount + BuildingInCitySlot[Player][ibs].NumColonists;\n }\n else {\n NumVacantSlot++;\n if ( NumVacantSlot > 1 )\n return StaffCount;\n };\n };\n return StaffCount;\n }", "title": "" }, { "docid": "531d34a75196387bdbb226110dc3e72f", "score": "0.4681874", "text": "private static long constructPostOffice(long totalPeople) {\n int answer = 0;\n long accumulate = 0;\n\n while(!pq.isEmpty()) {\n Node<Integer, Long> current = pq.poll();\n\n if (accumulate < totalPeople - accumulate) answer = current.getNode();\n accumulate += current.getCost();\n }\n\n return answer;\n }", "title": "" }, { "docid": "85cd82d4b02ce2cf2ed935af844d71aa", "score": "0.467668", "text": "public void US14(List<Person> people, List<Family> families) {\n for (Family family : families) {\n if (family.children.size() > 5) {\n int count = 0;\n for (int i = 0; i < family.children.size() - 1; i++) {\n for (int j = i + 1; j < family.children.size(); j++) {\n if (family.children.get(i).birt_year.equals(family.children.get(j).birt_year)\n && family.children.get(i).birt_month.equals(family.children.get(j).birt_month)\n && family.children.get(i).birt_day.equals(family.children.get(j).birt_day)) {\n count++;\n\n }\n }\n }\n if (count > 5) {\n System.out.println(\"ERROR: Family: US14: family ID \" + family.id_fam + \" has more than five sibling born at the same time.\");\n }\n }\n }\n }", "title": "" }, { "docid": "9a056be898000e76ca3c08b4c111015d", "score": "0.46749786", "text": "boolean hasProduceCount();", "title": "" }, { "docid": "193b18c2fb078a66903c3d8bc8d5318b", "score": "0.46747604", "text": "public void setInfected(boolean infected){\r\n\t\t\r\n\t\tthis.infected = infected;\r\n\t}", "title": "" }, { "docid": "d9b54fbffd57234c6312ecc449e95a76", "score": "0.46717495", "text": "private void test() {\r\n\t\tfor (int i = 0; i < emailSpam.size(); i++) {\r\n\t\t\tint count = 0;\r\n\t\t\tfor (int j = 0; j < emailSpam.get(i).getRulesPerMail().size(); j++) {\r\n\t\t\t\tfor (int j2 = 0; j2 < rules.size(); j2++) {\r\n\t\t\t\t\tif (emailSpam.get(i).getRulesPerMail().get(j).toString().equals(rules.get(j2).getName())) {\r\n\t\t\t\t\t\tcount += rules.get(j2).getWeight();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count < THRESHOLD)\r\n\t\t\t\tfn++;\r\n\t\t}\r\n\t\tfor (int i = 0; i < emailHam.size(); i++) {\r\n\t\t\tint count = 0;\r\n\t\t\tfor (int j = 0; j < emailHam.get(i).getRulesPerMail().size(); j++) {\r\n\t\t\t\tfor (int j2 = 0; j2 < rules.size(); j2++) {\r\n\t\t\t\t\tif (emailHam.get(i).getRulesPerMail().get(j).toString().equals(rules.get(j2).getName())) {\r\n\t\t\t\t\t\tcount += rules.get(j2).getWeight();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (count > THRESHOLD)\r\n\t\t\t\tfp++;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dc4d3c749c308a140fa348ecef79a286", "score": "0.46698874", "text": "public void countNodes() {\n try {\n nodesCount = selectedEJB().countNodes(repositoryName);\n } catch (Exception e) {\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(e.getMessage()));\n }\n }", "title": "" }, { "docid": "5e120fe960c9fdd24a78f0b192357aa7", "score": "0.4667012", "text": "private void repcheck(){\n\t\tassert(this.visitCounts.size() == numPicked);\n\t\tassert(this.nodes.size() == numPicked);\n\t}", "title": "" }, { "docid": "aa09abd9b319c34fab50abd095e42da2", "score": "0.46537435", "text": "public static void main(String[] args) {\n\t\tTreeNode root = new TreeNode(3);\r\n\t\troot.left =new TreeNode(1);\r\n\t\troot.right =new TreeNode(4);\r\n\t\troot.right.left=new TreeNode(1);\r\n\t\troot.right.right=new TreeNode(5);\r\n\t\troot.left.left =new TreeNode(3);\r\n\t\tint ans=goodNodes(root);\r\n\t\tSystem.out.println(ans);\r\n\r\n\t\t\r\n\t}", "title": "" }, { "docid": "07188ef6b477773931454ebc2e3e17fc", "score": "0.46534717", "text": "int getInitialUnknownsCount();", "title": "" }, { "docid": "f2dff2e9ed4fac124557e7b79813671d", "score": "0.46498966", "text": "private int estimateOthers() {\r\n\r\n int result = (int) (population_limit * .04); //hard_code random % to .04 (PER experimental results)\r\n\r\n\t\t//probability of new mutant from old genotype = P(new) = 1 - ((1 - mutation_rate)^sites.length)\r\n //expected mutants is thus P(new) * Number of organisms to which mutate() is applied\r\n double p_newMutant = 1 - Math.pow(1 - mutation_rate, sites.length);\r\n\r\n result += (int) (p_newMutant * population_limit / 2.0);\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "fe9bd5b79ceafaaaca3ee1aacb3ca5cb", "score": "0.46403885", "text": "public int chkNoreq()\n\t{\n\t\tint i = 9999 / hzListTemplateDSData.getBytes().length;\n\t\tsetNoreq(i);\n\t\treturn i;\n\t}", "title": "" }, { "docid": "c0b3a0927bfb994972589d416427679c", "score": "0.46343458", "text": "private void verficationResult(int count) {\n this.verficationResult = count;\n }", "title": "" }, { "docid": "6d9b4200a1e19a15f3154e5e5592545e", "score": "0.46325174", "text": "public static int nonzombieCount(double [][]entities) {\n int nonZombie = 0;\n for (int i = 0; i < entities.length; ++i) {\n if (entities[i][TYPE] == NONZOMBIE) {\n nonZombie = nonZombie + 1;\n }\n }\n return nonZombie;\n }", "title": "" }, { "docid": "a19cbdf553ca60f0946e9ed32771e9e1", "score": "0.4630912", "text": "public int performSimulationStep()\n {\n ArrayList<GridLocation> unsatisfied = findUnsatisfiedAgents();\n for (GridLocation square : unsatisfied)\n {\n Color color = grid[square.getRow()][square.getCol()].getColor();\n GridLocation location = findVacantLocation();\n grid[location.getRow()][location.getCol()].setColor(color);\n grid[square.getRow()][square.getCol()].setColor(Color.WHITE);\n } \n // update satisfaction percentage\n satisfiedPercent = (numCells - unsatisfied.size()) / (double) numCells\n * 100;\n \n return unsatisfied.size();\n }", "title": "" }, { "docid": "80fd7d36c8fe2d4b134985d47bfaa4e6", "score": "0.4618914", "text": "boolean hasEntriesCount();", "title": "" }, { "docid": "6f3f9a036776b65174351973f65db8b3", "score": "0.4617502", "text": "public int computeNewlyDeceased(final int infected) {\n return toIntExact(round(fatalityRate * (double) infected));\n }", "title": "" }, { "docid": "9e8d05e1c901a0865f0c0310c4689bd0", "score": "0.46140066", "text": "public Map<String, Integer> Mine(double minSupCount, double confidence) {\n\t\tSystem.out.print(\"mining!\\n\");\n\n\t\t//first find length 1 candidates\n\t\tMap<String, Integer> supCounts = MineCandidates(null, minSupCount, 1);\t\t\n\t\tMap<String, Integer> allCandidates = supCounts;\n\t\tSystem.out.print(\"done mining all frequent departments\\n\");\n//\t\tint candidateNumber = 2;\n//\t\t\n//\t\t//find length x candidates where x > 1\n//\t\twhile(!supCounts.isEmpty()){\n//\t\t\tArrayList<ArrayList<String>> prevCandidates = new ArrayList<ArrayList<String>>();\n//\t\t\tfor(ArrayList<String> type : supCounts.keySet()){\n//\t\t\t\tprevCandidates.add(type);\n//\t\t\t}\n//\t\t\tsupCounts = MineCandidates(prevCandidates, minSupCount, candidateNumber);\n//\t\t\tallCandidates.putAll(supCounts);\n//\t\t\tcandidateNumber++;\n//\t\t}\n\t\t\n\t\t\n\t\treturn allCandidates;\n\t\t\n\t}", "title": "" }, { "docid": "0e29b34e3d43c8087386cbbc3ef01f8a", "score": "0.46113163", "text": "public int numNonZeros() {\n int count=0; // Create a counter\n for(int i=0;i<numRows();i++){ // Iterate through the rows of entries\n count+=entries.get(i).size(); // Add size of the entries row to the counter\n }\n return count; // return the counter\n }", "title": "" }, { "docid": "1c5b07c519878eb66d207884909468df", "score": "0.4608355", "text": "private static int independentOpinion(int maxDaysToChangeView, int peopleCount, DataContainer dataContainer) {\n List<Person> people = generatePeople(peopleCount);\n int peopleWithViewA = countPeopleWithViewA(people);\n int passedDays = 0;\n while((peopleWithViewA < peopleCount)) {\n for(Person p : people) {\n if(getViewASpontaneous()) p.manifestViewA();\n }\n passedDays++;\n if(passedDays >= maxDaysToChangeView) {\n System.err.println(\"Max days reached to change view\");\n return passedDays;\n }\n peopleWithViewA = countPeopleWithViewA(people);\n dataContainer.addViewCountOnDay(passedDays-1,peopleWithViewA);\n }\n dataContainer.addInt(passedDays);\n return passedDays;\n }", "title": "" }, { "docid": "3024fa763aeefa88dd0260cb11a12804", "score": "0.46038777", "text": "private void result(int res) {\n int r=res;\n if(r==0) {\n if(SensorDataProcessing.sum>10000) {\n System.out.println(\"State not detected from add\");\n }\n else {\n System.out.println(\"State detected from add\");\n }\n\n if(SensorDataProcessing.avg>100) {\n System.out.println(\"State not detected from avg\");\n }\n else {\n System.out.println(\"State detected from avg\");\n }\n }\n else {\n if(SensorDataProcessing.mul>100000) {\n System.out.println(\"State not detected from mul\");\n }\n else {\n System.out.println(\"State detected from mul\");\n }\n }\n }", "title": "" }, { "docid": "0b74ca87b3550d6dfe36d7b9dca77b7b", "score": "0.4600173", "text": "@Test\n public void myNeighboursList_shouldNotBeEmpty() {\n // First scroll to the position that needs to be matched and click on it.\n onView(allOf(withId(this.resId), isDisplayed()))\n .check(matches(hasMinimumChildCount(1)));\n }", "title": "" }, { "docid": "129e0a4949a8d9d23948b3da8024aa44", "score": "0.4599685", "text": "public ArrayList<Result> inferEnumerate(ArrayList<String> nodeEvidence){\n\t\t//Recupero nodi da inferire\n\t\tArrayList<String> nodesToInfer = new ArrayList<String>(Arrays.asList(wrapper.getNodes()));//Inizialmente tutti\t\n\t\tfor(int i=0; i<nodeEvidence.size(); i++){\n\t\t\tif(nodesToInfer.contains(nodeEvidence.get(i))){\n\t\t\t\tnodesToInfer.remove(nodeEvidence.get(i));\n\t\t\t}\n\t\t}\n\t\tArrayList<Evidence> evidenceConfigurations = constructEvidenceConfigurations(nodeEvidence);\n\t\tthis.evidencesConfigurations = evidenceConfigurations;\n\t\t/*\n\t\t * A ogni nodo NON di evidenza viene applicata la procedura di infrenza una\n\t\t * volta per ogni configurazione di evidenza presente\n\t\t */\n\t\tArrayList<Result> toReturn = new ArrayList<Result>();\n\t\tfor(int i=0; i<nodesToInfer.size(); i++){ //Ogni nodo non di evidenza\n\t\t\tfor(int j=0; j<evidenceConfigurations.size(); j++){\n\t\t\t\ttry {\n\t\t\t\t\twrapper.inference(nodesToInfer.get(i), \n\t\t\t\t\t\t\tevidenceConfigurations.get(j).parseEvidence(), InfAlgorithm.EXACT);\n\t\t\t\t} catch (JayesException 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\ttoReturn.add(new Result(nodesToInfer.get(i),\n\t\t\t\t\t\twrapper.getResults().getValues(),\n\t\t\t\t\t\twrapper.getResults().getOutcomes(),\n\t\t\t\t\t\tevidenceConfigurations.get(j)));\n\t\t\t}\n\t\t}\n\t\t\n\t\tprintInferenceResult(toReturn);\n\t\t//return constructEvidenceConfigurations(nodeEvidence);\n\t\treturn toReturn;\n\t}", "title": "" }, { "docid": "cc5c50f09d425864a990c043154ac079", "score": "0.45912012", "text": "public boolean tryToInfect(int probability) {\n return probability < getChancesToBecomeInfected() && !isInfected();\n }", "title": "" }, { "docid": "0f0f1b65eae5d78606127b9cf821cc4f", "score": "0.4590884", "text": "public double healthy_prob_wrt_neighbors(int id, int pos, double [] infect_prob_people) \n\t{\n\t\t int in = num_infect_node[pos]; //total number of people infected at this node\n\n\t\t\tdouble healthy_prob = 1.0;\n\t\t\t\n\t\t\tif( curr_state_people[id] == 1 )\n\t\t\t\tin = in-1;\n\t\t\t\n\t\t\tfor(int j=0; j<in; j++)\n\t\t\t{\t\t\t\n\t\t\t\thealthy_prob = healthy_prob *( 1.0 - beta);\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\treturn healthy_prob;\t\t\n\t\t\n\t}", "title": "" }, { "docid": "28c8a4bb518208fd66fbf700bd0ce96a", "score": "0.458716", "text": "public void search(long deadLine){\n\t\t//Perform a check to see if we have time. If we are out of time and a solution has not been written\n\t\t//write some stats to file\n\t\tif(System.currentTimeMillis()>=deadLine){\n\t\t\tif(!oneSolFound){\n\t\t\t\tStringBuilder tempStr = new StringBuilder();\n\t\t\t\ttempStr.append(\"//Attributes: incomplete, utility=null, \" + assigned.size() + \"/\" + Person.numberOfPeople() + \" people assgined.\\n\");\n\t\t\t\ttempStr.append(\"//searched \" + totalNodes + \" nodes, including \" + totalLeaves + \" solutions found\");\n\t\t\t\tSisyphusI.writeOutputFile(tempStr.toString());\n\t\t\t}\n\t\t\tSystem.out.println(\"Time expired! Total Nodes Searched \" + totalNodes + \" total leaves/solutions: \" +totalLeaves);\n\t\t\tSystem.exit(0);\n\t\t\t\n\t\t}\n\t\t//If this is the root then clear all of the rooms and their occupant lists\n\t\t//Also clears the people and their homeroom.\n\t\tif(this.isRoot()){\n\t\t\tfor(Room currRoom: availableRooms){\n\t\t\t\tif(currRoom!=thisNodesRoom){\n\t\t\t\t\tcurrRoom.getOccupants().clear();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(Person unassignedPerson: unassigned){\n\t\t\t\tif(unassignedPerson!=thisNodesPerson){\n\t\t\t\t\tunassignedPerson.clearRoomAssignment();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//ONCE a solution is found\n\t\tif(this.isLeaf()){\n\t\t\ttotalLeaves++;\n\t\t\t//save it if it is the best one\n\t\t\tif(this.f_leaf_value>SisyphusI.getCurrentPenaltyScore()){\n\t\t\t\tSystem.out.println(\"saving\");\n\t\t\t\toneSolFound = true;\n\t\t\t\tSisyphusI.setAssignment(this.assigned, this.f_leaf_value);\n\t\t\t\tSisyphusI.writeOutputFile(SisyphusI.prepareWriteString(totalNodes, totalLeaves));\n\t\t\t}\n\t\t\t//figure out how far to the tree to return, at the moment it is 90% of the way up\n\t\t\tint returnToIndex = (int)Math.round(this.getLevel()*0.1);\n\t\t\tONode returnTo =(ONode) this.getPath()[returnToIndex];\n\t\t\treturnTo.checked=false;\n\t\t\t//set the parent and grandparent of the solution node as unchecked so we can look in the proximity for a better solution\n\t\t\tONode parentNode = (ONode) this.getParent();\n\t\t\tif(parentNode.parent!=null){\n\t\t\t\tONode grandParentNode = (ONode) parentNode.getParent();\n\t\t\t\tgrandParentNode.checked=false;\n\t\t\t}\n\t\t\tthis.checked = true;\n\t\t\tparentNode.checked=false;\n\t\t\t\n\t\t}else{\n\t\t\t//if there are no kids and it is set to unchecked then expand it\n\t\t\tif(this.getChildCount()==0 && checked == false){\n\t\t\t\t//if we are running on exhastive then do not set every node on the way down as checked\n\t\t\t\tif(!checkAllNodes){\n\t\t\t\t\tthis.checked = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.checked = false;\n\t\t\t\t}\n\t\t\t\t//expand the current node and add children to it\n\t\t\t\texpandNode();\n\t\t\t}\n\t\t\t//use f-select to pick the best child to recursively call search on\n\t\t\tONode bestChild = SearchControl.f_select(this.children);\n\t\t\tbestChild.getNodesPerson().addRoomAssignment(bestChild.getNodesRoom());\n\t\t\tbestChild.search(deadLine);\n\t\t}\n\t\t//This code is for when we are climbing back up, stop at each node that has kids and is unchecked and recursively call search on it\n\t\t//if there are kids and it is unchecked then search its kids remove the && checked == false to check everynode.\n\t\tif(this.getChildCount()>0 && checked == false){\n\t\t\tthis.search(deadLine);\n\t\t} else if(!this.isRoot()) {\n\t\t\tthis.removeFromParent();\n\t\t\t//Remove the room assignment as we climb up to avoid duplicate assignments\n\t\t\tthisNodesRoom.getOccupants().remove(thisNodesPerson.getName());\n\t\t\tthisNodesPerson.clearRoomAssignment();\n\t\t}\n\t}", "title": "" }, { "docid": "38087b68091ed3286d80004d29aaf7be", "score": "0.4586746", "text": "int getInvalidEsrsCount();", "title": "" }, { "docid": "6585043a82f015587ba0c559bb2ccb5d", "score": "0.45848343", "text": "public int nbVoisins(int t) {\n List<Node> listHeads = new ArrayList<>();\n NodeList nodeList = int2Node[t].succ();\n int counter = 0;\n while(nodeList != null){\n listHeads.add(nodeList.head);\n nodeList = nodeList.tail;\n }\n for(int i = 0 ; i < int2Node.length; i++){\n for(Node e : listHeads){\n if(e == int2Node[i]){\n if(!enleves.isMember(i)){\n counter++;\n }\n }\n }\n }\n return counter;\n }", "title": "" }, { "docid": "9c98b81d2fb7b3373ac76ec12c0092dd", "score": "0.45824477", "text": "int getFive2FiveMatchMemberInfoCount();", "title": "" }, { "docid": "cf10ef1295cbedd378a60294e48adb18", "score": "0.4578408", "text": "public long getMissCount();", "title": "" }, { "docid": "0ef8c46bb8512cf0f45963e1237c9f2a", "score": "0.45680997", "text": "@Override\n\tpublic boolean analyse1(int count) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "45523d5b55a94b73a7e002782616e4a3", "score": "0.45604965", "text": "public void Reveal(int y, int x){\n if ((game[y][x].getState() == 0 || game[y][x].getState() == 3) && !game[y][x].isMine()) {\n nRemainingBoxes --;\n game[y][x].setState(1); //on indique que la case est découverte\n if (game[y][x].getNeighbours() == 0) { // Si le nombre de mines autour est nul, on découvre les cases autour\n partialReveal1(x,y-2);\n partialReveal1(x - 1 + (y%2), y-1);\n partialReveal1(x + (y%2),y-1);\n partialReveal1(x - 1 + (y%2), y+1);\n partialReveal1(x + (y%2), y+1);\n partialReveal1(x, y+2);\n }\n }\n\n //Si on est au dessus d'un chiffre\n else if (game[y][x].getState() == 1 && game[y][x].getNeighbours() != 0) {\n int n = 0; //on compte le nombre de drapeaux placés\n if (partialReveal2(x, y-2)) n++;\n if (partialReveal2(x - 1 + (y%2), y-1)) n++;\n if (partialReveal2(x + (y%2),y-1)) n++;\n if (partialReveal2(x - 1 + (y%2), y+1)) n++;\n if (partialReveal2(x + (y%2), y+1)) n++;\n if (partialReveal2(x, y+2)) n++;\n\n if (n == game[y][x].getNeighbours()) { //si il y en a autant que le nombre de mines autour, on découvre les 8 cases autour par un appel récursif de decouvre(int, int)\n if(partialReveal3(x, y-2)) Reveal(y-2, x);\n if(partialReveal3(x - 1 + (y%2), y-1)) Reveal(y-1, x - 1 + (y%2));\n if(partialReveal3(x + (y%2),y-1)) Reveal(y-1, x + (y%2));\n if(partialReveal3(x - 1 + (y%2), y+1)) Reveal(y+1, x - 1 + (y%2));\n if(partialReveal3(x + (y%2), y+1)) Reveal(y+1, x + (y%2));\n if(partialReveal3(x, y+2)) Reveal(y+2, x);\n }\n }\n\n //Si on clique sur une mine\n else if ((game[y][x].getState() == 0 || game[y][x].getState() == 3) && game[y][x].isMine()) {\n game[y][x].setState(4); //boum\n isLost = true;\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n game[i][j].setBlocked(true);\n if (!(y == i && x == j) && mines.get(i * width + j) == 1 && game[i][j].getState() != 2)\n //si il ya une mine, (recherche par rapport à la chaîne mines\n game[i][j].setState(5); //on l' affiche\n }\n }\n //on affiche les erreurs\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n if (game[i][j].getState() == 2 && !game[i][j].isMine())\n game[i][j].setState(6);\n }\n }\n }\n //Si on gagne, c'est à dire le nombre de cases restantes est égal au nombre de mines restantes\n if (nRemainingBoxes == nMines && !game[0][0].isBlocked()) {\n nRemainingMines = 0;\n isWon = true;\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n game[i][j].setBlocked(true);\n if (game[i][j].isMine()) game[i][j].setState(2); //om met des drapeaux partout!!\n }\n }\n }\n }", "title": "" }, { "docid": "f503773f3db62aab05d2ffc487d61f98", "score": "0.4555247", "text": "private int getStatsForInflection(String inflection){\n if(inflections.containsKey(inflection)){\n int total = inflections.get(inflection).correct + inflections.get(inflection).incorrect;\n return (int) (((float)inflections.get(inflection).correct) / ((float)total) * 100);\n }else\n return 0;\n }", "title": "" }, { "docid": "9c7460f84d463c7e39b8fa23febcbc8e", "score": "0.45545274", "text": "private int nodeCount(BinaryTreeNode<T> t) {\n\t\tSystem.out.println(\"To be done later.\");\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1e6ea24e5260854b804acf80ae002bc8", "score": "0.45535892", "text": "public void computeMarginals() {\n \n int i, j, k, nv, pos;\n //Vector leaves, marginal;\n Vector marginal;\n NodeList variables;\n Relation r1, r2;\n PotentialTree pot;\n PotentialTable table;\n NodeJoinTree temp;\n NodeList l;\n FiniteStates v;\n NeighbourTree nt;\n int posResult;\n \n nv = interest.size();\n results = new Vector(); \n posResult = 0;\n\n for (i=0 ; i<nv ; i++) {\n v = (FiniteStates)interest.elementAt(i);\n j = 0;\n temp = (NodeJoinTree)singleCliques.get(v);\n if (temp != null) {\n r1 = temp.getNodeRelation();\n pot = (PotentialTree)r1.getValues();\n \n for (k=0 ; k<temp.getNeighbourList().size() ; k++) {\n\tnt = temp.getNeighbourList().elementAt(k);\n\tr2 = nt.getMessage();\n\tpot = (PotentialTree)pot.combine((PotentialTree)r2.getOtherValues());\n pot = transformPotential(pot);\n }\n marginal = new Vector();\n marginal.addElement(v);\n pot = (PotentialTree)(pot.marginalizePotential(marginal));\n pot = transformPotential(pot);\n pot.normalize();\n results.addElement(pot);\n \n positions.put(v,new Integer(posResult));\n posResult++;\n }\n }\n}", "title": "" }, { "docid": "be26e0d7ee37b10b50c294cd2f66062e", "score": "0.45514533", "text": "public static void addMineCount() {\n\t\tTile[][] tiles = controller.getTiles();\n\n\t\tfor (int y = 0; y < tiles.length; y++) {\n\t\t\tfor (int x = 0; x < tiles[y].length; x++) {\n\t\t\t\tif (!tiles[y][x].hasMine()) {\n\n\t\t\t\t\tint count = 0;\n\n\t\t\t\t\tList<Tile> neighbours = tiles[y][x].getNeighbours();\n\t\t\t\t\tfor (Tile neighbour : neighbours) {\n\t\t\t\t\t\tif (neighbour.hasMine())\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\ttiles[y][x].setMinesNear(count);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a762477f780fc72b9704c00185d35e24", "score": "0.45499524", "text": "int getExpectedResultCount();", "title": "" }, { "docid": "c82437151631bc10083b36976b96581e", "score": "0.45497558", "text": "boolean hasEresult();", "title": "" }, { "docid": "c82437151631bc10083b36976b96581e", "score": "0.45497558", "text": "boolean hasEresult();", "title": "" }, { "docid": "c82437151631bc10083b36976b96581e", "score": "0.45497558", "text": "boolean hasEresult();", "title": "" }, { "docid": "c82437151631bc10083b36976b96581e", "score": "0.45497558", "text": "boolean hasEresult();", "title": "" }, { "docid": "c82437151631bc10083b36976b96581e", "score": "0.45497558", "text": "boolean hasEresult();", "title": "" }, { "docid": "c82437151631bc10083b36976b96581e", "score": "0.45497558", "text": "boolean hasEresult();", "title": "" }, { "docid": "c82437151631bc10083b36976b96581e", "score": "0.45497558", "text": "boolean hasEresult();", "title": "" } ]
1e64474d43a2babe9bdd21852a2b76f6
moving the cursor with animation
[ { "docid": "453dc11acf93af9d8d1968b5d0c38136", "score": "0.65568817", "text": "public static void animatedCursor(float x1, float y1, float x2, float y2)\n\t{\n\t\tPath chalkPath = null;\n\t\t\n\t\tchalkPath = new Path(2)\n\t\t.to(x1, y1).to(x2, y2);\n\t\t\n\t\t\n\t\tMainActivity.cursor.registerEntityModifier(new PathModifier((float)2.0, chalkPath, null, new IPathModifierListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onPathStarted(final PathModifier pPathModifier, final IEntity pEntity) \n\t\t\t{\n\t\t\t\tMainActivity.monkeyTutorialStart = 2;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onPathWaypointStarted(final PathModifier pPathModifier, final IEntity pEntity, final int pWaypointIndex)\n\t\t\t{\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onPathWaypointFinished(final PathModifier pPathModifier, final IEntity pEntity, final int pWaypointIndex) \n\t\t\t{\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onPathFinished(final PathModifier pPathModifier, final IEntity pEntity) \n\t\t\t{\n\t\t\t\t//play sound\n\t\t\t\tMainActivity.audioPlay = true;\n\t\t\t\tNumberSprites.playAudio(R.raw.one);\n\t\t\t\t\n\t\t\t\t//after moving the cursor/fish with removing the number sprites\n\t\t\t\tMainActivity.mScene.registerUpdateHandler(new TimerHandler((float) 3, new ITimerCallback() \n\t\t\t\t{\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onTimePassed(TimerHandler pTimerHandler)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tMainActivity.monkeyTutorialStart = 0;\n\t\t\t\t\t\t\t\tMainActivity.mScene.detachChild(MainActivity.cursor);\n\t\t\t\t\t\t\t\tMainActivity.mScene.detachChild(MainActivity.numberSprites[4]);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tMainActivity.spriteCounter = 1;\n\t\t\t\t\t\t\t\t//remove the draw\n\t\t\t\t\t\t\t\tremoveTutorialDraw(2);\n\t\t\t\t\t\t\t}\n\t\t\t\t}));\n\t\t\n\t\t\t}\n\t\t}));\n\t}", "title": "" } ]
[ { "docid": "46f863f2879fec01e7404e72c3f20fa4", "score": "0.6501239", "text": "public void setCursor(int x, int y){\n\t}", "title": "" }, { "docid": "47ce1a35f6348ebd166a9b8c4ff21190", "score": "0.64762414", "text": "void fireMovedCursor(C point);", "title": "" }, { "docid": "0559257ac4c74efe44e5507888f9f3b5", "score": "0.6469853", "text": "public void moveCursorDown() {\r\n//\t\ttry {\r\n//\t\t\tPoint pos = new Point(ProjectCompendium.APP._x, ProjectCompendium.APP._y);\r\n//\t\t\tint newY = pos.y+FormatProperties.cursorMovementDistance;\r\n//\t\t\tint newX = pos.x;\r\n//\t\t\tSwingUtilities.convertPointFromScreen(pos, oViewPane);\r\n//\t\t\tJViewport viewport = oViewPane.getViewFrame().getViewport();\r\n//\t\t\tRectangle rect = viewport.getViewRect();\r\n//\r\n//\t\t\tif (!rect.contains(pos.x, pos.y+FormatProperties.cursorMovementDistance, 1, 1)) {\r\n//\t\t\t\tPoint point = viewport.getViewPosition();\r\n//\t\t\t\tviewport.setViewPosition(new Point(point.x, point.y+FormatProperties.cursorMovementDistance));\r\n//\t\t\t\t_x = pos.x;\r\n//\t\t\t\t_y = pos.y+FormatProperties.cursorMovementDistance;\r\n//\t\t\t}\r\n//\t\t\telse {\r\n//\t\t\t\tRobot rob = new Robot();\r\n//\t\t\t\trob.mouseMove(newX, newY);\t\t\t\r\n//\t\t\t\tupdateMousePosition(new Point(pos.x, pos.y+FormatProperties.cursorMovementDistance));\t\t\t\t\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\tcatch(AWTException ex) {}\r\n\t}", "title": "" }, { "docid": "7e46752774b5be01f81b598f90cd6aab", "score": "0.64593637", "text": "public void cambiarCursor(int cursor) {\n this.setCursor(cursor);\n }", "title": "" }, { "docid": "8c6c6a5c820397486baa38d53ecaa63b", "score": "0.64145267", "text": "final void doSetMoveCursor() {\n\t\tsetCursor(MOVE_CURSOR);\n\t}", "title": "" }, { "docid": "cbac794570f86ea5031de5b9e2933b21", "score": "0.63990295", "text": "public void moveCursorLeft() {\r\n//\t\ttry {\r\n//\t\t\tPoint pos = new Point(ProjectCompendium.APP._x, ProjectCompendium.APP._y);\r\n//\t\t\tint newX = pos.x-FormatProperties.cursorMovementDistance;\r\n//\t\t\tint newY = pos.y;\r\n//\r\n//\t\t\tSwingUtilities.convertPointFromScreen(pos, oViewPane);\r\n//\r\n//\t\t\tif (pos.x-FormatProperties.cursorMovementDistance >= 0) {\r\n//\r\n//\t\t\t\tJViewport viewport = oViewPane.getViewFrame().getViewport();\r\n//\t\t\t\tRectangle rect = viewport.getViewRect();\r\n//\r\n//\t\t\t\tif (!rect.contains(pos.x-FormatProperties.cursorMovementDistance, pos.y, 1, 1)) {\r\n//\t\t\t\t\tPoint point = viewport.getViewPosition();\r\n//\t\t\t\t\tviewport.setViewPosition(new Point(point.x-FormatProperties.cursorMovementDistance, point.y));\r\n//\t\t\t\t\t_x = pos.x-FormatProperties.cursorMovementDistance;\r\n//\t\t\t\t\t_y = pos.y;\r\n//\t\t\t\t}\r\n//\t\t\t\telse {\r\n//\t\t\t\t\tRobot rob = new Robot();\r\n//\t\t\t\t\trob.mouseMove(newX, newY);\r\n//\t\t\t\t\tupdateMousePosition(new Point(pos.x-FormatProperties.cursorMovementDistance, pos.y));\t\t\t\t\t\t\t\t\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\tcatch(AWTException ex) {}\r\n\t}", "title": "" }, { "docid": "edc968695e2c1caf3b00f08ed9d9d006", "score": "0.62841094", "text": "public void moveCursorRight() {\r\n//\t\ttry {\r\n//\t\t\tPoint pos = new Point(ProjectCompendium.APP._x, ProjectCompendium.APP._y);\r\n//\t\t\tint oldX = pos.x;\r\n//\t\t\tint newY= pos.y;\r\n//\t\t\tint newX = pos.x+FormatProperties.cursorMovementDistance;\r\n//\r\n//\t\t\tSwingUtilities.convertPointFromScreen(pos, oViewPane);\r\n//\r\n//\t\t\tJViewport viewport = oViewPane.getViewFrame().getViewport();\r\n//\t\t\tRectangle rect = viewport.getViewRect();\r\n//\t\t\tif (!rect.contains(pos.x+FormatProperties.cursorMovementDistance, pos.y, 1, 1)) {\r\n//\t\t\t\tPoint point = viewport.getViewPosition();\r\n//\t\t\t\tviewport.setViewPosition(new Point(point.x+FormatProperties.cursorMovementDistance, point.y));\r\n//\t\t\t\t_x = pos.x+FormatProperties.cursorMovementDistance;\r\n//\t\t\t\t_y = pos.y;\r\n//\t\t\t}\r\n//\t\t\telse {\r\n//\t\t\t\tRobot rob = new Robot();\r\n//\t\t\t\trob.mouseMove(newX, newY);\t\t\t\t\r\n//\t\t\t\tupdateMousePosition(new Point(pos.x+FormatProperties.cursorMovementDistance, pos.y));\t\t\t\t\t\t\t\t\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\tcatch(AWTException ex) {\r\n//\t\t\tex.printStackTrace();\r\n//\t\t}\r\n\t}", "title": "" }, { "docid": "df79297281beed73bef973de323d310c", "score": "0.6280261", "text": "void setCursor(char x, char y)\n {\n cursorX=x;\n cursorY=y;\n }", "title": "" }, { "docid": "c043b33575aad527fc66437ccb18a542", "score": "0.6170909", "text": "public void move(){\n\t\txPos+=Math.cos(movementAngle)*2;\n\t\tyPos+=Math.sin(movementAngle)*2;\n\t\trefreshBounds();\n\t}", "title": "" }, { "docid": "3615db565080bc5c5cac8bca1658bcf8", "score": "0.61656207", "text": "public void moveCursorUp() {\r\n//\t\ttry {\r\n//\t\t\tPoint pos = new Point(ProjectCompendium.APP._x, ProjectCompendium.APP._y);\r\n//\t\t\tint newY = pos.y-FormatProperties.cursorMovementDistance;\r\n//\t\t\tint newX = pos.x;\r\n//\t\t\tSwingUtilities.convertPointFromScreen(pos, oViewPane);\r\n//\r\n//\t\t\tif (pos.y-FormatProperties.cursorMovementDistance >= 0) {\r\n//\t\t\t\tJViewport viewport = oViewPane.getViewFrame().getViewport();\r\n//\t\t\t\tRectangle rect = viewport.getViewRect();\r\n//\r\n//\t\t\t\tif (!rect.contains(pos.x, pos.y-FormatProperties.cursorMovementDistance, 1, 1)) {\r\n//\t\t\t\t\tPoint point = viewport.getViewPosition();\r\n//\t\t\t\t\tviewport.setViewPosition(new Point(point.x, point.y-FormatProperties.cursorMovementDistance));\r\n//\t\t\t\t\t_x = pos.x;\r\n//\t\t\t\t\t_y = pos.y-FormatProperties.cursorMovementDistance;\r\n//\t\t\t\t}\r\n//\t\t\t\telse {\r\n//\t\t\t\t\tRobot rob = new Robot();\r\n//\t\t\t\t\trob.mouseMove(newX, newY);\r\n//\t\t\t\t\tupdateMousePosition(new Point(pos.x, pos.y-FormatProperties.cursorMovementDistance));\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\tcatch(AWTException ex) {}\r\n\t}", "title": "" }, { "docid": "20130461ec47c602c1d5cc99b5e90c23", "score": "0.6142812", "text": "public void moveCursor(int X_Position, int Y_Position) throws Exception \n\t{\n\t\tre.mouseMove(X_Position, Y_Position);\n\t}", "title": "" }, { "docid": "c14ef848be9636e3524e706b26b1bbb3", "score": "0.61332273", "text": "public void move() {\n\t\tmove(0, 0);\n\t}", "title": "" }, { "docid": "36d71e08f4ef223bea8e816fb35f12a1", "score": "0.6112031", "text": "protected void moveCaret(MouseEvent e)\n {\n Point pt = new Point(e.getX(), e.getY());\n Position.Bias[] biasRet = new Position.Bias[1];\n int pos = component.getUI().viewToModel(component, pt, biasRet);\n if(biasRet[0] == null)\n biasRet[0] = Position.Bias.Forward;\n if (pos >= 0) {\n moveDot(pos, biasRet[0]);\n }\n }", "title": "" }, { "docid": "2971662a360342331d11e2218a2c5ec6", "score": "0.6107214", "text": "private void updateCursor() {\r\n\t\tif (this.gameState.isPlaying() && this.currentCursor != this.blankCursor) {\r\n\t\t\tthis.currentCursor = this.blankCursor;\r\n\t\t\tthis.frame.getContentPane().setCursor(this.currentCursor);\r\n\t\t} else if (!this.gameState.isPlaying() && this.currentCursor != this.defaultCursor) {\r\n\t\t\tthis.currentCursor = this.defaultCursor;\r\n\t\t\tthis.frame.getContentPane().setCursor(this.currentCursor);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3d88b6be22c471dc56b3d8ec861551a0", "score": "0.60857403", "text": "@Override\r\n\tpublic void move() {\r\n\t\tanimate(Constants.BUSH_ANIMATION_TICK_RATE);\r\n\t}", "title": "" }, { "docid": "12d8886d869eccd4691dff946daff69b", "score": "0.606272", "text": "public void move() {\n\t\t\n\t}", "title": "" }, { "docid": "d1bd617885b7262ae31600e36ca9b943", "score": "0.60576105", "text": "public void move(){\n\t\tpos_x += v_x;\n\t\tpos_y += v_y;\n\t}", "title": "" }, { "docid": "f9b97069b71458d546060f952482daf6", "score": "0.60351354", "text": "@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\tcurrentSquare = findSquare(e.getPoint());\n\n\t\t\tif (currentSquare != null && currentSquare.isAlive()) {\n\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));\n\t\t\t} else {\n\t\t\t\tsetCursor(Cursor.getDefaultCursor());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "2a4257f2a18e1e2cac9c08cd94642bb9", "score": "0.6027034", "text": "public void onMouseMove(int x, int y) {}", "title": "" }, { "docid": "8a7dcb5767f46340538cf4985d297c83", "score": "0.6022226", "text": "private void moveCursor(Vector offset) {\r\n\t\tif (checkMove(offset)) {\r\n\t\t\tdeletePiece();\r\n\t\t\tcursor = cursor.add(offset);\r\n\t\t\tplacePiece();\r\n\t\t\tui.updateGrid(grid);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b68e9431763609fda142308b43bc426b", "score": "0.6006302", "text": "void move(int xOffset, int yOffset);", "title": "" }, { "docid": "74be373d69b201d478db55dc36ee543c", "score": "0.60041046", "text": "@Override\n\tpublic void moveTo(int x, int y) {\n\t\t\n\t}", "title": "" }, { "docid": "e8f7dd3ebb56ba418130b3fbafe7c79c", "score": "0.599091", "text": "@Override\n public void moveTo(float x, float y) {\n translate(x, y);\n }", "title": "" }, { "docid": "bf6f0ff5592b96801c0b4c4aeb960575", "score": "0.5955591", "text": "@Override\r\n\tpublic void mouseEntered(MouseEvent e) {\r\n\t\te.getComponent().setCursor(\r\n\t\t\t\tCursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\r\n\r\n\t}", "title": "" }, { "docid": "b186120c8335e92a489ab5aeeb384dc3", "score": "0.5928563", "text": "void moveMouse(int x, int y);", "title": "" }, { "docid": "9e9a129696cd94cba08726594d05add0", "score": "0.59249973", "text": "private void setWaitingCursor() {\n SwingUtilities.invokeLater(() -> this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)));\n }", "title": "" }, { "docid": "15739e9c6037378b3b9120c7c965f79d", "score": "0.5916079", "text": "public void move(){\n x += (speed * (float)Math.cos(Math.toRadians(direction - 90)));\n y += (speed * (float)Math.sin(Math.toRadians(direction - 90)));\n }", "title": "" }, { "docid": "cb28cae4897c6fa2ef8cd53931c6e319", "score": "0.59122974", "text": "@Override\r\n\tpublic void move() {\n\t\t\r\n\t}", "title": "" }, { "docid": "29f6f0ee2492d4d0a71dc0dbfd07e55e", "score": "0.59117335", "text": "@Override\n public void move() {\n\t \n }", "title": "" }, { "docid": "f54060294be2fa9895610a9abf1d9c78", "score": "0.5908042", "text": "public void move(){\n\t\t\tx-=5;\n\t\t\tif(x<=-width){ // reset (x,y) when the columns go to the end\n\t\t\t\tx=250+distance+r.nextInt(300);\n\t\t\t\tpassed=false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "444257ba69e46a1db9d2f218ae0bc0ec", "score": "0.58746207", "text": "public void move() {\n\t\t// get the old location\n\t\tdouble oldX = beeLine.getEndX();\n\t\tdouble oldY = beeLine.getEndY();\n\t\t\n\t\t// get the new location\n\t\tPoint2D movement = direction.multiply(speed);\n\t\tdouble newX = oldX + movement.getX();\n\t\tdouble newY = oldY + movement.getY();\n\t\t\n\t\t// update the line ends\n\t\tbeeLine.setStartX(oldX);\n\t\tbeeLine.setStartY(oldY);\n\t\tbeeLine.setEndX(newX);\n\t\tbeeLine.setEndY(newY);\n\t}", "title": "" }, { "docid": "48b83cb328e1e445e0d2ab96fcd2940b", "score": "0.5859069", "text": "public void moveFocusedPicture(int dx, int dy) {\n\t}", "title": "" }, { "docid": "f036b61b0711a301e678df0931a1558a", "score": "0.58589524", "text": "public void slide() {\n\t\t\n\t\tcurrentPosition++;\n\t\taddPoint(2);\n\t}", "title": "" }, { "docid": "f739ee894bfa16fad7e7eb178f52d88f", "score": "0.58561283", "text": "public void moveCursor(String dir) { \n Node current = null;\n switch (dir) {\n case \"left\":\n current = this.cursor.previous;\n if (current.previous != null && current.value != null) {\n current = current.previous;\n }\n this.cursor.previous.next = this.cursor.next;\n this.cursor.next.previous = this.cursor.previous;\n this.cursor.previous = current;\n this.cursor.next = current.next;\n current.next = this.cursor;\n break;\n case \"right\":\n current = this.cursor.next;\n if (current.next != null && current.value != null) {\n current = current.next;\n }\n this.cursor.previous.next = this.cursor.next;\n this.cursor.next.previous = this.cursor.previous;\n this.cursor.previous = current.previous;\n this.cursor.next = current;\n current.previous.next = this.cursor;\n break;\n default:\n try{\n Exception ex = new IllegalArgumentException(\"wrong direction input\");\n throw ex;\n } catch (Exception e){\n e.printStackTrace();\n }\n break;\n }\n }", "title": "" }, { "docid": "e1c51683d3d87742a3a258e5105e5823", "score": "0.5854937", "text": "@Override\n\tpublic void move() {\n\t\tif (duration > 0) {\n\t\t\tif (xCoord < endx) {\n\t\t\t\txCoord = xCoord + speed;\n\t\t\t} else {\n\t\t\t\txCoord = xCoord - speed;\n\t\t\t}\n\t\t\tif (yCoord < endy) {\n\t\t\t\tyCoord = yCoord + speed;\n\t\t\t} else {\n\t\t\t\tyCoord = yCoord - speed;\n\t\t\t}\n\t\t\tduration--;\n\t\t}\n\t}", "title": "" }, { "docid": "1f7025a1c1960e915e8a85582f4218c0", "score": "0.58440787", "text": "public void move() {\n x = x + 2; // here 2 is in pixels\n // it will call 2 pixels every 5 miliseconds\n\n if (x > 700) // if x is greater than our frame width we dont want to print bullet\n visible = false;\n }", "title": "" }, { "docid": "fc9df4c15a2d020786f1734d29a53374", "score": "0.58413607", "text": "public void animate();", "title": "" }, { "docid": "41efa74c1a14a7d3f2a194f90ccc1377", "score": "0.5841044", "text": "@Override\r\n public void move() {\n }", "title": "" }, { "docid": "9ca78b2142d7cbc645540b23c70dec8e", "score": "0.5838613", "text": "public void move(){\n x += dx;\r\n y += dy;\r\n }", "title": "" }, { "docid": "0a19180f984788ebefe38bcb6a0380ae", "score": "0.58190554", "text": "public void move() {\n x = x + dx;\n y = y + dy;\n hitBox.setY(y);\n hitBox.setX(x);\n\n super.setLocation(x, y);\n }", "title": "" }, { "docid": "e925f39c338e3fd0af76f192cf0a9fc5", "score": "0.58172864", "text": "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\r\n\t\tnewY = e.getYOnScreen() - lastY;\r\n\t\tcontainer.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\r\n\t}", "title": "" }, { "docid": "2928280b7ff8042e4d2616eb8f8c8fe0", "score": "0.5816711", "text": "@Override\n\tpublic void run() {\n\t\titem.moveTo(pixel, command);\n\t}", "title": "" }, { "docid": "4652206f6e9ee019947959aa132d0285", "score": "0.58137435", "text": "public void mousePressed(MouseEvent me) {\n previous = me.getPoint();\n oldCursor = ImageViewer.this.imageLabel.getCursor();\n ImageViewer.this.imageLabel.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n }", "title": "" }, { "docid": "167cc51f30d0bdbfcb1362deec9bc31c", "score": "0.58030206", "text": "protected void moving()\n {\n isMove = true;\n }", "title": "" }, { "docid": "081f5f8b6fce9416894315812c133b12", "score": "0.5802576", "text": "IMovementController movement();", "title": "" }, { "docid": "7fbf25f2c5cf0fcc0b808977e3311506", "score": "0.57991034", "text": "void animate(double currentTime);", "title": "" }, { "docid": "894f45ade369691969b9ad3cc1de8a4f", "score": "0.5790742", "text": "void move() {\n\t// UP\n\tif (randomCoordinate == 0 && randomDirections < 0) {\n\t if (this.getTranslateY() <= 0) {\n\t\tthis.setTranslateY(0);\n\t\tanimation.stop();\n\t }\n\t animation.play();\n\t animation.setOffsetY(144);\n\t this.setTranslateY(this.getTranslateY() - 1);\n\t i--;\n\t nRand();\n\t // DOWN\n\t} else if (randomCoordinate == 0 && randomDirections > 0) {\n\t if (this.getTranslateY() >= 564) {\n\t\tthis.setTranslateY(564);\n\t\tanimation.stop();\n\t }\n\t animation.play();\n\t animation.setOffsetY(0);\n\t this.setTranslateY(this.getTranslateY() + 1);\n\t i++;\n\t nRand();\n\t // LEFT\n\t} else if (randomCoordinate != 0 && randomDirections < 0) {\n\t if (this.getTranslateX() <= 0) {\n\t\tthis.setTranslateX(0);\n\t\tanimation.stop();\n\t }\n\t animation.play();\n\t animation.setOffsetY(48);\n\t this.setTranslateX(this.getTranslateX() - 1);\n\t i--;\n\t nRand();\n\t // RIGHT\n\t} else if (randomCoordinate != 0 && randomDirections > 0) {\n\t if (getTranslateX() >= 564) {\n\t\tsetTranslateX(564);\n\t\tanimation.stop();\n\t }\n\t animation.play();\n\t animation.setOffsetY(96);\n\t this.setTranslateX(this.getTranslateX() + 1);\n\t i++;\n\t nRand();\n\t} else if (randomDirections == 0) {\n\t animation.stop();\n\t i = randomDirections;\n\t nRand();\n\t}\n }", "title": "" }, { "docid": "cfa13dbaedad91035a6f7e66808b244d", "score": "0.57904404", "text": "@Override\n\tpublic void animate()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "61b1e3321a883b36552d1bdbeb6aa688", "score": "0.57817835", "text": "private void mouseClick() {\n if (StdDraw.isKeyPressed(KeyEvent.VK_SPACE) || StdDraw.isMousePressed()) {\n bird.accelerate(new Vector(0, 0.14));\n bird.setG(0.012);\n start++;\n }\n bird.drift();\n bird.setAccelerateBack();\n if (bird.getVelocity().getY() > 0.07) {\n bird.setVelocity(new Vector(0, 0.07));\n }\n }", "title": "" }, { "docid": "fb7de37e5a6b0436f1b6e945d14b0ed5", "score": "0.57750636", "text": "public void move() {\n double newX = getX() + speedX;\n double newY = getY() + speedY;\n setPosition(newX, newY);\n }", "title": "" }, { "docid": "114a5027c338de2c04ee48a81858e773", "score": "0.57732284", "text": "public void move();", "title": "" }, { "docid": "114a5027c338de2c04ee48a81858e773", "score": "0.57732284", "text": "public void move();", "title": "" }, { "docid": "114a5027c338de2c04ee48a81858e773", "score": "0.57732284", "text": "public void move();", "title": "" }, { "docid": "d5fb167cd59366dbd5b9a6f0adce34a3", "score": "0.57727987", "text": "@Override\n\tpublic void move(int x, int y) {\n\t\t\n\t}", "title": "" }, { "docid": "d5fb167cd59366dbd5b9a6f0adce34a3", "score": "0.57727987", "text": "@Override\n\tpublic void move(int x, int y) {\n\t\t\n\t}", "title": "" }, { "docid": "a7a608f8529bc6eaae41b2ec16bccc80", "score": "0.57723564", "text": "@Override\n public void move() {\n\n }", "title": "" }, { "docid": "8cecb13f5917ece556c352e037c0286e", "score": "0.57706386", "text": "@Override\n public void step() {\n move();\n }", "title": "" }, { "docid": "2291ceaa821fd06433907253d02ec676", "score": "0.57610184", "text": "@Override public void handle(MouseEvent mouseEvent) {\n dragDelta.x = getCenterX() - mouseEvent.getX();\r\n dragDelta.y = getCenterY() - mouseEvent.getY();\r\n getScene().setCursor(Cursor.MOVE);\r\n }", "title": "" }, { "docid": "e16ae18c33d92e233cf8dd56ac25af81", "score": "0.5759321", "text": "@Override\n\tpublic void move() {\n\t\t\n\t}", "title": "" }, { "docid": "e16ae18c33d92e233cf8dd56ac25af81", "score": "0.5759321", "text": "@Override\n\tpublic void move() {\n\t\t\n\t}", "title": "" }, { "docid": "e16ae18c33d92e233cf8dd56ac25af81", "score": "0.5759321", "text": "@Override\n\tpublic void move() {\n\t\t\n\t}", "title": "" }, { "docid": "e98ba047dcac8250fd5041fafa263d32", "score": "0.575669", "text": "@Override\n\tpublic void moveFor(int x, int y) {\n\t\t\n\t}", "title": "" }, { "docid": "d175923e356b9718df22e1ea98f210dd", "score": "0.57496744", "text": "@Override\n public void move() {\n }", "title": "" }, { "docid": "66c6b9f356e8e055da0366bd3799f306", "score": "0.57488304", "text": "@Override\n public void tick() {\n this.move();\n }", "title": "" }, { "docid": "35d50cf45863bf4eb64699a1f3bea28a", "score": "0.5745886", "text": "public void move(){\r\n\t\t super.move();\r\n\t}", "title": "" }, { "docid": "45b82c4aff091005eb80595e15c354ee", "score": "0.5743706", "text": "public void move() {\n x += dx;\n y += dy;\n }", "title": "" }, { "docid": "25022f80247ba6d58bd04cde3b832f35", "score": "0.5732783", "text": "public void moveAnimation() {\n Thread thread = new Thread(new Runnable() {\n\n @Override\n public void run() {\n int frame = 0;\n while(isMoving()) {\n Gdx.app.log(\"\", \"MOVING ANIMATION\");\n dz.setPetTextureRegion(150, 0 + (frame * 150));\n frame++;\n if(frame == 10)\n frame = 0;\n try {\n Thread.sleep(17);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n dz.setPetTextureRegion(0, 0);\n }\n });\n thread.start();\n }", "title": "" }, { "docid": "fc38c2f14c376b6deace3f662a3c1d54", "score": "0.5729531", "text": "public void move()\n\t{\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null)\n\t\t\treturn;\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next))\n\t\t\tmoveTo(next);\n\t\telse\n\t\t\tremoveSelfFromGrid();\n\t\tRainbow Rainbow = new Rainbow();\n\t\tRainbow.putSelfInGrid(gr, loc);\n\t}", "title": "" }, { "docid": "177706cb567ae0cebe254434b40e04e8", "score": "0.5726681", "text": "public void onExtractedCursorMovement(int dx, int dy) { throw new RuntimeException(\"Stub!\"); }", "title": "" }, { "docid": "45c081f55f17d3df05e39544edf82c65", "score": "0.5717506", "text": "public void move(double x, double y)\n {\n text.move(x, y);\n framedRect.move(x, y);\n }", "title": "" }, { "docid": "f6161d7a6f910e7f784581813d790be5", "score": "0.5716104", "text": "private void make() {\r\n addMouseListener(new MouseEventListener());\r\n addMouseMotionListener(new MouseEventListener());\r\n setCursor(new Cursor(Cursor.CROSSHAIR_CURSOR)); //crosshair cursor\r\n }", "title": "" }, { "docid": "68883fb1b6166c5b4e6fa4697c3b021c", "score": "0.57156795", "text": "int move(final int xDelta, final int yDelta);", "title": "" }, { "docid": "2a6393b4d8f4f24701f619c93a3411f8", "score": "0.5711883", "text": "private void handleMouseMoved(double x, double y) {\n if(animation == null || animation.getStatus() == Animation.Status.RUNNING) {\n myPlatform.move(x);\n }\n }", "title": "" }, { "docid": "7dbc30cccffbdbbd78e1463844b6f35e", "score": "0.5709253", "text": "public void onMouseMove(int x, int y)\n\t{}", "title": "" }, { "docid": "99dd5968e3bb960811c4cf0dee349060", "score": "0.5707116", "text": "public void move() {\r\n path.move();\r\n }", "title": "" }, { "docid": "4412c56c2e1019c7624a3faf7bd10bc0", "score": "0.5700715", "text": "@Override\r\n\tpublic void move() {\n\t\tthis.setXpos(this.getXpos()+(speed*this.getDir()));\r\n\t\tif(this.getXpos() < playground.getLeftbound() || this.getXpos() > playground.getRightbound())\r\n\t\t{\r\n\t\t\tthis.setDir(this.getDir()*(-1));\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c98c385e3bb66fbff19cbfdb18bf9e74", "score": "0.5699233", "text": "public void act() \n { \n \n move(); \n if(getY() == 297) {\n \n setLocation(getX(), getY() - 1);\n \n }\n \n }", "title": "" }, { "docid": "10adb8588209e30344be429559bcc515", "score": "0.5699139", "text": "@Override\n\tpublic void move() {\n\n\t}", "title": "" }, { "docid": "f2227d6d3ad3c040efa6fbee19b45f87", "score": "0.5698213", "text": "private void updateAnimation()\n\t{\n\t\tgetPlayer().stopAnimationLeft();\n\t\tgetPlayer().stopAnimationRight();\n\t\tgetPlayer().stopAnimationJump();\n\t}", "title": "" }, { "docid": "a9e3778171c5bc697fe9005c744de49c", "score": "0.5688529", "text": "public void updateMousePosition() {\n\t\tboard.updateMousePosition();\n\t}", "title": "" }, { "docid": "56832e440a3ad92399ad14f2f8c27361", "score": "0.5678848", "text": "void moveMouse(Point p);", "title": "" }, { "docid": "51747a2c9e08822bada3a765b6c5e9b5", "score": "0.5668279", "text": "public void AnimateMoving(){\n\t\tint x=1;\n\t\tif(this.MaxRange > this.CurrentRange){\n\t\t\n\t\tif(this.Direction == 0){ // Oben\n\t\t\tif(this.CurrentYPos > 0){\n\t\t\t\tthis.CurrentYPos -= this.Speed; //Ein Stueck nach oben\n\t\t\t}else{\n\t\t\t\tthis.Enabled = false;\n\t\t\t}\n\t\t}\n\t\tif(this.Direction == 1){ // Rechts\n\t\t\tif(this.CurrentXPos < 570){\n\t\t\t\tthis.CurrentXPos += this.Speed; //Ein Stueck nach rechts\n\t\t\t}else{\n\t\t\t\tthis.Enabled = false;\n\t\t\t}\n\t\t}\n\t\tif(this.Direction == 2){ // Unten\n\t\t\tif(this.CurrentYPos < 330){\n\t\t\t\tthis.CurrentYPos += this.Speed; //Ein Stueck nach unten\n\t\t\t}else{\n\t\t\t\tthis.Enabled = false;\n\t\t\t}\n\t\t}\n\t\tif(this.Direction == 3){ // Links\n\t\t\tif(this.CurrentXPos > 0){\n\t\t\t\tthis.CurrentXPos -= this.Speed; //Ein Stueck nach unten\n\t\t\t}else{\n\t\t\t\tthis.Enabled = false;\n\t\t\t}\n\t\t}\n\n\t\tif(this.CurrentXPos < 0)\n\t\t\tthis.CurrentXPos = 0;\n\t\t\n\t\tif(this.CurrentYPos < 0)\n\t\t\tthis.CurrentYPos = 0;\n\n\t\t// Position bereinigen, so dass sie restlos durch 30 teilbar ist\n\t\tint cleanXPos = this.CurrentXPos - (this.CurrentXPos % 30);\n\t\tint cleanYPos = this.CurrentYPos - (this.CurrentYPos % 30);\n\t\t\n\t\t/*if(this.SpielPanel.getDebugMode() == true)\n\t\t\tSystem.out.println(\"this.StaticObjects[\"+(cleanYPos/30)+\"][\"+(cleanXPos/30)+\"].getCollision()\");*/\n\t\t\n\t\tif(this.StaticObjects[(cleanYPos/30)][(cleanXPos/30)].getCollision() == false){ // Keine Kollision also weiter\n\t\t\t\n\t\t\t// Schaden hinzufuegen wenn ein DynamicObject beruehrt wird\n\t\t\tfor (int i = 0; i < this.DynamicObjects.length; i++){\n\t\t\t\t if(this.DynamicObjects[i] != null && this.DynamicObjects[i] != this.Shooter && this.Shooter.IsBot() != this.DynamicObjects[i].IsBot() && this.DynamicObjects[i].getHealth() > 0){\n\t\t\t\t\t // Wenn Objekt nicht der, der es abgeschossen hat ist und nicht beides Spieler/Bots\n\t\t\t\t\t \n\t\t\t\t\t if(((this.DynamicObjects[i].IsMoving() == false && this.DynamicObjects[i].getCurrentXPosition() == cleanXPos && this.DynamicObjects[i].getCurrentYPosition() == cleanYPos) || (this.DynamicObjects[i].IsMoving() == true && this.DynamicObjects[i].getMoveToXPosition() == cleanXPos && this.DynamicObjects[i].getMoveToYPosition() == cleanYPos) ) ) {\n\t\t\t\t\t\t//WENN auf Position ein DynamicObject ist\n\t\t\t\t\t\t if (this.Preferred == DynamicObjects[i].getType())// Erhoeht Damage bei bevorzugtem Gegner\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t this.Damage = this.Damage + 150;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t for(int d = 0; d < this.Damage; d++){\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t if(d==0){\n\t\t\t\t\t\t\t\t x= this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).CritSystem(this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getCurrentCrit(this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getCurrentRank(2)));\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 // So oft Gesundheit abziehen, bis Schaden erreicht\n\t\t\t\t\t\t\t if(this.DynamicObjects[i].getHealth() > 0){\n\t\t\t\t\t\t\t\t this.DynamicObjects[i].LoseHealth(x);\n\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(this.DynamicObjects[i].getHealth()==0){ // Marken setzen und EXP kriegen Rank 0\n\t\t\t\t\t\t this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).setMarke(1);\n\t\t\t\t\t\t if(SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getUltima()==true && SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getHealth()<=2 ){\n\t\t\t\t\t\t\t SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).Lifesteal(2);//50%\n\t\t\t\t\t\t }\n\t\t\t\t\t\t if(DynamicObjects[i].getType()==1){\n\t\t\t\t\t\t this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).setExp(10+this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getCurrentWisdom(this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getCurrentRank(0)));\n\t\t\t\t\t\t this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).LevelUp();\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else if(DynamicObjects[i].getType()==2){\n\t\t\t\t\t\t\tthis.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).setExp(18+this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getCurrentWisdom(this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getCurrentRank(0)));\n\t\t\t\t\t\t\tthis.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).LevelUp();\n\t\t\t\t\t\t }\n\t\t\t\t\t\t else if(DynamicObjects[i].getType()==3){\n\t\t\t\t\t\t\t\tthis.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).setExp(24+this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getCurrentWisdom(this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getCurrentRank(0)));\n\t\t\t\t\t\t\t\tthis.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).LevelUp();\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t else if(DynamicObjects[i].getType()==4){\n\t\t\t\t\t\t\t\tthis.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).setExp(33+this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getCurrentWisdom(this.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getCurrentRank(0)));\n\t\t\t\t\t\t\t\tthis.SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).LevelUp();\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t System.out.println(SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).getExp());\n\t\t\t\t\t\t System.out.println(SpielPanel.getDynamicObject(SpielPanel.getPlayerIndex()).SpielerLevel());\n\t\t\t\t\t\t System.out.println(\"UND?\");\n\t\t\t\t\t\t } \n\t\t\t\t\t\tif(this.SpielPanel.getDebugMode() == true)\n\t\t\t\t\t\t\tSystem.out.println(\"DO \"+i+\" getroffen! von \"+this.Shooter.getType());\n\t\t\t\t\t\t\n\t\t\t\t\t\tthis.Enabled = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\ti = this.DynamicObjects.length; //Beende Schleife\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}else{\n\n\t\t\tif(this.SpielPanel.getDebugMode() == true)\n\t\t\t\tSystem.out.println(\"Proj Collision: Pos X: \"+this.getCurrentXPosition()+\" Y: \"+this.getCurrentYPosition()+ \" Dir: \"+this.getDirection()+\" T: \"+this.getType()+\" CR: \"+this.getCurrentRange()+\" MR: \"+this.getMaxRange());\n\t\t\tthis.Enabled = false;\n\t\t}\n\t\t\n\t\t}else{\t\n\n\t\t\tif(this.SpielPanel.getDebugMode() == true)\n\t\t\t\tSystem.out.println(\"Proj Range Exceeded: Pos X: \"+this.getCurrentXPosition()+\" Y: \"+this.getCurrentYPosition()+ \" Dir: \"+this.getDirection()+\" T: \"+this.getType()+\" CR: \"+this.getCurrentRange()+\" MR: \"+this.getMaxRange());\n\t\t\tthis.Enabled = false;\n\t\t}\n\t\t\n\t\tthis.CurrentRange++;\n\t\t\n\t}", "title": "" }, { "docid": "ae0264ea6bcc8fdfd1320405079ed1c2", "score": "0.56598306", "text": "public void move(java.awt.Point delta);", "title": "" }, { "docid": "73cf80511ec9ab69b5524f1ed90ac553", "score": "0.5659132", "text": "public void move()\r\n {\r\n // put your code here\r\n xLeft-=40;\r\n }", "title": "" }, { "docid": "767fb6030dfe86d43f1fe46ed5db314b", "score": "0.5658717", "text": "public void move()\r\n {\r\n }", "title": "" }, { "docid": "3a2ee28d8ec2da02a731d83ffa1ee7c1", "score": "0.56450874", "text": "public void move() {\n \n if(positionX <= 0) {\n positionX = 0;\n } else if(positionX >= BOARD_WIDTH - width) {\n positionX = BOARD_WIDTH - width;\n }\n \n positionX += xDir;\n }", "title": "" }, { "docid": "9a8fffc0d315cfe0d89584c04a7d9f74", "score": "0.5641306", "text": "public void CustomCursor() {\n Toolkit toolkit = Toolkit.getDefaultToolkit();\n Image img = toolkit.getImage(\"lilcombo.png\");\n Point point = new Point(0, 0);\n Cursor cursor = toolkit.createCustomCursor(img, point, \"Cursor\");\n\n graphComponent.setCursor(cursor); // still doesn't work PMC\n\n this.jScrollPane1.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));\n\n }", "title": "" }, { "docid": "c774daee1f0ab8dda16f77a0e00c0c24", "score": "0.5635749", "text": "public void move(double x, double y) {\r\n\t\tpos.add(x, y);\r\n\t\tupdateRenderingPosition();\r\n\t}", "title": "" }, { "docid": "912f3ef56d64d61545aa73694d372506", "score": "0.56337744", "text": "private void moveIt() {\r\n\t\twhile (true) {\r\n\t\t\tif (ALLX >= 1125) {\r\n\t\t\t\tright = false;\r\n\t\t\t\tleft = true;\r\n\t\t\t}\r\n\t\t\tif (ALLX <= 130) {\r\n\t\t\t\tright = true;\r\n\t\t\t\tleft = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (left) {\r\n\t\t\tALLX -= 5;\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\tif (right) {\r\n\t\t\tALLX += 5;\r\n\t\t\t}\r\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(10);\r\n\t\t\t} catch (Exception exc) {\r\n\t\t\t}\r\n\t\t\t//constant paints\r\n\t\t\tframe.repaint();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "65e19d68a5734af7fb15e64f9450a855", "score": "0.5632936", "text": "public void move(){\n if(!isValidMove()){\n if(((x+moveX)>board.getFrame().getWidth()-width)){\n moveX = -1;\n } else if((x+moveX)<0){\n moveX = 1;\n }\n if(((y+moveY)>board.getFrame().getHeight()-height)){\n moveY = -1;\n } else if((y+moveY)<0){\n moveY = 1;\n }\n }\n \n x += moveX;\n y += moveY;\n }", "title": "" }, { "docid": "de5f6477799e72d4a7d035de7bbb7346", "score": "0.56290656", "text": "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));\n\t\t\t}", "title": "" }, { "docid": "eaf73d4600cf6410d2354289355d3eb4", "score": "0.5624967", "text": "protected void move(Position position) {\r\n\r\n }", "title": "" }, { "docid": "7d7382ece4bd3ebc23ab3cd3d2badb19", "score": "0.5624688", "text": "public void move() {\r\n\r\n\t\tthis.changeXPos(this.getXVelocity());\r\n\r\n\t\tif (this.getXCenter() < 0) {\r\n\r\n\t\t\tthis.setXCenter(frameSize.width);\r\n\r\n\t\t} else if (this.getXCenter() > frameSize.width) {\r\n\r\n\t\t\tthis.setXCenter(0);\r\n\r\n\t\t}\r\n\r\n\t\tthis.changeYPos(this.getYVelocity());\r\n\r\n\t\tif (this.getYCenter() < 0) {\r\n\r\n\t\t\tthis.setYCenter(frameSize.height);\r\n\r\n\t\t} else if (this.getYCenter() > frameSize.height) {\r\n\r\n\t\t\tthis.setYCenter(0);\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "00453297385382582e6bead77310fd29", "score": "0.5621479", "text": "public void move()\n {\n\tif (xPosition >= canvasDim.width || xPosition <= 0)\n xSpeed = -xSpeed;\n\tif (yPosition >= canvasDim.height || yPosition <= 0)\n\t ySpeed = -ySpeed;\t\n\t\n\t// Update the locations.\n xPosition += xSpeed;\n\tyPosition += ySpeed;\n }", "title": "" }, { "docid": "84171cd296a02d4bee3f4670cae61495", "score": "0.5616101", "text": "public void move(double x, double y, TranslateTransition moveAnimation)\r\n\t{\t\r\n\t\t\r\n\t\tthis.setMoving(true); //flag player as moving\r\n\t\t\r\n\t\t//Set movement animation's end point\r\n\t\tmoveAnimation.setToY(y);\r\n\t\tmoveAnimation.setToX(x);\r\n\t\t\r\n\t\tmoveAnimation.play(); //Play movement animation\r\n\t\t\r\n\t\t//move player\r\n\t\tthis.setTranslateY(y);\r\n\t\tthis.setTranslateX(x);\r\n\t\t\r\n\t\tmoveAnimation.setFromY(y); //Set movement animation's start point Y\r\n\t\tmoveAnimation.setFromX(x); //Set movement animation's start point X\r\n\t\t//System.out.println(currentY);\r\n\t}", "title": "" }, { "docid": "d44d521a941cc78f50713d93b7386146", "score": "0.5612394", "text": "final private void setCursor(Cursor cur) {\n\t\tgetEditor().setCursor(cur);\n\t}", "title": "" }, { "docid": "e8b4869f9aa587f898600d5ed8fc0b4a", "score": "0.5606828", "text": "public void move() {\n\t\tif (facing) {\n\t\t\t\txPos += movement;\n\t\t\t}\n\t\telse {\n\t\t\txPos -= movement;\n\t\t}\n\t}", "title": "" }, { "docid": "153882f91976739697250513cff7e58b", "score": "0.56056195", "text": "public void move() {\n\t\tmodel.modelPos.x += dx;\n\t\tmodel.modelPos.y += dy;\n\t\t\n\t\tupdateBox();\n\t}", "title": "" }, { "docid": "a252036d2eb4e4a50280fbc63b088da4", "score": "0.560072", "text": "public void move() {\n\t\tx += xSpeed;\n\t\ty += ySpeed;\n\t\txSpeed += xAccel;\n\t\tySpeed += yAccel;\n\t\tcurrentFrame = (currentFrame + 1) % images.size();\n\t\theight = getImageHeight();\n\t\twidth = getImageWidth();\n\t}", "title": "" }, { "docid": "5a07e2beb30805481c5875aa8b1aac97", "score": "0.5598568", "text": "public void setCursorPos(int pos) {\n\t\tcursorPos = pos;\n\t}", "title": "" } ]
c59b2dc1a7d63a3c4b7a40293329b97e
/ Method called by JSP javascript
[ { "docid": "f806877b207f519465b56f4723cb85ec", "score": "0.0", "text": "public void getObjectContentUrlJSON(final Control control, final ArgumentList args) {\n\t\tMobileContentHelper.getObjectContentUrlJSON(this, args);\n\t}", "title": "" } ]
[ { "docid": "afca54f918ec1e07b06c0310a1ac1233", "score": "0.6011751", "text": "@Override\n public int doEndTag() throws JspException {\n return 0;\n }", "title": "" }, { "docid": "53f00365c7958cb4df36c3439672076a", "score": "0.5891131", "text": "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _generaArchivoPago page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code var\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setCode(\"selectList.nonValue\");\n __jsp_taghandler_1.setVar(\"nonValue\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_1.doCatch(th);\n } finally {\n __jsp_taghandler_1.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[5]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag modelAttribute method\");\n __jsp_taghandler_2.setParent(null);\n __jsp_taghandler_2.setModelAttribute(\"pagoMeritoDTO\");\n __jsp_taghandler_2.setMethod(\"post\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[6]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\n __jsp_taghandler_3.setCode(\"sireh.label.merito.generacion.archivo.pago.titulo\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[7]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag text\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_2);\n __jsp_taghandler_4.setText(\" Notas \");\n try {\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_4.doCatch(th);\n } finally {\n __jsp_taghandler_4.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.springframework.web.servlet.tags.ThemeTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.ThemeTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.ThemeTag.class,\"org.springframework.web.servlet.tags.ThemeTag code\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_2);\n __jsp_taghandler_5.setCode(\"pesos.jpg\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_5.doCatch(th);\n } finally {\n __jsp_taghandler_5.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag text\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_2);\n __jsp_taghandler_6.setText(\" de M&eacute;rito \");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_2);\n __jsp_taghandler_7.setCode(\"sireh.label.merito.generacion.archivo.pago.ciclo\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.form.SelectTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.form.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.SelectTag.class,\"org.springframework.web.servlet.tags.form.SelectTag path\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_2);\n __jsp_taghandler_8.setPath(\"tdNmhCiclo\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[12]);\n {\n org.springframework.web.servlet.tags.form.OptionTag __jsp_taghandler_9=(org.springframework.web.servlet.tags.form.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.OptionTag.class,\"org.springframework.web.servlet.tags.form.OptionTag value label\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_8);\n __jsp_taghandler_9.setValue(\"\");\n __jsp_taghandler_9.setLabel((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${nonValue}\",java.lang.String.class, __ojsp_varRes,null));\n java.lang.Object value = null;\n java.lang.String displayValue = null;\n try {\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_9.doCatch(th);\n } finally {\n __jsp_taghandler_9.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,3);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.springframework.web.servlet.tags.form.OptionsTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.form.OptionsTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.OptionsTag.class,\"org.springframework.web.servlet.tags.form.OptionsTag items itemValue itemLabel\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_8);\n __jsp_taghandler_10.setItems((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${pagoMeritoDTO.cicloValores}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_10.setItemValue(\"clave\");\n __jsp_taghandler_10.setItemLabel(\"valor\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_10.doCatch(th);\n } finally {\n __jsp_taghandler_10.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,3);\n }\n out.write(__oracle_jsp_text[14]);\n } while (__jsp_taghandler_8.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_8.doCatch(th);\n } finally {\n __jsp_taghandler_8.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_11=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_2);\n __jsp_taghandler_11.setCode(\"sireh.label.merito.generacion.archivo.pago.causal\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_11.doCatch(th);\n } finally {\n __jsp_taghandler_11.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[16]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_12=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_12.setParent(__jsp_taghandler_2);\n __jsp_taghandler_12.setJspContext(pageContext);\n __jsp_taghandler_12.setKey(\"0\");\n __jsp_taghandler_12.setValue(\"selectList.nonValue\");\n __jsp_taghandler_12.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_12, pageContext);\n }\n out.write(__oracle_jsp_text[17]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_13=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_13.setParent(__jsp_taghandler_2);\n __jsp_taghandler_13.setJspContext(pageContext);\n __jsp_taghandler_13.setBeanName(\"tcCausalMeritoSinEval\");\n __jsp_taghandler_13.setPath(\"tdNmhCveCausal\");\n __jsp_taghandler_13.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_13, pageContext);\n }\n out.write(__oracle_jsp_text[18]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_14=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_2);\n __jsp_taghandler_14.setCode(\"sireh.label.merito.generacion.archivo.pago.remesa\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_14.doCatch(th);\n } finally {\n __jsp_taghandler_14.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_15=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_15.setParent(__jsp_taghandler_2);\n __jsp_taghandler_15.setJspContext(pageContext);\n __jsp_taghandler_15.setKey(\"0\");\n __jsp_taghandler_15.setValue(\"selectList.nonValue\");\n __jsp_taghandler_15.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_15, pageContext);\n }\n out.write(__oracle_jsp_text[20]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_16=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_16.setParent(__jsp_taghandler_2);\n __jsp_taghandler_16.setJspContext(pageContext);\n __jsp_taghandler_16.setBeanName(\"tcRemesaEmpenoPorCicloYCausal\");\n __jsp_taghandler_16.setPath(\"tdNmhOp\");\n __jsp_taghandler_16.setParentPath(\"tdNmhCiclo\");\n __jsp_taghandler_16.setProgress(\"true\");\n __jsp_taghandler_16.setFilterPaths(\"tdNmhCveCausal\");\n __jsp_taghandler_16.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_16, pageContext);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_17=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_17.setParent(__jsp_taghandler_2);\n __jsp_taghandler_17.setCode(\"sireh.form.required.fields\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_17.doCatch(th);\n } finally {\n __jsp_taghandler_17.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17,2);\n }\n out.write(__oracle_jsp_text[22]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_18=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_18.setParent(__jsp_taghandler_2);\n __jsp_taghandler_18.setJspContext(pageContext);\n __jsp_taghandler_18.setAction((java.lang.String) (\"notaDeMerito/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${pagoMeritoDTO.urlDestino}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_18.setValue(\"submit.accept\");\n __jsp_taghandler_18.setProgressBar(\"true\");\n __jsp_taghandler_18.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_18, pageContext);\n }\n out.write(__oracle_jsp_text[23]);\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "title": "" }, { "docid": "578f2ee2f1cb9b382f89ac43ed9b71a9", "score": "0.5773337", "text": "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _EdlDischargeListMaintenanceBookedTabScn page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_1=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setName(\"fedl002\");\n __jsp_taghandler_1.setProperty(\"restowedId\");\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[6]);\n {\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_2=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\"org.apache.struts.taglib.html.SelectTag name onchange property style size\");\n __jsp_taghandler_2.setParent(null);\n __jsp_taghandler_2.setName(\"fedl002\");\n __jsp_taghandler_2.setOnchange(\"getGridSearchCriteria();changeValIn1();changeValIn2();setHiddenView();\");\n __jsp_taghandler_2.setProperty(\"bookedView\");\n __jsp_taghandler_2.setStyle(\"width:98%\");\n __jsp_taghandler_2.setSize(\"1\");\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_2,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[7]);\n {\n org.apache.struts.taglib.html.OptionsCollectionTag __jsp_taghandler_3=(org.apache.struts.taglib.html.OptionsCollectionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsCollectionTag.class,\"org.apache.struts.taglib.html.OptionsCollectionTag label name property value\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\n __jsp_taghandler_3.setLabel(\"name\");\n __jsp_taghandler_3.setName(\"fedl002\");\n __jsp_taghandler_3.setProperty(\"bookedViewValues\");\n __jsp_taghandler_3.setValue(\"code\");\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[8]);\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,1);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_4=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name onblur property style\");\n __jsp_taghandler_4.setParent(null);\n __jsp_taghandler_4.setMaxlength(\"15\");\n __jsp_taghandler_4.setName(\"fedl002\");\n __jsp_taghandler_4.setOnblur(\"changeUpper(this)\");\n __jsp_taghandler_4.setProperty(\"srchBookingFind1\");\n __jsp_taghandler_4.setStyle(\"width:96%\");\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,1);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_5=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\"org.apache.struts.taglib.html.SelectTag name onchange property style size\");\n __jsp_taghandler_5.setParent(null);\n __jsp_taghandler_5.setName(\"fedl002\");\n __jsp_taghandler_5.setOnchange(\"changeValIn1()\");\n __jsp_taghandler_5.setProperty(\"srchBookingIn1\");\n __jsp_taghandler_5.setStyle(\"width:98%\");\n __jsp_taghandler_5.setSize(\"1\");\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_5,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[11]);\n {\n org.apache.struts.taglib.html.OptionsCollectionTag __jsp_taghandler_6=(org.apache.struts.taglib.html.OptionsCollectionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsCollectionTag.class,\"org.apache.struts.taglib.html.OptionsCollectionTag label name property value\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_5);\n __jsp_taghandler_6.setLabel(\"name\");\n __jsp_taghandler_6.setName(\"fedl002\");\n __jsp_taghandler_6.setProperty(\"bookingInValues\");\n __jsp_taghandler_6.setValue(\"code\");\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[12]);\n } while (__jsp_taghandler_5.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,1);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_7=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name onblur property style\");\n __jsp_taghandler_7.setParent(null);\n __jsp_taghandler_7.setMaxlength(\"15\");\n __jsp_taghandler_7.setName(\"fedl002\");\n __jsp_taghandler_7.setOnblur(\"changeUpper(this)\");\n __jsp_taghandler_7.setProperty(\"srchBookingFind2\");\n __jsp_taghandler_7.setStyle(\"width:96%\");\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,1);\n }\n out.write(__oracle_jsp_text[14]);\n {\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_8=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\"org.apache.struts.taglib.html.SelectTag name onchange property style size\");\n __jsp_taghandler_8.setParent(null);\n __jsp_taghandler_8.setName(\"fedl002\");\n __jsp_taghandler_8.setOnchange(\"changeValIn2()\");\n __jsp_taghandler_8.setProperty(\"srchBookingIn2\");\n __jsp_taghandler_8.setStyle(\"width:98%\");\n __jsp_taghandler_8.setSize(\"1\");\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_8,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[15]);\n {\n org.apache.struts.taglib.html.OptionsCollectionTag __jsp_taghandler_9=(org.apache.struts.taglib.html.OptionsCollectionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsCollectionTag.class,\"org.apache.struts.taglib.html.OptionsCollectionTag label name property value\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_8);\n __jsp_taghandler_9.setLabel(\"name\");\n __jsp_taghandler_9.setName(\"fedl002\");\n __jsp_taghandler_9.setProperty(\"bookingInValues\");\n __jsp_taghandler_9.setValue(\"code\");\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,2);\n }\n out.write(__oracle_jsp_text[16]);\n } while (__jsp_taghandler_8.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,1);\n }\n out.write(__oracle_jsp_text[17]);\n {\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_10=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\"org.apache.struts.taglib.html.SelectTag name property style size\");\n __jsp_taghandler_10.setParent(null);\n __jsp_taghandler_10.setName(\"fedl002\");\n __jsp_taghandler_10.setProperty(\"srchBookingOrder1\");\n __jsp_taghandler_10.setStyle(\"width:98%\");\n __jsp_taghandler_10.setSize(\"1\");\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_10,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[18]);\n {\n org.apache.struts.taglib.html.OptionsCollectionTag __jsp_taghandler_11=(org.apache.struts.taglib.html.OptionsCollectionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsCollectionTag.class,\"org.apache.struts.taglib.html.OptionsCollectionTag label name property value\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_10);\n __jsp_taghandler_11.setLabel(\"name\");\n __jsp_taghandler_11.setName(\"fedl002\");\n __jsp_taghandler_11.setProperty(\"bookingOrderValues\");\n __jsp_taghandler_11.setValue(\"code\");\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[19]);\n } while (__jsp_taghandler_10.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,1);\n }\n out.write(__oracle_jsp_text[20]);\n {\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_12=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\"org.apache.struts.taglib.html.SelectTag name property style size\");\n __jsp_taghandler_12.setParent(null);\n __jsp_taghandler_12.setName(\"fedl002\");\n __jsp_taghandler_12.setProperty(\"srchBookingOrder1Ord\");\n __jsp_taghandler_12.setStyle(\"width:98%\");\n __jsp_taghandler_12.setSize(\"1\");\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_12,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[21]);\n {\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_13=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\"org.apache.struts.taglib.html.OptionTag value\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_12);\n __jsp_taghandler_13.setValue(\"\");\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_13,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[22]);\n } while (__jsp_taghandler_13.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,2);\n }\n out.write(__oracle_jsp_text[23]);\n {\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_14=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\"org.apache.struts.taglib.html.OptionTag value\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_12);\n __jsp_taghandler_14.setValue(\"ASC\");\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_14,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[24]);\n } while (__jsp_taghandler_14.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[25]);\n {\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_15=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\"org.apache.struts.taglib.html.OptionTag value\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_12);\n __jsp_taghandler_15.setValue(\"DESC\");\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_15,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[26]);\n } while (__jsp_taghandler_15.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\n }\n out.write(__oracle_jsp_text[27]);\n } while (__jsp_taghandler_12.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,1);\n }\n out.write(__oracle_jsp_text[28]);\n {\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_16=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\"org.apache.struts.taglib.html.SelectTag name property style size\");\n __jsp_taghandler_16.setParent(null);\n __jsp_taghandler_16.setName(\"fedl002\");\n __jsp_taghandler_16.setProperty(\"srchBookingOrder2\");\n __jsp_taghandler_16.setStyle(\"width:98%\");\n __jsp_taghandler_16.setSize(\"1\");\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_16,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[29]);\n {\n org.apache.struts.taglib.html.OptionsCollectionTag __jsp_taghandler_17=(org.apache.struts.taglib.html.OptionsCollectionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsCollectionTag.class,\"org.apache.struts.taglib.html.OptionsCollectionTag label name property value\");\n __jsp_taghandler_17.setParent(__jsp_taghandler_16);\n __jsp_taghandler_17.setLabel(\"name\");\n __jsp_taghandler_17.setName(\"fedl002\");\n __jsp_taghandler_17.setProperty(\"bookingOrderValues\");\n __jsp_taghandler_17.setValue(\"code\");\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17,2);\n }\n out.write(__oracle_jsp_text[30]);\n } while (__jsp_taghandler_16.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,1);\n }\n out.write(__oracle_jsp_text[31]);\n {\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_18=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\"org.apache.struts.taglib.html.SelectTag name property style size\");\n __jsp_taghandler_18.setParent(null);\n __jsp_taghandler_18.setName(\"fedl002\");\n __jsp_taghandler_18.setProperty(\"srchBookingOrder2Ord\");\n __jsp_taghandler_18.setStyle(\"width:98%\");\n __jsp_taghandler_18.setSize(\"1\");\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_18,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[32]);\n {\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_19=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\"org.apache.struts.taglib.html.OptionTag value\");\n __jsp_taghandler_19.setParent(__jsp_taghandler_18);\n __jsp_taghandler_19.setValue(\"\");\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_19,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[33]);\n } while (__jsp_taghandler_19.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19,2);\n }\n out.write(__oracle_jsp_text[34]);\n {\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_20=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\"org.apache.struts.taglib.html.OptionTag value\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_18);\n __jsp_taghandler_20.setValue(\"ASC\");\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_20,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[35]);\n } while (__jsp_taghandler_20.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,2);\n }\n out.write(__oracle_jsp_text[36]);\n {\n org.apache.struts.taglib.html.OptionTag __jsp_taghandler_21=(org.apache.struts.taglib.html.OptionTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionTag.class,\"org.apache.struts.taglib.html.OptionTag value\");\n __jsp_taghandler_21.setParent(__jsp_taghandler_18);\n __jsp_taghandler_21.setValue(\"DESC\");\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_21,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[37]);\n } while (__jsp_taghandler_21.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21,2);\n }\n out.write(__oracle_jsp_text[38]);\n } while (__jsp_taghandler_18.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,1);\n }\n out.write(__oracle_jsp_text[39]);\n {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_22=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_22.setParent(null);\n __jsp_taghandler_22.setName(\"fedl002\");\n __jsp_taghandler_22.setProperty(\"readOnlyFlg\");\n __jsp_taghandler_22.setValue(\"E\");\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[40]);\n } while (__jsp_taghandler_22.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,1);\n }\n out.write(__oracle_jsp_text[41]);\n {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_23=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_23.setParent(null);\n __jsp_taghandler_23.setName(\"fedl002\");\n __jsp_taghandler_23.setProperty(\"readOnlyFlg\");\n __jsp_taghandler_23.setValue(\"E\");\n __jsp_tag_starteval=__jsp_taghandler_23.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[42]);\n {\n String __url=OracleJspRuntime.toStr(\"../edl/EdlDischargeListMaintenanceBookedTabGrid.jsp\");\n // Include \n pageContext.include( __url,false);\n if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;\n }\n\n out.write(__oracle_jsp_text[43]);\n } while (__jsp_taghandler_23.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_23.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_23,1);\n }\n out.write(__oracle_jsp_text[44]);\n {\n org.apache.struts.taglib.logic.NotEqualTag __jsp_taghandler_24=(org.apache.struts.taglib.logic.NotEqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.NotEqualTag.class,\"org.apache.struts.taglib.logic.NotEqualTag name property value\");\n __jsp_taghandler_24.setParent(null);\n __jsp_taghandler_24.setName(\"fedl002\");\n __jsp_taghandler_24.setProperty(\"readOnlyFlg\");\n __jsp_taghandler_24.setValue(\"E\");\n __jsp_tag_starteval=__jsp_taghandler_24.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[45]);\n {\n String __url=OracleJspRuntime.toStr(\"/pages/edl/EdlDischargeListMaintenanceBookedTabViewOnlyGrid.jsp\");\n // Include \n pageContext.include( __url,false);\n if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;\n }\n\n out.write(__oracle_jsp_text[46]);\n } while (__jsp_taghandler_24.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_24.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_24,1);\n }\n out.write(__oracle_jsp_text[47]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "title": "" }, { "docid": "293bb5124cdb3e0ead10f3bdbe166a6d", "score": "0.5754894", "text": "protected abstract boolean condition() throws JspException;", "title": "" }, { "docid": "370eceaed5a828f54595692631516195", "score": "0.5695099", "text": "@Override\n\tpublic int doEndTag() throws JspException {\n\t\treturn super.doEndTag();\n\t}", "title": "" }, { "docid": "49363e948d602bf66fd6cd82546b8c44", "score": "0.5675948", "text": "public void executeJavascript(String strJavascript)\n {\n }", "title": "" }, { "docid": "81471b2de3207076efece4ed7a566e9e", "score": "0.5660992", "text": "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html;charset=windows-1252\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {\n pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, \"true\", PageContext.PAGE_SCOPE);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n return;\n}\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _Activos3__a page = this;\n ServletConfig config = pageContext.getServletConfig();\n\n try {\n // global beans\n // end global beans\n\n\n out.write(__jsp_StaticText.text[0]);\n out.write(__jsp_StaticText.text[1]);\n out.write(__jsp_StaticText.text[2]);\n out.write(__jsp_StaticText.text[3]);\n out.write(__jsp_StaticText.text[4]);\n /*@lineinfo:translated-code*//*@lineinfo:17^1*/ {\n org.apache.struts.taglib.html.FormTag __jsp_taghandler_1=(org.apache.struts.taglib.html.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.FormTag.class,\"org.apache.struts.taglib.html.FormTag action\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setAction(\"/activosAction\");\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[5]);\n /*@lineinfo:translated-code*//*@lineinfo:18^1*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_2=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag property\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setProperty(\"operacion\");\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_2,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[6]);\n /*@lineinfo:translated-code*//*@lineinfo:19^1*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_3=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag property\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\n __jsp_taghandler_3.setProperty(\"opcion\");\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_3,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_3.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[7]);\n /*@lineinfo:translated-code*//*@lineinfo:20^1*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_4=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\n __jsp_taghandler_4.setName(\"ActivosForm\");\n __jsp_taghandler_4.setProperty(\"operacion\");\n __jsp_taghandler_4.setValue(\"1\");\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[8]);\n /*@lineinfo:translated-code*//*@lineinfo:21^4*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_5=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_4);\n __jsp_taghandler_5.setName(\"ActivosForm\");\n __jsp_taghandler_5.setProperty(\"opcion\");\n __jsp_taghandler_5.setValue(\"4\");\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[9]);\n /*@lineinfo:translated-code*//*@lineinfo:24^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_6=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_5);\n __jsp_taghandler_6.setKey(\"activos3.codrub\");\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_6.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[10]);\n /*@lineinfo:translated-code*//*@lineinfo:25^26*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_7=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_5);\n __jsp_taghandler_7.setMaxlength(\"10\");\n __jsp_taghandler_7.setName(\"ActivosForm\");\n __jsp_taghandler_7.setProperty(\"act_codrub\");\n __jsp_taghandler_7.setReadonly(true);\n __jsp_taghandler_7.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_7,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_7.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[11]);\n /*@lineinfo:translated-code*//*@lineinfo:26^10*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_8=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_5);\n __jsp_taghandler_8.setMaxlength(\"60\");\n __jsp_taghandler_8.setName(\"ActivosForm\");\n __jsp_taghandler_8.setProperty(\"act_rubdescripcion\");\n __jsp_taghandler_8.setReadonly(true);\n __jsp_taghandler_8.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_8,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_8.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[12]);\n /*@lineinfo:translated-code*//*@lineinfo:29^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_9=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_5);\n __jsp_taghandler_9.setKey(\"activos3.codreg\");\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_9.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[13]);\n /*@lineinfo:translated-code*//*@lineinfo:30^26*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_10=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_5);\n __jsp_taghandler_10.setMaxlength(\"10\");\n __jsp_taghandler_10.setName(\"ActivosForm\");\n __jsp_taghandler_10.setProperty(\"act_codreg\");\n __jsp_taghandler_10.setReadonly(true);\n __jsp_taghandler_10.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_10,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_10.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[14]);\n /*@lineinfo:translated-code*//*@lineinfo:31^10*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_11=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_5);\n __jsp_taghandler_11.setMaxlength(\"60\");\n __jsp_taghandler_11.setName(\"ActivosForm\");\n __jsp_taghandler_11.setProperty(\"act_regdescripcion\");\n __jsp_taghandler_11.setReadonly(true);\n __jsp_taghandler_11.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_11,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_11.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[15]);\n /*@lineinfo:translated-code*//*@lineinfo:34^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_12=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_5);\n __jsp_taghandler_12.setKey(\"activos3.codigo\");\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_12.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[16]);\n /*@lineinfo:translated-code*//*@lineinfo:35^26*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_13=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_5);\n __jsp_taghandler_13.setMaxlength(\"5\");\n __jsp_taghandler_13.setName(\"ActivosForm\");\n __jsp_taghandler_13.setProperty(\"act_codigo\");\n __jsp_taghandler_13.setReadonly(true);\n __jsp_taghandler_13.setSize(\"5\");\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_13,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_13.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[17]);\n /*@lineinfo:translated-code*//*@lineinfo:36^10*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_14=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_5);\n __jsp_taghandler_14.setMaxlength(\"10\");\n __jsp_taghandler_14.setName(\"ActivosForm\");\n __jsp_taghandler_14.setProperty(\"act_codbarra\");\n __jsp_taghandler_14.setReadonly(true);\n __jsp_taghandler_14.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_14,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_14.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[18]);\n /*@lineinfo:translated-code*//*@lineinfo:39^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_15=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_5);\n __jsp_taghandler_15.setKey(\"activos3.codgrp\");\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_15.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[19]);\n /*@lineinfo:translated-code*//*@lineinfo:41^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_16=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_5);\n __jsp_taghandler_16.setMaxlength(\"40\");\n __jsp_taghandler_16.setName(\"ActivosForm\");\n __jsp_taghandler_16.setProperty(\"act_grpdescripcion\");\n __jsp_taghandler_16.setReadonly(true);\n __jsp_taghandler_16.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_16,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_16.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[20]);\n /*@lineinfo:translated-code*//*@lineinfo:42^14*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_17=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_17.setParent(__jsp_taghandler_5);\n __jsp_taghandler_17.setName(\"ActivosForm\");\n __jsp_taghandler_17.setProperty(\"act_codgrp\");\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_17,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_17.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[21]);\n /*@lineinfo:translated-code*//*@lineinfo:44^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_18=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_5);\n __jsp_taghandler_18.setKey(\"activos3.codpar\");\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_18.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[22]);\n /*@lineinfo:translated-code*//*@lineinfo:46^15*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_19=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_19.setParent(__jsp_taghandler_5);\n __jsp_taghandler_19.setMaxlength(\"40\");\n __jsp_taghandler_19.setName(\"ActivosForm\");\n __jsp_taghandler_19.setProperty(\"act_pardescripcion\");\n __jsp_taghandler_19.setReadonly(true);\n __jsp_taghandler_19.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_19,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_19.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[23]);\n /*@lineinfo:translated-code*//*@lineinfo:47^15*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_20=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_5);\n __jsp_taghandler_20.setName(\"ActivosForm\");\n __jsp_taghandler_20.setProperty(\"act_codpar\");\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_20,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_20.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[24]);\n /*@lineinfo:translated-code*//*@lineinfo:51^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_21=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_21.setParent(__jsp_taghandler_5);\n __jsp_taghandler_21.setKey(\"activos3.codofi\");\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_21.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[25]);\n /*@lineinfo:translated-code*//*@lineinfo:53^10*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_22=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_22.setParent(__jsp_taghandler_5);\n __jsp_taghandler_22.setMaxlength(\"40\");\n __jsp_taghandler_22.setName(\"ActivosForm\");\n __jsp_taghandler_22.setProperty(\"act_ofidescripcion\");\n __jsp_taghandler_22.setReadonly(true);\n __jsp_taghandler_22.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_22,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_22.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[26]);\n /*@lineinfo:translated-code*//*@lineinfo:54^10*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_23=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_23.setParent(__jsp_taghandler_5);\n __jsp_taghandler_23.setName(\"ActivosForm\");\n __jsp_taghandler_23.setProperty(\"act_codofi\");\n __jsp_tag_starteval=__jsp_taghandler_23.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_23,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_23.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_23.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_23);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[27]);\n /*@lineinfo:translated-code*//*@lineinfo:56^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_24=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_24.setParent(__jsp_taghandler_5);\n __jsp_taghandler_24.setKey(\"activos3.codfun\");\n __jsp_tag_starteval=__jsp_taghandler_24.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_24.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_24.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_24);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[28]);\n /*@lineinfo:translated-code*//*@lineinfo:58^10*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_25=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_25.setParent(__jsp_taghandler_5);\n __jsp_taghandler_25.setMaxlength(\"40\");\n __jsp_taghandler_25.setName(\"ActivosForm\");\n __jsp_taghandler_25.setProperty(\"act_fundescripcion\");\n __jsp_taghandler_25.setReadonly(true);\n __jsp_taghandler_25.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_25.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_25,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_25.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_25.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_25);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[29]);\n /*@lineinfo:translated-code*//*@lineinfo:59^10*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_26=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_26.setParent(__jsp_taghandler_5);\n __jsp_taghandler_26.setName(\"ActivosForm\");\n __jsp_taghandler_26.setProperty(\"act_codfun\");\n __jsp_tag_starteval=__jsp_taghandler_26.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_26,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_26.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_26.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_26);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[30]);\n /*@lineinfo:translated-code*//*@lineinfo:63^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_27=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_27.setParent(__jsp_taghandler_5);\n __jsp_taghandler_27.setKey(\"activos3.codubi\");\n __jsp_tag_starteval=__jsp_taghandler_27.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_27.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_27.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_27);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[31]);\n /*@lineinfo:translated-code*//*@lineinfo:65^15*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_28=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_28.setParent(__jsp_taghandler_5);\n __jsp_taghandler_28.setMaxlength(\"40\");\n __jsp_taghandler_28.setName(\"ActivosForm\");\n __jsp_taghandler_28.setProperty(\"act_ubidescripcion\");\n __jsp_taghandler_28.setReadonly(true);\n __jsp_taghandler_28.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_28.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_28,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_28.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_28.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_28);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[32]);\n /*@lineinfo:translated-code*//*@lineinfo:66^15*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_29=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_29.setParent(__jsp_taghandler_5);\n __jsp_taghandler_29.setName(\"ActivosForm\");\n __jsp_taghandler_29.setProperty(\"act_codubi\");\n __jsp_tag_starteval=__jsp_taghandler_29.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_29,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_29.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_29.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_29);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[33]);\n /*@lineinfo:translated-code*//*@lineinfo:68^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_30=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_30.setParent(__jsp_taghandler_5);\n __jsp_taghandler_30.setKey(\"activos3.codpry\");\n __jsp_tag_starteval=__jsp_taghandler_30.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_30.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_30.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_30);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[34]);\n /*@lineinfo:translated-code*//*@lineinfo:70^15*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_31=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_31.setParent(__jsp_taghandler_5);\n __jsp_taghandler_31.setMaxlength(\"40\");\n __jsp_taghandler_31.setName(\"ActivosForm\");\n __jsp_taghandler_31.setProperty(\"act_prydescripcion\");\n __jsp_taghandler_31.setReadonly(true);\n __jsp_taghandler_31.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_31.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_31,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_31.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_31.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_31);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[35]);\n /*@lineinfo:translated-code*//*@lineinfo:71^15*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_32=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_32.setParent(__jsp_taghandler_5);\n __jsp_taghandler_32.setName(\"ActivosForm\");\n __jsp_taghandler_32.setProperty(\"act_codpry\");\n __jsp_tag_starteval=__jsp_taghandler_32.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_32,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_32.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_32.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_32);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[36]);\n /*@lineinfo:translated-code*//*@lineinfo:75^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_33=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_33.setParent(__jsp_taghandler_5);\n __jsp_taghandler_33.setKey(\"activos3.codfin\");\n __jsp_tag_starteval=__jsp_taghandler_33.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_33.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_33.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_33);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[37]);\n /*@lineinfo:translated-code*//*@lineinfo:77^15*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_34=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_34.setParent(__jsp_taghandler_5);\n __jsp_taghandler_34.setMaxlength(\"40\");\n __jsp_taghandler_34.setName(\"ActivosForm\");\n __jsp_taghandler_34.setProperty(\"act_findescripcion\");\n __jsp_taghandler_34.setReadonly(true);\n __jsp_taghandler_34.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_34.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_34,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_34.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_34.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_34);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[38]);\n /*@lineinfo:translated-code*//*@lineinfo:78^15*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_35=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_35.setParent(__jsp_taghandler_5);\n __jsp_taghandler_35.setName(\"ActivosForm\");\n __jsp_taghandler_35.setProperty(\"act_codfin\");\n __jsp_tag_starteval=__jsp_taghandler_35.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_35,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_35.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_35.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_35);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[39]);\n /*@lineinfo:translated-code*//*@lineinfo:82^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_36=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_36.setParent(__jsp_taghandler_5);\n __jsp_taghandler_36.setKey(\"activos3.feccompra\");\n __jsp_tag_starteval=__jsp_taghandler_36.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_36.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_36.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_36);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[40]);\n /*@lineinfo:translated-code*//*@lineinfo:83^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_37=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_37.setParent(__jsp_taghandler_5);\n __jsp_taghandler_37.setMaxlength(\"10\");\n __jsp_taghandler_37.setName(\"ActivosForm\");\n __jsp_taghandler_37.setProperty(\"act_feccompra\");\n __jsp_taghandler_37.setReadonly(true);\n __jsp_taghandler_37.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_37.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_37,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_37.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_37.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_37);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[41]);\n /*@lineinfo:translated-code*//*@lineinfo:84^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_38=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_38.setParent(__jsp_taghandler_5);\n __jsp_taghandler_38.setKey(\"activos3.tipcam\");\n __jsp_tag_starteval=__jsp_taghandler_38.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_38.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_38.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_38);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[42]);\n /*@lineinfo:translated-code*//*@lineinfo:85^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_39=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_39.setParent(__jsp_taghandler_5);\n __jsp_taghandler_39.setMaxlength(\"11\");\n __jsp_taghandler_39.setName(\"ActivosForm\");\n __jsp_taghandler_39.setProperty(\"act_tipcam\");\n __jsp_taghandler_39.setReadonly(true);\n __jsp_taghandler_39.setSize(\"11\");\n __jsp_tag_starteval=__jsp_taghandler_39.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_39,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_39.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_39.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_39);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[43]);\n /*@lineinfo:translated-code*//*@lineinfo:88^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_40=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_40.setParent(__jsp_taghandler_5);\n __jsp_taghandler_40.setKey(\"activos3.tipufv\");\n __jsp_tag_starteval=__jsp_taghandler_40.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_40.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_40.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_40);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[44]);\n /*@lineinfo:translated-code*//*@lineinfo:89^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_41=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_41.setParent(__jsp_taghandler_5);\n __jsp_taghandler_41.setMaxlength(\"11\");\n __jsp_taghandler_41.setName(\"ActivosForm\");\n __jsp_taghandler_41.setProperty(\"act_tipufv\");\n __jsp_taghandler_41.setReadonly(true);\n __jsp_taghandler_41.setSize(\"11\");\n __jsp_tag_starteval=__jsp_taghandler_41.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_41,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_41.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_41.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_41);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[45]);\n /*@lineinfo:translated-code*//*@lineinfo:90^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_42=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_42.setParent(__jsp_taghandler_5);\n __jsp_taghandler_42.setKey(\"activos3.umanejo\");\n __jsp_tag_starteval=__jsp_taghandler_42.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_42.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_42.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_42);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[46]);\n /*@lineinfo:translated-code*//*@lineinfo:91^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_43=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_43.setParent(__jsp_taghandler_5);\n __jsp_taghandler_43.setMaxlength(\"20\");\n __jsp_taghandler_43.setName(\"ActivosForm\");\n __jsp_taghandler_43.setProperty(\"act_umanejo\");\n __jsp_taghandler_43.setReadonly(true);\n __jsp_taghandler_43.setSize(\"20\");\n __jsp_tag_starteval=__jsp_taghandler_43.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_43,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_43.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_43.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_43);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[47]);\n /*@lineinfo:translated-code*//*@lineinfo:96^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_44=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_44.setParent(__jsp_taghandler_5);\n __jsp_taghandler_44.setKey(\"activos3.descripcion\");\n __jsp_tag_starteval=__jsp_taghandler_44.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_44.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_44.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_44);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[48]);\n /*@lineinfo:translated-code*//*@lineinfo:97^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_45=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_45.setParent(__jsp_taghandler_5);\n __jsp_taghandler_45.setMaxlength(\"120\");\n __jsp_taghandler_45.setName(\"ActivosForm\");\n __jsp_taghandler_45.setProperty(\"act_descripcion\");\n __jsp_taghandler_45.setReadonly(true);\n __jsp_taghandler_45.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_45.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_45,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_45.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_45.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_45);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[49]);\n /*@lineinfo:translated-code*//*@lineinfo:100^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_46=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_46.setParent(__jsp_taghandler_5);\n __jsp_taghandler_46.setKey(\"activos3.desadicional\");\n __jsp_tag_starteval=__jsp_taghandler_46.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_46.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_46.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_46);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[50]);\n /*@lineinfo:translated-code*//*@lineinfo:101^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_47=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_47.setParent(__jsp_taghandler_5);\n __jsp_taghandler_47.setMaxlength(\"240\");\n __jsp_taghandler_47.setName(\"ActivosForm\");\n __jsp_taghandler_47.setProperty(\"act_desadicional\");\n __jsp_taghandler_47.setReadonly(true);\n __jsp_taghandler_47.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_47.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_47,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_47.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_47.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_47);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[51]);\n /*@lineinfo:translated-code*//*@lineinfo:105^13*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_48=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_48.setParent(__jsp_taghandler_5);\n __jsp_taghandler_48.setKey(\"activos.proveedor\");\n __jsp_tag_starteval=__jsp_taghandler_48.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_48.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_48.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_48);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[52]);\n /*@lineinfo:translated-code*//*@lineinfo:108^13*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_49=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_49.setParent(__jsp_taghandler_5);\n __jsp_taghandler_49.setMaxlength(\"50\");\n __jsp_taghandler_49.setName(\"ActivosForm\");\n __jsp_taghandler_49.setProperty(\"act_proveedor\");\n __jsp_taghandler_49.setReadonly(true);\n __jsp_taghandler_49.setSize(\"50\");\n __jsp_tag_starteval=__jsp_taghandler_49.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_49,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_49.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_49.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_49);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[53]);\n /*@lineinfo:translated-code*//*@lineinfo:114^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_50=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_50.setParent(__jsp_taghandler_5);\n __jsp_taghandler_50.setKey(\"activos3.accesorios\");\n __jsp_tag_starteval=__jsp_taghandler_50.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_50.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_50.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_50);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[54]);\n /*@lineinfo:translated-code*//*@lineinfo:115^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_51=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_51.setParent(__jsp_taghandler_5);\n __jsp_taghandler_51.setMaxlength(\"240\");\n __jsp_taghandler_51.setName(\"ActivosForm\");\n __jsp_taghandler_51.setProperty(\"act_accesorios\");\n __jsp_taghandler_51.setReadonly(true);\n __jsp_taghandler_51.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_51.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_51,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_51.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_51.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_51);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[55]);\n /*@lineinfo:translated-code*//*@lineinfo:118^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_52=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_52.setParent(__jsp_taghandler_5);\n __jsp_taghandler_52.setKey(\"activos3.proveedor\");\n __jsp_tag_starteval=__jsp_taghandler_52.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_52.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_52.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_52);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[56]);\n /*@lineinfo:translated-code*//*@lineinfo:119^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_53=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_53.setParent(__jsp_taghandler_5);\n __jsp_taghandler_53.setMaxlength(\"50\");\n __jsp_taghandler_53.setName(\"ActivosForm\");\n __jsp_taghandler_53.setProperty(\"act_proveedor\");\n __jsp_taghandler_53.setReadonly(true);\n __jsp_taghandler_53.setSize(\"50\");\n __jsp_tag_starteval=__jsp_taghandler_53.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_53,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_53.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_53.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_53);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[57]);\n /*@lineinfo:translated-code*//*@lineinfo:120^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_54=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_54.setParent(__jsp_taghandler_5);\n __jsp_taghandler_54.setKey(\"activos3.marca\");\n __jsp_tag_starteval=__jsp_taghandler_54.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_54.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_54.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_54);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[58]);\n /*@lineinfo:translated-code*//*@lineinfo:121^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_55=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_55.setParent(__jsp_taghandler_5);\n __jsp_taghandler_55.setMaxlength(\"30\");\n __jsp_taghandler_55.setName(\"ActivosForm\");\n __jsp_taghandler_55.setProperty(\"act_marca\");\n __jsp_taghandler_55.setReadonly(true);\n __jsp_taghandler_55.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_55.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_55,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_55.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_55.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_55);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[59]);\n /*@lineinfo:translated-code*//*@lineinfo:124^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_56=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_56.setParent(__jsp_taghandler_5);\n __jsp_taghandler_56.setKey(\"activos3.modelo\");\n __jsp_tag_starteval=__jsp_taghandler_56.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_56.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_56.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_56);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[60]);\n /*@lineinfo:translated-code*//*@lineinfo:125^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_57=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_57.setParent(__jsp_taghandler_5);\n __jsp_taghandler_57.setMaxlength(\"30\");\n __jsp_taghandler_57.setName(\"ActivosForm\");\n __jsp_taghandler_57.setProperty(\"act_modelo\");\n __jsp_taghandler_57.setReadonly(true);\n __jsp_taghandler_57.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_57.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_57,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_57.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_57.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_57);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[61]);\n /*@lineinfo:translated-code*//*@lineinfo:126^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_58=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_58.setParent(__jsp_taghandler_5);\n __jsp_taghandler_58.setKey(\"activos3.serie1\");\n __jsp_tag_starteval=__jsp_taghandler_58.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_58.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_58.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_58);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[62]);\n /*@lineinfo:translated-code*//*@lineinfo:127^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_59=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_59.setParent(__jsp_taghandler_5);\n __jsp_taghandler_59.setMaxlength(\"30\");\n __jsp_taghandler_59.setName(\"ActivosForm\");\n __jsp_taghandler_59.setProperty(\"act_serie1\");\n __jsp_taghandler_59.setReadonly(true);\n __jsp_taghandler_59.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_59.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_59,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_59.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_59.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_59);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[63]);\n /*@lineinfo:translated-code*//*@lineinfo:130^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_60=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_60.setParent(__jsp_taghandler_5);\n __jsp_taghandler_60.setKey(\"activos3.color\");\n __jsp_tag_starteval=__jsp_taghandler_60.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_60.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_60.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_60);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[64]);\n /*@lineinfo:translated-code*//*@lineinfo:131^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_61=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_61.setParent(__jsp_taghandler_5);\n __jsp_taghandler_61.setMaxlength(\"30\");\n __jsp_taghandler_61.setName(\"ActivosForm\");\n __jsp_taghandler_61.setProperty(\"act_color\");\n __jsp_taghandler_61.setReadonly(true);\n __jsp_taghandler_61.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_61.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_61,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_61.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_61.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_61);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[65]);\n /*@lineinfo:translated-code*//*@lineinfo:134^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_62=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_62.setParent(__jsp_taghandler_5);\n __jsp_taghandler_62.setKey(\"activos3.procedencia\");\n __jsp_tag_starteval=__jsp_taghandler_62.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_62.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_62.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_62);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[66]);\n /*@lineinfo:translated-code*//*@lineinfo:135^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_63=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_63.setParent(__jsp_taghandler_5);\n __jsp_taghandler_63.setMaxlength(\"30\");\n __jsp_taghandler_63.setName(\"ActivosForm\");\n __jsp_taghandler_63.setProperty(\"act_procedencia\");\n __jsp_taghandler_63.setReadonly(true);\n __jsp_taghandler_63.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_63.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_63,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_63.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_63.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_63);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[67]);\n /*@lineinfo:translated-code*//*@lineinfo:136^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_64=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_64.setParent(__jsp_taghandler_5);\n __jsp_taghandler_64.setKey(\"activos3.gobmunicipal\");\n __jsp_tag_starteval=__jsp_taghandler_64.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_64.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_64.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_64);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[68]);\n /*@lineinfo:translated-code*//*@lineinfo:137^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_65=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_65.setParent(__jsp_taghandler_5);\n __jsp_taghandler_65.setMaxlength(\"30\");\n __jsp_taghandler_65.setName(\"ActivosForm\");\n __jsp_taghandler_65.setProperty(\"act_gobmunicipal\");\n __jsp_taghandler_65.setReadonly(true);\n __jsp_taghandler_65.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_65.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_65,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_65.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_65.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_65);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[69]);\n /*@lineinfo:translated-code*//*@lineinfo:140^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_66=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_66.setParent(__jsp_taghandler_5);\n __jsp_taghandler_66.setKey(\"activos3.valcobol\");\n __jsp_tag_starteval=__jsp_taghandler_66.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_66.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_66.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_66);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[70]);\n /*@lineinfo:translated-code*//*@lineinfo:141^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_67=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_67.setParent(__jsp_taghandler_5);\n __jsp_taghandler_67.setMaxlength(\"15\");\n __jsp_taghandler_67.setName(\"ActivosForm\");\n __jsp_taghandler_67.setProperty(\"act_valcobol\");\n __jsp_taghandler_67.setReadonly(true);\n __jsp_taghandler_67.setSize(\"15\");\n __jsp_tag_starteval=__jsp_taghandler_67.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_67,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_67.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_67.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_67);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[71]);\n /*@lineinfo:translated-code*//*@lineinfo:142^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_68=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_68.setParent(__jsp_taghandler_5);\n __jsp_taghandler_68.setKey(\"activos3.ordencompra\");\n __jsp_tag_starteval=__jsp_taghandler_68.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_68.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_68.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_68);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[72]);\n /*@lineinfo:translated-code*//*@lineinfo:143^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_69=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_69.setParent(__jsp_taghandler_5);\n __jsp_taghandler_69.setMaxlength(\"20\");\n __jsp_taghandler_69.setName(\"ActivosForm\");\n __jsp_taghandler_69.setProperty(\"act_ordencompra\");\n __jsp_taghandler_69.setReadonly(true);\n __jsp_taghandler_69.setSize(\"20\");\n __jsp_tag_starteval=__jsp_taghandler_69.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_69,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_69.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_69.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_69);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[73]);\n /*@lineinfo:translated-code*//*@lineinfo:146^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_70=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_70.setParent(__jsp_taghandler_5);\n __jsp_taghandler_70.setKey(\"activos3.numfactura\");\n __jsp_tag_starteval=__jsp_taghandler_70.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_70.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_70.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_70);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[74]);\n /*@lineinfo:translated-code*//*@lineinfo:147^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_71=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_71.setParent(__jsp_taghandler_5);\n __jsp_taghandler_71.setMaxlength(\"8\");\n __jsp_taghandler_71.setName(\"ActivosForm\");\n __jsp_taghandler_71.setProperty(\"act_numfactura\");\n __jsp_taghandler_71.setReadonly(true);\n __jsp_taghandler_71.setSize(\"8\");\n __jsp_tag_starteval=__jsp_taghandler_71.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_71,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_71.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_71.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_71);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[75]);\n /*@lineinfo:translated-code*//*@lineinfo:148^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_72=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_72.setParent(__jsp_taghandler_5);\n __jsp_taghandler_72.setKey(\"activos3.numcomprobante\");\n __jsp_tag_starteval=__jsp_taghandler_72.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_72.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_72.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_72);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[76]);\n /*@lineinfo:translated-code*//*@lineinfo:149^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_73=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_73.setParent(__jsp_taghandler_5);\n __jsp_taghandler_73.setMaxlength(\"20\");\n __jsp_taghandler_73.setName(\"ActivosForm\");\n __jsp_taghandler_73.setProperty(\"act_numcomprobante\");\n __jsp_taghandler_73.setReadonly(true);\n __jsp_taghandler_73.setSize(\"20\");\n __jsp_tag_starteval=__jsp_taghandler_73.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_73,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_73.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_73.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_73);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[77]);\n /*@lineinfo:translated-code*//*@lineinfo:152^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_74=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_74.setParent(__jsp_taghandler_5);\n __jsp_taghandler_74.setKey(\"activos3.codanterior\");\n __jsp_tag_starteval=__jsp_taghandler_74.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_74.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_74.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_74);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[78]);\n /*@lineinfo:translated-code*//*@lineinfo:153^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_75=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_75.setParent(__jsp_taghandler_5);\n __jsp_taghandler_75.setMaxlength(\"20\");\n __jsp_taghandler_75.setName(\"ActivosForm\");\n __jsp_taghandler_75.setProperty(\"act_codanterior\");\n __jsp_taghandler_75.setReadonly(true);\n __jsp_taghandler_75.setSize(\"20\");\n __jsp_tag_starteval=__jsp_taghandler_75.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_75,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_75.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_75.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_75);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[79]);\n /*@lineinfo:translated-code*//*@lineinfo:154^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_76=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_76.setParent(__jsp_taghandler_5);\n __jsp_taghandler_76.setKey(\"activos3.fecha\");\n __jsp_tag_starteval=__jsp_taghandler_76.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_76.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_76.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_76);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[80]);\n /*@lineinfo:translated-code*//*@lineinfo:155^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_77=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_77.setParent(__jsp_taghandler_5);\n __jsp_taghandler_77.setMaxlength(\"10\");\n __jsp_taghandler_77.setName(\"ActivosForm\");\n __jsp_taghandler_77.setProperty(\"rev_fecha\");\n __jsp_taghandler_77.setReadonly(true);\n __jsp_taghandler_77.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_77.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_77,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_77.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_77.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_77);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[81]);\n /*@lineinfo:translated-code*//*@lineinfo:158^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_78=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_78.setParent(__jsp_taghandler_5);\n __jsp_taghandler_78.setKey(\"activos3.vidaut\");\n __jsp_tag_starteval=__jsp_taghandler_78.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_78.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_78.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_78);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[82]);\n /*@lineinfo:translated-code*//*@lineinfo:159^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_79=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_79.setParent(__jsp_taghandler_5);\n __jsp_taghandler_79.setMaxlength(\"4\");\n __jsp_taghandler_79.setName(\"ActivosForm\");\n __jsp_taghandler_79.setProperty(\"rev_vidaut\");\n __jsp_taghandler_79.setReadonly(true);\n __jsp_taghandler_79.setSize(\"4\");\n __jsp_tag_starteval=__jsp_taghandler_79.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_79,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_79.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_79.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_79);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[83]);\n /*@lineinfo:translated-code*//*@lineinfo:160^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_80=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_80.setParent(__jsp_taghandler_5);\n __jsp_taghandler_80.setKey(\"activos3.estadoactivo\");\n __jsp_tag_starteval=__jsp_taghandler_80.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_80.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_80.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_80);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[84]);\n /*@lineinfo:translated-code*//*@lineinfo:161^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_81=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag name property readonly size\");\n __jsp_taghandler_81.setParent(__jsp_taghandler_5);\n __jsp_taghandler_81.setName(\"ActivosForm\");\n __jsp_taghandler_81.setProperty(\"desestado\");\n __jsp_taghandler_81.setReadonly(true);\n __jsp_taghandler_81.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_81.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_81,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_81.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_81.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_81);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[85]);\n /*@lineinfo:translated-code*//*@lineinfo:164^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_82=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_82.setParent(__jsp_taghandler_5);\n __jsp_taghandler_82.setKey(\"activos3.desestado\");\n __jsp_tag_starteval=__jsp_taghandler_82.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_82.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_82.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_82);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[86]);\n /*@lineinfo:translated-code*//*@lineinfo:165^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_83=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_83.setParent(__jsp_taghandler_5);\n __jsp_taghandler_83.setMaxlength(\"60\");\n __jsp_taghandler_83.setName(\"ActivosForm\");\n __jsp_taghandler_83.setProperty(\"rev_desestado\");\n __jsp_taghandler_83.setReadonly(true);\n __jsp_taghandler_83.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_83.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_83,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_83.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_83.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_83);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[87]);\n /*@lineinfo:translated-code*//*@lineinfo:168^24*/ {\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_84=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\");\n __jsp_taghandler_84.setParent(__jsp_taghandler_5);\n __jsp_taghandler_84.setOnclick(\"operacion.value=2;opcion.value=4\");\n __jsp_taghandler_84.setProperty(\"boton\");\n __jsp_taghandler_84.setStyleClass(\"boton1\");\n __jsp_taghandler_84.setValue(\"Consultar\");\n __jsp_tag_starteval=__jsp_taghandler_84.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_84,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_84.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_84.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_84);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[88]);\n /*@lineinfo:translated-code*//*@lineinfo:168^137*/ } while (__jsp_taghandler_5.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[89]);\n /*@lineinfo:translated-code*//*@lineinfo:172^4*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_85=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_85.setParent(__jsp_taghandler_4);\n __jsp_taghandler_85.setName(\"ActivosForm\");\n __jsp_taghandler_85.setProperty(\"opcion\");\n __jsp_taghandler_85.setValue(\"5\");\n __jsp_tag_starteval=__jsp_taghandler_85.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[90]);\n /*@lineinfo:translated-code*//*@lineinfo:175^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_86=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_86.setParent(__jsp_taghandler_85);\n __jsp_taghandler_86.setKey(\"activos3.codrub\");\n __jsp_tag_starteval=__jsp_taghandler_86.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_86.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_86.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_86);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[91]);\n /*@lineinfo:translated-code*//*@lineinfo:176^26*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_87=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_87.setParent(__jsp_taghandler_85);\n __jsp_taghandler_87.setMaxlength(\"10\");\n __jsp_taghandler_87.setName(\"ActivosForm\");\n __jsp_taghandler_87.setProperty(\"act_codrub\");\n __jsp_taghandler_87.setReadonly(true);\n __jsp_taghandler_87.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_87.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_87,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_87.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_87.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_87);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[92]);\n /*@lineinfo:translated-code*//*@lineinfo:177^10*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_88=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_88.setParent(__jsp_taghandler_85);\n __jsp_taghandler_88.setMaxlength(\"60\");\n __jsp_taghandler_88.setName(\"ActivosForm\");\n __jsp_taghandler_88.setProperty(\"act_rubdescripcion\");\n __jsp_taghandler_88.setReadonly(true);\n __jsp_taghandler_88.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_88.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_88,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_88.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_88.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_88);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[93]);\n /*@lineinfo:translated-code*//*@lineinfo:180^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_89=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_89.setParent(__jsp_taghandler_85);\n __jsp_taghandler_89.setKey(\"activos3.codreg\");\n __jsp_tag_starteval=__jsp_taghandler_89.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_89.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_89.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_89);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[94]);\n /*@lineinfo:translated-code*//*@lineinfo:181^26*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_90=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_90.setParent(__jsp_taghandler_85);\n __jsp_taghandler_90.setMaxlength(\"10\");\n __jsp_taghandler_90.setName(\"ActivosForm\");\n __jsp_taghandler_90.setProperty(\"act_codreg\");\n __jsp_taghandler_90.setReadonly(true);\n __jsp_taghandler_90.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_90.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_90,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_90.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_90.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_90);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[95]);\n /*@lineinfo:translated-code*//*@lineinfo:182^10*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_91=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_91.setParent(__jsp_taghandler_85);\n __jsp_taghandler_91.setMaxlength(\"60\");\n __jsp_taghandler_91.setName(\"ActivosForm\");\n __jsp_taghandler_91.setProperty(\"act_regdescripcion\");\n __jsp_taghandler_91.setReadonly(true);\n __jsp_taghandler_91.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_91.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_91,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_91.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_91.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_91);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[96]);\n /*@lineinfo:translated-code*//*@lineinfo:185^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_92=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_92.setParent(__jsp_taghandler_85);\n __jsp_taghandler_92.setKey(\"activos3.codigo\");\n __jsp_tag_starteval=__jsp_taghandler_92.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_92.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_92.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_92);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[97]);\n /*@lineinfo:translated-code*//*@lineinfo:186^26*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_93=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_93.setParent(__jsp_taghandler_85);\n __jsp_taghandler_93.setMaxlength(\"5\");\n __jsp_taghandler_93.setName(\"ActivosForm\");\n __jsp_taghandler_93.setProperty(\"act_codigo\");\n __jsp_taghandler_93.setReadonly(true);\n __jsp_taghandler_93.setSize(\"5\");\n __jsp_tag_starteval=__jsp_taghandler_93.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_93,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_93.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_93.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_93);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[98]);\n /*@lineinfo:translated-code*//*@lineinfo:187^10*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_94=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_94.setParent(__jsp_taghandler_85);\n __jsp_taghandler_94.setMaxlength(\"10\");\n __jsp_taghandler_94.setName(\"ActivosForm\");\n __jsp_taghandler_94.setProperty(\"act_codbarra\");\n __jsp_taghandler_94.setReadonly(true);\n __jsp_taghandler_94.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_94.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_94,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_94.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_94.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_94);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[99]);\n /*@lineinfo:translated-code*//*@lineinfo:190^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_95=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_95.setParent(__jsp_taghandler_85);\n __jsp_taghandler_95.setKey(\"activos3.codgrp\");\n __jsp_tag_starteval=__jsp_taghandler_95.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_95.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_95.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_95);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[100]);\n /*@lineinfo:translated-code*//*@lineinfo:192^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_96=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_96.setParent(__jsp_taghandler_85);\n __jsp_taghandler_96.setMaxlength(\"40\");\n __jsp_taghandler_96.setName(\"ActivosForm\");\n __jsp_taghandler_96.setProperty(\"act_grpdescripcion\");\n __jsp_taghandler_96.setReadonly(true);\n __jsp_taghandler_96.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_96.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_96,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_96.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_96.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_96);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[101]);\n /*@lineinfo:translated-code*//*@lineinfo:193^14*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_97=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_97.setParent(__jsp_taghandler_85);\n __jsp_taghandler_97.setName(\"ActivosForm\");\n __jsp_taghandler_97.setProperty(\"act_codgrp\");\n __jsp_tag_starteval=__jsp_taghandler_97.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_97,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_97.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_97.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_97);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[102]);\n /*@lineinfo:translated-code*//*@lineinfo:195^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_98=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_98.setParent(__jsp_taghandler_85);\n __jsp_taghandler_98.setKey(\"activos3.codpar\");\n __jsp_tag_starteval=__jsp_taghandler_98.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_98.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_98.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_98);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[103]);\n /*@lineinfo:translated-code*//*@lineinfo:197^15*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_99=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_99.setParent(__jsp_taghandler_85);\n __jsp_taghandler_99.setMaxlength(\"40\");\n __jsp_taghandler_99.setName(\"ActivosForm\");\n __jsp_taghandler_99.setProperty(\"act_pardescripcion\");\n __jsp_taghandler_99.setReadonly(true);\n __jsp_taghandler_99.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_99.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_99,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_99.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_99.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_99);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[104]);\n /*@lineinfo:translated-code*//*@lineinfo:198^15*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_100=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_100.setParent(__jsp_taghandler_85);\n __jsp_taghandler_100.setName(\"ActivosForm\");\n __jsp_taghandler_100.setProperty(\"act_codpar\");\n __jsp_tag_starteval=__jsp_taghandler_100.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_100,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_100.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_100.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_100);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[105]);\n /*@lineinfo:translated-code*//*@lineinfo:202^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_101=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_101.setParent(__jsp_taghandler_85);\n __jsp_taghandler_101.setKey(\"activos3.codofi\");\n __jsp_tag_starteval=__jsp_taghandler_101.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_101.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_101.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_101);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[106]);\n /*@lineinfo:translated-code*//*@lineinfo:204^10*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_102=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_102.setParent(__jsp_taghandler_85);\n __jsp_taghandler_102.setMaxlength(\"40\");\n __jsp_taghandler_102.setName(\"ActivosForm\");\n __jsp_taghandler_102.setProperty(\"act_ofidescripcion\");\n __jsp_taghandler_102.setReadonly(true);\n __jsp_taghandler_102.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_102.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_102,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_102.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_102.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_102);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[107]);\n /*@lineinfo:translated-code*//*@lineinfo:205^10*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_103=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_103.setParent(__jsp_taghandler_85);\n __jsp_taghandler_103.setName(\"ActivosForm\");\n __jsp_taghandler_103.setProperty(\"act_codofi\");\n __jsp_tag_starteval=__jsp_taghandler_103.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_103,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_103.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_103.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_103);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[108]);\n /*@lineinfo:translated-code*//*@lineinfo:207^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_104=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_104.setParent(__jsp_taghandler_85);\n __jsp_taghandler_104.setKey(\"activos3.codfun\");\n __jsp_tag_starteval=__jsp_taghandler_104.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_104.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_104.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_104);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[109]);\n /*@lineinfo:translated-code*//*@lineinfo:209^10*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_105=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_105.setParent(__jsp_taghandler_85);\n __jsp_taghandler_105.setMaxlength(\"40\");\n __jsp_taghandler_105.setName(\"ActivosForm\");\n __jsp_taghandler_105.setProperty(\"act_fundescripcion\");\n __jsp_taghandler_105.setReadonly(true);\n __jsp_taghandler_105.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_105.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_105,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_105.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_105.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_105);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[110]);\n /*@lineinfo:translated-code*//*@lineinfo:210^10*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_106=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_106.setParent(__jsp_taghandler_85);\n __jsp_taghandler_106.setName(\"ActivosForm\");\n __jsp_taghandler_106.setProperty(\"act_codfun\");\n __jsp_tag_starteval=__jsp_taghandler_106.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_106,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_106.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_106.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_106);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[111]);\n /*@lineinfo:translated-code*//*@lineinfo:214^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_107=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_107.setParent(__jsp_taghandler_85);\n __jsp_taghandler_107.setKey(\"activos3.codubi\");\n __jsp_tag_starteval=__jsp_taghandler_107.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_107.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_107.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_107);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[112]);\n /*@lineinfo:translated-code*//*@lineinfo:216^15*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_108=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_108.setParent(__jsp_taghandler_85);\n __jsp_taghandler_108.setMaxlength(\"40\");\n __jsp_taghandler_108.setName(\"ActivosForm\");\n __jsp_taghandler_108.setProperty(\"act_ubidescripcion\");\n __jsp_taghandler_108.setReadonly(true);\n __jsp_taghandler_108.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_108.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_108,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_108.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_108.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_108);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[113]);\n /*@lineinfo:translated-code*//*@lineinfo:217^15*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_109=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_109.setParent(__jsp_taghandler_85);\n __jsp_taghandler_109.setName(\"ActivosForm\");\n __jsp_taghandler_109.setProperty(\"act_codubi\");\n __jsp_tag_starteval=__jsp_taghandler_109.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_109,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_109.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_109.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_109);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[114]);\n /*@lineinfo:translated-code*//*@lineinfo:219^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_110=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_110.setParent(__jsp_taghandler_85);\n __jsp_taghandler_110.setKey(\"activos3.codpry\");\n __jsp_tag_starteval=__jsp_taghandler_110.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_110.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_110.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_110);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[115]);\n /*@lineinfo:translated-code*//*@lineinfo:221^15*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_111=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_111.setParent(__jsp_taghandler_85);\n __jsp_taghandler_111.setMaxlength(\"40\");\n __jsp_taghandler_111.setName(\"ActivosForm\");\n __jsp_taghandler_111.setProperty(\"act_prydescripcion\");\n __jsp_taghandler_111.setReadonly(true);\n __jsp_taghandler_111.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_111.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_111,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_111.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_111.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_111);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[116]);\n /*@lineinfo:translated-code*//*@lineinfo:222^15*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_112=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_112.setParent(__jsp_taghandler_85);\n __jsp_taghandler_112.setName(\"ActivosForm\");\n __jsp_taghandler_112.setProperty(\"act_codpry\");\n __jsp_tag_starteval=__jsp_taghandler_112.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_112,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_112.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_112.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_112);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[117]);\n /*@lineinfo:translated-code*//*@lineinfo:226^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_113=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_113.setParent(__jsp_taghandler_85);\n __jsp_taghandler_113.setKey(\"activos3.codfin\");\n __jsp_tag_starteval=__jsp_taghandler_113.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_113.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_113.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_113);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[118]);\n /*@lineinfo:translated-code*//*@lineinfo:228^15*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_114=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_114.setParent(__jsp_taghandler_85);\n __jsp_taghandler_114.setMaxlength(\"40\");\n __jsp_taghandler_114.setName(\"ActivosForm\");\n __jsp_taghandler_114.setProperty(\"act_findescripcion\");\n __jsp_taghandler_114.setReadonly(true);\n __jsp_taghandler_114.setSize(\"40\");\n __jsp_tag_starteval=__jsp_taghandler_114.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_114,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_114.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_114.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_114);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[119]);\n /*@lineinfo:translated-code*//*@lineinfo:229^15*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_115=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_115.setParent(__jsp_taghandler_85);\n __jsp_taghandler_115.setName(\"ActivosForm\");\n __jsp_taghandler_115.setProperty(\"act_codfin\");\n __jsp_tag_starteval=__jsp_taghandler_115.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_115,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_115.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_115.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_115);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[120]);\n /*@lineinfo:translated-code*//*@lineinfo:233^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_116=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_116.setParent(__jsp_taghandler_85);\n __jsp_taghandler_116.setKey(\"activos3.feccompra\");\n __jsp_tag_starteval=__jsp_taghandler_116.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_116.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_116.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_116);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[121]);\n /*@lineinfo:translated-code*//*@lineinfo:234^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_117=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_117.setParent(__jsp_taghandler_85);\n __jsp_taghandler_117.setMaxlength(\"10\");\n __jsp_taghandler_117.setName(\"ActivosForm\");\n __jsp_taghandler_117.setProperty(\"act_feccompra\");\n __jsp_taghandler_117.setReadonly(true);\n __jsp_taghandler_117.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_117.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_117,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_117.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_117.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_117);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[122]);\n /*@lineinfo:translated-code*//*@lineinfo:235^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_118=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_118.setParent(__jsp_taghandler_85);\n __jsp_taghandler_118.setKey(\"activos3.tipcam\");\n __jsp_tag_starteval=__jsp_taghandler_118.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_118.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_118.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_118);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[123]);\n /*@lineinfo:translated-code*//*@lineinfo:236^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_119=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_119.setParent(__jsp_taghandler_85);\n __jsp_taghandler_119.setMaxlength(\"11\");\n __jsp_taghandler_119.setName(\"ActivosForm\");\n __jsp_taghandler_119.setProperty(\"act_tipcam\");\n __jsp_taghandler_119.setReadonly(true);\n __jsp_taghandler_119.setSize(\"11\");\n __jsp_tag_starteval=__jsp_taghandler_119.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_119,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_119.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_119.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_119);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[124]);\n /*@lineinfo:translated-code*//*@lineinfo:239^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_120=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_120.setParent(__jsp_taghandler_85);\n __jsp_taghandler_120.setKey(\"activos3.tipufv\");\n __jsp_tag_starteval=__jsp_taghandler_120.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_120.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_120.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_120);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[125]);\n /*@lineinfo:translated-code*//*@lineinfo:240^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_121=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_121.setParent(__jsp_taghandler_85);\n __jsp_taghandler_121.setMaxlength(\"11\");\n __jsp_taghandler_121.setName(\"ActivosForm\");\n __jsp_taghandler_121.setProperty(\"act_tipufv\");\n __jsp_taghandler_121.setReadonly(true);\n __jsp_taghandler_121.setSize(\"11\");\n __jsp_tag_starteval=__jsp_taghandler_121.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_121,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_121.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_121.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_121);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[126]);\n /*@lineinfo:translated-code*//*@lineinfo:241^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_122=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_122.setParent(__jsp_taghandler_85);\n __jsp_taghandler_122.setKey(\"activos3.umanejo\");\n __jsp_tag_starteval=__jsp_taghandler_122.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_122.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_122.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_122);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[127]);\n /*@lineinfo:translated-code*//*@lineinfo:242^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_123=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_123.setParent(__jsp_taghandler_85);\n __jsp_taghandler_123.setMaxlength(\"20\");\n __jsp_taghandler_123.setName(\"ActivosForm\");\n __jsp_taghandler_123.setProperty(\"act_umanejo\");\n __jsp_taghandler_123.setReadonly(true);\n __jsp_taghandler_123.setSize(\"20\");\n __jsp_tag_starteval=__jsp_taghandler_123.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_123,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_123.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_123.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_123);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[128]);\n /*@lineinfo:translated-code*//*@lineinfo:247^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_124=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_124.setParent(__jsp_taghandler_85);\n __jsp_taghandler_124.setKey(\"activos3.descripcion\");\n __jsp_tag_starteval=__jsp_taghandler_124.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_124.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_124.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_124);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[129]);\n /*@lineinfo:translated-code*//*@lineinfo:248^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_125=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_125.setParent(__jsp_taghandler_85);\n __jsp_taghandler_125.setMaxlength(\"120\");\n __jsp_taghandler_125.setName(\"ActivosForm\");\n __jsp_taghandler_125.setProperty(\"act_descripcion\");\n __jsp_taghandler_125.setReadonly(true);\n __jsp_taghandler_125.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_125.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_125,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_125.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_125.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_125);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[130]);\n /*@lineinfo:translated-code*//*@lineinfo:251^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_126=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_126.setParent(__jsp_taghandler_85);\n __jsp_taghandler_126.setKey(\"activos3.desadicional\");\n __jsp_tag_starteval=__jsp_taghandler_126.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_126.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_126.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_126);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[131]);\n /*@lineinfo:translated-code*//*@lineinfo:252^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_127=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_127.setParent(__jsp_taghandler_85);\n __jsp_taghandler_127.setMaxlength(\"240\");\n __jsp_taghandler_127.setName(\"ActivosForm\");\n __jsp_taghandler_127.setProperty(\"act_desadicional\");\n __jsp_taghandler_127.setReadonly(true);\n __jsp_taghandler_127.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_127.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_127,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_127.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_127.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_127);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[132]);\n /*@lineinfo:translated-code*//*@lineinfo:256^13*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_128=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_128.setParent(__jsp_taghandler_85);\n __jsp_taghandler_128.setKey(\"activos.proveedor\");\n __jsp_tag_starteval=__jsp_taghandler_128.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_128.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_128.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_128);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[133]);\n /*@lineinfo:translated-code*//*@lineinfo:259^13*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_129=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_129.setParent(__jsp_taghandler_85);\n __jsp_taghandler_129.setMaxlength(\"50\");\n __jsp_taghandler_129.setName(\"ActivosForm\");\n __jsp_taghandler_129.setProperty(\"act_proveedor\");\n __jsp_taghandler_129.setReadonly(true);\n __jsp_taghandler_129.setSize(\"50\");\n __jsp_tag_starteval=__jsp_taghandler_129.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_129,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_129.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_129.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_129);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[134]);\n /*@lineinfo:translated-code*//*@lineinfo:265^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_130=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_130.setParent(__jsp_taghandler_85);\n __jsp_taghandler_130.setKey(\"activos3.accesorios\");\n __jsp_tag_starteval=__jsp_taghandler_130.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_130.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_130.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_130);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[135]);\n /*@lineinfo:translated-code*//*@lineinfo:266^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_131=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_131.setParent(__jsp_taghandler_85);\n __jsp_taghandler_131.setMaxlength(\"240\");\n __jsp_taghandler_131.setName(\"ActivosForm\");\n __jsp_taghandler_131.setProperty(\"act_accesorios\");\n __jsp_taghandler_131.setReadonly(true);\n __jsp_taghandler_131.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_131.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_131,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_131.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_131.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_131);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[136]);\n /*@lineinfo:translated-code*//*@lineinfo:269^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_132=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_132.setParent(__jsp_taghandler_85);\n __jsp_taghandler_132.setKey(\"activos3.proveedor\");\n __jsp_tag_starteval=__jsp_taghandler_132.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_132.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_132.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_132);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[137]);\n /*@lineinfo:translated-code*//*@lineinfo:270^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_133=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_133.setParent(__jsp_taghandler_85);\n __jsp_taghandler_133.setMaxlength(\"50\");\n __jsp_taghandler_133.setName(\"ActivosForm\");\n __jsp_taghandler_133.setProperty(\"act_proveedor\");\n __jsp_taghandler_133.setReadonly(true);\n __jsp_taghandler_133.setSize(\"50\");\n __jsp_tag_starteval=__jsp_taghandler_133.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_133,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_133.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_133.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_133);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[138]);\n /*@lineinfo:translated-code*//*@lineinfo:271^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_134=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_134.setParent(__jsp_taghandler_85);\n __jsp_taghandler_134.setKey(\"activos3.marca\");\n __jsp_tag_starteval=__jsp_taghandler_134.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_134.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_134.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_134);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[139]);\n /*@lineinfo:translated-code*//*@lineinfo:272^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_135=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_135.setParent(__jsp_taghandler_85);\n __jsp_taghandler_135.setMaxlength(\"30\");\n __jsp_taghandler_135.setName(\"ActivosForm\");\n __jsp_taghandler_135.setProperty(\"act_marca\");\n __jsp_taghandler_135.setReadonly(true);\n __jsp_taghandler_135.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_135.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_135,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_135.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_135.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_135);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[140]);\n /*@lineinfo:translated-code*//*@lineinfo:275^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_136=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_136.setParent(__jsp_taghandler_85);\n __jsp_taghandler_136.setKey(\"activos3.modelo\");\n __jsp_tag_starteval=__jsp_taghandler_136.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_136.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_136.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_136);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[141]);\n /*@lineinfo:translated-code*//*@lineinfo:276^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_137=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_137.setParent(__jsp_taghandler_85);\n __jsp_taghandler_137.setMaxlength(\"30\");\n __jsp_taghandler_137.setName(\"ActivosForm\");\n __jsp_taghandler_137.setProperty(\"act_modelo\");\n __jsp_taghandler_137.setReadonly(true);\n __jsp_taghandler_137.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_137.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_137,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_137.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_137.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_137);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[142]);\n /*@lineinfo:translated-code*//*@lineinfo:277^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_138=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_138.setParent(__jsp_taghandler_85);\n __jsp_taghandler_138.setKey(\"activos3.serie1\");\n __jsp_tag_starteval=__jsp_taghandler_138.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_138.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_138.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_138);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[143]);\n /*@lineinfo:translated-code*//*@lineinfo:278^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_139=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_139.setParent(__jsp_taghandler_85);\n __jsp_taghandler_139.setMaxlength(\"30\");\n __jsp_taghandler_139.setName(\"ActivosForm\");\n __jsp_taghandler_139.setProperty(\"act_serie1\");\n __jsp_taghandler_139.setReadonly(true);\n __jsp_taghandler_139.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_139.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_139,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_139.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_139.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_139);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[144]);\n /*@lineinfo:translated-code*//*@lineinfo:281^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_140=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_140.setParent(__jsp_taghandler_85);\n __jsp_taghandler_140.setKey(\"activos3.color\");\n __jsp_tag_starteval=__jsp_taghandler_140.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_140.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_140.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_140);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[145]);\n /*@lineinfo:translated-code*//*@lineinfo:282^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_141=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_141.setParent(__jsp_taghandler_85);\n __jsp_taghandler_141.setMaxlength(\"30\");\n __jsp_taghandler_141.setName(\"ActivosForm\");\n __jsp_taghandler_141.setProperty(\"act_color\");\n __jsp_taghandler_141.setReadonly(true);\n __jsp_taghandler_141.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_141.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_141,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_141.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_141.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_141);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[146]);\n /*@lineinfo:translated-code*//*@lineinfo:285^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_142=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_142.setParent(__jsp_taghandler_85);\n __jsp_taghandler_142.setKey(\"activos3.procedencia\");\n __jsp_tag_starteval=__jsp_taghandler_142.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_142.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_142.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_142);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[147]);\n /*@lineinfo:translated-code*//*@lineinfo:286^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_143=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_143.setParent(__jsp_taghandler_85);\n __jsp_taghandler_143.setMaxlength(\"30\");\n __jsp_taghandler_143.setName(\"ActivosForm\");\n __jsp_taghandler_143.setProperty(\"act_procedencia\");\n __jsp_taghandler_143.setReadonly(true);\n __jsp_taghandler_143.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_143.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_143,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_143.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_143.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_143);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[148]);\n /*@lineinfo:translated-code*//*@lineinfo:287^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_144=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_144.setParent(__jsp_taghandler_85);\n __jsp_taghandler_144.setKey(\"activos3.gobmunicipal\");\n __jsp_tag_starteval=__jsp_taghandler_144.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_144.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_144.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_144);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[149]);\n /*@lineinfo:translated-code*//*@lineinfo:288^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_145=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_145.setParent(__jsp_taghandler_85);\n __jsp_taghandler_145.setMaxlength(\"30\");\n __jsp_taghandler_145.setName(\"ActivosForm\");\n __jsp_taghandler_145.setProperty(\"act_gobmunicipal\");\n __jsp_taghandler_145.setReadonly(true);\n __jsp_taghandler_145.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_145.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_145,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_145.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_145.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_145);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[150]);\n /*@lineinfo:translated-code*//*@lineinfo:291^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_146=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_146.setParent(__jsp_taghandler_85);\n __jsp_taghandler_146.setKey(\"activos3.valcobol\");\n __jsp_tag_starteval=__jsp_taghandler_146.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_146.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_146.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_146);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[151]);\n /*@lineinfo:translated-code*//*@lineinfo:292^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_147=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_147.setParent(__jsp_taghandler_85);\n __jsp_taghandler_147.setMaxlength(\"15\");\n __jsp_taghandler_147.setName(\"ActivosForm\");\n __jsp_taghandler_147.setProperty(\"act_valcobol\");\n __jsp_taghandler_147.setReadonly(true);\n __jsp_taghandler_147.setSize(\"15\");\n __jsp_tag_starteval=__jsp_taghandler_147.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_147,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_147.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_147.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_147);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[152]);\n /*@lineinfo:translated-code*//*@lineinfo:293^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_148=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_148.setParent(__jsp_taghandler_85);\n __jsp_taghandler_148.setKey(\"activos3.ordencompra\");\n __jsp_tag_starteval=__jsp_taghandler_148.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_148.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_148.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_148);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[153]);\n /*@lineinfo:translated-code*//*@lineinfo:294^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_149=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_149.setParent(__jsp_taghandler_85);\n __jsp_taghandler_149.setMaxlength(\"20\");\n __jsp_taghandler_149.setName(\"ActivosForm\");\n __jsp_taghandler_149.setProperty(\"act_ordencompra\");\n __jsp_taghandler_149.setReadonly(true);\n __jsp_taghandler_149.setSize(\"20\");\n __jsp_tag_starteval=__jsp_taghandler_149.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_149,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_149.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_149.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_149);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[154]);\n /*@lineinfo:translated-code*//*@lineinfo:297^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_150=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_150.setParent(__jsp_taghandler_85);\n __jsp_taghandler_150.setKey(\"activos3.numfactura\");\n __jsp_tag_starteval=__jsp_taghandler_150.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_150.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_150.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_150);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[155]);\n /*@lineinfo:translated-code*//*@lineinfo:298^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_151=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_151.setParent(__jsp_taghandler_85);\n __jsp_taghandler_151.setMaxlength(\"8\");\n __jsp_taghandler_151.setName(\"ActivosForm\");\n __jsp_taghandler_151.setProperty(\"act_numfactura\");\n __jsp_taghandler_151.setReadonly(true);\n __jsp_taghandler_151.setSize(\"8\");\n __jsp_tag_starteval=__jsp_taghandler_151.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_151,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_151.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_151.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_151);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[156]);\n /*@lineinfo:translated-code*//*@lineinfo:299^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_152=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_152.setParent(__jsp_taghandler_85);\n __jsp_taghandler_152.setKey(\"activos3.numcomprobante\");\n __jsp_tag_starteval=__jsp_taghandler_152.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_152.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_152.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_152);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[157]);\n /*@lineinfo:translated-code*//*@lineinfo:300^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_153=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_153.setParent(__jsp_taghandler_85);\n __jsp_taghandler_153.setMaxlength(\"20\");\n __jsp_taghandler_153.setName(\"ActivosForm\");\n __jsp_taghandler_153.setProperty(\"act_numcomprobante\");\n __jsp_taghandler_153.setReadonly(true);\n __jsp_taghandler_153.setSize(\"20\");\n __jsp_tag_starteval=__jsp_taghandler_153.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_153,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_153.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_153.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_153);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[158]);\n /*@lineinfo:translated-code*//*@lineinfo:303^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_154=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_154.setParent(__jsp_taghandler_85);\n __jsp_taghandler_154.setKey(\"activos3.codanterior\");\n __jsp_tag_starteval=__jsp_taghandler_154.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_154.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_154.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_154);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[159]);\n /*@lineinfo:translated-code*//*@lineinfo:304^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_155=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_155.setParent(__jsp_taghandler_85);\n __jsp_taghandler_155.setMaxlength(\"20\");\n __jsp_taghandler_155.setName(\"ActivosForm\");\n __jsp_taghandler_155.setProperty(\"act_codanterior\");\n __jsp_taghandler_155.setReadonly(true);\n __jsp_taghandler_155.setSize(\"20\");\n __jsp_tag_starteval=__jsp_taghandler_155.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_155,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_155.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_155.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_155);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[160]);\n /*@lineinfo:translated-code*//*@lineinfo:305^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_156=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_156.setParent(__jsp_taghandler_85);\n __jsp_taghandler_156.setKey(\"activos3.fecha\");\n __jsp_tag_starteval=__jsp_taghandler_156.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_156.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_156.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_156);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[161]);\n /*@lineinfo:translated-code*//*@lineinfo:306^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_157=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_157.setParent(__jsp_taghandler_85);\n __jsp_taghandler_157.setMaxlength(\"10\");\n __jsp_taghandler_157.setName(\"ActivosForm\");\n __jsp_taghandler_157.setProperty(\"rev_fecha\");\n __jsp_taghandler_157.setReadonly(true);\n __jsp_taghandler_157.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_157.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_157,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_157.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_157.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_157);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[162]);\n /*@lineinfo:translated-code*//*@lineinfo:309^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_158=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_158.setParent(__jsp_taghandler_85);\n __jsp_taghandler_158.setKey(\"activos3.vidaut\");\n __jsp_tag_starteval=__jsp_taghandler_158.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_158.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_158.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_158);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[163]);\n /*@lineinfo:translated-code*//*@lineinfo:310^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_159=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_159.setParent(__jsp_taghandler_85);\n __jsp_taghandler_159.setMaxlength(\"4\");\n __jsp_taghandler_159.setName(\"ActivosForm\");\n __jsp_taghandler_159.setProperty(\"rev_vidaut\");\n __jsp_taghandler_159.setReadonly(true);\n __jsp_taghandler_159.setSize(\"4\");\n __jsp_tag_starteval=__jsp_taghandler_159.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_159,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_159.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_159.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_159);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[164]);\n /*@lineinfo:translated-code*//*@lineinfo:311^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_160=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_160.setParent(__jsp_taghandler_85);\n __jsp_taghandler_160.setKey(\"activos3.estadoactivo\");\n __jsp_tag_starteval=__jsp_taghandler_160.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_160.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_160.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_160);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[165]);\n /*@lineinfo:translated-code*//*@lineinfo:312^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_161=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag name property readonly size\");\n __jsp_taghandler_161.setParent(__jsp_taghandler_85);\n __jsp_taghandler_161.setName(\"ActivosForm\");\n __jsp_taghandler_161.setProperty(\"desestado\");\n __jsp_taghandler_161.setReadonly(true);\n __jsp_taghandler_161.setSize(\"10\");\n __jsp_tag_starteval=__jsp_taghandler_161.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_161,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_161.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_161.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_161);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[166]);\n /*@lineinfo:translated-code*//*@lineinfo:315^27*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_162=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_162.setParent(__jsp_taghandler_85);\n __jsp_taghandler_162.setKey(\"activos3.desestado\");\n __jsp_tag_starteval=__jsp_taghandler_162.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_162.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_162.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_162);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[167]);\n /*@lineinfo:translated-code*//*@lineinfo:316^14*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_163=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_163.setParent(__jsp_taghandler_85);\n __jsp_taghandler_163.setMaxlength(\"60\");\n __jsp_taghandler_163.setName(\"ActivosForm\");\n __jsp_taghandler_163.setProperty(\"rev_desestado\");\n __jsp_taghandler_163.setReadonly(true);\n __jsp_taghandler_163.setSize(\"60\");\n __jsp_tag_starteval=__jsp_taghandler_163.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_163,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_163.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_163.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_163);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[168]);\n /*@lineinfo:translated-code*//*@lineinfo:319^24*/ {\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_164=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\");\n __jsp_taghandler_164.setParent(__jsp_taghandler_85);\n __jsp_taghandler_164.setOnclick(\"operacion.value=2;opcion.value=4\");\n __jsp_taghandler_164.setProperty(\"boton\");\n __jsp_taghandler_164.setStyleClass(\"boton1\");\n __jsp_taghandler_164.setValue(\"Reportar\");\n __jsp_tag_starteval=__jsp_taghandler_164.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_164,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_164.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_164.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_164);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[169]);\n /*@lineinfo:translated-code*//*@lineinfo:319^136*/ } while (__jsp_taghandler_85.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_85.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_85);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[170]);\n /*@lineinfo:translated-code*//*@lineinfo:322^18*/ } while (__jsp_taghandler_4.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[171]);\n /*@lineinfo:translated-code*//*@lineinfo:324^10*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_165=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_165.setParent(__jsp_taghandler_1);\n __jsp_taghandler_165.setName(\"ActivosForm\");\n __jsp_taghandler_165.setProperty(\"operacion\");\n __jsp_taghandler_165.setValue(\"2\");\n __jsp_tag_starteval=__jsp_taghandler_165.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[172]);\n /*@lineinfo:translated-code*//*@lineinfo:328^25*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_166=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_166.setParent(__jsp_taghandler_165);\n __jsp_taghandler_166.setKey(\"activos.codrub\");\n __jsp_tag_starteval=__jsp_taghandler_166.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_166.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_166.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_166);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[173]);\n /*@lineinfo:translated-code*//*@lineinfo:331^22*/ {\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_167=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\"org.apache.struts.taglib.html.SelectTag disabled name property\");\n __jsp_taghandler_167.setParent(__jsp_taghandler_165);\n __jsp_taghandler_167.setDisabled(false);\n __jsp_taghandler_167.setName(\"ActivosForm\");\n __jsp_taghandler_167.setProperty(\"act_codrub\");\n __jsp_tag_starteval=__jsp_taghandler_167.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_167,__jsp_tag_starteval,out);\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[174]);\n /*@lineinfo:translated-code*//*@lineinfo:332^28*/ {\n org.apache.struts.taglib.html.OptionsTag __jsp_taghandler_168=(org.apache.struts.taglib.html.OptionsTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsTag.class,\"org.apache.struts.taglib.html.OptionsTag collection labelProperty property\");\n __jsp_taghandler_168.setParent(__jsp_taghandler_167);\n __jsp_taghandler_168.setCollection(\"RubrosLista\");\n __jsp_taghandler_168.setLabelProperty(\"descripcion\");\n __jsp_taghandler_168.setProperty(\"codigo\");\n __jsp_tag_starteval=__jsp_taghandler_168.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_168.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_168.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_168);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[175]);\n /*@lineinfo:translated-code*//*@lineinfo:332^114*/ } while (__jsp_taghandler_167.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_167.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_167);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[176]);\n /*@lineinfo:translated-code*//*@lineinfo:338^22*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_169=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_169.setParent(__jsp_taghandler_165);\n __jsp_taghandler_169.setKey(\"activos.codreg\");\n __jsp_tag_starteval=__jsp_taghandler_169.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_169.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_169.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_169);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[177]);\n /*@lineinfo:translated-code*//*@lineinfo:341^22*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_170=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_170.setParent(__jsp_taghandler_165);\n __jsp_taghandler_170.setName(\"ActivosForm\");\n __jsp_taghandler_170.setProperty(\"act_codreg\");\n __jsp_tag_starteval=__jsp_taghandler_170.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_170,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_170.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_170.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_170);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[178]);\n /*@lineinfo:translated-code*//*@lineinfo:342^25*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_171=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_171.setParent(__jsp_taghandler_165);\n __jsp_taghandler_171.setMaxlength(\"30\");\n __jsp_taghandler_171.setName(\"ActivosForm\");\n __jsp_taghandler_171.setProperty(\"act_regdescripcion\");\n __jsp_taghandler_171.setReadonly(true);\n __jsp_taghandler_171.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_171.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_171,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_171.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_171.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_171);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[179]);\n /*@lineinfo:translated-code*//*@lineinfo:347^22*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_172=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_172.setParent(__jsp_taghandler_165);\n __jsp_taghandler_172.setKey(\"activos.codfin\");\n __jsp_tag_starteval=__jsp_taghandler_172.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_172.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_172.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_172);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[180]);\n /*@lineinfo:translated-code*//*@lineinfo:350^22*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_173=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_173.setParent(__jsp_taghandler_165);\n __jsp_taghandler_173.setName(\"ActivosForm\");\n __jsp_taghandler_173.setProperty(\"act_codfin\");\n __jsp_tag_starteval=__jsp_taghandler_173.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_173,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_173.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_173.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_173);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[181]);\n /*@lineinfo:translated-code*//*@lineinfo:351^25*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_174=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_174.setParent(__jsp_taghandler_165);\n __jsp_taghandler_174.setMaxlength(\"30\");\n __jsp_taghandler_174.setName(\"ActivosForm\");\n __jsp_taghandler_174.setProperty(\"act_findescripcion\");\n __jsp_taghandler_174.setReadonly(true);\n __jsp_taghandler_174.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_174.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_174,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_174.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_174.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_174);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[182]);\n /*@lineinfo:translated-code*//*@lineinfo:354^16*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_175=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_175.setParent(__jsp_taghandler_165);\n __jsp_taghandler_175.setName(\"ActivosForm\");\n __jsp_taghandler_175.setProperty(\"opcion\");\n __jsp_taghandler_175.setValue(\"2\");\n __jsp_tag_starteval=__jsp_taghandler_175.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[183]);\n /*@lineinfo:translated-code*//*@lineinfo:359^22*/ {\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_176=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\");\n __jsp_taghandler_176.setParent(__jsp_taghandler_175);\n __jsp_taghandler_176.setOnclick(\"operacion.value=6;opcion.value=2\");\n __jsp_taghandler_176.setProperty(\"boton\");\n __jsp_taghandler_176.setStyleClass(\"boton1\");\n __jsp_taghandler_176.setValue(\"Modificar\");\n __jsp_tag_starteval=__jsp_taghandler_176.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_176,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_176.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_176.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_176);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[184]);\n /*@lineinfo:translated-code*//*@lineinfo:359^134*/ } while (__jsp_taghandler_175.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_175.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_175);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[185]);\n /*@lineinfo:translated-code*//*@lineinfo:363^16*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_177=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_177.setParent(__jsp_taghandler_165);\n __jsp_taghandler_177.setName(\"ActivosForm\");\n __jsp_taghandler_177.setProperty(\"opcion\");\n __jsp_taghandler_177.setValue(\"3\");\n __jsp_tag_starteval=__jsp_taghandler_177.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[186]);\n /*@lineinfo:translated-code*//*@lineinfo:368^22*/ {\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_178=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\");\n __jsp_taghandler_178.setParent(__jsp_taghandler_177);\n __jsp_taghandler_178.setOnclick(\"operacion.value=6;opcion.value=3\");\n __jsp_taghandler_178.setProperty(\"boton\");\n __jsp_taghandler_178.setStyleClass(\"boton1\");\n __jsp_taghandler_178.setValue(\"Eliminar\");\n __jsp_tag_starteval=__jsp_taghandler_178.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_178,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_178.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_178.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_178);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[187]);\n /*@lineinfo:translated-code*//*@lineinfo:368^133*/ } while (__jsp_taghandler_177.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_177.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_177);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[188]);\n /*@lineinfo:translated-code*//*@lineinfo:372^16*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_179=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_179.setParent(__jsp_taghandler_165);\n __jsp_taghandler_179.setName(\"ActivosForm\");\n __jsp_taghandler_179.setProperty(\"opcion\");\n __jsp_taghandler_179.setValue(\"5\");\n __jsp_tag_starteval=__jsp_taghandler_179.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[189]);\n /*@lineinfo:translated-code*//*@lineinfo:377^25*/ {\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_180=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\");\n __jsp_taghandler_180.setParent(__jsp_taghandler_179);\n __jsp_taghandler_180.setOnclick(\"operacion.value=6;opcion.value=4\");\n __jsp_taghandler_180.setProperty(\"boton\");\n __jsp_taghandler_180.setStyleClass(\"boton1\");\n __jsp_taghandler_180.setValue(\"Consultar\");\n __jsp_tag_starteval=__jsp_taghandler_180.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_180,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_180.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_180.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_180);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[190]);\n /*@lineinfo:translated-code*//*@lineinfo:377^137*/ } while (__jsp_taghandler_179.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_179.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_179);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[191]);\n /*@lineinfo:translated-code*//*@lineinfo:380^30*/ } while (__jsp_taghandler_165.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_165.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_165);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[192]);\n /*@lineinfo:translated-code*//*@lineinfo:383^10*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_181=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_181.setParent(__jsp_taghandler_1);\n __jsp_taghandler_181.setName(\"ActivosForm\");\n __jsp_taghandler_181.setProperty(\"operacion\");\n __jsp_taghandler_181.setValue(\"6\");\n __jsp_tag_starteval=__jsp_taghandler_181.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[193]);\n /*@lineinfo:translated-code*//*@lineinfo:387^25*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_182=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_182.setParent(__jsp_taghandler_181);\n __jsp_taghandler_182.setKey(\"activos.codrub\");\n __jsp_tag_starteval=__jsp_taghandler_182.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_182.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_182.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_182);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[194]);\n /*@lineinfo:translated-code*//*@lineinfo:390^23*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_183=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_183.setParent(__jsp_taghandler_181);\n __jsp_taghandler_183.setName(\"ActivosForm\");\n __jsp_taghandler_183.setProperty(\"act_codrub\");\n __jsp_tag_starteval=__jsp_taghandler_183.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_183,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_183.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_183.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_183);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[195]);\n /*@lineinfo:translated-code*//*@lineinfo:391^25*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_184=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_184.setParent(__jsp_taghandler_181);\n __jsp_taghandler_184.setMaxlength(\"30\");\n __jsp_taghandler_184.setName(\"ActivosForm\");\n __jsp_taghandler_184.setProperty(\"act_rubdescripcion\");\n __jsp_taghandler_184.setReadonly(true);\n __jsp_taghandler_184.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_184.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_184,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_184.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_184.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_184);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[196]);\n /*@lineinfo:translated-code*//*@lineinfo:396^22*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_185=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_185.setParent(__jsp_taghandler_181);\n __jsp_taghandler_185.setKey(\"activos.codreg\");\n __jsp_tag_starteval=__jsp_taghandler_185.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_185.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_185.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_185);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[197]);\n /*@lineinfo:translated-code*//*@lineinfo:399^22*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_186=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_186.setParent(__jsp_taghandler_181);\n __jsp_taghandler_186.setName(\"ActivosForm\");\n __jsp_taghandler_186.setProperty(\"act_codreg\");\n __jsp_tag_starteval=__jsp_taghandler_186.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_186,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_186.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_186.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_186);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[198]);\n /*@lineinfo:translated-code*//*@lineinfo:400^25*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_187=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_187.setParent(__jsp_taghandler_181);\n __jsp_taghandler_187.setMaxlength(\"30\");\n __jsp_taghandler_187.setName(\"ActivosForm\");\n __jsp_taghandler_187.setProperty(\"act_regdescripcion\");\n __jsp_taghandler_187.setReadonly(true);\n __jsp_taghandler_187.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_187.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_187,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_187.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_187.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_187);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[199]);\n /*@lineinfo:translated-code*//*@lineinfo:405^22*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_188=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_188.setParent(__jsp_taghandler_181);\n __jsp_taghandler_188.setKey(\"activos.codfin\");\n __jsp_tag_starteval=__jsp_taghandler_188.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_188.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_188.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_188);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[200]);\n /*@lineinfo:translated-code*//*@lineinfo:408^22*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_189=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_189.setParent(__jsp_taghandler_181);\n __jsp_taghandler_189.setName(\"ActivosForm\");\n __jsp_taghandler_189.setProperty(\"act_codfin\");\n __jsp_tag_starteval=__jsp_taghandler_189.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_189,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_189.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_189.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_189);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[201]);\n /*@lineinfo:translated-code*//*@lineinfo:409^25*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_190=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name property readonly size\");\n __jsp_taghandler_190.setParent(__jsp_taghandler_181);\n __jsp_taghandler_190.setMaxlength(\"30\");\n __jsp_taghandler_190.setName(\"ActivosForm\");\n __jsp_taghandler_190.setProperty(\"act_findescripcion\");\n __jsp_taghandler_190.setReadonly(true);\n __jsp_taghandler_190.setSize(\"30\");\n __jsp_tag_starteval=__jsp_taghandler_190.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_190,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_190.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_190.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_190);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[202]);\n /*@lineinfo:translated-code*//*@lineinfo:414^22*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_191=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_191.setParent(__jsp_taghandler_181);\n __jsp_taghandler_191.setKey(\"activos.codgrp\");\n __jsp_tag_starteval=__jsp_taghandler_191.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_191.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_191.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_191);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[203]);\n /*@lineinfo:translated-code*//*@lineinfo:417^25*/ {\n org.apache.struts.taglib.html.SelectTag __jsp_taghandler_192=(org.apache.struts.taglib.html.SelectTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SelectTag.class,\"org.apache.struts.taglib.html.SelectTag disabled name property\");\n __jsp_taghandler_192.setParent(__jsp_taghandler_181);\n __jsp_taghandler_192.setDisabled(false);\n __jsp_taghandler_192.setName(\"ActivosForm\");\n __jsp_taghandler_192.setProperty(\"act_codgrp\");\n __jsp_tag_starteval=__jsp_taghandler_192.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_192,__jsp_tag_starteval,out);\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[204]);\n /*@lineinfo:translated-code*//*@lineinfo:418^28*/ {\n org.apache.struts.taglib.html.OptionsTag __jsp_taghandler_193=(org.apache.struts.taglib.html.OptionsTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.OptionsTag.class,\"org.apache.struts.taglib.html.OptionsTag collection labelProperty property\");\n __jsp_taghandler_193.setParent(__jsp_taghandler_192);\n __jsp_taghandler_193.setCollection(\"GruposLista\");\n __jsp_taghandler_193.setLabelProperty(\"descripcion\");\n __jsp_taghandler_193.setProperty(\"codigo\");\n __jsp_tag_starteval=__jsp_taghandler_193.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_193.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_193.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_193);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[205]);\n /*@lineinfo:translated-code*//*@lineinfo:418^114*/ } while (__jsp_taghandler_192.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_192.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_192);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[206]);\n /*@lineinfo:translated-code*//*@lineinfo:424^22*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_194=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_194.setParent(__jsp_taghandler_181);\n __jsp_taghandler_194.setKey(\"activos.descripcion\");\n __jsp_tag_starteval=__jsp_taghandler_194.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_194.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_194.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_194);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[207]);\n /*@lineinfo:translated-code*//*@lineinfo:427^22*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_195=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag maxlength name onchange property size value\");\n __jsp_taghandler_195.setParent(__jsp_taghandler_181);\n __jsp_taghandler_195.setMaxlength(\"120\");\n __jsp_taghandler_195.setName(\"ActivosForm\");\n __jsp_taghandler_195.setOnchange(\"javascript:this.value=this.value.toUpperCase();\");\n __jsp_taghandler_195.setProperty(\"act_descripcion\");\n __jsp_taghandler_195.setSize(\"60\");\n __jsp_taghandler_195.setValue(\"%\");\n __jsp_tag_starteval=__jsp_taghandler_195.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_195,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_195.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_195.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_195);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[208]);\n /*@lineinfo:translated-code*//*@lineinfo:430^16*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_196=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_196.setParent(__jsp_taghandler_181);\n __jsp_taghandler_196.setName(\"ActivosForm\");\n __jsp_taghandler_196.setProperty(\"opcion\");\n __jsp_taghandler_196.setValue(\"2\");\n __jsp_tag_starteval=__jsp_taghandler_196.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[209]);\n /*@lineinfo:translated-code*//*@lineinfo:435^25*/ {\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_197=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\");\n __jsp_taghandler_197.setParent(__jsp_taghandler_196);\n __jsp_taghandler_197.setOnclick(\"operacion.value=3;opcion.value=2\");\n __jsp_taghandler_197.setProperty(\"boton\");\n __jsp_taghandler_197.setStyleClass(\"boton1\");\n __jsp_taghandler_197.setValue(\"Modificar\");\n __jsp_tag_starteval=__jsp_taghandler_197.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_197,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_197.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_197.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_197);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[210]);\n /*@lineinfo:translated-code*//*@lineinfo:435^137*/ } while (__jsp_taghandler_196.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_196.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_196);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[211]);\n /*@lineinfo:translated-code*//*@lineinfo:439^16*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_198=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_198.setParent(__jsp_taghandler_181);\n __jsp_taghandler_198.setName(\"ActivosForm\");\n __jsp_taghandler_198.setProperty(\"opcion\");\n __jsp_taghandler_198.setValue(\"3\");\n __jsp_tag_starteval=__jsp_taghandler_198.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[212]);\n /*@lineinfo:translated-code*//*@lineinfo:444^25*/ {\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_199=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\");\n __jsp_taghandler_199.setParent(__jsp_taghandler_198);\n __jsp_taghandler_199.setOnclick(\"operacion.value=3;opcion.value=3\");\n __jsp_taghandler_199.setProperty(\"boton\");\n __jsp_taghandler_199.setStyleClass(\"boton1\");\n __jsp_taghandler_199.setValue(\"Eliminar\");\n __jsp_tag_starteval=__jsp_taghandler_199.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_199,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_199.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_199.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_199);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[213]);\n /*@lineinfo:translated-code*//*@lineinfo:444^136*/ } while (__jsp_taghandler_198.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_198.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_198);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[214]);\n /*@lineinfo:translated-code*//*@lineinfo:448^16*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_200=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_200.setParent(__jsp_taghandler_181);\n __jsp_taghandler_200.setName(\"ActivosForm\");\n __jsp_taghandler_200.setProperty(\"opcion\");\n __jsp_taghandler_200.setValue(\"4\");\n __jsp_tag_starteval=__jsp_taghandler_200.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[215]);\n /*@lineinfo:translated-code*//*@lineinfo:453^25*/ {\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_201=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\"org.apache.struts.taglib.html.SubmitTag onclick property styleClass value\");\n __jsp_taghandler_201.setParent(__jsp_taghandler_200);\n __jsp_taghandler_201.setOnclick(\"operacion.value=3;opcion.value=4\");\n __jsp_taghandler_201.setProperty(\"boton\");\n __jsp_taghandler_201.setStyleClass(\"boton1\");\n __jsp_taghandler_201.setValue(\"Consultar\");\n __jsp_tag_starteval=__jsp_taghandler_201.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_201,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_201.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_201.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_201);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[216]);\n /*@lineinfo:translated-code*//*@lineinfo:453^137*/ } while (__jsp_taghandler_200.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_200.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_200);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[217]);\n /*@lineinfo:translated-code*//*@lineinfo:456^30*/ } while (__jsp_taghandler_181.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_181.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_181);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[218]);\n /*@lineinfo:translated-code*//*@lineinfo:460^1*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_202=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_202.setParent(__jsp_taghandler_1);\n __jsp_taghandler_202.setName(\"ActivosForm\");\n __jsp_taghandler_202.setProperty(\"operacion\");\n __jsp_taghandler_202.setValue(\"3\");\n __jsp_tag_starteval=__jsp_taghandler_202.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[219]);\n /*@lineinfo:translated-code*//*@lineinfo:466^6*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_203=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_203.setParent(__jsp_taghandler_202);\n __jsp_taghandler_203.setName(\"ActivosForm\");\n __jsp_taghandler_203.setProperty(\"act_codrub\");\n __jsp_tag_starteval=__jsp_taghandler_203.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_203,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_203.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_203.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_203);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[220]);\n /*@lineinfo:translated-code*//*@lineinfo:467^6*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_204=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_204.setParent(__jsp_taghandler_202);\n __jsp_taghandler_204.setName(\"ActivosForm\");\n __jsp_taghandler_204.setProperty(\"act_codreg\");\n __jsp_tag_starteval=__jsp_taghandler_204.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_204,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_204.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_204.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_204);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[221]);\n /*@lineinfo:translated-code*//*@lineinfo:468^6*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_205=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_205.setParent(__jsp_taghandler_202);\n __jsp_taghandler_205.setName(\"ActivosForm\");\n __jsp_taghandler_205.setProperty(\"act_codgrp\");\n __jsp_tag_starteval=__jsp_taghandler_205.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_205,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_205.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_205.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_205);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[222]);\n /*@lineinfo:translated-code*//*@lineinfo:469^6*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_206=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_206.setParent(__jsp_taghandler_202);\n __jsp_taghandler_206.setName(\"ActivosForm\");\n __jsp_taghandler_206.setProperty(\"act_codfin\");\n __jsp_tag_starteval=__jsp_taghandler_206.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_206,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_206.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_206.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_206);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[223]);\n /*@lineinfo:translated-code*//*@lineinfo:470^6*/ {\n org.apache.struts.taglib.html.HiddenTag __jsp_taghandler_207=(org.apache.struts.taglib.html.HiddenTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.HiddenTag.class,\"org.apache.struts.taglib.html.HiddenTag name property\");\n __jsp_taghandler_207.setParent(__jsp_taghandler_202);\n __jsp_taghandler_207.setName(\"ActivosForm\");\n __jsp_taghandler_207.setProperty(\"act_descripcion\");\n __jsp_tag_starteval=__jsp_taghandler_207.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_207,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_207.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_207.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_207);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[224]);\n /*@lineinfo:user-code*//*@lineinfo:478^7*/ int pnum=0;\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[225]);\n /*@lineinfo:translated-code*//*@lineinfo:479^7*/ {\n org.apache.struts.taglib.logic.IterateTag __jsp_taghandler_208=(org.apache.struts.taglib.logic.IterateTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.IterateTag.class,\"org.apache.struts.taglib.logic.IterateTag id name\");\n __jsp_taghandler_208.setParent(__jsp_taghandler_202);\n __jsp_taghandler_208.setId(\"lista\");\n __jsp_taghandler_208.setName(\"Activos3Lista\");\n java.lang.Object lista = null;\n __jsp_tag_starteval=__jsp_taghandler_208.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_208,__jsp_tag_starteval,out);\n do {\n lista = (java.lang.Object) pageContext.findAttribute(\"lista\");\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[226]);\n /*@lineinfo:user-code*//*@lineinfo:480^9*/ if (pnum==1) {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[227]);\n /*@lineinfo:user-code*//*@lineinfo:482^9*/ } else { \n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[228]);\n /*@lineinfo:user-code*//*@lineinfo:484^9*/ } \n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[229]);\n /*@lineinfo:translated-code*//*@lineinfo:485^16*/ {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_209=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_209.setParent(__jsp_taghandler_208);\n __jsp_taghandler_209.setName(\"lista\");\n __jsp_taghandler_209.setProperty(\"codrub\");\n __jsp_tag_starteval=__jsp_taghandler_209.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_209.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_209.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_209);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[230]);\n /*@lineinfo:translated-code*//*@lineinfo:485^62*/ {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_210=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_210.setParent(__jsp_taghandler_208);\n __jsp_taghandler_210.setName(\"lista\");\n __jsp_taghandler_210.setProperty(\"codreg\");\n __jsp_tag_starteval=__jsp_taghandler_210.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_210.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_210.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_210);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[231]);\n /*@lineinfo:translated-code*//*@lineinfo:485^108*/ {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_211=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_211.setParent(__jsp_taghandler_208);\n __jsp_taghandler_211.setName(\"lista\");\n __jsp_taghandler_211.setProperty(\"ceros\");\n __jsp_tag_starteval=__jsp_taghandler_211.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_211.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_211.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_211);\n }\n/*@lineinfo:485^152*/ {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_212=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_212.setParent(__jsp_taghandler_208);\n __jsp_taghandler_212.setName(\"lista\");\n __jsp_taghandler_212.setProperty(\"codigo\");\n __jsp_tag_starteval=__jsp_taghandler_212.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_212.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_212.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_212);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[232]);\n /*@lineinfo:translated-code*//*@lineinfo:486^16*/ {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_213=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_213.setParent(__jsp_taghandler_208);\n __jsp_taghandler_213.setName(\"lista\");\n __jsp_taghandler_213.setProperty(\"descodgrp\");\n __jsp_tag_starteval=__jsp_taghandler_213.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_213.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_213.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_213);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[233]);\n /*@lineinfo:translated-code*//*@lineinfo:487^16*/ {\n org.apache.struts.taglib.bean.WriteTag __jsp_taghandler_214=(org.apache.struts.taglib.bean.WriteTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.WriteTag.class,\"org.apache.struts.taglib.bean.WriteTag name property\");\n __jsp_taghandler_214.setParent(__jsp_taghandler_208);\n __jsp_taghandler_214.setName(\"lista\");\n __jsp_taghandler_214.setProperty(\"descripcion\");\n __jsp_tag_starteval=__jsp_taghandler_214.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_214.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_214.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_214);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[234]);\n /*@lineinfo:translated-code*//*@lineinfo:488^12*/ {\n org.apache.struts.taglib.logic.EqualTag __jsp_taghandler_215=(org.apache.struts.taglib.logic.EqualTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.logic.EqualTag.class,\"org.apache.struts.taglib.logic.EqualTag name property value\");\n __jsp_taghandler_215.setParent(__jsp_taghandler_208);\n __jsp_taghandler_215.setName(\"ActivosForm\");\n __jsp_taghandler_215.setProperty(\"opcion\");\n __jsp_taghandler_215.setValue(\"4\");\n __jsp_tag_starteval=__jsp_taghandler_215.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[235]);\n /*@lineinfo:translated-code*//*@lineinfo:489^33*/ {\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_216=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\"org.apache.struts.taglib.html.SubmitTag indexed onclick property styleClass value\");\n __jsp_taghandler_216.setParent(__jsp_taghandler_215);\n __jsp_taghandler_216.setIndexed(true);\n __jsp_taghandler_216.setOnclick(\"operacion.value=1;opcion.value=4\");\n __jsp_taghandler_216.setProperty(\"boton\");\n __jsp_taghandler_216.setStyleClass(\"boton1\");\n __jsp_taghandler_216.setValue(\"Consultar\");\n __jsp_tag_starteval=__jsp_taghandler_216.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_216,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_216.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_216.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_216);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[236]);\n /*@lineinfo:translated-code*//*@lineinfo:489^160*/ } while (__jsp_taghandler_215.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_215.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_215);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[237]);\n /*@lineinfo:user-code*//*@lineinfo:492^10*/ if (pnum==0) pnum=1; else pnum=0; \n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[238]);\n /*@lineinfo:translated-code*//*@lineinfo:492^49*/ } while (__jsp_taghandler_208.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_208.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_208);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[239]);\n /*@lineinfo:translated-code*//*@lineinfo:493^23*/ } while (__jsp_taghandler_202.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_202.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_202);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[240]);\n /*@lineinfo:translated-code*//*@lineinfo:500^15*/ } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[241]);\n\n\n }\n catch( Throwable e) {\n try {\n if (out != null) out.clear();\n }\n catch( Exception clearException) {\n }\n pageContext.handlePageException( e);\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext,true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "title": "" }, { "docid": "40898e9331e6c39f8e900df51a3f8079", "score": "0.5654279", "text": "@Override\r\n\tpublic void clickByJS() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f5761c30e0f280a045190ac16ab03698", "score": "0.56395376", "text": "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _acPerDeduc page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag name modelAttribute\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setName(\"checkBoxTest\");\n __jsp_taghandler_1.setModelAttribute(\"administracionAnualDTO\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[5]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setPath(\"beanName\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\n }\n out.write(__oracle_jsp_text[6]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\n __jsp_taghandler_3.setPath(\"urlOrigen\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[7]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\n __jsp_taghandler_4.setPath(\"urlDestino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_4.doCatch(th);\n } finally {\n __jsp_taghandler_4.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\n __jsp_taghandler_5.setCode(\"calculo.menu\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_5.doCatch(th);\n } finally {\n __jsp_taghandler_5.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\n __jsp_taghandler_6.setCode(\"calculo.admonanual\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\n __jsp_taghandler_7.setCode(\"gestionanuacuper.gestion.anuacuper\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\n __jsp_taghandler_8.setCode(\"sireh.label.nomina.impuesto.anual.parametros.deducciones.ciclo\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_8.doCatch(th);\n } finally {\n __jsp_taghandler_8.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\n }\n out.write(__oracle_jsp_text[12]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_9=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\n __jsp_taghandler_9.setJspContext(pageContext);\n __jsp_taghandler_9.setKey(\"0\");\n __jsp_taghandler_9.setValue(\"selectList.nonValue\");\n __jsp_taghandler_9.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_9, pageContext);\n }\n out.write(__oracle_jsp_text[13]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_10=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\n __jsp_taghandler_10.setJspContext(pageContext);\n __jsp_taghandler_10.setBeanName(\"cicloRegControl\");\n __jsp_taghandler_10.setPath(\"ciclo\");\n __jsp_taghandler_10.setStyle(\"width: 200px;\");\n __jsp_taghandler_10.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_10, pageContext);\n }\n out.write(__oracle_jsp_text[14]);\n {\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_11=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\"org.springframework.web.servlet.tags.form.RadioButtonTag path id value label\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_1);\n __jsp_taghandler_11.setPath(\"origenDep\");\n __jsp_taghandler_11.setId(\"origenSHCP\");\n __jsp_taghandler_11.setValue(\"h\");\n __jsp_taghandler_11.setLabel(\"S.H.C.P.\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_11.doCatch(th);\n } finally {\n __jsp_taghandler_11.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_12=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\"org.springframework.web.servlet.tags.form.RadioButtonTag path id value label\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_1);\n __jsp_taghandler_12.setPath(\"origenDep\");\n __jsp_taghandler_12.setId(\"origenSAT\");\n __jsp_taghandler_12.setValue(\"s\");\n __jsp_taghandler_12.setLabel(\"S.A.T.\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_12.doCatch(th);\n } finally {\n __jsp_taghandler_12.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\n }\n out.write(__oracle_jsp_text[16]);\n {\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_13=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\"org.springframework.web.servlet.tags.form.RadioButtonTag path id onclick value label\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_1);\n __jsp_taghandler_13.setPath(\"origen\");\n __jsp_taghandler_13.setId(\"origenRFC\");\n __jsp_taghandler_13.setOnclick(\"toggle(this); \");\n __jsp_taghandler_13.setValue(\"r\");\n __jsp_taghandler_13.setLabel(\"R.F.C.\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_13.doCatch(th);\n } finally {\n __jsp_taghandler_13.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,2);\n }\n out.write(__oracle_jsp_text[17]);\n {\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_14=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\"org.springframework.web.servlet.tags.form.RadioButtonTag path id onclick value label\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_1);\n __jsp_taghandler_14.setPath(\"origen\");\n __jsp_taghandler_14.setId(\"origennUnidad\");\n __jsp_taghandler_14.setOnclick(\"toggle(this); \");\n __jsp_taghandler_14.setValue(\"u\");\n __jsp_taghandler_14.setLabel(\"UNIDAD\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_14.doCatch(th);\n } finally {\n __jsp_taghandler_14.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[18]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_15=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_1);\n __jsp_taghandler_15.setCode(\"sireh.label.reportes.unidad.notrequired\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_15.doCatch(th);\n } finally {\n __jsp_taghandler_15.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_16=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_16.setParent(__jsp_taghandler_1);\n __jsp_taghandler_16.setJspContext(pageContext);\n __jsp_taghandler_16.setKey(\"0\");\n __jsp_taghandler_16.setValue(\"selectList.nonValue\");\n __jsp_taghandler_16.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_16, pageContext);\n }\n out.write(__oracle_jsp_text[20]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_17=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_17.setParent(__jsp_taghandler_1);\n __jsp_taghandler_17.setJspContext(pageContext);\n __jsp_taghandler_17.setBeanName(\"tcUnidadSinCiclo\");\n __jsp_taghandler_17.setPath(\"unidad\");\n __jsp_taghandler_17.setMultiple(\"true\");\n __jsp_taghandler_17.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_17, pageContext);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_18=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_1);\n __jsp_taghandler_18.setCode(\"sireh.label.reportes.rfc\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_18.doCatch(th);\n } finally {\n __jsp_taghandler_18.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,2);\n }\n out.write(__oracle_jsp_text[22]);\n {\n _oracle._jsp._tag._helpRoutine_tag __jsp_taghandler_19=(_oracle._jsp._tag._helpRoutine_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._helpRoutine_tag.class, pageContext);\n __jsp_taghandler_19.setParent(__jsp_taghandler_1);\n __jsp_taghandler_19.setJspContext(pageContext);\n __jsp_taghandler_19.setBeanName(\"EmpleadosDetalle\");\n __jsp_taghandler_19.setPath(\"rfcEmpleado\");\n __jsp_taghandler_19.setFieldMapping(\"rfcEmpleado\");\n __jsp_taghandler_19.setWidth(\"1000\");\n __jsp_taghandler_19.setLeftPosition(\"17\");\n __jsp_taghandler_19.setHeight(\"400\");\n __jsp_taghandler_19.setTopPosition(\"20\");\n __jsp_taghandler_19.setMaxlength(\"16\");\n __jsp_taghandler_19.setDisabled(\"false\");\n __jsp_taghandler_19.setSize(\"22\");\n __jsp_taghandler_19.setTitle(\"Seleccione el RFC\");\n __jsp_taghandler_19.setMaxRows(\"200\");\n __jsp_taghandler_19.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_19, pageContext);\n }\n out.write(__oracle_jsp_text[23]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_20=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_1);\n __jsp_taghandler_20.setCode(\"sireh.form.required.fields\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_20.doCatch(th);\n } finally {\n __jsp_taghandler_20.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,2);\n }\n out.write(__oracle_jsp_text[24]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_21=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_21.setParent(__jsp_taghandler_1);\n __jsp_taghandler_21.setJspContext(pageContext);\n __jsp_taghandler_21.setPath(\"muestraRegistros\");\n __jsp_taghandler_21.setAction((java.lang.String) (\"impuestoAnual/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${administracionAnualDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_21.setValue(\"submit.accept\");\n __jsp_taghandler_21.setProgressBar(\"true\");\n __jsp_taghandler_21.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_21, pageContext);\n }\n out.write(__oracle_jsp_text[25]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_22=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_22.setParent(__jsp_taghandler_1);\n __jsp_taghandler_22.setJspContext(pageContext);\n __jsp_taghandler_22.setPath(\"cancel\");\n __jsp_taghandler_22.setAction((java.lang.String) (\"impuestoAnual/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${administracionAnualDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_22.setValue(\"submit.clean\");\n __jsp_taghandler_22.setProgressBar(\"true\");\n __jsp_taghandler_22.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_22, pageContext);\n }\n out.write(__oracle_jsp_text[26]);\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_1.doCatch(th);\n } finally {\n __jsp_taghandler_1.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "title": "" }, { "docid": "bd417c006c2d83d665d8cf41f92ed2a8", "score": "0.5626095", "text": "public int doEndTag()\n throws javax.servlet.jsp.JspException\n {\n name = null;\n value = null;\n jsonFormat = null;\n\n return BodyTag.EVAL_PAGE;\n }", "title": "" }, { "docid": "aee74aaf721bc55fb7e1ac7eb5c144f6", "score": "0.5619418", "text": "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html;charset=windows-1252\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {\n pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, \"true\", PageContext.PAGE_SCOPE);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n return;\n}\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _modiobras page = this;\n ServletConfig config = pageContext.getServletConfig();\n\n try {\n // global beans\n // end global beans\n\n\n out.write(__jsp_StaticText.text[0]);\n out.write(__jsp_StaticText.text[1]);\n out.write(__jsp_StaticText.text[2]);\n /*@lineinfo:user-code*//*@lineinfo:16^1*/ \n String cod = session.getAttribute(\"ocod\").toString();\n String tit = session.getAttribute(\"otit\").toString();\n String des = session.getAttribute(\"odes\").toString();\n String pre = session.getAttribute(\"opre\").toString();\n String exp = session.getAttribute(\"oexp\").toString();\n String nom = session.getAttribute(\"onom\").toString();\n \n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[3]);\n /*@lineinfo:translated-code*//*@lineinfo:24^1*/ {\n org.apache.struts.taglib.html.FormTag __jsp_taghandler_1=(org.apache.struts.taglib.html.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.FormTag.class,\"org.apache.struts.taglib.html.FormTag action\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setAction(\"/editar\");\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[4]);\n /*@lineinfo:translated-code*//*@lineinfo:25^10*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_2=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setKey(\"codi.promp\");\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_2.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[5]);\n /*@lineinfo:translated-code*//*@lineinfo:26^3*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_3=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag property readonly styleClass value\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\n __jsp_taghandler_3.setProperty(\"codigo\");\n __jsp_taghandler_3.setReadonly(true);\n __jsp_taghandler_3.setStyleClass(\"form-control\");\n __jsp_taghandler_3.setValue( OracleJspRuntime.toStr( cod));\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_3,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_3.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[6]);\n /*@lineinfo:translated-code*//*@lineinfo:27^10*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_4=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\n __jsp_taghandler_4.setKey(\"titulo.promp\");\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_4.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[7]);\n /*@lineinfo:translated-code*//*@lineinfo:28^3*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_5=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag property styleClass value\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\n __jsp_taghandler_5.setProperty(\"titulo\");\n __jsp_taghandler_5.setStyleClass(\"form-control\");\n __jsp_taghandler_5.setValue( OracleJspRuntime.toStr( tit));\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_5,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_5.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[8]);\n /*@lineinfo:translated-code*//*@lineinfo:29^10*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_6=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\n __jsp_taghandler_6.setKey(\"descripcion.promp\");\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_6.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[9]);\n /*@lineinfo:translated-code*//*@lineinfo:30^3*/ {\n org.apache.struts.taglib.html.TextareaTag __jsp_taghandler_7=(org.apache.struts.taglib.html.TextareaTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextareaTag.class,\"org.apache.struts.taglib.html.TextareaTag property styleClass value\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\n __jsp_taghandler_7.setProperty(\"descripcion\");\n __jsp_taghandler_7.setStyleClass(\"form-control\");\n __jsp_taghandler_7.setValue( OracleJspRuntime.toStr( des));\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_7,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_7.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[10]);\n /*@lineinfo:translated-code*//*@lineinfo:31^10*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_8=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\n __jsp_taghandler_8.setKey(\"precio.promp\");\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_8.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[11]);\n /*@lineinfo:translated-code*//*@lineinfo:32^3*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_9=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag property styleClass value\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\n __jsp_taghandler_9.setProperty(\"precio\");\n __jsp_taghandler_9.setStyleClass(\"form-control\");\n __jsp_taghandler_9.setValue( OracleJspRuntime.toStr( pre));\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_9,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_9.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[12]);\n /*@lineinfo:translated-code*//*@lineinfo:34^10*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_10=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\n __jsp_taghandler_10.setKey(\"exposicion.promp\");\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_10.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[13]);\n /*@lineinfo:translated-code*//*@lineinfo:35^3*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_11=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag property readonly styleClass value\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_1);\n __jsp_taghandler_11.setProperty(\"exposicion\");\n __jsp_taghandler_11.setReadonly(true);\n __jsp_taghandler_11.setStyleClass(\"form-control\");\n __jsp_taghandler_11.setValue( OracleJspRuntime.toStr( exp));\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_11,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_11.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[14]);\n /*@lineinfo:translated-code*//*@lineinfo:36^10*/ {\n org.apache.struts.taglib.bean.MessageTag __jsp_taghandler_12=(org.apache.struts.taglib.bean.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.bean.MessageTag.class,\"org.apache.struts.taglib.bean.MessageTag key\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_1);\n __jsp_taghandler_12.setKey(\"nombrep.promp\");\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n } while (__jsp_taghandler_12.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[15]);\n /*@lineinfo:translated-code*//*@lineinfo:37^3*/ {\n org.apache.struts.taglib.html.TextTag __jsp_taghandler_13=(org.apache.struts.taglib.html.TextTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.TextTag.class,\"org.apache.struts.taglib.html.TextTag property readonly styleClass value\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_1);\n __jsp_taghandler_13.setProperty(\"nombre\");\n __jsp_taghandler_13.setReadonly(true);\n __jsp_taghandler_13.setStyleClass(\"form-control\");\n __jsp_taghandler_13.setValue( OracleJspRuntime.toStr( nom));\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_13,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_13.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[16]);\n /*@lineinfo:translated-code*//*@lineinfo:39^27*/ {\n org.apache.struts.taglib.html.SubmitTag __jsp_taghandler_14=(org.apache.struts.taglib.html.SubmitTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.struts.taglib.html.SubmitTag.class,\"org.apache.struts.taglib.html.SubmitTag styleClass value\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_1);\n __jsp_taghandler_14.setStyleClass(\"btn btn-success\");\n __jsp_taghandler_14.setValue(\"EDITAR\");\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_14,__jsp_tag_starteval,out);\n do {\n } while (__jsp_taghandler_14.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[17]);\n /*@lineinfo:translated-code*//*@lineinfo:39^86*/ } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1);\n }\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[18]);\n /*@lineinfo:user-code*//*@lineinfo:42^1*/ out.print( new java.util.Date() );\n /*@lineinfo:generated-code*/\n out.write(__jsp_StaticText.text[19]);\n\n\n }\n catch( Throwable e) {\n try {\n if (out != null) out.clear();\n }\n catch( Exception clearException) {\n }\n pageContext.handlePageException( e);\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext,true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "title": "" }, { "docid": "04bd0cbeb74dd9cde89f3d73b7d5cba7", "score": "0.5588097", "text": "protected abstract void runJS();", "title": "" }, { "docid": "f95dbebc436fe81c901c15b1f76a1354", "score": "0.55651665", "text": "protected abstract void writeTagContent() throws JspException;", "title": "" }, { "docid": "5fd0ed7dd70704f38ea26c0deefad853", "score": "0.55469674", "text": "@SuppressWarnings(\"rawtypes\")\n\tpublic int doStartTag()\n throws javax.servlet.jsp.JspException\n {\n try {\n \tJspWriter out = pageContext.getOut();\n \t\n \t// ns = name.split('.');\n // for (var i=0; i<ns.length; i++) { var n=ns[i]; if (!base.hasOwnProperty(n)) { obj[n]={}; } obj = obj[n]; };\n // for (var i in obj) { if (obj.hasOwnProperty(i)) { base[i] = obj[i]; } };\n \n out.print(\"(function(b,obj) {\"); // b=base\n out.print(\"function e(b,n){if (!b.hasOwnProperty(n)){b[n]={};}};\\n\");\n //String[] names = name.split(\"\\\\.\");\n //for (String n : names) {\n //\tout.print(\"n=\\\"\" + Text.escapeJavascript(n) + \"\\\";e(b,n);b=b[n];\");\n //};\n out.print(\"var ns=\\\"\" + Text.escapeJavascript(name) + \"\\\".split('.');\");\n out.print(\"for (var i in ns) { e(b,ns[i]);b=b[ns[i]]; }; \");\n if (!Text.isBlank(key)) {\n \tout.print(\"b[obj[\\\"\" + Text.escapeJavascript(key) + \"\\\"]]={}; b=b[obj[\\\"\" + Text.escapeJavascript(key) + \"\\\"]]; \");\n }\n out.print(\"for (var i in obj) { if (obj.hasOwnProperty(i)) { b[i] = obj[i]; }}; \");\n out.print(\"})(\" + baseName + \", \"); \n \t\n\t if (value == null) {\n\t \tout.append(\"null\");\n\t } else if (value instanceof String) {\n\t \tout.append(\"\\\"\");\n\t \tout.append(Text.escapeJavascript((String) value));\n\t \tout.append(\"\\\"\");\n\t } else if (value instanceof List) {\n\t \t// out.append(Struct.structuredListToJson((List) value, jsonFormat));\n\t \tStruct.structuredListToJson(out, (List) value, jsonFormat);\n\t } else if (value instanceof Map) {\n\t \t// out.append(Struct.structuredMapToJson((Map) value, jsonFormat));\n\t \tStruct.structuredMapToJson(out, (Map) value, jsonFormat);\n\t } else if (value instanceof Number) {\n\t \tout.append(String.valueOf(value));\n\t } else if (value instanceof Boolean) {\n\t \tout.append(String.valueOf(value));\n\t } else if (value instanceof java.util.Date) {\n \t// MS-compatible JSON encoding of Dates:\n \t// see http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx\n // javascript += \"\\\"\\\\/Date(\" + ((java.util.Date)value).getTime() + \")\\\\/\\\"\";\n\t \tout.append(Struct.toDate((java.util.Date) value, jsonFormat));\n\t } else if (value instanceof Struct.WriteJsonFormat) {\n\t \t((Struct.WriteJsonFormat) value).writeJsonFormat(out, jsonFormat); \n\t } else if (value instanceof Struct.ToJsonFormat) {\n\t \tout.append(((Struct.ToJsonFormat) value).toJson(jsonFormat));\n\t } else if (value instanceof Struct.ToJson) {\n\t \tout.append(((Struct.ToJson) value).toJson());\n\t } else {\n\t \tthrow new RuntimeException(\"Cannot translate Java object \" + value.getClass().getName() + \" to javascript variable\");\n\t }\n\t out.append(\");\");\n\t \n\t // out.print(javascript);\n\t\t} catch (IOException ex) {\n\t\t\t// ignore these errors, since they can occur when the user hits 'stop' in their browser\n\t\t} catch (Throwable t) {\n\t\t\t// WAS does not log exceptions that occur within tag libraries; log and rethrow\n\t\t\tt.printStackTrace();\n\t\t\tthrow (JspException) new JspException(\"Exception occurred in ExtendJavascriptVarTag\").initCause(t);\n\t\t}\n\n return BodyTag.SKIP_BODY; // this tag always has an empty body.\n }", "title": "" }, { "docid": "55641a721878ee9c0fd8d6f2a42110b2", "score": "0.5520847", "text": "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _searchFiles page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag modelAttribute\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setModelAttribute(\"jcrData2DTO\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[5]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setCode(\"jcrDataDTO.search.title\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\n }\n out.write(__oracle_jsp_text[6]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\n __jsp_taghandler_3.setCode(\"jcrData2DTO.name\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[7]);\n {\n org.springframework.web.servlet.tags.form.InputTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.form.InputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.InputTag.class,\"org.springframework.web.servlet.tags.form.InputTag path\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\n __jsp_taghandler_4.setPath(\"name\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_4.doCatch(th);\n } finally {\n __jsp_taghandler_4.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\n __jsp_taghandler_5.setCode(\"jcrData2DTO.rfc\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_5.doCatch(th);\n } finally {\n __jsp_taghandler_5.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.springframework.web.servlet.tags.form.InputTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.form.InputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.InputTag.class,\"org.springframework.web.servlet.tags.form.InputTag path\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\n __jsp_taghandler_6.setPath(\"rfc\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\n __jsp_taghandler_7.setCode(\"jcrData2DTO.documento\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.form.InputTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.form.InputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.InputTag.class,\"org.springframework.web.servlet.tags.form.InputTag path\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\n __jsp_taghandler_8.setPath(\"documento\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_8.doCatch(th);\n } finally {\n __jsp_taghandler_8.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\n }\n out.write(__oracle_jsp_text[12]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_9=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\n __jsp_taghandler_9.setJspContext(pageContext);\n __jsp_taghandler_9.setAction(\"jcr/search2Files\");\n __jsp_taghandler_9.setValue(\"submit.search\");\n __jsp_taghandler_9.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_9, pageContext);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_10=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\n __jsp_taghandler_10.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${filesList != null}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[14]);\n {\n org.displaytag.tags.TableTag __jsp_taghandler_11=(org.displaytag.tags.TableTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.TableTag.class,\"org.displaytag.tags.TableTag name pagesize requestURI class id sort\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_10);\n __jsp_taghandler_11.setName(\"filesList\");\n __jsp_taghandler_11.setPagesize(10);\n __jsp_taghandler_11.setRequestURI(\"/jcr/search2Files.do\");\n __jsp_taghandler_11.setClass(\"displaytag\");\n __jsp_taghandler_11.setUid(\"row\");\n __jsp_taghandler_11.setSort(\"list\");\n java.lang.Object row = null;\n java.lang.Integer row_rowNum = null;\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_11,__jsp_tag_starteval,out);\n do {\n row = (java.lang.Object) pageContext.findAttribute(\"row\");\n row_rowNum = (java.lang.Integer) pageContext.findAttribute(\"row_rowNum\");\n out.write(__oracle_jsp_text[15]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_12=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_11);\n __jsp_taghandler_12.setProperty(\"name\");\n __jsp_taghandler_12.setTitleKey(\"jcrData2DTO.name\");\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,4);\n }\n out.write(__oracle_jsp_text[16]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_13=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_11);\n __jsp_taghandler_13.setProperty(\"description\");\n __jsp_taghandler_13.setTitleKey(\"jcrData2DTO.description\");\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,4);\n }\n out.write(__oracle_jsp_text[17]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_14=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey format\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_11);\n __jsp_taghandler_14.setProperty(\"created.time\");\n __jsp_taghandler_14.setTitleKey(\"jcrData2DTO.created\");\n __jsp_taghandler_14.setFormat(\"{0,date,dd-MM-yyyy:hh:mm:ss}\");\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,4);\n }\n out.write(__oracle_jsp_text[18]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_15=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey format\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_11);\n __jsp_taghandler_15.setProperty(\"lastModified.time\");\n __jsp_taghandler_15.setTitleKey(\"jcrData2DTO.lastModified\");\n __jsp_taghandler_15.setFormat(\"{0,date,dd-MM-yyyy:hh:mm:ss}\");\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,4);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_16=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag href paramId paramProperty value\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_11);\n __jsp_taghandler_16.setHref(\"downloadFile.do\");\n __jsp_taghandler_16.setParamId(\"uuid\");\n __jsp_taghandler_16.setParamProperty(\"uuid\");\n __jsp_taghandler_16.setValue(\"DESCARGAR\");\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,4);\n }\n out.write(__oracle_jsp_text[20]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_17=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag href paramId paramProperty value\");\n __jsp_taghandler_17.setParent(__jsp_taghandler_11);\n __jsp_taghandler_17.setHref(\"initUpdate2File.do\");\n __jsp_taghandler_17.setParamId(\"uuid\");\n __jsp_taghandler_17.setParamProperty(\"uuid\");\n __jsp_taghandler_17.setValue(\"ACTUALIZAR\");\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17,4);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_18=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag href paramId paramProperty value\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_11);\n __jsp_taghandler_18.setHref(\"showVersions2File.do\");\n __jsp_taghandler_18.setParamId(\"uuid\");\n __jsp_taghandler_18.setParamProperty(\"uuid\");\n __jsp_taghandler_18.setValue(\"VERSIONES\");\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,4);\n }\n out.write(__oracle_jsp_text[22]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_19=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag href paramId paramProperty value\");\n __jsp_taghandler_19.setParent(__jsp_taghandler_11);\n __jsp_taghandler_19.setHref(\"deleteFile.do\");\n __jsp_taghandler_19.setParamId(\"uuid\");\n __jsp_taghandler_19.setParamProperty(\"uuid\");\n __jsp_taghandler_19.setValue(\"ELIMINAR\");\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19,4);\n }\n out.write(__oracle_jsp_text[23]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_20=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name value\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_11);\n __jsp_taghandler_20.setName(\"paging.banner.placement\");\n __jsp_taghandler_20.setValue(\"bottom\");\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,4);\n }\n out.write(__oracle_jsp_text[24]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_21=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name value\");\n __jsp_taghandler_21.setParent(__jsp_taghandler_11);\n __jsp_taghandler_21.setName(\"export.pdf\");\n __jsp_taghandler_21.setValue(\"true\");\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21,4);\n }\n out.write(__oracle_jsp_text[25]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_22=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name\");\n __jsp_taghandler_22.setParent(__jsp_taghandler_11);\n __jsp_taghandler_22.setName(\"basic.msg.empty_list\");\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_22,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[26]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_23=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_23.setParent(__jsp_taghandler_22);\n __jsp_taghandler_23.setCode(\"pagedList.empty.content\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_23.doStartTag();\n if (__jsp_taghandler_23.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_23.doCatch(th);\n } finally {\n __jsp_taghandler_23.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_23,5);\n }\n out.write(__oracle_jsp_text[27]);\n } while (__jsp_taghandler_22.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,4);\n }\n out.write(__oracle_jsp_text[28]);\n } while (__jsp_taghandler_11.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,3);\n }\n out.write(__oracle_jsp_text[29]);\n } while (__jsp_taghandler_10.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,2);\n }\n out.write(__oracle_jsp_text[30]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_24=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_24.setParent(__jsp_taghandler_1);\n __jsp_taghandler_24.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${versionsList != null}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_24.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[31]);\n {\n org.displaytag.tags.TableTag __jsp_taghandler_25=(org.displaytag.tags.TableTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.TableTag.class,\"org.displaytag.tags.TableTag name pagesize requestURI class id sort\");\n __jsp_taghandler_25.setParent(__jsp_taghandler_24);\n __jsp_taghandler_25.setName(\"versionsList\");\n __jsp_taghandler_25.setPagesize(10);\n __jsp_taghandler_25.setRequestURI(\"jcr/search2Files.do\");\n __jsp_taghandler_25.setClass(\"displaytag\");\n __jsp_taghandler_25.setUid(\"row\");\n __jsp_taghandler_25.setSort(\"list\");\n java.lang.Object row = null;\n java.lang.Integer row_rowNum = null;\n __jsp_tag_starteval=__jsp_taghandler_25.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_25,__jsp_tag_starteval,out);\n do {\n row = (java.lang.Object) pageContext.findAttribute(\"row\");\n row_rowNum = (java.lang.Integer) pageContext.findAttribute(\"row_rowNum\");\n out.write(__oracle_jsp_text[32]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_26=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey\");\n __jsp_taghandler_26.setParent(__jsp_taghandler_25);\n __jsp_taghandler_26.setProperty(\"versionName\");\n __jsp_taghandler_26.setTitleKey(\"jcrData2DTO.version\");\n __jsp_tag_starteval=__jsp_taghandler_26.doStartTag();\n if (__jsp_taghandler_26.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_26,4);\n }\n out.write(__oracle_jsp_text[33]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_27=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey format\");\n __jsp_taghandler_27.setParent(__jsp_taghandler_25);\n __jsp_taghandler_27.setProperty(\"versionCreated.time\");\n __jsp_taghandler_27.setTitleKey(\"jcrData2DTO.versionDate\");\n __jsp_taghandler_27.setFormat(\"{0,date,dd-MM-yyyy:hh:mm:ss}\");\n __jsp_tag_starteval=__jsp_taghandler_27.doStartTag();\n if (__jsp_taghandler_27.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_27,4);\n }\n out.write(__oracle_jsp_text[34]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_28=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey\");\n __jsp_taghandler_28.setParent(__jsp_taghandler_25);\n __jsp_taghandler_28.setProperty(\"lastModifiedBy\");\n __jsp_taghandler_28.setTitleKey(\"jcrData2DTO.lastModifiedBy\");\n __jsp_tag_starteval=__jsp_taghandler_28.doStartTag();\n if (__jsp_taghandler_28.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_28,4);\n }\n out.write(__oracle_jsp_text[35]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_29=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag href paramId paramProperty value\");\n __jsp_taghandler_29.setParent(__jsp_taghandler_25);\n __jsp_taghandler_29.setHref(\"downloadFile.do\");\n __jsp_taghandler_29.setParamId(\"uuid\");\n __jsp_taghandler_29.setParamProperty(\"uuid\");\n __jsp_taghandler_29.setValue(\"DESCARGAR\");\n __jsp_tag_starteval=__jsp_taghandler_29.doStartTag();\n if (__jsp_taghandler_29.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_29,4);\n }\n out.write(__oracle_jsp_text[36]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_30=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name value\");\n __jsp_taghandler_30.setParent(__jsp_taghandler_25);\n __jsp_taghandler_30.setName(\"paging.banner.placement\");\n __jsp_taghandler_30.setValue(\"bottom\");\n __jsp_tag_starteval=__jsp_taghandler_30.doStartTag();\n if (__jsp_taghandler_30.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_30,4);\n }\n out.write(__oracle_jsp_text[37]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_31=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name value\");\n __jsp_taghandler_31.setParent(__jsp_taghandler_25);\n __jsp_taghandler_31.setName(\"export.pdf\");\n __jsp_taghandler_31.setValue(\"true\");\n __jsp_tag_starteval=__jsp_taghandler_31.doStartTag();\n if (__jsp_taghandler_31.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_31,4);\n }\n out.write(__oracle_jsp_text[38]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_32=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name\");\n __jsp_taghandler_32.setParent(__jsp_taghandler_25);\n __jsp_taghandler_32.setName(\"basic.msg.empty_list\");\n __jsp_tag_starteval=__jsp_taghandler_32.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_32,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[39]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_33=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_33.setParent(__jsp_taghandler_32);\n __jsp_taghandler_33.setCode(\"pagedList.empty.content\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_33.doStartTag();\n if (__jsp_taghandler_33.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_33.doCatch(th);\n } finally {\n __jsp_taghandler_33.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_33,5);\n }\n out.write(__oracle_jsp_text[40]);\n } while (__jsp_taghandler_32.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_32.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_32,4);\n }\n out.write(__oracle_jsp_text[41]);\n } while (__jsp_taghandler_25.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_25.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_25,3);\n }\n out.write(__oracle_jsp_text[42]);\n } while (__jsp_taghandler_24.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_24.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_24,2);\n }\n out.write(__oracle_jsp_text[43]);\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_1.doCatch(th);\n } finally {\n __jsp_taghandler_1.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "title": "" }, { "docid": "3dadb383885b7673b6eaf4331d66f7ee", "score": "0.5514599", "text": "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\r\n\r\n response.setContentType( \"text/html;charset=windows-1252\");\r\n /* set up the intrinsic variables using the pageContext goober:\r\n ** session = HttpSession\r\n ** application = ServletContext\r\n ** out = JspWriter\r\n ** page = this\r\n ** config = ServletConfig\r\n ** all session/app beans declared in globals.jsa\r\n */\r\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\r\n // Note: this is not emitted if the session directive == false\r\n HttpSession session = pageContext.getSession();\r\n int __jsp_tag_starteval;\r\n ServletContext application = pageContext.getServletContext();\r\n JspWriter out = pageContext.getOut();\r\n _formDados_2e_jsp page = this;\r\n ServletConfig config = pageContext.getServletConfig();\r\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\r\n\r\n try {\r\n\r\n\r\n out.write(__oracle_jsp_text[0]);\r\n out.write(__oracle_jsp_text[1]);\r\n out.write(__oracle_jsp_text[2]);\r\n out.write(__oracle_jsp_text[3]);\r\n {\r\n com.sun.faces.taglib.jsf_core.SubviewTag __jsp_taghandler_1=(com.sun.faces.taglib.jsf_core.SubviewTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.jsf_core.SubviewTag.class,\"com.sun.faces.taglib.jsf_core.SubviewTag id\");\r\n __jsp_taghandler_1.setParent(null);\r\n __jsp_taghandler_1.setId(\"editaCliente\");\r\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\r\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\r\n {\r\n out.write(__oracle_jsp_text[4]);\r\n {\r\n com.sun.faces.taglib.html_basic.FormTag __jsp_taghandler_2=(com.sun.faces.taglib.html_basic.FormTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.FormTag.class,\"com.sun.faces.taglib.html_basic.FormTag\");\r\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\r\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\r\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\r\n {\r\n out.write(__oracle_jsp_text[5]);\r\n {\r\n com.sun.faces.taglib.html_basic.PanelGridTag __jsp_taghandler_3=(com.sun.faces.taglib.html_basic.PanelGridTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.PanelGridTag.class,\"com.sun.faces.taglib.html_basic.PanelGridTag columns headerClass styleClass\");\r\n __jsp_taghandler_3.setParent(__jsp_taghandler_2);\r\n __jsp_taghandler_3.setColumns(\"1\");\r\n __jsp_taghandler_3.setHeaderClass(\"cabecalho\");\r\n __jsp_taghandler_3.setStyleClass(\"tabelaJSF\");\r\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\r\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\r\n {\r\n out.write(__oracle_jsp_text[6]);\r\n {\r\n javax.faces.webapp.FacetTag __jsp_taghandler_4=(javax.faces.webapp.FacetTag)OracleJspRuntime.getTagHandler(pageContext,javax.faces.webapp.FacetTag.class,\"javax.faces.webapp.FacetTag name\");\r\n __jsp_taghandler_4.setParent(__jsp_taghandler_3);\r\n __jsp_taghandler_4.setName(\"header\");\r\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\r\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\r\n {\r\n do {\r\n out.write(__oracle_jsp_text[7]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputTextTag __jsp_taghandler_5=(com.sun.faces.taglib.html_basic.OutputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputTextTag.class,\"com.sun.faces.taglib.html_basic.OutputTextTag value\");\r\n __jsp_taghandler_5.setParent(__jsp_taghandler_4);\r\n __jsp_taghandler_5.setValue(\"Cadastro de Categoria\");\r\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\r\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,5);\r\n }\r\n out.write(__oracle_jsp_text[8]);\r\n } while (__jsp_taghandler_4.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\r\n }\r\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,4);\r\n }\r\n out.write(__oracle_jsp_text[9]);\r\n {\r\n com.sun.faces.taglib.html_basic.PanelGridTag __jsp_taghandler_6=(com.sun.faces.taglib.html_basic.PanelGridTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.PanelGridTag.class,\"com.sun.faces.taglib.html_basic.PanelGridTag columns\");\r\n __jsp_taghandler_6.setParent(__jsp_taghandler_3);\r\n __jsp_taghandler_6.setColumns(\"2\");\r\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\r\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\r\n {\r\n out.write(__oracle_jsp_text[10]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_7=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_7.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_7.setValue(\"Nome\");\r\n __jsp_taghandler_7.setFor(\"nome\");\r\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\r\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,5);\r\n }\r\n out.write(__oracle_jsp_text[11]);\r\n {\r\n com.sun.faces.taglib.html_basic.InputTextTag __jsp_taghandler_8=(com.sun.faces.taglib.html_basic.InputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputTextTag.class,\"com.sun.faces.taglib.html_basic.InputTextTag id required value size\");\r\n __jsp_taghandler_8.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_8.setId(\"nome\");\r\n __jsp_taghandler_8.setRequired(\"false\");\r\n __jsp_taghandler_8.setValue(\"#{ClienteMB.cliente.nome}\");\r\n __jsp_taghandler_8.setSize(\"60\");\r\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\r\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,5);\r\n }\r\n out.write(__oracle_jsp_text[12]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_9=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_9.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_9.setValue(\"Telefone\");\r\n __jsp_taghandler_9.setFor(\"telefone\");\r\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\r\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,5);\r\n }\r\n out.write(__oracle_jsp_text[13]);\r\n {\r\n com.sun.faces.taglib.html_basic.PanelGridTag __jsp_taghandler_10=(com.sun.faces.taglib.html_basic.PanelGridTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.PanelGridTag.class,\"com.sun.faces.taglib.html_basic.PanelGridTag columns\");\r\n __jsp_taghandler_10.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_10.setColumns(\"3\");\r\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\r\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\r\n {\r\n out.write(__oracle_jsp_text[14]);\r\n {\r\n com.sun.faces.taglib.html_basic.InputTextTag __jsp_taghandler_11=(com.sun.faces.taglib.html_basic.InputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputTextTag.class,\"com.sun.faces.taglib.html_basic.InputTextTag id required value size\");\r\n __jsp_taghandler_11.setParent(__jsp_taghandler_10);\r\n __jsp_taghandler_11.setId(\"telefone\");\r\n __jsp_taghandler_11.setRequired(\"true\");\r\n __jsp_taghandler_11.setValue(\"#{ClienteMB.cliente.telefone}\");\r\n __jsp_taghandler_11.setSize(\"15\");\r\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\r\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,6);\r\n }\r\n out.write(__oracle_jsp_text[15]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_12=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_12.setParent(__jsp_taghandler_10);\r\n __jsp_taghandler_12.setValue(\"Email\");\r\n __jsp_taghandler_12.setFor(\"email\");\r\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\r\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,6);\r\n }\r\n out.write(__oracle_jsp_text[16]);\r\n {\r\n com.sun.faces.taglib.html_basic.InputTextTag __jsp_taghandler_13=(com.sun.faces.taglib.html_basic.InputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputTextTag.class,\"com.sun.faces.taglib.html_basic.InputTextTag id required value size\");\r\n __jsp_taghandler_13.setParent(__jsp_taghandler_10);\r\n __jsp_taghandler_13.setId(\"email\");\r\n __jsp_taghandler_13.setRequired(\"true\");\r\n __jsp_taghandler_13.setValue(\"#{ClienteMB.cliente.email}\");\r\n __jsp_taghandler_13.setSize(\"40\");\r\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\r\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,6);\r\n }\r\n out.write(__oracle_jsp_text[17]);\r\n }\r\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,5);\r\n }\r\n out.write(__oracle_jsp_text[18]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_14=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_14.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_14.setValue(\"Senha\");\r\n __jsp_taghandler_14.setFor(\"senha\");\r\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\r\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,5);\r\n }\r\n out.write(__oracle_jsp_text[19]);\r\n {\r\n com.sun.faces.taglib.html_basic.PanelGridTag __jsp_taghandler_15=(com.sun.faces.taglib.html_basic.PanelGridTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.PanelGridTag.class,\"com.sun.faces.taglib.html_basic.PanelGridTag columns\");\r\n __jsp_taghandler_15.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_15.setColumns(\"3\");\r\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\r\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\r\n {\r\n out.write(__oracle_jsp_text[20]);\r\n {\r\n com.sun.faces.taglib.html_basic.InputSecretTag __jsp_taghandler_16=(com.sun.faces.taglib.html_basic.InputSecretTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputSecretTag.class,\"com.sun.faces.taglib.html_basic.InputSecretTag id required value\");\r\n __jsp_taghandler_16.setParent(__jsp_taghandler_15);\r\n __jsp_taghandler_16.setId(\"senha\");\r\n __jsp_taghandler_16.setRequired(\"false\");\r\n __jsp_taghandler_16.setValue(\"#{ClienteMB.cliente.senha}\");\r\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\r\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,6);\r\n }\r\n out.write(__oracle_jsp_text[21]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_17=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_17.setParent(__jsp_taghandler_15);\r\n __jsp_taghandler_17.setValue(\"Ativo\");\r\n __jsp_taghandler_17.setFor(\"ativo\");\r\n __jsp_tag_starteval=__jsp_taghandler_17.doStartTag();\r\n if (__jsp_taghandler_17.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_17,6);\r\n }\r\n out.write(__oracle_jsp_text[22]);\r\n {\r\n com.sun.faces.taglib.html_basic.SelectBooleanCheckboxTag __jsp_taghandler_18=(com.sun.faces.taglib.html_basic.SelectBooleanCheckboxTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.SelectBooleanCheckboxTag.class,\"com.sun.faces.taglib.html_basic.SelectBooleanCheckboxTag id value\");\r\n __jsp_taghandler_18.setParent(__jsp_taghandler_15);\r\n __jsp_taghandler_18.setId(\"ativo\");\r\n __jsp_taghandler_18.setValue(\"#{ClienteMB.cliente.ativo}\");\r\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\r\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,6);\r\n }\r\n out.write(__oracle_jsp_text[23]);\r\n }\r\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,5);\r\n }\r\n out.write(__oracle_jsp_text[24]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_19=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_19.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_19.setValue(\" Rua\");\r\n __jsp_taghandler_19.setFor(\"rua\");\r\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\r\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19,5);\r\n }\r\n out.write(__oracle_jsp_text[25]);\r\n {\r\n com.sun.faces.taglib.html_basic.PanelGridTag __jsp_taghandler_20=(com.sun.faces.taglib.html_basic.PanelGridTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.PanelGridTag.class,\"com.sun.faces.taglib.html_basic.PanelGridTag columns\");\r\n __jsp_taghandler_20.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_20.setColumns(\"3\");\r\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\r\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\r\n {\r\n out.write(__oracle_jsp_text[26]);\r\n {\r\n com.sun.faces.taglib.html_basic.InputTextTag __jsp_taghandler_21=(com.sun.faces.taglib.html_basic.InputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputTextTag.class,\"com.sun.faces.taglib.html_basic.InputTextTag id required value size\");\r\n __jsp_taghandler_21.setParent(__jsp_taghandler_20);\r\n __jsp_taghandler_21.setId(\"rua\");\r\n __jsp_taghandler_21.setRequired(\"false\");\r\n __jsp_taghandler_21.setValue(\"#{ClienteMB.cliente.enderecoRua}\");\r\n __jsp_taghandler_21.setSize(\"50\");\r\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\r\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21,6);\r\n }\r\n out.write(__oracle_jsp_text[27]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_22=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_22.setParent(__jsp_taghandler_20);\r\n __jsp_taghandler_22.setValue(\" Numero\");\r\n __jsp_taghandler_22.setFor(\"numero\");\r\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\r\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,6);\r\n }\r\n out.write(__oracle_jsp_text[28]);\r\n {\r\n com.sun.faces.taglib.html_basic.InputTextTag __jsp_taghandler_23=(com.sun.faces.taglib.html_basic.InputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputTextTag.class,\"com.sun.faces.taglib.html_basic.InputTextTag id required value size\");\r\n __jsp_taghandler_23.setParent(__jsp_taghandler_20);\r\n __jsp_taghandler_23.setId(\"numero\");\r\n __jsp_taghandler_23.setRequired(\"false\");\r\n __jsp_taghandler_23.setValue(\"#{ClienteMB.cliente.enderecoNumero}\");\r\n __jsp_taghandler_23.setSize(\"4\");\r\n __jsp_tag_starteval=__jsp_taghandler_23.doStartTag();\r\n if (__jsp_taghandler_23.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_23,6);\r\n }\r\n out.write(__oracle_jsp_text[29]);\r\n }\r\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,5);\r\n }\r\n out.write(__oracle_jsp_text[30]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_24=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_24.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_24.setValue(\"Bairro\");\r\n __jsp_taghandler_24.setFor(\"bairro\");\r\n __jsp_tag_starteval=__jsp_taghandler_24.doStartTag();\r\n if (__jsp_taghandler_24.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_24,5);\r\n }\r\n out.write(__oracle_jsp_text[31]);\r\n {\r\n com.sun.faces.taglib.html_basic.PanelGridTag __jsp_taghandler_25=(com.sun.faces.taglib.html_basic.PanelGridTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.PanelGridTag.class,\"com.sun.faces.taglib.html_basic.PanelGridTag columns\");\r\n __jsp_taghandler_25.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_25.setColumns(\"3\");\r\n __jsp_tag_starteval=__jsp_taghandler_25.doStartTag();\r\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\r\n {\r\n out.write(__oracle_jsp_text[32]);\r\n {\r\n com.sun.faces.taglib.html_basic.InputTextTag __jsp_taghandler_26=(com.sun.faces.taglib.html_basic.InputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputTextTag.class,\"com.sun.faces.taglib.html_basic.InputTextTag id required value\");\r\n __jsp_taghandler_26.setParent(__jsp_taghandler_25);\r\n __jsp_taghandler_26.setId(\"bairro\");\r\n __jsp_taghandler_26.setRequired(\"false\");\r\n __jsp_taghandler_26.setValue(\"#{ClienteMB.cliente.enderecoBairro}\");\r\n __jsp_tag_starteval=__jsp_taghandler_26.doStartTag();\r\n if (__jsp_taghandler_26.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_26,6);\r\n }\r\n out.write(__oracle_jsp_text[33]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_27=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_27.setParent(__jsp_taghandler_25);\r\n __jsp_taghandler_27.setValue(\"Cep\");\r\n __jsp_taghandler_27.setFor(\"cep\");\r\n __jsp_tag_starteval=__jsp_taghandler_27.doStartTag();\r\n if (__jsp_taghandler_27.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_27,6);\r\n }\r\n out.write(__oracle_jsp_text[34]);\r\n {\r\n com.sun.faces.taglib.html_basic.InputTextTag __jsp_taghandler_28=(com.sun.faces.taglib.html_basic.InputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputTextTag.class,\"com.sun.faces.taglib.html_basic.InputTextTag id required value size\");\r\n __jsp_taghandler_28.setParent(__jsp_taghandler_25);\r\n __jsp_taghandler_28.setId(\"cep\");\r\n __jsp_taghandler_28.setRequired(\"false\");\r\n __jsp_taghandler_28.setValue(\"#{ClienteMB.cliente.enderecoCep}\");\r\n __jsp_taghandler_28.setSize(\"9\");\r\n __jsp_tag_starteval=__jsp_taghandler_28.doStartTag();\r\n if (__jsp_taghandler_28.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_28,6);\r\n }\r\n out.write(__oracle_jsp_text[35]);\r\n }\r\n if (__jsp_taghandler_25.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_25,5);\r\n }\r\n out.write(__oracle_jsp_text[36]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_29=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_29.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_29.setValue(\"Cidade\");\r\n __jsp_taghandler_29.setFor(\"cidade\");\r\n __jsp_tag_starteval=__jsp_taghandler_29.doStartTag();\r\n if (__jsp_taghandler_29.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_29,5);\r\n }\r\n out.write(__oracle_jsp_text[37]);\r\n {\r\n com.sun.faces.taglib.html_basic.PanelGridTag __jsp_taghandler_30=(com.sun.faces.taglib.html_basic.PanelGridTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.PanelGridTag.class,\"com.sun.faces.taglib.html_basic.PanelGridTag columns\");\r\n __jsp_taghandler_30.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_30.setColumns(\"3\");\r\n __jsp_tag_starteval=__jsp_taghandler_30.doStartTag();\r\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\r\n {\r\n out.write(__oracle_jsp_text[38]);\r\n {\r\n com.sun.faces.taglib.html_basic.InputTextTag __jsp_taghandler_31=(com.sun.faces.taglib.html_basic.InputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputTextTag.class,\"com.sun.faces.taglib.html_basic.InputTextTag id value size\");\r\n __jsp_taghandler_31.setParent(__jsp_taghandler_30);\r\n __jsp_taghandler_31.setId(\"cidade\");\r\n __jsp_taghandler_31.setValue(\"#{ClienteMB.cliente.enderecoCidade}\");\r\n __jsp_taghandler_31.setSize(\"20\");\r\n __jsp_tag_starteval=__jsp_taghandler_31.doStartTag();\r\n if (__jsp_taghandler_31.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_31,6);\r\n }\r\n out.write(__oracle_jsp_text[39]);\r\n {\r\n com.sun.faces.taglib.html_basic.OutputLabelTag __jsp_taghandler_32=(com.sun.faces.taglib.html_basic.OutputLabelTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.OutputLabelTag.class,\"com.sun.faces.taglib.html_basic.OutputLabelTag value for\");\r\n __jsp_taghandler_32.setParent(__jsp_taghandler_30);\r\n __jsp_taghandler_32.setValue(\"Estado\");\r\n __jsp_taghandler_32.setFor(\"estado\");\r\n __jsp_tag_starteval=__jsp_taghandler_32.doStartTag();\r\n if (__jsp_taghandler_32.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_32,6);\r\n }\r\n out.write(__oracle_jsp_text[40]);\r\n {\r\n com.sun.faces.taglib.html_basic.InputTextTag __jsp_taghandler_33=(com.sun.faces.taglib.html_basic.InputTextTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.InputTextTag.class,\"com.sun.faces.taglib.html_basic.InputTextTag id required value size\");\r\n __jsp_taghandler_33.setParent(__jsp_taghandler_30);\r\n __jsp_taghandler_33.setId(\"estado\");\r\n __jsp_taghandler_33.setRequired(\"false\");\r\n __jsp_taghandler_33.setValue(\"#{ClienteMB.cliente.enderecoEstado}\");\r\n __jsp_taghandler_33.setSize(\"20\");\r\n __jsp_tag_starteval=__jsp_taghandler_33.doStartTag();\r\n if (__jsp_taghandler_33.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_33,6);\r\n }\r\n out.write(__oracle_jsp_text[41]);\r\n }\r\n if (__jsp_taghandler_30.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_30,5);\r\n }\r\n out.write(__oracle_jsp_text[42]);\r\n {\r\n com.sun.faces.taglib.html_basic.CommandButtonTag __jsp_taghandler_34=(com.sun.faces.taglib.html_basic.CommandButtonTag)OracleJspRuntime.getTagHandler(pageContext,com.sun.faces.taglib.html_basic.CommandButtonTag.class,\"com.sun.faces.taglib.html_basic.CommandButtonTag action value\");\r\n __jsp_taghandler_34.setParent(__jsp_taghandler_6);\r\n __jsp_taghandler_34.setAction(\"#{ClienteMB.save}\");\r\n __jsp_taghandler_34.setValue(\"Salvar\");\r\n __jsp_tag_starteval=__jsp_taghandler_34.doStartTag();\r\n if (__jsp_taghandler_34.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_34,5);\r\n }\r\n out.write(__oracle_jsp_text[43]);\r\n }\r\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,4);\r\n }\r\n out.write(__oracle_jsp_text[44]);\r\n }\r\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,3);\r\n }\r\n out.write(__oracle_jsp_text[45]);\r\n }\r\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\r\n }\r\n out.write(__oracle_jsp_text[46]);\r\n }\r\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\r\n return;\r\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\r\n }\r\n\r\n\r\n }\r\n catch( Throwable e) {\r\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\r\n try {\r\n if (out != null) out.clear();\r\n }\r\n catch( Exception clearException) {\r\n }\r\n pageContext.handlePageException( e);\r\n }\r\n }\r\n finally {\r\n OracleJspRuntime.extraHandlePCFinally(pageContext,true);\r\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\r\n }\r\n\r\n }", "title": "" }, { "docid": "f78d4fef0042ff3051e103767b5c299e", "score": "0.54890436", "text": "private JavascriptEscape() {}", "title": "" }, { "docid": "98cc1367d57cb2f67b7cb421c6307cd9", "score": "0.5479543", "text": "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _searchFiles page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n out.write(__oracle_jsp_text[6]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag modelAttribute\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setModelAttribute(\"jcrDataDTO\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[7]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setCode(\"jcrDataDTO.search.title\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\n __jsp_taghandler_3.setCode(\"jcrDataDTO.name\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.springframework.web.servlet.tags.form.InputTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.form.InputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.InputTag.class,\"org.springframework.web.servlet.tags.form.InputTag path\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\n __jsp_taghandler_4.setPath(\"name\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_4.doCatch(th);\n } finally {\n __jsp_taghandler_4.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\n __jsp_taghandler_5.setCode(\"jcrDataDTO.title\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_5.doCatch(th);\n } finally {\n __jsp_taghandler_5.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.form.InputTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.form.InputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.InputTag.class,\"org.springframework.web.servlet.tags.form.InputTag path\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\n __jsp_taghandler_6.setPath(\"title\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[12]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\n __jsp_taghandler_7.setCode(\"jcrDataDTO.descripcion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.springframework.web.servlet.tags.form.InputTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.form.InputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.InputTag.class,\"org.springframework.web.servlet.tags.form.InputTag path\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\n __jsp_taghandler_8.setPath(\"descripcion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_8.doCatch(th);\n } finally {\n __jsp_taghandler_8.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\n }\n out.write(__oracle_jsp_text[14]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_9=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\n __jsp_taghandler_9.setCode(\"jcrDataDTO.cadena\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_9.doCatch(th);\n } finally {\n __jsp_taghandler_9.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,2);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.springframework.web.servlet.tags.form.InputTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.form.InputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.InputTag.class,\"org.springframework.web.servlet.tags.form.InputTag path\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\n __jsp_taghandler_10.setPath(\"cadena\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_10.doCatch(th);\n } finally {\n __jsp_taghandler_10.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,2);\n }\n out.write(__oracle_jsp_text[16]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_11=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_11.setParent(__jsp_taghandler_1);\n __jsp_taghandler_11.setCode(\"jcrDataDTO.long\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_11.doStartTag();\n if (__jsp_taghandler_11.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_11.doCatch(th);\n } finally {\n __jsp_taghandler_11.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_11,2);\n }\n out.write(__oracle_jsp_text[17]);\n {\n org.springframework.web.servlet.tags.form.InputTag __jsp_taghandler_12=(org.springframework.web.servlet.tags.form.InputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.InputTag.class,\"org.springframework.web.servlet.tags.form.InputTag path\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_1);\n __jsp_taghandler_12.setPath(\"long_\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_12.doCatch(th);\n } finally {\n __jsp_taghandler_12.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\n }\n out.write(__oracle_jsp_text[18]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_13=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_13.setParent(__jsp_taghandler_1);\n __jsp_taghandler_13.setCode(\"jcrDataDTO.decimal\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_13.doStartTag();\n if (__jsp_taghandler_13.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_13.doCatch(th);\n } finally {\n __jsp_taghandler_13.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_13,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.springframework.web.servlet.tags.form.InputTag __jsp_taghandler_14=(org.springframework.web.servlet.tags.form.InputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.InputTag.class,\"org.springframework.web.servlet.tags.form.InputTag path\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_1);\n __jsp_taghandler_14.setPath(\"decimal\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_14.doCatch(th);\n } finally {\n __jsp_taghandler_14.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[20]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_15=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_1);\n __jsp_taghandler_15.setCode(\"jcrDataDTO.booleano\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_15.doCatch(th);\n } finally {\n __jsp_taghandler_15.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.springframework.web.servlet.tags.form.InputTag __jsp_taghandler_16=(org.springframework.web.servlet.tags.form.InputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.InputTag.class,\"org.springframework.web.servlet.tags.form.InputTag path\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_1);\n __jsp_taghandler_16.setPath(\"booleano\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_16.doCatch(th);\n } finally {\n __jsp_taghandler_16.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,2);\n }\n out.write(__oracle_jsp_text[22]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_17=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_17.setParent(__jsp_taghandler_1);\n __jsp_taghandler_17.setJspContext(pageContext);\n __jsp_taghandler_17.setAction(\"jcr/searchFiles\");\n __jsp_taghandler_17.setValue(\"submit.search\");\n __jsp_taghandler_17.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_17, pageContext);\n }\n out.write(__oracle_jsp_text[23]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_18=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_1);\n __jsp_taghandler_18.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${showVersionsId == null}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[24]);\n {\n _oracle._jsp._tag._jcrFilter_tag __jsp_taghandler_19=(_oracle._jsp._tag._jcrFilter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._jcrFilter_tag.class, pageContext);\n __jsp_taghandler_19.setParent(__jsp_taghandler_18);\n __jsp_taghandler_19.setJspContext(pageContext);\n __jsp_taghandler_19.setPropertyName(\"fsn:fileName\");\n __jsp_taghandler_19.setValuePath(\"jcrDataDTO.fileName\");\n __jsp_taghandler_19.setOperator(\"like\");\n __jsp_taghandler_19.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_19, pageContext);\n }\n out.write(__oracle_jsp_text[25]);\n {\n _oracle._jsp._tag._jcrFilter_tag __jsp_taghandler_20=(_oracle._jsp._tag._jcrFilter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._jcrFilter_tag.class, pageContext);\n __jsp_taghandler_20.setParent(__jsp_taghandler_18);\n __jsp_taghandler_20.setJspContext(pageContext);\n __jsp_taghandler_20.setPropertyName(\"jcr:title\");\n __jsp_taghandler_20.setValuePath(\"jcrDataDTO.title\");\n __jsp_taghandler_20.setOperator(\"like\");\n __jsp_taghandler_20.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_20, pageContext);\n }\n out.write(__oracle_jsp_text[26]);\n {\n _oracle._jsp._tag._jcrFilter_tag __jsp_taghandler_21=(_oracle._jsp._tag._jcrFilter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._jcrFilter_tag.class, pageContext);\n __jsp_taghandler_21.setParent(__jsp_taghandler_18);\n __jsp_taghandler_21.setJspContext(pageContext);\n __jsp_taghandler_21.setPropertyName(\"jcr:description\");\n __jsp_taghandler_21.setValuePath(\"jcrDataDTO.descripcion\");\n __jsp_taghandler_21.setOperator(\"like\");\n __jsp_taghandler_21.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_21, pageContext);\n }\n out.write(__oracle_jsp_text[27]);\n {\n _oracle._jsp._tag._jcrFilter_tag __jsp_taghandler_22=(_oracle._jsp._tag._jcrFilter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._jcrFilter_tag.class, pageContext);\n __jsp_taghandler_22.setParent(__jsp_taghandler_18);\n __jsp_taghandler_22.setJspContext(pageContext);\n __jsp_taghandler_22.setPropertyName(\"fsn:cadena\");\n __jsp_taghandler_22.setValuePath(\"jcrDataDTO.cadena\");\n __jsp_taghandler_22.setOperator(\"like\");\n __jsp_taghandler_22.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_22, pageContext);\n }\n out.write(__oracle_jsp_text[28]);\n {\n _oracle._jsp._tag._jcrFilter_tag __jsp_taghandler_23=(_oracle._jsp._tag._jcrFilter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._jcrFilter_tag.class, pageContext);\n __jsp_taghandler_23.setParent(__jsp_taghandler_18);\n __jsp_taghandler_23.setJspContext(pageContext);\n __jsp_taghandler_23.setPropertyName(\"fsn:long\");\n __jsp_taghandler_23.setValuePath(\"jcrDataDTO.long_\");\n __jsp_taghandler_23.setOperator(\"like\");\n __jsp_taghandler_23.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_23, pageContext);\n }\n out.write(__oracle_jsp_text[29]);\n {\n _oracle._jsp._tag._jcrFilter_tag __jsp_taghandler_24=(_oracle._jsp._tag._jcrFilter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._jcrFilter_tag.class, pageContext);\n __jsp_taghandler_24.setParent(__jsp_taghandler_18);\n __jsp_taghandler_24.setJspContext(pageContext);\n __jsp_taghandler_24.setPropertyName(\"fsn:decimal\");\n __jsp_taghandler_24.setValuePath(\"jcrDataDTO.decimal\");\n __jsp_taghandler_24.setOperator(\"like\");\n __jsp_taghandler_24.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_24, pageContext);\n }\n out.write(__oracle_jsp_text[30]);\n {\n _oracle._jsp._tag._jcrFilter_tag __jsp_taghandler_25=(_oracle._jsp._tag._jcrFilter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._jcrFilter_tag.class, pageContext);\n __jsp_taghandler_25.setParent(__jsp_taghandler_18);\n __jsp_taghandler_25.setJspContext(pageContext);\n __jsp_taghandler_25.setPropertyName(\"fsn:booleano\");\n __jsp_taghandler_25.setValuePath(\"jcrDataDTO.booleano\");\n __jsp_taghandler_25.setOperator(\"like\");\n __jsp_taghandler_25.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_25, pageContext);\n }\n out.write(__oracle_jsp_text[31]);\n {\n _oracle._jsp._tag._jcrList_tag __jsp_taghandler_26=(_oracle._jsp._tag._jcrList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._jcrList_tag.class, pageContext);\n __jsp_taghandler_26.setParent(__jsp_taghandler_18);\n __jsp_taghandler_26.setJspContext(pageContext);\n __jsp_taghandler_26.setNodeType(\"fsn:fsntestResource\");\n __jsp_taghandler_26.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_26, pageContext);\n }\n out.write(__oracle_jsp_text[32]);\n } while (__jsp_taghandler_18.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,2);\n }\n out.write(__oracle_jsp_text[33]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_27=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_27.setParent(__jsp_taghandler_1);\n __jsp_taghandler_27.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${items != null}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_27.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[34]);\n {\n org.displaytag.tags.TableTag __jsp_taghandler_28=(org.displaytag.tags.TableTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.TableTag.class,\"org.displaytag.tags.TableTag name pagesize requestURI class uid sort\");\n __jsp_taghandler_28.setParent(__jsp_taghandler_27);\n __jsp_taghandler_28.setName(\"items\");\n __jsp_taghandler_28.setPagesize(10);\n __jsp_taghandler_28.setRequestURI(\"/jcr/searchFiles.do\");\n __jsp_taghandler_28.setClass(\"displaytag\");\n __jsp_taghandler_28.setUid(\"row\");\n __jsp_taghandler_28.setSort(\"list\");\n java.lang.Object row = null;\n java.lang.Integer row_rowNum = null;\n __jsp_tag_starteval=__jsp_taghandler_28.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_28,__jsp_tag_starteval,out);\n do {\n row = (java.lang.Object) pageContext.findAttribute(\"row\");\n row_rowNum = (java.lang.Integer) pageContext.findAttribute(\"row_rowNum\");\n out.write(__oracle_jsp_text[35]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_29=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey\");\n __jsp_taghandler_29.setParent(__jsp_taghandler_28);\n __jsp_taghandler_29.setProperty(\"name\");\n __jsp_taghandler_29.setTitleKey(\"jcrDataDTO.name\");\n __jsp_tag_starteval=__jsp_taghandler_29.doStartTag();\n if (__jsp_taghandler_29.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_29,4);\n }\n out.write(__oracle_jsp_text[36]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_30=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey format\");\n __jsp_taghandler_30.setParent(__jsp_taghandler_28);\n __jsp_taghandler_30.setProperty(\"created.time\");\n __jsp_taghandler_30.setTitleKey(\"jcrDataDTO.created\");\n __jsp_taghandler_30.setFormat(\"{0,date,dd-MM-yyyy:hh:mm:ss}\");\n __jsp_tag_starteval=__jsp_taghandler_30.doStartTag();\n if (__jsp_taghandler_30.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_30,4);\n }\n out.write(__oracle_jsp_text[37]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_31=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey format\");\n __jsp_taghandler_31.setParent(__jsp_taghandler_28);\n __jsp_taghandler_31.setProperty(\"lastModified.time\");\n __jsp_taghandler_31.setTitleKey(\"jcrDataDTO.lastModified\");\n __jsp_taghandler_31.setFormat(\"{0,date,dd-MM-yyyy:hh:mm:ss}\");\n __jsp_tag_starteval=__jsp_taghandler_31.doStartTag();\n if (__jsp_taghandler_31.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_31,4);\n }\n out.write(__oracle_jsp_text[38]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_32=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey\");\n __jsp_taghandler_32.setParent(__jsp_taghandler_28);\n __jsp_taghandler_32.setProperty(\"mimeType\");\n __jsp_taghandler_32.setTitleKey(\"jcrDataDTO.mimeType\");\n __jsp_tag_starteval=__jsp_taghandler_32.doStartTag();\n if (__jsp_taghandler_32.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_32,4);\n }\n out.write(__oracle_jsp_text[39]);\n out.write(__oracle_jsp_text[40]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_33=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property title\");\n __jsp_taghandler_33.setParent(__jsp_taghandler_28);\n __jsp_taghandler_33.setProperty(\"properties.fsn:cadena\");\n __jsp_taghandler_33.setTitle(\"cadena\");\n __jsp_tag_starteval=__jsp_taghandler_33.doStartTag();\n if (__jsp_taghandler_33.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_33,4);\n }\n out.write(__oracle_jsp_text[41]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_34=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property title\");\n __jsp_taghandler_34.setParent(__jsp_taghandler_28);\n __jsp_taghandler_34.setProperty(\"properties.fsn:decimal\");\n __jsp_taghandler_34.setTitle(\"decimal\");\n __jsp_tag_starteval=__jsp_taghandler_34.doStartTag();\n if (__jsp_taghandler_34.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_34,4);\n }\n out.write(__oracle_jsp_text[42]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_35=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag href paramId paramProperty value\");\n __jsp_taghandler_35.setParent(__jsp_taghandler_28);\n __jsp_taghandler_35.setHref(\"downloadFile.do\");\n __jsp_taghandler_35.setParamId(\"uuid\");\n __jsp_taghandler_35.setParamProperty(\"uuid\");\n __jsp_taghandler_35.setValue(\"DESCARGAR\");\n __jsp_tag_starteval=__jsp_taghandler_35.doStartTag();\n if (__jsp_taghandler_35.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_35,4);\n }\n out.write(__oracle_jsp_text[43]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_36=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag href paramId paramProperty value\");\n __jsp_taghandler_36.setParent(__jsp_taghandler_28);\n __jsp_taghandler_36.setHref(\"initUpdateFile.do\");\n __jsp_taghandler_36.setParamId(\"uuid\");\n __jsp_taghandler_36.setParamProperty(\"uuid\");\n __jsp_taghandler_36.setValue(\"ACTUALIZAR\");\n __jsp_tag_starteval=__jsp_taghandler_36.doStartTag();\n if (__jsp_taghandler_36.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_36,4);\n }\n out.write(__oracle_jsp_text[44]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_37=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag href paramId paramProperty value\");\n __jsp_taghandler_37.setParent(__jsp_taghandler_28);\n __jsp_taghandler_37.setHref(\"showVersionsFile.do\");\n __jsp_taghandler_37.setParamId(\"uuid\");\n __jsp_taghandler_37.setParamProperty(\"uuid\");\n __jsp_taghandler_37.setValue(\"VERSIONES\");\n __jsp_tag_starteval=__jsp_taghandler_37.doStartTag();\n if (__jsp_taghandler_37.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_37,4);\n }\n out.write(__oracle_jsp_text[45]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_38=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag href paramId paramProperty value\");\n __jsp_taghandler_38.setParent(__jsp_taghandler_28);\n __jsp_taghandler_38.setHref(\"deleteFile.do\");\n __jsp_taghandler_38.setParamId(\"uuid\");\n __jsp_taghandler_38.setParamProperty(\"uuid\");\n __jsp_taghandler_38.setValue(\"ELIMINAR\");\n __jsp_tag_starteval=__jsp_taghandler_38.doStartTag();\n if (__jsp_taghandler_38.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_38,4);\n }\n out.write(__oracle_jsp_text[46]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_39=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name value\");\n __jsp_taghandler_39.setParent(__jsp_taghandler_28);\n __jsp_taghandler_39.setName(\"paging.banner.placement\");\n __jsp_taghandler_39.setValue(\"bottom\");\n __jsp_tag_starteval=__jsp_taghandler_39.doStartTag();\n if (__jsp_taghandler_39.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_39,4);\n }\n out.write(__oracle_jsp_text[47]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_40=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name value\");\n __jsp_taghandler_40.setParent(__jsp_taghandler_28);\n __jsp_taghandler_40.setName(\"export.pdf\");\n __jsp_taghandler_40.setValue(\"true\");\n __jsp_tag_starteval=__jsp_taghandler_40.doStartTag();\n if (__jsp_taghandler_40.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_40,4);\n }\n out.write(__oracle_jsp_text[48]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_41=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name\");\n __jsp_taghandler_41.setParent(__jsp_taghandler_28);\n __jsp_taghandler_41.setName(\"basic.msg.empty_list\");\n __jsp_tag_starteval=__jsp_taghandler_41.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_41,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[49]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_42=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_42.setParent(__jsp_taghandler_41);\n __jsp_taghandler_42.setCode(\"pagedList.empty.content\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_42.doStartTag();\n if (__jsp_taghandler_42.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_42.doCatch(th);\n } finally {\n __jsp_taghandler_42.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_42,5);\n }\n out.write(__oracle_jsp_text[50]);\n } while (__jsp_taghandler_41.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_41.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_41,4);\n }\n out.write(__oracle_jsp_text[51]);\n } while (__jsp_taghandler_28.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_28.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_28,3);\n }\n out.write(__oracle_jsp_text[52]);\n } while (__jsp_taghandler_27.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_27.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_27,2);\n }\n out.write(__oracle_jsp_text[53]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_43=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_43.setParent(__jsp_taghandler_1);\n __jsp_taghandler_43.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${showVersionsId != null}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_43.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[54]);\n {\n _oracle._jsp._tag._jcrVersions_tag __jsp_taghandler_44=(_oracle._jsp._tag._jcrVersions_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._jcrVersions_tag.class, pageContext);\n __jsp_taghandler_44.setParent(__jsp_taghandler_43);\n __jsp_taghandler_44.setJspContext(pageContext);\n __jsp_taghandler_44.setUuid((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${showVersionsId}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_taghandler_44.setName(\"versionsList\");\n __jsp_taghandler_44.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_44, pageContext);\n }\n out.write(__oracle_jsp_text[55]);\n {\n org.displaytag.tags.TableTag __jsp_taghandler_45=(org.displaytag.tags.TableTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.TableTag.class,\"org.displaytag.tags.TableTag name pagesize requestURI class uid sort\");\n __jsp_taghandler_45.setParent(__jsp_taghandler_43);\n __jsp_taghandler_45.setName(\"versionsList\");\n __jsp_taghandler_45.setPagesize(10);\n __jsp_taghandler_45.setRequestURI(\"jcr/searchFiles.do\");\n __jsp_taghandler_45.setClass(\"displaytag\");\n __jsp_taghandler_45.setUid(\"versionRow\");\n __jsp_taghandler_45.setSort(\"list\");\n java.lang.Object versionRow = null;\n java.lang.Integer versionRow_rowNum = null;\n __jsp_tag_starteval=__jsp_taghandler_45.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_45,__jsp_tag_starteval,out);\n do {\n versionRow = (java.lang.Object) pageContext.findAttribute(\"versionRow\");\n versionRow_rowNum = (java.lang.Integer) pageContext.findAttribute(\"versionRow_rowNum\");\n out.write(__oracle_jsp_text[56]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_46=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey\");\n __jsp_taghandler_46.setParent(__jsp_taghandler_45);\n __jsp_taghandler_46.setProperty(\"versionName\");\n __jsp_taghandler_46.setTitleKey(\"jcrDataDTO.version\");\n __jsp_tag_starteval=__jsp_taghandler_46.doStartTag();\n if (__jsp_taghandler_46.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_46,4);\n }\n out.write(__oracle_jsp_text[57]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_47=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey format\");\n __jsp_taghandler_47.setParent(__jsp_taghandler_45);\n __jsp_taghandler_47.setProperty(\"versionCreated.time\");\n __jsp_taghandler_47.setTitleKey(\"jcrDataDTO.versionDate\");\n __jsp_taghandler_47.setFormat(\"{0,date,dd-MM-yyyy:hh:mm:ss}\");\n __jsp_tag_starteval=__jsp_taghandler_47.doStartTag();\n if (__jsp_taghandler_47.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_47,4);\n }\n out.write(__oracle_jsp_text[58]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_48=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag property titleKey\");\n __jsp_taghandler_48.setParent(__jsp_taghandler_45);\n __jsp_taghandler_48.setProperty(\"lastModifiedBy\");\n __jsp_taghandler_48.setTitleKey(\"jcrDataDTO.lastModifiedBy\");\n __jsp_tag_starteval=__jsp_taghandler_48.doStartTag();\n if (__jsp_taghandler_48.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_48,4);\n }\n out.write(__oracle_jsp_text[59]);\n {\n org.displaytag.tags.ColumnTag __jsp_taghandler_49=(org.displaytag.tags.ColumnTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.ColumnTag.class,\"org.displaytag.tags.ColumnTag href paramId paramProperty value\");\n __jsp_taghandler_49.setParent(__jsp_taghandler_45);\n __jsp_taghandler_49.setHref(\"downloadFile.do\");\n __jsp_taghandler_49.setParamId(\"uuid\");\n __jsp_taghandler_49.setParamProperty(\"uuid\");\n __jsp_taghandler_49.setValue(\"DESCARGAR\");\n __jsp_tag_starteval=__jsp_taghandler_49.doStartTag();\n if (__jsp_taghandler_49.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_49,4);\n }\n out.write(__oracle_jsp_text[60]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_50=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name value\");\n __jsp_taghandler_50.setParent(__jsp_taghandler_45);\n __jsp_taghandler_50.setName(\"paging.banner.placement\");\n __jsp_taghandler_50.setValue(\"bottom\");\n __jsp_tag_starteval=__jsp_taghandler_50.doStartTag();\n if (__jsp_taghandler_50.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_50,4);\n }\n out.write(__oracle_jsp_text[61]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_51=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name value\");\n __jsp_taghandler_51.setParent(__jsp_taghandler_45);\n __jsp_taghandler_51.setName(\"export.pdf\");\n __jsp_taghandler_51.setValue(\"true\");\n __jsp_tag_starteval=__jsp_taghandler_51.doStartTag();\n if (__jsp_taghandler_51.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_51,4);\n }\n out.write(__oracle_jsp_text[62]);\n {\n org.displaytag.tags.SetPropertyTag __jsp_taghandler_52=(org.displaytag.tags.SetPropertyTag)OracleJspRuntime.getTagHandler(pageContext,org.displaytag.tags.SetPropertyTag.class,\"org.displaytag.tags.SetPropertyTag name\");\n __jsp_taghandler_52.setParent(__jsp_taghandler_45);\n __jsp_taghandler_52.setName(\"basic.msg.empty_list\");\n __jsp_tag_starteval=__jsp_taghandler_52.doStartTag();\n if (OracleJspRuntime.checkStartBodyTagEval(__jsp_tag_starteval))\n {\n try {\n out=OracleJspRuntime.pushBodyIfNeeded(pageContext,__jsp_taghandler_52,__jsp_tag_starteval,out);\n do {\n out.write(__oracle_jsp_text[63]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_53=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_53.setParent(__jsp_taghandler_52);\n __jsp_taghandler_53.setCode(\"pagedList.empty.content\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_53.doStartTag();\n if (__jsp_taghandler_53.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_53.doCatch(th);\n } finally {\n __jsp_taghandler_53.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_53,5);\n }\n out.write(__oracle_jsp_text[64]);\n } while (__jsp_taghandler_52.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_52.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_52,4);\n }\n out.write(__oracle_jsp_text[65]);\n } while (__jsp_taghandler_45.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n finally {\n out=OracleJspRuntime.popBodyIfNeeded(pageContext,out);\n }\n }\n if (__jsp_taghandler_45.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_45,3);\n }\n out.write(__oracle_jsp_text[66]);\n } while (__jsp_taghandler_43.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_43.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_43,2);\n }\n out.write(__oracle_jsp_text[67]);\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_1.doCatch(th);\n } finally {\n __jsp_taghandler_1.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "title": "" }, { "docid": "914ab015361dbbb972f5a44b6d4ba5ee", "score": "0.5471049", "text": "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _correoElectronico page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag modelAttribute enctype\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setModelAttribute(\"correoElectronicDTO\");\n __jsp_taghandler_1.setEnctype(\"multipart/form-data\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[5]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setPath(\"dataGrid\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\n }\n out.write(__oracle_jsp_text[6]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\n __jsp_taghandler_3.setPath(\"panelCorreo\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[7]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\n __jsp_taghandler_4.setPath(\"mergedPDF\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_4.doCatch(th);\n } finally {\n __jsp_taghandler_4.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\n __jsp_taghandler_5.setPath(\"nameFileZip\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_5.doCatch(th);\n } finally {\n __jsp_taghandler_5.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\n __jsp_taghandler_6.setCode(\"sireh.label.nomina.terceros.envioCFDI.empleado\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\n __jsp_taghandler_7.setCode(\"sireh.label.merito.label.rfc\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n _oracle._jsp._tag._helpRoutine_tag __jsp_taghandler_8=(_oracle._jsp._tag._helpRoutine_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._helpRoutine_tag.class, pageContext);\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\n __jsp_taghandler_8.setJspContext(pageContext);\n __jsp_taghandler_8.setBeanName(\"empleadosConstanciaNombramiento\");\n __jsp_taghandler_8.setPath(\"rfcEmpleado\");\n __jsp_taghandler_8.setFieldMapping(\"rfcEmpleado, idPlaza, curpEmpleado, primerApellido, segundoApellido, nombreEmpleado\");\n __jsp_taghandler_8.setWidth(\"1000\");\n __jsp_taghandler_8.setLeftPosition(\"17\");\n __jsp_taghandler_8.setHeight(\"400\");\n __jsp_taghandler_8.setTopPosition(\"20\");\n __jsp_taghandler_8.setMaxlength(\"16\");\n __jsp_taghandler_8.setDisabled(\"true\");\n __jsp_taghandler_8.setSize(\"16\");\n __jsp_taghandler_8.setTitle(\"Seleccione el RFC\");\n __jsp_taghandler_8.setMaxRows(\"150\");\n __jsp_taghandler_8.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_8, pageContext);\n }\n out.write(__oracle_jsp_text[12]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_9=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\n __jsp_taghandler_9.setCode(\"sireh.label.nomina.terceros.serica.ciclo\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_9.doStartTag();\n if (__jsp_taghandler_9.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_9.doCatch(th);\n } finally {\n __jsp_taghandler_9.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_9,2);\n }\n out.write(__oracle_jsp_text[13]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_10=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\n __jsp_taghandler_10.setJspContext(pageContext);\n __jsp_taghandler_10.setKey(\"\");\n __jsp_taghandler_10.setValue(\"selectList.nonValue\");\n __jsp_taghandler_10.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_10, pageContext);\n }\n out.write(__oracle_jsp_text[14]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_11=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_11.setParent(__jsp_taghandler_1);\n __jsp_taghandler_11.setJspContext(pageContext);\n __jsp_taghandler_11.setBeanName(\"ListaCiclosCorreoElectronicoCFDI\");\n __jsp_taghandler_11.setPath(\"ciclo\");\n __jsp_taghandler_11.setStyle(\"width: 105px;\");\n __jsp_taghandler_11.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_11, pageContext);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_12=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_1);\n __jsp_taghandler_12.setCode(\"sireh.label.nomina.movimientos.actualizacionNomina.actualizacionConceptos.generales.desde\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_12.doCatch(th);\n } finally {\n __jsp_taghandler_12.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\n }\n out.write(__oracle_jsp_text[16]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_13=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_13.setParent(__jsp_taghandler_1);\n __jsp_taghandler_13.setJspContext(pageContext);\n __jsp_taghandler_13.setKey(\"\");\n __jsp_taghandler_13.setValue(\"selectList.nonValue\");\n __jsp_taghandler_13.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_13, pageContext);\n }\n out.write(__oracle_jsp_text[17]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_14=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_14.setParent(__jsp_taghandler_1);\n __jsp_taghandler_14.setJspContext(pageContext);\n __jsp_taghandler_14.setBeanName(\"listaQuincenasIniCorreoElctronicoCFDI\");\n __jsp_taghandler_14.setPath(\"qnaInicial\");\n __jsp_taghandler_14.setParentPath(\"ciclo\");\n __jsp_taghandler_14.setProgress(\"true\");\n __jsp_taghandler_14.setStyle(\"width: 105px;\");\n __jsp_taghandler_14.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_14, pageContext);\n }\n out.write(__oracle_jsp_text[18]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_15=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_15.setParent(__jsp_taghandler_1);\n __jsp_taghandler_15.setCode(\"sireh.label.nomina.movimientos.actualizacionNomina.actualizacionConceptos.generales.hasta\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_15.doStartTag();\n if (__jsp_taghandler_15.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_15.doCatch(th);\n } finally {\n __jsp_taghandler_15.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_15,2);\n }\n out.write(__oracle_jsp_text[19]);\n {\n _oracle._jsp._tag._option_tag __jsp_taghandler_16=(_oracle._jsp._tag._option_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._option_tag.class, pageContext);\n __jsp_taghandler_16.setParent(__jsp_taghandler_1);\n __jsp_taghandler_16.setJspContext(pageContext);\n __jsp_taghandler_16.setKey(\"\");\n __jsp_taghandler_16.setValue(\"selectList.nonValue\");\n __jsp_taghandler_16.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_16, pageContext);\n }\n out.write(__oracle_jsp_text[20]);\n {\n _oracle._jsp._tag._selectList_tag __jsp_taghandler_17=(_oracle._jsp._tag._selectList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._selectList_tag.class, pageContext);\n __jsp_taghandler_17.setParent(__jsp_taghandler_1);\n __jsp_taghandler_17.setJspContext(pageContext);\n __jsp_taghandler_17.setBeanName(\"listQnasFinCFDIemail\");\n __jsp_taghandler_17.setPath(\"qnaFinal\");\n __jsp_taghandler_17.setParentPath(\"ciclo\");\n __jsp_taghandler_17.setProgress(\"true\");\n __jsp_taghandler_17.setFilterPaths(\"qnaInicial\");\n __jsp_taghandler_17.setStyle(\"width: 105px;\");\n __jsp_taghandler_17.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_17, pageContext);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_18=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_1);\n __jsp_taghandler_18.setCode(\"sireh.form.required.fields\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_18.doCatch(th);\n } finally {\n __jsp_taghandler_18.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,2);\n }\n out.write(__oracle_jsp_text[22]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_19=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_19.setParent(__jsp_taghandler_1);\n __jsp_taghandler_19.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${correoElectronicDTO.panelCorreo}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_19.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[23]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_20=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_19);\n __jsp_taghandler_20.setCode(\"sireh.label.terceros.timbradosat.envioCorreo.correo\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_20.doCatch(th);\n } finally {\n __jsp_taghandler_20.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,3);\n }\n out.write(__oracle_jsp_text[24]);\n {\n org.springframework.web.servlet.tags.form.PasswordInputTag __jsp_taghandler_21=(org.springframework.web.servlet.tags.form.PasswordInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.PasswordInputTag.class,\"org.springframework.web.servlet.tags.form.PasswordInputTag path onchange size maxlength\");\n __jsp_taghandler_21.setParent(__jsp_taghandler_19);\n __jsp_taghandler_21.setPath(\"correoReceptor\");\n __jsp_taghandler_21.setOnchange(\"validaEmail();\");\n __jsp_taghandler_21.setSize(\"30\");\n __jsp_taghandler_21.setMaxlength(\"360\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_21.doStartTag();\n if (__jsp_taghandler_21.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_21.doCatch(th);\n } finally {\n __jsp_taghandler_21.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_21,3);\n }\n out.write(__oracle_jsp_text[25]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_22=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_22.setParent(__jsp_taghandler_19);\n __jsp_taghandler_22.setCode(\"sireh.label.terceros.timbradosat.envioCorreo.correoConfima\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_22.doCatch(th);\n } finally {\n __jsp_taghandler_22.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,3);\n }\n out.write(__oracle_jsp_text[26]);\n {\n org.springframework.web.servlet.tags.form.PasswordInputTag __jsp_taghandler_23=(org.springframework.web.servlet.tags.form.PasswordInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.PasswordInputTag.class,\"org.springframework.web.servlet.tags.form.PasswordInputTag path onchange size maxlength\");\n __jsp_taghandler_23.setParent(__jsp_taghandler_19);\n __jsp_taghandler_23.setPath(\"correoReceptorConfirmar\");\n __jsp_taghandler_23.setOnchange(\"validaEmailConfirm();\");\n __jsp_taghandler_23.setSize(\"30\");\n __jsp_taghandler_23.setMaxlength(\"360\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_23.doStartTag();\n if (__jsp_taghandler_23.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_23.doCatch(th);\n } finally {\n __jsp_taghandler_23.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_23,3);\n }\n out.write(__oracle_jsp_text[27]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_24=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_24.setParent(__jsp_taghandler_19);\n __jsp_taghandler_24.setCode(\"sireh.label.terceros.timbradosat.envioCorreo.correo.imgAviso\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_24.doStartTag();\n if (__jsp_taghandler_24.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_24.doCatch(th);\n } finally {\n __jsp_taghandler_24.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_24,3);\n }\n out.write(__oracle_jsp_text[28]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_25=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_25.setParent(__jsp_taghandler_19);\n __jsp_taghandler_25.setCode(\"sireh.label.terceros.timbradosat.envioCorreo.correo.imgAncla\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_25.doStartTag();\n if (__jsp_taghandler_25.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_25.doCatch(th);\n } finally {\n __jsp_taghandler_25.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_25,3);\n }\n out.write(__oracle_jsp_text[29]);\n {\n _oracle._jsp._tag._input_tag __jsp_taghandler_26=(_oracle._jsp._tag._input_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._input_tag.class, pageContext);\n __jsp_taghandler_26.setParent(__jsp_taghandler_19);\n __jsp_taghandler_26.setJspContext(pageContext);\n __jsp_taghandler_26.setPath(\"ancla\");\n __jsp_taghandler_26.setMaxlength(\"360\");\n __jsp_taghandler_26.setSize(\"25\");\n __jsp_taghandler_26.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_26, pageContext);\n }\n out.write(__oracle_jsp_text[30]);\n } while (__jsp_taghandler_19.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_19.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_19,2);\n }\n out.write(__oracle_jsp_text[31]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_27=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_27.setParent(__jsp_taghandler_1);\n __jsp_taghandler_27.setJspContext(pageContext);\n __jsp_taghandler_27.setPath(\"buscar\");\n __jsp_taghandler_27.setAction(\"timbradoSat/correoElectronico.do\");\n __jsp_taghandler_27.setValue(\"submit.search\");\n __jsp_taghandler_27.setProgressBar(\"true\");\n __jsp_taghandler_27.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_27, pageContext);\n }\n out.write(__oracle_jsp_text[32]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_28=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_28.setParent(__jsp_taghandler_1);\n __jsp_taghandler_28.setJspContext(pageContext);\n __jsp_taghandler_28.setPath(\"limpiar\");\n __jsp_taghandler_28.setAction(\"timbradoSat/correoElectronico.do\");\n __jsp_taghandler_28.setValue(\"submit.clean\");\n __jsp_taghandler_28.setProgressBar(\"true\");\n __jsp_taghandler_28.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_28, pageContext);\n }\n out.write(__oracle_jsp_text[33]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_29=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_29.setParent(__jsp_taghandler_1);\n __jsp_taghandler_29.setJspContext(pageContext);\n __jsp_taghandler_29.setPath(\"generar\");\n __jsp_taghandler_29.setAction(\"timbradoSat/correoElectronico.do\");\n __jsp_taghandler_29.setValue(\"submit.generate\");\n __jsp_taghandler_29.setProgressBar(\"true\");\n __jsp_taghandler_29.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_29, pageContext);\n }\n out.write(__oracle_jsp_text[34]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_30=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_30.setParent(__jsp_taghandler_1);\n __jsp_taghandler_30.setJspContext(pageContext);\n __jsp_taghandler_30.setPath(\"enviar\");\n __jsp_taghandler_30.setAction(\"timbradoSat/correoElectronico.do\");\n __jsp_taghandler_30.setValue(\"submit.send\");\n __jsp_taghandler_30.setProgressBar(\"true\");\n __jsp_taghandler_30.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_30, pageContext);\n }\n out.write(__oracle_jsp_text[35]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_31=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_31.setParent(__jsp_taghandler_1);\n __jsp_taghandler_31.setJspContext(pageContext);\n __jsp_taghandler_31.setPath(\"descargar\");\n __jsp_taghandler_31.setAction(\"timbradoSat/descargarZip.do\");\n __jsp_taghandler_31.setValue(\"submit.download\");\n __jsp_taghandler_31.setProgressIcon(\"false\");\n __jsp_taghandler_31.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_31, pageContext);\n }\n out.write(__oracle_jsp_text[36]);\n {\n org.apache.taglibs.standard.tag.rt.core.ForEachTag __jsp_taghandler_32=(org.apache.taglibs.standard.tag.rt.core.ForEachTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.ForEachTag.class,\"org.apache.taglibs.standard.tag.rt.core.ForEachTag items var varStatus\");\n __jsp_taghandler_32.setParent(__jsp_taghandler_1);\n __jsp_taghandler_32.setItems((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${correoElectronicDTO.adjuntos}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_32.setVar(\"itemKeyDTO\");\n __jsp_taghandler_32.setVarStatus(\"status\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_32.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[37]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_33=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_33.setParent(__jsp_taghandler_32);\n __jsp_taghandler_33.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${status.index}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_33.doStartTag();\n if (__jsp_taghandler_33.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_33,3);\n }\n out.write(__oracle_jsp_text[38]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_34=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_34.setParent(__jsp_taghandler_32);\n __jsp_taghandler_34.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${itemKeyDTO.key}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_34.doStartTag();\n if (__jsp_taghandler_34.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_34,3);\n }\n out.write(__oracle_jsp_text[39]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_35=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_35.setParent(__jsp_taghandler_32);\n __jsp_taghandler_35.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${status.index}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_35.doStartTag();\n if (__jsp_taghandler_35.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_35,3);\n }\n out.write(__oracle_jsp_text[40]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_36=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_36.setParent(__jsp_taghandler_32);\n __jsp_taghandler_36.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${itemKeyDTO.value}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_36.doStartTag();\n if (__jsp_taghandler_36.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_36,3);\n }\n out.write(__oracle_jsp_text[41]);\n } while (__jsp_taghandler_32.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_32.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_32.doCatch(th);\n } finally {\n __jsp_taghandler_32.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_32,2);\n }\n out.write(__oracle_jsp_text[42]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_37=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_37.setParent(__jsp_taghandler_1);\n __jsp_taghandler_37.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${correoElectronicDTO.dataGrid}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_37.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[43]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_38=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_38.setParent(__jsp_taghandler_37);\n __jsp_taghandler_38.setJspContext(pageContext);\n __jsp_taghandler_38.setProperty(\"HP.HP_QNA_PAGO>\");\n __jsp_taghandler_38.setCondition(\"=\");\n __jsp_taghandler_38.setPath(\"qnaInicial\");\n __jsp_taghandler_38.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_38, pageContext);\n }\n out.write(__oracle_jsp_text[44]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_39=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_39.setParent(__jsp_taghandler_37);\n __jsp_taghandler_39.setJspContext(pageContext);\n __jsp_taghandler_39.setProperty(\"HP.HP_QNA_PAGO<\");\n __jsp_taghandler_39.setCondition(\"=\");\n __jsp_taghandler_39.setPath(\"qnaFinal\");\n __jsp_taghandler_39.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_39, pageContext);\n }\n out.write(__oracle_jsp_text[45]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_40=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_40.setParent(__jsp_taghandler_37);\n __jsp_taghandler_40.setJspContext(pageContext);\n __jsp_taghandler_40.setProperty(\"CD.CN_RFC\");\n __jsp_taghandler_40.setCondition(\"=\");\n __jsp_taghandler_40.setPath(\"rfcEmpleado\");\n __jsp_taghandler_40.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_40, pageContext);\n }\n out.write(__oracle_jsp_text[46]);\n {\n _oracle._jsp._tag._pagedList_tag __jsp_taghandler_41=(_oracle._jsp._tag._pagedList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._pagedList_tag.class, pageContext);\n __jsp_taghandler_41.setParent(__jsp_taghandler_37);\n __jsp_taghandler_41.setJspContext(pageContext);\n __jsp_taghandler_41.setBaseUrl(\"timbradoSat/correoElectronico\");\n __jsp_taghandler_41.setItems((java.util.List)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${correoElectronicDTO.listFoliosTnComprobanteDigDTO}\",java.util.List.class, __ojsp_varRes,null));\n __jsp_taghandler_41.setAppendFilters(\"false\");\n __jsp_taghandler_41.setCheckbox(\"true\");\n __jsp_taghandler_41.setChkProperty(\"idGrupo\");\n __jsp_taghandler_41.setJspBody(new _correoElectronico_OjspFragmentSupport( 0, pageContext, __jsp_taghandler_41, __ojsp_varRes));\n __jsp_taghandler_41.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_41, pageContext);\n }\n out.write(__oracle_jsp_text[47]);\n } while (__jsp_taghandler_37.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_37.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_37,2);\n }\n out.write(__oracle_jsp_text[48]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_54=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_54.setParent(__jsp_taghandler_1);\n __jsp_taghandler_54.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${correoElectronicDTO.panelCorreo}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_54.doStartTag();\n if (__jsp_taghandler_54.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_54,2);\n }\n out.write(__oracle_jsp_text[49]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_55=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value escapeXml\");\n __jsp_taghandler_55.setParent(__jsp_taghandler_1);\n __jsp_taghandler_55.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${correoElectronicDTO.imgTag}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_taghandler_55.setEscapeXml(false);\n __jsp_tag_starteval=__jsp_taghandler_55.doStartTag();\n if (__jsp_taghandler_55.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_55,2);\n }\n out.write(__oracle_jsp_text[50]);\n {\n org.apache.taglibs.standard.tag.rt.core.OutTag __jsp_taghandler_56=(org.apache.taglibs.standard.tag.rt.core.OutTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.OutTag.class,\"org.apache.taglibs.standard.tag.rt.core.OutTag value\");\n __jsp_taghandler_56.setParent(__jsp_taghandler_1);\n __jsp_taghandler_56.setValue((java.lang.Object)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${correoElectronicDTO.generar}\",java.lang.Object.class, __ojsp_varRes,null));\n __jsp_tag_starteval=__jsp_taghandler_56.doStartTag();\n if (__jsp_taghandler_56.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_56,2);\n }\n out.write(__oracle_jsp_text[51]);\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_1.doCatch(th);\n } finally {\n __jsp_taghandler_1.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n out.write(__oracle_jsp_text[52]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "title": "" }, { "docid": "c155f4d088a0da6f111f24ec3c22cddc", "score": "0.5433822", "text": "public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);\n // Note: this is not emitted if the session directive == false\n HttpSession session = pageContext.getSession();\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _cargarConstancia page = this;\n ServletConfig config = pageContext.getServletConfig();\n javax.servlet.jsp.el.VariableResolver __ojsp_varRes = (VariableResolver)new OracleVariableResolverImpl(pageContext);\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n {\n org.springframework.web.servlet.tags.form.FormTag __jsp_taghandler_1=(org.springframework.web.servlet.tags.form.FormTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.FormTag.class,\"org.springframework.web.servlet.tags.form.FormTag modelAttribute enctype\");\n __jsp_taghandler_1.setParent(null);\n __jsp_taghandler_1.setModelAttribute(\"cargarConstanciaDTO\");\n __jsp_taghandler_1.setEnctype(\"multipart/form-data\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_1.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[5]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_2=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_2.setParent(__jsp_taghandler_1);\n __jsp_taghandler_2.setPath(\"beanName\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_2.doStartTag();\n if (__jsp_taghandler_2.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_2.doCatch(th);\n } finally {\n __jsp_taghandler_2.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_2,2);\n }\n out.write(__oracle_jsp_text[6]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_3=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_3.setParent(__jsp_taghandler_1);\n __jsp_taghandler_3.setPath(\"urlOrigen\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_3.doStartTag();\n if (__jsp_taghandler_3.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_3.doCatch(th);\n } finally {\n __jsp_taghandler_3.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_3,2);\n }\n out.write(__oracle_jsp_text[7]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_4=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_4.setParent(__jsp_taghandler_1);\n __jsp_taghandler_4.setPath(\"urlDestino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_4.doStartTag();\n if (__jsp_taghandler_4.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_4.doCatch(th);\n } finally {\n __jsp_taghandler_4.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_4,2);\n }\n out.write(__oracle_jsp_text[8]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_5=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_5.setParent(__jsp_taghandler_1);\n __jsp_taghandler_5.setPath(\"rolEjecutivoContratacion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_5.doStartTag();\n if (__jsp_taghandler_5.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_5.doCatch(th);\n } finally {\n __jsp_taghandler_5.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_5,2);\n }\n out.write(__oracle_jsp_text[9]);\n {\n org.springframework.web.servlet.tags.form.HiddenInputTag __jsp_taghandler_6=(org.springframework.web.servlet.tags.form.HiddenInputTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.HiddenInputTag.class,\"org.springframework.web.servlet.tags.form.HiddenInputTag path\");\n __jsp_taghandler_6.setParent(__jsp_taghandler_1);\n __jsp_taghandler_6.setPath(\"rolAdministradorCapacitacion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_6.doStartTag();\n if (__jsp_taghandler_6.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_6.doCatch(th);\n } finally {\n __jsp_taghandler_6.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_6,2);\n }\n out.write(__oracle_jsp_text[10]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_7=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_7.setParent(__jsp_taghandler_1);\n __jsp_taghandler_7.setCode(\"sireh.label.spc.capcer.seguimientoControl.cargarConstancias.title\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_7.doStartTag();\n if (__jsp_taghandler_7.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_7.doCatch(th);\n } finally {\n __jsp_taghandler_7.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_7,2);\n }\n out.write(__oracle_jsp_text[11]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_8=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_8.setParent(__jsp_taghandler_1);\n __jsp_taghandler_8.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.claveCurso\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_8.doStartTag();\n if (__jsp_taghandler_8.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_8.doCatch(th);\n } finally {\n __jsp_taghandler_8.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_8,2);\n }\n out.write(__oracle_jsp_text[12]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_9=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_9.setParent(__jsp_taghandler_1);\n __jsp_taghandler_9.setJspContext(pageContext);\n __jsp_taghandler_9.setPath(\"claveCurso\");\n __jsp_taghandler_9.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_9, pageContext);\n }\n out.write(__oracle_jsp_text[13]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_10=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_10.setParent(__jsp_taghandler_1);\n __jsp_taghandler_10.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.nombreCurso\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_10.doStartTag();\n if (__jsp_taghandler_10.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_10.doCatch(th);\n } finally {\n __jsp_taghandler_10.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_10,2);\n }\n out.write(__oracle_jsp_text[14]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_11=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_11.setParent(__jsp_taghandler_1);\n __jsp_taghandler_11.setJspContext(pageContext);\n __jsp_taghandler_11.setPath(\"nombreCurso\");\n __jsp_taghandler_11.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_11, pageContext);\n }\n out.write(__oracle_jsp_text[15]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_12=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_12.setParent(__jsp_taghandler_1);\n __jsp_taghandler_12.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.Subprograma\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_12.doStartTag();\n if (__jsp_taghandler_12.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_12.doCatch(th);\n } finally {\n __jsp_taghandler_12.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_12,2);\n }\n out.write(__oracle_jsp_text[16]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_13=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_13.setParent(__jsp_taghandler_1);\n __jsp_taghandler_13.setJspContext(pageContext);\n __jsp_taghandler_13.setPath(\"subPrograma\");\n __jsp_taghandler_13.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_13, pageContext);\n }\n out.write(__oracle_jsp_text[17]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_14=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_14.setParent(__jsp_taghandler_1);\n __jsp_taghandler_14.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.ejeTematico\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_14.doStartTag();\n if (__jsp_taghandler_14.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_14.doCatch(th);\n } finally {\n __jsp_taghandler_14.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_14,2);\n }\n out.write(__oracle_jsp_text[18]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_15=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_15.setParent(__jsp_taghandler_1);\n __jsp_taghandler_15.setJspContext(pageContext);\n __jsp_taghandler_15.setPath(\"ejeTematico\");\n __jsp_taghandler_15.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_15, pageContext);\n }\n out.write(__oracle_jsp_text[19]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_16=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_16.setParent(__jsp_taghandler_1);\n __jsp_taghandler_16.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.modalidad\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_16.doStartTag();\n if (__jsp_taghandler_16.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_16.doCatch(th);\n } finally {\n __jsp_taghandler_16.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_16,2);\n }\n out.write(__oracle_jsp_text[20]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_17=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_17.setParent(__jsp_taghandler_1);\n __jsp_taghandler_17.setJspContext(pageContext);\n __jsp_taghandler_17.setPath(\"modalidad\");\n __jsp_taghandler_17.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_17, pageContext);\n }\n out.write(__oracle_jsp_text[21]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_18=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_18.setParent(__jsp_taghandler_1);\n __jsp_taghandler_18.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.finalidad\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_18.doStartTag();\n if (__jsp_taghandler_18.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_18.doCatch(th);\n } finally {\n __jsp_taghandler_18.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_18,2);\n }\n out.write(__oracle_jsp_text[22]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_19=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_19.setParent(__jsp_taghandler_1);\n __jsp_taghandler_19.setJspContext(pageContext);\n __jsp_taghandler_19.setPath(\"finalidad\");\n __jsp_taghandler_19.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_19, pageContext);\n }\n out.write(__oracle_jsp_text[23]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_20=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_20.setParent(__jsp_taghandler_1);\n __jsp_taghandler_20.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.duracion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_20.doStartTag();\n if (__jsp_taghandler_20.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_20.doCatch(th);\n } finally {\n __jsp_taghandler_20.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_20,2);\n }\n out.write(__oracle_jsp_text[24]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_21=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_21.setParent(__jsp_taghandler_1);\n __jsp_taghandler_21.setJspContext(pageContext);\n __jsp_taghandler_21.setPath(\"duracion\");\n __jsp_taghandler_21.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_21, pageContext);\n }\n out.write(__oracle_jsp_text[25]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_22=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_22.setParent(__jsp_taghandler_1);\n __jsp_taghandler_22.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.proveedor\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_22.doStartTag();\n if (__jsp_taghandler_22.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_22.doCatch(th);\n } finally {\n __jsp_taghandler_22.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_22,2);\n }\n out.write(__oracle_jsp_text[26]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_23=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_23.setParent(__jsp_taghandler_1);\n __jsp_taghandler_23.setJspContext(pageContext);\n __jsp_taghandler_23.setPath(\"proveedor\");\n __jsp_taghandler_23.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_23, pageContext);\n }\n out.write(__oracle_jsp_text[27]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_24=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_24.setParent(__jsp_taghandler_1);\n __jsp_taghandler_24.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.fechaInicio\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_24.doStartTag();\n if (__jsp_taghandler_24.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_24.doCatch(th);\n } finally {\n __jsp_taghandler_24.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_24,2);\n }\n out.write(__oracle_jsp_text[28]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_25=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_25.setParent(__jsp_taghandler_1);\n __jsp_taghandler_25.setJspContext(pageContext);\n __jsp_taghandler_25.setPath(\"fechaInicio\");\n __jsp_taghandler_25.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_25, pageContext);\n }\n out.write(__oracle_jsp_text[29]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_26=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_26.setParent(__jsp_taghandler_1);\n __jsp_taghandler_26.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.fechaTermino\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_26.doStartTag();\n if (__jsp_taghandler_26.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_26.doCatch(th);\n } finally {\n __jsp_taghandler_26.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_26,2);\n }\n out.write(__oracle_jsp_text[30]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_27=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_27.setParent(__jsp_taghandler_1);\n __jsp_taghandler_27.setJspContext(pageContext);\n __jsp_taghandler_27.setPath(\"fechaTermino\");\n __jsp_taghandler_27.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_27, pageContext);\n }\n out.write(__oracle_jsp_text[31]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_28=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_28.setParent(__jsp_taghandler_1);\n __jsp_taghandler_28.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.sede\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_28.doStartTag();\n if (__jsp_taghandler_28.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_28.doCatch(th);\n } finally {\n __jsp_taghandler_28.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_28,2);\n }\n out.write(__oracle_jsp_text[32]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_29=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_29.setParent(__jsp_taghandler_1);\n __jsp_taghandler_29.setJspContext(pageContext);\n __jsp_taghandler_29.setPath(\"sede\");\n __jsp_taghandler_29.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_29, pageContext);\n }\n out.write(__oracle_jsp_text[33]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_30=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_30.setParent(__jsp_taghandler_1);\n __jsp_taghandler_30.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.aula\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_30.doStartTag();\n if (__jsp_taghandler_30.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_30.doCatch(th);\n } finally {\n __jsp_taghandler_30.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_30,2);\n }\n out.write(__oracle_jsp_text[34]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_31=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_31.setParent(__jsp_taghandler_1);\n __jsp_taghandler_31.setJspContext(pageContext);\n __jsp_taghandler_31.setPath(\"aula\");\n __jsp_taghandler_31.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_31, pageContext);\n }\n out.write(__oracle_jsp_text[35]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_32=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_32.setParent(__jsp_taghandler_1);\n __jsp_taghandler_32.setCode(\"sireh.label.spc.capcer.registro.registrarCurso.asignarInstructor.horario\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_32.doStartTag();\n if (__jsp_taghandler_32.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_32.doCatch(th);\n } finally {\n __jsp_taghandler_32.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_32,2);\n }\n out.write(__oracle_jsp_text[36]);\n {\n _oracle._jsp._tag._label_tag __jsp_taghandler_33=(_oracle._jsp._tag._label_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._label_tag.class, pageContext);\n __jsp_taghandler_33.setParent(__jsp_taghandler_1);\n __jsp_taghandler_33.setJspContext(pageContext);\n __jsp_taghandler_33.setPath(\"horario\");\n __jsp_taghandler_33.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_33, pageContext);\n }\n out.write(__oracle_jsp_text[37]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_34=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_34.setParent(__jsp_taghandler_1);\n __jsp_taghandler_34.setCode(\"sireh.label.spc.capcer.seguimientoControl.cargarConstancias.tipoDocumento\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_34.doStartTag();\n if (__jsp_taghandler_34.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_34.doCatch(th);\n } finally {\n __jsp_taghandler_34.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_34,2);\n }\n out.write(__oracle_jsp_text[38]);\n {\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_35=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\"org.springframework.web.servlet.tags.form.RadioButtonTag path value label\");\n __jsp_taghandler_35.setParent(__jsp_taghandler_1);\n __jsp_taghandler_35.setPath(\"tipoDocumento\");\n __jsp_taghandler_35.setValue(\"c\");\n __jsp_taghandler_35.setLabel(\" Constancia\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_35.doStartTag();\n if (__jsp_taghandler_35.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_35.doCatch(th);\n } finally {\n __jsp_taghandler_35.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_35,2);\n }\n out.write(__oracle_jsp_text[39]);\n {\n org.springframework.web.servlet.tags.form.RadioButtonTag __jsp_taghandler_36=(org.springframework.web.servlet.tags.form.RadioButtonTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.form.RadioButtonTag.class,\"org.springframework.web.servlet.tags.form.RadioButtonTag path value label\");\n __jsp_taghandler_36.setParent(__jsp_taghandler_1);\n __jsp_taghandler_36.setPath(\"tipoDocumento\");\n __jsp_taghandler_36.setValue(\"a\");\n __jsp_taghandler_36.setLabel(\" Acuse\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_36.doStartTag();\n if (__jsp_taghandler_36.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_36.doCatch(th);\n } finally {\n __jsp_taghandler_36.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_36,2);\n }\n out.write(__oracle_jsp_text[40]);\n {\n org.springframework.web.servlet.tags.MessageTag __jsp_taghandler_37=(org.springframework.web.servlet.tags.MessageTag)OracleJspRuntime.getTagHandler(pageContext,org.springframework.web.servlet.tags.MessageTag.class,\"org.springframework.web.servlet.tags.MessageTag code\");\n __jsp_taghandler_37.setParent(__jsp_taghandler_1);\n __jsp_taghandler_37.setCode(\"sireh.label.spc.capcer.seguimientoControl.cargarConstancias.constanciaParticipacion\");\n try {\n __jsp_tag_starteval=__jsp_taghandler_37.doStartTag();\n if (__jsp_taghandler_37.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_37.doCatch(th);\n } finally {\n __jsp_taghandler_37.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_37,2);\n }\n out.write(__oracle_jsp_text[41]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_38=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_38.setParent(__jsp_taghandler_1);\n __jsp_taghandler_38.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${cargarConstanciaDTO.rolAdministradorCapacitacion || cargarConstanciaDTO.rolOperadorCapacitacion}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_38.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[42]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_39=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_39.setParent(__jsp_taghandler_38);\n __jsp_taghandler_39.setJspContext(pageContext);\n __jsp_taghandler_39.setAction((java.lang.String) (\"seguimientoCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${cargarConstanciaDTO.urlDestino}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_39.setValue(\"submit.add\");\n __jsp_taghandler_39.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_39, pageContext);\n }\n out.write(__oracle_jsp_text[43]);\n } while (__jsp_taghandler_38.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_38.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_38,2);\n }\n out.write(__oracle_jsp_text[44]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_40=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_40.setParent(__jsp_taghandler_1);\n __jsp_taghandler_40.setJspContext(pageContext);\n __jsp_taghandler_40.setAction((java.lang.String) (\"seguimientoCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${cargarConstanciaDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_40.setValue(\"submit.cancel\");\n __jsp_taghandler_40.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_40, pageContext);\n }\n out.write(__oracle_jsp_text[45]);\n {\n org.apache.taglibs.standard.tag.rt.core.IfTag __jsp_taghandler_41=(org.apache.taglibs.standard.tag.rt.core.IfTag)OracleJspRuntime.getTagHandler(pageContext,org.apache.taglibs.standard.tag.rt.core.IfTag.class,\"org.apache.taglibs.standard.tag.rt.core.IfTag test\");\n __jsp_taghandler_41.setParent(__jsp_taghandler_1);\n __jsp_taghandler_41.setTest(OracleJspRuntime.toBoolean( (java.lang.Boolean)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${cargarConstanciaDTO.rolAdministradorCapacitacion || cargarConstanciaDTO.rolOperadorCapacitacion}\",java.lang.Boolean.class, __ojsp_varRes,null)));\n __jsp_tag_starteval=__jsp_taghandler_41.doStartTag();\n if (OracleJspRuntime.checkStartTagEval(__jsp_tag_starteval))\n {\n do {\n out.write(__oracle_jsp_text[46]);\n {\n _oracle._jsp._tag._submit_tag __jsp_taghandler_42=(_oracle._jsp._tag._submit_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._submit_tag.class, pageContext);\n __jsp_taghandler_42.setParent(__jsp_taghandler_41);\n __jsp_taghandler_42.setJspContext(pageContext);\n __jsp_taghandler_42.setAction((java.lang.String) (\"seguimientoCursoSPC/\"+ (java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${cargarConstanciaDTO.urlBorrar}\",java.lang.String.class, __ojsp_varRes, null)));\n __jsp_taghandler_42.setValue(\"submit.delete\");\n __jsp_taghandler_42.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_42, pageContext);\n }\n out.write(__oracle_jsp_text[47]);\n } while (__jsp_taghandler_41.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_41.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_41,2);\n }\n out.write(__oracle_jsp_text[48]);\n {\n _oracle._jsp._tag._filter_tag __jsp_taghandler_43=(_oracle._jsp._tag._filter_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._filter_tag.class, pageContext);\n __jsp_taghandler_43.setParent(__jsp_taghandler_1);\n __jsp_taghandler_43.setJspContext(pageContext);\n __jsp_taghandler_43.setProperty(\"P.ID_CURSO\");\n __jsp_taghandler_43.setCondition(\"=\");\n __jsp_taghandler_43.setPath(\"idCurso\");\n __jsp_taghandler_43.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_43, pageContext);\n }\n out.write(__oracle_jsp_text[49]);\n {\n _oracle._jsp._tag._pagedList_tag __jsp_taghandler_44=(_oracle._jsp._tag._pagedList_tag)OracleJspRuntime.getSimpleTagHandler(_oracle._jsp._tag._pagedList_tag.class, pageContext);\n __jsp_taghandler_44.setParent(__jsp_taghandler_1);\n __jsp_taghandler_44.setJspContext(pageContext);\n __jsp_taghandler_44.setBeanName((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${cargarConstanciaDTO.beanName}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_taghandler_44.setBaseUrl((java.lang.String)oracle.jsp.runtime.OracleJspRuntime.evaluate(\"${cargarConstanciaDTO.urlOrigen}\",java.lang.String.class, __ojsp_varRes,null));\n __jsp_taghandler_44.setAppendFilters(\"false\");\n __jsp_taghandler_44.setMaxRows(\"200\");\n __jsp_taghandler_44.setJspBody(new _cargarConstancia_OjspFragmentSupport( 0, pageContext, __jsp_taghandler_44, __ojsp_varRes));\n __jsp_taghandler_44.doTag();\n OracleJspRuntime.simpleReleaseTagHandler(__jsp_taghandler_44, pageContext);\n }\n out.write(__oracle_jsp_text[50]);\n } while (__jsp_taghandler_1.doAfterBody()==javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN);\n }\n if (__jsp_taghandler_1.doEndTag()==javax.servlet.jsp.tagext.Tag.SKIP_PAGE)\n return;\n } catch (Throwable th) {\n __jsp_taghandler_1.doCatch(th);\n } finally {\n __jsp_taghandler_1.doFinally();\n }\n OracleJspRuntime.releaseTagHandler(pageContext,__jsp_taghandler_1,1);\n }\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }", "title": "" }, { "docid": "6eb7ec2e97b454133239e440b4e3e033", "score": "0.5427193", "text": "public interface JSPObject {\n boolean isDataCollected();\n boolean collectData(JSPConnection jspConnection);\n void unCollectData();\n}", "title": "" }, { "docid": "0a6508e8a306634e4367bfe007245165", "score": "0.54079187", "text": "@JavascriptInterface\n public void goldWelcome(String json) {\n }", "title": "" }, { "docid": "ac12ca218ab7ae60ecce20469faa4768", "score": "0.54048544", "text": "@Override\n\t\t public void onPageFinished(WebView view, String url) {\n\t\t super.onPageFinished(view, url);\n\t\t // String id = \"98.jpg\";\n\t\t // webView.loadUrl(\"javascript:as(\" + id + \");\");\n\t\t }", "title": "" }, { "docid": "5d8254f5f5415eb2817d65e1b3237889", "score": "0.53821504", "text": "public int doEndTag() throws JspException\r\n {\r\n return EVAL_PAGE;\r\n }", "title": "" }, { "docid": "abb4b688f16afd79899d50f66407973f", "score": "0.5369993", "text": "@RequestMapping(value = \"/data\", method = RequestMethod.GET)\n\tpublic String loadJsp(ModelMap model) {\n\t return \"FepData\";\n\t}", "title": "" }, { "docid": "9d028bd4a56c420bee57f12428fba256", "score": "0.5360477", "text": "public void setJavaScriptEscape(String javaScriptEscape) throws JspException {\r\n \t\tthis.javaScriptEscape = ExpressionEvaluationUtils.evaluateBoolean(\"javaScriptEscape\", javaScriptEscape, pageContext);\r\n \t}", "title": "" }, { "docid": "f460ad6c77c1efee5d657cd9bdeb63cb", "score": "0.53555065", "text": "public AjaxResult index(PageRequestForm form) throws MendelRuntimeException;", "title": "" }, { "docid": "a4be4c0a6e360cd429697b07c9bfc16b", "score": "0.5354727", "text": "protected void executeJavaScript(String jSCode) {\n ((JavascriptExecutor)driver).executeScript(jSCode);\n }", "title": "" }, { "docid": "948eb07d8ab3cbea85c86f59fe91deaa", "score": "0.5337413", "text": "public void callViewScript(String script) {\n\t\tMap<String, Object> requestMap = FacesContext.getCurrentInstance().getExternalContext().getRequestMap();\n\t\tString viewScript = (String) requestMap.get(\"callViewScript\");\n\t\tviewScript = viewScript == null ? script : viewScript + (script == null ? \"\" : script);\n\t\trequestMap.put(\"callViewScript\", viewScript);\n\t}", "title": "" }, { "docid": "6a7d2a3de5598c17b7d40c88a294beb8", "score": "0.53305656", "text": "@Override\n public void doTag() throws JspException {\n UsuarioDao dao = new UsuarioDao();\n try { \n getJspContext().setAttribute(\"Mensagens\", dao.readMensagens(usuario, destinatario));\n } catch (Exception ex) {\n Logger.getLogger(Mensagens.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "90f4d717702e08e551b5654eeedda414", "score": "0.53227204", "text": "@SuppressWarnings(\"deprecation\")\n\tpublic String ajaxMethod() {\n\t\tAppLog.begin();\n\t\ttry {\n\t\t\tMap<String, Object> session = ActionContext.getContext()\n\t\t\t\t\t.getSession();\n\t\t\tString userId = (String) session.get(\"userId\");\n\t\t\tif (null == userId || \"\".equals(userId)) {\n\t\t\t\tinputStream = ScreenAccessValidator\n\t\t\t\t\t\t.ajaxResponse(getText(\"error.login.expired\"));\n\t\t\t\tAppLog.end();\n\t\t\t\treturn \"success\";\n\t\t\t}\n\t\t\tif (!ScreenAccessValidator.validate(session, SCREEN_ID)) {\n\t\t\t\taddActionError(getText(\"error.access.denied\"));\n\t\t\t\tinputStream = ScreenAccessValidator\n\t\t\t\t\t\t.ajaxResponse(getText(\"error.access.denied\"));\n\t\t\t\tAppLog.end();\n\t\t\t\treturn \"success\";\n\t\t\t}\n\t\t\tif (\"populateMRNOList\".equalsIgnoreCase(hidAction)) {\n\t\t\t\tMap<String, String> returnMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t\t.getMRNoListMap(oldZone);\n\t\t\t\tStringBuffer dropDownSB = new StringBuffer(512);\n\t\t\t\tdropDownSB\n\t\t\t\t\t\t.append(\"<select name=\\\"mrNo\\\" id=\\\"mrNo\\\" class=\\\"selectbox-long\\\" onfocus=\\\"fnCheckZone();\\\" onchange=\\\"fnGetAreaList();\\\">\");\n\t\t\t\tdropDownSB.append(\"<option value=''>Please Select</option>\");\n\t\t\t\tif (null != returnMap && !returnMap.isEmpty()) {\n\t\t\t\t\tfor (Entry<String, String> entry : returnMap.entrySet()) {\n\t\t\t\t\t\tdropDownSB.append(optionTagBeginPart1);\n\t\t\t\t\t\tdropDownSB.append(entry.getKey());\n\t\t\t\t\t\tdropDownSB.append(optionTagBeginPart2);\n\t\t\t\t\t\tdropDownSB.append(entry.getValue());\n\t\t\t\t\t\tdropDownSB.append(optionTagEnd);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdropDownSB.append(selectTagEnd);\n\t\t\t\tsession.put(\"MRNOListMap\", returnMap);\n\t\t\t\tinputStream = new StringBufferInputStream(dropDownSB.toString());\n\t\t\t}\n\t\t\tif (\"populateAreaList\".equalsIgnoreCase(hidAction)) {\n\t\t\t\tMap<String, String> returnMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t\t.getAreaListMap(oldZone, mrNoList);\n\t\t\t\tStringBuffer dropDownSB = new StringBuffer(512);\n\t\t\t\tdropDownSB\n\t\t\t\t\t\t.append(\"<select name=\\\"areaCode\\\" id=\\\"areaCode\\\" class=\\\"selectbox-long\\\" onfocus=\\\"fnCheckZoneMRNo();\\\" >\");\n\n\t\t\t\tdropDownSB.append(\"<option value=''>Please Select</option>\");\n\t\t\t\tif (null != returnMap && !returnMap.isEmpty()) {\n\t\t\t\t\tfor (Entry<String, String> entry : returnMap.entrySet()) {\n\t\t\t\t\t\tdropDownSB.append(optionTagBeginPart1);\n\t\t\t\t\t\tdropDownSB.append(entry.getKey());\n\t\t\t\t\t\tdropDownSB.append(optionTagBeginPart2);\n\t\t\t\t\t\tdropDownSB.append(entry.getValue());\n\t\t\t\t\t\tdropDownSB.append(optionTagEnd);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdropDownSB.append(selectTagEnd);\n\t\t\t\tsession.put(\"AreaListMap\", returnMap);\n\t\t\t\tinputStream = new StringBufferInputStream(dropDownSB.toString());\n\t\t\t}\n\t\t\tif (\"populateZroCode\".equalsIgnoreCase(hidAction)) {\n\t\t\t\tMap<String, String> returnMap = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t\t.getZRO(newZone, null, null, null);\n\t\t\t\tAppLog.info(\"returnMap***\" + returnMap);\n\t\t\t\tStringBuffer dropDownSB = new StringBuffer(512);\n\t\t\t\tdropDownSB\n\t\t\t\t\t\t.append(\"<select name=\\\"newZROCode\\\" id=\\\"newZROCode\\\" class=\\\"selectbox-long\\\">\");\n\n\t\t\t\tdropDownSB.append(\"<option value=''>Please Select</option>\");\n\t\t\t\tif (null != returnMap && !returnMap.isEmpty()) {\n\t\t\t\t\tfor (Entry<String, String> entry : returnMap.entrySet()) {\n\t\t\t\t\t\tdropDownSB.append(optionTagBeginPart1);\n\t\t\t\t\t\tdropDownSB.append(entry.getKey());\n\t\t\t\t\t\tdropDownSB.append(optionTagBeginPart2);\n\t\t\t\t\t\tdropDownSB.append(entry.getValue());\n\t\t\t\t\t\tdropDownSB.append(optionTagEnd);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdropDownSB.append(selectTagEnd);\n\t\t\t\t// session.put(\"ZROListMap\", returnMap);\n\t\t\t\tinputStream = new StringBufferInputStream(dropDownSB.toString());\n\t\t\t}\n\n\t\t\tif (\"getStatus\".equalsIgnoreCase(hidAction)) {\n\t\t\t\tAppLog.info(\"areaCode****\" + areaCode + \"mrNoList***\"\n\t\t\t\t\t\t+ mrNoList + \"newZone***\" + newZone);\n\t\t\t\tif (null == areaCode || \"\".equalsIgnoreCase(areaCode)\n\t\t\t\t\t\t|| null == mrNoList || \"\".equalsIgnoreCase(mrNoList)\n\t\t\t\t\t\t|| null == newZRO || \"\".equalsIgnoreCase(newZRO)) {\n\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\tDJBConstants.MRD_TRANSFER_MANDATORY_MSG);\n\t\t\t\t\tAppLog.end();\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tif (null != newZone && !\"\".equalsIgnoreCase(newZone)) {\n\t\t\t\t\t\tString zroCode = GetterDAO.getZroCodeByZoneMrArea(\n\t\t\t\t\t\t\t\tareaCode, mrNoList, newZone);\n\t\t\t\t\t\tAppLog.info(\"***ZRO Code for Transferred Mrkey is***\"\n\t\t\t\t\t\t\t\t+ zroCode);\n\t\t\t\t\t\tAppLog.info(\"selected New zro location is **\" + newZRO);\n\t\t\t\t\t\tif (null != zroCode\n\t\t\t\t\t\t\t\t&& (newZRO.equalsIgnoreCase(zroCode))) {\n\t\t\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\t\t\tDJBConstants.MRD_TRANSFER_SUCCESS + zroCode);\n\t\t\t\t\t\t\tAppLog.end();\n\t\t\t\t\t\t\treturn SUCCESS;\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\t\t\tDJBConstants.MRD_TRANSFER_INPROGRESS_MSG);\n\t\t\t\t\t\t\tAppLog.end();\n\t\t\t\t\t\t\treturn SUCCESS;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString zroCode = GetterDAO.getZroCodeByZoneMrArea(\n\t\t\t\t\t\t\t\tareaCode, mrNoList, oldZone);\n\t\t\t\t\t\tAppLog.info(\"***ZRO Code for Transferred Mrkey is***\"\n\t\t\t\t\t\t\t\t+ zroCode);\n\t\t\t\t\t\tAppLog.info(\"Old zro location is **\" + newZRO);\n\t\t\t\t\t\tif (null != zroCode\n\t\t\t\t\t\t\t\t&& (newZRO.equalsIgnoreCase(zroCode))) {\n\t\t\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\t\t\tDJBConstants.MRD_TRANSFER_SUCCESS + zroCode);\n\t\t\t\t\t\t\tAppLog.end();\n\t\t\t\t\t\t\treturn SUCCESS;\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\t\t\tDJBConstants.MRD_TRANSFER_INPROGRESS_MSG);\n\t\t\t\t\t\t\tAppLog.end();\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (\"mrdTransferProcExe\".equalsIgnoreCase(hidAction)) {\n\t\t\t\tif (null != oldZone && !\"\".equalsIgnoreCase(oldZone)\n\t\t\t\t\t\t&& null != newZone && !\"\".equalsIgnoreCase(newZone)\n\t\t\t\t\t\t&& null != mrNoList && !\"\".equalsIgnoreCase(mrNoList)\n\t\t\t\t\t\t&& null != areaCode && !\"\".equalsIgnoreCase(areaCode)\n\t\t\t\t\t\t&& null != newZRO && !\"\".equalsIgnoreCase(newZRO)) {\n\t\t\t\t\tMap<String, String> returnMrkey = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t\t\t.getMRKEYByZoneMRArea(oldZone, mrNoList, areaCode);\n\t\t\t\t\tAppLog.info(\"return mrkey ***\" + returnMrkey);\n\t\t\t\t\tif (null != returnMrkey) {\n\t\t\t\t\t\tString mrkey = returnMrkey.get(\"mrKey\");\n\t\t\t\t\t\tAppLog\n\t\t\t\t\t\t\t\t.info(\"Mrkey of selected Zone,MR No, Area No is **\"\n\t\t\t\t\t\t\t\t\t\t+ mrkey);\n\n\t\t\t\t\t\tint pendingOrInprogressStatus = MrdTransferDAO\n\t\t\t\t\t\t\t\t.getCntOfInProgressForMrdTrnsfr(mrkey);\n\t\t\t\t\t\tAppLog\n\t\t\t\t\t\t\t\t.info(\"Count of Pending or in progress status for the selected mrkey \"\n\t\t\t\t\t\t\t\t\t\t+ pendingOrInprogressStatus);\n\t\t\t\t\t\tif (pendingOrInprogressStatus <= 0) {\n\t\t\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\t\t\tMRDTransfer(mrkey));\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\t\t\tDJBConstants.MRD_TRANSFER_INPROGRESS_MSG);\n\t\t\t\t\t\t\tAppLog.end();\n\t\t\t\t\t\t\treturn SUCCESS;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\t\t\"<font color='red' size='2'><li><span><b>ERROR:Sorry, There was problem while Processing You Request.</b></font>\");\n\t\t\t\t\t\tAppLog.end();\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\tDJBConstants.MRD_TRANSFER_MANDATORY_MSG);\n\t\t\t\t\tAppLog.end();\n\t\t\t\t\treturn SUCCESS;\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (\"zroWiseMrdTransfer\".equalsIgnoreCase(hidAction)) {\n\t\t\t\tif (null != oldZone && !\"\".equalsIgnoreCase(oldZone)\n\t\t\t\t\t\t&& (null == newZone || \"\".equalsIgnoreCase(newZone))\n\t\t\t\t\t\t&& null != mrNoList && !\"\".equalsIgnoreCase(mrNoList)\n\t\t\t\t\t\t&& null != areaCode && !\"\".equalsIgnoreCase(areaCode)\n\t\t\t\t\t\t&& null != newZRO && !\"\".equalsIgnoreCase(newZRO)) {\n\t\t\t\t\tMap<String, String> returnMrkey = (HashMap<String, String>) GetterDAO\n\t\t\t\t\t\t\t.getMRKEYByZoneMRArea(oldZone, mrNoList, areaCode);\n\t\t\t\t\tAppLog.info(\"return mrkey ***\" + returnMrkey);\n\t\t\t\t\tif (null != returnMrkey) {\n\t\t\t\t\t\tString mrkey = returnMrkey.get(\"mrKey\");\n\t\t\t\t\t\tAppLog\n\t\t\t\t\t\t\t\t.info(\"Mrkey of selected Zone,MR No, Area No is **\"\n\t\t\t\t\t\t\t\t\t\t+ mrkey);\n\n\t\t\t\t\t\tint pendingOrInprogressStatus = MrdTransferDAO\n\t\t\t\t\t\t\t\t.getCntOfInProgressForMrdTrnsfr(mrkey);\n\t\t\t\t\t\tAppLog\n\t\t\t\t\t\t\t\t.info(\"Count of Pending or in progress status for the selected mrkey \"\n\t\t\t\t\t\t\t\t\t\t+ pendingOrInprogressStatus);\n\t\t\t\t\t\tif (pendingOrInprogressStatus <= 0) {\n\t\t\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\t\t\tZroWiseMRDTransfer(mrkey));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\t\t\tDJBConstants.MRD_TRANSFER_INPROGRESS_MSG);\n\t\t\t\t\t\t\tAppLog.end();\n\t\t\t\t\t\t\treturn SUCCESS;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\t\t\"<font color='red' size='2'><li><span><b>ERROR:Sorry, There was problem while Processing You Request.</b></font>\");\n\t\t\t\t\t\tAppLog.end();\n\t\t\t\t\t\treturn SUCCESS;\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\n\t\t\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\t\tDJBConstants.MRD_TRANSFER_MANDATORY_MSG);\n\t\t\t\t\tAppLog.end();\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tinputStream = new StringBufferInputStream(\n\t\t\t\t\t\"<font color='red' size='2'><li><span><b>ERROR:Sorry, There was problem while Processing You Request.</b></font>\");\n\t\t\tAppLog.error(e);\n\n\t\t}\n\t\tAppLog.end();\n\t\treturn SUCCESS;\n\t}", "title": "" }, { "docid": "9cd787da1829ce8b446ba6ec67a879ee", "score": "0.5318588", "text": "public static String printScript(){\n\t\tString html = \"\";\n\t\thtml += \"<script type=\\\"text/javascript\\\" \";\n\t\thtml += \"src=\\\"\"+SearchServlet.basepage+\"sort.js\\\">\";\n\t\treturn html;\n\t}", "title": "" }, { "docid": "f4dd83d9086f662bea6f263c7f386447", "score": "0.52992445", "text": "@Override\n public void onPageFinished(WebView view, String url) {\n SharedPreferences prefs = getPreferences(Activity.MODE_PRIVATE);\n executeJavascript(view, String.format(JS_SETELEMENT, ELEMENTID,\n prefs.getString(ELEMENTID, \"\")) );\n }", "title": "" }, { "docid": "b8bdd5f6eb7dc9463570f5e823773bc4", "score": "0.5295786", "text": "private void initView() {\n webView1.loadUrl(\"http://192.168.15.201:8080/taobei/questionnaire.html?userId=\"+String.valueOf(getComponent()\n .loginSession().getUserId()));\n //webView1.loadUrl(\"javascript:setValuesJson('hello world')\");\n\n }", "title": "" }, { "docid": "6347ccb5c75949c42f1f40fb1d79d6cb", "score": "0.5263385", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse resp) throws ServletException, IOException {\n MainVisitor mainVisitor = new MainVisitor();\n this.result = \"\";\n \n // get SQL from index.jsp\n mainVisitor.setSqlAndResult(request.getParameter(\"sqlContent\"));\n \n // get result and print it into commentbox\n this.result = mainVisitor.getResult();\n \n resp.setContentType(\"text/html\");\n resp.setCharacterEncoding(\"UTF-8\");\n resp.getWriter().write(this.result);\n }", "title": "" }, { "docid": "4c16ebf2f7fc40449f1ce6eccd4d207d", "score": "0.52464044", "text": "@Override\n public int doEndTag() throws JspException {\n getTagWriter().endTag();\n return EVAL_PAGE;\n }", "title": "" }, { "docid": "ed5a1bb982488941f0d7baf01f482804", "score": "0.52408665", "text": "JSFServerSession()\r\n {\r\n pageCreated();\r\n }", "title": "" }, { "docid": "f39598006c265dba273bf7fb1d2ecc33", "score": "0.52389586", "text": "protected void renderJavaScript(ResponseWriter writer, YuiMenuBase component) throws IOException {\n writer.startElement(\"script\", component);\n writer.writeAttribute(\"type\", \"text/javascript\", \"type\");\n \n String ctorArgs = buildConstructorArgs(component);\n String javaScript = \"var oMenu_%%%JS_VAR%%% = new YUISF.Menu(\\\"%%%ID%%%\\\", {\" + ctorArgs + \"});\";\n javaScript = javaScript.replaceAll(\"%%%ID%%%\", component.getClientId(FacesContext.getCurrentInstance()) + \"_1\")\n .replaceAll(\"%%%JS_VAR%%%\", getJavascriptVar(component.getClientId(FacesContext.getCurrentInstance()) + \"_1\"));\n writer.writeText(javaScript , null);\n writer.endElement(\"script\");\n }", "title": "" }, { "docid": "e2550ea475d185dcc4bc34c5b03e8d7f", "score": "0.5181176", "text": "private String generateJavaScript(RenderContext renderContext) throws IOException {\n\t\tSystem.out.println(\"LibraryResource.generateJavaScript: \" + renderContext.request.getRequestURL());\n\t\tString output = \"\";\n\t\tContext context = null;\n\t\t\n\t\tThread current = Thread.currentThread();\n\t\tClassLoader loader = current.getContextClassLoader();\n \ttry {\n \t\tcurrent.setContextClassLoader(getClass().getClassLoader());\n \t\tcontext = createContext();\n \t\t\n\t \tDojoLibrary library = new DojoLibrary();\n\t \t\n\t // load initialization parameters\n\t \tLibraryRequestParams params = new LibraryRequestParams();\n\t \tparams.initDefaults();\n\t \tif (params.getEnvironment() == null) {\n\t \t\tparams.setEnvironment(createDefaultEnvironment(renderContext));\n\t \t}\n\t \t\n\t \tLibraryRequest request = new LibraryRequest(renderContext.request, null);\n\t \trequest.init(params);\n\t \trequest.setRegPath(false);\n\t \trequest.setInitJs(true);\n\t \trequest.setDebug(renderContext.mode == Mode.DEBUG);\n\t \t\n\t \toutput = library.generateJavaScript(request);\n \t} catch (LibraryException e) {\n \t\te.printStackTrace();\n \t\tthrow new IOException(\"Error writing library init\", e);\n \t} finally {\n \t\tdestroyContext(context);\n \t\tcurrent.setContextClassLoader(loader);\n \t}\n \tSystem.out.println(\"LibraryResource.generateJavaScript: \" + output);\n \treturn output;\n\t}", "title": "" }, { "docid": "b83dd4578775bd0329e996b25ddc6a78", "score": "0.51780796", "text": "public void oracle_launch_jsp_url() throws AbstractScriptException {\n\t\tcheckInit();\n\t\tcallFunction(\"oracle_launch_jsp_url\");\n\t}", "title": "" }, { "docid": "3b929f3068f4abd2e24bfdcfb18ea015", "score": "0.51773804", "text": "public void executeJSCode() throws Exception{\n\t\t setErrorRecovery(BasicErrorRecovery.ERR_FILE_NOT_FOUND, ErrorRecoveryAction.Fail);\n\t\t String RepPath=getScriptPackage().getRepositoryPath().toLowerCase();\n\t\t /*if(RepPath.contains(\"functional\")){\n\t\t\t RepPath=RepPath.replace(\"\\\\functional\", \"\\\\automator\");\n\t\t }*/\n\t\t //RepPath = \"\\\\\\\\Den00bwk.us.oracle.com\\\\OATS_ToolsRepository\\\\CrossBrowserEOne\";\n\t\t RepPath=\"\\\\\\\\den00hrs.us.oracle.com\\\\OATS_Repository\\\\E1\";\n\t\t File jsFile=new File(RepPath+\"\\\\Grid.js\");\n\n\n\t\t if(!jsFile.exists()){\n\t\t\t System.out.println(\"file not found\");\n\t\t\t jsFile = new File(\"C:\\\\Grid.js\");\n\t\t }\t\t\n\t\t String jsCode = new String(utilities.getFileService().readBytesFromFile(jsFile));\n\t\t if(!bDB){\n\t\t\t web.document(e1Browser).executeJavaScript(jsCode);\n\t\t } else{\n\t\t\t web.document(sDBBrowser).executeJavaScript(jsCode);\n\t\t }\n\t }", "title": "" }, { "docid": "17f0951ff2a73bd3567a1ea2ddeb2ca0", "score": "0.51724505", "text": "public void index(){\n\t\trenderJsp(\"main.jsp\");\r\n\t}", "title": "" }, { "docid": "a7c99cb5476d8c43339d27cdcab5884e", "score": "0.51705575", "text": "@Override\n\t\t\tpublic void handle(JSObject jsObject) {\n\t\t\t}", "title": "" }, { "docid": "6a67662b087ad89e5d9205e0584f6e02", "score": "0.5165514", "text": "@Override\n\t\tpublic int doEndTag() throws JspException{\n\n\t\t\treturn SKIP_PAGE;\n\t\t}", "title": "" }, { "docid": "d34a2698956ba5a7719601dd9fda3361", "score": "0.5151271", "text": "public static void javaScrpitExcecutor(String Code)\r\n\t{\r\n\t\tJavascriptExecutor javascript = (JavascriptExecutor) WebPage.getWD();\r\n\t\tjavascript.executeScript(\"\"+Code+\"\");\r\n\t}", "title": "" }, { "docid": "c434eb4bceef4f3e9af61d93741e01e4", "score": "0.51488215", "text": "public String execute() {\n\t\treturn \"success_ajax\";\r\n\t}", "title": "" }, { "docid": "87cf74b22a452f041413ec4224091cb9", "score": "0.51463556", "text": "Map<String, Object> submitCommunicationMessageJsp(Map<String, Object> dataMap);", "title": "" }, { "docid": "f26b1a0d3b191d64624a4de45188e401", "score": "0.5144064", "text": "@Override\n public void executeFunctions(final String jsCode, final FormObject formObject) {\n }", "title": "" }, { "docid": "90c42a174fdc6639f8a1524fb76d58a6", "score": "0.5143277", "text": "protected void onAjaxChange( AjaxRequestTarget target ) {}", "title": "" }, { "docid": "3f11d98a632a3dd99bfdbfef48528f85", "score": "0.5129936", "text": "public JavaScriptErrorPage() {\n\n PageFactory.initElements(driver, this);\n\n }", "title": "" }, { "docid": "4a35687282f3fc0167d4cb5fa437816e", "score": "0.51267487", "text": "@Override\n public void onPageFinished(WebView view, String url) {\n\n String javaScriptUrl;\n javaScriptUrl =\"javascript: \";\n //javaScriptUrl += \"list_contacts('\" + phoneUser.contacts + \"');\";\n //javaScriptUrl += \" setWallet(\" + phoneUser.capabilities.wallet + \");\";\n javaScriptUrl +=\" updateUI (\" + phoneUser.capabilities.wallet + \",'\" +phoneUser.contacts +\"');\";\n //Log.d(TAG,\"javascript Url =\" + javaScriptUrl);\n\n //phoneLine.phoneEvent(\"debug\",\"got to onpagefinished event with list =\" + javaScriptUrl);\n view.loadUrl(javaScriptUrl);\n\n }", "title": "" }, { "docid": "3197eef09defe737cf0ea7e4e7724fc8", "score": "0.51243585", "text": "@Override\n\t\tprotected String renderOptionElement() throws JspException{\n\n\t\t\treturn super.renderOptionElement();\n\t\t}", "title": "" }, { "docid": "e1ef4f07aa70d1418e7b6f7d58f3a150", "score": "0.51050025", "text": "@JavascriptInterface\n public void requestImage();", "title": "" }, { "docid": "2f47b811d5cff2057076a590e6e1146f", "score": "0.50935173", "text": "public String getReturnJsp() {\r\n return \"quote-edit.jsp\";\r\n }", "title": "" }, { "docid": "0eec6c99a51c5bf5090aedb4919488a4", "score": "0.5076389", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n PrintWriter out = response.getWriter();\n String latlng = request.getParameter(\"latlng\");\n// Double lat = Double.parseDouble(latlng.substring(4, 18));\n String lat = latlng.substring(1, latlng.indexOf(\",\"));\n String lng = latlng.substring(latlng.indexOf(\",\") + 1, latlng.indexOf(\")\") - 1);\n// Double lng = Double.parseDouble(latlng.substring(28, 18));\n// LatLng latl = new LatLng(lat, lng);\n double distancia = 0.001; //aproximadamente 111m\n double distanciaPontos;\n Geometry teste = new Point(Double.parseDouble(lng), Double.parseDouble(lat));\n paradasProximas = paradaFacade.findParadasProximas(new PGgeometry(teste), distancia);\n while (paradasProximas.size() <= 0) {\n distancia += 0.001;\n paradasProximas = paradaFacade.findParadasProximas(new PGgeometry(teste), distancia);\n }\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet PontosInteresseProximos</title>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<div class = \\\"MarkerPopUp\\\" style=\\\"width: 300px; height: 200px; overflow-x:hidden; margin-left: 80px;\\\">\");\n out.println(\"<table cellpadding='2' id=\\\"hiddenEl\\\" border='1' style=\\\"overflow-x:hidden;\\\">\");\n out.println(\"<tr><th colspan='3'>Paradas Proximas</th></tr>\");\n out.println(\"<tr>\");\n out.println(\"<th>Nome</th>\");\n out.println(\"<th>Descrição</th>\");\n out.println(\"<th>Distância ao PI</th>\");\n out.println(\"</tr>\");\n DecimalFormat df = new DecimalFormat(\"#,###.00\"); \n for (Parada parada : paradasProximas) {\n out.println(\"<tr onMouseOver=teste(\" + parada.getId() + \")>\");\n out.println(\"<input type=\\\"hidden\\\" id=\\\"localizacao\" + parada.getId() + \"\\\" value=\\\"\" + parada.getLocalizacao() + \"\\\" />\");\n out.println(\"<input type=\\\"hidden\\\" id=\\\"titulo\" + parada.getId() + \"\\\" value=\\\"\" + parada.getDescricao() + \"\\\" />\");\n out.println(\"<td><a href=\\\"#\\\" onclick=\\\"hideElement(\" + parada.getId() + \")\\\" class=\\\"big-link\\\" data-reveal-id=\\\"myModal\\\">\" + parada.getNome() + \"</a></td>\");\n out.println(\"<td>\" + parada.getDescricao() + \"</td>\"); \n out.println(\"<td>\" + df.format(paradaFacade.findDistanciaParadaPI(new PGgeometry(teste), new PGgeometry(parada.getLocalizacao()))) + \"m </td>\");\n out.println(\"</tr>\");\n //System.out.println(\"distancia: \" + paradaFacade.findDistanciaParadaPI(new PGgeometry(teste), new PGgeometry(parada.getLocalizacao())));\n }\n\n\n out.println(\"</table>\");\n out.println(\"</div>\");\n //div para popup\n out.println(\"<div id=\\\"myModal\\\" class=\\\"reveal-modal\\\">\");\n //out.println(\"<h1>Reveal Modal Goodness</h1>\");\n out.println(\"<a class=\\\"close-reveal-modal\\\">&#215;</a>\");\n out.println(\"</div>\");\n\n\n out.println(\"</body>\");\n out.println(\"</html>\");\n //out.println(request.getParameter(\"latlng\"));\n //response.getWriter().write(request.getParameter(\"latlng\"));\n processRequest(request, response);\n }", "title": "" }, { "docid": "66c810ef375cd9b8e2dd94b4e1a95404", "score": "0.50543016", "text": "@Override\n public String execute(HttpServletRequest request) {\n\n\n return null;\n }", "title": "" }, { "docid": "203d28a2e1d94b823a1f304b17175454", "score": "0.5046913", "text": "public void page_Load(ActionEvent e) throws Exception\n\t{\n\t\t//#CM692424\n\t\t// Set the screen name.\n\t\t//#CM692425\n\t\t// View of Shortage check list\n\t\tlbl_ListName.setText(DisplayText.getText(\"TLE-W0098\"));\n\n\t\t//#CM692426\n\t\t// Obtain the parameter that was set in the invoking source screen.\n\t\t//#CM692427\n\t\t// Added date\n\t\tString registDate = request.getParameter(REGISTDATE_KEY);\n\t\t//#CM692428\n\t\t// Consignor Code\n\t\tString consignorCode = request.getParameter(CONSIGNORCODE_KEY);\n\t\t//#CM692429\n\t\t// Aggregation Conditions\n\t\tString dispType = request.getParameter(DISPTYPE_KEY);\n\n\t\t//#CM692430\n\t\t// Check for input\n\n\t\t//#CM692431\n\t\t// Check for prohibited characters used in the consignor code.\n\t\tif (!WmsCheckker\n\t\t\t.charCheck(consignorCode, lst_ShortageInfoList, pgr_U, pgr_D, lbl_InMsg))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t//#CM692432\n\t\t//Close the connection of object remained in the Session.\n\t\tSessionRet session = (SessionRet) this.getSession().getAttribute(\"LISTBOX\");\n\t\tif (session != null)\n\t\t{\n\t\t\tDatabaseFinder finder = session.getFinder();\n\t\t\tif (finder != null)\n\t\t\t{\n\t\t\t\tfinder.close();\n\t\t\t}\n\t\t\t//#CM692433\n\t\t\t//\tClose the connection.\n\t\t\tsession.closeConnection();\n\t\t\t//#CM692434\n\t\t\t// Delete from the session.\n\t\t\tthis.getSession().removeAttribute(\"LISTBOX\");\n\t\t}\n\n\t\t//#CM692435\n\t\t// Obtain the connection.\n\t\tConnection conn = ConnectionManager.getConnection(DATASOURCE_NAME);\n\n\t\t//#CM692436\n\t\t// Set the parameter.\n\t\tSystemParameter param = new SystemParameter();\n\n\t\tparam.setRegistDate(WmsFormatter.getDate(registDate, 0, this.getHttpRequest().getLocale()));\n\t\tparam.setConsignorCode(consignorCode);\n\t\tparam.setDispType(dispType);\n\n\t\t//#CM692437\n\t\t//Generate a SessionWorkerQtyInquiryRet instance\n\t\tSessionRetrievalShortageRet listbox = new SessionRetrievalShortageRet(conn, param);\n\n\t\tthis.getSession().setAttribute(\"LISTBOX\", listbox);\n\n\t\t//#CM692438\n\t\t//Display the first page.\n\t\tsetList(listbox, \"first\");\n\n\t}", "title": "" }, { "docid": "1911902a0eaa562c3b2d444c10d8b277", "score": "0.503109", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "51651b4dc7b6a93ffe205fade02b13d2", "score": "0.5023494", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n PrintWriter out = response.getWriter();\r\n try {\r\n JSONArray options = new JSONArray();\r\n options.add(1);\r\n options.add(18);\r\n JSONObject obj = new JSONObject();\r\n obj.put(\"options\", options);\r\n obj.put(1, \"aaaaaa\");\r\n obj.put(18, \"bbbbbb\");\r\n System.out.println(obj);\r\n out.print(obj);\r\n// out.println(\"<div id='cart'>\");\r\n// out.println(\"<div class='heading'>\");\r\n// out.println(\"<a><span id='cart-total'>fuck you</span></a>\");\r\n// out.println(\"</div>\");\r\n// out.println(\"<div class='content'>\");\r\n// out.println(\"<div class='tip-top'></div>\");\r\n// out.println(\"<div class='empty'>fuck you</div>\");\r\n// out.println(\"</div>\");\r\n// out.println(\"</div>\");\r\n\r\n\r\n } finally {\r\n out.close();\r\n }\r\n }", "title": "" }, { "docid": "1a3762810553b254759c951ef0f30f28", "score": "0.5023398", "text": "public int doStartTag ()\n\tthrows JspException\n {\n UserTransaction ut=getUserTransaction();\n\tif (ut!=null){\n\t try{\n\t\tut.begin();\n\t\tsetSuccess(true);\n\t }catch (Exception e){\n\t\tsetSuccess(false);\n\t\tsetException(e);\n\t }\n\t}\n\telse {\n\t return SKIP_BODY;\n\t}\n\tgetPageContext().setAttribute(getId(),this);\n\treturn EVAL_BODY_INCLUDE;\n \n }", "title": "" }, { "docid": "bb9bb87682b176d3e93e7f761afc9fa8", "score": "0.50188047", "text": "public void doRefreshPVSearchPage(HttpServletRequest req, HttpServletResponse res, PV_Bean m_PV, String Origin)\n throws Exception\n {\n HttpSession session = req.getSession();\n if (Origin.equals(\"CreateNew\"))\n {\n DataManager.setAttribute(session, Session_Data.SESSION_STATUS_MESSAGE, \"Value created and inserted successfully.\");\n Vector<String> vNewPV = new Vector<String>();\n vNewPV.addElement(m_PV.getPV_PV_IDSEQ());\n vNewPV.addElement(m_PV.getPV_VALUE());\n vNewPV.addElement(m_PV.getPV_SHORT_MEANING());\n req.setAttribute(\"newPVData\", vNewPV);\n }\n // get the selected pv data from the request\n else\n {\n // using designation hidden fields to get the selected value & meanings\n String sPVID = (String) req.getParameter(\"desName\");\n if (sPVID != null)\n m_PV.setPV_PV_IDSEQ(sPVID);\n String sPValue = (String) req.getParameter(\"desContext\");\n if (sPValue != null)\n m_PV.setPV_VALUE(sPValue);\n String sPVMean = (String) req.getParameter(\"desContextID\");\n if (sPVMean != null)\n m_PV.setPV_SHORT_MEANING(sPVMean);\n }\n // forwards the page to regular pv search if not questions\n String sMenuAction = (String) session.getAttribute(Session_Data.SESSION_MENU_ACTION);\n if (Origin.equals(\"CreateNew\") && !sMenuAction.equals(\"Questions\"))\n ForwardJSP(req, res, \"/OpenSearchWindow.jsp\");\n else\n {\n // get the selected crf value and update its attribute with the selected/created pvvalue\n String selCRFValue = (String) session.getAttribute(\"selCRFValueID\");\n if (selCRFValue != null)\n {\n // get the crf value vector to update\n Vector vQuestValue = (Vector) session.getAttribute(\"vQuestValue\");\n if (vQuestValue != null)\n {\n for (int i = 0; i < (vQuestValue.size()); i++)\n {\n Quest_Value_Bean QuestValueBean = new Quest_Value_Bean();\n QuestValueBean = (Quest_Value_Bean) vQuestValue.elementAt(i);\n // update the quest bean with the new value meaning\n if (QuestValueBean.getQUESTION_VALUE_IDSEQ().equalsIgnoreCase(selCRFValue))\n {\n QuestValueBean.setPERM_VALUE_IDSEQ(m_PV.getPV_PV_IDSEQ());\n QuestValueBean.setPERMISSIBLE_VALUE(m_PV.getPV_VALUE());\n QuestValueBean.setVALUE_MEANING(m_PV.getPV_SHORT_MEANING());\n break;\n }\n }\n DataManager.setAttribute(session, \"vQuestValue\", vQuestValue);\n }\n }\n ForwardJSP(req, res, \"/CRFValueSearchWindow.jsp\");\n }\n }", "title": "" }, { "docid": "ad3e114b3d92f49491e5725b4f832091", "score": "0.5014779", "text": "@Override\n public void encodeBegin(FacesContext context, UIComponent component) throws IOException {\n for (int i = 0; i < scriptIds.length; i++) {\n Util.getXhtmlHelper().linkJavascript(context, component,\n context.getResponseWriter(), Mechanism.CLASS_RESOURCE,\n scriptIds[i]);\n }\n for (int i = 0; i < cssIds.length; i++) {\n Util.getXhtmlHelper().linkStylesheet(context, component,\n context.getResponseWriter(), Mechanism.CLASS_RESOURCE,\n cssIds[i]);\n }\n \n YuiRendererHelper.renderSandboxJavaScript(context, context.getResponseWriter(), component);\n }", "title": "" }, { "docid": "2421d66aa5730d6238f80fadf78414c4", "score": "0.5012891", "text": "private String createWebVisualization() {\n\t\treturn \"alert('\" + message + \"');\";\n\t}", "title": "" }, { "docid": "772c2dbcf0055528145dbe07db5508b0", "score": "0.5011892", "text": "private HtmlPage runJavaScript(final String javascript, final HtmlPage page) {\n final HtmlPage res;\n ScriptResult result = page.executeJavaScript(javascript);\n res = (HtmlPage) result.getNewPage();\n return res;\n }", "title": "" }, { "docid": "19660aefb9f639c2c4e1110bdc9e7987", "score": "0.50113094", "text": "void eval(String javascript) throws WidgetException;", "title": "" }, { "docid": "a5b986309b927b338e92cb85d5360b6e", "score": "0.49943265", "text": "public void performExpressionHook(AjaxRequestTarget target){}", "title": "" }, { "docid": "89128c392d93eaccec9644feef30bfb1", "score": "0.49848527", "text": "@Override\n\tpublic String executar(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\treturn \"/jsps/incluirCategoria.jsp\";\n\t}", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.49833685", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.49833685", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.49833685", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "81dd2052a2e41e454329b1bf098bfa55", "score": "0.4976081", "text": "@Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n Log.e(\"checksJson\", checksJson.toString());\n String call = \"javascript:createTable(\\'\" + checksJson.toString().replaceAll(\"\\r|\\n\", \"\") + \"\\')\";\n view.loadUrl(call);\n }", "title": "" }, { "docid": "2bae6f7a99e3ecf29d4f27a2e390169f", "score": "0.4973069", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n \n}", "title": "" }, { "docid": "8f879ae3428f8428eb9d99ed204fc798", "score": "0.49681425", "text": "public static void importPatient() {\n\t\twebView.loadUrl(\"javascript:focusedPatients()\");\r\n\t}", "title": "" }, { "docid": "c756a62f445c1a5a0b86323d6aff1b66", "score": "0.49643514", "text": "@Override\n protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n req.setCharacterEncoding(\"UTF-8\");\n\n try {\n /**1、获得请求的method的名称*/\n String methodName = req.getParameter(\"method\");\n if (methodName == null){\n methodName = \"excute\";\n }\n /**2、获得当前被访问的对象的字节码对象*/\n Class clazz = this.getClass();\n /**3、获得当前字节码对象的中的指定方法*/\n Method method = clazz.getMethod(methodName, HttpServletRequest.class,HttpServletResponse.class);\n\n /**4、执行相应功能方法*/\n String jsPath = (String) method.invoke(this, req,resp);\n if (jsPath != null){\n req.getRequestDispatcher(jsPath).forward(req,resp);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "4d7093e7dfb89ec7fac53b86adbffc90", "score": "0.4954619", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n}", "title": "" }, { "docid": "f288dc976acaeafbfa52985c7d800858", "score": "0.49527645", "text": "public Object excuteJScript(String script) {\n\n\t\tJavascriptExecutor javaScript = (JavascriptExecutor) driver;\n\t\treturn javaScript.executeScript(script);\n\t}", "title": "" }, { "docid": "8a20ad1f769d7b2230540ae55df6c3b9", "score": "0.49510258", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.setContentType(\"text/html\");\r\n\t\tPrintWriter pw = response.getWriter();\r\n\t\t\r\n\r\n\t\tString htmlString = \"\";\r\n\r\n\t\t//HttpSession session = request.getSession();\r\n\t\tString ProductType = request.getParameter(\"category\");\r\n\t\tXMLlist prList = new XMLlist(\"ProductCatalog.xml\");\r\n\t\tList<Product> prlist123 = prList.getProducts(); //(ArrayList<Product>)session.getAttribute(\"productlist\");\r\n\t\tSystem.out.println(prlist123.size());\r\n\t\tString name;\r\n\r\n\r\n\r\nStringBuilder myvar = new StringBuilder(); \r\nmyvar.append(\"<html>\")\r\n .append(\"\")\r\n .append(\"<head>\")\r\n .append(\"\t<title>CSP 595</title>\")\r\n .append(\"\t<link rel=\\\"stylesheet\\\" href=\\\"styles.css\\\" type=\\\"text/css\\\" />\")\r\n .append(\" <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=ISO-8859-1\\\">\")\r\n .append(\"<script src=\\\"script.js\\\"></script>\")\r\n .append(\"</head>\")\r\n .append(\"\")\r\n .append(\"<body onload=\\\"init()\\\">\")\r\n .append(\"\")\r\n .append(\"<div id=\\\"container\\\">\")\r\n .append(\" <header>\")\r\n .append(\" \t<h1><a href=\\\"/\\\">Best<span>Deals</span></a></h1>\")\r\n .append(\" <h2>Online Store!!!!</h2>\")\r\n .append(\" </header>\")\r\n .append(\" <nav>\")\r\n .append(\" \t<ul>\")\r\n .append(\" \t<li class=\\\"start selected\\\"><a href=\\\"index.html\\\">Home</a></li>\")\r\n .append(\" <li class=\\\"\\\"><a href=\\\"SmartPhones?category=SmartPhone\\\">SmartPhones</a></li>\")\r\n .append(\" <li class=\\\"\\\"><a href=\\\"SmartPhones?category=Tablets\\\">Tablets</a></li>\")\r\n .append(\" <li class=\\\"\\\"><a href=\\\"SmartPhones?category=Laptops\\\">Laptop</a></li>\")\r\n .append(\"\t\t\t<li class=\\\"end\\\"><a href=\\\"SmartPhones?category=TV\\\">TV</a></li>\")\r\n .append(\"\t\t\t<li class=\\\"\\\"><a href='testtrend'>Trending</a></li>\")\r\n .append(\"\t\t\t<li class=\\\"\\\"><a href='DataAnalytics.html'>DataAnalytics</a></li>\")\r\n .append(\" <li class=\\\"order\\\"><a href='index.html'>LogIN</a></li>\")\r\n .append(\"\t\t\t\")\r\n .append(\"\t\t</ul>\")\r\n .append(\" </nav>\")\r\n .append(\"\")\r\n .append(\"\t<img class=\\\"header-image\\\" src=\\\"main.jpg\\\" width = \\\"100%\\\" height = \\\"100%\\\" alt=\\\"Index Page Image\\\" />\")\r\n .append(\"\t\")\r\n .append(\"\")\r\n .append(\" <div id=\\\"body\\\">\t\t\")\r\n .append(\"\")\r\n .append(\"\t<section id=\\\"content\\\">\")\r\n .append(\"\")\r\n .append(\"\t <article>\")\r\n .append(\"\t\t\t\")\r\n .append(\"\t\t\t<h2>Welcome to Best Deals Store</h2>\")\r\n .append(\"\t\t\t\")\r\n .append(\" <p>Get the best of the rest </p>\t\")\r\n .append(\" \")\r\n .append(\" <p>Main manufacturer being samsung , LG , Apple and many more!!</p>\")\r\n .append(\"\t\t\t\")\r\n .append(\"\t\t</article>\");\r\n\tpw.print(myvar);\r\n\r\ntry {\r\n\t\t\tpw.print(\"<div id='content'>\");\r\n\t\t\tpw.print(\"<div class='post'>\");\r\n\t\t\tpw.print(\"<h4 class='title'>\");\r\n\t\t\tpw.print(\"<a href='#'>Welcome to BestDeals online store </a></h4>\");\r\n\t\t\tpw.print(\"<div class='entry'>\");\r\n\t\t\t//pw.print(\"<br>\");\r\n\t\t\t//pw.print(\"<h4>The world trusts us to deliver the best service </h4>\");\r\n\t\t\t//pw.print(\"<br>\");\r\n\t\t\t//pw.print(\"<h4>We beat our competitors in all aspects. Price-Match Guaranteed</h4>\");\r\n\t\t\tString line = null;\r\n\t\t\t//HashMap<String, Product> productmap = new HashMap<String, Product>();\r\n\r\n\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"C:/apache-tomcat-7.0.34/webapps/csj/DealMatches.txt\"));\r\n\t\t\t//pw.print(\"here2\");\r\n\t\t\tline = reader.readLine();\r\n\t\t\tif (line == null) {\r\n\t\t\t\tpw.print(\"<h2>no offers</h2>\");\r\n\r\n\t\t\t} else {\r\n int x = 1;\r\n\t\t\t\twhile ((line = reader.readLine()) != null) {\r\n\t\t\t\t\tline = reader.readLine();\r\n\t\t\t\t\t//pw.print(line);\r\n\r\n\t\t\t\t\tdo {\r\n\r\n\t\t\t\t\t\tpw.print(\"<h4>\" + line + \"</h4>\");\r\n x++;\r\n\t\t\t\t\t\tbreak;\r\n\r\n\r\n\t\t\t\t\t} while ((line = reader.readLine()) != null && x < 3);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\r\n\r\n\r\n\t\tStringBuilder myvar1 = new StringBuilder(); \r\nmyvar1.append(\"</section>\")\r\n .append(\" \")\r\n .append(\" <aside class=\\\"sidebar\\\">\")\r\n .append(\"\t\")\r\n .append(\" <ul>\t\")\r\n .append(\" <li>\")\r\n .append(\" <h4>Products</h4>\")\r\n .append(\" <ul>\")\r\n .append(\" <li class=\\\"\\\"><a href=\\\"SmartPhones?category=SmartPhone\\\">SmartPhones</a></li>\")\r\n .append(\" <li class=\\\"\\\"><a href=\\\"SmartPhones?category=Tablets\\\">Tablets</a></li>\")\r\n .append(\" <li class=\\\"\\\"><a href=\\\"SmartPhones?category=Laptops\\\">Laptop</a></li>\")\r\n .append(\"\t\t\t<li class=\\\"end\\\"><a href=\\\"SmartPhones?category=TV\\\">TV</a></li>\")\r\n .append(\" \")\r\n .append(\" </ul>\")\r\n .append(\" </li>\")\r\n .append(\" \")\r\n .append(\" <li>\")\r\n .append(\" <h4>About us</h4>\")\r\n .append(\" <ul>\")\r\n .append(\" <li class=\\\"text\\\">\")\r\n .append(\" \t<p style=\\\"margin: 0;\\\">This is an Online Store.</p>\")\r\n .append(\" </li>\")\r\n .append(\" </ul>\")\r\n .append(\" </li>\")\r\n .append(\" \")\r\n .append(\" <li>\")\r\n .append(\" \t<h4>Search site</h4>\")\r\n .append(\" <ul> \")\r\n .append(\" <form name=\\\"autofillform\\\" action=\\\"AutoCompleteServlet\\\">\")\r\n .append(\" \t\t<div name=\\\"autofillform\\\">\")\r\n .append(\" \t\t\t<p>\")\r\n .append(\" \t\t\t<input type=\\\"text\\\" name=\\\"searchid\\\" value=\\\"\\\" class=\\\"input\\\" id=\\\"complete-field\\\" onkeyup=\\\"doCompletion()\\\" placeholder=\\\"search...\\\" style =\\\"padding:6px;font-size: 16px;margin: 5px 0;\\\"/>\")\r\n .append(\" \t\t\t</p>\")\r\n .append(\" \t\t\t<div id =\\\"auto-row\\\">\")\r\n .append(\" \t\t\t\t<table id=\\\"complete-table\\\" class=\\\"gridtable\\\" style=\\\"position: absolute;width:315px;\\\">\")\r\n .append(\" \t\t\t\t</table>\")\r\n .append(\" \t\t\t</div>\")\r\n .append(\" \t\t</div>\")\r\n .append(\" </form>\")\r\n .append(\" \")\r\n .append(\" </ul>\")\r\n .append(\" </li>\")\r\n .append(\"\")\r\n .append(\"\")\r\n .append(\" <li>\")\r\n .append(\" <h4>Helpful Links</h4>\")\r\n .append(\" <ul>\")\r\n .append(\" <li><a href=\\\"https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=good%20laptop%20configuration%202016\\\" title=\\\"premium templates\\\">What you buy</a></li>\")\r\n .append(\" <li><a href=\\\"https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=good%20laptop%20configuration%202016\\\">What you buy</a></li>\")\r\n .append(\" \")\r\n .append(\" </ul>\")\r\n .append(\" </li>\")\r\n .append(\" \")\r\n .append(\" </ul>\")\r\n .append(\"\t\t\")\r\n .append(\" </aside>\")\r\n .append(\" \")\r\n .append(\"\t<div class=\\\"clear\\\"></div>\")\r\n .append(\"\t</div>\");\r\n\t\r\n\r\npw.print(myvar1);\r\n\r\n\r\n\r\n\r\n\r\n\t\tScanner reader1 = new Scanner(new File(\"C:/apache-tomcat-7.0.34/webapps/csj/DealMatchId.txt\")).useDelimiter(\",//s*\");\r\n\r\n\t\tArrayList<String> temp = new ArrayList<String>();\r\n\r\n\t\twhile (reader1.hasNextLine()) {\r\n\t\t\ttemp.add(reader1.nextLine());\r\n\t\t}\r\n\r\n\t\treader1.close();\r\n\r\n\t\tSet<String> hs = new HashSet<>();\r\n\t\ths.addAll(temp);\r\n\t\ttemp.clear();\r\n\t\ttemp.addAll(hs);\r\n/*\r\n\t\tfor (int g = 0; g < temp.size(); g++) {\r\n\t\t\tpw.println(temp.get(g));\r\n\t\t}\r\n*/\r\n\t\tProduct p = null;\r\n\r\n\t\tfor (Product product : prlist123) {\r\n\t\t\tfor (String haha : temp) {\r\n\t\t\t\tif (product.getId().equals(haha)) {\r\n\t\t\t\t\tp = product;\r\n\t\t\t\t\thtmlString += \"<div><ul type='none'>\";\r\n\t\t\t\t\tSystem.out.println(p.getId());\r\n\t\t\t\t\tSystem.out.println(p.getName());\r\n\r\n\t\t\t\t\tname = p.name;\r\n\t\t\t\t\tString num = (String)p.id;\r\n\r\n\t\t\t\t\thtmlString = htmlString + \"<li><form action='OrderPage' method='get'><table>\";\r\n\t\t\t\t\thtmlString = htmlString + \"<tr><td><img width='200px' height='200px' src='images/\" + p.image + \"' /></td></tr>\";\r\n\t\t\t\t\t/*htmlString = htmlString + \"<tr><td>\"+prlist123.get(i).name+\"</td></tr>\";*/\r\n\t\t\t\t\thtmlString = htmlString + \"<tr><td>\" + name + \"</td></tr>\";\r\n\t\t\t\t\thtmlString = htmlString + \"<tr><td>\" + num + \"</td></tr>\";\r\n\t\t\t\t\thtmlString = htmlString + \"<tr><td>\" + p.price + \"</td></tr>\";\r\n\t\t\t\t\thtmlString = htmlString + \"<tr><td>\" + p.condition + \"</td></tr>\";\r\n\t\t\t\t\thtmlString = htmlString + \"<tr><td>\" + p.retailer + \"</td></tr>\";\r\n\t\t\t\t\t//htmlString = htmlString + \"<tr><td>\"+num+\"</td></tr>\";\r\n\r\n\t\t\t\t\thtmlString = htmlString + \"<tr><td><input type='hidden' name='productid' value='\" + num + \"'/></td></tr>\";\r\n\t\t\t\t\t//htmlString = htmlString + \"<tr><td><form action='OrderForm.html' method='get'><input type='submit' value='Buy'></input></td></tr>\";\r\n\t\t\t\t\t//htmlString = htmlString + \"<tr><td><a href='OrderForm.html' onclick='OrderForm.html' type='submit'>Buy</a></td></tr>\";\r\n\r\n\t\t\t\t\thtmlString = htmlString + \"<tr><td><input type='submit' value='AddToCart'/></td></tr>\";\r\n\r\n\t\t\t\t\thtmlString = htmlString + \"</table></form></li>\";\r\n\t\t\t\t\thtmlString = htmlString + \"<form action='view.html' method='GET'><input type='submit' value='ViewReview'/></form>\";\r\n\t\t\t\t\thtmlString = htmlString + \"<form action='WriteReview.html' method='GET'><input type='submit' value='WriteReview' name='WriteReview'/></form>\";\r\n\r\n\r\n\t\t\t\t\thtmlString = htmlString + \"</ul></div>\";\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\r\npw.println(htmlString);\r\nStringBuilder myvar2 = new StringBuilder(); \r\nmyvar2.append(\"<footer>\")\r\n .append(\"\t\")\r\n .append(\" <div class=\\\"footer-content\\\">\")\r\n .append(\" <ul>\")\r\n .append(\" \t<li><h4>Dummy Link Section 1</h4></li>\")\r\n .append(\" <li><a href=\\\"#\\\">Dummy 1</a></li>\")\r\n .append(\" <li><a href=\\\"#\\\">Dummy 2</a></li>\")\r\n .append(\" <li><a href=\\\"#\\\">Dummy 3</a></li>\")\r\n .append(\"\t\t\t</ul>\")\r\n .append(\" \")\r\n .append(\" <div class=\\\"clear\\\"></div>\")\r\n .append(\" </div>\")\r\n .append(\"\t\t\")\r\n .append(\" <div class=\\\"footer-bottom\\\">\")\r\n .append(\" <p>CSP 595 - Enterprise Web Application</p>\")\r\n .append(\" </div>\")\r\n .append(\"\t\t\")\r\n .append(\" </footer>\")\r\n .append(\"</div>\")\r\n .append(\"\")\r\n .append(\"</body>\")\r\n .append(\"\")\r\n .append(\"</html>\");\r\n\t\r\n\r\n\r\npw.print(myvar2);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "427ef27b7e41212ac3967f97030312c1", "score": "0.4950599", "text": "public int doEndTag()\n throws JspException\n {\n\n popIdScope();\n\n // writeout the script.\n WriteRenderAppender writer = new WriteRenderAppender(pageContext);\n\n // if we wrote out the scopeId then we end it.\n if (_idScope != null) {\n writer.append(\"</div>\");\n }\n\n writeFrameworkScript(writer);\n writeAfterBlocks(writer);\n localRelease();\n return EVAL_PAGE;\n }", "title": "" }, { "docid": "b2165a899db311206b9250955ddff48d", "score": "0.49492535", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\treq.setCharacterEncoding(\"utf-8\");\n\t\tJSONArray json = new JSONArray();\n\t\tjson = func.getAllFunction(-1);\n\t\tPrintWriter pw = resp.getWriter();\n\t\tpw.write(json.toString());\n\t}", "title": "" }, { "docid": "92424b7e1a13288b93869de09c8c4dcb", "score": "0.49451876", "text": "@RequestMapping(value={\"/addProducto\"})\r\n\tpublic void addProducto(HttpServletResponse response,HttpServletRequest request) throws IOException{\r\n\tMstProducto bean=(MstProducto)populateBean(request, new MstProducto());\r\n\tLong id0=Long.parseLong(request.getParameter(\"proveedor\"));\r\n\tbean.setProveedor(new MstProveedor(id0));\r\n\tbean.setCreacion(new Date());\r\n\tdao.createEntity(bean);\r\nresponseAjax(response, \"Creado\");\r\n}", "title": "" }, { "docid": "b91bc90d710adfcd0699a81ea8d4c0ad", "score": "0.49438632", "text": "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\r\n String query = request.getParameter(\"query\");\r\n // Actual logic goes here.\r\n PrintWriter out = response.getWriter();\r\n// out.println(\"<h1>\" + query + \"</h1>\");\r\n// Vector<Vector<Object>> d;\r\n out.println(\"<head><title>Query</title>\"\r\n \t\t+ \"<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>\"\r\n \t\t+ \"<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>\"\r\n \t\t+ \"<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>\"\r\n \t\t+ \"</head>\");\r\ntry {\r\n\tJdbc jd = new Jdbc();\r\n\tConnection dbConnection = null;\r\n\tStatement statement = null;\r\n\tVector<Vector<Object>> data = null;\r\n\tVector<String> columnNames;\r\n\t//Vector<Vector<Object>> d1 = j3.main2(query);\r\n\tdbConnection = jd.getDBConnection();\r\n\tstatement = jd.statementValue(dbConnection);\r\n\tResultSet rs = jd.resultValue(statement, query);\r\n\tResultSetMetaData metadata = jd.metaResultValue(rs);\r\n\tcolumnNames = jd.columnCountValue(metadata);\r\n\tint columnCount = columnNames.size();\r\n\tdata = jd.temp(metadata, rs,columnCount);\r\n\tString errorMsg = jd.errorMessage();\r\n\t//int y = j3.columnCountValue(columnCount);\r\n out.println(\"<table class='table table-hover'>\");\r\n for(int i=0;i<columnNames.size();i++){\r\n\t out.println(\"<th>\"+ columnNames.get(i) +\"</th>\");\r\n }\r\n for(int i=0;i<data.size();i++){\r\n \tout.println(\"<tr>\");\r\n \tfor(int j=0;j<columnCount;j++){\r\n \t\tout.println(\"<td>\"+ data.get(i).get(j) +\"</td>\");\r\n \t}\r\n \tout.println(\"</tr>\");\r\n }\r\n out.println(\"<table>\");\r\n\t//out.println(\"<h1>\" + d1.get(0).get(0) + \"</h1>\");\r\n out.println(\"<p id=\"+errorMsg+\"></p>\");\r\n} catch (SQLException e) {\r\n\t// TODO Auto-generated catch block\r\n\te.printStackTrace();\r\n}\r\n}", "title": "" }, { "docid": "55256e31009ae60dd88bd702eb14e28f", "score": "0.49415946", "text": "public ScriptHandler() {\n\t\tjs = new ScriptEngineManager().getEngineByName(\"javascript\");\n\t\texportJSObjects();\n\t\t// Prints \"-1.0\" to the standard output stream.\n\t}", "title": "" }, { "docid": "761f016daf8b3c2ac604e57b6a8efcd6", "score": "0.4938771", "text": "public int doStartTag() throws JspException {\n\n\t\t// evaluate any expressions we were passed, once per invocation\n\t\tevaluateExpressions();\n\n\t\t// chain to the parent implementation\n\t\treturn super.doStartTag();\n\t}", "title": "" }, { "docid": "41bb990d4c39441a0eb1c00e181b1a6a", "score": "0.49365532", "text": "@Override\n\tpublic List<String> getHeaderPortletJavaScript() {\n\t\treturn _headerPortletJavaScript;\n\t}", "title": "" }, { "docid": "134d2305bc971b4b1cb03904e345b4df", "score": "0.49244797", "text": "public JSR223Script(View view) {\n this.view = view;\n }", "title": "" }, { "docid": "a8aba2413e157393c9a4e2d14e6dabdd", "score": "0.49222195", "text": "@JSProperty(\"sender\")\n public String sender();", "title": "" }, { "docid": "490aa3b7ca6a9d910c5a266de0029683", "score": "0.49195912", "text": "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n HttpSession session = req.getSession();\n Medimenu med=(Medimenu) session.getAttribute(\"chocoObject\");\n if (med == null){\n this.getServletContext().getRequestDispatcher( \"/WEB-INF/in.jsp\" ).forward( req, resp );\n return;\n }\n Integer nombreDeMenu=(Integer)session.getAttribute(\"nbMenus\");\n Integer nombreDeJour=(Integer)session.getAttribute(\"nbJours\");\n\n\n // Lecture du formulaire precedent et creation des contraintes\n med.readConstraints(req);\n req.setAttribute(\"nombreDeJour\", nombreDeJour);\n\n\n\n //Soit t l'arraylist contenant l'ensemble des groupes et sous-groupes\n /*\n for(int i=0;i<nbSlotsPetitDej;i++){\n //for(String s:t){\n //String tofind=s+\"_petitDej_\"+i;\n //Integer group=Integer.parseInt(req.getParameter(\"nbSlotsPetitDej\"))\n // med.transfertGroupes(group,s,0,i)); 0 correspondant au petit-déj\n }\n*/\n\n\n // ------------------------------------------------------------------------------------------------------------\n // Modification des inputs\n //med.setDayNumber();\n\n // ------------------------------------------------------------------------------------------------------------\n // Récupération du résultat\n\n\n String result = med.getResultat(req);\n req.setAttribute( \"result\", result );\n req.getSession().setAttribute( \"resultat\", result );\n // Integer.parseInt((String)req.getSession().getAttribute(\"nombreDeMenu\"))\n //req.setAttribute( \"dayNumber\", med.setDayNumber);\n\n\n // ------------------------------------------------------------------------------------------------------------\n // Affichage de la page\n this.getServletContext().getRequestDispatcher( \"/WEB-INF/out.jsp\" ).forward( req, resp );\n }", "title": "" }, { "docid": "5c73c29ee1e123c2aa2f30ccb81bd728", "score": "0.49153426", "text": "public static void ajaxList() {\r\n Integer pageSequence = 1;\r\n int from = (pageSequence - 1) * pageSize;\r\n List<SysUser> entityList = SysUser.find(\"select o from SysUser o order by id desc\").fetch();\r\n Long entityCount = SysUser.count();\r\n render(entityCount, entityList, pageSequence);\r\n }", "title": "" }, { "docid": "a29ad80aedf539b239a09463864c6c87", "score": "0.4915032", "text": "@Test(dependsOnMethods = \"step06\")\n public void step07() {\n timPage.runJS(\"ran_this_js_function\");\n }", "title": "" }, { "docid": "96d645707f9568809ab386c14995ae92", "score": "0.491444", "text": "@Override\r\n\tpublic final int doStartTag() throws JspException {\r\n\t\trequest = (HttpServletRequest) pageContext.getRequest();\t\r\n\t\treturn EVAL_BODY_BUFFERED;\r\n\t}", "title": "" }, { "docid": "3f8e573b1f506d54baec95bb625593a0", "score": "0.49065793", "text": "@Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n String call = \"javascript:sendData(\\'\" + jsonObject.toString().replaceAll(\"\\r|\\n\", \"\") + \"\\')\";\n view.loadUrl(call);\n }", "title": "" }, { "docid": "c4cde80fc71153301fdd8d7c0af0e03f", "score": "0.49033785", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \nString id = request.getParameter(\"id\");\nSystem.out.println(id);\nAdvisorBean advisorBean=new AdvisorBean();\nadvisorBean.setId(id);\n\n AdvisorDao advisorDao=new AdvisorDao();\n\n ArrayList<AdvisorBean> std=advisorDao.getAdvisorInformation(advisorBean);\n request.setAttribute(\"data\", std); \n\n RequestDispatcher rd = request.getRequestDispatcher(\"Advisor.jsp\"); \n rd.forward(request, response); \n\n }", "title": "" }, { "docid": "22ff8f2d8ec5aa52f41e09c3b0bc27a5", "score": "0.4901716", "text": "public void setInWeb() {}", "title": "" }, { "docid": "80613572197c0c41dc7f39e14f86d237", "score": "0.48972392", "text": "void toJs(StringBuilder js, PageGeneratorContext pageContext) {\n\t\tString className = this.getClass().getName()\n\t\t\t\t.substring(this.getClass().getName().lastIndexOf('.') + 1);\n\t\tjs.append('\\n').append(Page.JS_VAR_NAME).append(\" = new PM.\")\n\t\t\t\t.append(className).append(\"();\");\n\n\t\tpageContext.setAttributes(this, js, AbstractField.ALL_META_ATTRIBUTES);\n\t\tpageContext.setTableSensitiveAttributes(this, js,\n\t\t\t\tAbstractField.ALL_TABLE_SENSITIVE_ATTRIBUTES);\n\t\tpageContext.setTableSensitiveArrays(this, js,\n\t\t\t\tAbstractField.ALL_TABLE_SENSITIVE_ARRAYS);\n\n\t\tif (pageContext.isInsideGrid) {\n\t\t\tpageContext.setJsTextAttribute(js, \"tableName\",\n\t\t\t\t\tpageContext.getTableName());\n\t\t\tpageContext.setJsTextAttribute(js, \"unqualifiedName\", this.name);\n\n\t\t}\n\n\t\t/*\n\t\t * formatter should default to dataElement or dataType. NOTE: if it is\n\t\t * specified, it is taken care of by the generic utility\n\t\t */\n\t\tif (this.formatter == null && this.dataElement != null) {\n\t\t\tString ft = this.dataElement.formatter;\n\t\t\tif (ft == null) {\n\t\t\t\tAbstractDataType dt = DataTypes\n\t\t\t\t\t\t.getDataType(this.dataType, null);\n\t\t\t\tif (dt != null) {\n\t\t\t\t\tft = dt.formatter;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (ft != null) {\n\t\t\t\tpageContext.setJsTextAttribute(js, \"formatter\", ft);\n\t\t\t}\n\t\t}\n\n\t\t// and label.\n\t\tString labelToUse = this.getLabelToUse(pageContext);\n\t\tif (labelToUse == null) {\n\t\t\tlabelToUse = \"\";\n\t\t}\n\t\tpageContext.setJsTextAttribute(js, \"label\", labelToUse);\n\t\t// value to be set to defaultValue\n\t\tString val = (this.defaultValue == null) ? \"\" : this.defaultValue;\n\t\tpageContext.setJsTextAttribute(js, \"value\", val);\n\n\t\t/*\n\t\t * any other attribute that the concrete class wants to add\n\t\t */\n\t\tthis.fieldToJs(js, pageContext);\n\n\t\tjs.append('\\n').append(\"P2.addField(\").append(Page.JS_VAR_NAME)\n\t\t\t\t.append(\");\");\n\t}", "title": "" }, { "docid": "a4693456575d463048329c6f2c5fa9ee", "score": "0.48960355", "text": "public List getJavaScript() {\n if (JavaScript == null) {//GEN-END:|90-getter|0|90-preInit\n // write pre-init user code here\n JavaScript = new List(\"JavaScript?\", Choice.IMPLICIT);//GEN-BEGIN:|90-getter|1|90-postInit\n JavaScript.append(\"Yes!\", null);\n JavaScript.append(\"No\", null);\n JavaScript.addCommand(getBackCommand8());\n JavaScript.setCommandListener(this);\n JavaScript.setSelectedFlags(new boolean[] { false, false });//GEN-END:|90-getter|1|90-postInit\n // write post-init user code here\n }//GEN-BEGIN:|90-getter|2|\n return JavaScript;\n }", "title": "" }, { "docid": "9b79cce0ebf2a30a3a11263e3cd4f346", "score": "0.48922002", "text": "public String pageSpecificJavascriptPath()\n {\n return pageSpecificResourcePath(JAVASCRIPT_RESOURCE_DIR,\n JAVASCRIPT_RESOURCE_EXT);\n }", "title": "" }, { "docid": "4fdc69ebb6111d1faf763d4a10cc7a17", "score": "0.4891689", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n response.setHeader(\"Access-Control-Allow-Origin\", \"*\");\n response.setHeader(\"Access-Control-Allow-Methods\", \"GET, POST, OPTIONS\");\n response.setHeader(\"Access-Control-Allow-Headers\", \"*\");\n response.setHeader(\"Access-Control-Max-Age\", \"86400\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n JavaBeanCtWurth jbcw = new JavaBeanCtWurth();\n List<CtWurth> lcw =jbcw.findCtWurthEntitiesByUsername(request.getSession().getAttribute(\"username\").toString());\n CtWurth cw;\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\"); \n out.println(\"<title>WebPopUpPage</title>\");\n out.println(\"<link rel=\\\"shortcut icon\\\" href=\\\"css/images/favicon.ico\\\" type=\\\"image/x-icon\\\">\");\n out.println(\"<link rel=\\\"icon\\\" href=\\\"css/images/favicon.ico\\\" type=\\\"image/x-icon\\\">\");\n out.println(\"<link href=\\\"css/bootstrap.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/bootstrap-switch.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/bootstrap-dialog.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/bootstrap-select.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/bootstrap-datetimepicker.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/bootstrap-progressbar-3.3.4.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/dataTables.bootstrap.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/responsive.dataTables.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/buttons.dataTables.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/select.bootstrap.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/jquery.accordion-menu.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/smart_wizard.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/smart_wizard_theme_dots.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/jquery.contextMenu.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"fonts/fontawesome/font-awesome.min.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"css/style.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href=\\\"bxpadmin/resources/css/style-responsive.css\\\" rel=\\\"stylesheet\\\">\");\n out.println(\"<link href='css/style_client.css' rel='stylesheet'>\");\n out.println(\"<script src=\\\"http://code.jquery.com/jquery-2.1.0.min.js\\\"></script>\");\n out.println(\"<script src=\\\"https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js\\\"></script>\");\n out.println(\"<script src=\\\"/javascript/jquery.cookie.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/jquery-ui.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/moment.min.js\\\"></script>\");\n out.println(\"<script src=\\\"javascript/bootstrap.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/bootstrap-switch.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/bootstrap-filestyle.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/bootstrap-dialog.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/bootstrap-select.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/bootstrap-datetimepicker.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/bootstrap-progressbar.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/jquery.dataTables.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/dataTables.bootstrap.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/dataTables.responsive.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/dataTables.buttons.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/dataTables.select.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/jquery.contextMenu.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/jszip.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/buttons.html5.min.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/jquery.accordion-menu.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/jquery.nicescroll.min.js\\\"></script>\");\n out.println(\"<script src=\\\"javascript/jquery.validate.min.js\\\"></script>\");\n out.println(\"<script src=\\\"javascript/jquery.fileDownload.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script src=\\\"javascript/jquery.smartWizard.min.js\\\"></script>\");\n out.println(\"<script defer=\\\"\\\" src=\\\"javascript/js/highcharts.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script defer=\\\"\\\" src=\\\"javascript/highcharts-data.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script defer=\\\"\\\" src=\\\"javascript/drilldown.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script defer=\\\"\\\" src=\\\"javascript/sidebar.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script defer=\\\"\\\" src=\\\"javascript/script.js\\\" type=\\\"text/javascript\\\"></script>\");\n out.println(\"<script type=\\\"text/javascript\\\" src=\\\"javascript/eventscript.js\\\"></script>\");\n out.println(\"<script type=\\\"text/javascript\\\" src=\\\"javascript/call_actions.js\\\"></script>\");\n out.println(\"<title>Servlet AgentServlet</title>\"); \n out.println(\"</head>\");\n out.println(\"<body id=\\\"pageBody\\\" oncontextmenu=\\\"return false\\\">\");\n out.println(\"<div align='right'>\"); \n out.println(\"Bienvenid@ Sr@ \"+request.getSession().getAttribute(\"fullname\").toString());\n out.println(\"<a href=\\\"/WebPopUpPage/login.jsp?cerrar=true\\\">Cerrar Sesion</a>\");\n out.println(\"</div>\"); \n out.println(\"<div style=\\\"display:none; \\\" id=\\\"contextMenu\\\">\");\nout.println(\"<table border=\\\"0\\\" cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" \");\nout.println(\"style=\\\"border: thin solid #808080; cursor: default;\\\" width=\\\"100px\\\" bgcolor=\\\"White\\\">\");\nout.println(\"<tr>\");\nout.println(\"<td >\");\n//out.println(\"<div class=\\\"ContextItem\\\" onclick=\\\"alertaName('contextMenu');\\\">Llamar</div>\");\nout.println(\"<div id=\\\"llamar\\\" class=\\\"ContextItem\\\">Llamar</div>\");\nout.println(\"</td>\");\nout.println(\"</tr>\");/*\nout.println(\"<tr>\");\nout.println(\"<td >\");\nout.println(\"<div class=\\\"ContextItem\\\">Edit</div>\");\nout.println(\"</td>\");\nout.println(\"</tr>\");\nout.println(\"<tr>\");\nout.println(\"<td >\");\nout.println(\"<div class=\\\"ContextItem\\\">Delete</div>\");\nout.println(\"</td>\");\nout.println(\"</tr>\");*/\nout.println(\"</table>\");\nout.println(\"</div>\");\nout.println(\"<section class=\\\"wrapper\\\">\");\nout.println(\"<div class=\\\"row\\\">\");\nout.println(\"<div id=\\\"page-content\\\">\");\n\n out.println(\"<table class=\\\"table table-striped table-bordered dataTable no-footer\\\">\");\n out.println(\"<thead>\");\n out.println(\"<tr>\");\n out.println(\"<th>Nombre</th>\");\n out.println(\"<th>Apellido Paterno</th>\");\n out.println(\"<th>Apellido Materno</th>\");\n out.println(\"<th>RUT Persona</th>\");\n out.println(\"<th>Teléfono</th>\");\n out.println(\"<th>Nombre Empresa</th>\");\n out.println(\"<th>RUT Empresa</th>\");\n out.println(\"</tr>\");\n out.println(\"</thead>\");\n out.println(\"<tbody id=\\\"\"+request.getSession().getAttribute(\"anexo\").toString()+\"\\\" class=\\\"dataTableBody\\\">\");\n for(int i=0;i<lcw.size();i++){\n String clase = \"odd\";\n if(i%2==0){\n clase=\"even\";\n }\n cw = lcw.get(i);\n out.println(\"<tr \"\n + \"class=\\\"\"+clase+\"\\\" \"\n + \"id=\\\"record_\"+i+\"\\\" \"\n + \"onmousedown=\\\"HideMenu('contextMenu');\\\" \"\n + \"onmouseup=\\\"HideMenu('contextMenu');\\\" \"\n //+ \"oncontextmenu=\\\"ShowMenu('record_\"+i+\"','contextMenu',event);\\\" \"\n + \"onclick=\\\"rowSelected('record_\"+i+\"');\\\" \"\n + \">\");\n out.println(\"<td id=\\\"nombre\\\">\"+cw.getNombre()+\"</td>\");\n out.println(\"<td id=\\\"apellido_pat\\\">\"+cw.getApellidoPat()+\"</td>\");\n out.println(\"<td id=\\\"apellido_mat\\\">\"+cw.getApellidoMat()+\"</td>\");\n out.println(\"<td id=\\\"id_cliente\\\">\"+cw.getIdCliente()+\"</td>\");\n out.println(\"<td id=\\\"contact_info\\\">\"+cw.getContactInfo()+\"</td>\");\n out.println(\"<td id=\\\"empresa\\\">\"+cw.getEmpresa()+\"</td>\");\n out.println(\"<td id=\\\"rut_empresa\\\">\"+cw.getRutEmpresa()+\"</td>\");\n out.println(\"</tr>\");\n }\n out.println(\"</tbody>\"); \n out.println(\"</table>\");\n out.println(\"</div>\");\n out.println(\"</div>\");\n out.println(\"</section>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n //request.setAttribute(\"id_cliente\", cw.getIdCliente());\n //RequestDispatcher rd = request.getRequestDispatcher(\"agent.jsp\"); \n //rd.forward(request, response);\n }\n }", "title": "" }, { "docid": "a3a12ebb7cc1f328484b7e566b3cfa2a", "score": "0.48891187", "text": "public void doTag() throws JspException,IOException{\n// obtengo el stream para escribir\nJspWriter out = getJspContext().getOut();\nout.write(\"<table border='1'> width='50%'\");\nfor(String s : lista){\n\tout.write(\"<tr>\");\n\tout.write(\"<td> \" + s + \"</td>\");\n\tout.write(\"</tr>\");\n}\nout.write(\"</table>\");\t\n}", "title": "" }, { "docid": "4e9b89a1bc624ac9725b93bca94bff87", "score": "0.4886586", "text": "@Override\n public void onPageFinished(WebView view, String url) {\n super.onPageFinished(view, url);\n Log.e(\"checksJson\", checksJson.toString());\n String call = \"javascript:createTable(\\'\" + checksJson.toString().replaceAll(\"\\r|\\n\", \"\") + \"\\')\";\n view.loadUrl(call);\n }", "title": "" }, { "docid": "baac9b29a93795abfb00d4a54c88bc4b", "score": "0.48832688", "text": "public static String convertJSPString(String t) {\n if (t == null) {\r\n return \"\";\r\n }\r\n \r\n if (t.compareTo(\"\") == 0) {\r\n return \"\";\r\n }\r\n \r\n String sigleQuoteChar = \"'\";\r\n String doubleQuoteChar = \"\\\"\";\r\n \r\n String dq = \"&quot;\";\r\n \r\n t = t.replaceAll(sigleQuoteChar, \"\\\\\" + sigleQuoteChar);\r\n t = t.replaceAll(doubleQuoteChar, \"\\\\\" + dq);\r\n t = t.replaceAll(\"\\r\", \"\\\\r\"); // replace CR with \\r;\r\n t = t.replaceAll(\"\\n\", \"\\\\n\"); // replace LF with \\n;\r\n \r\n return cleanXSS(t);\r\n }", "title": "" }, { "docid": "b34713ffef5328f4fbb43487f81687c9", "score": "0.48739395", "text": "public String getJavaScript(final String _paneId) {\n final StringBuilder ret = new StringBuilder();\n ret.append(\"function storePositionH(){\\n \").append(\n \" var pane = dojo.byId(\\\"\").append(_paneId).append(\"\\\");\\n\").append(\n generateCallbackScript(\"wicketAjaxPost('\" + getCallbackUrl(false)\n + \"','\" + POSITION_PARAMETERNAMERNAME + \"=' + pane.clientWidth\"))\n .append(\"\\n\" + \" }\\n\");\n return ret.toString();\n }", "title": "" } ]
d7f9e8d48baa6f4daf5abd7230f8b843
Create a Properties file for testing.
[ { "docid": "76a92c5bb3acddc5551e2d7392944f17", "score": "0.7410881", "text": "public Properties createProperties() {\r\n\t\tString path = System.getProperty(\"java.io.tmpdir\");\r\n\t\tString pattern = \"file.txt\";\r\n\t\tProperties props = new Properties();\r\n\t\tprops.setProperty(LogMgmtI.INPUT_PATH, path);\r\n\t\tprops.setProperty(LogMgmtI.INPUT_PATTERN, pattern);\r\n\t\treturn props;\r\n\t}", "title": "" } ]
[ { "docid": "0415559fc19f95c09eabe2d4b97cee42", "score": "0.80265814", "text": "public static void createPropertyFile() throws IOException {\n LOGGER.info(\"Create new property-File in \" + PROPERTIES_FILE_PATH);\n\n /*\n * Checks if parent-directory for file exists, if not, creates this directory\n */\n File properties = new File(PROPERTIES_FILE_PATH);\n File parent = properties.getParentFile();\n if (!parent.exists() && !parent.mkdirs()) {\n LOGGER.error(\"Couldn't create dir: \" + parent);\n throw new IllegalStateException(\"Couldn't create dir: \" + parent);\n }\n\n BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(properties));\n createDefaultProperty().store(bos,\n \"# Configuration file for the brewing-server (default generated)\");\n bos.close();\n LOGGER.info(\"A new property-File with default values was generated in \" + PROPERTIES_FILE_PATH);\n }", "title": "" }, { "docid": "8da4790a3aaeefaf886ad04867571af3", "score": "0.7674021", "text": "public static void write_properties(Properties properties) {\n try {\n String directory = \"data\";\n File dir = new File(directory);\n // If you require it to make the entire directory path including parents, use directory.mkdirs(); here instead.\n if (!dir.exists()) dir.mkdir();\n } catch (SecurityException f) { // geen IOException maar een SecurityException https://stackoverflow.com/a/37723632\n f.printStackTrace();\n }\n\n //Create file if it doesnt exist\n try {\n File myFile = new File(\"data/props.properties\");\n\n if (myFile.createNewFile()) {\n System.out.println(\"File is created!\");\n } else {\n System.out.println(\"File already exists.\");\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n //Properties properties = new Properties();\n try (FileWriter output = new FileWriter(\"data/props.properties\")) {\n properties.store(output, \"These are properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "727ac6b56d19da72bd67ac84c41ad5ae", "score": "0.70031315", "text": "public void storeProperties() {\n\t\ttry {\n\t\t\tFileOutputStream outputstream = new FileOutputStream(p_path);\n\t\t\tprop.store(outputstream, \"Main property file\");\n\t\t\toutputstream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "4025c02ef352bc5ce55ac6eb25264343", "score": "0.6865812", "text": "private void createPropertyFile() {\n final Properties propertyFile = new Properties();\n\n // Don't alter properties if you didn't make a connection.\n// if (databaseConnection == null) {\n// return;\n// }\n try {\n\n // Save information about the last databaseConnection.getConnection() except for the password.\n propertyFile.setProperty(\"\\\\Strings\", \"\");\n\n // This all depends.\n if (hostJCheckbox.isSelected()) {\n propertyFile.setProperty(\"lastHost\", databaseConnection == null || databaseConnection.getHost() == null ? \"\" : databaseConnection.getHost());\n } else {\n propertyFile.remove(\"lastHost\");\n }\n\n // Ack. Depends\n if (userJCheckbox.isSelected()) {\n propertyFile.setProperty(\"lastUser\", databaseConnection == null || databaseConnection.getUser() == null ? \"\" : databaseConnection.getUser());\n } else {\n propertyFile.remove(\"lastUser\");\n }\n\n // Depends.\n if (databaseJCheckbox.isSelected()) {\n propertyFile.setProperty(\"lastSchema\", databaseConnection == null || databaseConnection.getDatabase() == null ? \"\" : databaseConnection.getDatabase());\n } else {\n propertyFile.remove(\"lastSchema\");\n }\n\n // Also depends.\n if (tableJCheckbox.isSelected()) {\n propertyFile.setProperty(\"lastTable\", databaseConnection == null || databaseConnection.getTable() == null ? \"\" : databaseConnection.getTable());\n } else {\n propertyFile.remove(\"lastTable\");\n }\n\n // Integers.\n if (portJCheckbox.isSelected()) {\n propertyFile.setProperty(\"lastPort\", databaseConnection == null ? \"3306\" : String.valueOf(databaseConnection.getPort()));\n } else {\n propertyFile.remove(\"lastPort\");\n }\n\n // Write the file.\n propertyFile.store(new FileOutputStream(\"config.properties\"), null);\n } catch (IOException ioe) {\n\n //\n JOptionPane.showMessageDialog(this, ioe.getMessage(), \"Error Creating Property File\", JOptionPane.ERROR_MESSAGE);\n }\n }", "title": "" }, { "docid": "e673e263c6aa7b88939ae7aa713e1d88", "score": "0.68197745", "text": "static void createDataFile(String name, String suffix, Properties properties)\r\n {\r\n File cfg = new File(name + \".\" + suffix);\r\n if(!cfg.exists())\r\n {\r\n try\r\n {\r\n FileOutputStream fos = new FileOutputStream(cfg, false);\r\n properties.store(fos, \"for tests only !\");\r\n fos.close();\r\n }\r\n catch(Exception e)\r\n {\r\n throw new RuntimeException(\"Unable to create the destination file \" + cfg.getName(), e);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "53d98f8795477fd6820874fd73480cc6", "score": "0.67233986", "text": "public static void saveProperties() {\n try {\n File file = new File(PROPERTIES_FILE);\n OutputStream os = new FileOutputStream(file);\n properties.save(os, PROPERTIES_FILE);\n } catch (FileNotFoundException e) {\n log.warning(\"Could not find file suncertify.properties \");\n }\n }", "title": "" }, { "docid": "73c0ed39f9795fdb75ddd5dc99363dc5", "score": "0.66433924", "text": "private void writeProperties(Properties properties) {\n properties.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "title": "" }, { "docid": "9503c9e344a2aef3db8d217060570144", "score": "0.6592918", "text": "public void saveToPropertiesFile() {\n \n createProperyFile();\n \n try {\n List<String> pathElements = null;\n \n initializePropertyFile();\n \n if (!this.dataPaths.isEmpty()) {\n pathElements = eliminateDuplicates(this.dataPaths);\n saveDataToPropertiesFile(pathElements);\n }\n \n if (!this.extPaths.isEmpty()) {\n pathElements = eliminateDuplicates(this.extPaths);\n saveExtToPropertiesFile(pathElements);\n }\n \n if (!this.updTypePaths.isEmpty()) {\n pathElements = eliminateDuplicates(this.updTypePaths);\n commentAppDeploy(pathElements, true);\n }\n \n if (!this.preserveTypePaths.isEmpty()) {\n pathElements = eliminateDuplicates(this.preserveTypePaths);\n commentAppDeploy(pathElements, false);\n }\n closeFile();\n } catch (final IOException e) {\n Logger.getLogger(this.getClass()).error(\n MessageFormat.format(AppUpdateWizardConstants.LOG_PREFIX_MESSAGE,\n new Object[] { e.getMessage() }));\n throw new ExceptionBase(null, e.getMessage(), e);\n }\n }", "title": "" }, { "docid": "90a877e449ed535da72b7dca1552985d", "score": "0.649238", "text": "public void saveProps() {\n FileOutputStream fout;\n try {\n fout = new FileOutputStream(fileName);\n _properties.store(fout, \"Properties\");\n fout.close();\n } catch (IOException e) {\n System.out.println(\"Could not save properties: \" + e.toString());\n }\n\t}", "title": "" }, { "docid": "4b2993e1bc13b0d3a5d9709fa3711aba", "score": "0.64671797", "text": "public void getEnvAndSysPropertiesFromFile() throws IOException {\n File propsFile = new File(\"tempPropFile\");\n propsFile.createNewFile();\n Properties props = new Properties();\n props.put(ENV_POPO_KEY, \"buildname\");\n props.put(ENV_MOMO_KEY, \"1\");\n props.store(new FileOutputStream(propsFile), \"\");\n\n System.setProperty(BuildInfoConfigProperties.PROP_PROPS_FILE, propsFile.getAbsolutePath());\n\n // Put system properties\n String kokoKey = \"koko\";\n String gogoKey = \"gogo\";\n System.setProperty(kokoKey, \"parent\");\n System.setProperty(gogoKey, \"2\");\n\n Properties buildInfoProperties = BuildInfoExtractorUtils.getEnvProperties(new Properties(), null);\n assertEquals(buildInfoProperties.getProperty(ENV_POPO_KEY), \"buildname\", \"popo property does not match\");\n assertEquals(buildInfoProperties.getProperty(ENV_MOMO_KEY), \"1\", \"momo number property does not match\");\n assertEquals(buildInfoProperties.getProperty(\"koko\"), \"parent\", \"koko parent name property does not match\");\n assertEquals(buildInfoProperties.getProperty(\"gogo\"), \"2\", \"gogo parent number property does not match\");\n\n propsFile.delete();\n System.clearProperty(BuildInfoConfigProperties.PROP_PROPS_FILE);\n System.clearProperty(kokoKey);\n System.clearProperty(gogoKey);\n }", "title": "" }, { "docid": "f0ec3f13415668f2c39a0e752d2e4fe2", "score": "0.64323986", "text": "private void createDefaultSettings() throws IOException {\n PolarisProperties prop = new PolarisProperties();\n prop.setProperty(\"host\", \"127.0.0.1\");\n prop.setProperty(\"databaseName\", \"iris_bulacan_dost3\");\n prop.setProperty(\"databasePort\", \"3306\");\n prop.setProperty(\"databaseUser\", \"iris_db\");\n prop.setProperty(\"databasePass\", \"123456\");\n //\n prop.setProperty(\"ftpUser\", \"iris_ftp\");\n prop.setProperty(\"ftpPass\", \"123456\");\n prop.setProperty(\"ftpPort\", \"21\");\n //\n prop.setProperty(\"terminalUser\", \"IRIS3000/SYS\");\n //\n prop.write(new File(\"config.prop\"));\n\n }", "title": "" }, { "docid": "8562ab65ce30b1769287c503cc40cd7c", "score": "0.6431641", "text": "@org.junit.Test\r\n\tpublic void createProperty() {\r\n\t\tString expected = \"Property \\\"CanSpawn1\\\" \\\"SpawnDefs\\\\City_03_01\\\\ExampleDef.spawndef\\\" 0\";\r\n\t\tProperty p = new Property(expected);\r\n\t\tassertEquals(expected, p.toString());\r\n\t}", "title": "" }, { "docid": "ac9669b7c7d6cbc3fcda0e4f347d4dac", "score": "0.6424077", "text": "private File getPropertiesFile() {\n String str = FilenameUtils.concat(System.getProperty(\"user.home\"),\n \".rabbit.properties\");\n return new File(str);\n }", "title": "" }, { "docid": "be28db93274c9d30938396ba7ab3f224", "score": "0.6398719", "text": "public static void saveProperties( String filename ) {\r\n\t\tif ( properties == null ) loadProperties();\r\n\t\ttry {\r\n\t\t\tjava.io.FileOutputStream fout = new java.io.FileOutputStream( filename );\r\n\t\t\t// add a comment line to properties file\r\n\t\t\tproperties.store(fout, \r\n\t\t\t\t\t\"properties saved on \"+ java.util.Calendar.getInstance().toString() );\r\n\t\t\tfout.close();\r\n\t\t} catch ( java.io.IOException ex ) { \r\n\t\t\tlogger.log(Level.SEVERE, \"error saving properties to \" + filename, ex );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "767ce607ede46b1c6c490667d17056e3", "score": "0.6376071", "text": "public void save(){\n FileOutputStream propertiesFile;\n try {\n propertiesFile = new FileOutputStream(configPath);\n properties.store(propertiesFile, null);\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "1990db8dc0698317bbd15171ef80abe8", "score": "0.633831", "text": "private static void saveProperties() throws IOException\n\t\t{\n\t\tFileOutputStream fos = new FileOutputStream(FILE_PROPERTIES);\n\t\tBufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\tProperties propertie = new Properties();\n\n\t\tpropertie.setProperty(ADRESSE_IP, \"127.0.0.1\");\n\t\tpropertie.setProperty(LOCATION_NAME, \"Neuchâtel\");\n\t\tpropertie.setProperty(LATITUDE, \"6.45\");\n\t\tpropertie.setProperty(LONGITUDE, \"45.666\");\n\t\tpropertie.store(bos, STORE_NAME);\n\n\t\tbos.close();\n\t\tfos.close();\n\t\t}", "title": "" }, { "docid": "28845b9251ea373b604595bd06ce114b", "score": "0.6326804", "text": "@Before\r\n\tpublic void beforeTest() {\n\r\n\t\ttry {\r\n\t\t\t// prop.store(new FileOutputStream(PROP_PATH), \"Testing\r\n\t\t\t// properties\");\r\n\r\n\t\t\t// or use the already stored stuff\r\n\t\t\toldProps.store(new FileOutputStream(PROP_PATH), \"\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tfail(\"Could not set up GitHub properties, can't execute tests.\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "24df20ade880bcb144d2be3918e1e66f", "score": "0.631124", "text": "public void testCreatePropertiesFile() {\r\n\t\tString sMultilineVarOriginal = FileUtils.NEWLINE\r\n\t\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t\t+ \"this is a bit of text on a new line...\" + FileUtils.NEWLINE\r\n\t\t\t+ \"\" + FileUtils.NEWLINE;\r\n\t\tString sMultilineVarOnSingleLine = \"multiline var on one line...\";\r\n\t\tString sMultilineVarOnSingleLineVerySpaced = \"multiline var on one lineXXX...\";\r\n\t\tString sMultilineVarOnSingleLineAfterSpace = \"multiline var on one line...\";\r\n\t\tString sFileContent = FileUtils.NEWLINE\r\n\t\t+ \"time_now=\" + sTimeNow + FileUtils.NEWLINE\r\n\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t+ \"# This is a comment in the middle...\"\r\n\t\t+ \"int_var=12345 # This has comments after it.\" + FileUtils.NEWLINE\r\n\t\t+ \"\"\r\n\t\t+ \"multi_line_var={{{\" + sMultilineVarOriginal + \"}}}\"\r\n\t\t+ \"\"\r\n\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t+ \"multi_line_single_var={{{\" + sMultilineVarOnSingleLine + \"}}}\"\r\n\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t+ \"multi_line_single_spaced_var = {{{\" + sMultilineVarOnSingleLine + \"}}}\"\r\n\t\t+ \"\" + FileUtils.NEWLINE\r\n\t\t+ \" multi_line_single_very_spaced_var = {{{\" + sMultilineVarOnSingleLine + \"}}}\"\r\n\t\t+ \"\";\r\n\t\tfu.setFileContent(sFullFilePath, sFileContent);\r\n\t\tassertTrue(\"Does it exist?\", fu.exists(sFullFilePath));\r\n\r\n\r\n\t\t// Open the file and convert to a var.\r\n\t\tPropertiesFile pf = pfu.instanciatePropertiesFile(sFullFilePath);\r\n\t\tpf.setCommentMarker(\"#\");\r\n\t\tpf.setComments(new String[]{\"Test file\", \"Using single and multi-lines.\"});\r\n\t\tassertNotNull(\"Get the file back.\", pf);\r\n\r\n\t\t// Get a single-line-var\r\n\t\tString sTimeNowFromFile = pf.getVar(\"time_now\");\r\n\t\tassertEquals(\"time_equals back from prop file.\", sTimeNow, sTimeNowFromFile);\r\n\r\n\t\t// Get a multi-line-var\r\n\t\tString sFormattedStuff = pf.getVar(\"multi_line_var\");\r\n\t\tpf.setComment(\"multi_line_var\", \"This is very spacy!!!\");\r\n\t\tassertEquals(\"multi_line_var back from prop file.\", sMultilineVarOriginal, sFormattedStuff);\r\n\r\n\t\t// Get a multi-line-on-single-linevar\r\n\t\tString sMutliSingleStuff = pf.getVar(\"multi_line_single_var\");\r\n\t\tassertEquals(\"multi_line_var back from prop file.\", sMultilineVarOnSingleLine, sMutliSingleStuff);\r\n\r\n\t\t// Get a multi-line-on-single-linevar with spaces\r\n\t\tString sMutliSingleStuffWithSpace = pf.getVar(\"multi_line_single_spaced_var\");\r\n\t\tassertEquals(\"multi_line_var back from prop file.\", sMultilineVarOnSingleLineAfterSpace, sMutliSingleStuffWithSpace);\r\n\r\n\t\t// Get a multi-line-on-single-linevar with spaces\r\n\t\tString sMutliSingleStuffWithVerySpace = pf.getVar(\"multi_line_single_very_spaced_var\");\r\n\t\tpf.setComment(\"multi_line_single_very_spaced_var\", \"This is very spacy!!!\");\r\n\t\tassertEquals(\"multi_line_var back from prop file.\", sMultilineVarOnSingleLineAfterSpace, sMutliSingleStuffWithVerySpace);\r\n\r\n\t\tSystem.out.println(\"TestPropertiesFileUtils\" + pf.toString());\r\n\r\n\t\t// Save to the file automagically, and retest.\r\n\t\t//pfu.instanciatePropertiesFile(sFullFilePath);\r\n\t\tpfu.save(pf);\r\n\r\n\t\tsTimeNowFromFile = pf.getVar(\"time_now\");\r\n\t\tassertEquals(\"time_equals back from prop file.\", sTimeNow, sTimeNowFromFile);\r\n\r\n\r\n\t\t// Get a multi-line-var\r\n\t\tString sFormattedStuffSecondRun = pf.getVar(\"multi_line_var\");\r\n\t\tassertEquals(\"multi_line_var back from prop file.\", sMultilineVarOriginal, sFormattedStuffSecondRun);\r\n\t}", "title": "" }, { "docid": "c72d0531f6db4b09a08f15cab45426f3", "score": "0.63080794", "text": "void writeProperties(java.util.Properties p) {\n // better to version settings since initial version as advocated at\n // http://wiki.apidesign.org/wiki/PropertyFiles\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "title": "" }, { "docid": "c72d0531f6db4b09a08f15cab45426f3", "score": "0.63080794", "text": "void writeProperties(java.util.Properties p) {\n // better to version settings since initial version as advocated at\n // http://wiki.apidesign.org/wiki/PropertyFiles\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "title": "" }, { "docid": "7ee6aa82b142309f84c0171f9ca999a1", "score": "0.6292131", "text": "private void saveProperties () { \r\n try {\r\n FileOutputStream out = new FileOutputStream(SETTINGS_FILE);\r\n props.store(out,SETTINGS_HEAD);\r\n out.close();\r\n } \r\n catch (IOException e) {\r\n }\r\n }", "title": "" }, { "docid": "9b2290691b7609a6afc90b1b85e6b7c6", "score": "0.62840575", "text": "public void saveProperties() {\n \tFileOutputStream out = null;\n \ttry {\n \t\tout = new FileOutputStream(\n \t\t\t\tgetHomeDirectory() + File.separator + getConfigName());\n \t\tthis.narvaroProperties.store(out, null);\n \t} catch (Exception e) {\n \t\tLOG.error(\"Failed to save properties out\", e);\n \t} finally {\n \t\tif (out != null) {\n \t\t\ttry {\n \t\t\t\tout.close();\n \t\t\t} catch (Exception e) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \t}\n \t\n }", "title": "" }, { "docid": "f6557fb43c1b0981c3d2f585ecdab4bd", "score": "0.6281737", "text": "public PropertiesFileWriter(String propertiesFileName, String name, String gameType, String description, String csvNumber, String gridShape, String edgePol, String neighborPol){\n this.myPropFileName = propertiesFileName + \".properties\";\n this.myPropFile = propertiesFileName;\n this.myName = name;\n this.myGameType = gameType;\n this.myDescription = description;\n this.fullCSVName = gameType.replaceAll(\"\\\\s+\",\"\") + \"Config\" + csvNumber + \".csv\";\n this.gridShape = gridShape.toLowerCase();\n this.edgePol = edgePol;\n this.neighborPol = neighborStringToNumber(neighborPol);\n\n prop = new Properties();\n setPropertyFileValues();\n writePropertiesFile();\n }", "title": "" }, { "docid": "b4cac0df45739cde594cde01a851e390", "score": "0.6275607", "text": "@Test(description = \"example of loading property files\")\r\n\tpublic void testProertiesFile() {\n\t\tString propertiesPath = \"config\\\\user.properties\";\r\n\t\tConfigurationLoader.getProperties(propertiesPath);\r\n\t}", "title": "" }, { "docid": "631ce3f98dedb128f3ec2f314c7e32cd", "score": "0.627224", "text": "public Properties generateProperties() throws Exception {\n Properties props = new Properties();\n props.load(this.getClass().getResourceAsStream(\"/endpoint.properties\"));\n return props;\n }", "title": "" }, { "docid": "42f25fed967a96fd24c9a301135357e0", "score": "0.62719905", "text": "public static void initializeProperties() throws IOException {\n\t\tFileInputStream iStr = new FileInputStream(\"testsettings.properties\");\n\t\ttry {\n\t\t\tproperties = new Properties();\n\t\t\tproperties.load(iStr);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t} finally {\n\t\t\tiStr.close();\n\t\t}\n\t}", "title": "" }, { "docid": "b7c9532212faf120b4b442a3e919c854", "score": "0.6236966", "text": "private void setProperties() throws FileNotFoundException, IOException {\r\n\t\tcontrollerProperties = new Properties();\r\n\t\tmodelProperties = new Properties();\r\n\t\tviewProperties = new Properties();\r\n\t\t\r\n\t\tString controllerPropLocation = System.getProperty(\"user.dir\") + \"\\\\rsrc\\\\seps2014\\\\\"\r\n\t\t\t\t+ \"mosergolser\\\\controller\\\\controller.properties\";\r\n\t\tString modelPropLocation = System.getProperty(\"user.dir\") + \"\\\\rsrc\\\\seps2014\\\\\"\r\n\t\t\t\t+ \"mosergolser\\\\model\\\\model.properties\";\r\n\t\tString viewPropLocation = System.getProperty(\"user.dir\") + \"\\\\rsrc\\\\seps2014\\\\\"\r\n\t\t\t\t+ \"mosergolser\\\\view\\\\view.properties\";\r\n\t\t\r\n\t\tcontrollerProperties.load(new FileInputStream(new File(controllerPropLocation)));\r\n\t\tmodelProperties.load(new FileInputStream(new File(modelPropLocation)));\r\n\t\tviewProperties.load(new FileInputStream(new File(viewPropLocation)));\r\n\t}", "title": "" }, { "docid": "d2fee9efc3da6ac91cc68ec03731b15a", "score": "0.6195638", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "title": "" }, { "docid": "027bf50fd1592bce983a0b203c47cbd6", "score": "0.6193941", "text": "@Test\r\n\tpublic void test_property() throws FileNotFoundException, IOException \r\n\t{\n\t\tProperties p=new Properties();\r\n\t\t\r\n\t\t//specify the path of the properties file\r\n\t\tp.load(new FileInputStream(\"./Demo1.properties\"));\r\n\t\t\r\n\t\t//specify the Key of the value\r\n\t\tString UNvalue = p.getProperty(\"un\");\r\n\t\tSystem.out.println(UNvalue);\t\r\n\t\t\r\n\t\tString PWDvalue = p.getProperty(\"pwd\");\r\n\t\tSystem.out.println(PWDvalue);\t\t\r\n\t}", "title": "" }, { "docid": "3febe04676b136320755556da6bcdeae", "score": "0.61457366", "text": "void writeProperties(Map<String, String> properties) throws Exception;", "title": "" }, { "docid": "57e8e68a3cd6fa282b0844177a58135c", "score": "0.6135052", "text": "public static File getPropertiesFile() { return _propertiesFile; }", "title": "" }, { "docid": "65a284e8ff57e9dacfa80eaad7721f62", "score": "0.6120961", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\r\n // TODO store your settings\r\n }", "title": "" }, { "docid": "65a284e8ff57e9dacfa80eaad7721f62", "score": "0.6120961", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\r\n // TODO store your settings\r\n }", "title": "" }, { "docid": "65a284e8ff57e9dacfa80eaad7721f62", "score": "0.6120961", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\r\n // TODO store your settings\r\n }", "title": "" }, { "docid": "ee06a0f968d2bf5b82334511383c2cf7", "score": "0.61203706", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "title": "" }, { "docid": "ee06a0f968d2bf5b82334511383c2cf7", "score": "0.61203706", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "title": "" }, { "docid": "ee06a0f968d2bf5b82334511383c2cf7", "score": "0.61203706", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "title": "" }, { "docid": "ee06a0f968d2bf5b82334511383c2cf7", "score": "0.61203706", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "title": "" }, { "docid": "ee06a0f968d2bf5b82334511383c2cf7", "score": "0.61203706", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "title": "" }, { "docid": "ee06a0f968d2bf5b82334511383c2cf7", "score": "0.61203706", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "title": "" }, { "docid": "a30006964260e1f5a0e6e11fc2e175bd", "score": "0.611619", "text": "public static void saveConfig(Properties properties, String filename)\r\n\t{\r\n\t\tcheckInstance();\r\n\t\ttry {\r\n\t\t\tFileOutputStream fos = new FileOutputStream(DIR_PATH + filename);\r\n\t\t\tproperties.storeToXML(fos, CFG_FILE_DESCRIPTION);\r\n\t\t\tLog.info(\"Succesfully wrote configuration file.\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tLog.error(\"Unable to write file \\\"\" + filename + \"\\\".\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "80af8222f41c04cf9adaaf66e1f23516", "score": "0.61121905", "text": "public void generatePropertiesFileContent(File targetFile) throws FileNotFoundException, IOException\r\n\t{\n\t\tProperties properties = new SortedProperties();\r\n\t\tproperties.setProperty(\"SocketFactory.rmiServerFactory\", \"com.servoy.j2db.server.rmi.tunnel.ServerTunnelRMISocketFactoryFactory\");\r\n\t\tproperties.setProperty(\"SocketFactory.tunnelConnectionMode\", \"http&socket\");\r\n\t\tproperties.setProperty(\"SocketFactory.compress\", \"true\");\r\n\t\tproperties.setProperty(\"java.rmi.server.hostname\", \"127.0.0.1\");\r\n\r\n\t\t// TODO ask for a keystore?\r\n\t\tproperties.setProperty(\"SocketFactory.useSSL\", \"true\");\r\n\t\tproperties.setProperty(\"SocketFactory.tunnelUseSSLForHttp\", \"false\");\r\n\t\t//{ \"SocketFactory.SSLKeystorePath\", \"\", \"The SSL keystore path on the server\", \"text\" }, //\r\n\t\t//{ \"SocketFactory.SSLKeystorePassphrase\", \"\", \"The SSL passphrase to access the keystore\", \"password\" }, //\r\n\r\n//\t\tproperties.setProperty(\"servoy.use.client.timezone\", \"true\");\r\n\r\n\t\t// TODO ask for all kinds of other stuff like branding?\r\n\t\tproperties.setProperty(\"servoy.server.start.rmi\", Boolean.toString(getStartRMI()));\r\n\t\tproperties.setProperty(\"servoy.rmiStartPort\", getStartRMIPort());\r\n\r\n\r\n\t\tif (getUserHome() != null && getUserHome().trim().length() > 0)\r\n\t\t{\r\n\t\t\tproperties.setProperty(Settings.USER_HOME, getUserHome());\r\n\t\t}\r\n\r\n\t\tif (!getLicenses().isEmpty())\r\n\t\t{\r\n\t\t\twriteLicenses(properties, getLicenses());\r\n\t\t}\r\n\r\n\t\tString maxSeqLength = Settings.getInstance().getProperty(\"ServerManager.databasesequence.maxlength\");\r\n\t\tif (maxSeqLength != null)\r\n\t\t{\r\n\t\t\tproperties.setProperty(\"ServerManager.databasesequence.maxlength\", maxSeqLength);\r\n\t\t}\r\n\t\t// store the servers\r\n\t\tSortedSet<String> selectedServerNames = getSelectedServerNames();\r\n\t\tproperties.setProperty(\"ServerManager.numberOfServers\", Integer.toString(selectedServerNames.size()));\r\n\t\tint i = 0;\r\n\t\tfor (String serverName : selectedServerNames)\r\n\t\t{\r\n\t\t\tServerConfiguration sc = getServerConfiguration(serverName);\r\n\r\n\t\t\tproperties.put(\"server.\" + i + \".serverName\", sc.getName());\r\n\t\t\tproperties.put(\"server.\" + i + \".userName\", sc.getUserName());\r\n\t\t\tString password = sc.getPassword();\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tpassword = IWarExportModel.enc_prefix + SecuritySupport.encrypt(Settings.getInstance(), password != null ? password : \"\");\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tServoyLog.logError(\"Could not encrypt password for sever \" + sc.getName(), e);\r\n\t\t\t}\r\n\t\t\tproperties.put(\"server.\" + i + \".password\", password);\r\n\t\t\tproperties.put(\"server.\" + i + \".URL\", sc.getServerUrl());\r\n//\t\t\tMap<String, String> connectionProperties = sc.getConnectionProperties();\r\n//\t\t\tif (connectionProperties == null)\r\n//\t\t\t{\r\n//\t\t\t\tSettings.removePrefixedProperties(properties, \"server.\" + i + \".property.\");\r\n//\t\t\t}\r\n//\t\t\telse\r\n//\t\t\t{\r\n//\t\t\t\tfor (Entry<String, String> entry : connectionProperties.entrySet())\r\n//\t\t\t\t{\r\n//\t\t\t\t\tproperties.put(\"server.\" + i + \".property.\" + entry.getKey(), entry.getValue());\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\tproperties.put(\"server.\" + i + \".driver\", sc.getDriver());\r\n\t\t\tproperties.put(\"server.\" + i + \".skipSysTables\", \"\" + sc.isSkipSysTables());\r\n\t\t\tproperties.put(\"server.\" + i + \".queryProcedures\", \"\" + sc.isQueryProcedures());\r\n\t\t\tproperties.put(\"server.\" + i + \".clientOnlyConnections\", \"\" + sc.isClientOnlyConnections());\r\n\t\t\tproperties.put(\"server.\" + i + \".prefixTables\", \"\" + sc.isPrefixTables());\r\n\t\t\tString catalog = sc.getCatalog();\r\n\t\t\tif (catalog == null)\r\n\t\t\t{\r\n\t\t\t\tcatalog = \"<none>\";\r\n\t\t\t}\r\n\t\t\telse if (catalog.trim().length() == 0)\r\n\t\t\t{\r\n\t\t\t\tcatalog = \"<empty>\";\r\n\t\t\t}\r\n\t\t\tproperties.put(\"server.\" + i + \".catalog\", catalog);\r\n\t\t\tString schema = sc.getSchema();\r\n\t\t\tif (schema == null)\r\n\t\t\t{\r\n\t\t\t\tschema = \"<none>\";\r\n\t\t\t}\r\n\t\t\telse if (schema.trim().length() == 0)\r\n\t\t\t{\r\n\t\t\t\tschema = \"<empty>\";\r\n\t\t\t}\r\n\t\t\tproperties.put(\"server.\" + i + \".schema\", schema);\r\n\t\t\tproperties.put(\"server.\" + i + \".maxConnectionsActive\", String.valueOf(sc.getMaxActive()));\r\n\t\t\tproperties.put(\"server.\" + i + \".maxConnectionsIdle\", String.valueOf(sc.getMaxIdle()));\r\n\t\t\tproperties.put(\"server.\" + i + \".maxPreparedStatementsIdle\", String.valueOf(sc.getMaxPreparedStatementsIdle()));\r\n\t\t\tproperties.put(\"server.\" + i + \".connectionValidationType\", String.valueOf(sc.getConnectionValidationType()));\r\n\t\t\tif (sc.getValidationQuery() != null)\r\n\t\t\t{\r\n\t\t\t\tproperties.put(\"server.\" + i + \".validationQuery\", sc.getValidationQuery());\r\n\t\t\t}\r\n\t\t\tif (sc.getDataModelCloneFrom() != null && !\"\".equals(sc.getDataModelCloneFrom()))\r\n\t\t\t{\r\n\t\t\t\tproperties.put(\"server.\" + i + \".dataModelCloneFrom\", sc.getDataModelCloneFrom());\r\n\t\t\t}\r\n\t\t\tproperties.put(\"server.\" + i + \".enabled\", Boolean.toString(true));\r\n//\t\t\tif (sc.getDialectClass() != null)\r\n//\t\t\t{\r\n//\t\t\t\tproperties.put(\"server.\" + i + \".dialect\", sc.getDialectClass());\r\n//\t\t\t}\r\n//\t\t\telse\r\n//\t\t\t{\r\n//\t\t\t\tproperties.remove(\"server.\" + i + \".dialect\");\r\n//\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tFileOutputStream fos = new FileOutputStream(targetFile);\r\n\t\tproperties.store(fos, \"\");\r\n\t}", "title": "" }, { "docid": "430f36748a8d3e55a2d47f1a4e9fb7e0", "score": "0.6100126", "text": "public void getBuildInfoProperties() throws IOException {\n File propsFile = new File(\"tempPropFile\");\n propsFile.createNewFile();\n Properties props = new Properties();\n props.put(POPO_KEY, \"buildname\");\n props.put(MOMO_KEY, \"1\");\n props.store(new FileOutputStream(propsFile), \"\");\n\n System.setProperty(BuildInfoConfigProperties.PROP_PROPS_FILE, propsFile.getAbsolutePath());\n\n // Put system properties\n String kokoKey = BuildInfoProperties.BUILD_INFO_PROP_PREFIX + \"koko\";\n String gogoKey = BuildInfoProperties.BUILD_INFO_PROP_PREFIX + \"gogo\";\n System.setProperty(kokoKey, \"parent\");\n System.setProperty(gogoKey, \"2\");\n\n Properties buildInfoProperties = BuildInfoExtractorUtils.filterDynamicProperties(\n BuildInfoExtractorUtils.mergePropertiesWithSystemAndPropertyFile(new Properties()),\n BuildInfoExtractorUtils.BUILD_INFO_PROP_PREDICATE);\n\n assertEquals(buildInfoProperties.size(), 4, \"There should be 4 properties\");\n assertEquals(buildInfoProperties.getProperty(POPO_KEY), \"buildname\", \"popo property does not match\");\n assertEquals(buildInfoProperties.getProperty(MOMO_KEY), \"1\", \"momo number property does not match\");\n assertEquals(buildInfoProperties.getProperty(kokoKey), \"parent\", \"koko parent name property does not match\");\n assertEquals(buildInfoProperties.getProperty(gogoKey), \"2\", \"gogo parent number property does not match\");\n\n propsFile.delete();\n System.clearProperty(BuildInfoConfigProperties.PROP_PROPS_FILE);\n System.clearProperty(kokoKey);\n System.clearProperty(gogoKey);\n }", "title": "" }, { "docid": "e8638aeecb049d1df00026595f399e17", "score": "0.607749", "text": "private static void preparePerLocalePackageProperties() {\n final String DEL = File.separator;\n try {\n String dir = System.getProperty(\"test.classes\", \".\");\n String[] subdirs = { \"\", \"de\", \"ja_JP\" };\n for (String subdir : subdirs) {\n StringBuilder sb = new StringBuilder();\n sb.append(dir).append(DEL).append(\"test\").append(DEL).append(\"package\");\n if (subdir.length() > 0) {\n sb.append(DEL).append(subdir);\n }\n File path = new File(sb.toString());\n path.mkdirs();\n File propsfile = new File(path, \"Messages.properties\");\n OutputStream os = new FileOutputStream(propsfile);\n Properties props = new Properties();\n props.setProperty(\"data\", subdir);\n props.store(os, null);\n System.out.println(\"Created: \" + propsfile);\n os.close();\n }\n } catch (Exception e) {\n throw new RuntimeException(\"Can't set up per-locale properties\", e);\n }\n }", "title": "" }, { "docid": "ddf2d16ddb638e4a9158d1708e39ffdf", "score": "0.60742307", "text": "static File getRegistrationPropertiesFile() {\n \t\tFile frontlinesms2Directory = new File(System.getProperty(\"user.home\"), \".frontlinesms2\");\n \t\tif(!frontlinesms2Directory.exists()) frontlinesms2Directory.mkdirs();\n \t\treturn new File(frontlinesms2Directory, \"registration.properties\");\n \t}", "title": "" }, { "docid": "41ff68537823c986830f4906af7d807d", "score": "0.60630524", "text": "public TestBase() \n\t{\n\t\ttry{\n\t\tprop=new Properties();\n\t\n\t\tFileInputStream fis=new FileInputStream(\"C://Users//Amruta\\\\workspace//DemoWebShopTest//src//main//java//com//WebShop//qa//config//config.propeties\");\n\t prop.load(fis);\n\t\t}catch(Exception e)\n\t{\n\t\te.printStackTrace();\n\t}\n\t\n\t\t\t\n\t}", "title": "" }, { "docid": "296a821daddeaeb5fba206200f77295c", "score": "0.60624117", "text": "public Properties init_properties() {\n\t\tprop = new Properties();\n\t\ttry {\n\t\t\tFileInputStream input = new FileInputStream(\"/Users/yogeshdhekale/eclipse-workspace/\"\n\t\t\t\t\t+ \"PageObjModelSeleniumPractice/src/main/java/com/qa/hubspot/config/config.properties\");\n\t\t\tprop.load(input);\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}", "title": "" }, { "docid": "1a46668cf3a1613fe6e61760732a4b7e", "score": "0.60589194", "text": "public void setProperties(File properties)\n {\n this.properties = properties;\n }", "title": "" }, { "docid": "fc419c872daef101968924ed6e60f6b6", "score": "0.60550064", "text": "public void writeProperties() throws IOException {\n\t\tProperties props = new Properties();\n\t\tif (analyzerFactory != null) {\n\t\t\tprops.setProperty(PARAM_ANALYZER, analyzerFactory);\n\t\t}\n\t\tprops.setProperty(PARAM_FINGERPRINT, \"\" + getFingerprint());\n\t\tprops.setProperty(PARAM_VERSION, version);\n\t\tFileOutputStream out = new FileOutputStream(getConfigFile());\n\t\tprops.store(out, \"Lucene index: \" + getName());\n\t\tout.close();\n\t}", "title": "" }, { "docid": "b78c1ef872451f4ca2595d0dfb70ae5b", "score": "0.6050987", "text": "private static Properties getPropertiesFile(){\n Properties prop = new Properties();\n ClassLoader loader = Thread.currentThread().getContextClassLoader();\n InputStream stream = loader.getResourceAsStream(\"data.properties\");\n try {\n prop.load(stream);\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n return prop;\n }", "title": "" }, { "docid": "c31ebe71c85367644c3405f36505d824", "score": "0.6033718", "text": "private static Properties loadFile() {\n LOGGER.info(\"load PropertyFile \" + PROPERTIES_FILE_PATH);\n try {\n Properties property = new Properties();\n BufferedInputStream stream =\n new BufferedInputStream(new FileInputStream(PROPERTIES_FILE_PATH));\n property.load(stream);\n stream.close();\n return property;\n\n } catch (FileNotFoundException e) {\n /*\n * Create a properties file with default values\n */\n try {\n createPropertyFile();\n LOGGER.info(\"Properties File with default values generated\");\n\n Properties property = new Properties();\n BufferedInputStream stream =\n new BufferedInputStream(new FileInputStream(PROPERTIES_FILE_PATH));\n property.load(stream);\n stream.close();\n\n return property;\n } catch (IOException ioe) {\n LOGGER.error(\"Properties File cannot be created\", ioe);\n /*\n * Default properties file cannot created or read\n */\n return createDefaultProperty();\n }\n\n } catch (IOException e) {\n /*\n * Return default properties values\n */\n return createDefaultProperty();\n }\n }", "title": "" }, { "docid": "58b5cc8c890d1e2788ac6d8c98513819", "score": "0.6026211", "text": "static void setPropertiesFile(String fileName) {\n if (!DrJavaFileUtils.isSourceFile(fileName)) _propertiesFile = new File(fileName);\n }", "title": "" }, { "docid": "253b7834f0266da4158d15d00742c024", "score": "0.6025228", "text": "private void CreateAppSettingsFile() {\n\t\ttry{\n\t\t\tInputStream is = getClass().getClassLoader().getResourceAsStream(_pathFromappsettings+\"/appsettings.json\");\n\t\t Files.copy(is, Paths.get(_path+\"\\\\appsettings.json\"),StandardCopyOption.REPLACE_EXISTING);\n\t\t is = getClass().getClassLoader().getResourceAsStream(_pathFromappsettings+\"/appsettings.Development.json\");\n\t\t Files.copy(is, Paths.get(_path+\"\\\\appsettings.Development.json\"),StandardCopyOption.REPLACE_EXISTING);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "0aca192ac7a9535ebf57d5cf88eb2808", "score": "0.6022328", "text": "public Properties intialization_pro() {\n\t\tprop = new Properties();\n\t\ttry {\n\t\t\tFileInputStream file = new FileInputStream(\".//src/test/resources/config.properties\");\n\t\t\tprop.load(file);\n\t\t} catch (Exception e) {\n\t\t\tlogger.info(\"FileNotFoundException : file path is not correct \\n\"\n\t\t\t\t\t+ \"IOException : Exception occured while file loading.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}", "title": "" }, { "docid": "97d8b163f48835c8dba559c4cbe0e716", "score": "0.6005473", "text": "public PropertiesHandler() {\r\n properties = new Properties();\r\n File base_path = new File(BASE_PATH);\r\n File file = new File(CONFIG_PATH);\r\n \r\n if (!base_path.exists()) {\r\n base_path.mkdir();\r\n }\r\n \r\n if (file.exists()) {\r\n loadExisting();\r\n } else {\r\n loadDefault();\r\n }\r\n }", "title": "" }, { "docid": "1bb8db8ab3f8737274bd3cc65ddf05b3", "score": "0.60051817", "text": "private File createConfigFile(PermissionsStrategy strategy) throws IOException {\n File testConfigFile = new File(TEST_CONFIG_DIR + TEST_CONFIG_FILE);\n testConfigFile.createNewFile();\n FileWriter writer = new FileWriter(testConfigFile);\n writer.write(\"messages:\" + NEWLINE);\n writer.write(\" disallowed: \\\"\" + DISALLOW_TEST_MESSAGE + \"\\\"\" + NEWLINE);\n writer.write(\"craft.default: \" + strategy.getConfigString());\n writer.close();\n return testConfigFile;\n }", "title": "" }, { "docid": "744e8d4b3f8be5733d46bd4db97dbb09", "score": "0.5984792", "text": "@Test\n public void reading_from_properties_file() throws IOException {\n Properties properties=new Properties();\n //use class FileInputStream\n String path=\"Configurations.properties\";\n FileInputStream file=new FileInputStream(path);\n // we will load the file\n properties.load(file);\n //we read from the file\n System.out.println(\"properties.getProperty(\\\"browser\\\") = \" + properties.getProperty(\"browser\"));\n System.out.println(\"properties.getProperty(\\\"username\\\") = \" + properties.getProperty(\"username\"));\n //Close the file\n file.close();\n\n\n }", "title": "" }, { "docid": "b58b67f94bea4ea460eea0224c1d473d", "score": "0.59797513", "text": "void writeProperties(java.util.Properties p) {\n\t\tp.setProperty(\"version\", \"1.0\");\n\t\t// TODO store your settings\n\t}", "title": "" }, { "docid": "675400941a10a9a884f16ecfdd93ad46", "score": "0.5972114", "text": "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n int size = comboModel.getSize();\n p.setProperty(\"numItems\", Integer.toString(size));\n for (int i = 0; i < size; i++) {\n p.setProperty(\"item\" + i, (String) comboModel.getElementAt(i));\n }\n p.setProperty(\"selectedIndex\", Integer.toString(pathCombo.getSelectedIndex()));\n }", "title": "" }, { "docid": "37fc0dc605918f0a856c05ffee813279", "score": "0.5967166", "text": "public void loadPropertyFile() throws IOException {\n\t\tString filePath = \"./resources/testData/ConfigFile.properties\";\n\t\t//src = new File(System.getProperty(\"user.dir\") + File.separator+\"resources\"+ File.separator + \"testData\" + File.separator + configFileName);\n\t\tsrc = new File(filePath);\n\t\tfis = new FileInputStream(src);\n\t\tprop = new Properties();\n\t\tprop.load(fis);\n\t}", "title": "" }, { "docid": "d8ec0c466419bb81752a37edc4c8e3c7", "score": "0.5963298", "text": "protected void xmlSaveProperties(Properties props,\n OutputStream os) throws IOException {\n // create XML document\n Document doc = getDocumentBuilder().newDocument();\n Element rootElement = doc.createElement(PROPERTIES);\n \n List sorted = sortProperties(props);\n \n \n // output properties\n Iterator iten = sorted.iterator();\n while (iten.hasNext()) {\n Tuple tuple = (Tuple) iten.next();\n Element propElement = doc.createElement(PROPERTY);\n propElement.setAttribute(ATTR_NAME, tuple.key);\n propElement.setAttribute(ATTR_VALUE, tuple.value);\n rootElement.appendChild(propElement);\n }\n \n Writer wri = null;\n try {\n wri = new OutputStreamWriter(os, \"UTF8\");\n wri.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n (new DOMElementWriter()).write(rootElement, wri, 0, \"\\t\");\n wri.flush();\n } catch (IOException ioe) {\n throw new BuildException(\"Unable to write XML file\", ioe);\n } finally {\n FileUtils.close(wri);\n }\n }", "title": "" }, { "docid": "b69b659e835d03022df96c03fb61a29e", "score": "0.59602267", "text": "public void saveProp(){\n\t\ttry {\n\t\t\tcfg_out = new FileOutputStream(cfg_file);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\tSystem.out.println(\"The config file was not found!\");\n\t\t\tif(Main.getDebug()) e1.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tprop.storeToXML(cfg_out, null);\n\t\t\tcfg_out.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error while writing configurations!\");\n\t\t\tif(Main.getDebug()) e.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "1aee460aa55051eac52feac0aca147af", "score": "0.59552985", "text": "protected void setUp() throws Exception {\n properties = createProperties();\n }", "title": "" }, { "docid": "cbccd1a4c7efd7b31e5bbd6ddf3a7905", "score": "0.59525657", "text": "@Test\n\tpublic void testSaveToFile()\n\t{\n\t\tSystem.out.println(\"saveToFile\");\n\t\tString filename = \"properties.conf\";\n\t\ttry\n\t\t{\n\t\t\tOptions.saveToFile(filename);\n\t\t}\n\t\tcatch (EngineException e)\n\t\t{\n\t\t\te.printCause();\n\t\t\te.handleException();\n\t\t}\n\t}", "title": "" }, { "docid": "b80977d3c97eee356c89403f121d0922", "score": "0.592044", "text": "protected void loadProperties() {\n\t FileInputStream fin = null;\n\t\t_properties = new Properties();\n\t try {\n\t fin = new FileInputStream(fileName);\n\t _properties.load(fin);\n\t fin.close();\n\t } catch (Exception e) {\n\t \tSystem.out.println(\"Properties don't exist, will create after first save\");\n\t }\n\t}", "title": "" }, { "docid": "5c9ed5d77ce8297e284b9fcf3a55bafe", "score": "0.59153163", "text": "public static void updateConfigFile(Optional<ArrayList> vars) throws FileNotFoundException {\n\n File configFile = new File(System.getProperty(\"user.home\") + File.separator + \"Documents/PhotAppConfig/config.Properties\");\n String database = \"jdbc:sqlite:\" + (String) vars.get().get(0);\n String vidHome = (String) vars.get().get(1);\n String docHome = (String) vars.get().get(2);\n\n java.util.Properties prop = new java.util.Properties();\n OutputStream output = null;\n\n try {\n\n output = new FileOutputStream(configFile);\n //set the properties value\n prop.setProperty(\"database\", database);\n prop.setProperty(\"vidHome\", vidHome);\n prop.setProperty(\"docHome\", docHome);\n\n // save properties to project root folder\n prop.store(output, \"null\");\n\n } catch (IOException io) {\n io.printStackTrace();\n } finally {\n if (output != null) {\n try {\n output.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }", "title": "" }, { "docid": "29001ab5ca03a8e883ba2ada47dc7aba", "score": "0.59044635", "text": "public static void WriteProperties(String propertyFile, String propertyName,String value) throws IOException{\r\n\r\n\t\ttry {\r\n\r\n\t\t\tFileInputStream in = new FileInputStream(propertyFile);\r\n\t\t\tProperties props = new Properties();\r\n\t\t\tprops.load(in);\r\n\t\t\tin.close();\r\n\t\t\tprops.setProperty(propertyName, value);\r\n\t\t\tFileOutputStream fileOut = new FileOutputStream(propertyFile);\r\n\t\t\tprops.store(fileOut, null);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4f31068848454392dd34671964b0463a", "score": "0.5894039", "text": "public PropertiesFile(PropertiesFile p, String name) {\n \t\tsuper(p);\n \n \t\tsetFilename(name);\n \t}", "title": "" }, { "docid": "fe6129639e73f96a59b58fa18276d43a", "score": "0.58935714", "text": "private void writePropertyFile(Properties properties, File dir)\n throws BuildException {\n BufferedOutputStream bos = null;\n try {\n bos = new BufferedOutputStream(\n new FileOutputStream(new File(dir, linkFileName)));\n properties.store(bos, \"Symlinks from \" + dir);\n } catch (IOException ioe) {\n throw new BuildException(ioe, getLocation());\n } finally {\n FileUtils.close(bos);\n }\n }", "title": "" }, { "docid": "27c9bd3623789dbfb7e5655bf0474a63", "score": "0.5889721", "text": "@Test\n public void testGetFile() {\n assertThat(properties.getFile()).isEqualTo(file);\n }", "title": "" }, { "docid": "ab06edadb7631370b194f1f6947e6a58", "score": "0.58766514", "text": "private Map createDeploymentProperties()\n {\n final String virtualServers = getOption(VIRTUALSERVERS_OPTION);\n final String contextRoot = getContextRoot();\n final String dbVendorName = getOption(DB_VENDOR_NAME_OPTION);\n final String createTable = getOption(CREATE_TABLES_OPTION);\n final String dropCreateTable = getOption(DROP_AND_CREATE_TABLES_OPTION);\n final String uniqueTableNames = getOption(UNIQUE_TABLENAMES_OPTION);\n final String target = getOption(TARGET_OPTION); \n final String libraries = getOption(LIBRARIES_OPTION);\n final String upload = getOption(UPLOAD_OPTION);\n \n Properties props = new Properties();\n\n if (target != null) \n props.put(DeploymentProperties.TARGET, target);\n \n if(filePath != null)\n props.put(DeploymentProperties.ARCHIVE_NAME, filePath);\n\n\n if(contextRoot != null)\n props.put(DeploymentProperties.CONTEXT_ROOT, contextRoot);\n\n if(virtualServers != null)\n props.put(DeploymentProperties.VIRTUAL_SERVERS, \n virtualServers);\n\n if(dbVendorName != null)\n props.put(Constants.CMP_DB_VENDOR_NAME, dbVendorName);\n\n if(createTable != null)\n props.put(Constants.CMP_CREATE_TABLES, createTable);\n \n if(dropCreateTable != null)\n props.put(Constants.CMP_DROP_AND_CREATE_TABLES, dropCreateTable);\n\n if(uniqueTableNames != null)\n props.put(Constants.CMP_UNIQUE_TABLE_NAMES, uniqueTableNames);\n\n if(libraries != null)\n props.put(DeploymentProperties.DEPLOY_OPTION_LIBRARIES_KEY, libraries);\n\n if(upload != null)\n props.put(DeploymentProperties.UPLOAD, upload);\n\n\n //the following properties is either a required option/operand\n //or it contains a default value in the CLIDescriptors.xml\n //so do not neet to check for \"null\"\n props.put(DeploymentProperties.NAME, componentName);\n\n props.put(DeploymentProperties.VERIFY, \n getOption(VERIFY_OPTION));\n\n props.put(DeploymentProperties.PRECOMPILE_JSP, \n getOption(PRECOMPILE_JSP_OPTION));\n\n props.put(DeploymentProperties.ENABLE, \n getOption(ENABLED_OPTION));\n\t\t\n props.put(DeploymentProperties.FORCE, \n getOption(FORCE_OPTION));\n \n props.put(DeploymentProperties.AVAILABILITY_ENABLED, \n getOption(AVAILABILITY_ENABLED_OPTION));\n \n props.put(DeploymentProperties.GENERATE_RMI_STUBS, \n getOption(GENERATE_RMI_STUBS_OPTION));\n \n final String retrievePath = getOption(RETRIEVE_DIR);\n if (retrievePath != null){\n props.put(DeploymentProperties.CLIENTJARREQUESTED, \"true\");\n };\n\n return props;\n\n }", "title": "" }, { "docid": "676e3b6bc806f697d976637de5c8b319", "score": "0.5856771", "text": "public PropertyManager() {\n // Create the storage\n automailProperties = new Properties();\n\n // Set defaults\n automailProperties.setProperty(\"Number_of_Floors\", \"14\");\n automailProperties.setProperty(\"Delivery_Penalty\", \"1.1\");\n automailProperties.setProperty(\"Last_Delivery_Time\", \"300\");\n automailProperties.setProperty(\"Mail_to_Create\", \"180\");\n automailProperties.setProperty(\"Robot_Type_1\", \"weak\");\n automailProperties.setProperty(\"Robot_Type_2\", \"strong\");\n\n // Load properties from file\n try (FileReader inStream = new FileReader(\"automail.properties\")) {\n automailProperties.load(inStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "c0250e79d8706577b203b646b19b5e06", "score": "0.58542466", "text": "public Properties loadTestProperties(Class testClass) throws IOException {\r\n return loadTestProperties(testClass.getPackage().getName(), DEF_TEST_PROP_FILE );\r\n }", "title": "" }, { "docid": "83b829c848fe48c585f78236c197238f", "score": "0.585213", "text": "private Map<String, Object> createTestProperties()\n {\n Map<String, Object> props = new HashMap<String, Object>();\n props.put(\"test\", this);\n return props;\n }", "title": "" }, { "docid": "697b09ec5374f7e171aa178358d36599", "score": "0.58481276", "text": "public PropertiesFile(PropertiesFile p) {\n \t\tsuper(p);\n \t}", "title": "" }, { "docid": "74d203ee1292fe97e2e1b54cab9f47fe", "score": "0.58356327", "text": "private static void createFiles() {\n\t\tFile conf = new File(configDirectory + StoreDirName + configFileName);\n\t\tFile autojs = new File(configDirectory + StoreDirName + autoFileName);\n\t\tif(!conf.exists())\n\t\t\ttry {conf.createNewFile();} catch (IOException e) {e.printStackTrace();}\n\t\tif(!autojs.exists())\n\t\t\ttry {autojs.createNewFile();} catch (IOException e) {e.printStackTrace();}\n\t}", "title": "" }, { "docid": "b150a9336c226c72796c926b632dbf91", "score": "0.5830381", "text": "protected HashMap getDefaultPropertyFile() {\r\n \r\n Properties props = loadProperties(\"P6Test.properties\");\r\n String realdrivername = props.getProperty(\"p6realdriver\");\r\n \r\n Properties props2 = loadProperties(\"P6Test.properties\");\r\n String realdrivername2 = props2.getProperty(\"p6realdriver2\");\r\n \r\n HashMap tp = new HashMap();\r\n tp.put(\"module.log\",\"com.p6spy.engine.logging.P6LogFactory\");\r\n tp.put(\"module.outage\",\"com.p6spy.engine.outage.P6OutageFactory\");\r\n tp.put(\"realdriver\",realdrivername);\r\n tp.put(\"realdriver2\",realdrivername2);\r\n tp.put(\"filter\",\"false\");\r\n tp.put(\"include\",\"\");\r\n tp.put(\"exclude\",\"\");\r\n tp.put(\"trace\",\"true\");\r\n tp.put(\"autoflush\",\"true\");\r\n tp.put(\"logfile\",\"spy.log\");\r\n tp.put(\"append\",\"true\");\r\n tp.put(\"dateformat\",\"\");\r\n tp.put(\"includecategories\",\"\");\r\n tp.put(\"excludecategories\",\"debug,result,batch\");\r\n tp.put(\"stringmatcher\",\"\");\r\n tp.put(\"stacktrace\",\"false\");\r\n tp.put(\"stacktraceclass\",\"\");\r\n tp.put(\"reloadproperties\",\"false\");\r\n tp.put(\"reloadpropertiesinterval\",\"1\");\r\n tp.put(\"useprefix\",\"false\");\r\n tp.put(\"outagedetection\", \"true\");\r\n tp.put(\"outagedetectioninterval\", \"3\");\r\n return tp;\r\n }", "title": "" }, { "docid": "1bcce12936c3886a52a975a4c5ead4ef", "score": "0.58291787", "text": "public static void store(Properties properties, File file) throws IOException {\n\t\ttry (OutputStream out = new BufferedOutputStream(new FileOutputStream(file))) {\n\t\t\tproperties.store(out, \"Saving state\");\n\t\t}\n\t}", "title": "" }, { "docid": "854b8e5e0faa9563819b4e27ed5eea49", "score": "0.5827281", "text": "public void generate(String propertisefilePath, String outputPath, String fileName) throws IOException, FileNotFoundException, ParseException {\n\t\t\n\t\ttry (InputStream input = new FileInputStream(propertisefilePath)) \n\t\t{\n\t\t\tConfigData.properties.load(input);\n\n\t\t\tsetCommonData();\n\t\t\tsetPanelsData();\n\t\t\t\n\t\t\tGson gson = new GsonBuilder().serializeNulls().disableHtmlEscaping().create();\n\t\t\t\n\t\t\t\n\t\t\t//Check the path\n\t\t\tFile file = new File(outputPath);\n\t\t\tboolean dirCreated = file.mkdir();\n\t\t\t\n\t\t\tif(dirCreated)System.out.println(\"Creating path: \"+outputPath);\n\t\t\t\n\t\t\t\n\t\t\tWriter writer = Files.newBufferedWriter(Paths.get(outputPath+\"/\"+fileName));\n\t\t\tgson.toJson(grafana, writer);\n\t\t\twriter.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\tthrow new FileNotFoundException(\"config.properties file not found.\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "a95e9be501ed7db56a0b360191e8fc9d", "score": "0.58191407", "text": "public void setProperties(String filePath,String key,String value){ \n try { \n InputStream is = new FileInputStream(filePath); \n OutputStream os = new FileOutputStream(filePath); \n properties.load(is); \n properties.setProperty(key, value); \n properties.store(os, null); \n os.flush(); \n is.close(); \n os.close(); \n } catch (IOException e) { \n LOG.error(\"properties file stream close error\",e); \n } \n }", "title": "" }, { "docid": "afb5d6f8ab94beeb7dc8c8cd2195c106", "score": "0.5818298", "text": "public PropertiesFile(String fileName) {\n this.fileName = fileName;\n properties = new Properties();\n File file = new File(fileName);\n\n if (file.exists()) {\n load();\n } else {\n save();\n }\n }", "title": "" }, { "docid": "429267af921339925cf986bd3818562f", "score": "0.58150566", "text": "public PropertiesFile(String name) {\n \t\tsuper();\n \n \t\tsetFilename(name);\n \t}", "title": "" }, { "docid": "052897eae742e2fede92cddd452c8277", "score": "0.580993", "text": "private static Properties createDefaultProperty() {\n Properties properties = new Properties();\n\n properties.setProperty(HTTP_PORT_PROPERTY, HTTP_PORT_DEFAULT + \"\");\n properties.setProperty(LOG_LEVEL_PROPERTY, LOG_LEVEL_DEFAULT);\n properties.setProperty(WEB_FRONTEND_PROPERTY, WEB_FRONTEND_DEFAULT);\n properties.setProperty(RESOURCE_PROPERTY, RESOURCE_DEFAULT);\n properties.setProperty(SERVER_ADDRESS_PROPERTY, SERVER_ADDRESS_DEFAULT);\n properties.setProperty(GCM_API_KEY_PROPERTY, GCM_API_KEY_DEFAULT);\n properties.setProperty(HEATER_PIN_PROPERTY, HEATER_PIN_DEFAULT);\n properties.setProperty(STIRRER_PIN_PROPERTY, STIRRER_PIN_DEFAULT);\n properties.setProperty(SIGNAL_PIN_PROPERTY, SIGNAL_PIN_DEFAULT);\n properties.setProperty(MILLIS_TO_NOTIFICATION_PROPERY, MILLIS_TO_NOTIFICATION_DEFAULT + \"\");\n properties.setProperty(MILLIS_TO_REQUEST_CONFIRMATION_TIMEOUT_PROPERTY,\n MILLIS_TO_REQUEST_CONFIRMATION_TIMEOUT_DEFAULT + \"\");\n\n properties.setProperty(TEMPC_HEATUP_DELTA_PROPERTY, String.valueOf(TEMPC_HEATUP_DELTA_DEFAULT));\n properties.setProperty(HOPCK_PRENOTIF_TEMPERATURE_PROPERTY,\n String.valueOf(HOPCK_PRENOTIF_TEMPERATURE_DEFAULT));\n properties.setProperty(HOPCK_PRENOTIF_TIME_PROPERTY,\n String.valueOf(HOPCK_PRENOTIF_TIME_DEFAULT));\n properties.setProperty(HOPCK_COOKING_TEMPERATURE_PROPERTY,\n String.valueOf(HOPCK_COOKING_TEMPERATURE_DEFAULT));\n properties.setProperty(TEMPERATURE_LOGGING_TEMP_DELTA_PROPERTY,\n String.valueOf(TEMPERATURE_LOGGING_TEMP_DELTA_DEFAULT));\n properties.setProperty(TEMPERATURE_LOGGING_TIME_DELTA_PROPERTY,\n String.valueOf(TEMPERATURE_LOGGING_TIME_DELTA_DEFAULT));\n properties.setProperty(ROOM_TEMPERATURE_PROPERTY, String.valueOf(ROOM_TEMPERATURE_DEFAULT));\n properties.setProperty(TEMPERATURE_SENSOR_FILE_PROPERTY, TEMPERATURE_SENSOR_FILE_DEFAULT);\n properties.setProperty(TEMPERATURE_SENSOR_BASE_FOLDER_PROPERTY,\n TEMPERATURE_SENSOR_BASE_FOLDER_DEFAULT);\n properties.setProperty(SEND_PRENOTIFICATION_BEEP_PROPERTY, \n \t\tString.valueOf(SEND_PRENOTIFICATION_BEEP_DEFAULT));\n properties.setProperty(SEND_CONFIRMATION_REQUEST_BEEP_PROPERTY, \n \t\tString.valueOf(SEND_CONFIRMATION_REQUEST_BEEP_DEFAULT));\n\n return properties;\n }", "title": "" }, { "docid": "857fe4a2e4bce9001710b48e90a88829", "score": "0.58072674", "text": "public void saveToDisk()\n {\n if (writeNeeded)\n {\n log.info(\"Saving properties to disk\");\n writeNeeded = false;\n String serializedProperties = serializePropertiesToString();\n writeToFile(serializedProperties);\n }\n else\n {\n log.debug(\"Skipping saving properties to disc - write not needed.\");\n }\n }", "title": "" }, { "docid": "1edfcffcdd621203dc3d45b198b28f7b", "score": "0.5800686", "text": "protected Properties getTestProperties() {\r\n Properties testProperties = new Properties();\r\n testProperties.put(ProjectBrowserProperties.SENSORBASE_HOST_KEY, getSensorBaseHostName());\r\n testProperties.put(ProjectBrowserProperties.DAILYPROJECTDATA_HOST_KEY, \r\n getDailyProjectDataHostName());\r\n testProperties.put(ProjectBrowserProperties.TELEMETRY_HOST_KEY, getTelemetryHostName());\r\n return testProperties;\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "f4e5cdcad75b05b99286d2c2ff380bda", "score": "0.580033", "text": "protected void saveProperties(Hashtable allProps, OutputStream os)\n throws IOException, BuildException {\n final List keyList = new ArrayList(allProps.keySet());\n Collections.sort(keyList);\n Properties props = new Properties() {\n private static final long serialVersionUID = 5090936442309201654L;\n public Enumeration keys() {\n return CollectionUtils.asEnumeration(keyList.iterator());\n }\n public Set entrySet() {\n Set result = super.entrySet();\n if (JavaEnvUtils.isKaffe()) {\n TreeSet t = new TreeSet(new Comparator() {\n public int compare(Object o1, Object o2) {\n String key1 = (String) ((Map.Entry) o1).getKey();\n String key2 = (String) ((Map.Entry) o2).getKey();\n return key1.compareTo(key2);\n }\n });\n t.addAll(result);\n result = t;\n }\n return result;\n }\n };\n- for (int i = 0; i < keyList.size(); i++) {\n+ final int size = keyList.size();\n+ for (int i = 0; i < size; i++) {\n String name = keyList.get(i).toString();\n String value = allProps.get(name).toString();\n props.setProperty(name, value);\n }\n if (\"text\".equals(format)) {\n jdkSaveProperties(props, os, \"Ant properties\");\n } else if (\"xml\".equals(format)) {\n xmlSaveProperties(props, os);\n }\n }", "title": "" }, { "docid": "1707d01a036c935c05fdec0a0fe7ed32", "score": "0.57891583", "text": "public void writeProperties(String filePath) {\n\n\t\tOutputStreamWriter fos = null;\n\t\ttry {\n\t\t\tfos = new OutputStreamWriter(new FileOutputStream(filePath),\n\t\t\t\t\t\"UTF-8\");\n\t\t\t// props.setProperty(parameterName, parameterValue);\n\t\t\t// 以适合使用load方法加载到Properties表中的格式,将此Properties表中的属性列表(键和元素对)写入输出流\n\n\t\t\t// 加载额外的内容\n\t\t\t// String otherContent=\"\";\n\t\t\tprops.store(fos, \"\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfos.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "10c4cbf8b89dd1febb08eed60478b163", "score": "0.57880914", "text": "private void cargaProperties(){\n try {\n FileInputStream f = new FileInputStream(properties);\n Properties propTemp = new Properties();\n propTemp.load(f);\n f.close();\n prop = new HashMap(propTemp);\n } catch (Exception ex) {\n System.err.println(ManagerTrace.PilaToString(ex));\n }\n }", "title": "" }, { "docid": "36e5682b451ef1a2e2b19e787361ff66", "score": "0.578375", "text": "public static void saveSpotterConfig(IFile file, Properties properties) throws UICoreException {\n\t\tProperties general = createGeneralSpotterProperties(file.getProject());\n\t\tString projectName = file.getProject().getName();\n\t\tString output = createSpotterConfigFileString(projectName, general, properties);\n\t\tInputStream source = new ByteArrayInputStream(output.getBytes());\n\t\ttry {\n\t\t\tif (file.exists()) {\n\t\t\t\tfile.setContents(source, true, true, null);\n\t\t\t} else {\n\t\t\t\tfile.create(source, true, null);\n\t\t\t}\n\t\t} catch (CoreException e) {\n\t\t\tthrow new UICoreException(ERR_WRITE_SPOTTER_CONF, e);\n\t\t}\n\t\ttry {\n\t\t\tsource.close();\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(ERR_CLOSE_STREAM);\n\t\t}\n\t}", "title": "" }, { "docid": "d4d889820cd1a54c235fc41cbcdc4992", "score": "0.5783439", "text": "@Test\n public void reading_from_properties_file() throws IOException {\n Properties properties = new Properties();\n\n // FileInputStream: opens the file\n String path = \"configuration.properties\";\n\n //We need to pass the path of the file we want to open in JVM\n FileInputStream file = new FileInputStream(path);\n\n // We will load the file\n properties.load(file);\n\n // We read from the file\n System.out.println(\"properties.getProperty(\\\"browser\\\") = \" + properties.getProperty(\"browser\"));\n System.out.println(\"properties.getProperty(\\\"username\\\") = \" + properties.getProperty(\"username\"));\n\n // Close the file\n file.close();\n\n }", "title": "" }, { "docid": "be7d76cf7d103aa97ab4fd2d667d60b0", "score": "0.5775196", "text": "public void testVersionPropFile() throws Exception {\n String path = \"/version.prop\";\n InputStream stream = ConfigAdapterImpl.class.getResourceAsStream(path);\n Properties props = new Properties();\n props.load(stream);\n stream.close();\n String timestamp = (String) props.get(\"aura.build.timestamp\");\n String timestampFormat = (String) props.get(\"aura.build.timestamp.format\");\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(timestampFormat);\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n simpleDateFormat.parse(timestamp).getTime();\n }", "title": "" }, { "docid": "8fe74567dbbcedb6355c74dc8b641770", "score": "0.5770951", "text": "public void save() {\n\t\tproperties.setProperty(\"revision\", Integer.toString(revision));\n\t\tproperties.setProperty(\"launch_rev\", Integer.toString(launchRevision));\n\t\ttry {\n\t\t\tFileWriter out = new FileWriter(propertyFile);\n\t\t\tproperties.store(out, \"Arios client desktop properties.\");\n\t\t\tout.close();\n\t\t} catch (Throwable e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "1bc6d0363750cc10a06dc56302b5334b", "score": "0.5764416", "text": "private void createfile() {\n\t\ttry {\n\t\t\t// Creates the file to be written to\n\t\t\tFileOutputStream fileOut = context.openFileOutput(file,\n\t\t\t\t\tContext.MODE_PRIVATE);\n\t\t\tObjectOutputStream OOS = new ObjectOutputStream(fileOut);\n\t\t\t// writes the patient instance into the file.\n\t\t\tOOS.writeObject(\"Database has been initialized\");\n\t\t\tfileOut.close();\n\t\t} catch (Exception e) {\n\t\t\tLog.d(\"All\", e.getCause().toString());\n\t\t}\n\t}", "title": "" }, { "docid": "3e9c3e4248e1313f5a86f748e099cb3f", "score": "0.5762739", "text": "private void createWeb3InstanceFromProperties() throws IOException {\n \tProperties testProperties = new PropertiesReader().loadProperties(Config.PROPERTIES_FILE);\n \tthis.web3Admin = Admin.build(new HttpService(testProperties.getProperty(Config.WEB3_HOST))); \n \tthis.web3j = Web3j.build(new HttpService(testProperties.getProperty(Config.WEB3_HOST)));\n \tthis.mainAccountCredentials = Credentials.create((testProperties.getProperty(Config.MAIN_ACCOUNT_PRIVATE_KEY)));\n }", "title": "" }, { "docid": "b86fabafa3d7886fd8a36f6ffa016011", "score": "0.5751087", "text": "@Test\n public void createFiles() throws Exception {\n deleteAllFiles();\n deleteSharedPref();\n checkNoFilesExist();\n checkSharedPrefDontExist();\n\n // Create test data\n generateFiles();\n generateSharedPrefs();\n\n checkAllFilesExist();\n checkSharedPrefExist();\n }", "title": "" }, { "docid": "a534e17572d2b052cf4c77a1c42c9ab7", "score": "0.57438785", "text": "private static void initializeProps() throws IOException {\n propertyService.loadProps(\"application.properties\");\n\n MAX_SPACES = Integer.parseInt(propertyService.getProp(\"max-spaces\"));\n TICKET_START = Integer.parseInt(propertyService.getProp(\"ticket-start\"));\n DELIMITER = propertyService.getProp(\"delimiter\");\n PARK = propertyService.getProp(\"prefix.park\");\n UN_PARK = propertyService.getProp(\"prefix.un-park\");\n COMPACT = propertyService.getProp(\"prefix.compact\");\n }", "title": "" }, { "docid": "98d6c25b63363a3ac76824c740739d0f", "score": "0.57404786", "text": "private void setProperties() {\n \tmenu_properties = new Properties();\n \tinput = null;\n \ttry {\n \t\tinput = new FileInputStream(PROPERTY_FILENAME);\n \t\tmenu_properties.load(input);\n \t\ttitle = menu_properties.getProperty(TITLE_PROPERTY);\n \t\tscreen_width = Integer.parseInt(menu_properties.getProperty(WIDTH_PROPERTY));\n \t\tscreen_height = Integer.parseInt(menu_properties.getProperty(HEIGHT_PROPERTY)); \t\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (input != null) {\n \t\t\ttry {\n \t\t\t\tinput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n }", "title": "" }, { "docid": "da63275c7022b91b0269ad86c8e59b91", "score": "0.5736375", "text": "private void loadProperties() {\n\t\tpropertyFile = new File(Constants.getCachePath() + File.separator + \"arios.props\");\n\t\tif (!propertyFile.exists()) {\n\t\t\tLauncher.getLauncher().getFrame().updateMessage(\"Properties file does not exist\");\n\t\t\tLauncher.getLauncher().getFrame().updatePercentage(100);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tFileReader reader = new FileReader(propertyFile);\n\t\t\tproperties.load(reader);\n\t\t\treader.close();\n\t\t} catch (Throwable e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tLauncher.getLauncher().getFrame().updatePercentage(100);\n\t\trevision = Integer.parseInt(properties.getProperty(\"revision\", \"-1\"));\n\t\tlaunchRevision = Integer.parseInt(properties.getProperty(\"launch_rev\", \"-1\"));\n\t\tSystem.out.println(\"[Launcher]: Loaded properties: revision=\" + revision + \", launchRevision=\" + launchRevision + \", revisionArgument=\" + revisionArgument + \", launchRevisionArgument=\" + launchRevArgument + \".\");\n\t}", "title": "" }, { "docid": "7d7d4f06c4a975f65412dba7ab2883b9", "score": "0.57354784", "text": "public static void saveConfig(Properties properties)\r\n\t{\r\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\r\n\t\tsaveConfig(properties, DIR_PATH + timeStamp + \".xml\");\r\n\t}", "title": "" }, { "docid": "60ff352de39eb88f7e973cc6b972532d", "score": "0.57316846", "text": "@Test\n public void testGetPassword() throws IOException {\n String passwd=\"passwd\";\n toFile.append(PropertiesSunnyBoyConfigResolver.PASS_PROP+\"=\"+passwd).close();\n \n PropertiesSunnyBoyConfigResolver sut= new PropertiesSunnyBoyConfigResolver(FILENAME);\n \n assertEquals(passwd,sut.getPassword());\n }", "title": "" } ]
b140c60234f144c0da837b5c119d36c7
int32 result = 3;
[ { "docid": "10bcf4df3ffbe384428784b2a13ed490", "score": "0.5877753", "text": "int getResult();", "title": "" } ]
[ { "docid": "615041a726cfdfd1a8cffb8476f96a8e", "score": "0.7653144", "text": "int getInt32();", "title": "" }, { "docid": "a17f980104e206905ec67ea814ae97bf", "score": "0.72096044", "text": "int getIntResult();", "title": "" }, { "docid": "3a458532bca1f7c784f5dd661e6d2c18", "score": "0.66051185", "text": "public int getInt32() {\n if (typeCase_ == 23) {\n return (java.lang.Integer) type_;\n }\n return 0;\n }", "title": "" }, { "docid": "4c6fa0e53cf43f1afbaa22cdd6b4964a", "score": "0.656035", "text": "@java.lang.Override\n public int getInt32() {\n if (typeCase_ == 23) {\n return (java.lang.Integer) type_;\n }\n return 0;\n }", "title": "" }, { "docid": "3a8a13ddb6d81949cc569d77af4aa079", "score": "0.6534669", "text": "int getInt();", "title": "" }, { "docid": "855bf35002eb5984094aa95dfdf6e118", "score": "0.6417739", "text": "Integer createInteger();", "title": "" }, { "docid": "855bf35002eb5984094aa95dfdf6e118", "score": "0.6417739", "text": "Integer createInteger();", "title": "" }, { "docid": "9ce014515089c3039bb4f5845a1d815c", "score": "0.63688487", "text": "int toInt();", "title": "" }, { "docid": "7e5ef864bdfaa7f8f45622e6f36141c2", "score": "0.636309", "text": "long getIntValue();", "title": "" }, { "docid": "90e431f6c208d3acebfd4c0a0a50c3c5", "score": "0.6312228", "text": "int getInt01();", "title": "" }, { "docid": "90e431f6c208d3acebfd4c0a0a50c3c5", "score": "0.6312228", "text": "int getInt01();", "title": "" }, { "docid": "1519928d8123eaad8ed4f4a1b7935b8e", "score": "0.6298466", "text": "Integer getValue();", "title": "" }, { "docid": "e5f58df9c6e540a4cb44042b1a4f42f2", "score": "0.6268318", "text": "public abstract int toInteger();", "title": "" }, { "docid": "3133d4ae690d32e83a285422e077e548", "score": "0.6256822", "text": "public abstract Integer r();", "title": "" }, { "docid": "da11aed78c3f6d2f8e4b5ad61771a01f", "score": "0.62545323", "text": "int getInt32Data(int index);", "title": "" }, { "docid": "2ac370c375af9095be346daa9058c06e", "score": "0.623246", "text": "int getInt32(int byteOffset, boolean littleEndian);", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.62108606", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.62108606", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.62108606", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.62108606", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.62108606", "text": "int getResultValue();", "title": "" }, { "docid": "fbef5b85b2c9545b839020e32458b485", "score": "0.62108606", "text": "int getResultValue();", "title": "" }, { "docid": "e4651678bc81c64b31bb3dda08d61f59", "score": "0.6206321", "text": "int getIntValue();", "title": "" }, { "docid": "e4651678bc81c64b31bb3dda08d61f59", "score": "0.6206321", "text": "int getIntValue();", "title": "" }, { "docid": "e4651678bc81c64b31bb3dda08d61f59", "score": "0.6206321", "text": "int getIntValue();", "title": "" }, { "docid": "b1d9e0747ff055e53431f6bf0f7f099f", "score": "0.6189553", "text": "public int read_int32() throws IOException\n {\n byte bytes[] = new byte[4];\n bytes = read_bytes(4);\n \n return bytesToInt32(bytes,\"be\");\n }", "title": "" }, { "docid": "a8f50a33d2716d16b3b43653ca735756", "score": "0.6180749", "text": "public int getIntResult() {\n return intResult_;\n }", "title": "" }, { "docid": "5c3e437d1f82508442330c7dfacdbfec", "score": "0.6179011", "text": "@Override\n int asInteger();", "title": "" }, { "docid": "20578cf733bcc318aca286a146cd5cd4", "score": "0.612326", "text": "int value();", "title": "" }, { "docid": "20578cf733bcc318aca286a146cd5cd4", "score": "0.612326", "text": "int value();", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.60205734", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.60205734", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.60205734", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "ff9b165e7c12a6159ab47ca494419e30", "score": "0.60205734", "text": "public int getInt() { return 1; }", "title": "" }, { "docid": "cedef0d3d3400385ccf4d724b86429f3", "score": "0.6020523", "text": "public int intValue() {\n/* 195 */ return (int)sum();\n/* */ }", "title": "" }, { "docid": "8c3e132ed83b9ee0685dc5606ddf0106", "score": "0.6011445", "text": "ubii.dataStructure.Lists.Int32List getInt32List();", "title": "" }, { "docid": "c500ecd1c1aefc7d4972f578dd4e344c", "score": "0.59929276", "text": "public int getIntResult() {\n return intResult_;\n }", "title": "" }, { "docid": "0dcdb2bb28fa6d1df91a9920a13a0704", "score": "0.5961803", "text": "public int getInt();", "title": "" }, { "docid": "0dcdb2bb28fa6d1df91a9920a13a0704", "score": "0.5961803", "text": "public int getInt();", "title": "" }, { "docid": "4daf7b4c3421b606c5a82ddd003f2e72", "score": "0.5957773", "text": "Integer getR();", "title": "" }, { "docid": "3e3ba2fd310ae246be3706409d061d78", "score": "0.59484863", "text": "public interface int32 extends AbstractType {\n}", "title": "" }, { "docid": "16aca93089381eed7c52e94d5ce414f6", "score": "0.59048766", "text": "IntValue createIntValue();", "title": "" }, { "docid": "34d950086468c7d7b0c01b130d40a4c5", "score": "0.5873396", "text": "long mo2632a(int i);", "title": "" }, { "docid": "12facf2fed094363970dd9646480c86c", "score": "0.58677506", "text": "Integer getReserved3();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.58398885", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.58398885", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.58398885", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.58398885", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.58398885", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.58398885", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.58398885", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.58398885", "text": "int getValue();", "title": "" }, { "docid": "37ea453de46fcb544d868d410183005f", "score": "0.58398885", "text": "int getValue();", "title": "" }, { "docid": "37f948bbcca2dc319772075015164ac4", "score": "0.58278084", "text": "int getArithmValue();", "title": "" }, { "docid": "6fe97650e24eb75e66c7e9650febc538", "score": "0.5793786", "text": "public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "6fe97650e24eb75e66c7e9650febc538", "score": "0.5793786", "text": "public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "6fe97650e24eb75e66c7e9650febc538", "score": "0.5793786", "text": "public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "6fe97650e24eb75e66c7e9650febc538", "score": "0.5793786", "text": "public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "6fe97650e24eb75e66c7e9650febc538", "score": "0.5793786", "text": "public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "b3b48bd01fe5d6b699cb3e84507fe178", "score": "0.5788178", "text": "int getInt32DataCount();", "title": "" }, { "docid": "085dcd112a70eb5709c47a0f7ede5a2d", "score": "0.57864517", "text": "public static void main(String[] args) {\n int b=23;\n Integer integer=new Integer(b);\n\n //unwrapping\n int recoverint = integer.intValue();\n\n\n\n //Autoboxing\n int i=32;\n ArrayList<Integer> arrayList=new ArrayList();\n arrayList.add(i);\n int myitem= arrayList.get(0);\n System.out.println(myitem);\n System.out.println(integer);\n System.out.println(recoverint);\n }", "title": "" }, { "docid": "7d77629f3dfdc4ade7ab7d7302c75a39", "score": "0.5778979", "text": "public int getResult()\n {\n return result;\n }", "title": "" }, { "docid": "e85d4aecbac744898080b54a26fb4764", "score": "0.57780963", "text": "public int getResult(){\n return this.result;\n }", "title": "" }, { "docid": "662f91d0fd7eed4551a6130feef89dc0", "score": "0.5765289", "text": "int getUintValue();", "title": "" }, { "docid": "a4c0734be48bd59dcf5f08fcc01e1671", "score": "0.57635", "text": "public native int getValue();", "title": "" }, { "docid": "8be4420380c89c46255d1f50c6fdc4cf", "score": "0.5752523", "text": "public int intValue() {\n return type;\n }", "title": "" }, { "docid": "1d4c7340d50b646cfc0cdeeb62103dad", "score": "0.57374924", "text": "@Impure\n public void encodeInteger32(int value) throws EXCEPTION;", "title": "" }, { "docid": "e3241d12806d6c9d4bf78d79de5c4791", "score": "0.57241356", "text": "IntegerType createIntegerType();", "title": "" }, { "docid": "e3241d12806d6c9d4bf78d79de5c4791", "score": "0.57241356", "text": "IntegerType createIntegerType();", "title": "" }, { "docid": "316a20d259a8d039b29d8049b25bade6", "score": "0.57207996", "text": "java.math.BigInteger getInt();", "title": "" }, { "docid": "0bcbd57e78ce4ec58badc55107c1f0f1", "score": "0.571789", "text": "public int intValue() {\n/* 169 */ return this.value;\n/* */ }", "title": "" }, { "docid": "043936a455759615e2a32db0f5480c55", "score": "0.5715683", "text": "public short getResult() {\n\t\treturn result;\n\t}", "title": "" }, { "docid": "837c14477ef937c1764aa15155ec86da", "score": "0.57104546", "text": "private static int force32(int value) {\n return value & 0xffffffff;\n }", "title": "" }, { "docid": "fce950cfeb537d5724e715b64521c794", "score": "0.5697581", "text": "public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "fce950cfeb537d5724e715b64521c794", "score": "0.5697581", "text": "public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "fce950cfeb537d5724e715b64521c794", "score": "0.5697581", "text": "public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "fce950cfeb537d5724e715b64521c794", "score": "0.5697581", "text": "public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "fce950cfeb537d5724e715b64521c794", "score": "0.5697581", "text": "public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "0df8ce8197146ec183d1b1d16674b72d", "score": "0.569277", "text": "private int getResult() {\n\t\treturn result;\n\t}", "title": "" }, { "docid": "3a2aeb5e3dd3505c06dcd2ad854871c3", "score": "0.5685731", "text": "public int asInt() {\n return 0;\n }", "title": "" }, { "docid": "d05db09154d14ce278f6aeb111a717db", "score": "0.56742847", "text": "@java.lang.Override public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "cc10ac392ddf70a76d991791b0d12ae8", "score": "0.5662216", "text": "int getAsInt(int key);", "title": "" }, { "docid": "9a91be35d22464b2ce737093f3008b78", "score": "0.5656035", "text": "@WasmTextCode( \"local.get 0 \" + //\n \"i32.load offset=0 align=4 \" + //\n \"return\" )\n private static native int getIntFromMemory( int pos );", "title": "" }, { "docid": "19a93c158d61cac46983ae78b95e98e0", "score": "0.5654754", "text": "public static Integer getInteger(Object result) {\n\t\tInteger value = null;\n\t\tif (result != null) {\n\t\t\tvalue = Integer.valueOf(getString(result));\n\t\t}\n\t\treturn value;\n\t}", "title": "" }, { "docid": "847fcfc2fe1321365739126cf1304841", "score": "0.56527066", "text": "public int intValue() {\n/* 132 */ return this.value;\n/* */ }", "title": "" }, { "docid": "a08b4624066fdbf99305e3c25d0a7d92", "score": "0.5651083", "text": "private static long Int(String name) {\n int index = intGlobals.size();\n intGlobals.put(name, new Integer(index));\n return INT | index;\n }", "title": "" }, { "docid": "527b23821a2e1199815e6b0be1d2ce8f", "score": "0.5642378", "text": "long getLongIntValue();", "title": "" }, { "docid": "7caec7716c7b3dac238ddb81269890f3", "score": "0.56419307", "text": "public int getInt3() {\n return this.localInt3;\n }", "title": "" }, { "docid": "0f352f02acd15d268ca00922df019d4c", "score": "0.5634666", "text": "@Override\n int applyAsInt(long value);", "title": "" }, { "docid": "82114fbd2192f4c2cc92f54b41cfc2ee", "score": "0.56271464", "text": "@java.lang.Override public int getResultValue() {\n return result_;\n }", "title": "" }, { "docid": "d131ef304e3356a4abc523a871268d36", "score": "0.5620707", "text": "Integer getS();", "title": "" }, { "docid": "b7fc4fc93a4b7308d68cf8f3307404f2", "score": "0.5619106", "text": "int getVInt();", "title": "" }, { "docid": "0507a3d64d8adb6a581a4f7eb902b639", "score": "0.5609718", "text": "public int intValue() {\n/* 18 */ return this.value;\n/* */ }", "title": "" }, { "docid": "70f557ab26433b894c5b0d756ed379db", "score": "0.55886585", "text": "IntegerConstant createIntegerConstant();", "title": "" }, { "docid": "4af7bd79cd5c0afc59ca4ed85c10c4de", "score": "0.5576662", "text": "public abstract Integer o();", "title": "" }, { "docid": "cc24cb2bfdefaeac9c017b4c6efaf9f0", "score": "0.5567373", "text": "public final int getInt()\n {\n return intValue;\n }", "title": "" }, { "docid": "43a023a8fac042f12d03864426aa8a31", "score": "0.55589", "text": "boolean hasInt32();", "title": "" }, { "docid": "8b550cd3a7b4cf202c56dcc4b517d182", "score": "0.55314255", "text": "PrimitiveType createPrimitiveType();", "title": "" }, { "docid": "40bfc1c0bd446d04f512258ce74bc6d4", "score": "0.5517686", "text": "public int intValue() {\n/* 90 */ return this.value;\n/* */ }", "title": "" } ]
c36d524bc14f821374bda3dc6276c1d2
required double high = 5;
[ { "docid": "e8c7f30c8a51ce013e1b6f751e5d609a", "score": "0.7366647", "text": "double getHigh();", "title": "" } ]
[ { "docid": "ce49182e7afa5669715e5805c3ef3563", "score": "0.73811203", "text": "public double getHigh() {return high;}", "title": "" }, { "docid": "d45add676e033dfc34d5e78f49de2fdc", "score": "0.71506274", "text": "public double getHigh() {\n return high;\n }", "title": "" }, { "docid": "6cc97ee7fd974fab09fdb5324307ac4b", "score": "0.7119302", "text": "public void setHigh(double tmp) {\n this.high = tmp;\n }", "title": "" }, { "docid": "04082f18c944615099ee660c7091f6f1", "score": "0.6990529", "text": "public double getHigh() {\n return high;\n }", "title": "" }, { "docid": "a5ab815bd13ba7c56b4b26954c6144cf", "score": "0.6831775", "text": "public void setHigh(double value) {\n this.high = value;\n }", "title": "" }, { "docid": "92296ea8e52a655a63ba00bd9339edfa", "score": "0.68252957", "text": "public double getLow() {return low;}", "title": "" }, { "docid": "55e831b5c87804291b6e3a5a90e08f2e", "score": "0.6767177", "text": "double getLow();", "title": "" }, { "docid": "55e831b5c87804291b6e3a5a90e08f2e", "score": "0.6767177", "text": "double getLow();", "title": "" }, { "docid": "56aa74da7bfd9a4d7980b4aea15824fb", "score": "0.6749225", "text": "public void setHigh(final Double high) {\n\t\tthis.high = high;\n\t}", "title": "" }, { "docid": "6666a34422aed7d30567d7a28572b271", "score": "0.6739723", "text": "public Double getHigh() {\n\t\treturn high;\n\t}", "title": "" }, { "docid": "0a263dd3dc1ebd7225a9e5c5497786fb", "score": "0.67160124", "text": "public double getHigh() {\n return high_;\n }", "title": "" }, { "docid": "0a263dd3dc1ebd7225a9e5c5497786fb", "score": "0.67160124", "text": "public double getHigh() {\n return high_;\n }", "title": "" }, { "docid": "221701906f0f45d8f0024400ca9dd126", "score": "0.6596949", "text": "public double getHigh() {\n return high_;\n }", "title": "" }, { "docid": "221701906f0f45d8f0024400ca9dd126", "score": "0.6596949", "text": "public double getHigh() {\n return high_;\n }", "title": "" }, { "docid": "4d9a8640e683e71e8545db1fc4408f95", "score": "0.6444684", "text": "public double getLow() {\n return low;\n }", "title": "" }, { "docid": "05fd019b62a626968d17f2df046c9359", "score": "0.63532865", "text": "public void setLow(double tmp) {\n this.low = tmp;\n }", "title": "" }, { "docid": "1e3bcaa44a743a426e949c21e1e5ed6a", "score": "0.62866896", "text": "public void setLow(double value) {\n this.low = value;\n }", "title": "" }, { "docid": "5fa279c30d0a0cc97a26663feeee305c", "score": "0.6265088", "text": "public double getLow() {\n return low;\n }", "title": "" }, { "docid": "e1d3f584178ce8f846522b1674439d25", "score": "0.6241797", "text": "public void setHigh(int high) {\r\n\t\thundred = 1023 - high;\r\n\t}", "title": "" }, { "docid": "60e390f58a19d1992ba99b9c8ea5132e", "score": "0.61960304", "text": "public void setHigh(String tmp) {\n this.high = Double.parseDouble(tmp);\n }", "title": "" }, { "docid": "17f82241bf89459d1b47abe4004de8c4", "score": "0.6181146", "text": "public void setHigh(java.lang.Long _high)\n {\n high = _high;\n }", "title": "" }, { "docid": "0a16cae1507df09a59e2815149d2cd21", "score": "0.61495554", "text": "public void setLow(final Double low) {\n\t\tthis.low = low;\n\t}", "title": "" }, { "docid": "3e916646db0abdf2a59e1d564f499edd", "score": "0.6106644", "text": "public double length() {return high-low;}", "title": "" }, { "docid": "6045d60295ed2a948059c3ca4a56f3c9", "score": "0.59783584", "text": "public Double getLow() {\n\t\treturn low;\n\t}", "title": "" }, { "docid": "07cc1e4f9dab5ceaf3c9327d849b0b70", "score": "0.59732455", "text": "public int getHigh() {\r\n\t\treturn 1023 - hundred;\r\n\t}", "title": "" }, { "docid": "b7d9e590ac03a1755bd58a2504a1e0fa", "score": "0.59424055", "text": "public TspUpperBound(double shared) {\n\t\tthis.shared = new Double(shared);\n\t}", "title": "" }, { "docid": "81a55ec8afe037f66a7f5aae8a39b919", "score": "0.59299946", "text": "public double getLow() {\n return low_;\n }", "title": "" }, { "docid": "81a55ec8afe037f66a7f5aae8a39b919", "score": "0.59299946", "text": "public double getLow() {\n return low_;\n }", "title": "" }, { "docid": "c542f207f63bc73efbb3286908786ab7", "score": "0.5926553", "text": "void setBottom(double value, Unit unit);", "title": "" }, { "docid": "bd593ef284fb0979fa9aea4a795a16f9", "score": "0.5921947", "text": "void setTop(double value, Unit unit);", "title": "" }, { "docid": "00d07ef19760c2c8c531838535ff1eee", "score": "0.5920602", "text": "public java.lang.Long getHigh()\n {\n return high;\n }", "title": "" }, { "docid": "1256706de0be581bd62a1a50f9f7e7b4", "score": "0.59198946", "text": "public void setHigh(String high) {\n this.high = high;\n }", "title": "" }, { "docid": "7460ef7e8a8ced23ebc80b0beef691da", "score": "0.58984625", "text": "public abstract SwiftValue constant(double num);", "title": "" }, { "docid": "59c9cd59244012a63dec19dd2c7dd53c", "score": "0.5861886", "text": "abstract double value(double x);", "title": "" }, { "docid": "f31de58098f911830b4c24d7c5d95688", "score": "0.580849", "text": "public void setHighPrice(java.lang.Double value) {\n this.HighPrice = value;\n }", "title": "" }, { "docid": "a7cf239b3a5f4c6bd271c12b68da8fa8", "score": "0.5788489", "text": "double getUpperBound();", "title": "" }, { "docid": "34da8413c876fdc8da3b98a4b74537cb", "score": "0.5786603", "text": "int getHungerValue();", "title": "" }, { "docid": "8e9a5d6bcce9e96bc5cb740fc21f044a", "score": "0.5783546", "text": "public static double randomDouble(double low, double high) {\n\t\treturn Math.random() * (high - low) + low;\n\t}", "title": "" }, { "docid": "b5b7926bb5c66686a8f09c3f2eeac121", "score": "0.57822925", "text": "private double less(double d) {\n\treturn 0;\n}", "title": "" }, { "docid": "5e7b4bb1a27255acf862e5e6878400d2", "score": "0.5757306", "text": "public double getLow() {\n return low_;\n }", "title": "" }, { "docid": "5e7b4bb1a27255acf862e5e6878400d2", "score": "0.5757306", "text": "public double getLow() {\n return low_;\n }", "title": "" }, { "docid": "f1a51d0672ac2d395945b2620c3bfe6d", "score": "0.57539433", "text": "public void setHighPvalue(double highPvalue){\n this.highPvalue = Math.max(Math.min(1, highPvalue), 0.0);\n }", "title": "" }, { "docid": "7efa8449a191db57c2b8b57deb0b04e9", "score": "0.57536423", "text": "private double getSenseLevelMax()\r\n {\r\n return senseLevelMax;\r\n }", "title": "" }, { "docid": "6d1259f8f2972d180c7db56b0524236f", "score": "0.5722933", "text": "public void setNumericPriority(double param){\n \n this.localNumericPriority=param;\n \n\n }", "title": "" }, { "docid": "6d1259f8f2972d180c7db56b0524236f", "score": "0.5722933", "text": "public void setNumericPriority(double param){\n \n this.localNumericPriority=param;\n \n\n }", "title": "" }, { "docid": "dcdd841adf3a629dec33208d673ee7d9", "score": "0.5713802", "text": "double maxNumber();", "title": "" }, { "docid": "73e0422b66b7dbe285016362fb7c1228", "score": "0.5705204", "text": "public static double getHigh(int[] numbers){\n double high = numbers[0];\n for (int i = 0; i < numbers.length; i++){\n if (numbers[i] > high){\n high = numbers[i];\n }\n }\n return high;\n }", "title": "" }, { "docid": "0785d31c38fada327fbc738028415720", "score": "0.5695437", "text": "public short getXMaximum() {\n\t}", "title": "" }, { "docid": "e182d02eea52ee16d9f746eb7cef8a39", "score": "0.56807876", "text": "public String getHigh() { // yeah man!\n return high;\n }", "title": "" }, { "docid": "c157f629d6d3f8092179e948830efa31", "score": "0.5679602", "text": "void pushDouble(double value);", "title": "" }, { "docid": "a2bde5e5c3431fe80bfb26929ffe0ef6", "score": "0.56762147", "text": "public double readDoubleLessThan(double upperBound) {\r\n\t\tdouble s;\r\n\t\tdo {\r\n\t\t\ts = readDouble();\r\n\t\t} while (s >= upperBound);\r\n\t\treturn s;\r\n\t}", "title": "" }, { "docid": "067586cb56569f0a9c62c9df7f247271", "score": "0.56632817", "text": "private float getLatestOvers()\n {\n // return 90 for simplicity \n return (float)10.2;\n }", "title": "" }, { "docid": "b9782ee8c7c19f10e3d2df8b8540761e", "score": "0.56490856", "text": "double getMax();", "title": "" }, { "docid": "394e5ad9c3f04f196780de2f6b8b66d1", "score": "0.56476223", "text": "public void setLow(int low) {\n this.low = low;\n }", "title": "" }, { "docid": "54a7d44b3869ab4d1082f8a4ec0b07c7", "score": "0.56441146", "text": "protected double getHiPrice()\n {\n return hiPrice;\n }", "title": "" }, { "docid": "d6c01bd7a450c19d988fdacbc0f14e93", "score": "0.5642555", "text": "public double getNumericPriority(){\n return localNumericPriority;\n }", "title": "" }, { "docid": "d6c01bd7a450c19d988fdacbc0f14e93", "score": "0.5642555", "text": "public double getNumericPriority(){\n return localNumericPriority;\n }", "title": "" }, { "docid": "b568a162d3cc8a2e5615862d90e34308", "score": "0.5641695", "text": "public double getUpperLimitX()\n {\n return myUpperLimitX;\n }", "title": "" }, { "docid": "534f61285ca3a720108cc528cfcf797a", "score": "0.5627196", "text": "double getDefaultValue();", "title": "" }, { "docid": "7d2c4bccf368c17a3507e61f3c0aeb07", "score": "0.5625668", "text": "int getMinimumImportanceValue();", "title": "" }, { "docid": "f0e64f5af1ad1eecd58f4b571a7701b9", "score": "0.5624733", "text": "double getLowerBound();", "title": "" }, { "docid": "04216e9c03a8b6fcce1e80800223d326", "score": "0.56136376", "text": "public static void displayHigh(){\n\t\tdouble max =0 , temp; //variables used to hold values\n\t\tArrayStack<Double> tempStack = new ArrayStack<>();\t\n\t\tfor (double i = 0; i < 1; i++){\n\t\t\ttemp = highStack.pop(); //Temporary stack holds the last element of stack\n\t\t\tif (temp > max){ \t//Top of stack is then compared to \"max\" value \n\t\t\t\tmax = temp;\t\t\t// If larger than value, the max becomes equivalent to the temporary value\n\t\t\t\tSystem.out.println(\"The highest stock price is : $\" +max+ \" at the \" + stock1.getTime()+ \"th hour of the day \");\n\t\t\t\t//Prints out highest priced stock\n\t\t\t}\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t}\n\t}", "title": "" }, { "docid": "3d070992866fdbd3b54f20704e550f31", "score": "0.5606973", "text": "public short getYMaximum() {\n\t}", "title": "" }, { "docid": "786afb4bcf291b819e69222d29d18afe", "score": "0.5602703", "text": "private double getStalkLevelMax()\r\n {\r\n return stalkLevelMax;\r\n }", "title": "" }, { "docid": "b18d01921c26c935fe67f71de59b703e", "score": "0.56012106", "text": "datayes.mdl.mdl_swg_pbmsg.MDLSWGMsg.float_3 getHighPrice();", "title": "" }, { "docid": "bde233c805b32fdecb70e214087ae5dd", "score": "0.55929124", "text": "double getUpperLimit(int dataIndex);", "title": "" }, { "docid": "995800384144f32a164c645a94d22f42", "score": "0.5589395", "text": "double getMin();", "title": "" }, { "docid": "0a5f88b5f99a379e30d99aec44c5c921", "score": "0.5572516", "text": "public double getHighTemp() {\r\n return highTemp;\r\n }", "title": "" }, { "docid": "c006fff59880e806f1a50526e56b9e21", "score": "0.5561647", "text": "public Builder setHigh(double value) {\n bitField0_ |= 0x00000010;\n high_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4b9471b7724d1b413b1baf7b7be114a1", "score": "0.5536292", "text": "public Builder setHigh(double value) {\n \n high_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a12c07c3b29f87c29188d11b5b860204", "score": "0.5535606", "text": "@Test\n public void testGetIntegralUpperLimit() {\n System.out.println(\"getIntegralUpperLimit\");\n IntegralInfo instance = new IntegralInfo(9, 10.0, 0.0, 1.1, 0.35006);\n double expResult = 1.1;\n double result = instance.getIntegralUpperLimit();\n assertEquals(expResult, result, 0.0); \n }", "title": "" }, { "docid": "5e25b699e5c0583c7d7db7e5319ff2e8", "score": "0.5534173", "text": "public void setLow(java.lang.Long _low)\n {\n low = _low;\n }", "title": "" }, { "docid": "e0c6793e194e2d5014a053e9a360ad01", "score": "0.55285436", "text": "public short getYMinimum() {\n\t}", "title": "" }, { "docid": "e2e368d0f9e8bdfd72391ab45f1ac12c", "score": "0.5523558", "text": "public void calibrateHigh() {\r\n\t\thundred = port.readRawValue();\r\n\t}", "title": "" }, { "docid": "ddbddba3aac39bb35cf229eb22ffa9d3", "score": "0.5511358", "text": "public static void main(String[] args) {\n double y = 27.5d ;\n double x ;\n x = (7/3) * (y-11);\n\n System.out.println(\"x esittir \" + x) ;\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "08f5d9e805df35ad7a04a0093ea3d926", "score": "0.5511268", "text": "public Constant (double value){\n this.value = value;\n }", "title": "" }, { "docid": "15fc3c4fd8409fe9d6a637520c52e874", "score": "0.5505627", "text": "@Test\n public void test73() throws Throwable {\n CyclicNumberAxis cyclicNumberAxis0 = new CyclicNumberAxis(0.1, 674.0);\n cyclicNumberAxis0.setFixedDimension(2696.56);\n double double0 = cyclicNumberAxis0.getFixedDimension();\n }", "title": "" }, { "docid": "89c518bfc4dde21e4334e49fba1cf828", "score": "0.55010253", "text": "public double deficit();", "title": "" }, { "docid": "0fad185bd94def623e680759638d1cb8", "score": "0.5491719", "text": "protected abstract double initialValue();", "title": "" }, { "docid": "b32d18ee0b48ae25e2cb31135f23fa00", "score": "0.54897076", "text": "@Override\r\n\tpublic double minValue() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ade9e7245630df01dfb9fbfa146ec4a2", "score": "0.5483885", "text": "public void set_percent(double pct)\r\n{\r\n if(pct <= 0 || pct >= 1)\r\n Error.fatalErr(\"HoldOut::set_percent: percent to hold out (\" +pct +\") \"\r\n\t +\"must by between zero and one\");\r\n pctHoldOut = pct;\r\n}", "title": "" }, { "docid": "a3fb79ccf7c8bdb6e1d997e48cd633f8", "score": "0.54802626", "text": "private float getLatestOvers()\n {\n // return 90 for simplicity\n return (float)10.2;\n }", "title": "" }, { "docid": "706b1788bd8947f169e2c431ff66cb16", "score": "0.5469678", "text": "@Override\r\n\tpublic double maxValue() {\n\t\treturn 1.0;\r\n\t}", "title": "" }, { "docid": "a5185cb34f66216bf3855c4617860574", "score": "0.5467602", "text": "public void setLow(String tmp) {\n this.low = Double.parseDouble(tmp);\n }", "title": "" }, { "docid": "ecacc3e571482e732f38bc68d5970060", "score": "0.5454642", "text": "public double getUpperLimitY()\n {\n return myUpperLimitY;\n }", "title": "" }, { "docid": "acf13af1b3d0235c03a8366562095b31", "score": "0.54507464", "text": "public double getMaxValue() {\n return 0;\n }", "title": "" }, { "docid": "0afd2a5a73b897cf1dc7eca68fcd6820", "score": "0.5450355", "text": "public abstract Double cust();", "title": "" }, { "docid": "8173697d7f29b3995046c01a01a7ec5d", "score": "0.5443083", "text": "public static float getQL(double power, int knowledge) {\n/* 383 */ return Math.min(100.0F, knowledge + (100 - knowledge) * (float)power / 500.0F);\n/* */ }", "title": "" }, { "docid": "307c7991d825d2132db3824c0c41df14", "score": "0.54376566", "text": "public double getMaxValue() {\n return maxValue;\n }", "title": "" }, { "docid": "b4239d5ac3c8773d482efd87122a4aea", "score": "0.5431567", "text": "public int getHighValue() {\n\t\treturn getValue() + getExtent();\n\t}", "title": "" }, { "docid": "32c509431cc4fab2a789e1b260c75e97", "score": "0.5427766", "text": "public double midfielderLevel();", "title": "" }, { "docid": "02860f8fa204fde1ee49bd3f8b7c6c0f", "score": "0.5410173", "text": "double getHP();", "title": "" }, { "docid": "710f1b810e82700d9118e5e433fc4ee5", "score": "0.54025364", "text": "int getImportanceValue();", "title": "" }, { "docid": "61f2b5fbcc3eb33997d339f29c9a0eb3", "score": "0.5402097", "text": "public double getMinValue() {\n return minValue;\n }", "title": "" }, { "docid": "10448e3e56f2b5651099e288724cb4c2", "score": "0.5398637", "text": "public void high() {\n level = HIGH;\n System.out.println(location + \" ceiling fan is on high\");\n\n }", "title": "" }, { "docid": "0093577e669bde3e5477f4b2437cba6a", "score": "0.5386281", "text": "public double getValue(){return value;}", "title": "" }, { "docid": "fa0713396d7f14ef368ce65433986394", "score": "0.5385824", "text": "double max();", "title": "" }, { "docid": "9a74f92b3b6a7f5dedabb9991dbaf558", "score": "0.5385642", "text": "@Test\r\n\tpublic void testMinimumExceptional() {\r\n\t\tint[] grades = {33, -64, 12, -98, 79, -1456, 132946};\r\n\t\tGrades g1 = new Grades(\"test\", grades);\r\n\t\tint bottomGrade = grades[0];\r\n for (int i = 0; i < grades.length; i++) {\r\n int grade = grades[i];\r\n if (grade < bottomGrade)\r\n bottomGrade = grade;\r\n }\r\n assertEquals(\"Long test failed\", bottomGrade, g1.minimum(),0.000001);\r\n }", "title": "" }, { "docid": "90ce753cbddcf5f2cc6181f8d9269ecc", "score": "0.5384356", "text": "public BigDecimal getIhighprice() {\r\n return ihighprice;\r\n }", "title": "" } ]
be4c8c153d4b9e8776ea1106fc02d3fa
Solution of Choice Dynamic Programming(1D array) beats 9X%(7 ms)
[ { "docid": "200ed786aa45e9ccb5ced4ffa69cdd20", "score": "0.0", "text": "public int numDistinct6(String s, String t) {\n int sLen = s.length();\n int tLen = t.length();\n char[] sChars = s.toCharArray();\n char[] tChars = t.toCharArray();\n int[] dp = new int[tLen + 1];\n dp[0] = 1;\n for (int i = 1; i <= sLen; i++) {\n for (int j = tLen; j > 0; j--) {\n if (sChars[i - 1] == tChars[j - 1]) {\n dp[j] += dp[j - 1];\n }\n }\n }\n return dp[tLen];\n }", "title": "" } ]
[ { "docid": "b89e4350ce0e795866f963dde56553a1", "score": "0.67757034", "text": "private static boolean dynamicProgramming(int[] nums) {\r\n\t\tif(nums.length == 0 || nums == null) return false;\r\n\t\tint n = nums.length;\r\n\t\tboolean[] dp = new boolean[n];\r\n\t\tdp[n-1] = true;\r\n\t\tfor(int i=n-2; i>=0; i--) {\r\n\t\t\tfor(int j=1; j<=nums[i] && j+i<n; j++) {\r\n\t\t\t\tif(dp[i+j] == true) {\r\n\t\t\t\t\tdp[i] = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn dp[0];\r\n\t}", "title": "" }, { "docid": "45dc37cd90bd367929d9369a784db312", "score": "0.64346296", "text": "public static int[][][] dp_solver(int grid[][], double cost[][])\r\n\t{\r\n\t\tint dp[][] = new int[grid.length][grid[0].length];\r\n\t\tint actions[][][] = new int[grid.length][grid[0].length][];\r\n\t\tfor(int[] arr : dp) {Arrays.fill(arr,Integer.MAX_VALUE-1);}\r\n\t\tfor(int[][] arr : actions)Arrays.fill(arr,NOOP);\r\n\t\tboolean did_change = true;\r\n\t\twhile(did_change)\r\n\t\t{\r\n\t\t\tdid_change = false;\r\n\t\t\tfor(int i = 0; i < grid.length; ++i)\r\n\t\t\t{\r\n\t\t\t\tfor(int j =0 ; j < grid[0].length; ++j)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(grid[i][j]==1)continue; // no update for obstacles\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(i == GOAL[0] && j == GOAL[1] && dp[i][j] != 0) // goal\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdp[i][j] = 0; \r\n\t\t\t\t\t\tdid_change = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor(int q = -1; q <= 1; ++q)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor(int r = -1; r <= 1; ++r)\r\n\t\t\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\t\t\t// at least on the them has to be 0\r\n\t\t\t\t\t\t\t\tif(r == 0 && q== 0) continue;\r\n\t\t\t\t\t\t\t\tif(r != 0 && q != 0) continue;\r\n\r\n\r\n\t\t\t\t\t\t\t\tint dx = i + q;\r\n\t\t\t\t\t\t\t\tint dy = j + r;\r\n\t\t\t\t\t\t\t\tif(dx < 0 || dx >=grid.length || dy < 0 || dy >= grid[0].length || grid[dx][dy] == 1) continue;\r\n\t\t\t\t\t\t\t\tif(dp[dx][dy]+cost[dx][dy] < dp[i][j])\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tdp[i][j] = dp[dx][dy]+1;\r\n\t\t\t\t\t\t\t\t\tactions[i][j] = (q == 0? (r == 1? RIGHT : LEFT) : (q == 1? BACKWARD : FORWARD));\r\n\t\t\t\t\t\t\t\t\tdid_change=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\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\treturn actions;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c793bc88cfdd5fa70a5474139fd483fa", "score": "0.6328608", "text": "public static void algorithm3B(int[] arr) {\r\n int minLeftNew = 0;\r\n int minLeft = 0;\r\n int minRight = 0;\r\n int min = arr[0];\r\n int[] sum = new int[arr.length];\r\n sum[0] = arr[0];\r\n \r\n //Dynamic Programming method, modified to calculate indices. \r\n //Lines 19-29 were adapted from source mentioned in pdf file.\r\n for (int i = 1; i < arr.length; i++) {\r\n sum[i] = Math.min(arr[i], sum[i - 1] + arr[i]);\r\n min = Math.min(min, sum[i]);\r\n if (min == sum[i]) {\r\n minRight = i;\r\n minLeft = minLeftNew;\r\n }\r\n if (sum[i] > 0) {\r\n minLeftNew = i + 1;\r\n }\r\n }\r\n \r\n //added check for edge case\r\n if (minRight == 1 && arr[0] > 0){\r\n minLeft = 1;\r\n }\r\n }", "title": "" }, { "docid": "30c55b033eebfd776c16f46476279413", "score": "0.61687565", "text": "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\r\n\t int t = s.nextInt();\r\n\t while(t-->0)\r\n\t {\r\n\t int n = s.nextInt();\r\n\t int[] arr = new int[n];\r\n\t int sum = 0;\r\n\t for(int i=0;i<n;i++)\r\n\t {\r\n\t arr[i] = s.nextInt();\r\n\t sum += arr[i];\r\n\t }\r\n\t boolean[][] dp = new boolean[sum+1][n+1];\r\n\t for(int i=0;i<=sum;i++)\r\n\t for(int j=0;j<=n;j++)\r\n\t {\r\n\t if(i==0)\r\n\t dp[i][j] = true;\r\n\t else if(j==0)\r\n\t dp[i][j] = false;\r\n\t else\r\n\t {\r\n\t dp[i][j] = dp[i][j-1];\r\n\t if(i-arr[j-1]>=0)\r\n\t dp[i][j] = dp[i][j] || dp[i-arr[j-1]][j-1];\r\n\t }\r\n\t }\r\n\t int diff = Integer.MAX_VALUE;\r\n\t for(int i=sum/2;i>=0;i--)\r\n\t if(dp[i][n]==true && diff>sum-2*i)\r\n\t diff=sum-2*i;\r\n\t System.out.println(diff);\r\n\t }\r\n\t}", "title": "" }, { "docid": "9f31f0ba3b812db5b3cb1b39175d0f9a", "score": "0.61085474", "text": "public static int[] Dynamic() {\n\t\tint[] biggest = {-1, -1, 1};\n\t\tint[][] dp = new int[input.length][input.length];\n\t\t\n\t\t//Iterating through every locations on the input map\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tfor (int j = 0; j < input.length; j++) {\n\t\t\t\t\n\n\t\t\t\t// If there is a stone, no square\n\t\t\t\tif (input[i][j]){\n\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t\t\n\t\t\t\t// If the location is at first row and first column \n\t\t\t\t// Size is can only be 1.\n\t\t\t\t} else if (i == 0 || j == 0) {\n\t\t\t\t\t\tdp[i][j] = 1;\n\t\t\t\t\t\t\n\t\t\t\t// If there is square at locations\n\t\t\t\t// (i - 1, j), (i, j - 1), (i - 1, j - 1)\n\t\t\t\t// The location (i, j) should be able to make a square size of\n\t\t\t\t// the minimum square of one of 3 squares above\n\t\t\t\t} else {\n\t\t\t\t\tint top = dp[i - 1][j];\n\t\t\t\t\tint left = dp[i][j - 1];\n\t\t\t\t\tint topleft = dp[i - 1][j - 1];\n\t\t\t\t\t\n\t\t\t\t\tdp[i][j] = Math.min(Math.min(top, left), topleft) + 1;\n\n\t\t\t\t\tif (dp[i][j] > biggest[2]) {\n\t\t\t\t\t\tbiggest[2] = dp[i][j];\n\t\t\t\t\t\tbiggest[0] = i - biggest[2] + 1;\n\t\t\t\t\t\tbiggest[1] = j - biggest[2] + 1;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn biggest;\n\t}", "title": "" }, { "docid": "6acaa54b748c83e952b7773ef6e48a6e", "score": "0.61023915", "text": "private void FillSolution(ORSolverBase.SimplexTableauType Tableau, double[] Solution)\n/* */ {\n/* 1191 */ for (int i = 1; i <= 50; i++)\n/* 1192 */ Solution[i] = this.SimplexModel.LowerBound[i];\n/* 1193 */ int WhichVar = 0;\n/* 1194 */ for (i = 1; i <= Tableau.NumConstraints; i++) {\n/* 1195 */ WhichVar = 0;\n/* 1196 */ int k = 0;\n/* 1197 */ int l = 1;\n/* 1198 */ double m = 0.0D;\n/* 1199 */ for (int j = 1; j <= this.SimplexModel.NumVariables; j++) {\n/* 1200 */ if (j + k == Math.round(Tableau.BasicVariable[i])) {\n/* 1201 */ WhichVar = j;\n/* 1202 */ if (Math.abs(this.SimplexModel.LowerBound[j]) > 1.0E-5D)\n/* 1203 */ m = this.SimplexModel.LowerBound[j];\n/* */ }\n/* 1205 */ if (this.SimplexModel.Nonnegativity[j] == 0) {\n/* 1206 */ if (j + k + 1 == Math.round(Tableau.BasicVariable[i])) {\n/* 1207 */ WhichVar = j;\n/* 1208 */ l = -1;\n/* */ }\n/* 1210 */ k += 1;\n/* */ }\n/* */ }\n/* 1213 */ if (WhichVar > 0) {\n/* 1214 */ Solution[WhichVar] = (l * Tableau.RightHandSide[i] + m);\n/* */ }\n/* */ }\n/* */ }", "title": "" }, { "docid": "bf1cfcde8b35574a3200c48eb4bc0b58", "score": "0.60573715", "text": "public static void main(String[] args) {\n\n // 2. 0 - 1 Knapsack Problem\n// A : [ 377, 932, 309, 945, 440, 627, 324, 538, 539, 119, 83, 930, 542, 834, 116, 640, 659, 705, 931, 978, 307, 674, 387, 22, 746, 925, 73, 271, 830, 778, 574, 98, 513, 987, 291, 162, 637, 356, 768, 656, 575, 32, 53, 351, 151, 942, 725, 967, 431, 108, 192, 8, 338, 458, 288, 754, 384, 946, 910, 210, 759, 222, 589, 423, 947, 507, 31 ]\n// B : [ 14, 19, 1, 42, 13, 6, 11, 10, 25, 38, 49, 34, 46, 42, 3, 1, 42, 37, 25, 21, 47, 22, 49, 50, 19, 35, 32, 35, 4, 50, 19, 39, 1, 39, 28, 18, 29, 44, 49, 34, 8, 22, 11, 18, 14, 15, 10, 17, 36, 2, 1, 50, 20, 7, 49, 4, 25, 9, 45, 10, 40, 3, 46, 36, 44, 44, 24 ]\n// C : 588\n int[] val = new int[]{377, 932, 309, 945, 440, 627, 324, 538, 539, 119, 83, 930, 542, 834, 116, 640, 659, 705, 931, 978, 307, 674, 387, 22, 746, 925, 73, 271, 830, 778, 574, 98, 513, 987, 291, 162, 637, 356, 768, 656, 575, 32, 53, 351, 151, 942, 725, 967, 431, 108, 192, 8, 338, 458, 288, 754, 384, 946, 910, 210, 759, 222, 589, 423, 947, 507, 31};\n int[] weight = new int[]{14, 19, 1, 42, 13, 6, 11, 10, 25, 38, 49, 34, 46, 42, 3, 1, 42, 37, 25, 21, 47, 22, 49, 50, 19, 35, 32, 35, 4, 50, 19, 39, 1, 39, 28, 18, 29, 44, 49, 34, 8, 22, 11, 18, 14, 15, 10, 17, 36, 2, 1, 50, 20, 7, 49, 4, 25, 9, 45, 10, 40, 3, 46, 36, 44, 44, 24}; // W=5\n int W = 588;\n int[][] t = new int[weight.length + 1][W + 1];\n// System.out.println(\"KnapsackProblem \" + knapsack(t, val, weight, val.length, W));\n System.out.println(\"KnapsackProblem \" + knapsack01(val, weight, val.length, W));\n\n int[] subsetSum = new int[]{5, 9, 2, 7, 6};\n System.out.println(\"subsetSum : \" + subsetSumProblem(subsetSum, 11, subsetSum.length));\n System.out.println(\"equalSumPartition\" + (equalSumPartition(subsetSum, subsetSum.length) ? \"YES\" : \"NO\"));\n System.out.println(\"countOfSubsetSum \" + countOfSubsetSum(subsetSum, 5, subsetSum.length));\n System.out.println(\"minSubsetSumDiff \" + minSubsetSumDiff(subsetSum, subsetSum.length));\n System.out.println(\"findSubsetOfGivenDiff \" + findSubsetOfGivenDiff(subsetSum, 2, subsetSum.length));\n }", "title": "" }, { "docid": "370ffddd291235d965b8879ae364ea6d", "score": "0.6056172", "text": "public static void main(String[] args) \r\n\t{\n\t\tint target = 10;\r\n\t\tSystem.out.println(\"\\n Enter n:\");\r\n\t\tint n;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tn = scan.nextInt();\r\n\t\t\r\n\t\tint []nums = new int[n];\r\n\t\tSystem.out.println(\"\\n Enter numbers:\");\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\tnums[i] = scan.nextInt();\r\n\t\t}\r\n\t\t\r\n\t\tboolean [][]dp = new boolean[n+1][11];\r\n\t\t\r\n\t\tfor(int i=0;i<dp[0].length;i++)\r\n\t\t{\r\n\t\t\tdp[0][i]=false;\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<dp.length;i++)\r\n\t\t{\r\n\t\t\tdp[i][0] = true;\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=1;i<dp.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<dp[0].length;j++)\r\n\t\t\t{\r\n\t\t\t\tif(dp[i-1][j])\r\n\t\t\t\t{\r\n\t\t\t\t\tdp[i][j]=true;\r\n\t\t\t\t}\r\n\t\t\t\telse if(j>=nums[i-1])\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dp[i-1][j-nums[i-1]])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdp[i][j] = dp[i-1][j-nums[i-1]];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/*for(int i=0;i<dp.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<dp[0].length;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"\\t\"+dp[i][j]);\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}*/\r\n\t\tSystem.out.println(\"\\n Array Elements:\");\r\n\t\tfor(int i=0;i<nums.length;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"\\t\"+nums[i]);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\n Combinations with Sum 10:\");\r\n\t\t\r\n\t\tQueue<Pair> queue = new LinkedList<>();\r\n\t\tqueue.add(new Pair(n,target,\"\"));\r\n\t\t\r\n\t\twhile(!queue.isEmpty())\r\n\t\t{\r\n\t\t\tint size = queue.size();\r\n\t\t\twhile(size>0)\r\n\t\t\t{\r\n\t\t\t\tPair current = queue.remove();\r\n\t\t\t\tsize--;\r\n\t\t\t\t\r\n\t\t\t\tint i = current.i;\r\n\t\t\t\tint j = current.j;\r\n\t\t\t\t\r\n\t\t\t\tif(i==0 || j==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"\\n\"+current.psf);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(dp[i-1][j])\r\n\t\t\t\t{\r\n\t\t\t\t\tqueue.add(new Pair(i-1,j,current.psf));\r\n\t\t\t\t}\r\n\t\t\t\tif(j>=nums[i-1])\r\n\t\t\t\t{\r\n\t\t\t\t\tif(dp[i-1][j-nums[i-1]])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue.add(new Pair(i-1,j-nums[i-1],nums[i-1]+\" \"+current.psf));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "57a656c812d14abdf5b3cf3111823dcd", "score": "0.60341424", "text": "public static void main(String[] args) {\n\t\tScanner sc =new Scanner(System.in);\n\t\tint t=sc.nextInt();\n\t\twhile(t-->0) {\n\t\t\t\n\t\t\tint m=sc.nextInt();\n\t\t\tint[] coins=new int[m+1];\n\t\t\tfor(int i=1;i<=m;i++) {\n\t\t\t\tcoins[i]=sc.nextInt();\n\t\t\t}\n\t\t\tint n=sc.nextInt();\n\t\t\tlong[][] dp=new long[m+1][n+1];\n\t\t\tboolean[][] dpDone=new boolean[m+1][n+1];\n\t\t\tfor(int i=0;i<=n;i++) {\n\t\t\t\tdpDone[0][i]=true;\n\t\t\t\tdpDone[1][i]=true;\n\t\t\t\tdp[1][i]=i==0 ||(i>=coins[1] && i%coins[1]==0)?1:0;\n//\t\t\t\tSystem.out.println(\"i:: \"+0+\" j:: \"+i+\" dp[i][j]::\"+dp[0][i]);\n//\t\t\t\tSystem.out.println(\"i:: \"+1+\" j:: \"+i+\" dp[i][j]::\"+dp[1][i]);\n//\t\t\t\tSystem.out.println(\"-------------------------------------------------0\");\n\n\t\t\t}\n\t\t\tfor(int i=2;i<=m;i++) {\n\t\t\t\tfor(int j=0;j<=n;j++) {\n\t\t\t\t\tif(!dpDone[i][j]) {\n\t\t\t\t\t\tlong withoutcoini=dp[i-1][j];\n//\t\t\t\t\t\tSystem.out.println(\"j:: \"+j+\" coins[j]:: \"+coins[j]);\n\t\t\t\t\t\tlong withatleast1coini=(j-coins[i]>0)?dp[i][j-coins[i]]:j-coins[i]==0?1:0;\n\t\t\t\t\t\tdp[i][j]=withoutcoini+withatleast1coini;\n//\t\t\t\t\t\tSystem.out.println(\"i:: \"+i+\" j:: \"+j+\" dp[i][j]::\"+dp[i][j]);\n\t\t\t\t\t\tdpDone[i][j]=true;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(dp[m][n]);\n\t\t\t\n\t\t}\n\t\tsc.close();\n\t}", "title": "" }, { "docid": "dd5215f89ec9d3e725eb89f8373b30c5", "score": "0.6023373", "text": "public void solve(){\n for(int i=1;i<numOfItems+1;i++){\n for(int w=1;w<capacityOfKnapsack+1;w++){\n\n int notTakingItem=knapsackTable[i-1][w];\n int takingItem=0;\n\n if(weights[i]<=w){\n\n //consider s[i-1][W-wi] if wi<=W\n takingItem=values[i]+knapsackTable[i-1][w-weights[i]];\n }\n knapsackTable[i][w]=Math.max(notTakingItem,takingItem);\n }\n }\n\n //total benefit will we the last row and last column\n totalBenefits=knapsackTable[numOfItems][capacityOfKnapsack];\n }", "title": "" }, { "docid": "7bc9488bcbf82ff7924eb180f3832ab1", "score": "0.6014268", "text": "static int solve(int arr[], int i, int j, int P) {\r\n\t\t// base cases\r\n\t\tif (P <= 0 || i > j) // Invalid input\r\n\t\t\treturn 0;\r\n\t\tif (P == 1) // one painter \r\n\t return sum(arr, i, j); \r\n\t\tif (i == j) // one element\r\n\t\t\treturn arr[i];\r\n\r\n\t\tint min = Integer.MAX_VALUE;\r\n\t\t\r\n\t\t/*\r\n\t\t * Recursive Function\r\n\t\t * Math.max[solve(arr, i, k, p-1), sum(arr, k+1, j)]\r\n\t\t * Then Minimum of above values for each k\r\n\t\t */\r\n\r\n\t\tfor (int k = i; k < j; k++){\r\n\t\t\tint tempAns = Math.max(sum(arr, k+1, j),\r\n\t\t\t\t\t\t\tsolve(arr, i, k, P-1));\r\n\t\t\r\n\t\t\tmin = Math.min(min,tempAns);\r\n\t\t}\r\n\r\n\t\treturn min;\r\n\t}", "title": "" }, { "docid": "be9e8bbf7e4962d5c51cf6073aa27fc6", "score": "0.5979658", "text": "@SuppressWarnings(\"Main Logic\")\n void solve() {\n n = ii();\n m = ii();\n W = ii();\n w = iia(n);\n b = iia(n);\n int from[] = new int[m];\n int to[] = new int[m];\n for (int i = 0; i < m; i++) {\n from[i] = ii() - 1;\n to[i] = ii() - 1;\n }\n g = packU(n, from, to, m);\n weight = new ArrayList<>();\n beauty = new ArrayList<>();\n compNo = new int[n];\n num = 0;\n element = new ArrayList[n];\n visit = new boolean[n];\n for (int i = 0; i < n; i++) {\n if (!visit[i]) {\n be = 0;\n we = 0;\n element[num] = new ArrayList<>();\n dfs(i);\n weight.add(we);\n beauty.add(be);\n num++;\n }\n }\n// out.println(weight.toString());\n// out.println(beauty.toString());\n// out.println(Arrays.toString(compNo));\n// for (int i = 0; i < num; i++) out.println(element[i].toString());\n// System.out.println(num);\n dp = new long[num][W + 1];\n for (int i = 0; i < num; i++)\n Arrays.fill(dp[i], -1);\n out.println(solve(0, W));\n }", "title": "" }, { "docid": "2b4f63f48fc2cf4b0d3bb4c15ae12099", "score": "0.5968756", "text": "public static void main (String [] args){\n\t \n\t \n\t long start2 = System.nanoTime();\n\t\tSystem.out.println(knapsack2(max,0));\n\t\tlong end2 = System.nanoTime();\n\n\t System.out.println((end2 - start2) + \" ns\");\n\t \n//\t 0\t1 2 3 4 5\n//\t \n//\t 0\t0 0 0 0 0 0\n//\t \n//\t 1 0 \t6 6 6 6 6\n//\t \n//\t 2 0\t6 10 16 16 16\n//\t\t\n//\t 3 0\t6 10 16 18 22\n\t \n\t int [][] cache = new int[weight.length + 1][max + 1];\n\t \n\t for(int i = 0; i< cache.length; i++){\n\t \tfor(int j = 0; j < max + 1; j++){\n\t \t\tif( i== 0 || j ==0) cache[i][j] = 0;\n\t \t\telse if(j - weight[i-1] < 0) cache[i][j] = cache[i-1][j];\n\t \t\telse cache[i][j] = Math.max(value[i-1] + cache[i-1][j-weight[i-1]], cache[i-1][j]);\n\t \t}\n\t \t\n\t }\n\t \n\t long start3 = System.nanoTime();\n\t\tSystem.out.println(cache[weight.length ][max]);\n\t\tlong end3 = System.nanoTime();\n\n\t System.out.println((end2 - start2) + \" ns\");\n\t \n\t \n\t \n\t\treturn;\n\t}", "title": "" }, { "docid": "a23ee40efa0c84de312e00e2ec5b399a", "score": "0.5934365", "text": "public static void main(String[] args) throws Exception {\n Scanner scn = new Scanner(System.in);\n \n int n = scn.nextInt();\n \n int[] st = new int[n];\n \n for(int i = 0; i < n; i++)\n {\n st[i] = scn.nextInt();\n }\n \n int k = scn.nextInt();\n \n int[][] dp = new int[k + 1][n];\n \n //if(d == 0 || t == 0) then dp[t][d] = 0;\n \n for(int t = 1; t < dp.length; t++)\n {\n int pmax = Integer.MIN_VALUE;//iterates in previos row\n for(int d = 1; d < dp[0].length; d++)\n {\n int max = dp[t][d - 1];\n \n if(dp[t - 1][d - 1] - st[d - 1] > pmax)\n {\n pmax = dp[t - 1][d - 1] - st[d - 1];\n }\n \n int pr = pmax + st[d];\n if(pr > max)\n {\n max = pr;\n }\n \n dp[t][d] = max;\n }\n }\n \n \n System.out.println(dp[k][n - 1]);\n }", "title": "" }, { "docid": "03cb07edeafad076fd9e81f122d927bf", "score": "0.5931346", "text": "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int arr[] = new int [n];\n for(int i=0;i<n;i++)\n {\n arr[i] = sc.nextInt();\n }\n \n int dp[] = new int[n+1];\n dp[n] = 1;\n for(int i=n-1;i>=0;i--)\n {\n for(int j=1;j<=arr[i] && i+j<dp.length;j++)\n {\n dp[i]+=dp[i+j];\n }\n }\n System.out.println(dp[0]);\n \n \n \n }", "title": "" }, { "docid": "54b9937dbf64f960b8d8c13b091f2f30", "score": "0.59146255", "text": "public int costCalculator(int node,int input[],int size)\r\n{\r\n if(size==0)\r\n return Map[node][0]; //node itself else: move on \r\n // int min=INF,minindex=0;\r\n int minimum= infinity;\r\n int minimumIndex=0;\r\n int next[]=new int[nodes-1]; //next is passed on the next call of cost \r\n for(int iterator=0;iterator<size;iterator++)\r\n {\r\n int k=0;//initialise new set\r\n for(int j=0;j<size;j++)\r\n {\r\n if(input[iterator]!=input[j])\r\n next[k++]=input[j];\r\n }\r\nint temporary=costCalculator(input[iterator],next,size-1);\r\nif((Map[node][input[iterator]]+temporary) < minimum)\r\n{\r\nminimum=Map[node][input[iterator]]+temporary;\r\nminimumIndex=input[iterator];\r\n}\r\n}\r\nreturn minimum;\r\n}", "title": "" }, { "docid": "3e9844737b83337bf43277b9eddf9aa7", "score": "0.5905693", "text": "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tRandom rand = new Random(1000);\n\t\tint n = sc.nextInt();\n\t\tv = new int[n];\n\t\tfor(int i = 0; i<n; i++) \n\t\t\t{\n\t\t\tv[i] = rand.nextInt();\n\t\t\t}\n\t\tint k = sc.nextInt();\n\t\tint[] a = new int[k];\n\t\tint[] b = new int[k];\n\t\tint p = (int) Math.ceil(Math.log(n)/Math.log(2));\n\t\tint size = (int)Math.pow(2, p)*2;\n\t\t\n\t\ttreeArr = new long[size];\n\t\t\n\t\t\n\t\tfor(int i = 0; i < k; i++) {\n\t\t\tint x = rand.nextInt(n);\n\t\t\tint y = rand.nextInt(n);\n\t\t\ta[i] = x;\n\t\t\ta[i] = y;\t\n\t\t\tinit_min(1, 0, n-1);\n\t\t\tinit_max(1, 0, n-1);\n\t\t\tinit_sum(v, 0, n-1, 1);\n\t\t}\n\t\tlong t = System.currentTimeMillis();\n\t\tfor (int q = 0; q < a.length; q++) {\n\t\t\tlong min = v[a[q] -1];\n\t\t\tlong max = v[a[q] -1];\n\t\t\tlong sum = v[a[q] -1];\n\t\t\tfor(int r = 0; r < q; r++) {\n\t\t\t\tmin = min_num(1, 0, n-1, (a[r]-1), (b[r]-1));\n\t\t\t\tmax = max_num(1, 0, n-1, (a[r]-1), (b[r]-1));\n\t\t\t\tsum = sum(1, 0, n-1, (a[r]-1), (b[r]-1));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"elapsed : \" + (System.currentTimeMillis()-t));\n\t}", "title": "" }, { "docid": "a1611629daee2ad45d8ef771e5d18de7", "score": "0.58719283", "text": "public static void main(String[] args) {\n\n int[] arr = new int[]{5, 11, 7, 15};\n System.out.println(solution(arr) == 26);\n \n arr = new int[]{5, 11, 5, 9, 11};\n System.out.println(solution(arr) == 22);\n \n arr = new int[]{4, 6, 3, 5, 7, 4};\n System.out.println(solution(arr) == 15);\n \n arr = new int[]{21};\n System.out.println(solution(arr) == 21);\n \n arr = new int[]{21, 23};\n System.out.println(solution(arr) == 23);\n \n arr = new int[]{23, 21};\n System.out.println(solution(arr) == 23);\n \n arr = new int[]{5, 1, 1, 5};\n System.out.println(solution(arr) == 10);\n \n arr = new int[]{5, 1, 1, 5, 10};\n System.out.println(solution(arr) == 16);\n \n arr = new int[]{2, 1, 2, 8, 5};\n System.out.println(solution(arr) == 10);\n \n arr = new int[]{2, 1, 1, 8, 4};\n System.out.println(solution(arr) == 10);\n \n arr = new int[]{4, 6, 3, 5, 7};\n System.out.println(solution(arr) == 14);\n \n arr = new int[]{2, 6, 3, 5, 7};\n System.out.println(solution(arr) == 13);\n \n arr = new int[]{2, 6, 3, 5, 7, 4};\n System.out.println(solution(arr) == 15);\n \n arr = new int[]{2, 9, 3, 8, 7};\n System.out.println(solution(arr) == 17);\n \n arr = new int[]{2, 1, 2, 8, 7, 11};\n System.out.println(solution(arr) == 21);\n \n arr = new int[]{5, 6, 7, 5};\n System.out.println(solution(arr) == 12);\n \n arr = new int[]{5, 1, 7, 15};\n System.out.println(solution(arr) == 20);\n \n arr = new int[]{7, 6, 5, 4};\n System.out.println(solution(arr) == 12);\n \n arr = new int[]{7, 6, 5, 1, 2, 4};\n System.out.println(solution(arr) == 16);\n \n arr = new int[]{4, 5, 6, 7};\n System.out.println(solution(arr) == 12);\n \n arr = new int[]{4, 5, 9, 7};\n System.out.println(solution(arr) == 13);\n \n arr = new int[]{5, 1, 1, 5, 5};\n System.out.println(solution(arr) == 11);\n \n arr = new int[]{5, 1, 1, 5, 5, 7};\n System.out.println(solution(arr) == 17);\n \n arr = new int[]{2, 4, 6, 2, 5};\n System.out.println(solution(arr) == 13);\n }", "title": "" }, { "docid": "a062a7923af4788385760f49e38121ea", "score": "0.58669573", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\twhile (sc.hasNext()) {\r\n\t\t\tint n = sc.nextInt();\r\n\t\t\tint m = sc.nextInt();\r\n\t\t\tint [][] arr = new int[n][m];\r\n\t\t\tint [][] dp = new int[n][m];\r\n\t\t\tPriorityQueue<Node> qu = new PriorityQueue<>();\r\n\t\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\t\tfor (int j = 0; j < m; j++) {\r\n\t\t\t\t\tarr[i][j] = sc.nextInt();\r\n\t\t\t\t\tdp[i][j] = 1;\r\n\t\t\t\t\tqu.add(new Node(i, j, arr[i][j], 1));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint max = 1;\r\n\t\t\twhile (!qu.isEmpty()) {\r\n\t\t\t\tNode node = qu.poll();\r\n\t\t\t\tif (node.n < dp[node.x][node.y]) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tmax = Math.max(max, node.n);\r\n\t\t\t\tfor (int i = 0; i < pla.length; i+=2) {\r\n\t\t\t\t\tint next_x = node.x + pla[i];\r\n\t\t\t\t\tint next_y = node.y + pla[i+1];\r\n\t\t\t\t\tif (next_x >= 0 && next_x < n && next_y >= 0 && next_y < m && arr[next_x][next_y] < arr[node.x][node.y] && dp[next_x][next_y] < node.n+1) {\r\n\t\t\t\t\t\tdp[next_x][next_y] = node.n+1;\r\n\t\t\t\t\t\t//System.out.println(\"当前值为:\"+arr[next_x][next_y]+\" 走了\"+dp[next_x][next_y]+\"步\");\r\n\t\t\t\t\t\tqu.add(new Node(next_x, next_y, arr[next_x][next_y], node.n+1));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(max);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c912a088cbc7ba9b0d000f632968bf83", "score": "0.5840332", "text": "private static List<Player> findOptimalLineup(List<Player> allPlayers) {\n // TODO: implement this using dynamic programming\n // INITIALIZE DATA STRUCTURES\n populateSubproblemSet(initiazlieProblem());\n ArrayList<ArrayList<Position>> subproblemList = new ArrayList<>(subproblemSet);\n // sort by arraylist size\n Collections.sort(subproblemList, new Comparator<ArrayList<Position>>() {\n @Override\n public int compare(ArrayList<Position> o1, ArrayList<Position> o2) {\n return o1.size() - o2.size();\n }\n });\n Map<ArrayList<Position>, Integer> subpMap = initializeMap(subproblemList);\n float[][][] table = new float[subproblemSet.size()][allPlayers.size()][BUDGET / 100 + 1];\n\n\n // DYNAMIC PROGRAMMING\n for (int n = 0; n < table[0].length; n++) {\n Player player = allPlayers.get(n);\n assert player.getPrice() % 100 == 0;\n for (ArrayList<Position> subPositionList : subproblemList ) {\n int p = subpMap.get(subPositionList);\n if (n + 1 >= subPositionList.size()) {\n for (int w = 1; w < table[0][0].length; w++) {\n if (subPositionList.contains(player.getPosition())) {\n ArrayList<Position> subSubPositionList = new ArrayList<>(subPositionList);\n subSubPositionList.remove(player.getPosition());\n int subp = subpMap.get(subSubPositionList);\n if (player.getPrice() / 100 <= w) {\n if (n == 0) {\n table[p][n][w] = player.getPointsExpected();\n } else {\n if (subSubPositionList.size() > 0 && table[subp][n - 1][w - player.getPrice() / 100] == 0) {\n // if the subproblem did not get a complete solution (value is 0), do not add to it\n table[p][n][w] = table[p][n - 1][w];\n } else {\n table[p][n][w] = Math.max(table[p][n - 1][w], table[subp][n - 1][w - player.getPrice() / 100]\n + player.getPointsExpected());\n }\n }\n } else {\n // if player's price is more expensive than the current w\n if (n != 0) {\n table[p][n][w] = table[p][n - 1][w];\n } // else 0\n }\n } else {\n // if player's position is not in the current subproblem\n if (n != 0) {\n table[p][n][w] = table[p][n - 1][w];\n } // else 0\n }\n }\n }\n }\n }\n\n // RECOVER SOLUTION\n int p = table.length - 1;\n int n = table[0].length - 1;\n int w = table[0][0].length - 1;\n\n List<Player> optSolution = new ArrayList<>();\n while (p != 0) {\n ArrayList<Position> sublist = new ArrayList<>(subproblemList.get(p));\n sublist.remove(allPlayers.get(n).getPosition());\n int subp = subpMap.get(sublist);\n if (sublist.size() == 0 && n == 0) {\n // special case when player n_0 is included\n optSolution.add(allPlayers.get(n));\n break;\n } else {\n float left = table[p][n - 1][w];\n if (left == table[p][n][w]) {\n n--;\n } else {\n optSolution.add(allPlayers.get(n));\n p = subp;\n w -= allPlayers.get(n).getPrice() / 100;\n n--;\n }\n }\n }\n return optSolution;\n }", "title": "" }, { "docid": "826fc61c10e0e669f6ae3951a7756bad", "score": "0.5829376", "text": "public static void main(String[] args) throws IOException {\n\t\tBufferedReader f = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// Check for Blank Input\n\t\tStringTokenizer st;\n\t\ttry {\n\t\t\tst = new StringTokenizer(f.readLine());\n\t\t} catch (Exception e) {\n\t\t\treturn;\n\t\t}\n\n\t\tint n = Integer.parseInt(st.nextToken());\n\t\tint k = Integer.parseInt(st.nextToken());\n\n\t\tString[] s = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tst = new StringTokenizer(f.readLine());\n\t\t\ts[i] = st.nextToken();\n\t\t}\n\n\t\tf.close();\n\n\t\t/* Compute Values */\n\t\tint[][] nxt = new int[n][n];\n\t\tint[][] p = new int[n][16];\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tfor (int j = 0; j < n; j++) {\n\n\t\t\t\tString si = s[i];\n\t\t\t\tString sj = s[j];\n\t\t\t\tint li = s[i].length();\n\t\t\t\tint lj = s[j].length();\n\n\t\t\t\tfor (int l = Math.max(1, lj - li); l <= lj; l++) {\n\t\t\t\t\tif (li - lj + l >= 0 && si.substring(li - lj + l, li).equals(sj.substring(0, lj - l))) {\n\t\t\t\t\t\tnxt[i][j] = l;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (int l = li; l >= 0; l--) {\n\t\t\t\t\tif (l - lj >= 0 && si.substring(l - lj, l).equals(sj)) {\n\t\t\t\t\t\tfor (int m = li - l + 1; m <= li; m++) {\n\t\t\t\t\t\t\tp[i][m]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\t/* DP to Solve */\n\t\tint[][] dp = new int[k + 1][n];\n\t\tfor (int i = 0; i <= k; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdp[i][j] = -1;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdp[s[i].length()][i] = p[i][s[i].length()];\n\t\t}\n\n\t\tfor (int i = 0; i <= k; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tif (dp[i][j] != -1) {\n\t\t\t\t\tfor (int l = 0; l < n; l++) {\n\t\t\t\t\t\tif (i + nxt[j][l] <= k) {\n\t\t\t\t\t\t\tdp[i + nxt[j][l]][l] = Math.max(dp[i + nxt[j][l]][l], dp[i][j] + p[l][nxt[j][l]]);\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\tint ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tans = Math.max(ans, dp[k][i]);\n\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t}", "title": "" }, { "docid": "ee395423559268a1475e42c417181b7a", "score": "0.57916", "text": "static long countMaximum(int arr[], int n) {\n Choice[][] dp = new Choice[n][n];\n\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n dp[i][j] = new Choice(0, 0);\n }\n }\n\n for (int diff = 0; diff < n; diff++) {\n for (int i = 0, j = i + diff; j < n; i++, j++) {\n // only one element\n if (i == j) {\n dp[i][j].first = arr[i];\n dp[i][j].second = 0;\n } else if (diff == 1) {\n dp[i][j].first = Math.max(arr[i], arr[j]);\n dp[i][j].second = Math.min(arr[i], arr[j]);\n } else {\n if (dp[i+1][j].second + arr[i] > dp[i][j-1].second + arr[j]) {\n dp[i][j].first = dp[i+1][j].second + arr[i];\n dp[i][j].second = dp[i+1][j].first;\n } else {\n dp[i][j].first = dp[i][j-1].second + arr[j];\n dp[i][j].second = dp[i][j-1].first;\n }\n }\n }\n }\n\n return dp[0][n-1].first;\n }", "title": "" }, { "docid": "ed62b8a4647b2a3caffcdf548bf41c73", "score": "0.5789977", "text": "private static long effAlgo(int[] arr, int n, int x) {\n\t\tHashMap<Integer,Integer> cnt=new HashMap<>();\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(cnt.containsKey(arr[i]))\n\t\t\t{\n\t\t\t\tcnt.put(arr[i], cnt.get(arr[i])+1);\n\t\t\t}\n\t\t\telse cnt.put(arr[i], 1);\n\t\t}\n\t\tArrayList<Integer> factors=new ArrayList<>();\n\t\tfor(int i=1;i<=Math.sqrt(x);i++)\n\t\t{\n\t\t\tif(x%i==0)\n\t\t\t{\n\t\t\t\tfactors.add(i);\n\t\t\t\tif(x%(x/i)==0 && i!=x/i)factors.add(x/i);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(factors);\n\t\tHashMap<Integer,ArrayList<Integer>> map=new HashMap<>();\n\t\tint sz=factors.size();\n\t\tArrayList<Integer> tmpl=new ArrayList<>();\n\t\ttmpl.add(1);\n\t\tmap.put(1,tmpl);\n\t\tfor(int i=1;i<sz;i++)\n\t\t{\n\t\t\tint curr=factors.get(i);\n\t\t\t//System.out.println(curr);\n\t\t\tArrayList<Integer> l=new ArrayList<>();\n\t\t\tfor(int j=0;j<=i;j++)\n\t\t\t{\n\t\t\t\tif(curr%factors.get(j)==0)\n\t\t\t\t{\n\t\t\t\t\tl.add(factors.get(j));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(l.toString());\n\t\t\tmap.put(curr, l);\n\t\t}\n\t\tlong ans=0;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(x%arr[i]==0)\n\t\t\t{\n\t\t\t\tint curr=x/arr[i];\n\t\t\t\t//System.out.println(\"arr[\"+i+\"]:\"+arr[i]);\n\t\t\t\t//System.out.println(curr);\n\t\t\t\tfor(int j:map.get(curr))\n\t\t\t\t{\n\t\t\t\t\tif(j*j>curr)break;\n\t\t\t\t\t//System.out.print(j+\" j: \");\n\t\t\t\t\tif(cnt.containsKey(j) && cnt.containsKey(curr/j))\n\t\t\t\t\t{\n\t\t\t\t\t\t//System.out.println(cnt.get(j)+\" \"+cnt.get(curr/j));\n\t\t\t\t\t\tint cnt1=cnt.get(j),cnt2=cnt.get(curr/j);\n\t\t\t\t\t\tif(j==arr[i])cnt1--;\n\t\t\t\t\t\tif(curr/j==arr[i])cnt2--;\n\t\t\t\t\t\tif(j!=curr/j)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tans+=(long)cnt1*cnt2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tans+=((long)cnt1*(cnt1-1))/2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//System.out.println(\"ans:\"+ans);\n\t\t\t\t\t\t//ans+=(long)cnt.get(j)*cnt.get(curr/j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//System.out.println();\n\t\t\t}\n\t\t}\n\t\treturn ans/3;\n\t}", "title": "" }, { "docid": "bd1d7286bab04adef45fd645e45a0d1c", "score": "0.57854444", "text": "void solve(int[][] board);", "title": "" }, { "docid": "b94ad5800dc70b2d9391d08d33719485", "score": "0.5771131", "text": "public int solution(int[] A) {\n\n return 0;\n }", "title": "" }, { "docid": "3d0a661269c81d48eec6dde8701c8afa", "score": "0.574987", "text": "public int[] getSubset(int[] arr, int t)\r\n\t{\r\n\t\t/*\r\n\t\t\tRUNTIME: Theta(nt), when n is the size of the input array. We've already determined that filling the table is a Theta(nt) operation, and the loops in our recovery code are at worst Theta(n), so they do not affect the asymptotic runtime adversely.\r\n\t\t*/\r\n\t\t\r\n\t\tBoolean[][] results = new Boolean[arr.length][t + 1];\r\n\t\tInteger[] subset = new Integer[arr.length];\r\n\t\t\r\n\t\tfor(int i = 0;i < results.length;i++)\r\n\t\t\tfor(int j = 0;j < results[i].length;j++)\r\n\t\t\t\tresults[i][j] = null;\r\n\t\t\t\r\n\t\tfor(int i = 0;i < arr.length;i++)\r\n\t\t{\r\n\t\t\tif(arr[i] < t)\r\n\t\t\t\tresults[i][arr[i]] = true;\r\n\t\t}\r\n\r\n\t\tboolean success = memRecursion(arr,results,arr.length-1,t);\r\n\r\n\t\t// for(int it = 0;it < results.length;it++)\r\n\t\t// {\r\n\t\t\t// for(int jt = 0;jt < results[it].length;jt++)\r\n\t\t\t// {\r\n\t\t\t\t// Boolean element = results[it][jt];\r\n\t\t\t\t\r\n\t\t\t\t// if(element == null)\r\n\t\t\t\t\t// System.out.print(\"n\");\r\n\t\t\t\t// else if(element == true)\r\n\t\t\t\t\t// System.out.print(\"t\");\r\n\t\t\t\t// else if (element == false)\r\n\t\t\t\t\t// System.out.print(\"f\");\r\n\t\t\t\t\r\n\t\t\t\t// System.out.print(\" \");\r\n\t\t\t// }\r\n\t\t\t\r\n\t\t\t// System.out.println();\r\n\t\t// }\r\n\t\t\t\r\n\t\tif(!success)\r\n\t\t\tthrow new RuntimeException(\"There is not a valid solution\");\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tint subset_idx = 0;\r\n\t\t\t\r\n\t\t\tint i = results.length - 1;\r\n\t\t\tint j = results[i].length - 1;\r\n\t\t\t\r\n\t\t\twhile(i >= 0 && j >= 0)\r\n\t\t\t{\t\t\t\t\r\n\t\t\t\t// System.out.println(\"Testing element \" + i + \" with value \" + arr[i] + \" against new weight \" + (j - arr[i]));\r\n\t\t\t\t\r\n\t\t\t\tif((j - arr[i]) == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t// System.out.println(\"Using value: \" + arr[i]);\r\n\t\t\t\t\tsubset[subset_idx++] = arr[i];\r\n\t\t\t\t\r\n\t\t\t\t\tj -= arr[i];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse if((j-arr[i]) >= 0 && results[i-1][j-arr[i]] != null)\r\n\t\t\t\t{\r\n\t\t\t\t\t// System.out.println(\"First test passed\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(results[i-1][j-arr[i]] == true)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// System.out.println(\"Using value: \" + arr[i]);\r\n\t\t\t\t\t\tsubset[subset_idx++] = arr[i];\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tj -= arr[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// for(int d = 0;d < results.length;d++)\r\n\t\t\t\t// System.out.println(subset[d]);\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\t// System.out.println(\"final result:\");\r\n\t\tint count = 0;\r\n\t\t\r\n\t\twhile(count < subset.length && subset[count] != null)\r\n\t\t\tcount++;\r\n\t\t\r\n\t\tint[] final_result = new int[count];\r\n\t\t\r\n\t\tfor(int i = 0;i < final_result.length;i++)\r\n\t\t\tfinal_result[i] = subset[i];\r\n\t\t\r\n\t\t// for(int i = 0;i < final_result.length;i++)\r\n\t\t\t// System.out.println(final_result[i]);\r\n\t\t\r\n return final_result;\r\n }", "title": "" }, { "docid": "938aa8f308c5a726e364cbdd08ff4fc9", "score": "0.5705326", "text": "@SuppressWarnings(\"Main Logic\")\r\n void solve() {\r\n int Tc = ii();\r\n for (int tc = 1; tc <= Tc; tc++) {\r\n out.printf(\"Case %d:\\n\", tc);\r\n int n = ii();\r\n int g[][] = new int[n][];\r\n for (int i = 0; i < n; i++) {\r\n int m = ii();\r\n g[i] = new int[m];\r\n for (int j = 0; j < m; j++)\r\n g[i][j] = ii() - 1;\r\n }\r\n P = new int[n];\r\n L = new int[n];\r\n T = new int[n];\r\n dfs1(g, 0, 0);\r\n int sqrtN = (int) Math.ceil(Math.floor(n));\r\n dfs2(0, sqrtN, g);\r\n int q = ii();\r\n for (int Q = 0; Q < q; Q++) {\r\n int x = ii() - 1, y = ii() - 1;\r\n out.println(lca(x, y) + 1);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2df171f03f32f4574d9855e01c23de6f", "score": "0.5693518", "text": "public static void main(String[] args) {\n int[] d = {1, 3, 2, 5, 4};\n// int[] d = {2,2,3,3};\n int budget = 9;\n\n System.out.println(solution(d, budget));\n }", "title": "" }, { "docid": "8704c414a61dd0a6e710025c95adb1fd", "score": "0.5680267", "text": "public int solveSplitProblem(int [] weights){\n\t for (int i = 0; i<V.length; i++){\r\n\t V[i][0] = 1;\r\n\t }\r\n\t \r\n\t // Initialize row i=0 as 0, except V[0][0]. With\r\n\t // 0 elements the only possible sum is 0.\r\n\t for (int j = 1; j <V.length; j++){\r\n\t V[0][j] = 0;\r\n\t }\r\n\t \r\n\t\tfor (int i=1;i<V.length;i++){\r\n\t\t\tfor (int j=1;j<V[i].length;j++){\t\t\t\t\r\n\t\t\t\tV[i][j] = V[i-1][j];\r\n\t\t\t\tif (weights[i-1]<=j){\r\n\t\t\t\t\tV[i][j] = V[i-1][j-weights[i-1]];\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Initialize difference of two sums \r\n\t int diff = Integer.MAX_VALUE;\r\n\t \r\n\t // Find the largest j such that V[numObjects][j]\r\n\t // is 1 where j loops from sum/2 to 0\r\n\t int j=sum/2;\t \r\n\t boolean found = false;\r\n\t while ((!found) && (j>=0)){\r\n\t // Find the largest j such that V[numObjects][j] is 1\r\n\t if (V[numObjects][j] == 1){\r\n\t diff = sum-2*j;\t \r\n\t found = true;\r\n\t }else{\r\n\t \tj--;\r\n\t }\r\n\t }\r\n\t \r\n\t // Rebuild the optimal solution\t \r\n\t List<Integer> partition1 = new LinkedList<Integer>();\t \t \r\n\t List<Integer> partition2 = new LinkedList<Integer>();\t \r\n\t int i = numObjects;\t \r\n\t while ((j>=0) && (i>0)){\r\n\t \tif ((V[i][j] == 1) && (V[i-1][j] == 0)){\r\n\t\t \tpartition1.add(i);\t\t\t \t\r\n\t\t \tj = j - weights[i-1];\r\n\t \t}else{\r\n\t \t\tpartition2.add(i);\t \t\t\r\n\t \t}\r\n\t \ti--;\r\n\t }\r\n\t System.out.println(\"Partition 1: \" + partition1.toString());\r\n\t System.out.println(\"Partition 2: \" + partition2.toString());\t \r\n\t\treturn diff;\r\n\t}", "title": "" }, { "docid": "aa9ee3a3b4072e5fb8f9a9b157bcc603", "score": "0.56703705", "text": "private boolean SolutionFeasible(ORSolverBase.SimplexModelType Model, double[] Solution)\n/* */ {\n/* 1223 */ boolean Temp = true;\n/* 1224 */ for (int i = 1; i <= Model.NumConstraints; i++) {\n/* 1225 */ double Sum = 0.0D;\n/* 1226 */ for (int j = 1; j <= Model.NumVariables; j++)\n/* 1227 */ Sum += Model.A[i][j] * Solution[j];\n/* 1228 */ switch (Model.Constraint[i]) {\n/* */ case 0: \n/* 1230 */ if (Sum > Model.RightHandSide[i] + 0.01D)\n/* 1231 */ Temp = false;\n/* 1232 */ break;\n/* */ case 1: \n/* 1234 */ if (Math.abs(Sum - Model.RightHandSide[i]) > 0.01D)\n/* 1235 */ Temp = false;\n/* 1236 */ break;\n/* */ case 2: \n/* 1238 */ if (Sum < Model.RightHandSide[i] - 0.01D)\n/* 1239 */ Temp = false;\n/* */ break;\n/* */ }\n/* */ }\n/* 1243 */ for (i = 1; i <= Model.NumVariables; i++) {\n/* 1244 */ if ((Solution[i] < Model.LowerBound[i] - 0.01D) && (Model.Nonnegativity[i] != 0))\n/* */ {\n/* 1246 */ Temp = false;\n/* */ }\n/* */ }\n/* 1249 */ return Temp;\n/* */ }", "title": "" }, { "docid": "2854b03077a972fcc18b298bb5006358", "score": "0.56615657", "text": "private void doBacktracking() {\r\n HashMap<Integer,Integer> resultSet=new HashMap<Integer,Integer>();\r\n boolean constaintViolated=false;\r\n for(int variables1:variables){\r\n for (int value1 = 0; value1 < varDomains.values.get(variables1).size(); value1++) {\r\n for (int variable = variables1; variable < varDomains.values.size(); variable++) {\r\n for (int value = value1; value < varDomains.values.get(variables1).size(); value++) {\r\n constaintViolated = constraintsViolated(variable, value, resultSet);\r\n if (!constaintViolated) {\r\n resultSet.put(variable, varDomains.values.get(variable).get(value));\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n endTime=System.currentTimeMillis();\r\n if(resultSet.size()==numberOfVar){\r\n System.out.println(\"Successfully found Solutions. Problem is Consistent\");\r\n }else{\r\n System.out.println(\"Not able to find whole solution. Problem is not consistent\");\r\n }\r\n System.out.print(\"Solution: {\");\r\n for(Integer variables:resultSet.keySet()){\r\n System.out.print(\" X\"+variables+\": \"+resultSet.get(variables)+\",\");\r\n }\r\n System.out.println(\"}\");\r\n long timeElapsed = endTime-startTime;\r\n System.out.println(\"Time taken to execute:\"+timeElapsed+\" milliseconds\");\r\n }", "title": "" }, { "docid": "aa61860224a0d2820cc0d55ee8e884ee", "score": "0.5650716", "text": "public void knapsack(){\n int x[][] = new int[n+1][W+1];\r\n //filling tables\r\n for(int i = 1; i <= n; i++)\r\n for(int j = 0; j <= W; j++)\r\n if((w[i-1] <= j) && (v[i-1]+V[i-1][j-w[i-1]] > V[i-1][j])){\r\n V[i][j] = v[i-1] + V[i-1][j-w[i-1]];\r\n x[i][j] = 1;\r\n }\r\n else{\r\n V[i][j] = V[i-1][j];\r\n x[i][j] = 0;\r\n }\r\n //backtracking\r\n System.out.printf(\"chosen\\n%5s%7s%7s\\n\", \"Item\",\"Weight\",\"Profit\");\r\n int K = W;\r\n for(int i = n; i >= 1; i--)\r\n if(x[i][K] == 1){\r\n System.out.printf(\"%5d%7d%7d\\n\",i,w[i-1],v[i-1]);\r\n K -= w[i-1];\r\n }\r\n System.out.println(\"Maximum profit : \"+V[n][W]);\r\n }", "title": "" }, { "docid": "079aaf585425af4e3cce4ac62ac12bf5", "score": "0.5650337", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\t\r\n\t\tint N = in.nextInt();\r\n\t\tSet<Integer> set = new HashSet<>();\r\n\t\t\r\n\t\tfor(int i = 0; i < N; i++)\r\n\t\t\tset.add(in.nextInt());\r\n\t\t\r\n\t\tstart = System.currentTimeMillis();\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tint[] ar = new int[set.size()];\r\n\t\tfor(int i : set)\r\n\t\t\tar[index++] = i;\r\n\t\t\r\n\t\tArrays.sort(ar);\r\n\t\t\r\n\t\tcomposite = new boolean[100001];\r\n\t\tall = new int[100001][6];\r\n\t\tstarts = new int[100001];\r\n\t\t\r\n\t\tfor(int i = 2; i < composite.length; i++)\r\n\t\t{\r\n\t\t\tif(composite[i]) continue;\r\n\t\t\t\r\n\t\t\tfor(int j = i;j < composite.length; j += i)\r\n\t\t\t{\r\n\t\t\t\tcomposite[j] = true;\r\n\t\t\t\tall[j][starts[j]++] = i;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(System.currentTimeMillis() - start + \" milliseconds\");\r\n\t\t\r\n\t\tN = ar.length;\r\n\t\t\r\n\t\tset = new TreeSet<>();\r\n\t\tfor(int i = 0; i < ar.length; i++)\r\n\t\t{\r\n\t\t\tint num = ar[i];\r\n\t\t\tfor(int j = 0; j < starts[num]; j++)\r\n\t\t\t\tset.add(all[num][j]);\r\n\t\t}\r\n\t\t\r\n\t\tint[] primes = new int[set.size()];\r\n\t\tindex = 0;\r\n\t\t\r\n\t\tfor(int i : set)\r\n\t\t\tprimes[index++] = i;\r\n\t\t\r\n//\t\tSystem.out.println(\"primes \" + Arrays.toString(primes));\r\n\t\t\r\n\t\tHashMap<Integer, Integer> map = new HashMap<>();\r\n\t\tfor(int i = 0; i < primes.length; i++)\r\n\t\t\tmap.put(primes[i], i);\r\n\t\t\r\n\t\tWeightedQuickUnionUF ufo = new WeightedQuickUnionUF(primes.length);\r\n\t\t\r\n//\t\tSystem.out.println(\"ar \" + Arrays.toString(ar));\r\n\t\t\r\n\t\tfor(int i = 0; i < ar.length; i++)\r\n\t\t{\r\n\t\t\tint num = ar[i];\r\n\t\t\t\r\n\t\t\tfor(int j = 1; j < starts[num]; j++)\r\n\t\t\t{\r\n//\t\t\t\tSystem.out.println(all[num][0] + \" \" + all[num][j]);\r\n\t\t\t\t\r\n\t\t\t\tint p = map.get(all[num][0]);\r\n\t\t\t\tint q = map.get(all[num][j]);\r\n\t\t\t\t\r\n//\t\t\t\tSystem.out.println(\"pq: \" + p + \" \" + q);\r\n\t\t\t\tif(!ufo.connected(p, q))\r\n\t\t\t\t{\r\n\t\t\t\t\tufo.union(p, q);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(ufo.count());\r\n\t\t\r\n\t\tin.close();\r\n\t}", "title": "" }, { "docid": "92e9d294e5973ddaa6781b351f4078ec", "score": "0.56453604", "text": "protected PointValuePair doOptimize()\r\n/* 137: */ {\r\n/* 138: 346 */ checkParameters();\r\n/* 139: */ \r\n/* 140: 348 */ this.isMinimize = getGoalType().equals(GoalType.MINIMIZE);\r\n/* 141: 349 */ FitnessFunction fitfun = new FitnessFunction();\r\n/* 142: 350 */ double[] guess = fitfun.encode(getStartPoint());\r\n/* 143: */ \r\n/* 144: 352 */ this.dimension = guess.length;\r\n/* 145: 353 */ initializeCMA(guess);\r\n/* 146: 354 */ this.iterations = 0;\r\n/* 147: 355 */ double bestValue = fitfun.value(guess);\r\n/* 148: 356 */ push(this.fitnessHistory, bestValue);\r\n/* 149: 357 */ PointValuePair optimum = new PointValuePair(getStartPoint(), this.isMinimize ? bestValue : -bestValue);\r\n/* 150: */ \r\n/* 151: 359 */ PointValuePair lastResult = null;\r\n/* 152: 364 */ for (this.iterations = 1; this.iterations <= this.maxIterations; this.iterations += 1)\r\n/* 153: */ {\r\n/* 154: 366 */ RealMatrix arz = randn1(this.dimension, this.lambda);\r\n/* 155: 367 */ RealMatrix arx = zeros(this.dimension, this.lambda);\r\n/* 156: 368 */ double[] fitness = new double[this.lambda];\r\n/* 157: 370 */ for (int k = 0; k < this.lambda; k++)\r\n/* 158: */ {\r\n/* 159: 371 */ RealMatrix arxk = null;\r\n/* 160: 372 */ for (int i = 0; i < this.checkFeasableCount + 1; i++)\r\n/* 161: */ {\r\n/* 162: 373 */ if (this.diagonalOnly <= 0) {\r\n/* 163: 374 */ arxk = this.xmean.add(this.BD.multiply(arz.getColumnMatrix(k)).scalarMultiply(this.sigma));\r\n/* 164: */ } else {\r\n/* 165: 377 */ arxk = this.xmean.add(times(this.diagD, arz.getColumnMatrix(k)).scalarMultiply(this.sigma));\r\n/* 166: */ }\r\n/* 167: 380 */ if ((i >= this.checkFeasableCount) || (fitfun.isFeasible(arxk.getColumn(0)))) {\r\n/* 168: */ break;\r\n/* 169: */ }\r\n/* 170: 384 */ arz.setColumn(k, randn(this.dimension));\r\n/* 171: */ }\r\n/* 172: 386 */ copyColumn(arxk, 0, arx, k);\r\n/* 173: */ try\r\n/* 174: */ {\r\n/* 175: 388 */ fitness[k] = fitfun.value(arx.getColumn(k));\r\n/* 176: */ }\r\n/* 177: */ catch (TooManyEvaluationsException e)\r\n/* 178: */ {\r\n/* 179: */ break;\r\n/* 180: */ }\r\n/* 181: */ }\r\n/* 182: 394 */ int[] arindex = sortedIndices(fitness);\r\n/* 183: */ \r\n/* 184: 396 */ RealMatrix xold = this.xmean;\r\n/* 185: 397 */ RealMatrix bestArx = selectColumns(arx, MathArrays.copyOf(arindex, this.mu));\r\n/* 186: 398 */ this.xmean = bestArx.multiply(this.weights);\r\n/* 187: 399 */ RealMatrix bestArz = selectColumns(arz, MathArrays.copyOf(arindex, this.mu));\r\n/* 188: 400 */ RealMatrix zmean = bestArz.multiply(this.weights);\r\n/* 189: 401 */ boolean hsig = updateEvolutionPaths(zmean, xold);\r\n/* 190: 402 */ if (this.diagonalOnly <= 0) {\r\n/* 191: 403 */ updateCovariance(hsig, bestArx, arz, arindex, xold);\r\n/* 192: */ } else {\r\n/* 193: 405 */ updateCovarianceDiagonalOnly(hsig, bestArz, xold);\r\n/* 194: */ }\r\n/* 195: 408 */ this.sigma *= Math.exp(Math.min(1.0D, (this.normps / this.chiN - 1.0D) * this.cs / this.damps));\r\n/* 196: 409 */ double bestFitness = fitness[arindex[0]];\r\n/* 197: 410 */ double worstFitness = fitness[arindex[(arindex.length - 1)]];\r\n/* 198: 411 */ if (bestValue > bestFitness)\r\n/* 199: */ {\r\n/* 200: 412 */ bestValue = bestFitness;\r\n/* 201: 413 */ lastResult = optimum;\r\n/* 202: 414 */ optimum = new PointValuePair(fitfun.decode(bestArx.getColumn(0)), this.isMinimize ? bestFitness : -bestFitness);\r\n/* 203: 417 */ if ((getConvergenceChecker() != null) && (lastResult != null) && \r\n/* 204: 418 */ (getConvergenceChecker().converged(this.iterations, optimum, lastResult))) {\r\n/* 205: */ break;\r\n/* 206: */ }\r\n/* 207: */ }\r\n/* 208: 425 */ if (this.stopFitness != 0.0D) {\r\n/* 209: 426 */ if (bestFitness < (this.isMinimize ? this.stopFitness : -this.stopFitness)) {\r\n/* 210: */ break;\r\n/* 211: */ }\r\n/* 212: */ }\r\n/* 213: 430 */ double[] sqrtDiagC = sqrt(this.diagC).getColumn(0);\r\n/* 214: 431 */ double[] pcCol = this.pc.getColumn(0);\r\n/* 215: 432 */ for (int i = 0; i < this.dimension; i++)\r\n/* 216: */ {\r\n/* 217: 433 */ if (this.sigma * Math.max(Math.abs(pcCol[i]), sqrtDiagC[i]) > this.stopTolX) {\r\n/* 218: */ break;\r\n/* 219: */ }\r\n/* 220: 436 */ if (i >= this.dimension - 1) {\r\n/* 221: */ break;\r\n/* 222: */ }\r\n/* 223: */ }\r\n/* 224: 440 */ for (int i = 0; i < this.dimension; i++) {\r\n/* 225: 441 */ if (this.sigma * sqrtDiagC[i] > this.stopTolUpX) {\r\n/* 226: */ break;\r\n/* 227: */ }\r\n/* 228: */ }\r\n/* 229: 445 */ double historyBest = min(this.fitnessHistory);\r\n/* 230: 446 */ double historyWorst = max(this.fitnessHistory);\r\n/* 231: 447 */ if ((this.iterations > 2) && (Math.max(historyWorst, worstFitness) - Math.min(historyBest, bestFitness) < this.stopTolFun)) {\r\n/* 232: */ break;\r\n/* 233: */ }\r\n/* 234: 451 */ if ((this.iterations > this.fitnessHistory.length) && (historyWorst - historyBest < this.stopTolHistFun)) {\r\n/* 235: */ break;\r\n/* 236: */ }\r\n/* 237: 456 */ if (max(this.diagD) / min(this.diagD) > 10000000.0D) {\r\n/* 238: */ break;\r\n/* 239: */ }\r\n/* 240: 460 */ if (getConvergenceChecker() != null)\r\n/* 241: */ {\r\n/* 242: 461 */ PointValuePair current = new PointValuePair(bestArx.getColumn(0), this.isMinimize ? bestFitness : -bestFitness);\r\n/* 243: 464 */ if ((lastResult != null) && (getConvergenceChecker().converged(this.iterations, current, lastResult))) {\r\n/* 244: */ break;\r\n/* 245: */ }\r\n/* 246: 468 */ lastResult = current;\r\n/* 247: */ }\r\n/* 248: 471 */ if (bestValue == fitness[arindex[((int)(0.1D + this.lambda / 4.0D))]]) {\r\n/* 249: 472 */ this.sigma *= Math.exp(0.2D + this.cs / this.damps);\r\n/* 250: */ }\r\n/* 251: 474 */ if ((this.iterations > 2) && (Math.max(historyWorst, bestFitness) - Math.min(historyBest, bestFitness) == 0.0D)) {\r\n/* 252: 476 */ this.sigma *= Math.exp(0.2D + this.cs / this.damps);\r\n/* 253: */ }\r\n/* 254: 479 */ push(this.fitnessHistory, bestFitness);\r\n/* 255: 480 */ fitfun.setValueRange(worstFitness - bestFitness);\r\n/* 256: 481 */ if (this.generateStatistics)\r\n/* 257: */ {\r\n/* 258: 482 */ this.statisticsSigmaHistory.add(Double.valueOf(this.sigma));\r\n/* 259: 483 */ this.statisticsFitnessHistory.add(Double.valueOf(bestFitness));\r\n/* 260: 484 */ this.statisticsMeanHistory.add(this.xmean.transpose());\r\n/* 261: 485 */ this.statisticsDHistory.add(this.diagD.transpose().scalarMultiply(100000.0D));\r\n/* 262: */ }\r\n/* 263: */ }\r\n/* 264: */ label1175:\r\n/* 265: 488 */ return optimum;\r\n/* 266: */ }", "title": "" }, { "docid": "c876650d005da06ed929262a4bd80473", "score": "0.56449974", "text": "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int T = scanner.nextInt();\n for(int c = 0;c < T;c++){\n int S = scanner.nextInt();\n int N = scanner.nextInt();\n int weightArray[] = new int[N];\n int valueArray[] = new int[N];\n for(int i = 0; i < N;i++){\n weightArray[i] = scanner.nextInt();\n valueArray[i] = scanner.nextInt();\n }\n Solution solution = new Solution();\n //int maxProfit = solution.RecursiveKnapsack(weightArray,valueArray,S,N);\n //int maxProfit = solution.MemoizeKnapsack(weightArray,valueArray,S,N);\n int maxProfit = solution.TopDownKnapsack(weightArray,valueArray,S,N);\n System.out.println(maxProfit);\n }\n }", "title": "" }, { "docid": "f730af13134e4f5151b3d460fc72437d", "score": "0.5606215", "text": "void calcCYK(int[] w) {\r\n int N = w.length;\r\n\t\tV=new boolean [N][N][VarNum];\r\n\r\n //Fill in your program here\r\n\t\tfor (int step = 0; step < N; ++step) {\r\n\t\t\tfor (int j = step; j < N; ++j) { // j is the second index of the V array\r\n\t\t\t\tint i = j - step; // i is the first index of the V array\r\n\t\t\t\tfor (int var = 0; var < VarNum; ++var) {\r\n\t\t\t\t\tif (step == 0) {\r\n\t\t\t\t\t\tV[i][j][var] = existProd(var, w[j], -1); // for when the substring is of length 1 (initial case)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tboolean exist = false; // true when production var -> v1 v2 exists\r\n\t\t\t\t\t\tint k = i; // i <= k < j\r\n\t\t\t\t\t\twhile (!exist && k < j) {\r\n\t\t\t\t\t\t\tint v1 = 0;\r\n\t\t\t\t\t\t\twhile (!exist && v1 < VarNum) {\r\n\t\t\t\t\t\t\t\tint v2 = 0;\r\n\t\t\t\t\t\t\t\twhile (!exist && v2 < VarNum) {\r\n\t\t\t\t\t\t\t\t\tif (V[i][k][v1] == true && V[k + 1][j][v2] == true) { // only check if v1 is in V_ik and v2 is in V_k+1j\r\n\t\t\t\t\t\t\t\t\t\texist = V[i][j][var] = existProd(var, v1, v2); // set exist to true to stop search\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t++v2;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t++v1;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t++k;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n }", "title": "" }, { "docid": "19579ce74d29d1cfff0835385ba80f01", "score": "0.55999136", "text": "static int findMax(int arr[], int n, int k)\n{\n\t\n\tint dp[][] = new int[k+1][n+1];\n\n\tfor (int i = 1; i <= n; i++)\n\t\tdp[1][i] = sum(arr, 0, i - 1);\n\n\n\tfor (int i = 1; i <= k; i++)\n\t\tdp[i][1] = arr[0];\n\n\t\n\tfor (int i = 2; i <= k; i++) { \n\t\tfor (int j = 2; j <= n; j++) {\n\n\t\t\tint best = Integer.MAX_VALUE;\n\t\t\tfor (int p = 1; p <= j; p++)\n\t\t\t\tbest = Math.min(best, Math.max(dp[i - 1][p],\n\t\t\t\t\t\t\tsum(arr, p, j - 1)));\t\n\t\t\tdp[i][j] = best;\n\t\t}\n\t}\n\treturn dp[k][n];\n}", "title": "" }, { "docid": "32307acffb22ed92daef7ff46b67a7ad", "score": "0.557015", "text": "private static int[][] solve(int[][] points, int k) {\n int[][] result = new int[1][2];\n\n\n Queue<int[]> queue = new PriorityQueue<>(Comparator.comparingInt(a -> (a[0] * a[0] + a[1] * a[1])));\n\n for (int[] i : points) {\n queue.offer(i);\n }\n\n\n int index = 0;\n while (index < k) {\n result[index] = queue.poll();\n index++;\n }\n\n return result;\n }", "title": "" }, { "docid": "e03008a899d1811cbbc9979266cb7499", "score": "0.5564896", "text": "public static void main(String[] args) {\n\t\tScanner sf = new Scanner(System.in);\r\n\t\tint tot = sf.nextInt();\r\n\t\tint[] cor = new int[tot];\r\n\t\tfor (int i = 0; i < cor.length; i++) {\r\n\t\t\tcor[i] = sf.nextInt();\r\n\t\t}\r\n\t\tint[] dp = new int[tot];\r\n\t\tArrays.fill(dp, 0);\r\n\t\tArrays.parallelSort(cor);\r\n\t\t//as we are checking from back of sorted array the first possible answer will be the \r\n\t\t//best answer\r\n\t\tfor (int i = cor.length-1; i >= 2; i--) {\r\n\t\t\tfor (int j = i-1; j >= 1; j--) {\r\n\t\t\t\tfor (int j2 = j-1; j2 >=0; j2--) {\r\n\t\t\t\t\tif(is_triange_possible(cor[i], cor[j], cor[j2])) {\r\n\t\t\t\t\t\tSystem.out.println(cor[j2]+\" \"+cor[j]+\" \"+cor[i]);\r\n\t\t\t\t\t\tsf.close();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(-1);\r\n\t\tsf.close();\r\n\t}", "title": "" }, { "docid": "f260a5741d6d6b01cd85b9af6ecf9d9b", "score": "0.5557925", "text": "public void solve() {\n int t = scanner.nextInt();\n\n for (int i = 1; i <= t; i++) {\n writer.print(\"Case #\");\n writer.print(i + \": \");\n\n // 1 <= N <= 1000\n int n = scanner.nextInt();\n\n int a[] = new int[n];\n int b[] = new int[n];\n\n for (int j = 0; j < n; j++) {\n a[j] = scanner.nextInt();\n b[j] = scanner.nextInt();\n }\n\n writer.println(solve(n, a, b));\n }\n }", "title": "" }, { "docid": "f31303ba89b7cb5b5c3b697a1218754b", "score": "0.5553789", "text": "public int solution1(int[] A){\n\t\tint N = A.length;\n\t\tlong result = 0;\n\n\t\tfor (int i = 0; i < N - 1; i++) {\n\t\t\tfor (int j = i + 1; j < N; j++) {\n\t\t\t\tlong iMax = Math.min((long)i + A[i], N);\n\t\t\t\tlong jMin = Math.max((long)j - A[j], 0);\n\t\t\t\tif (iMax >= jMin) {\n\t\t\t\t\tresult++;\n\t\t\t\t\tif (result > 10E6) {\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn (int) result;\n\t}", "title": "" }, { "docid": "721eac579e48a88129d666b70dbfd2dc", "score": "0.5546914", "text": "public static void main(String[] args) throws IOException {\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tStringTokenizer st = new StringTokenizer(bf.readLine(), \" \");\r\n\t\tint N = Integer.valueOf(st.nextToken());\r\n\t\tint K = Integer.valueOf(st.nextToken());\r\n\t\tint[][] dp = new int[N + 1][K + 1];\r\n\t\tfor (int i = 1; i <= N; i++) dp[i][1] = 1;\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=0;i<=K;i++) dp[0][i] = 1;\r\n\r\n\t\tfor (int n = 1; n <= N; n++) {\r\n\t\t\tfor (int k = 1; k <= K; k++) {\r\n\t\t\t\tif(dp[n][k]!=0) continue;\r\n\t\t\t\tfor (int i = n; i >= 0; i--) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tdp[n][k] += dp[i][k-1];\r\n\t\t\t\t\t\tdp[n][k] %= 1000000000;\r\n\t\t\t\t\t\t//3중 for문 안돌리고 \r\n\t\t\t\t\t\t//dp[n][k] = dp[n][k-1] + dp[n-1][k]; 로 써도 됨\r\n\t\t\t\t\t\t//dp[n-1][k] = dp[n-1][k-1] + dp[n-2][k] 니까\r\n\t\t\t\t\t\t// 쭉 재귀로 내려가면 같음!\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(dp[N][K]);\r\n\t}", "title": "" }, { "docid": "555360ca95e84be7bec3d9bb18ccc4df", "score": "0.5532065", "text": "public static void main(String[] args) {\n\n\t\tint ar[][] = { { 0, 1, 4, 2, 8, 2 }, { 4, 3, 6, 5, 0, 4 }, { 1, 2, 4, 1, 4, 6 }, { 2, 0, 7, 3, 2, 2 },\n\t\t\t\t{ 3, 1, 5, 9, 2, 4 }, { 2, 7, 0, 8, 5, 1 } };\n\n\t\tint dp[][] = new int[ar.length][ar[0].length];\n\n\t\tfor (int j = dp[0].length - 1; j >= 0; j--) { // column\n\t\t\tfor (int i = dp.length - 1; i >= 0; i--) { // row\n\t\t\t\tif (j == dp.length - 1) {\n\t\t\t\t\tdp[i][j] = ar[i][j];\n\t\t\t\t} else if (i == 0) {\n\t\t\t\t\tdp[i][j] = Math.max(dp[i][j + 1], dp[i + 1][j + 1]) + ar[i][j];\n\t\t\t\t} else if (i == dp.length - 1) {\n\t\t\t\t\tdp[i][j] = Math.max(dp[i][j + 1], dp[i - 1][j + 1]) + ar[i][j];\n\t\t\t\t} else {\n\t\t\t\t\tdp[i][j] = Math.max(dp[i][j + 1], Math.max(dp[i + 1][j + 1], dp[i - 1][j + 1])) + ar[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint max = dp[0][0];\n\t\tfor (int i = 1; i < dp.length; i++) {\n\t\t\tif (dp[i][0] > max) {\n\t\t\t\tmax = dp[i][0];\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Max Sum is: \" + max);\n\n\t}", "title": "" }, { "docid": "880bf5e2c6d9a7c4b5b588333d4d10c6", "score": "0.55225015", "text": "int calculate(int[] inputArray) {\n double[][] activations = new double[weightsAndBiases.length][]; //includes input layer\n {//Feed Forward\n activations[0] = new double[weightsAndBiases[0].length];\n for (int node = 0; node < weightsAndBiases[0].length; node++) { //compute each node in first hidden layer\n activations[0][node] = 0.0;\n for (int connection = 0; connection < weightsAndBiases[0][node].length - 1; connection++) {\n activations[0][node] += weightsAndBiases[0][node][connection] * inputArray[connection]; //add weights * connections\n }\n activations[0][node] += weightsAndBiases[0][node][weightsAndBiases[0][node].length - 1]; //add bias\n activations[0][node] = activationFunction(activations[0][node]);\n }\n for (int layer = 1; layer < weightsAndBiases.length; layer++) { //start at the first hidden layer\n activations[layer] = new double[weightsAndBiases[layer].length]; //Activations are as long as # of node in this layer\n for (int node = 0; node < activations[layer].length; node++) {\n activations[layer][node] = 0.0;\n for (int connection = 0; connection < activations[layer - 1].length; connection++) {\n activations[layer][node] += weightsAndBiases[layer][node][connection] * activations[layer - 1][connection];//add weights * connections\n }\n activations[layer][node] += weightsAndBiases[layer][node][activations[layer - 1].length]; //add bias\n activations[layer][node] = activationFunction(activations[layer][node]);\n }\n }\n }//Feed Forward\n int highestIndex = -1;\n double highestValue = Double.MIN_VALUE;\n for (int outputNum = 0; outputNum < activations[activations.length - 1].length; outputNum++) {\n if (activations[activations.length - 1][outputNum] > highestValue) {\n highestValue = activations[activations.length - 1][outputNum];\n highestIndex = outputNum;\n }\n }\n return highestIndex;\n }", "title": "" }, { "docid": "a973612cf88ada774a346dd1bac598b8", "score": "0.55193883", "text": "private void compute() {\n InputReader sc = null;\n try {\n sc = new InputReader(new FileInputStream(\"./resources/littleatremtimemachine\"));\n } catch (FileNotFoundException ex) {\n throw new IllegalArgumentException(ex);\n }\n int n = sc.nextInt();\n Entry[] e = new Entry[n];\n for (int i = 0; i < n; i++) {\n e[i] = new Entry(i + 1, sc.nextInt(), sc.nextInt(), sc.nextInt());\n }\n HeapSort hs = new HeapSort();\n hs.sort(e);\n FenwickTree ft = new FenwickTree(n);\n int ans[] = new int[n];\n Arrays.fill(ans, -1);\n for (int i = 0; i < n;) {\n int j = i;\n for (; j < n && e[j].value == e[i].value;) {\n j++;\n }\n for (int k = i; k < j; k++) {\n Entry ee = e[k];\n if (ee.action == 0) {\n ans[ee.idx - 1] = ft.rsq(ee.idx);\n } else {\n ft.update(ee.idx, ee.action);\n }\n }\n for (int k = i; k < j; k++) {\n Entry ee = e[k];\n if (ee.action != 0) {\n ft.update(ee.idx, -ee.action);\n }\n }\n i = j;\n }\n for (int i = 0; i < n; i++) {\n if (ans[i] >= 0) {\n System.out.println(ans[i]);\n }\n }\n }", "title": "" }, { "docid": "4b87c06ec17ab1eca7f803538a83ae3e", "score": "0.5508129", "text": "public static void main(String[] args) {\n\t\tint[] arr1 = {1,2,3,4,5,6};\n\t\tArrayList<ArrayList<Integer>> solution1 = TestCombinations.calculate(arr1,6);\n\t\toutput(arr1, solution1, 1, 6);\n\t\t\n\t\tint[] arr2 = {5,5,15,10};\n\t\tArrayList<ArrayList<Integer>> solution2 = TestCombinations.calculate(arr2,15);\n\t\toutput(arr2, solution2, 2, 15);\n\t\t\n\t\tint[] arr3 = {1};\n\t\tArrayList<ArrayList<Integer>> solution3 = TestCombinations.calculate(arr3,1);\n\t\toutput(arr3, solution3, 3, 1);\n\t\t\n\t\tint[] arr4 = {};\n\t\tArrayList<ArrayList<Integer>> solution4 = TestCombinations.calculate(arr4,10);\n\t\toutput(arr4, solution4, 4, 10);\n\t\t\n\t\tint[] arr5 = {1,2,3,4,5,6,7,8,9};\n\t\tArrayList<ArrayList<Integer>> solution5 = TestCombinations.calculate(arr5,74);\n\t\toutput(arr5, solution5, 5, 74);\n\t\t\n\t\tint[] arr6 = {1,1,1,1};\n\t\tArrayList<ArrayList<Integer>> solution6 = TestCombinations.calculate(arr6,4);\n\t\toutput(arr6, solution6, 6, 4);\n\t\t\n\t\tint[] arr7 = {10,8,6,4,2,2};\n\t\tArrayList<ArrayList<Integer>> solution7 = TestCombinations.calculate(arr7,12);\n\t\toutput(arr7, solution7, 7, 12);\n\t\t\n\t\tint[] arr8 = {1000000000,1000000,1000000,1000,99999};\n\t\tArrayList<ArrayList<Integer>> solution8 = TestCombinations.calculate(arr8,1001000);\n\t\toutput(arr8, solution8, 8, 1001000);\n\t\t\n\t\tint[] arr9 = {1,2,3,4,5,6};\n\t\tArrayList<ArrayList<Integer>> solution9 = TestCombinations.calculate(arr9,0);\n\t\toutput(arr9, solution9, 9, 0);\n\t\t\n\t\tint[] arr10 = {0,0,0,0,0,0};\n\t\tArrayList<ArrayList<Integer>> solution10 = TestCombinations.calculate(arr10,15);\n\t\toutput(arr10, solution10, 10, 15);\n\t}", "title": "" }, { "docid": "6028e474f49f4c0a37f4d63badba510d", "score": "0.55078256", "text": "public void solve() {\n Random random = new Random(112);\n for(int tries = 0; tries < 100; tries++) {\n Node arr[] = new Node[2 * n - 1];\n for (int i = 0; i < 2 * n - 1; i++) {\n arr[i] = new Node(0);\n }\n int m = random.nextInt(10);\n Request reqs[] = new Request[m];\n for (int i = 0; i < m; i++) {\n String color;\n if (random.nextBoolean()) {\n color = \"W\";\n } else {\n color = \"B\";\n }\n int left = 1 + random.nextInt(n);\n int delta = 1 + random.nextInt(n - left + 1);\n reqs[i] = new Request(color, left, delta);\n }\n\n\n int res[][] = new int[m][2];\n for (int i = 0; i < m; i++) {\n int sum;\n int segments;\n if (reqs[i].color.equals(\"W\")) {\n int left = reqs[i].left - 1;\n int delta = reqs[i].delta - 1;\n sum = set(0, 0, n - 1, left, left + delta, 0, arr);\n segments = arr[0].segments;\n } else {\n int left = reqs[i].left - 1;\n int delta = reqs[i].delta - 1;\n sum = set(0, 0, n - 1, left, left + delta, 1, arr);\n segments = arr[0].segments;\n }\n res[i][0] = segments;\n res[i][1] = sum;\n }\n int[][] rightRes = countRightAnswer(reqs);\n if (!isEqualAnswer(rightRes, res, m)) {\n System.out.println(\"Ah shit\");\n System.out.println(\"expected: \");\n for (int i = 0; i < m; i++) {\n System.out.println(rightRes[i][0] + \" \" + rightRes[i][1]);\n }\n System.out.println(\"actual: \");\n for (int i = 0; i < m; i++) {\n System.out.println(res[i][0] + \" \" + res[i][1]);\n }\n System.out.println(\"request: \");\n System.out.println(reqs.length);\n for (int i = 0; i < m; i++) {\n System.out.println(reqs[i].color + \" \" + reqs[i].left + \" \" + reqs[i].delta);\n }\n break;\n }\n }\n\n }", "title": "" }, { "docid": "99bc4724d8a24244a87781790cce2be7", "score": "0.5505258", "text": "public static int[] solution(int[] A, int[] B, int N) {\n\n\n int[] factArray = sieve(N); \n int[] semiPrimes = new int[N +1];\n\n // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]\n // [0, 0, 0, 0, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 5, 2]\n // [0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1]\n // [0, 0, 0, 0, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 9, 10]\n // [0, 0, 0, 0, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 5, 2]\n for (int i = 0; i < semiPrimes.length; i++) {\n\n // int k = i / factArray[i] factArray[k] == 0 means the number in the k index is prime\n if (factArray[i] != 0 && factArray[i / factArray[i]] == 0) {\n semiPrimes[i] = 1;\n }\n }\n\n int[] semiPrimesPreSum = prefixSum(semiPrimes);\n int[] res = new int[A.length];\n\n\n /*\n Q[0] = 26\n Q[1] = 10\n Q[2] = 20\n\n P[0] = 1 \n P[1] = 4 \n P[2] = 16 \n */\n\n // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]\n // [0, 0, 0, 0, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 0, 2, 3, 2, 0, 2, 5, 2]\n // [0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1]\n\n // [0, 0, 0, 0, 1, 1, 2, 2, 2, 3, 4, 4, 4, 4, 5, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 9, 10]\n\n for (int i = 0; i < B.length; i++) {\n res[i] = semiPrimesPreSum[B[i]] - semiPrimesPreSum[A[i] - 1];\n }\n\n return res;\n }", "title": "" }, { "docid": "86e8b1da42a92deb7d1da7b11fbb2835", "score": "0.5500265", "text": "@Override\r\n\t\tprotected void compute() {\n\t\t\tif (high - low < THRESHOLD) {\r\n\t\t\t\tRandom rand = new Random();\r\n\t\t\t\tfor (int i = low; i < high; i++) {\r\n\t\t\t\t\tarr[i] = rand.nextInt();\r\n\t\t\t\t}\r\n\t\t\t\tlock.lock();\r\n\t\t\t\tnumTasks += 1;\r\n\t\t\t\tlock.unlock();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Divide the subarray into two halves of (almost) equal size\r\n\t\t\t\tint mid = (low + high) / 2;\r\n\t\t\t\t\r\n\t\t\t\t// Recurse on the two halves in parallel\r\n\t\t\t\tinvokeAll(new AssignTask(arr, low, mid), new AssignTask(arr, mid, high));\r\n\t\t\t\t//The above line is a simpler way to do the following in comments\r\n\t\t\t\t\r\n//\t\t\t\tRecursiveAction left = new AssignTask(arr, low, mid);\r\n//\t\t\t\tRecursiveAction right = new AssignTask(arr, mid, high);\r\n//\t\t\t\tleft.fork(); \r\n//\t\t\t\tright.fork();\r\n//\t\t\t\tleft.join();\r\n//\t\t\t\tright.join();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "08d23d83a5ac130bbf0537aab54ae994", "score": "0.5496751", "text": "static int solve(int start, int end) {\n\n if(start == end) return 0; // 같을 경우 빠져나옴\n if(dp[start][end] != 0) return dp[start][end];\n\n dp[start][end] = Integer.MAX_VALUE;\n\n for(int i = start; i < end; i++) {\n dp[start][end] = Math.min(dp[start][end], solve(start, i) + solve(i+1, end)\n + (matrixs[start][0] * matrixs[i][1] * matrixs[end][1]));\n// for(int k = 1 ; k <= N; k++) {\n// for(int j = 1; j <= N; j++) {\n// System.out.print(dp[k][j] + \" \");\n// }\n// System.out.println();\n// }\n }\n\n return dp[start][end];\n }", "title": "" }, { "docid": "15b4329ecf230711f21dcdd02c60155d", "score": "0.54925704", "text": "@Test\n\tpublic void example1() {\n\t\tSystem.out.println(\"Example 1\");\n\t\tint[] nums = { 1, 2, 3, 4 }; // [24, 12, 8, 6]\n\t\tSystem.out.println(bruteForce(nums));\n\t\tSystem.out.println(optimizedSolution(nums));\n\t}", "title": "" }, { "docid": "022c9d5b86db3bde8ec2f26c23d2aa85", "score": "0.5487062", "text": "public int solution(int[] A) {\n int N = A.length;\n \n // test for every possible slice of length 2 or 3\n double min = Double.MAX_VALUE;\n int minIndex = 0;\n for (int p=0; p<N-1; p++) {\n double sum = A[p];\n for (int q=p+1; q<=p+2 && q<N; q++) { \n \t// only slices length 2 or 3 (any larger slice is made up of smaller ones,\n \t// so it can't have smaller average)\n sum += A[q];\n double avg = sum / (q-p+1);\n if (avg < min) {\n min = avg;\n minIndex = p;\n }\n }\n }\n\n return minIndex;\n }", "title": "" }, { "docid": "d4168ccd0ae8f7cb36e4ebfa60774761", "score": "0.54777116", "text": "public static int solution(int n) {\n int[] dp = new int[n + 1];\n for (int i = 1; i <= n; i++) {\n dp[i] = dp[i - 1] + 1;\n for (int j = 0; j < i - 2; j++)\n dp[i] = Math.max(dp[i], dp[j] * (i - j - 1));\n }\n return dp[n];\n }", "title": "" }, { "docid": "d7747d115cf795f1972279258daa5795", "score": "0.5477287", "text": "public void findSolutions() {\n allSquares[0][0].fillInnRemainingOfBoard();\n }", "title": "" }, { "docid": "79864213acd7bdd21af3d866155712d4", "score": "0.54684705", "text": "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int[][] arr = new int[N][N];\n for(int i=0;i<N;i++){\n for(int j=0;j<N;j++){\n arr[i][j] = s.nextInt();\n }\n }\n System.out.println(solve(arr));\n // System.out.println(Arrays.deepToString(arr));\n }", "title": "" }, { "docid": "392beb3111a1c618a8d5752ff294361b", "score": "0.5459821", "text": "public static void experiment(\n NPuzzleState goalState, Queue<TreeNode<NPuzzleState>> frontier) {\n \t//Initialize Maps to record length frequency & no.of steps cumulated\n TreeMap<Integer,Integer> freq_h1 = new TreeMap<Integer,Integer>();\n TreeMap<Integer,Integer> freq_h2 = new TreeMap<Integer,Integer>();\n TreeMap<Integer,Double> step_h1 = new TreeMap<Integer,Double>();\n TreeMap<Integer,Double> step_h2 = new TreeMap<Integer,Double>();\n System.out.println(\"length,step_h1,step_h2,num_h1,num_h2\");\n for (int i = 0; i < 1000; i++){\n NPuzzleState initState = new NPuzzleState(8); // random\n if (!NPuzzle.isSolvable(initState, goalState)) {\n i--;\n continue;\n }\n // Experiment to evaluate a search setting\n // [start:8]\n // Priority Queue: A* with h1 \n Queue<TreeNode<NPuzzleState>> frontierh1 = new PriorityQueue<>(new HeuristicComparator(goalState, 1, true));\n // Priority Queue: A* with h2\n Queue<TreeNode<NPuzzleState>> frontierh2 = new PriorityQueue<>(new HeuristicComparator(goalState, 2, true));\n //Solve the puzzle\n Pair<ArrayList<Action>, Integer> solutionh1 = solve(initState, goalState, frontierh1, true, 500000);\n Pair<ArrayList<Action>, Integer> solutionh2 = solve(initState, goalState, frontierh2, true, 500000);\n //Putting results into the Maps\n if(!freq_h1.containsKey(solutionh1.l.size())){\n \tfreq_h1.put(solutionh1.l.size(),0); \t\n \tstep_h1.put(solutionh1.l.size(),0.0);\n }\n if(!freq_h2.containsKey(solutionh2.l.size())){\n \tfreq_h2.put(solutionh2.l.size(),0);\n \tstep_h2.put(solutionh2.l.size(),0.0);\n }\n freq_h1.put(solutionh1.l.size(), freq_h1.get(solutionh1.l.size())+1);\n step_h1.put(solutionh1.l.size(), (double)(step_h1.get(solutionh1.l.size())+solutionh1.r));\n freq_h2.put(solutionh2.l.size(), freq_h2.get(solutionh2.l.size())+1);\n step_h2.put(solutionh2.l.size(), (double)(step_h2.get(solutionh2.l.size())+solutionh2.r));\n // [end:8]\n } \n //Finding average steps for h1 & h2\n for(Integer i:freq_h1.keySet()){\n \tstep_h1.put(i, (step_h1.get(i)/freq_h1.get(i)));\n }\n for(Integer i:freq_h2.keySet()){\n \tstep_h2.put(i, (step_h2.get(i)/freq_h2.get(i)));\n }\n DecimalFormat d = new DecimalFormat(\"#0.#\");\n int max = freq_h1.lastKey();\n if(freq_h1.lastKey() < freq_h2.lastKey()) max = freq_h2.lastKey();\n //Printing out results\n for(int i=0;i<=max;i++){\n \tdouble sh1=0.0,sh2=0.0;\n \tint nh1=0,nh2=0;\n \tif(step_h1.get(i) != null) sh1 = step_h1.get(i);\n \tif(step_h2.get(i) != null) sh2 = step_h2.get(i);\n \tif(freq_h1.get(i) != null) nh1 = freq_h1.get(i);\n \tif(freq_h2.get(i) != null) nh2 = freq_h2.get(i);\n \tif(nh1 != 0 || nh2 != 0) System.out.println(i+\",\"+d.format(sh1)+\",\"+d.format(sh2)+\",\"+nh1+\",\"+nh2);\n }\n }", "title": "" }, { "docid": "a4204531785234b6794a361abd2b4e5a", "score": "0.5458541", "text": "public static int minCost(int[] arr, int[] freq){\n\t\t\n\t\tint [][] dp = new int[arr.length][arr.length];\n\t\tfor(int i = 0; i< dp.length; i++){\n\t\t\tdp[i][i] = freq[i];\n\t\t}\n\t\t\n\t\tfor(int l = 2; l <=arr.length; l++){\n\t\t\tfor(int i = 0; i <= arr.length-l; i++){\n\t\t\t\tint j = i + l -1;\n\t\t\t\tdp[i][j] = Integer.MAX_VALUE;\n\t\t\t\tint sum = getSum(freq, i, j);\n\t\t\t\t\n\t\t\t\tfor(int k=i; k <= j; k++){\n int val = sum + (k-1 < i ? 0 : dp[i][k-1]) +\n (k+1 > j ? 0 : dp[k+1][j]) ;\n if(val < dp[i][j]){\n dp[i][j] = val;\n }\n }\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[0][arr.length-1];\n\t}", "title": "" }, { "docid": "57e7b22b6a166367550fe605bef79a8d", "score": "0.54576886", "text": "private static void selector(int start) {\n for(int i=start;i<N;i++){\n if((start+arr[i][0])<=N){\n// System.out.println(arr[i][1]);\n ori[i] = arr[i][1];\n for(int j=0;j<N;j++){\n// System.out.println(ori[j]);\n SUM = SUM + ori[j];\n }\n if(MAX<SUM){\n MAX = SUM;\n for(int j=0;j<N;j++){\n System.out.println(\"ori : \"+ori[j]+\", i : \"+(start+arr[i][0]));\n }\n System.out.println(\"\");\n }\n SUM = 0;\n selector(start+arr[i][0]);\n// System.out.println(i+\",\" +ori[i]);\n ori[i] = 0;\n }else{\n// System.out.println(\"else : \"+(arr[i][1]));\n for(int j=0;j<N;j++){\n SUM = SUM + ori[j];\n// System.out.println(ori[j]);\n// ori[j] = 0;\n }\n if(MAX<SUM){\n System.out.println(SUM);\n// for(int j=0;j<N;j++){\n// System.out.println(\"ori : \"+ori[j]);\n// }\n MAX = SUM;\n }\n// System.out.println(\"\");\n SUM = 0;\n }\n }\n }", "title": "" }, { "docid": "4ac4f4c100fe78b9de3acf5050a48262", "score": "0.545652", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tN = sc.nextInt();\n\t\tinput = new int[N+1][6];\n\t\t\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tfor(int j=0;j<6;j++) {\n\t\t\t\tinput[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<6;i++) {\n\t\t\tif(N<5001) {\n\t\t\t\tsum = 0;\n\t\t\t\trecursion(0,i);\n\t\t\t\tsl.add(sum);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif(N<5001) {\n\t\t\tSystem.out.println(Collections.max(sl));\n\t\t}else if(N==10000 && input[10000][5]==1) {\n\t\t\tSystem.out.println(\"56058\");\n\t\t\t//long used = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n\t\t\t//System.out.println((float) used/mb+\"mb\");\n\t\t}\n\t\t/*\n\t\tfor(int i: sl) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t*/\n\t\t//Runtime.getRuntime().gc();\n\t\t//System.out.println();\n\t\t//long used = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n\t\t//System.out.println((float) used/mb+\"mb\");\n\t}", "title": "" }, { "docid": "f0fdbdc3eef311bbaf2558796fdbe504", "score": "0.5455431", "text": "static int M(int[] v, int[] w, int C){\n\t\tint[] sol, mySol;\n\t\tint i, myFinalSol;\n\n\t\tsol = new int[v.length];\n\t\tmySol = new int[v.length];\n\n\t\t/* -------\n\t\tBase cases\n\t\t-------- */\n\t\tif ( C == 0 ){\n\t\t\treturn(0);\n\t\t}\n\n\t\t/* ==============================================\n\t\tDivide and conquer procedure\n\t\t============================================== */\n\n\t\t/* ---------------------------------------\n\t\tSolve the appropriate smaller problems\n\t\t--------------------------------------- */\n\t\tfor ( i = 0; i < v.length; i++ ){\n\t\t\tif ( C >= w[i] )\n\t\t\tsol[i] = M( v, w, C-w[i] ); // Knapsack capacity reduced by w[i]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// because it has item i packed in \n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t// it already \n\t\t\telse\n\t\t\tsol[i] = 0;// Not enough space to pack item i\n\t\t}\n\n\t\t/* ---------------------------------------------\n\t\tUse the solutions to the smaller problems\n\t\tto solve original problem\n\t\t--------------------------------------------- */\n\t\tfor ( i = 0; i < v.length; i++ ){\n\t\t\tif ( C >= w[i] )\n\t\t\t\tmySol[i] = sol[i] + v[i]; // Value is increased by v[i]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// because it has item i packed in \n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t// it already\n\t\t\telse\n\t\t\t\tmySol[i] = 0; // Not enough space to pack item i\n\t\t}\n\n\t\t/* *************************\n\t\tFind the best (maximum)\n\t\t************************* */\n\t\tmyFinalSol = mySol[0];\n\t\tfor ( i = 1; i < v.length; i++ )\n\t\t\tif ( mySol[i] > myFinalSol )\n\t\t\t\tmyFinalSol = mySol[i];\n\n\t\treturn myFinalSol; \t// Return the overal best solution\n\t}", "title": "" }, { "docid": "a6ded10027018857c1c3fbff0e70e450", "score": "0.545243", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tint []A= {0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0};\r\n\t\t//[-1, -2, -3, -4, -5, -4, -3, -2, -1, -2, -1, -2]\r\n\t\t\t\r\n\t\t\t//{ 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1 };\r\n\t\t\t\t // [-1, 0, 1, 0, 1, 0, 1, 0, -1, 0, 1]\r\n\t\t//-1, 0, -1, -2, -1, -2, -1, -2, -1, 0, -1, -2, -3\r\n\t\t\r\n\t\tContiguousArray ca = new ContiguousArray();\r\n\t\tint solve = ca.solve(A);\r\n\t\tSystem.out.println(solve);\r\n\r\n\t}", "title": "" }, { "docid": "bbc458667f4a770d8927d1ab204ba76b", "score": "0.5450349", "text": "public void compute()\r\n{\r\n int def[]=new int[nodes-1];\r\n for(int i=1;i<nodes;i++)\r\n def[i-1]=i; tripcost=costCalculator(0,def,nodes-1);\r\n buildTrip();\r\n}", "title": "" }, { "docid": "c12ed88e08ce30a14307ac9b49950a6d", "score": "0.54482526", "text": "public static void method1(int[] s, int sum){\r\n \t\r\n \tlong[][] mat = new long[s.length+1][sum+1];\r\n \r\n for(int i=0;i<sum+1;i++)\r\n \t\tmat[0][i]=Integer.MAX_VALUE;\r\n \r\n for(int i=1;i<=s.length;i++){\r\n for(int j=0;j<=sum;j++){\r\n \t\r\n \t\r\n if(j==0)\r\n mat[i][j]=0;\r\n \r\n else if(j>=s[i-1])\r\n mat[i][j]=Math.min(mat[i-1][j],1+mat[i][j-s[i-1]]);\r\n \r\n else\r\n mat[i][j]=mat[i-1][j];\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n System.out.println(mat[s.length][sum]);\r\n }", "title": "" }, { "docid": "1847a814f85992f1091da71cb5ad0413", "score": "0.5435436", "text": "public int jumpDp(int[] A) {\n if (A == null && A.length < 1) {\n return -1;\n }\n\n int len = A.length;\n\n int[] f = new int[len];\n f[len - 1] = 0;\n\n for (int i = len - 2; i >= 0; i--) {\n if (A[i] + i >= len - 1) {\n f[i] = 1;\n } else {\n int min = Integer.MAX_VALUE;\n for (int j = i + 1; j <= A[i] + i; j++) {\n if (f[j] != 0 && min > f[j]) {\n min = f[j];\n }\n if (min != Integer.MAX_VALUE) {\n f[i] = min + 1;\n } else {\n f[i] = 0;\n }\n }\n }\n }\n return f[0];\n }", "title": "" }, { "docid": "f79e332b210b2bb4c017088dbb0ed725", "score": "0.5429685", "text": "public static int solve(int[] A) {\n int max = Integer.MIN_VALUE;\n long n = A.length;\n int mod = 1000000007;\n for (int i=0;i<n;i++) {\n max = Math.max(max, A[i]);\n }\n long powerOf2 = 1;\n int j=0;\n long total_subarrays = ((n * (n+1)) % mod)/2;\n long sum = 0;\n while (powerOf2 <= max) {\n int i=0;\n long subarrays = total_subarrays;\n while (i < n) {\n // ignoring all the 1s\n while (i < n && ((A[i] >> j) & 1) == 1) {\n i++;\n }\n if (i == n) {\n continue;\n }\n int s = i;\n // count the consecutive 0s\n while (i < n && ((A[i] >> j) & 1) == 0) {\n i++;\n }\n // count of consecutive 0s\n long k = i - s;\n long zeroes_subarrays = ((k * (k + 1)) % mod)/2;\n // no. of subarrays which has jth bit set\n subarrays = (subarrays - zeroes_subarrays + mod) % mod;\n }\n sum = (sum % mod + (subarrays % mod * (powerOf2 % mod)) % mod) % mod;\n j++;\n powerOf2 = (powerOf2 << 1) % mod;\n }\n return (int)sum % mod;\n }", "title": "" }, { "docid": "ea9cc5a589e8b5d868dacd84b6ade8f1", "score": "0.54282564", "text": "public int maxSumDivThreeKnapsackVersion(int[] nums) {\n\n int total = 0;\n\n for(int num : nums){\n total += num;\n }\n\n boolean[][] dp = new boolean[nums.length + 1][total + 1];\n\n dp[0][0] = true;\n\n for(int i = 1; i < dp.length; i++){\n for(int j = 1; j < dp[0].length; j++){\n dp[i][j] = dp[i - 1][j];\n if(j < nums[i - 1]){\n continue;\n }\n\n if(j == nums[i - 1]){\n dp[i][j] = true;\n continue;\n }\n\n dp[i][j] = dp[i - 1][j - nums[i - 1]] || dp[i][j];\n\n }\n }\n\n for(int j = dp[0].length - 1; j >= 0; j--){\n if(dp[nums.length][j] && j % 3 == 0){\n return j;\n }\n }\n\n return 0;\n }", "title": "" }, { "docid": "c9664d7bad067f00224671547604ab61", "score": "0.54246026", "text": "public static void main(String[] args) {\n\t\tint arr[] = {8, 3, 1, 2};\n\t\tint n = arr.length;\n\t\tint arrSum =0;\n\t\tint curVal =0;\n\t\tfor(int i = 0; i< n;i++) {\n\t\t\tcurVal += i*arr[i];\n\t\t\tarrSum += arr[i];\n\t\t}\n\t\tint maxVal = curVal;\n\t\tfor(int j = 1;j<n;j++) {\n\t\t\t\n\t\t\tcurVal += (arrSum - n*arr[n-j]);\n\t\t\tif(curVal > maxVal) {\n\t\t\t\tmaxVal = curVal;\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tSystem.out.println(maxVal);\n\t}", "title": "" }, { "docid": "ce19120c2655e808854d27a7dfc48bf0", "score": "0.5418059", "text": "public double new21Game(int N, int K, int W) {\n if(K == 0 || N >= K+W) return 1;\n double[] dp = new double[N+1];\n double Wsum = 1, res = 0;\n dp[0] = 1;\n for(int i = 1; i <= N; i++){\n dp[i] = Wsum / W;\n if(i < K){\n Wsum += dp[i];\n }else{\n res += dp[i];\n }\n if(i-W >= 0){\n Wsum -= dp[i-W];\n }\n }\n return res;\n}", "title": "" }, { "docid": "0c4ba6701af03b519304217397dbce34", "score": "0.5417958", "text": "public int solution(int[] T) {\n int sum=0,sum1=0,sum2=0,count=1,k=0;\n\t \n int a[]=new int[T.length];\n int u[]=new int[T.length];\n \n for(int i=0;i<T.length;i++)\n {\n \n \n if(u[i]==0)\n {\n for(int j=i+1;j<T.length;j++)\n {\n if(T[i]==T[j])\n {\n count++;\n u[j]=1;\n }\n }\n a[k]=count;\n sum=sum+count;\n count=1;\n k++;\n \n }\n \n } \n \n \n for(int i=0;i<k;i++)\n {\n if(a[i]>=(sum/2))\n { \n return k;\n \n }\n if(a[i]>1)\n {\n sum1=sum1+a[i]-1;\n sum2=sum2+1;\n }\n else\n sum2=sum2+1;\n if(sum2==(sum/2))\n { return sum2;\n \n }\n \n }\n \n\t\treturn sum2;\n }", "title": "" }, { "docid": "510653e8c5596dc272e14e5eba99413d", "score": "0.541674", "text": "public static void main(String[] args) {\n\n int[] a = new int[]{-1, 1, 1, -1, -1, 1, -1, -1, 1, -1, -1, 1, -1, -1, 1};\n int[][] res = new int[15][15];\n for (int i = 0; i < a.length; i++) {\n for (int j = 0; j < a.length; j++) {\n res[i][j] = a[i] * a[j];\n if (i == j) {\n res[i][j] = 0;\n }\n }\n }\n sout(res);\n\n int[] b = new int[]{1, 1, 1, 1, -1, 1, 1, -1, 1, 1, -1, 1, 1, 1, 1};\n int[][] res2 = new int[15][15];\n for (int i = 0; i < b.length; i++) {\n for (int j = 0; j < b.length; j++) {\n res2[i][j] = b[i] * b[j];\n if (i == j) {\n res2[i][j] = 0;\n }\n }\n }\n\n System.out.println(\"2\");\n\n sout(res2);\n\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[i].length; j++) {\n res[i][j] += res2[i][j];\n }\n }\n\n System.out.println(\"3-W\");\n sout(res);\n\n\n int[] a_relax = new int[15];\n\n for (int i = 0; i < a_relax.length; i++) {\n for (int k = 0; k < a.length; k++) {\n a_relax[i] += a[i] * res[k][i];\n }\n }\n\n System.out.println(\"1 - check\");\n sout(a_relax);\n\n a_relax = activ(a_relax);\n\n System.out.println(\"1 - activation\");\n sout(a_relax);\n\n int[] a_relax_w = new int[15];\n\n for (int i = 0; i < a_relax_w.length; i++) {\n for (int k = 0; k < a.length; k++) {\n a_relax_w[i] += a_relax[i] * res[k][i];\n }\n }\n\n System.out.println(\"1 - activation - state2\");\n a_relax_w = activ(a_relax_w);\n sout(a_relax_w);\n\n int[] b_relax = new int[15];\n\n for (int i = 0; i < b_relax.length; i++) {\n for (int k = 0; k < a.length; k++) {\n b_relax[i] += a[i] * res[k][i];\n }\n }\n\n System.out.println(\"2 - check\");\n sout(b_relax);\n\n b_relax = activ(b_relax);\n\n System.out.println(\"2 - activation\");\n sout(b_relax);\n\n int[] b_relax_w = new int[15];\n\n for (int i = 0; i < b_relax_w.length; i++) {\n for (int k = 0; k < a.length; k++) {\n b_relax_w[i] += b_relax[i] * res[k][i];\n }\n }\n\n System.out.println(\"2 - activation - state2\");\n b_relax_w = activ(b_relax_w);\n sout(b_relax_w);\n\n\n int[] b_relax_w_w = new int[15];\n\n for (int i = 0; i < b_relax_w_w.length; i++) {\n for (int k = 0; k < a.length; k++) {\n b_relax_w_w[i] += b_relax_w[i] * res[k][i];\n }\n }\n\n System.out.println(\"2 - activation - state3\");\n b_relax_w_w = activ(b_relax_w_w);\n sout(b_relax_w_w);\n\n\n int[] final_relax = new int[15];\n int[] in = new int[]{-1, -1, -1, -1, 1, -1, -1, 1, -1, -1, 1, -1, -1, -1, -1};\n\n for (int i = 0; i < final_relax.length; i++) {\n for (int k = 0; k < a.length; k++) {\n final_relax[i] += in[i] * res[k][i];\n }\n }\n\n System.out.println(\"final - relax\");\n final_relax = activ(final_relax);\n sout(final_relax);\n\n int[] final_relax_w = new int[15];\n\n for (int i = 0; i < final_relax_w.length; i++) {\n for (int k = 0; k < a.length; k++) {\n final_relax_w[i] += final_relax[i] * res[k][i];\n }\n }\n\n System.out.println(\"final - relax state 2\");\n final_relax_w = activ(final_relax_w);\n sout(final_relax_w);\n }", "title": "" }, { "docid": "776a69551cd39c43f0c37e758b5e9928", "score": "0.5413057", "text": "public void unitCostfn(int K){ \r\n\tint i, j;\r\n\tint k=K;\r\n\tint[] k_array = new int[k];\r\n\t\r\n\tfor(int l=0;l<k_array.length;l++)\r\n\t{\r\n\t\tk_array[l] = 0;\r\n\t}\r\n\t\tfor (i=0;i<N;i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tfor (j=0;j<N;j++)\r\n\t\t\t{\r\n\t\t\t\tif (i==j)\r\n\t\t\t\t{\r\n\t\t\t\t\ta[i][j] = 0;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\ta[i][j] = 200;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor(int p=0;p<k;p++)\r\n\t\t\t{ \r\n\t\t\t k_array[p]=0;\r\n\r\n\t\t\t do{\r\n\t\t\t int random =rand.nextInt(N);\r\n\t\t\t boolean flag=false;\r\n\t\t\t for(int q=0;q<p;q++)\r\n\t\t\t {\r\n\t\t\t if(k_array[q]==random)\r\n\t\t\t flag=true;\r\n\t\t\t }\r\n\t\t\t if(!flag)\r\n\t\t\t {\r\n\t\t\t k_array[p]=random;\r\n\t\t\t break;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t while(true) ;\r\n\t\t\t}\r\n\t\t\tfor (int d=0;d<k;d++)\r\n\t\t\t{\r\n\t\t\tif(i == k_array[d])\r\n\t\t\t\ta[i][k_array[d]+1]=1;\r\n\t\t\t\r\n\t\t\telse\r\n\t\t\t\ta[i][k_array[d]]=1;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t}\r\n\t\t\r\n}", "title": "" }, { "docid": "ca04c9660c598d616d268a8025ae327e", "score": "0.5411258", "text": "static int dp(int[] arr, int[] d, int n){\n if(n == 0){\n return arr[0];\n }\n if(n == 1){\n return Math.max(arr[0], arr[1]);\n }\n if(d[n] != 0){\n return d[n];\n }\n d[n] = Math.max(dp(arr, d, n-1), dp(arr, d, n-2) + arr[n]);\n return d[n];\n }", "title": "" }, { "docid": "8128c5a40100171ec2935176f3ee3eb0", "score": "0.54083365", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n N = sc.nextInt();\n arr = new int[N][2];\n ori = new int[N];\n \n for(int i=0; i<N; i++){\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n }\n \n \n// for(int i=0; i<N; i++){\n// select(i);\n// if(MAX<SUM){\n// MAX = SUM;\n// }\n// System.out.println(\"SUM : \"+SUM);\n// SUM = 0;\n// }\n// select_real(0);\n// selector(0);\n// myselector(0);\n sel(0);\n System.out.println(MAX);\n \n \n }", "title": "" }, { "docid": "ac02fc24843387d7920a23ef58fd9fd2", "score": "0.54030824", "text": "public int solution(int[] A) {\n if (A.length <= 0){\n return 0;\n }\n // sort array in ascending order (0 ≤ P < Q < R < N)\n Arrays.sort(A);\n\n int tripCount = 0;\n // step through array comparing the elements as explained\n for (int i = 0; i < A.length-2; i++){\n int P = A[i];\n int Q = A[i + 1];\n int R = A[i + 2];\n if (((long)P + (long)Q > (long)R)\n && ((long)Q + (long)R > (long)P)\n && ((long)P + (long)R > (long)Q)) {\n }\n return 1;\n }\n return 0;\n }", "title": "" }, { "docid": "0dff45f92e9306eee5fa6c0976527a60", "score": "0.5399599", "text": "public Iterable<Board> solution() {\n\n Queue<Board> d0 = new Queue<>();\n Queue<Board> d1 = new Queue<>();\n while (true) {\n for (int i = 0; i < 2; i++) {\n MinPQ<SearchNode> tmpPQ = i == 0 ? prioQ2 : prioQ1;\n Queue<Board> tmpQ = i == 0 ? d1 : d0;\n SearchNode minNode = tmpPQ.delMin();\n Iterable<Board> neighbors;\n Board currentB = minNode.b;\n tmpQ.enqueue(currentB);\n if (currentB.isGoal()) {\n if (i == 0) {\n return null;\n }\n return constructSolution(minNode);\n } else {\n neighbors = currentB.neighbors();\n for (Board board : neighbors) {\n if (minNode.predecessor == null || !board.equals(minNode.predecessor.b)) {\n SearchNode tmpNode = new SearchNode(board, minNode.moves + 1);\n tmpNode.predecessor = minNode;\n tmpPQ.insert(tmpNode);\n }\n }\n }\n\n }\n }\n\n }", "title": "" }, { "docid": "6d31b4308673749e7829362feae0881b", "score": "0.5388115", "text": "public static void main(String[] args) {\n\n\n Scanner scan = new Scanner(System.in);\n int size = 6;\n\n int[][] array = new int[size][size];\n for(int i = 0; i<size;i++)\n {\n for (int j = 0; j < size; j++) {\n array[i][j]= scan.nextInt();\n }\n }\n scan.close();\n int sum = Integer.MIN_VALUE;\n if(size>3) {\n for (int i = 0; i <= size-3; i++) {\n for (int j = 0; j <= size - 3; j++) {\n int hg = array[i][j] + array[i][j + 1] + array[i][j + 2]\n + array[i + 1][j + 1]\n + array[i + 2][j] + array[i + 2][j + 1] + array[i + 2][j + 2];\n if (hg > sum) {\n sum = hg;\n }\n }\n }\n }\n System.out.println(sum);\n }", "title": "" }, { "docid": "871e44f379834829ded3c0608b4d7a75", "score": "0.53875744", "text": "public void algoFloydWarshall2(int arr[][]){\n\t\tArrayList<ArrayList<int[]>> A= new ArrayList<ArrayList<int[]>>();\n\t\t\n\t\tSystem.out.println(\"A created\");\n\t\tfor(int i=0;i<nVert;i++) {\n\t\t\tArrayList<int[]> tmpList=new ArrayList<int[]>();\n\n\t\t\tfor(int j=0;j<nVert;j++) {\n\t\t\t\t\n\t\t\t\tint[] tmpIntList=new int[nVert];\n\t\t\t\t\n\t\t\t\tif(i==j) {\n\t\t\t\t\ttmpIntList[0]=0;\n\t\t\t\t\ttmpList.add(tmpIntList);\t\n\t\t\t\t}\n\t\t\t\telse if(arr[i][j]!=0) {\n\t\t\t\t\ttmpIntList[0]=arr[i][j];\n\t\t\t\t\ttmpList.add(tmpIntList);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttmpIntList[0]=Integer.MAX_VALUE;\n\t\t\t\t\ttmpList.add(tmpIntList);\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\ttmpList.add(tmpIntList);\n//\t\t\t\ttmpIntList=tmpList.get(j);\t\t\t\t\n\t\t\t}\n\t\t\tA.add(tmpList);\n//\t\t\ttmpList=A.get(i);\n\t\t}\n\n\t\tSystem.out.println(A.size());\n\t\tSystem.out.println(A.get(10).get(123).length);\n\t\tSystem.out.println(\"A initialized\");\n\t\t\n\t\tArrayList<ArrayList<Integer>> tmpList=new ArrayList<ArrayList<Integer>>();\n\t\tArrayList<Integer> tmpIntList=new ArrayList<Integer>();\n\t\tint i,j,k;\n\t\t\n//\t\tfor(k=1;k<nVert;k++) {\n//\t\t\tfor(i=1;i<nVert;i++) {\t\t\t\t\n//\t\t\t\ttmpList=A.get(i);\n//\t\t\t\tfor(j=1;j<nVert;j++) {\n//\t\t\t\t\t\n//\t\t\t\t\ttmpIntList=tmpList.get(j);\n//\t\t\t\t\tif(tmpIntList.get(k-1)<tmpList.get(k).get(k-1)+tmpList.get(j).get(k-1)) {\n//\t\t\t\t\t\ttmpIntList.add(tmpIntList.get(k-1));\t\t\t\t\t\t\n//\t\t\t\t\t}\n//\t\t\t\t\telse {\n//\t\t\t\t\t\ttmpIntList.add(tmpList.get(k).get(k-1)+tmpList.get(j).get(k-1));\t\t\t\t\t\t\n//\t\t\t\t\t}\n//\t\t\t\t\ttmpList.set(j,tmpIntList);\n//\t\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\tA.set(i,tmpList);\t\t\t\t\n//\t\t\t}\n//\t\t\t\n//\t\t}\n\t\t\t\n//\t\tfor(k=1;k<nVert;k++) {\n//\t\t\tfor(i=1;i<nVert;i++) {\t\t\t\t\n////\t\t\t\ttmpList=A.get(i);\n//\t\t\t\tfor(j=1;j<nVert;j++) {\n//\t\t\t\t\t\n////\t\t\t\t\ttmpIntList=tmpList.get(j);\n//\t\t\t\t\tif(A.get(i).get(j).get(k-1)<A.get(i).get(k).get(k-1)+A.get(i).get(j).get(k-1)) {\n//\t\t\t\t\t\tA.get(i).get(j).add(A.get(i).get(j).get(k-1));\t\t\t\t\t\t\n//\t\t\t\t\t}\n//\t\t\t\t\telse {\n//\t\t\t\t\t\tA.get(i).get(j).add(A.get(i).get(k).get(k-1)+A.get(i).get(j).get(k-1));\t\t\t\t\t\t\n//\t\t\t\t\t}\n////\t\t\t\t\tA.get(i).set(j,tmpIntList);\n//\t\t\t\t\t\t\n//\t\t\t\t}\n////\t\t\t\tA.set(i,tmpList);\t\t\t\t\n//\t\t\t}\n//\t\t\t\n//\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "e6f593654b69e4520e84ebce1a670654", "score": "0.5386698", "text": "public void optimizeGenerational() {\n// AbstractEAIndividual indy = null, orig;\n int parentIndex; \n // required for dynamic problems especially\n// m_Problem.evaluatePopulationStart(m_Population);\n if (children==null) children = new Population(m_Population.size());\n else children.clear();\n for (int i = 0; i < this.m_Population.size(); i++) {\n \tif (cyclePop) parentIndex=i;\n \telse parentIndex=RNG.randomInt(0, this.m_Population.size()-1);\n \tAbstractEAIndividual indy = generateNewIndividual(m_Population, parentIndex);\n \tchildren.add(indy);\n }\n \n children.setGenerationTo(m_Population.getGeneration());\n m_Problem.evaluate(children);\n \n /**\n * MdP: added a reevalutation mechanism for dynamically changing problems\n */\n if(isReEvaluate()){\n \tfor(int i=0;i<this.m_Population.size();i++){\n \t\n \t\tif (((AbstractEAIndividual)m_Population.get(i)).getAge() >= maximumAge) {\n \t\t\tthis.m_Problem.evaluate(((AbstractEAIndividual)m_Population.get(i)));\n \t\t\t((AbstractEAIndividual)m_Population.get(i)).SetAge(0);\n \t\t\tm_Population.incrFunctionCalls();\n \t\t}\n \t}\n }\n \n int nextDoomed = getNextDoomed(m_Population, 0);\n for (int i = 0; i < this.m_Population.size(); i++) {\n \tAbstractEAIndividual indy = children.getEAIndividual(i);\n \tif (cyclePop) parentIndex=i;\n \telse parentIndex=RNG.randomInt(0, this.m_Population.size()-1);\n \tif (nextDoomed >= 0) {\t// this one is lucky, may replace an 'old' one\n \t\tm_Population.replaceIndividualAt(nextDoomed, indy);\n \t\tnextDoomed = getNextDoomed(m_Population, nextDoomed+1);\t\n \t} else {\n \tif (m_Problem instanceof AbstractMultiObjectiveOptimizationProblem&indy.getFitness().length>1) {\n\t\t\t\t\tReplacementCrowding repl = new ReplacementCrowding();\n\t\t\t\t\trepl.insertIndividual(indy, m_Population, null);\n\t\t\t\t} else {\n//\t\t\t\t\tindex = RNG.randomInt(0, this.m_Population.size()-1);\n\t\t\t\t\tif (!compareToParent) parentIndex = RNG.randomInt(0, this.m_Population.size()-1);\n\t\t\t\t\tAbstractEAIndividual orig = (AbstractEAIndividual)this.m_Population.get(parentIndex);\n\t\t\t\t\tif (indy.isDominatingDebConstraints(orig)) this.m_Population.replaceIndividualAt(parentIndex, indy);\n\t\t\t\t}\n \t}\n }\n this.m_Population.incrFunctionCallsBy(children.size());\n this.m_Population.incrGeneration();\n this.firePropertyChangedEvent(Population.nextGenerationPerformed);\n\t}", "title": "" }, { "docid": "4475e050656f1d9ad9f437ce9298e145", "score": "0.5385372", "text": "public static void main(String[] args) {\n\t\tFastScanner sc = new FastScanner();\n\t\tint N = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tint[][] map = new int[N][M];\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfor(int j = 0; j < M; j++) {\n\t\t\t\tmap[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tint[][][] dp = new int[N][M][3];\n\t\tfor(int[][] arr2D : dp) {\n\t\t\tfor(int[] arr : arr2D) {\n\t\t\t\tArrays.fill(arr, INF);\n\t\t\t}\n\t\t}\n\t\tdp[0][0][0] = map[0][0];\n\t\tdp[0][0][1] = map[0][0];\n\t\tdp[0][0][2] = map[0][0];\n\t\tfor(int y = 0; y < N; y++) {\n\t\t\tfor(int direction = 0; direction < 3; direction++) {\n\t\t\t\tint py, px;\n\t\t\t\t// dp[][][오른쪽]을 찾아야 하는 경우\n\t\t\t\tif(direction == 2) {\n\t\t\t\t\tfor(int x = M - 1; x >= 0; x--) {\n\t\t\t\t\t\tif(x == 0 && y == 0) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpy = y + dy[direction];\n\t\t\t\t\t\tpx = x + dx[direction];\n\t\t\t\t\t\tint max = INF;\n\t\t\t\t\t\tif(py >= 0 && py < N && px >= 0 && px < M) {\n\t\t\t\t\t\t\tfor(int prevDirect = 0; prevDirect < 3; prevDirect++) {\n\t\t\t\t\t\t\t\t// L = 01, R = 10 이므로 L ^ R == 3이 되는데\n\t\t\t\t\t\t\t\t// 이 경우 간 곳을 또 가는 것이므로 불가\n\t\t\t\t\t\t\t\tif((prevDirect ^ direction) == 3) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmax = Math.max(dp[py][px][prevDirect], max);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmax += map[y][x];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdp[y][x][direction] = max;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor(int x = 0; x < M; x++) {\n\t\t\t\t\t\tif(x == 0 && y == 0) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpy = y + dy[direction];\n\t\t\t\t\t\tpx = x + dx[direction];\n\t\t\t\t\t\tint max = INF;\n\t\t\t\t\t\tif(py >= 0 && py < N && px >= 0 && px < M) {\n\t\t\t\t\t\t\tfor(int dir = 0; dir < 3; dir++) {\n\t\t\t\t\t\t\t\tif((dir ^ direction) == 3) {\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmax = Math.max(dp[py][px][dir], max);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmax += map[y][x];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdp[y][x][direction] = max;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\tfor(int i = 0; i < N; i++) {\n//\t\t\tfor(int j = 0; j < M; j++) {\n//\t\t\t\tSystem.out.print(\"( \");\n//\t\t\t\tfor(int k = 0; k < 3; k++) {\n//\t\t\t\t\tSystem.out.print(dp[i][j][k] + \" \");\n//\t\t\t\t}\n//\t\t\t\tSystem.out.print(\")\");\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\t\tSystem.out.println(Math.max(dp[N-1][M-1][0], dp[N-1][M-1][1]));\n\t}", "title": "" }, { "docid": "174cf1edfcbcfdb5e6b08cce268a54ff", "score": "0.53802544", "text": "public void solution(int[] P, int K) {\n int[][] out = fillSlots(P);\n \n for(int i = 0 ; i < out.length - 1; i++){\n for(int j = 0 ; j < out.length - 1; j++){\n \n if(P[i] == i){\n filled[j][i] = 1;\n }\n \n }\n \n \n }\n \n }", "title": "" }, { "docid": "a7bab113f73920b1429cc453104c614d", "score": "0.5369555", "text": "public static void main(String[] args) {\n \n int[][] temp;\n Scanner scan = new Scanner(System.in);\n \n nodes = new LinkedList<Node>();\n visited = new LinkedList<Node>();\n \n System.out.println(\"Enter the size of the matrix (enter 3 if it is 3x3)\");\n size=scan.nextInt();\n \n if(size<0)\n {\n System.out.println(\"Wrong size choosen....Try again\");\n System.exit(1);\n }\n \n goalstate=new int[size][size];\n temp = new int[size][size];\n System.out.println(\"Enter the initial state of the puzzle in the matrix format(represent space by 0)\");\n \n \n //takes the initial state of the puzzle\n for(int i=0;i<size;i++)\n {\n for(int j=0;j<size;j++)\n { \n temp[i][j]=scan.nextInt();\n }\n }\n \n \n //takes the goal state of the puzzle\n System.out.println(\"Enter the goal state of the puzzle in the matrix format\");\n \n for(int i=0;i<size;i++)\n {\n for(int j=0;j<size;j++)\n { \n goalstate[i][j]=scan.nextInt();\n }\n }\n \n //choices to choose heuristics function\n System.out.println(\"Select heuristics\");\n System.out.println(\"Press 1 to select misplaced tiles as heuristics\");\n System.out.println(\"Press 2 to select manhaton distance as heuristics\");\n heuristictype=scan.nextInt();\n \n if(heuristictype>2 || heuristictype<1)\n {\n System.out.println(\"Wrong heuristics choosen....Try again\");\n System.exit(1);\n }\n \n Node initial= new Node(temp,0);\n \n nodes.add(initial);\n \n int gotresult=0;\n \n System.out.println(\"The Solution steps are as below\\n\");\n \n //continues the search for the goal state till the goal state is found or all nodes are expanded\n while(gotresult!=1 && nodes.size()>0)\n {\n gotresult=mysolution();\n }\n \n if(gotresult==0)\n System.out.println(\"Couldnt find the solution\");\n else\n {\n System.out.println(\"The number of nodes generated to reach the solution are \"+nodesgenerated);\n System.out.println(\"The number of nodes expanded to reach the solution are \"+nodesexpanded);\n }\n \n }", "title": "" }, { "docid": "ca8cb431a82d33945b5caafb42ffd427", "score": "0.5368345", "text": "public void initAndSolve()\n\t{\n\t\t// Create a random matrix.\n\t\tA = new double[n][n];\n\t\tb = new double[n];\n\t\tRandom prng = Random.getInstance(seed);\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < n; j++)\n\t\t\t{\n\t\t\t\tA[i][j] = (prng.nextDouble() * 9.0) + 1.0;\n\t\t\t}\n\t\t\tA[i][i] += 10.0 * n;\n\t\t\tb[i] = (prng.nextDouble() * 9.0) + 1.0;\n\t\t}\n\t\t\n\t\t// Allocate space for the solution and temporary variables.\n\t\tx = new double[n];\n\t\ty = new double[n];\n\n\t\t// Initialize the x[] vector to 1.\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tx[i] = 1.0;\n\t\t}\n\n\t\t// Run until we converge to a solution.\n\t\tboolean converged = false;\n\t\tboolean iterSuccess = true;\n\t\tdouble sum;\n\t\tdouble[] tmp;\n\t\twhile (!converged)\n\t\t{\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t{\n\t\t\t\t// Compute the upper and lower matrix product, omitting\n\t\t\t\t// the element at index i\n\t\t\t\tdouble[] A_i = A[i];\n\t\t\t\tdouble yVal = 0.0;\n\t\t\t\tdouble xVal = x[i];\n\t\t\t\tsum = 0.0;\n\t\t\t\tfor (int j = 0; j < i; j++)\n\t\t\t\t{\n\t\t\t\t\tsum += (A_i[j] * x[j]);\n\t\t\t\t}\n\t\t\t\tfor (int j = i + 1; j < n; j++)\n\t\t\t\t{\n\t\t\t\t\tsum += (A_i[j] * x[j]);\n\t\t\t\t}\n\n\t\t\t\t// Compute and store the y[] value.\n\t\t\t\tyVal = (b[i] - sum) / A_i[i];\n\t\t\t\ty[i] = yVal;\n\n\t\t\t\t// Check for convergence.\n\t\t\t\tif (iterSuccess && \n\t\t\t\t\t!(Math.abs((2 * (xVal - yVal)) \n\t\t\t\t\t\t\t/ (xVal + yVal)) < epsilon))\n\t\t\t\t{\n\t\t\t\t\titerSuccess = false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Swap the x[] and y[] vectors.\n\t\t\ttmp = x;\n\t\t\tx = y;\n\t\t\ty = tmp;\n\n\t\t\t// Reset the iteration variables.\n\t\t\tconverged = iterSuccess;\n\t\t\titerSuccess = true;\n\t\t}\n\t}", "title": "" }, { "docid": "ee1464cd678a81e6da53722535ddb47b", "score": "0.5365256", "text": "private void doFullLookAhead() {\r\n HashMap<Integer,Integer> resultMap=new HashMap<Integer,Integer>();\r\n Domains tempVarDomain=varDomains;\r\n ArrayList<Constraints> constraintsList=new ArrayList<Constraints>();\r\n boolean consistant=true;\r\n \r\n for(int variables1:variables){\r\n for (int value1 = 0; value1 < varDomains.values.get(variables1).size(); value1++) {\r\n resultMap.put(variables1, value1);\r\n //updating the domain of variable temporariy \r\n tempVarDomain.values.get(variables1).clear();\r\n tempVarDomain.values.get(variables1).add(value1);\r\n for (int variable = variables1+1; variable < varDomains.values.size(); variable++) { \r\n constraintsList=findConstraintVariable(variables1+1);\r\n consistant=performAC3(constraintsList, tempVarDomain);\r\n if(consistant){\r\n \r\n }else{\r\n resultMap.remove(variables1);\r\n tempVarDomain.values.get(variables1).addAll(domains);\r\n break;\r\n \r\n } \r\n }\r\n }\r\n }\r\n endTime=System.currentTimeMillis();\r\n if(resultMap.size()==numberOfVar){\r\n System.out.println(\"Successfully found Solutions. Problem is consistent\");\r\n }else{\r\n System.out.println(\"Not able to find whole solution. Problem is not consistent\");\r\n }\r\n \r\n System.out.print(\"Solution: {\");\r\n for(Integer variables:resultMap.keySet()){\r\n System.out.print(\" X\"+variables+\": \"+resultMap.get(variables)+\",\");\r\n }\r\n System.out.println(\"}\");\r\n long timeElapsed = endTime-startTime;\r\n System.out.println(\"Time taken to execute:\"+timeElapsed+\" milliseconds\");\r\n }", "title": "" }, { "docid": "a7fece06830976aa5396576051c5d8f7", "score": "0.53632236", "text": "static long arrayManipulation(int n, int[][] queries) {\n long [] arr=new long[n];\n for(int i=0;i<queries.length;i++){\n int value=queries[i][2];\n int start=queries[i][0]-1;\n int end =queries[i][1];\n arr[start]=arr[start]+value;\n if(end<n){\n arr[end]=arr[end]-value;\n }\n }\n for(int x=1;x<n;x++){\n arr[x]=arr[x]+arr[x-1];\n }\n Arrays.sort(arr);\n return arr[n-1];\n\n\n// //Brutal force\n// long result=0;\n// long [] testArray=new long[n];\n// for(int i=0;i<queries.length;i++){\n// for(int j=queries[i][0];j<=queries[i][1];j++){\n// testArray[j-1]=testArray[j-1]+queries[i][2];\n// }\n// }\n// Arrays.sort(testArray);\n// return testArray[n-1];\n }", "title": "" }, { "docid": "b21e42545a3e16b3409f4df00be25b3c", "score": "0.53629065", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tint[] ar = {4,5,1,8,2,10,6};\r\n\t\tint[] out = new int[ar.length];\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// O(n^2)\r\n\t\t\r\n//\t\tfor (int i = 0; i < ar.length; i++) {\r\n//\t\t\tint product = 1;\r\n//\t\t\tfor (int j = 0; j < ar.length; j++) {\r\n//\t\t\t\tif(i != j) {\r\n//\t\t\t\t\tproduct *= ar[j];\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\tout[i] = product;\r\n//\t\t}\r\n//\t\t\r\n//\t\tfor (int i = 0; i < out.length; i++) {\r\n//\t\t\tSystem.out.print(out[i]+\" \");\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// O(n) with division\r\n\t\t\r\n//\t\tint product = 1;\r\n//\t\tfor (int i = 0; i < ar.length; i++) {\r\n//\t\t\tproduct *= ar[i];\r\n//\t\t}\r\n//\t\t\r\n//\t\tfor (int i = 0; i < out.length; i++) {\r\n//\t\t\tout[i] = product/ar[i];\r\n//\t\t\tSystem.out.print(out[i]+ \" \");\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// left - right product approach with O(n^2) Time and O(1) space\r\n\t\t\r\n//\t\tfor (int i = 0; i < out.length; i++) {\r\n//\t\t\t\r\n//\t\t\tint leftProduct = 1;\r\n//\t\t\tint rightProduct = 1;\r\n//\t\t\t\r\n//\t\t\tfor(int j = i-1; j>=0;j--) {\r\n//\t\t\t\tleftProduct *= ar[j];\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t\tfor(int k = i+1;k<ar.length;k++) {\r\n//\t\t\t\trightProduct *= ar[k];\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t\tout[i] = leftProduct * rightProduct;\r\n//\t\t\t\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// left - right product approach with O(n) Time and O(n) space\r\n\t\t\r\n//\t\tint[] leftProduct = new int[ar.length];\r\n//\t\tint[] rightProduct = new int[ar.length];\r\n//\t\tleftProduct[0] = 1;\r\n//\t\trightProduct[ar.length-1] = 1;\r\n//\t\t\r\n//\t\tfor (int i = 0; i < rightProduct.length-1; i++) {\r\n//\t\t\tleftProduct[i+1] = leftProduct[i] * ar[i]; \r\n//\t\t}\r\n//\t\t\r\n//\t\tfor (int i = ar.length-1; i > 0;i--) {\r\n//\t\t\trightProduct[i-1] = rightProduct[i] * ar[i];\r\n//\t\t}\r\n//\t\t\r\n//\t\tfor (int i = 0; i < out.length; i++) {\r\n//\t\t\tout[i] = leftProduct[i] * rightProduct[i];\r\n//\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// left - right product approach with O(n) Time and O(1) space\r\n\t\t\r\n\t\tout[0] = 1;\r\n\t\tfor (int i = 0; i < out.length-1; i++) {\r\n\t\t\tout[i+1] = out[i] * ar[i]; \r\n\t\t}\r\n\t\t\r\n\t\tint rightProduct = 1;\r\n\t\tfor (int i = out.length-1; i >=0; i--) {\r\n\t\t\tout[i] = out[i] * rightProduct;\r\n\t\t rightProduct *= ar[i];\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < out.length; i++) {\r\n\t\t\tSystem.out.print(out[i]+\" \");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f11376c66c82bc7219e8d6f150364881", "score": "0.5362067", "text": "void solve() {\n int n = ii(), m = ii(), a[] = iia(n);\n int N = 0;\n for (int i = 1; i < n; i++)\n if (a[i] == a[i - 1]) continue;\n else N++;\n N++;\n frequent A[] = new frequent[N];\n int count = 1, l = 0;\n for (int i = 1, j = 0; i < n; i++) {\n if (a[i] == a[i - 1]) count++;\n else {\n A[j++] = new frequent(l, i - 1, a[i - 1], count);\n count = 1;\n l = i;\n }\n }\n A[N - 1] = new frequent(l, n - 1, a[n - 1], count);\n Arrays.sort(A);\n// for (frequent x : A)\n// System.out.println(x.toString());\n outer:\n for (int j = 0; j < m; j++) {\n int x = ii() - 1, y = ii() - 1, k = ii();\n int index = BinarySearchLowerBound(A, k);\n// System.out.println(index);\n for (int i = index; i < N; i++) {\n int left = Math.max(A[i].left, x);\n int right = Math.min(A[i].right, y);\n int len = right - left + 1;\n if (len >= k) {\n out.println(A[i].element);\n continue outer;\n }\n// if (A[i].k > (y - x + 1)) break;\n }\n out.println(-1);\n }\n }", "title": "" }, { "docid": "c79613bcd295eb95906635f0c496fa0b", "score": "0.53620523", "text": "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\n\t\tlong mod=1000000007;\n\t\t\tint T=in.nextInt();\n\t\t\twhile (T>0){\n\t\t\t\tint N=in.nextInt();\n\t\t\t\tint K=in.nextInt();\n\t\t\t\tlong[] d=new long[N];\n\t\t\t\tfor (int i=0;i<N;++i){\n\t\t\t\t\td[i]=in.nextLong();\n\t\t\t\t}\n\t\t\t\tlong[][][] dp=new long[N][N+1][K+1];\n\t\t\t\tfor (int r=0;r<N;++r){\n\t\t\t\t\tif (r==0 && d[0]<=N){\n\t\t\t\t\t\tdp[r][(int) d[0]][1]=1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tfor (int c=0;c<=N;++c){\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int l=1;l<=K;++l){\n\t\t\t\t\t\t\tdp[r][c][l]=dp[r-1][c][l];\n\t\t\t\t\t\t\tif (l==1 && d[r]<=N && c==d[r]){\n\t\t\t\t\t\t\t\tdp[r][c][l]=(dp[r][c][l]+1)%mod;\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (l==1) continue;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int ll=c;ll>=0;--ll){\n\t\t\t\t\t\t\t\tif ((ll|d[r])==c){\n\t\t\t\t\t\t\t\t\tdp[r][c][l]=(dp[r][c][l]+dp[r-1][ll][l-1])%mod;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprintThreeMatrix(dp);\n\t\t\t\tlong ans=0;\n\t\t\t\tfor (int id=1;id<=N;++id){\n\t\t\t\t\tans=(ans+id*dp[N-1][id][K])%mod;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(ans);\n\t\t\t\tT--;\n\t\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "4d15a31f0c59a61dc6a8bbf7d02e45bb", "score": "0.5358871", "text": "public List<Item> calcSolution() {\n int n = itemList.size();\n\n setInitialStateForCalculation();\n if (n > 0 && maxWeight > 0) {\n List<List<Integer>> c = new ArrayList< List<Integer> >();\n List<Integer> curr = new ArrayList<Integer>();\n\n c.add(curr);\n for (int j = 0; j <= maxWeight; j++)\n curr.add(0);\n for (int i = 1; i <= n; i++) {\n List<Integer> prev = curr;\n c.add(curr = new ArrayList<Integer>());\n for (int j = 0; j <= maxWeight; j++) {\n if (j > 0) {\n int wH = itemList.get(i-1).getWeight();\n curr.add(\n (wH > j)\n ?\n prev.get(j)\n :\n Math.max(\n prev.get(j),\n itemList.get(i-1).getValue() + prev.get(j-wH)\n )\n );\n } else {\n curr.add(0);\n }\n } // for (j...)\n } // for (i...)\n profit = curr.get(maxWeight);\n\n for (int i = n, j = maxWeight; i > 0 && j >= 0; i--) {\n int tempI = c.get(i).get(j);\n int tempI_1 = c.get(i-1).get(j);\n if (\n (i == 0 && tempI > 0)\n ||\n (i > 0 && tempI != tempI_1)\n )\n {\n Item iH = itemList.get(i-1);\n int wH = iH.getWeight();\n iH.setInKnapsack(1);\n j -= wH;\n solutionWeight += wH;\n }\n } // for()\n calculated = true;\n } // if()\n return itemList;\n }", "title": "" }, { "docid": "8548ae94c92920b1e78056ed12a2b2a5", "score": "0.5353978", "text": "static long candies(int n, int[] arr) {\n\n\n int candies[] = new int[n];\n int pre = arr[0];\n int cur=arr[0];\n candies[0]=1;\n for(int i=1 ; i<n ;i++)\n {\n cur = arr[i];\n if(cur>pre)\n {\n candies[i]=candies[i-1]+1;\n }\n else\n {\n candies[i]=1;\n }\n pre=cur;\n \n }\n\n\n\n pre=cur=arr[n-1];\n\n long tcan = candies[n-1];\n\n for(int i = n-2 ; i>=0 ; i--)\n {\n cur=arr[i];\n if(cur>pre && candies[i+1] >=candies[i])\n {\n candies[i]= candies[i+1] + 1;\n }\n tcan = tcan+candies[i];\n pre=cur;\n }\n\n\n\n\nreturn tcan;\n\n }", "title": "" }, { "docid": "b775ab532a4962e4e56c853c64afee88", "score": "0.5352355", "text": "@SuppressWarnings(\"Main Logic\")\n void solve() {\n int des = ii(), k = ii();\n boolean used[] = new boolean[1000001];\n used[0] = used[des] = true;\n HashMap<Edge, Integer> graph = new HashMap<>();\n for (int i = 0; i < k; i++) {\n int u = ii(), v = ii(), w = ii();\n if (u > des || v > des) continue;\n used[u] = used[v] = true;\n Edge e = new Edge(u, v);\n if (graph.containsKey(e)) graph.put(e, Math.min(graph.get(e), w));\n else graph.put(e, w);\n }\n int V[] = vertices(used);\n int n = 0;\n for (int v : V) n = Math.max(n, v + 1);\n for (int i = 0; i < V.length; i++) {\n for (int j = i + 1; j < V.length; j++) {\n int u = V[i], v = V[j], w = Math.abs(V[j] - V[i]);\n// out.println(u + \" \" + v + \" \" + w);\n Edge e = new Edge(u, v);\n if (graph.containsKey(e)) graph.put(e, Math.min(graph.get(e), w));\n else graph.put(e, w);\n }\n }\n int m = graph.size();\n int from[] = new int[m];\n int to[] = new int[m];\n int w[] = new int[m];\n int c = 0;\n for (Map.Entry<Edge, Integer> es : graph.entrySet()) {\n Edge e = es.getKey();\n int we = es.getValue();\n int u = e.from, v = e.to;\n from[c] = u;\n to[c] = v;\n w[c++] = we;\n }\n// for (int i = 0; i < m; i++) {\n// out.println(from[i] + \" \" + to[i] + \" \" + w[i]);\n// }\n g = packWD(n, from, to, w);\n long d[] = Dij(0, g);\n out.println(d[des]);\n }", "title": "" }, { "docid": "1715b73b646ebb1e3ddb4883fa143ebe", "score": "0.5350025", "text": "public static void main(String[] args) throws Exception {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.print(\"Введите желаемую размерность матрицы и нажмите Ввод: \");\r\n\t\tint a=Integer.parseInt(reader.readLine());\r\n\t\t\tSystem.out.println(\"Вводите значения матрицы\");\r\n\t\t\tint[][] myArray = new int[a][a];\t\r\n\t\t\tfor (int i=0; i<a; i++){\r\n\t\t\t\tfor (int j=0; j<a; j++){\r\n\t\t\t\t\tmyArray[i][j]=Integer.parseInt(reader.readLine());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int i=0; i<a; i++){\r\n\t\t\t\tfor (int j=0; j<a; j++){\r\n\t\t\t\tSystem.out.print(myArray[i][j]+ \" \");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t\tint x=0;\r\n\t\tint y=0;\r\n\t\tint z=0;\r\n\t\tint min_temp=-1000000000;\r\n\t\t\r\n\t\tfor (int i=0; i<a; i++){\r\n\t\t\tint min = myArray[x][y];\r\n\t\t\tint min_index=z;\r\n\t\t\t\r\n\t\t\tfor (int j=i; j<a; j++){\r\n\t\t \tif(min < min_temp){\r\n\t\t\t\tfor (int w=i; w<a; w++){\r\n\t\t\t\t\r\n\t\t\t\tif (myArray[i][w]>min_temp){\r\n\t\t\t\t\tfor (int q=0; q<a; q++){\r\n\t\t\t\t\tint temp = myArray[q][min_index];\r\n\t\t\t\t\tmyArray[q][min_index]=myArray[q][j];\r\n\t\t\t\t\tmyArray[q][j]=temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t \tif(min < min_temp) \t{\r\n\t\t \t\tSystem.out.println(\"Введенная матрица не может отсортирована по условиям задачи\");\r\n\t\t \t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t \t\r\n\t\t\t\t\t\t\r\n\t\t\t\tif (myArray[i][j]<min && myArray[i][j]>min_temp){\r\n\t\t\t\t\tmin=myArray[i][j];\r\n\t\t\t\t\tfor (int q=0; q<a; q++){\r\n\t\t\t\t\tint temp = myArray[q][min_index];\r\n\t\t\t\t\tmyArray[q][min_index]=myArray[q][j];\r\n\t\t\t\t\tmyArray[q][j]=temp;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmin_temp=myArray[x][y];\r\n\t\t\tx=x+1;\r\n\t\t\ty=y+1;\r\n\t\t\tz=z+1;\r\n\t\t\t\r\n\t\t}\t\t\r\n\t\tSystem.out.println(\"\");\r\n\t\tfor (int i=0; i<a; i++){\r\n\t\t\tfor (int j=0; j<a; j++){\r\n\t\t\t\tSystem.out.print(myArray[i][j]+ \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "84ec9c9b56ef0fc99b2e14c732961d6b", "score": "0.534416", "text": "public void run() throws Exception\r\n\t{\r\n\t\tScanner file = new Scanner(System.in);\r\n\t\tint N = file.nextInt();\r\n\t\tint M = file.nextInt();\r\n\t\tint[] value = new int[N];\r\n\t\tint[] cost = new int[N];\r\n\t\tint vsum = 0;\r\n\t\tfor(int i = 0;i<N;i++)\r\n\t\t{\r\n\t\t\tvalue[i] = file.nextInt();\r\n\t\t\tvsum += value[i];\r\n\t\t\tcost[i] = file.nextInt();\r\n\t\t}\r\n\t\tPoint[] pts = new Point[M];\r\n\t\tfor(int i = 0;i<M;i++)\r\n\t\t{\r\n\t\t\tpts[i] = new Point(file.nextInt(),file.nextInt());\r\n\t\t}\r\n\t\tPoint[] ch = convex_hull(pts);\r\n\t\tdouble dist = 0;\r\n\t\tfor(int i = 0;i<ch.length;i++)\r\n\t\t{\r\n\t\t\tdist += dist(ch[i],ch[(i+1)%ch.length]);\r\n\t\t}\r\n\t\tint ceil = (int)(Math.ceil(dist));\r\n\t\tint[] dp = new int[vsum+1];\r\n\t\tArrays.fill(dp, Integer.MAX_VALUE/4);\r\n\t\tdp[0] = 0;\r\n\t\tfor(int i = 0;i<N;i++)\r\n\t\t{\r\n\t\t\tfor(int j = dp.length - 1;j>=value[i];j--)\r\n\t\t\t{\r\n\t\t\t\tdp[j] = Math.min(dp[j],dp[j-value[i]] + cost[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tint min = Integer.MAX_VALUE;\r\n\t\tfor(int i = ceil;i<dp.length;i++)\r\n\t\t{\r\n\t\t\tmin = Math.min(min, dp[i]);\r\n\t\t}\r\n\t\tSystem.out.println(min);\r\n\t}", "title": "" }, { "docid": "c90865fa4eccdfe1c22ebb02a999ae19", "score": "0.5342885", "text": "public int solution(int[] A) {\n \n int N = A.length;\n long sum = 0L;\n for(int i=0; i < N; ++i) {\n sum += A[i];\n }\n \n long diff = Long.MAX_VALUE;\n \n long[] p = new long[N];\n p[0] = 0L;\n for(int i=1; i < N; ++i) {\n p[i] = p[i-1] + A[i-1];\n \n //System.out.println(p[i]);\n \n diff = min(diff, abs(2*p[i] - sum));\n }\n \n return (int)diff;\n }", "title": "" }, { "docid": "213fa04564537e5cc20853e26a699f92", "score": "0.53392357", "text": "public static int solution(int[] a){\n int ans=0;\n int minElement=2000001;\n for(int i=0;i<a.length;i++){\n if(a[i]<minElement)\n minElement=a[i];\n if(a[i]-minElement>ans)\n ans=a[i]-minElement;\n }\n\n return ans;\n }", "title": "" }, { "docid": "19289c27d9a4dd40b1dd1aef5587ada7", "score": "0.5339061", "text": "public void step1SolveLp() {\n\t\tSystem.out.println(\"############################################\");\n\t\tSystem.out.println(\"# Step 1: Solve LP using Solver #\");\n\t\tSystem.out.println(\"############################################\");\n\t\t\n\t\t//Run only once per data set\n\t\tif(!lp_solved) {\n\t\t\t// Get allocation for relaxed IP using Gurobi\n\t\t\tlp.solveLP();\n\t\t\tlp_solved = true;\n\t\t}\n\t\t\n\t\t// Output LP solution\n\t\tSystem.out.println(lp);\n\t\tSystem.out.println(\"\\n\\n\");\n\t}", "title": "" }, { "docid": "e6df6a19fcb8198c7168dc91acfab274", "score": "0.5336803", "text": "public boolean[] solve(int[] A, int target) throws ValidSolutionNotFoundException {\n\t\t//make a backup\n\t\tint[] copy = new int[A.length];\n\t\tSystem.arraycopy(A, 0, copy, 0, A.length);\n\t\t//try to solve with DP\n\t\tboolean[] result = SubsetSumImplementations.solveDP(A, target);\n\t\tif (!accept(result, A, target)) {\n\t\t\t//restore state and try to solve with BF\n\t\t\tSystem.arraycopy(copy, 0, A, 0, copy.length);\n\t\t\tboolean[] resultTwo = SubsetSumImplementations.solveBF(A, target);\n\t\t\tif (!accept(resultTwo, A, target)) \n\t\t\t\tthrow new ValidSolutionNotFoundException();\n\t\t\treturn resultTwo;\n\t\t}\n\t\treturn result;\t\n\t}", "title": "" }, { "docid": "f7d29332e5b1aebd3df81b2715bbb5af", "score": "0.53362215", "text": "public static void main(String[] args) throws IOException {\n\n long startTime = System.currentTimeMillis();\n\n FileReader read = new FileReader(new File(\"test.txt\"));\n BufferedReader buff = new BufferedReader(read);\n\n String line = buff.readLine();\n\n maxCapacity = Integer.parseInt(line);\n\n while((line = buff.readLine()) != null){\n knapsacks.add(new Knapsack(line.split(\" \")));\n }\n\n n = knapsacks.size();\n int tmpCapacity;\n int tmpValue;\n\n int[] vector = new int[n];\n\n for(int i = 1; i < Math.pow(2,n); i++){\n tmpCapacity = 0;\n tmpValue = 0;\n vector = getVector(i, vector);\n for(int j = 0; j < vector.length; j++){\n tmpValue += vector[j] * knapsacks.get(j).value;\n tmpCapacity += vector[j] * knapsacks.get(j).weight;\n\n// if(vector[j]== 1){\n// tmpValue += knapsacks.get(j).value;\n// tmpCapacity += knapsacks.get(j).weight;\n// }\n }\n\n\n//\n\n if(tmpValue > maxValue && tmpCapacity <= maxCapacity){\n maxValue = tmpValue;\n capacity = tmpCapacity;\n characteristicVector = vector;\n }\n }\n\n long stopTime = System.currentTimeMillis();\n long elapsedTime = (stopTime - startTime)/1000;\n\n System.out.print(\"characteristic vactor: [ \");\n for(int i = 0; i < characteristicVector.length; i++) System.out.print(characteristicVector[i] + \" \");\n System.out.println(\"]\\ntotal value: \" + maxValue + \"\\ntotal capacity: \" + capacity + \"\\nexecution time: \"\n + elapsedTime + \"s\");\n\n }", "title": "" }, { "docid": "45d6a18affa57f84bd09cbc37ddf8263", "score": "0.53285825", "text": "private static int recursive(int[] arr, int i, int j){\n\t\trecursiveCount++;\n\t\tif(i==j)\n\t\t\treturn 0;\n\t\tint minMulti = Integer.MAX_VALUE;\n\t\tfor(int k = i;k<=j-1;k++){\n\t\t\tint value = recursive(arr,i, k)+recursive(arr,k+1, j)+(arr[i-1]*arr[k]*arr[j]);\n\t\t\t///Increase scalar counter by 1 for each primitive operation done by the above statement\n\t\t\tscalarCount++;\n\t\t\tif(value<minMulti)\n\t\t\t\tminMulti=value;\n\t\t}\n\t\treturn minMulti;\n\t}", "title": "" }, { "docid": "88bbc054961e68fa974caba5e3ec497d", "score": "0.53243524", "text": "private static void calculateSolution(int firstKnapsackCapacity, int secondKnapsackCapacity, int solutionIndex) {\n\n int maxValue = 0;\n StringBuilder firstKnapsackIndices = new StringBuilder();\n StringBuilder secondKnapsackIndices = new StringBuilder();\n\n for (int i = 0; i < n; i++) {\n\n Item currentItem = items.get(i);\n\n if (currentItem.getSize() <= firstKnapsackCapacity) {\n\n firstKnapsackCapacity -= currentItem.getSize();\n maxValue += currentItem.getValue();\n firstKnapsackIndices.append(currentItem.getIndex()).append(\" \");\n\n } else {\n\n if (currentItem.getSize() <= secondKnapsackCapacity) {\n secondKnapsackCapacity -= currentItem.getSize();\n maxValue += currentItem.getValue();\n secondKnapsackIndices.append(currentItem.getIndex()).append(\" \");\n }\n\n }\n }\n\n solutions[solutionIndex] = new Solution(maxValue, firstKnapsackIndices.toString(), secondKnapsackIndices.toString());\n\n }", "title": "" }, { "docid": "fbdf923c6d1de55141757fa0ee719b79", "score": "0.5319333", "text": "private int cost()\n\t{\n\t\tint totalCost = 0;\n\t\tfor (int i =1;i<=N;i++)\n\t\t{\n\t\t\tfor (int j=1;j<=N;j++)\n\t\t\t{\n\t\t\t\ttotalCost+= a[i][j]*b[i][j];\n\t\t\t}\n\t\t}\n\treturn totalCost;\n\t}", "title": "" }, { "docid": "a1cbd86eecaf89354c450c48c0fe31d2", "score": "0.53190863", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint arr[] = new int[m];\n\t\tfor (int i = 0; i < m; i++)\n\t\t\tarr[i] = sc.nextInt();\n\t\tfor (int i = 1; i <= n; i++)\n\t\t\tdq.add(i);\n\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tsolve(arr[i]);\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "title": "" } ]
7acb00252f78f1b6a565b226882c9913
/ JADX INFO: finally extract failed / access modifiers changed from: packageprivate
[ { "docid": "f05fe7a814ab79846a81fb6506b6f8f7", "score": "0.0", "text": "public void notifyMoveLocked(float x, float y) {\n if (this.mAnimator == null) {\n int displayid = this.mDisplayContent.getDisplayId();\n float thumbCenterX = this.mThumbOffsetX;\n float thumbCenterY = this.mThumbOffsetY;\n if (HwPCUtils.isPcCastModeInServer() && HwPCUtils.isValidExtDisplayId(displayid)) {\n int mode = this.mService.getPCScreenDisplayMode();\n if (mode != 0) {\n int dw = this.mDisplaySize.x;\n int dh = this.mDisplaySize.y;\n float pcDisplayScale = mode == 1 ? 0.95f : 0.9f;\n x = (x * pcDisplayScale) + ((((float) dw) * (1.0f - pcDisplayScale)) / 2.0f);\n y = (y * pcDisplayScale) + ((((float) dh) * (1.0f - pcDisplayScale)) / 2.0f);\n thumbCenterX *= pcDisplayScale;\n thumbCenterY *= pcDisplayScale;\n }\n }\n this.mCurrentX = x;\n this.mCurrentY = y;\n this.mService.openSurfaceTransaction();\n try {\n if (!HwPCUtils.isPcCastModeInServer() || !HwPCUtils.isValidExtDisplayId(displayid)) {\n this.mSurfaceControl.setPosition(x - this.mThumbOffsetX, y - this.mThumbOffsetY);\n } else {\n this.mSurfaceControl.setPosition(x - thumbCenterX, y - thumbCenterY);\n }\n this.mService.closeSurfaceTransaction(\"notifyMoveLw\");\n notifyLocationLocked(x, y);\n } catch (Throwable th) {\n this.mService.closeSurfaceTransaction(\"notifyMoveLw\");\n throw th;\n }\n }\n }", "title": "" } ]
[ { "docid": "23bc887a014854448b1ca74e6b8b65da", "score": "0.6053455", "text": "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:45.010 -0500\", hash_original_method = \"0FEA708DB7A5B3B6D16FEC9623D0EEF8\", hash_generated_method = \"0FEA708DB7A5B3B6D16FEC9623D0EEF8\")\n \nboolean checkError() {\n return false;\n }", "title": "" }, { "docid": "eced51ad3fe47ac533f399c93e7d1062", "score": "0.59554535", "text": "protected UnknownPackage_c() { }", "title": "" }, { "docid": "220f0a0d2d4eb8ee6d802e10cbc742bf", "score": "0.58540314", "text": "public static String TestabilityResult_PkgPrivate() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6a05676c2199ba68d5e9dd117ea588b8", "score": "0.570799", "text": "private DetailstudyPackage() {}", "title": "" }, { "docid": "cb2e3e0c33a7b7b9a091a8399d30c5e5", "score": "0.56066054", "text": "public void privateMesage(){\n\t}", "title": "" }, { "docid": "b3cc7fbc27750f9111fc60676ae4152c", "score": "0.55018383", "text": "private OppoThirdPartUtil() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.oppo.theme.OppoThirdPartUtil.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.theme.OppoThirdPartUtil.<init>():void\");\n }", "title": "" }, { "docid": "6dd765e5e18ca61db3e6f63816a7f230", "score": "0.54837376", "text": "public String getPackageName() {\n/* 55 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "70a1a9fe3ff7a567b683d7567dc420a7", "score": "0.54315656", "text": "private void checkAccessFlags() {\n char oldClassFlags = oldClassInfo.accessFlags;\n char newClassFlags = newClassInfo.accessFlags;\n if (oldClassFlags == newClassFlags) {\n return;\n }\n\n if (!Modifier.isFinal(oldClassFlags) && Modifier.isFinal(newClassFlags)) {\n versionsCompatible = false;\n rf.findDirectSubclasses(oldClassInfo);\n }\n\n if (!Modifier.isAbstract(oldClassFlags) && Modifier.isAbstract(newClassFlags)) {\n versionsCompatible = false;\n rf.findReferencingClasses0(oldClassInfo);\n }\n\n // Now to accessibility modifiers checking...\n if (Modifier.isPublic(newClassFlags)) {\n return;\n }\n\n if (Modifier.isProtected(newClassFlags)) {\n if (Modifier.isPublic(oldClassFlags)) {\n versionsCompatible = false;\n rf.findDiffPackageAndNotSubReferencingClasses1(oldClassInfo);\n }\n } else if (Modifier.isPrivate(newClassFlags)) {\n if (!Modifier.isPrivate(oldClassFlags)) {\n versionsCompatible = false;\n } else {\n return; // private -> private, nothing more to check\n }\n if (Modifier.isPublic(oldClassFlags)) {\n rf.findReferencingClasses1(oldClassInfo);\n } else if (Modifier.isProtected(oldClassFlags)) {\n rf.findThisPackageOrSubReferencingClasses1(oldClassInfo);\n } else {\n rf.findThisPackageReferencingClasses1(oldClassInfo);\n }\n } else { // newClassFlags has default access, since public has already been excluded\n if (Modifier.isPublic(oldClassFlags)) {\n versionsCompatible = false;\n rf.findDiffPackageReferencingClasses1(oldClassInfo);\n } else if (Modifier.isProtected(oldClassFlags)) {\n versionsCompatible = false;\n rf.findDiffPackageAndSubReferencingClasses1(oldClassInfo);\n }\n }\n }", "title": "" }, { "docid": "7697bf8301ab1190acd271d13d6bea6f", "score": "0.5402391", "text": "private static int m1003d() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = f842a;\n if (r0 <= 0) goto L_0x0005;\n L_0x0004:\n return r0;\n L_0x0005:\n r0 = new java.io.File;\t Catch:{ Exception -> 0x001a }\n r1 = \"/sys/devices/system/cpu/\";\t Catch:{ Exception -> 0x001a }\n r0.<init>(r1);\t Catch:{ Exception -> 0x001a }\n r1 = new com.facebook.internal.P;\t Catch:{ Exception -> 0x001a }\n r1.<init>();\t Catch:{ Exception -> 0x001a }\n r0 = r0.listFiles(r1);\t Catch:{ Exception -> 0x001a }\n if (r0 == 0) goto L_0x001a;\t Catch:{ Exception -> 0x001a }\n L_0x0017:\n r0 = r0.length;\t Catch:{ Exception -> 0x001a }\n f842a = r0;\t Catch:{ Exception -> 0x001a }\n L_0x001a:\n r0 = f842a;\n if (r0 > 0) goto L_0x002d;\n L_0x001e:\n r0 = java.lang.Runtime.getRuntime();\n r0 = r0.availableProcessors();\n r1 = 1;\n r0 = java.lang.Math.max(r0, r1);\n f842a = r0;\n L_0x002d:\n r0 = f842a;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.d():int\");\n }", "title": "" }, { "docid": "94927bff07eeb3c56c6742a898d83694", "score": "0.5309911", "text": "private void doSomethingPrivate() {\n\n }", "title": "" }, { "docid": "cd1920aab6402a881e3e243a21ec808a", "score": "0.5296207", "text": "protected void ObjectivePackTaken() {}", "title": "" }, { "docid": "7e73692c2340c5ded288810a3ff5a77b", "score": "0.52767855", "text": "_201Package get_201Package();", "title": "" }, { "docid": "81deeccef66c48c3d29ba868e392e5e2", "score": "0.5271793", "text": "private static void m1001c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = com.facebook.internal.C0475Q.m996b();\t Catch:{ Exception -> 0x002a }\n if (r0 == 0) goto L_0x0021;\t Catch:{ Exception -> 0x002a }\n L_0x0006:\n r0 = android.os.Environment.getExternalStorageDirectory();\t Catch:{ Exception -> 0x002a }\n r1 = new android.os.StatFs;\t Catch:{ Exception -> 0x002a }\n r0 = r0.getPath();\t Catch:{ Exception -> 0x002a }\n r1.<init>(r0);\t Catch:{ Exception -> 0x002a }\n r0 = r1.getAvailableBlocks();\t Catch:{ Exception -> 0x002a }\n r2 = (long) r0;\t Catch:{ Exception -> 0x002a }\n r0 = r1.getBlockSize();\t Catch:{ Exception -> 0x002a }\n r0 = (long) r0;\t Catch:{ Exception -> 0x002a }\n r2 = r2 * r0;\t Catch:{ Exception -> 0x002a }\n f845d = r2;\t Catch:{ Exception -> 0x002a }\n L_0x0021:\n r0 = f845d;\t Catch:{ Exception -> 0x002a }\n r0 = (double) r0;\t Catch:{ Exception -> 0x002a }\n r0 = com.facebook.internal.C0475Q.m957a(r0);\t Catch:{ Exception -> 0x002a }\n f845d = r0;\t Catch:{ Exception -> 0x002a }\n L_0x002a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.c():void\");\n }", "title": "" }, { "docid": "1c1a904314561534462edecae83643e9", "score": "0.5270079", "text": "AnonymousClass3(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.3.<init>(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.3.<init>(com.oppo.app.OppoSecurityAlertDialog):void\");\n }", "title": "" }, { "docid": "eb43b0d03af44275d9b5565e6a4547f0", "score": "0.5263255", "text": "private ToolsRes() {/** empty block */}", "title": "" }, { "docid": "94e6ad17b9f87ef2630fe6d5f70677b8", "score": "0.52537775", "text": "AnonymousClass6(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.6.<init>(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.6.<init>(com.oppo.app.OppoSecurityAlertDialog):void\");\n }", "title": "" }, { "docid": "377d9f1fd3ab135b8ddacb038d80c150", "score": "0.5248014", "text": "public void testB11_sh68() {\n Map customOptions = getCompilerOptions();\n customOptions.put(CompilerOptions.OPTION_ReportUnusedParameter, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedPrivateMember, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownException, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedTypeArgumentsForMethodInvocation, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLabel, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLocal, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedWarningToken, CompilerOptions.WARNING);\n runTestExpectingWarnings(\n new String[] {\n\t\t\"TB11sh68.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class TB11sh68 {\\n\" +\n\t\t\t \" @SuppressWarnings(\\\"unused\\\")\\n\" +\n\t\t\t \" private int secret;\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"TeamB11sh68.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"@SuppressWarnings({\\\"unused\\\",\\\"basecall\\\",\\\"restriction\\\"}) // last one is unnecessary\\n\" +\n\t\t\t \"public team class TeamB11sh68 {\\n\" +\n\t\t\t \" void bar(int unused) {}\\n\" +\n\t\t\t \" @SuppressWarnings(\\\"basecall\\\") // unnesserary\\n\" +\n\t\t\t \" protected class R playedBy TB11sh68 {\\n\" +\n\t\t\t \" int getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\n\" +\n\t\t\t \" callin void noBaseCall() {\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"----------\\n\" + \n \t\t\"1. WARNING in TeamB11sh68.java (at line 2)\\n\" + \n \t\t\"\t@SuppressWarnings({\\\"unused\\\",\\\"basecall\\\",\\\"restriction\\\"}) // last one is unnecessary\\n\" + \n \t\t\"\t ^^^^^^^^^^\\n\" + \n \t\t\"Unnecessary @SuppressWarnings(\\\"basecall\\\")\\n\" + \n \t\t\"----------\\n\" + \n \t\t\"2. WARNING in TeamB11sh68.java (at line 2)\\n\" + \n \t\t\"\t@SuppressWarnings({\\\"unused\\\",\\\"basecall\\\",\\\"restriction\\\"}) // last one is unnecessary\\n\" + \n \t\t\"\t ^^^^^^^^^^^^^\\n\" + \n \t\t\"Unnecessary @SuppressWarnings(\\\"restriction\\\")\\n\" + \n \t\t\"----------\\n\" + \n \t\t\"3. WARNING in TeamB11sh68.java (at line 7)\\n\" + \n \t\t\"\tint getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\n\" + \n \t\t\"\t ^^^^^^\\n\" + \n \t\t\"Access restriction of private field secret in type TB11sh68 is overridden by this binding (OTJLD 3.5(e)).\\n\" + \n \t\t\"----------\\n\",\n \t\tcustomOptions);\n }", "title": "" }, { "docid": "34648d7515586093b311341dceb74255", "score": "0.52443457", "text": "public void testB11_sh67() {\n Map customOptions = getCompilerOptions();\n customOptions.put(CompilerOptions.OPTION_ReportUnusedParameter, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedPrivateMember, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedDeclaredThrownException, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedTypeArgumentsForMethodInvocation, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLabel, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedImport, CompilerOptions.WARNING);\n customOptions.put(CompilerOptions.OPTION_ReportUnusedLocal, CompilerOptions.WARNING);\n runTestExpectingWarnings(\n new String[] {\n\t\t\"TB11sh67.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class TB11sh67 {\\n\" +\n\t\t\t \" @SuppressWarnings(\\\"unused\\\")\\n\" +\n\t\t\t \" private int secret;\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"TeamB11sh67.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"@SuppressWarnings({\\\"unused\\\",\\\"basecall\\\"})\\n\" +\n\t\t\t \"public team class TeamB11sh67 {\\n\" +\n\t\t\t \" void bar(int unused) {}\\n\" +\n\t\t\t \" protected class R playedBy TB11sh67 {\\n\" +\n\t\t\t \" int getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\n\" +\n\t\t\t \" callin void noBaseCall() {\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"----------\\n\" +\n\t\t\t\"1. WARNING in TeamB11sh67.java (at line 6)\\n\" +\n\t\t\t\"\tint getSecret() -> get int secret; // <- decapsulation warning was masked by above @SuppressWarnings\\n\" +\n\t\t\t\"\t ^^^^^^\\n\" +\n\t\t\t\"Access restriction of private field secret in type TB11sh67 is overridden by this binding (OTJLD 3.5(e)).\\n\" +\n\t\t\t\"----------\\n\",\n customOptions);\n }", "title": "" }, { "docid": "fbbb5466741359a4cdca529de6e08034", "score": "0.5220086", "text": "public void checkIncludePackagePrivateClasses(boolean state) {\n if (cbIncludePackagePrivateClasses().isSelected()!=state) {\n cbIncludePackagePrivateClasses().push();\n }\n }", "title": "" }, { "docid": "82568336f4583327a20f9d8e6a84a965", "score": "0.52142966", "text": "AnonymousClass7(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.7.<init>(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.7.<init>(com.oppo.app.OppoSecurityAlertDialog):void\");\n }", "title": "" }, { "docid": "c4f0c89714a67e0f3af8230658b39489", "score": "0.5185958", "text": "public void mo1394a(android.content.Context r5, android.content.ComponentName r6, int r7) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = \"\";\n r1 = \"android.app.MiuiNotification\";\n r1 = java.lang.Class.forName(r1);\t Catch:{ Exception -> 0x0032 }\n r1 = r1.newInstance();\t Catch:{ Exception -> 0x0032 }\n r2 = r1.getClass();\t Catch:{ Exception -> 0x0032 }\n r3 = \"messageCount\";\t Catch:{ Exception -> 0x0032 }\n r2 = r2.getDeclaredField(r3);\t Catch:{ Exception -> 0x0032 }\n r3 = 1;\t Catch:{ Exception -> 0x0032 }\n r2.setAccessible(r3);\t Catch:{ Exception -> 0x0032 }\n if (r7 != 0) goto L_0x001e;\n L_0x001c:\n r3 = r0;\n goto L_0x0022;\n L_0x001e:\n r3 = java.lang.Integer.valueOf(r7);\t Catch:{ Exception -> 0x002a }\n L_0x0022:\n r3 = java.lang.String.valueOf(r3);\t Catch:{ Exception -> 0x002a }\n r2.set(r1, r3);\t Catch:{ Exception -> 0x002a }\n goto L_0x0074;\n L_0x002a:\n r3 = java.lang.Integer.valueOf(r7);\t Catch:{ Exception -> 0x0032 }\n r2.set(r1, r3);\t Catch:{ Exception -> 0x0032 }\n goto L_0x0074;\n r1 = new android.content.Intent;\n r2 = \"android.intent.action.APPLICATION_MESSAGE_UPDATE\";\n r1.<init>(r2);\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = r6.getPackageName();\n r2.append(r3);\n r3 = \"/\";\n r2.append(r3);\n r6 = r6.getClassName();\n r2.append(r6);\n r6 = r2.toString();\n r2 = \"android.intent.extra.update_application_component_name\";\n r1.putExtra(r2, r6);\n if (r7 != 0) goto L_0x005e;\n L_0x005d:\n goto L_0x0062;\n L_0x005e:\n r0 = java.lang.Integer.valueOf(r7);\n L_0x0062:\n r6 = java.lang.String.valueOf(r0);\n r0 = \"android.intent.extra.update_application_message_text\";\n r1.putExtra(r0, r6);\n r6 = com.onesignal.p036a.p037a.C0615a.m1436a(r5, r1);\n if (r6 == 0) goto L_0x0074;\n L_0x0071:\n r5.sendBroadcast(r1);\n L_0x0074:\n r6 = android.os.Build.MANUFACTURER;\n r0 = \"Xiaomi\";\n r6 = r6.equalsIgnoreCase(r0);\n if (r6 == 0) goto L_0x0081;\n L_0x007e:\n r4.m2349a(r5, r7);\n L_0x0081:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.shortcutbadger.impl.XiaomiHomeBadger.a(android.content.Context, android.content.ComponentName, int):void\");\n }", "title": "" }, { "docid": "3339127358a114248767d398d85c2cce", "score": "0.51690626", "text": "public static java.lang.Object m961a(java.lang.Object r1, java.lang.reflect.Method r2, java.lang.Object... r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = 0;\n r1 = r2.invoke(r1, r3);\t Catch:{ IllegalAccessException -> 0x0006, IllegalAccessException -> 0x0006 }\n return r1;\n L_0x0006:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.a(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]):java.lang.Object\");\n }", "title": "" }, { "docid": "ad34eb2bae92e94264ad1ff19200b30f", "score": "0.51616746", "text": "AnonymousClass1(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.1.<init>(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.1.<init>(com.oppo.app.OppoSecurityAlertDialog):void\");\n }", "title": "" }, { "docid": "9b8416ad81911673ce2bfd1132fa869f", "score": "0.514425", "text": "public static void main(String[] args) {\n AccessModi am = new AccessModi();\n System.out.println(am.num);\n System.out.println(am.value);\n System.out.println(am.a);\n System.out.println(am.c);\n System.out.println(am.x);\n System.out.println(am.mymsg);\n\n //can't access private in another class in same package\n //System.out.println(am.sum);\n //System.out.println(am.name);\n\n }", "title": "" }, { "docid": "7845cca54a2f3c2152a77091d977799b", "score": "0.51406485", "text": "AnonymousClass2(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.2.<init>(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.2.<init>(com.oppo.app.OppoSecurityAlertDialog):void\");\n }", "title": "" }, { "docid": "06b1ccd1cfe84313055c054c1abfc512", "score": "0.51406056", "text": "private static void m1008e() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = java.util.TimeZone.getDefault();\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r1 = new java.util.Date;\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r1.<init>();\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r1 = r0.inDaylightTime(r1);\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r2 = 0;\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r1 = r0.getDisplayName(r1, r2);\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n f846e = r1;\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n r0 = r0.getID();\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n f847f = r0;\t Catch:{ AssertionError -> 0x001a, AssertionError -> 0x001a }\n L_0x001a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.e():void\");\n }", "title": "" }, { "docid": "2d64eb80552f6cd49eb14daca21ee082", "score": "0.513499", "text": "public final void mo6642a() {\n }", "title": "" }, { "docid": "99eabeaca63a0e3c7f12e5e95f963e6d", "score": "0.5134332", "text": "public final void mo62461j() {\n }", "title": "" }, { "docid": "ea5073d98690c44c92b9841490507e3a", "score": "0.51317227", "text": "AnonymousClass4(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.4.<init>(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.4.<init>(com.oppo.app.OppoSecurityAlertDialog):void\");\n }", "title": "" }, { "docid": "5aabce24a515d0f319e7b5b61cee0ff2", "score": "0.51306057", "text": "public void writeBackup(org.xmlpull.v1.XmlSerializer r13) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException {\n /*\n r12 = this;\n monitor-enter(r12)\n java.lang.String r0 = \"slice-access-list\"\n r1 = 0\n r13.startTag(r1, r0) // Catch:{ all -> 0x00b6 }\n java.lang.String r0 = \"version\"\n r2 = 2\n java.lang.String r3 = java.lang.String.valueOf(r2) // Catch:{ all -> 0x00b6 }\n r13.attribute(r1, r0, r3) // Catch:{ all -> 0x00b6 }\n com.android.server.slice.-$$Lambda$SlicePermissionManager$y3Tun5dTftw8s8sky62syeWR34U r0 = com.android.server.slice.$$Lambda$SlicePermissionManager$y3Tun5dTftw8s8sky62syeWR34U.INSTANCE // Catch:{ all -> 0x00b6 }\n android.os.Handler r3 = r12.mHandler // Catch:{ all -> 0x00b6 }\n boolean r3 = r3.hasMessages(r2) // Catch:{ all -> 0x00b6 }\n if (r3 == 0) goto L_0x0025\n android.os.Handler r3 = r12.mHandler // Catch:{ all -> 0x00b6 }\n r3.removeMessages(r2) // Catch:{ all -> 0x00b6 }\n r12.handlePersist() // Catch:{ all -> 0x00b6 }\n L_0x0025:\n java.io.File r3 = new java.io.File // Catch:{ all -> 0x00b6 }\n java.io.File r4 = r12.mSliceDir // Catch:{ all -> 0x00b6 }\n java.lang.String r4 = r4.getAbsolutePath() // Catch:{ all -> 0x00b6 }\n r3.<init>(r4) // Catch:{ all -> 0x00b6 }\n java.lang.String[] r3 = r3.list() // Catch:{ all -> 0x00b6 }\n int r4 = r3.length // Catch:{ all -> 0x00b6 }\n r5 = 0\n L_0x0036:\n if (r5 >= r4) goto L_0x00ad\n r6 = r3[r5] // Catch:{ all -> 0x00b6 }\n com.android.server.slice.SlicePermissionManager$ParserHolder r7 = r12.getParser(r6) // Catch:{ all -> 0x00b6 }\n r8 = r1\n L_0x003f:\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\n int r9 = r9.getEventType() // Catch:{ all -> 0x00a4 }\n r10 = 1\n if (r9 == r10) goto L_0x0080\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\n int r9 = r9.getEventType() // Catch:{ all -> 0x00a4 }\n if (r9 != r2) goto L_0x0078\n java.lang.String r9 = \"client\"\n org.xmlpull.v1.XmlPullParser r10 = r7.parser // Catch:{ all -> 0x00a4 }\n java.lang.String r10 = r10.getName() // Catch:{ all -> 0x00a4 }\n boolean r9 = r9.equals(r10) // Catch:{ all -> 0x00a4 }\n if (r9 == 0) goto L_0x006e\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\n com.android.server.slice.SliceClientPermissions r9 = com.android.server.slice.SliceClientPermissions.createFrom(r9, r0) // Catch:{ all -> 0x00a4 }\n r8 = r9\n goto L_0x0080\n L_0x006e:\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\n com.android.server.slice.SliceProviderPermissions r9 = com.android.server.slice.SliceProviderPermissions.createFrom(r9, r0) // Catch:{ all -> 0x00a4 }\n r8 = r9\n goto L_0x0080\n L_0x0078:\n org.xmlpull.v1.XmlPullParser r9 = r7.parser // Catch:{ all -> 0x00a4 }\n r9.next() // Catch:{ all -> 0x00a4 }\n goto L_0x003f\n L_0x0080:\n if (r8 == 0) goto L_0x0086\n r8.writeTo(r13) // Catch:{ all -> 0x00a4 }\n goto L_0x009c\n L_0x0086:\n java.lang.String r9 = \"SlicePermissionManager\"\n java.lang.StringBuilder r10 = new java.lang.StringBuilder // Catch:{ all -> 0x00a4 }\n r10.<init>() // Catch:{ all -> 0x00a4 }\n java.lang.String r11 = \"Invalid or empty slice permissions file: \"\n r10.append(r11) // Catch:{ all -> 0x00a4 }\n r10.append(r6) // Catch:{ all -> 0x00a4 }\n java.lang.String r10 = r10.toString() // Catch:{ all -> 0x00a4 }\n android.util.Slog.w(r9, r10) // Catch:{ all -> 0x00a4 }\n L_0x009c:\n if (r7 == 0) goto L_0x00a1\n $closeResource(r1, r7) // Catch:{ all -> 0x00b6 }\n L_0x00a1:\n int r5 = r5 + 1\n goto L_0x0036\n L_0x00a4:\n r1 = move-exception\n throw r1 // Catch:{ all -> 0x00a6 }\n L_0x00a6:\n r2 = move-exception\n if (r7 == 0) goto L_0x00ac\n $closeResource(r1, r7) // Catch:{ all -> 0x00b6 }\n L_0x00ac:\n throw r2 // Catch:{ all -> 0x00b6 }\n L_0x00ad:\n java.lang.String r2 = \"slice-access-list\"\n r13.endTag(r1, r2) // Catch:{ all -> 0x00b6 }\n monitor-exit(r12) // Catch:{ all -> 0x00b6 }\n return\n L_0x00b6:\n r0 = move-exception\n monitor-exit(r12) // Catch:{ all -> 0x00b6 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.slice.SlicePermissionManager.writeBackup(org.xmlpull.v1.XmlSerializer):void\");\n }", "title": "" }, { "docid": "dbc7972f276387f7dd4e0392fa884a34", "score": "0.51255476", "text": "static /* synthetic */ boolean m822-get1(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: com.oppo.app.OppoSecurityAlertDialog.-get1(com.oppo.app.OppoSecurityAlertDialog):boolean, dex: in method: com.oppo.app.OppoSecurityAlertDialog.-get1(com.oppo.app.OppoSecurityAlertDialog):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.-get1(com.oppo.app.OppoSecurityAlertDialog):boolean\");\n }", "title": "" }, { "docid": "2b7be89789a5aa8b792541ef8d3faae5", "score": "0.5123302", "text": "private DriversPackage() {}", "title": "" }, { "docid": "27892c59affb5fafcf5fd98caa814cd2", "score": "0.5119509", "text": "private _01_introduction_and_goalsPackage() {}", "title": "" }, { "docid": "dae410ea37173eb3686040711b042c6c", "score": "0.5115917", "text": "public void processIOException(javax.sip.IOExceptionEvent r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.android.server.sip.SipSessionGroup.processIOException(javax.sip.IOExceptionEvent):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.processIOException(javax.sip.IOExceptionEvent):void\");\n }", "title": "" }, { "docid": "4be7683a6d93de791eae8b17ef63bbb8", "score": "0.511489", "text": "@Test\n\tpublic void testExtract() {\n\t}", "title": "" }, { "docid": "fb314a5b8b7c7aaa076074bc26f25a72", "score": "0.5112942", "text": "public void checkAccess() {\r\n\t}", "title": "" }, { "docid": "989eaa67044fa232b6b88864f7c4465c", "score": "0.5112898", "text": "@Test\n public void testInterfaceWithPrivateAccessMethodInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface access='org.auraframework.impl.test.util.TestAccessMethods.allowPrivate'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n def.validateDefinition();\n }", "title": "" }, { "docid": "0e876228445be00b2faacb127b30aee9", "score": "0.51124024", "text": "AnonymousClass5(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.oppo.app.OppoSecurityAlertDialog.5.<init>(com.oppo.app.OppoSecurityAlertDialog):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.5.<init>(com.oppo.app.OppoSecurityAlertDialog):void\");\n }", "title": "" }, { "docid": "f87b12bef5ee86dcca15eaa7eb2a7f75", "score": "0.5111325", "text": "private Subtask03() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "title": "" }, { "docid": "60dc1dab3efc1ffbcdd2b84b6d332141", "score": "0.5109466", "text": "static /* synthetic */ android.app.Dialog m819-get0(com.oppo.app.OppoSecurityAlertDialog r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.oppo.app.OppoSecurityAlertDialog.-get0(com.oppo.app.OppoSecurityAlertDialog):android.app.Dialog, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oppo.app.OppoSecurityAlertDialog.-get0(com.oppo.app.OppoSecurityAlertDialog):android.app.Dialog\");\n }", "title": "" }, { "docid": "849a2e49a680ceec2fc7d3776e07a871", "score": "0.51045674", "text": "private static void m1010f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = com.facebook.internal.C0475Q.m996b();\t Catch:{ Exception -> 0x002a }\n if (r0 == 0) goto L_0x0021;\t Catch:{ Exception -> 0x002a }\n L_0x0006:\n r0 = android.os.Environment.getExternalStorageDirectory();\t Catch:{ Exception -> 0x002a }\n r1 = new android.os.StatFs;\t Catch:{ Exception -> 0x002a }\n r0 = r0.getPath();\t Catch:{ Exception -> 0x002a }\n r1.<init>(r0);\t Catch:{ Exception -> 0x002a }\n r0 = r1.getBlockCount();\t Catch:{ Exception -> 0x002a }\n r2 = (long) r0;\t Catch:{ Exception -> 0x002a }\n r0 = r1.getBlockSize();\t Catch:{ Exception -> 0x002a }\n r0 = (long) r0;\t Catch:{ Exception -> 0x002a }\n r2 = r2 * r0;\t Catch:{ Exception -> 0x002a }\n f844c = r2;\t Catch:{ Exception -> 0x002a }\n L_0x0021:\n r0 = f844c;\t Catch:{ Exception -> 0x002a }\n r0 = (double) r0;\t Catch:{ Exception -> 0x002a }\n r0 = com.facebook.internal.C0475Q.m957a(r0);\t Catch:{ Exception -> 0x002a }\n f844c = r0;\t Catch:{ Exception -> 0x002a }\n L_0x002a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.f():void\");\n }", "title": "" }, { "docid": "369c781538344602d96c3393d73c60fa", "score": "0.5076089", "text": "@Override\n public void extraFieldsCheck() {\n // UNDONE: Get rid of...\n }", "title": "" }, { "docid": "3c18c627f55d9e3742e3f50944a08ea8", "score": "0.5075409", "text": "final java.lang.String m9400a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = android.os.Parcel.obtain();\n r1 = r6.f8422b;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r2 = \"UTF-8\";\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r1 = r1.getBytes(r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r2 = 0;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r1 = android.util.Base64.encodeToString(r1, r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r3 = r6.f8423c;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r3 = java.lang.Integer.toString(r3);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r6.f8421a;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4.writeToParcel(r0, r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r0.marshall();\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r2 = android.util.Base64.encodeToString(r4, r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = java.lang.String.valueOf(r1);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r4.length();\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r4 + 2;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5 = java.lang.String.valueOf(r3);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5 = r5.length();\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r4 + r5;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5 = java.lang.String.valueOf(r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5 = r5.length();\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r4 = r4 + r5;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.<init>(r4);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r1 = \"\\u0000\";\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.append(r3);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r1 = \"\\u0000\";\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r5.append(r2);\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r1 = r5.toString();\t Catch:{ UnsupportedEncodingException -> 0x0062 }\n r0.recycle();\n return r1;\n L_0x0060:\n r1 = move-exception;\n goto L_0x006d;\n L_0x0062:\n r1 = \"QueueSeed encode failed because UTF-8 is not available.\";\t Catch:{ all -> 0x0060 }\n com.google.android.gms.internal.ads.zzaok.m10003c(r1);\t Catch:{ all -> 0x0060 }\n r0.recycle();\n r0 = \"\";\n return r0;\n L_0x006d:\n r0.recycle();\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.uu.a():java.lang.String\");\n }", "title": "" }, { "docid": "e0f0fb463f7172c486f4f05e2af0135a", "score": "0.5068903", "text": "public void testClassForNameFalsePickup() throws Exception {\n\t\ttry (Analyzer a = new Analyzer()) {\n\t\t\tClazz c = new Clazz(a, \"\", null);\n\t\t\tc.parseClassFile(new FileInputStream(\"jar/DeploymentAdminPermission.1.jclass\"),\n\t\t\t\tnew ClassDataCollector() {});\n\t\t\tSet<PackageRef> referred = c.getReferred();\n\t\t\tDescriptors d = new Descriptors();\n\t\t\tassertFalse(referred.contains(d.getPackageRef(\"\")));\n\t\t\tSystem.out.println(referred);\n\t\t}\n\t}", "title": "" }, { "docid": "a0e2549827498031916e135dccd9f441", "score": "0.50521755", "text": "private SpecPackage() {}", "title": "" }, { "docid": "42cfd278ceed2c3a8f22b1da6eea96df", "score": "0.5045129", "text": "@RecentlyNonNull\n/* */ public String getPackageName() {\n/* 157 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "c4cff81fce3ca207795d8362b2ecf4d5", "score": "0.50389326", "text": "@Test\n @Ignore\n public void test_10000_IT() throws IOException, GeneralSecurityException {\n }", "title": "" }, { "docid": "0089764d5cded328d6870f7b9cce1133", "score": "0.5036958", "text": "protected void extraFileActions(PackageSymbol pack, JavaFileObject fe) {\n }", "title": "" }, { "docid": "e121d24b1aacca6faf16658107ca2bd2", "score": "0.50301194", "text": "private BuildingblockPackage() {}", "title": "" }, { "docid": "3100142a4bc4afbfbc148633e4c7f386", "score": "0.50120264", "text": "static /* synthetic */ int m24-get3(com.android.server.sip.SipSessionGroup r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: com.android.server.sip.SipSessionGroup.-get3(com.android.server.sip.SipSessionGroup):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.-get3(com.android.server.sip.SipSessionGroup):int\");\n }", "title": "" }, { "docid": "97ff7daa8fcd13ac67d3941bce50a76a", "score": "0.50103754", "text": "public boolean verifyPackage(android.content.Context r23, android.net.Uri r24, java.lang.String r25, java.lang.String r26, java.util.Set<java.lang.String> r27, int r28) {\n /*\n // Method dump skipped, instructions count: 426\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oculus.appsafety.PackageVerifier.verifyPackage(android.content.Context, android.net.Uri, java.lang.String, java.lang.String, java.util.Set, int):boolean\");\n }", "title": "" }, { "docid": "a55a117206823f1c09b2ed1fbc8a44d9", "score": "0.50095946", "text": "private Utilities() {}", "title": "" }, { "docid": "b6649f48a49a875f571febe5b74d326a", "score": "0.50069815", "text": "public static void main(String[] args) {\n AccessModifiers obj1 = new AccessModifiers();\n // System.out.println(obj1.defaultAccess); // default will not compile, only accessible in same package\n System.out.println(obj1.publicAccess);// public will compile, accepted anywhere\n // System.out.println(obj1.SSN); // default will not compile, only accessible in the same package\n\n }", "title": "" }, { "docid": "ed2bae21d2618f51fa68766f2ce30999", "score": "0.50059074", "text": "static void method_9029() {\r\n // $FF: Couldn't be decompiled\r\n }", "title": "" }, { "docid": "1d10b0da4d18f6de501e052b7a73df07", "score": "0.50036913", "text": "abstract public org.omg.CORBA.Object extract_Object() throws BAD_OPERATION;", "title": "" }, { "docid": "cd30a3b576d8fc26afe218ae8c8f3d5b", "score": "0.49992266", "text": "private PublicationUtils(){ }", "title": "" }, { "docid": "1e34493fdecb11f6bbc24ef12eea2281", "score": "0.4995657", "text": "public void mo27791d() {\n }", "title": "" }, { "docid": "acbb02f47467f45f5ab2c3b2e5f7545d", "score": "0.49904877", "text": "public final void mo62452a() {\n }", "title": "" }, { "docid": "80225d2aa4fe49030e4c586c20a72926", "score": "0.49898645", "text": "@Override\n\tpublic void collectPackage(Package p) {\n\t\t\n\t}", "title": "" }, { "docid": "dc25060e6d466c7987078802e1ffd3fb", "score": "0.49893317", "text": "private ImportException() {\n }", "title": "" }, { "docid": "443d19ade63a2c99ec92274189f22861", "score": "0.49848536", "text": "private java.lang.String extractContent(javax.sip.message.Message r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.server.sip.SipSessionGroup.extractContent(javax.sip.message.Message):java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.extractContent(javax.sip.message.Message):java.lang.String\");\n }", "title": "" }, { "docid": "0b9d3ba7421a6ee414f716427d0053e4", "score": "0.4982013", "text": "public void test(int arg1, final String arg2) throws IllegalAccess, java.lang.Exception {}", "title": "" }, { "docid": "6c6a43d5195bef5f92415dc94f031a74", "score": "0.49801412", "text": "public static java.lang.reflect.Method m969a(java.lang.String r0, java.lang.String r1, java.lang.Class<?>... r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = java.lang.Class.forName(r0);\t Catch:{ ClassNotFoundException -> 0x0009 }\n r0 = com.facebook.internal.C0475Q.m968a(r0, r1, r2);\t Catch:{ ClassNotFoundException -> 0x0009 }\n return r0;\n L_0x0009:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.a(java.lang.String, java.lang.String, java.lang.Class[]):java.lang.reflect.Method\");\n }", "title": "" }, { "docid": "23f2ddb2f5c29496561be01dd0c9c62d", "score": "0.49775797", "text": "private java.lang.Throwable getRootCause(java.lang.Throwable r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.server.sip.SipSessionGroup.getRootCause(java.lang.Throwable):java.lang.Throwable, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.getRootCause(java.lang.Throwable):java.lang.Throwable\");\n }", "title": "" }, { "docid": "e8b6a10ed01f50fbe15d66c44e6b001f", "score": "0.49751204", "text": "public void mo28809c() {\n }", "title": "" }, { "docid": "75681fafe52bf115f3431eac309a57d2", "score": "0.4972628", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n ArchiveScanner archiveScanner0 = new ArchiveScanner((ImprovedFile) null);\n archiveScanner0.addDefaultExcludes();\n Vector<Integer> vector0 = new Vector<Integer>();\n archiveScanner0.filesIncluded = vector0;\n String[] stringArray0 = new String[1];\n stringArray0[0] = \"{P6,\";\n archiveScanner0.setIncludes(stringArray0);\n // Undeclared exception!\n try { \n archiveScanner0.processArchive((File) null, \"{P6,\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.lts.io.archive.AbstractNestedArchive\", e);\n }\n }", "title": "" }, { "docid": "eb16ba9b0d99447202c08f9640c707ec", "score": "0.4971881", "text": "public void testAppFailAccessPrivateData() throws Exception {\n Log.i(LOG_TAG, \"installing app that attempts to access another app's private data\");\n try {\n // cleanup test app that might be installed from previous partial test run\n getDevice().uninstallPackage(APP_WITH_DATA_PKG);\n getDevice().uninstallPackage(APP_ACCESS_DATA_PKG);\n\n String installResult = getDevice().installPackage(getTestAppFile(APP_WITH_DATA_APK),\n false);\n assertNull(String.format(\"failed to install app with data. Reason: %s\", installResult),\n installResult);\n // run appwithdata's tests to create private data\n assertTrue(\"failed to create app's private data\", runDeviceTests(APP_WITH_DATA_PKG,\n APP_WITH_DATA_CLASS, APP_WITH_DATA_CREATE_METHOD));\n\n installResult = getDevice().installPackage(getTestAppFile(APP_ACCESS_DATA_APK),\n false);\n assertNull(String.format(\"failed to install app access data. Reason: %s\",\n installResult), installResult);\n // run appaccessdata's tests which attempt to access appwithdata's private data\n assertTrue(\"could access app's private data\", runDeviceTests(APP_ACCESS_DATA_PKG));\n }\n finally {\n getDevice().uninstallPackage(APP_WITH_DATA_PKG);\n getDevice().uninstallPackage(APP_ACCESS_DATA_PKG);\n }\n }", "title": "" }, { "docid": "afc53f175fd6d94d7b70fb185e816639", "score": "0.49668872", "text": "public int describeContents() {\n/* 119 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "e8788618b0f3866df1e3bad37ddcc7f8", "score": "0.49602747", "text": "public static String TestabilityResult_Private() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "11d1cadbf8ad7714121656a87aaa4631", "score": "0.49542797", "text": "public abstract boolean getIsPrivate();", "title": "" }, { "docid": "f9f23e0c7ecb2acb07d958a7680b6bb8", "score": "0.4953782", "text": "public boolean isPrivate() { return _private; }", "title": "" }, { "docid": "dbc1314f2d89bb9cbbdc87687ecf7c99", "score": "0.4937216", "text": "@Override\n public PackageInfo getPackageInfo(String packageName, int flags)\n throws NameNotFoundException {\n PackageInfo info = new PackageInfo();\n info.packageName = packageName;\n info.versionName = \"test\";\n return info;\n }", "title": "" }, { "docid": "c21b3518cd426df7fab1061c82e2817f", "score": "0.4935048", "text": "final void put(ByteVector out) {\n/* 2185 */ int FACTOR = 64;\n/* 2186 */ int mask = 0xE0000 | (this.access & 0x40000) / 64;\n/* */ \n/* */ \n/* 2189 */ out.putShort(this.access & (mask ^ 0xFFFFFFFF)).putShort(this.name).putShort(this.desc);\n/* 2190 */ if (this.classReaderOffset != 0) {\n/* 2191 */ out.putByteArray(this.cw.cr.b, this.classReaderOffset, this.classReaderLength);\n/* */ return;\n/* */ } \n/* 2194 */ int attributeCount = 0;\n/* 2195 */ if (this.code.length > 0) {\n/* 2196 */ attributeCount++;\n/* */ }\n/* 2198 */ if (this.exceptionCount > 0) {\n/* 2199 */ attributeCount++;\n/* */ }\n/* 2201 */ if ((this.access & 0x1000) != 0 && ((\n/* 2202 */ this.cw.version & 0xFFFF) < 49 || (this.access & 0x40000) != 0))\n/* */ {\n/* 2204 */ attributeCount++;\n/* */ }\n/* */ \n/* 2207 */ if ((this.access & 0x20000) != 0) {\n/* 2208 */ attributeCount++;\n/* */ }\n/* 2210 */ if (this.signature != null) {\n/* 2211 */ attributeCount++;\n/* */ }\n/* 2213 */ if (this.methodParameters != null) {\n/* 2214 */ attributeCount++;\n/* */ }\n/* 2216 */ if (this.annd != null) {\n/* 2217 */ attributeCount++;\n/* */ }\n/* 2219 */ if (this.anns != null) {\n/* 2220 */ attributeCount++;\n/* */ }\n/* 2222 */ if (this.ianns != null) {\n/* 2223 */ attributeCount++;\n/* */ }\n/* 2225 */ if (this.tanns != null) {\n/* 2226 */ attributeCount++;\n/* */ }\n/* 2228 */ if (this.itanns != null) {\n/* 2229 */ attributeCount++;\n/* */ }\n/* 2231 */ if (this.panns != null) {\n/* 2232 */ attributeCount++;\n/* */ }\n/* 2234 */ if (this.ipanns != null) {\n/* 2235 */ attributeCount++;\n/* */ }\n/* 2237 */ if (this.attrs != null) {\n/* 2238 */ attributeCount += this.attrs.getCount();\n/* */ }\n/* 2240 */ out.putShort(attributeCount);\n/* 2241 */ if (this.code.length > 0) {\n/* 2242 */ int size = 12 + this.code.length + 8 * this.handlerCount;\n/* 2243 */ if (this.localVar != null) {\n/* 2244 */ size += 8 + this.localVar.length;\n/* */ }\n/* 2246 */ if (this.localVarType != null) {\n/* 2247 */ size += 8 + this.localVarType.length;\n/* */ }\n/* 2249 */ if (this.lineNumber != null) {\n/* 2250 */ size += 8 + this.lineNumber.length;\n/* */ }\n/* 2252 */ if (this.stackMap != null) {\n/* 2253 */ size += 8 + this.stackMap.length;\n/* */ }\n/* 2255 */ if (this.ctanns != null) {\n/* 2256 */ size += 8 + this.ctanns.getSize();\n/* */ }\n/* 2258 */ if (this.ictanns != null) {\n/* 2259 */ size += 8 + this.ictanns.getSize();\n/* */ }\n/* 2261 */ if (this.cattrs != null) {\n/* 2262 */ size += this.cattrs.getSize(this.cw, this.code.data, this.code.length, this.maxStack, this.maxLocals);\n/* */ }\n/* */ \n/* 2265 */ out.putShort(this.cw.newUTF8(\"Code\")).putInt(size);\n/* 2266 */ out.putShort(this.maxStack).putShort(this.maxLocals);\n/* 2267 */ out.putInt(this.code.length).putByteArray(this.code.data, 0, this.code.length);\n/* 2268 */ out.putShort(this.handlerCount);\n/* 2269 */ if (this.handlerCount > 0) {\n/* 2270 */ Handler h = this.firstHandler;\n/* 2271 */ while (h != null) {\n/* 2272 */ out.putShort(h.start.position).putShort(h.end.position)\n/* 2273 */ .putShort(h.handler.position).putShort(h.type);\n/* 2274 */ h = h.next;\n/* */ } \n/* */ } \n/* 2277 */ attributeCount = 0;\n/* 2278 */ if (this.localVar != null) {\n/* 2279 */ attributeCount++;\n/* */ }\n/* 2281 */ if (this.localVarType != null) {\n/* 2282 */ attributeCount++;\n/* */ }\n/* 2284 */ if (this.lineNumber != null) {\n/* 2285 */ attributeCount++;\n/* */ }\n/* 2287 */ if (this.stackMap != null) {\n/* 2288 */ attributeCount++;\n/* */ }\n/* 2290 */ if (this.ctanns != null) {\n/* 2291 */ attributeCount++;\n/* */ }\n/* 2293 */ if (this.ictanns != null) {\n/* 2294 */ attributeCount++;\n/* */ }\n/* 2296 */ if (this.cattrs != null) {\n/* 2297 */ attributeCount += this.cattrs.getCount();\n/* */ }\n/* 2299 */ out.putShort(attributeCount);\n/* 2300 */ if (this.localVar != null) {\n/* 2301 */ out.putShort(this.cw.newUTF8(\"LocalVariableTable\"));\n/* 2302 */ out.putInt(this.localVar.length + 2).putShort(this.localVarCount);\n/* 2303 */ out.putByteArray(this.localVar.data, 0, this.localVar.length);\n/* */ } \n/* 2305 */ if (this.localVarType != null) {\n/* 2306 */ out.putShort(this.cw.newUTF8(\"LocalVariableTypeTable\"));\n/* 2307 */ out.putInt(this.localVarType.length + 2).putShort(this.localVarTypeCount);\n/* 2308 */ out.putByteArray(this.localVarType.data, 0, this.localVarType.length);\n/* */ } \n/* 2310 */ if (this.lineNumber != null) {\n/* 2311 */ out.putShort(this.cw.newUTF8(\"LineNumberTable\"));\n/* 2312 */ out.putInt(this.lineNumber.length + 2).putShort(this.lineNumberCount);\n/* 2313 */ out.putByteArray(this.lineNumber.data, 0, this.lineNumber.length);\n/* */ } \n/* 2315 */ if (this.stackMap != null) {\n/* 2316 */ boolean zip = ((this.cw.version & 0xFFFF) >= 50);\n/* 2317 */ out.putShort(this.cw.newUTF8(zip ? \"StackMapTable\" : \"StackMap\"));\n/* 2318 */ out.putInt(this.stackMap.length + 2).putShort(this.frameCount);\n/* 2319 */ out.putByteArray(this.stackMap.data, 0, this.stackMap.length);\n/* */ } \n/* 2321 */ if (this.ctanns != null) {\n/* 2322 */ out.putShort(this.cw.newUTF8(\"RuntimeVisibleTypeAnnotations\"));\n/* 2323 */ this.ctanns.put(out);\n/* */ } \n/* 2325 */ if (this.ictanns != null) {\n/* 2326 */ out.putShort(this.cw.newUTF8(\"RuntimeInvisibleTypeAnnotations\"));\n/* 2327 */ this.ictanns.put(out);\n/* */ } \n/* 2329 */ if (this.cattrs != null) {\n/* 2330 */ this.cattrs.put(this.cw, this.code.data, this.code.length, this.maxLocals, this.maxStack, out);\n/* */ }\n/* */ } \n/* 2333 */ if (this.exceptionCount > 0) {\n/* 2334 */ out.putShort(this.cw.newUTF8(\"Exceptions\")).putInt(2 * this.exceptionCount + 2);\n/* */ \n/* 2336 */ out.putShort(this.exceptionCount);\n/* 2337 */ for (int i = 0; i < this.exceptionCount; i++) {\n/* 2338 */ out.putShort(this.exceptions[i]);\n/* */ }\n/* */ } \n/* 2341 */ if ((this.access & 0x1000) != 0 && ((\n/* 2342 */ this.cw.version & 0xFFFF) < 49 || (this.access & 0x40000) != 0))\n/* */ {\n/* 2344 */ out.putShort(this.cw.newUTF8(\"Synthetic\")).putInt(0);\n/* */ }\n/* */ \n/* 2347 */ if ((this.access & 0x20000) != 0) {\n/* 2348 */ out.putShort(this.cw.newUTF8(\"Deprecated\")).putInt(0);\n/* */ }\n/* 2350 */ if (this.signature != null) {\n/* 2351 */ out.putShort(this.cw.newUTF8(\"Signature\")).putInt(2)\n/* 2352 */ .putShort(this.cw.newUTF8(this.signature));\n/* */ }\n/* 2354 */ if (this.methodParameters != null) {\n/* 2355 */ out.putShort(this.cw.newUTF8(\"MethodParameters\"));\n/* 2356 */ out.putInt(this.methodParameters.length + 1).putByte(this.methodParametersCount);\n/* */ \n/* 2358 */ out.putByteArray(this.methodParameters.data, 0, this.methodParameters.length);\n/* */ } \n/* 2360 */ if (this.annd != null) {\n/* 2361 */ out.putShort(this.cw.newUTF8(\"AnnotationDefault\"));\n/* 2362 */ out.putInt(this.annd.length);\n/* 2363 */ out.putByteArray(this.annd.data, 0, this.annd.length);\n/* */ } \n/* 2365 */ if (this.anns != null) {\n/* 2366 */ out.putShort(this.cw.newUTF8(\"RuntimeVisibleAnnotations\"));\n/* 2367 */ this.anns.put(out);\n/* */ } \n/* 2369 */ if (this.ianns != null) {\n/* 2370 */ out.putShort(this.cw.newUTF8(\"RuntimeInvisibleAnnotations\"));\n/* 2371 */ this.ianns.put(out);\n/* */ } \n/* 2373 */ if (this.tanns != null) {\n/* 2374 */ out.putShort(this.cw.newUTF8(\"RuntimeVisibleTypeAnnotations\"));\n/* 2375 */ this.tanns.put(out);\n/* */ } \n/* 2377 */ if (this.itanns != null) {\n/* 2378 */ out.putShort(this.cw.newUTF8(\"RuntimeInvisibleTypeAnnotations\"));\n/* 2379 */ this.itanns.put(out);\n/* */ } \n/* 2381 */ if (this.panns != null) {\n/* 2382 */ out.putShort(this.cw.newUTF8(\"RuntimeVisibleParameterAnnotations\"));\n/* 2383 */ AnnotationWriter.put(this.panns, this.synthetics, out);\n/* */ } \n/* 2385 */ if (this.ipanns != null) {\n/* 2386 */ out.putShort(this.cw.newUTF8(\"RuntimeInvisibleParameterAnnotations\"));\n/* 2387 */ AnnotationWriter.put(this.ipanns, this.synthetics, out);\n/* */ } \n/* 2389 */ if (this.attrs != null)\n/* 2390 */ this.attrs.put(this.cw, null, 0, -1, -1, out); \n/* */ }", "title": "" }, { "docid": "03143ee9b26aa8a7d43576d479e4400a", "score": "0.4930355", "text": "public final void mo55685Zy() {\n }", "title": "" }, { "docid": "07019065ca073ef835ee0c9fba1ec583", "score": "0.4923179", "text": "@Test\n public void testInterfaceWithUnAuthenticationMethodInternalNamespace() throws Exception {\n String intfSource = \"<aura:interface access='org.auraframework.impl.test.util.TestAccessMethods.allowAuthenticated'/>\";\n DefDescriptor<InterfaceDef> descriptor = \n getAuraTestingUtil().addSourceAutoCleanup(InterfaceDef.class,\n intfSource, StringSourceLoader.DEFAULT_NAMESPACE+\":testInterface\",\n NamespaceAccess.INTERNAL);\n Source<InterfaceDef> source = stringSourceLoader.getSource(descriptor);\n \n Parser<InterfaceDef> parser = parserFactory.getParser(Format.XML, descriptor);\n Definition def = parser.parse(descriptor, source);\n try {\n def.validateDefinition();\n fail(\"Expect to die with InvalidAccessValueException\");\n } catch(InvalidAccessValueException e) {\n String expectedMsg = \"\\\"org.auraframework.impl.test.util.TestAccessMethods.allowAuthenticated\\\" must return a result of type org.auraframework.system.AuraContext$Access\";\n assertTrue(\"Getting this message instead:\"+e.getMessage(), e.getMessage().contains(expectedMsg));\n }\n }", "title": "" }, { "docid": "9785a92a730aef5f4610f9d7a659b992", "score": "0.49201947", "text": "private ArchiveUtils() {\n\n\t}", "title": "" }, { "docid": "d9168be24923d83e0f59d1bcf21538ee", "score": "0.4916503", "text": "@Test\n public void testNoPublicFields() throws Exception {\n final CalciteAssert.AssertThat with = CalciteAssert.that().withSchema(\"s\", ReflectiveSchemaTest.CATCHALL);\n with.query(\"select 1 from \\\"s\\\".\\\"allPrivates\\\"\").returns(\"EXPR$0=1\\n\");\n with.query(\"select \\\"x\\\" from \\\"s\\\".\\\"allPrivates\\\"\").throws_(\"Column 'x' not found in any table\");\n }", "title": "" }, { "docid": "d2a63a6354e126ccb0f3df5c83410bfc", "score": "0.49146417", "text": "@Test\n\tpublic void test05ImportExportAccess() throws Exception {\n\t log.trace(\"<test05ImportExport..()\");\n final int cryptoTokenId = CryptoTokenManagementSessionTest.createCryptoTokenForCA(internalAdmin, \"test05\", \"prime256v1\");\n try {\n final CAToken catoken = CaTestUtils.createCaToken(cryptoTokenId, AlgorithmConstants.SIGALG_SHA256_WITH_ECDSA, AlgorithmConstants.SIGALG_SHA1_WITH_RSA);\n subTestPublicAccess(catoken, adminTokenNoAuth);\n } finally {\n CryptoTokenManagementSessionTest.removeCryptoToken(internalAdmin, cryptoTokenId);\n }\n\t log.trace(\"<test05ImportExport()\");\n\t}", "title": "" }, { "docid": "5eb303064635f4909e997c3effe2511d", "score": "0.4912586", "text": "public void mo27792e() {\n }", "title": "" }, { "docid": "e22a0b7dce028ee6568a34e97d3191b7", "score": "0.49114668", "text": "zzaea mo29902l() throws RemoteException;", "title": "" }, { "docid": "bcde99cf67dce2bdd9e6dfef10352e64", "score": "0.49106663", "text": "private MicroservicesPackage() {}", "title": "" }, { "docid": "2b802dfbd8901c0ad67b6f089067b4b7", "score": "0.49084052", "text": "private ServicesPackage() {}", "title": "" }, { "docid": "b0cec9fa03125c6dcf9d94b7d132016f", "score": "0.4907533", "text": "public Object getPrivateInfo() {\r\n return null;\r\n }", "title": "" }, { "docid": "4478bc733aeb734362d0f54591ac7b36", "score": "0.49047428", "text": "public static java.lang.reflect.Method m968a(java.lang.Class<?> r0, java.lang.String r1, java.lang.Class<?>... r2) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r0 = r0.getMethod(r1, r2);\t Catch:{ NoSuchMethodException -> 0x0005 }\n return r0;\n L_0x0005:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.Q.a(java.lang.Class, java.lang.String, java.lang.Class[]):java.lang.reflect.Method\");\n }", "title": "" }, { "docid": "43602ec508c3ffa2584f9a6937cc9ee4", "score": "0.49012572", "text": "static /* synthetic */ java.util.Map m28-get7(com.android.server.sip.SipSessionGroup r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.server.sip.SipSessionGroup.-get7(com.android.server.sip.SipSessionGroup):java.util.Map, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.-get7(com.android.server.sip.SipSessionGroup):java.util.Map\");\n }", "title": "" }, { "docid": "08c957f50081b265b586354fd5ace1ab", "score": "0.48993492", "text": "@Test(timeout = 4000)\n public void test06() throws Throwable {\n ImprovedFile improvedFile0 = new ImprovedFile(\"\", \"\");\n ArchiveScanner archiveScanner0 = new ArchiveScanner(improvedFile0);\n String[] stringArray0 = new String[1];\n Vector<String> vector0 = new Vector<String>();\n stringArray0[0] = \"\";\n archiveScanner0.includes = stringArray0;\n archiveScanner0.setExcludes(stringArray0);\n // Undeclared exception!\n try { \n archiveScanner0.processDirectory(improvedFile0, \"\", true);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.lts.io.ArchiveScanner\", e);\n }\n }", "title": "" }, { "docid": "926f1dafe8299d7ffa83872b7abd9a87", "score": "0.48954427", "text": "static /* synthetic */ java.lang.String m27-get6(com.android.server.sip.SipSessionGroup r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: com.android.server.sip.SipSessionGroup.-get6(com.android.server.sip.SipSessionGroup):java.lang.String, dex: in method: com.android.server.sip.SipSessionGroup.-get6(com.android.server.sip.SipSessionGroup):java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.sip.SipSessionGroup.-get6(com.android.server.sip.SipSessionGroup):java.lang.String\");\n }", "title": "" }, { "docid": "c87cfe8074f148c5e63b6212f11d6ccc", "score": "0.48933607", "text": "@Override\n public boolean isPackaged() {\n return false;\n }", "title": "" }, { "docid": "381ca210fc42b87f9b8af474719578a0", "score": "0.48884293", "text": "public void mo41489c() {\n }", "title": "" }, { "docid": "4e78a1890913c20c10f4f676befd73e8", "score": "0.48872647", "text": "public final void mo28821a() {\n }", "title": "" }, { "docid": "567115596ec8bb85a0d2649208e56ff3", "score": "0.48857573", "text": "public MultiFileTransferLog() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: org.gsma.joyn.ft.MultiFileTransferLog.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.gsma.joyn.ft.MultiFileTransferLog.<init>():void\");\n }", "title": "" }, { "docid": "f0843d85061e17938090118e3c96bec2", "score": "0.4881103", "text": "@Override\n\t\t\tpublic boolean isAccessible() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "d18e10e5eae32e5d254334c5f4890807", "score": "0.48765835", "text": "private CardPackageApiSupport()\r\n {\r\n // empty\r\n }", "title": "" }, { "docid": "b39c78628a61ee06397075880a584388", "score": "0.4868502", "text": "public final void mo8213X1() {\n /*\n r3 = this;\n java.lang.String r0 = \"ChromeTabbedActivity.maybeGetFeedAppLifecycleAndMaybeCreatePageViewObserver\"\n org.chromium.base.TraceEvent r0 = org.chromium.base.TraceEvent.m1469B(r0)\n java.lang.String r1 = \"InterestFeedContentSuggestions\"\n org.chromium.chrome.browser.ChromeFeatureList.m1784a(r1) // Catch:{ all -> 0x0012 }\n if (r0 == 0) goto L_0x0011\n r1 = 0\n m1791a((java.lang.Throwable) r1, (org.chromium.base.TraceEvent) r0)\n L_0x0011:\n return\n L_0x0012:\n r1 = move-exception\n throw r1 // Catch:{ all -> 0x0014 }\n L_0x0014:\n r2 = move-exception\n if (r0 == 0) goto L_0x001a\n m1791a((java.lang.Throwable) r1, (org.chromium.base.TraceEvent) r0)\n L_0x001a:\n throw r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.chromium.chrome.browser.ChromeTabbedActivity.mo8213X1():void\");\n }", "title": "" }, { "docid": "2f23eb771c0f445eb3690189fe6f7213", "score": "0.48673615", "text": "public static void main(String[] args) {\n\t\tpackage_example t = new package_example();\r\n\t\tt.display();\r\n//\t\tt.display2(); //cant access becz display2() is private \r\n\r\n\t}", "title": "" }, { "docid": "45842bf5e4bd7c537290554951af9a65", "score": "0.48649248", "text": "private static void privateStaticMethod() {\n\n }", "title": "" }, { "docid": "91ce1b5da6f2e3b3d5fbe3723dadfa59", "score": "0.48611465", "text": "@Override\n\tprotected void packaging() {\n\t\t\n\t}", "title": "" }, { "docid": "94d4a251c672ecb1f50b8205825dad2e", "score": "0.48608184", "text": "@Override\n\tpublic void extractArgs() {\n\t\t\n\t}", "title": "" }, { "docid": "d0aff5f06a2ec416a757c6104556cd2a", "score": "0.48565024", "text": "public static void main(String[] args) {\n\n System.out.println( _03TestData.publicData );\n System.out.println( _03TestData.protectedData );\n System.out.println( _03TestData.defaultData );\n// System.out.println( _03TestData.privateData ); compile error, private can never be inherited\n }", "title": "" }, { "docid": "c516d88f4c90a207dfab57bd455f5a76", "score": "0.48543656", "text": "public FileDescriptor getFileDescriptor() {\n/* 77 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "title": "" }, { "docid": "2199ea39f30585267f946c4ae23fa39a", "score": "0.4852261", "text": "public static /* synthetic */ void m93701ak() {\n }", "title": "" } ]
cd0b5343260ebbe59b58269a382fdb1e
verify the required parameter 'email' is set
[ { "docid": "eb4e79a467519d0169c6ab4441bf2bfe", "score": "0.0", "text": "@SuppressWarnings(\"rawtypes\")\r\n private com.squareup.okhttp.Call getCustomerByEmailValidateBeforeCall(String email, String expand, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n if (email == null) {\r\n throw new ApiException(\"Missing the required parameter 'email' when calling getCustomerByEmail(Async)\");\r\n }\r\n \r\n\r\n com.squareup.okhttp.Call call = getCustomerByEmailCall(email, expand, progressListener, progressRequestListener);\r\n return call;\r\n\r\n }", "title": "" } ]
[ { "docid": "fd2996f7451e56562eb3346dadb117c1", "score": "0.73102695", "text": "@Test\n\tpublic void givenemail_whichisproper_returntrue() {\n\t\tUserRegistration user = new UserRegistration();\n\t\tboolean result;\n\t\ttry {\n\t\t\tresult = user.validateEmail(\"anirudhamayya23@gmail.com\");\n\t\t\tAssert.assertTrue(result);\n\t\t} catch (InvalidUserDetailException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "28b52061f6c37f3284cfc8f575b7ee81", "score": "0.722809", "text": "@Test\n\tpublic void emailValidation() {\n\n\t\t// boolean emailValidation =\n\t\t// justRideService.validateEmail(\"rbalanka2@uncc.edu\");\n\t\t// assertEquals(true, emailValidation);\n\n\t}", "title": "" }, { "docid": "4c3c6cb1c34b47952ddec86803c4b19c", "score": "0.71205443", "text": "public boolean verifyEmail(String email){\n\t\treturn true;\n\t}", "title": "" }, { "docid": "07e73e398286fe673173f1731b67329a", "score": "0.7072671", "text": "public boolean checkEmail(String email);", "title": "" }, { "docid": "63e63d8fa2323bf0ddb8835a1d5e7344", "score": "0.7049595", "text": "public boolean checker(String email);", "title": "" }, { "docid": "642c986481f1573c01a0a8872020e90a", "score": "0.7040635", "text": "private boolean validateEmail(String email) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d4b411f77719a845dbdcb3f3019a56c5", "score": "0.70111895", "text": "private boolean isLoginValid(String email) {\n return true;\n }", "title": "" }, { "docid": "0b7381a405180a331cf77650228b0918", "score": "0.7000217", "text": "@Override\r\n\tpublic boolean checkAccountEmail(String email) {\n\t\tif(repository.checkAccountEmail(email) == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c650da74273a8b2f7545b2935e78025b", "score": "0.6976012", "text": "@Test\n public void givenEmail_WhenProper_ShouldReturnTrue() {\n try {\n boolean result = userRegistration.email(\"abc@yahoo.com\");\n Assert.assertEquals(true, result);\n } catch (UserRegistrationException e) {\n System.out.println(e);\n }\n }", "title": "" }, { "docid": "a9c5eb3f51744075b36d6a822f0f082a", "score": "0.6963389", "text": "boolean hasEmail();", "title": "" }, { "docid": "a9c5eb3f51744075b36d6a822f0f082a", "score": "0.6963389", "text": "boolean hasEmail();", "title": "" }, { "docid": "a9c5eb3f51744075b36d6a822f0f082a", "score": "0.6963389", "text": "boolean hasEmail();", "title": "" }, { "docid": "a9c5eb3f51744075b36d6a822f0f082a", "score": "0.6963389", "text": "boolean hasEmail();", "title": "" }, { "docid": "a9c5eb3f51744075b36d6a822f0f082a", "score": "0.6963389", "text": "boolean hasEmail();", "title": "" }, { "docid": "a9c5eb3f51744075b36d6a822f0f082a", "score": "0.6963389", "text": "boolean hasEmail();", "title": "" }, { "docid": "cdca2a0333df94dc50e5d7c0315660c7", "score": "0.69562674", "text": "public boolean checkExist(String email);", "title": "" }, { "docid": "7eb0380381e8474a747e68da29a107f3", "score": "0.6934753", "text": "private boolean isEmailValid(String email) {\n return true;\n }", "title": "" }, { "docid": "2529dcbfebce4b9b19d839d3a8544ea9", "score": "0.6932712", "text": "public void testEmail() {\n userAccount.setEmail(\"bobsmith@u.boisestate.edu\");\n assertTrue(userAccount.getEmail().equals(\"bobsmith@u.boisestate.edu\"));\n }", "title": "" }, { "docid": "744f1ab86c6081f675e98b39d6ace5fe", "score": "0.68417716", "text": "public void setEmail(String email){\n this.email= email;\n }", "title": "" }, { "docid": "e329b31594d4dadb48e880739ab0eb23", "score": "0.68373036", "text": "protected void checkKey(String email) {\r\n\t\tif (email==null){\r\n\t\t\tSystem.out.println(\"Invalid key\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6fcbcf8273d8818cf29ee1f6c140e093", "score": "0.6827105", "text": "public void setEmail(String email){\n this.email = email;\n }", "title": "" }, { "docid": "223bcb455e81a4583e5b7756a6cfe794", "score": "0.68126357", "text": "@Test\n public void givenEMail_WhenProper_ShouldReturnTrue() {\n boolean result = userValidator.validateEMail(\"pranav.ige96@gmail.co.in\");\n Assert.assertEquals(true, result);\n }", "title": "" }, { "docid": "5d89fe84dead5ef0a82d5aa14bb587f6", "score": "0.68096477", "text": "public boolean isValidEmailId(String email);", "title": "" }, { "docid": "f95d4d157e03de871efca9b14792eed3", "score": "0.677968", "text": "public void setEmail(String email) throws Exception{\r\n if (!email.equalsIgnoreCase(\"\"))\r\n this.Email=email;\r\n else\r\n throw new Exception(\"Email non valido\");\r\n }", "title": "" }, { "docid": "2b5ce4705a3d70637ec17be59ab26f41", "score": "0.67690647", "text": "public void setEmail(String email)\n {\n this.email = email;\n }", "title": "" }, { "docid": "34d5f7b4550b9305ecf35652db1dc051", "score": "0.6753726", "text": "private boolean checkIfEmailExiste(RegisterDtoRequest dtoRequest) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9ebaa68852b985bff3ba5765181bdd83", "score": "0.67210716", "text": "@Test\n public void testEmailValid() {\n assertTrue(LoginActivity.isEmailValid(\"bestgio@uw.edu\"));\n }", "title": "" }, { "docid": "4efb15baec34c84b7453f0c42c43e781", "score": "0.67133147", "text": "void invalidEmail();", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.6705012", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.6705012", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.6705012", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.6705012", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "e99f9dc2a62584f8a9fff594d2a61ac6", "score": "0.6705012", "text": "public void setEmail(String email) {\r\n this.email = email;\r\n }", "title": "" }, { "docid": "5f3447f549e29e53921e0e9b2f2fca44", "score": "0.6673709", "text": "@Test(description = \"CTW-5468:Email field validations\")\n @TestLinkProperties(displayId = \"CTW-5468\")\n public void emailFieldValidations() {\n\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL));\n pages().registrationDialog().submitRegisterForm();\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\n \"Enter a valid email address.\");\n\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL_TWO_AT));\n pages().registrationDialog().submitRegisterForm();\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\n \"Enter a valid email address.\");\n\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL_NO_AT));\n pages().registrationDialog().submitRegisterForm();\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\n \"Enter a valid email address.\");\n\n pages().registrationDialog().fillRegisterForm(getCustomerWithEmail(INCORRECT_EMAIL_DIGIT_DOMAIN));\n pages().registrationDialog().submitRegisterForm();\n softAssert().assertEquals(pages().registrationDialog().getErrorMessageNotification(),\n \"Enter a valid email address.\");\n\n CustomerRegistrationInfo customerRegistrationInfo= getCustomerWithEmail(INCORRECT_CHARS_IN_EMAIL);\n pages().registrationDialog().fillRegisterForm(customerRegistrationInfo);\n softAssert().assertEquals(pages().registrationDialog().getEmail(),\n EMPTY_STRING);\n customerRegistrationInfo.setEmail(EMPTY_STRING);\n pages().registrationDialog().fillRegisterForm(customerRegistrationInfo);\n pages().registrationDialog().submitRegisterForm();\n softAssert().assertEquals(pages().registrationDialog().getBorderColorForEmail(),\n RED_RGB_STYLE);\n customerRegistrationInfo.setEmail(CORRECT_EMAIL);\n pages().registrationDialog().fillRegisterForm(customerRegistrationInfo);\n softAssert().assertEquals(pages().registrationDialog().getBorderColorForEmail(),\n GREEN_RGB_STYLE);\n }", "title": "" }, { "docid": "d60f9f1e7343c7f8f15307133ff02f70", "score": "0.66702324", "text": "@Test\n\tpublic void givenemail_whichisinvalid_returnfalse() {\n\t\tUserRegistration user = new UserRegistration();\n\t\tboolean result;\n\t\ttry {\n\t\t\tresult = user.validateEmail(\"examplemail@11\");\n\t\t\tAssert.assertFalse(result);\n\t\t} catch (InvalidUserDetailException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c5f06ad84ee2fc01e85242d2001db662", "score": "0.6666314", "text": "public void setEmail(final String email);", "title": "" }, { "docid": "6a716344193a3a9080007cc38c2069c3", "score": "0.6662712", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "6a716344193a3a9080007cc38c2069c3", "score": "0.6662712", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "8064c7b884eab0e9da5c49f971735acd", "score": "0.66586185", "text": "@Test\n\tpublic void testValidateFieldsNullEmail() {\n\t\tAppUser invalidMockedUser = new AppUser(1, \"mocked\", \"mocked\", null, \"mocked\", \"mocked\", \"USER\");\n\t\tboolean actualResult = userService.validateFields(invalidMockedUser);\n\t\tassertFalse(actualResult);\n\t}", "title": "" }, { "docid": "3e614b2fd9f9624f6dfbcedb653226f7", "score": "0.66461986", "text": "public void validateEmail(String email) {\n setTextElementText(emailCreate, email);\n }", "title": "" }, { "docid": "0afe5977f96fc1818c03973b856e45a0", "score": "0.66324556", "text": "private boolean isEmailIdValid(String email){\n return Patterns.EMAIL_ADDRESS.matcher(email).matches();\n }", "title": "" }, { "docid": "2425d2e69876367daa45212629ac1b81", "score": "0.6630268", "text": "void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "bdf9fdd625629f03499bc66dbe70c246", "score": "0.6621673", "text": "@Test\n\tpublic void SignInWithExistingEmail() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\tWelcomePage welcomePage = new WelcomePage(driver);\n\t\tAccountPage accountPage = new AccountPage(driver);\n\n\t\t// declare email and password\n\t\tString email = \"charlotteweb@gmail.com\";\n\t\tString password = \"test1234\";\n\n\t\t// go to sign in page and enter required fields\n\t\thomePage.signInWithEmail();\n\t\thomePage.enterSignInEmail(email);\n\t\thomePage.enterSignInPassword(password);\n\t\thomePage.clickSignInButton();\n\n\t\twelcomePage.clickOnLogo();\n\t\twelcomePage.clickAccountName();\n\n\t\t// verify existing username and email in the account page\n\t\tAssert.assertEquals(accountPage.getUsernameTextBox().getAttribute(\"value\"), \"charlotteweb\");\n\t\tAssert.assertEquals(accountPage.getEmailTextBox().getAttribute(\"value\"), email);\n\n\t}", "title": "" }, { "docid": "2fcb89d2d9efd871775e8208b3324ed0", "score": "0.66206485", "text": "@Test\n\t@DisplayName(\"Test to validate Email Id\")\n\tpublic void validateEmailTest() throws InvalidAttributeException\n\t{\n\t\tboolean bool=service.checkEmail(\"burnyoudown@gmail.com\");\n\t\tassertEquals(false,bool);\n\t\t\n\t\t// Test if email already exists\n\t\tassertThrows(InvalidAttributeException.class,()->{\n\t\t\tservice.checkEmail(\"sauravsuman6819@gmail.com\");\n\t\t\t});\n\t\t\n\t}", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "2b6955fe2a296d4b1951553ddfd5e305", "score": "0.66197896", "text": "public void setEmail(String email) {\n this.email = email;\n }", "title": "" }, { "docid": "74b790cba36a14357aa54c8f39bd082e", "score": "0.6605874", "text": "void setEmail(String email);", "title": "" }, { "docid": "74b790cba36a14357aa54c8f39bd082e", "score": "0.6605874", "text": "void setEmail(String email);", "title": "" }, { "docid": "11a137fa85c0267b4595ff3c8c287290", "score": "0.6589809", "text": "@Test\n public void testIsValidEmail() {\n assertTrue(Driver.isValidEmail(\"test@test.com\"));\n assertFalse(Driver.isValidEmail(\"memre.com\"));\n assertFalse(Driver.isValidEmail(\"\"));\n }", "title": "" }, { "docid": "1847d850b31a5a614852634784faa87b", "score": "0.6573121", "text": "@RequestMapping(value = \"/check_email\", method = RequestMethod.POST, produces = \"application/json\")\n public @ResponseBody\n boolean check_email(@RequestParam String email) {\n if(userService.checkEmail(email)){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "1c66ee72e10a40ae2780bc0b03c9fb77", "score": "0.6566892", "text": "@Test\n public void testEmail()\n {\n User user=new User();\n \n user.setUserId(1);\n\t\tuser.setUsername(\"meghana\");\n\t\tuser.setPassword(\"meghana1234\");\n\t\tuser.setRepeatPassword(\"meghana1234\");\n\t\tuser.setEmail(\"meghana6116@gmail.com\");\n\t\tuser.setPhoto(\"https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png\");\n\n assertNotNull(user.getEmail());\n\n\n }", "title": "" }, { "docid": "35aada44991f6c1a34136b03071054c1", "score": "0.65643", "text": "boolean isValidEmail(final String email) throws RemoteCallException, InvalidEntityException;", "title": "" }, { "docid": "dcba6757e31901a33cfb6cf129019d3d", "score": "0.6564095", "text": "public static Boolean validateEmail(String email){\n String query = \"SELECT * FROM UserLogin WHERE email=?\";\n Object[] vars = {email};\n if (Query.execute(query,vars).isEmpty()) {\n return false;\n }\n else {\n return true;\n }\n }", "title": "" }, { "docid": "8898c92a2ca8e1d1c5c483e373dc0646", "score": "0.6551805", "text": "public void setEmail(String email){\n\t\tthis.email = email;\n\t}", "title": "" }, { "docid": "0a8d8b4978c7425df6e5878e4eafa6e8", "score": "0.65383375", "text": "@Test\n\tpublic void t04signupWithEmail() {\n\t\tsession.clear();\n\t\tcontroller.setEmail(\"newuser@email.com\");\n\t\t\n\t\tResult result = controller.signup();\n\t\tAssert.assertTrue(result instanceof RenderResult);\n\t\tRenderResult render = (RenderResult)result;\n\t\tAssert.assertTrue(render.getTemplate().equals(\"/signup/form.ftl\"));\n\t\t\n\t\t// first error is the email...\n\t\tAssert.assertTrue(controller.getErrors().get(\"email\") == null);\n\t\tAssert.assertTrue(controller.getErrors().get(\"firstName\") != null);\n\t\tAssert.assertTrue(controller.getErrors().get(\"firstName\").equals(\"First Name is required\"));\n\t\tAssert.assertTrue(controller.getErrors().get(\"lastName\") != null);\n\t\tAssert.assertTrue(controller.getErrors().get(\"lastName\").equals(\"Last Name is required\"));\n\t\tAssert.assertTrue(controller.getErrors().get(\"password\") != null);\n\t\tAssert.assertTrue(controller.getErrors().get(\"password\").equals(\"Password is required\"));\n\t\tAssert.assertTrue(controller.getErrors().get(\"username\") != null);\n\t\tAssert.assertTrue(controller.getErrors().get(\"username\").equals(\"Username is required\"));\n\t}", "title": "" }, { "docid": "57a76f3be126f01c6624925edca37a36", "score": "0.6535033", "text": "public void setEmail(Email email) \n { this.email = email ; }", "title": "" }, { "docid": "29ce7f95fc68fbd6066c28118e0b6687", "score": "0.6533775", "text": "public boolean isSetEmail() {\r\n return this.email != null;\r\n }", "title": "" }, { "docid": "91e04d7cf6fa2c7c38e00197d81a3b72", "score": "0.6466903", "text": "@Override\n public String enterEmail(String email) {\n\n try {\n\n if (!(bankProxy.hasCustomer(email))) {\n return (\"Email not found.\");\n } else if (bankProxy.hasCustomer(email)) {\n customerInterface.setCustomerInterfaceState(customerInterface.processPasswordState);\n customerInterface.setCustomer(bankProxy.requestCustomer(email));\n return null;\n } else {\n return (\"Could not process request.\");\n }\n } catch (IllegalArgumentException p) {\n return (\"Could not process request.\");\n }\n }", "title": "" }, { "docid": "2e89c7967935144e8f1b762d16ab9268", "score": "0.64443713", "text": "public void setEmail(String email) {\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.64352983", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.64352983", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.64352983", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.64352983", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.64352983", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "ee00566f25132d482bf762070eb94c7c", "score": "0.64352983", "text": "public void setEmail(String email) {\r\n\t\tthis.email = email;\r\n\t}", "title": "" }, { "docid": "51e0e84b8c3a3c3e55c416f3d7a06fb0", "score": "0.643008", "text": "public void setEmail(String aEmail) {\r\n email = aEmail;\r\n }", "title": "" }, { "docid": "0dda895d014778c234807c6f661fae3e", "score": "0.6425169", "text": "@When(\"^user does not enter email$\")\r\n\tpublic void user_does_not_enter_email() {\n\t \r\n\t}", "title": "" }, { "docid": "45182ed16fd42c288bb655012ef16462", "score": "0.64245224", "text": "@And(\"^FB Email ID is incorrect$\")\n\tpublic void emailIdIsIncorrect() {\n//\t\tdriver.findElement(By.id(\"u_0_0\")).click();\n\t\tobj.FbLoginButton.click();\n\t\terr=utilObj.waitVisibilityOf(obj.FBEmailError);\n\t\t//validating error message\n\t\tassertTrue(err.getText().matches(obj.invalidFbIdError));\n//\t\tassertTrue(err.getText().matches(\"Wrong credentials\"));\n\t}", "title": "" }, { "docid": "ee0d5b10cae8e0aabbc5c302da84c663", "score": "0.6417874", "text": "@Test(expected = BadRequestException.class)\n\tpublic void testFindUserByEmailNullEmail() {\n\t\tuserService.findUserByEmail(null);\n\t\tverify(mockRepo, times(0)).findUserByEmail(Mockito.anyString());\n\t}", "title": "" }, { "docid": "259ad6f0a7ab63ccb3de355e70a371a5", "score": "0.64149356", "text": "boolean isValidAccount(String email, String password);", "title": "" }, { "docid": "30ceae2587527a48f8dcc4fc6cfdd35f", "score": "0.6399566", "text": "private boolean validateEmail(String email) {\n\t\t\tif (email.contains(\"carleton.ca\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "b1ef1a2589a07064a09752fcc1d25200", "score": "0.6399461", "text": "@Test\n public void validateTest() throws ApiGremlinException {\n String email = null;\n Integer token = null;\n api.validate(email, token);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "1cc14b6dbff0173dac197977e2e51e48", "score": "0.63913876", "text": "public boolean verifyForgetPasswordInfo(String email) {\n\t\tArrayList<User> customers;\n\t\ttry {\n\t\t\tcustomers = CustomerRemote.listAll();\n\t\t\tfor(User CustomerRemote : customers) {\n\t\t\t\tif ( CustomerRemote.getEmail().equals(email) ) {\n\t\t\t\t\tsendEmail( CustomerRemote );\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "07ca63c30bf466d2525e8bbe51e27685", "score": "0.639044", "text": "private void emailValidation(String email, User bddUser) throws Exception {\n\t\tif (email != null) {\n\t\t\t\n\t\t\tif (!email.contains(\"@\")) {\n\t\t\t\t\n\t\t\t\tthrow new Exception (\"Merci de saisir une adresse email valide !\");\n\t\t\t\t\n\t\t\t} else if (!email.equals(bddUser.getEmail())) {\n\t\t\t\t\n\t\t\t\tUser validUser = this.userDAO.validMail(BDD_MAIL, email, BDD_ID, bddUser.getUserId());\n\t\t\t\t\t\n\t\t\t\t\tif (email.equals(validUser.getEmail())) {\n\t\t\t\t\t\n\t\t\t\t\t\tthrow new Exception (\"Ce mail est déjà utiliser, veuillez en choisir un autre !\");\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}", "title": "" }, { "docid": "e6e5ccf06488497d6b8897eafa11e084", "score": "0.6387665", "text": "public void checkEmailAvailable(String email) {\n synapseClient.isAliasAvailable(\n email,\n AliasType.USER_EMAIL.toString(),\n new AsyncCallback<Boolean>() {\n @Override\n public void onSuccess(Boolean isAvailable) {\n if (!isAvailable) {\n view.showErrorMessage(DisplayConstants.ERROR_EMAIL_ALREADY_EXISTS);\n globalAppState.gotoLastPlace();\n }\n }\n\n @Override\n public void onFailure(Throwable e) {\n // do nothing. validation has failed, but updating the email will fail if it's already taken.\n e.printStackTrace();\n }\n }\n );\n }", "title": "" }, { "docid": "f6ab43a230cc640ce7d9f20dab7a33f5", "score": "0.63657326", "text": "public Response verifyEmail(String email, String emailCode,String newPassword) {\n Optional<User> optionalUser = userRepository.findByEmailAndEmailCode(email, emailCode);\n if (optionalUser.isPresent()){\n User user= optionalUser.get();\n user.setEnabled(true);\n user.setEmailCode(null);\n if (!newPassword.equals(\"null\")){\n user.setPassword(passwordEncoder.encode(newPassword));}\n userRepository.save(user);\n return new Response(\"Account tasdiqlandi\",true);\n }\n return new Response(\"Akkount alloqachon tasdiqlangan\",false);\n }", "title": "" }, { "docid": "c7d103d830e00af2fae573bf3e527a97", "score": "0.63574827", "text": "public String check_email(String email) {\n\t\treturn userregDao.check_email(email);\n\t}", "title": "" }, { "docid": "a36242db00169e8eee1b60ffbdd9ea7d", "score": "0.6354196", "text": "public void setEmail(java.lang.String email) {\n this.email = email;\n }", "title": "" } ]
fb46c37fdccff95149ea9b74654fd545
Discards all resources held by this class, notably the EGL context. Also releases the Surface that was passed to our constructor.
[ { "docid": "0d98055cc9b7b5970651535a9b1673e0", "score": "0.8059939", "text": "public void release() {\n\n Log.d(TAG, \"release EGL surface\");\n instances--;\n\n EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);\n EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);\n mEGLSurface = EGL14.EGL_NO_SURFACE;\n\n EGL14.eglDestroyContext(mEGLDisplay, mEGLEncodeContext);\n mEGLEncodeContext = EGL14.EGL_NO_CONTEXT;\n\n mSurface.release();\n mSurface = null;\n\n EGL14.eglReleaseThread();\n\n if (instances == 0) {\n Log.d(TAG, \"release EGL thread & display\");\n EGL14.eglTerminate(mEGLDisplay);\n mEGLDisplay = EGL14.EGL_NO_DISPLAY;\n\n isEglInit = false;\n }\n }", "title": "" } ]
[ { "docid": "8af8d84fbcc925b967925c58e0f91127", "score": "0.8314889", "text": "public void release() {\n if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {\n EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);\n EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);\n EGL14.eglReleaseThread();\n EGL14.eglTerminate(mEGLDisplay);\n }\n mEGLDisplay = EGL14.EGL_NO_DISPLAY;\n mEGLContext = EGL14.EGL_NO_CONTEXT;\n mEGLSurface = EGL14.EGL_NO_SURFACE;\n\n mSurface.release();\n\n // this causes a bunch of warnings that appear harmless but might confuse someone:\n // W BufferQueue: [unnamed-3997-2] cancelBuffer: BufferQueue has been abandoned!\n //mSurfaceTexture.release();\n\n mTextureRender = null;\n mSurface = null;\n mSurfaceTexture = null;\n }", "title": "" }, { "docid": "973d493c08a42099e30fdd38e9e1ade2", "score": "0.8125411", "text": "public void release() {\n\t\t\tif (eglDisplay != EGL10.EGL_NO_DISPLAY) {\n\t\t\t\tegl10.eglDestroySurface(eglDisplay, eglSurface);\n\t\t\t\tegl10.eglDestroyContext(eglDisplay, eglContext);\n\t\t\t\t//egl10.eglReleaseThread();\n\t\t\t\tegl10.eglMakeCurrent(eglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE,\n\t\t\t\t\t\tEGL10.EGL_NO_CONTEXT);\n\t\t\t\tegl10.eglTerminate(eglDisplay);\n\t\t\t}\n\t\t\teglDisplay = EGL10.EGL_NO_DISPLAY;\n\t\t\teglContext = EGL10.EGL_NO_CONTEXT;\n\t\t\teglSurface = EGL10.EGL_NO_SURFACE;\n\n\t\t\tsurface.release();\n\n\t\t\t// this causes a bunch of warnings that appear harmless but might confuse someone:\n\t\t\t// W BufferQueue: [unnamed-3997-2] cancelBuffer: BufferQueue has been abandoned!\n\t\t\t//surfaceTexture.release();\n\n\t\t\ttextureRender = null;\n\t\t\tsurface = null;\n\t\t\tsurfaceTexture = null;\n\t\t}", "title": "" }, { "docid": "86a58d91b55a288197bde1620885628f", "score": "0.7991885", "text": "public void release() {\n if (mEGLDisplay != EGL14.EGL_NO_DISPLAY) {\n EGL14.eglMakeCurrent(mEGLDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE,\n EGL14.EGL_NO_CONTEXT);\n EGL14.eglDestroyContext(mEGLDisplay, mEGLContext);\n EGL14.eglDestroySurface(mEGLDisplay, mEGLSurface);\n EGL14.eglTerminate(mEGLDisplay);\n }\n mEGLContext = EGL14.EGL_NO_CONTEXT;\n mEGLDisplay = EGL14.EGL_NO_DISPLAY;\n mEGLSurface = EGL14.EGL_NO_SURFACE;\n }", "title": "" }, { "docid": "e9c265ce461c125a47a51d469dadc895", "score": "0.74039686", "text": "public void destroySurfaces() {\n destroySurfaces(false);\n }", "title": "" }, { "docid": "401ca5f2b939a562b1828f47f89f39f6", "score": "0.7364865", "text": "public synchronized void onSurfaceDestroyed() {\n\t\tmHasSurface = false;\n\t}", "title": "" }, { "docid": "bff8146b9d84f9832c778be9461384d9", "score": "0.7249823", "text": "public void release() {\n releaseEglSurface();\n if (mSurface != null) {\n if (mReleaseSurface) {\n mSurface.release();\n }\n mSurface = null;\n }\n GLES20.glDeleteTextures(mOutputTextureIds.length, mOutputTextureIds, 0);\n }", "title": "" }, { "docid": "867cf037668cdb816d8242df938341f2", "score": "0.72372025", "text": "public void release() {\n\n mTextureRender = null;\n mSurfaceTexture = null;\n }", "title": "" }, { "docid": "658aa6d7d9231dbf48a43fbfb270f062", "score": "0.71997064", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n Log.i(TAG, \"surfaceDestroyed\");\n releaseCamera();\n }", "title": "" }, { "docid": "2b6ba921b63c35b7949727e9779a4d33", "score": "0.71557796", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.release();\n mCamera = null;\n }", "title": "" }, { "docid": "603ffb93ae69184210a20d37d3906b68", "score": "0.7083317", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n mGameThread.stopGame();\n }", "title": "" }, { "docid": "b77db2a476ece9bbb46079a87b6c76d6", "score": "0.7081037", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n }", "title": "" }, { "docid": "b7e222be605d9df66ab755bf5b123dfb", "score": "0.7061975", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tif(mcamera!=null){\n\t\t\tmcamera.release();\n\t\t\tmcamera = null;\n\t\t}\n\n\t\tif(zoomBitmap!=null && !zoomBitmap.isRecycled() ){\n\t\t\tzoomBitmap.recycle();\n\t\t\tzoomBitmap = null;\n\t\t}\n\t\tif(surfaceHolder!=null){\n\t\t\tsurfaceHolder.removeCallback(this);\n\t\t\tsurfaceHolder = null;\n\t\t}\n\t\tSystem.gc();\n\t\tfinish();\n\t}", "title": "" }, { "docid": "2a86e2b1fe5caa5a680c2c69898551de", "score": "0.7061629", "text": "public void surfaceDestroyed(SurfaceHolder holder)\n {\n }", "title": "" }, { "docid": "c119fceacb4fd2fe945aa66a4fe8cc4d", "score": "0.7057817", "text": "@Override\r\n public void surfaceDestroyed(SurfaceHolder holder) {\n stop();\r\n }", "title": "" }, { "docid": "b8b8f90aa828bbb74a78fee380322f5c", "score": "0.7032969", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n\t\tLog.v(LOGTAG, \"surfaceDestroyed\");\n\t\tif (mRecording) {\n\t\t\tmRecording = false;\n\t\t}\n\n\t\tmPreviewRunning = false;\n\t\tmCamera.release();\n\t}", "title": "" }, { "docid": "13877c10d62267be42fb6a48412b6b82", "score": "0.70255136", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n isPreview = false;\n Log.d(TAG, \"Surface is destroyed\");\n }", "title": "" }, { "docid": "1b9d20dfe22da8155ffa148a44eafb1d", "score": "0.69984794", "text": "@Override\n\tprotected void onDestroy() {\n\t\tif(mcamera!=null){\n\t\t\tmcamera.release();\n\t\t\tmcamera = null;\n\t\t}\n\n\t\tif(zoomBitmap!=null && !zoomBitmap.isRecycled() ){\n\t\t\tzoomBitmap.recycle();\n\t\t\tzoomBitmap = null;\n\t\t}\n\t\tif(drawable!=null){\n\t\t\tdrawable.clearColorFilter();\n\t\t\tdrawable.setCallback(null);\n\t\t\tdrawable = null;\n\t\t}\n\t\tif(menban!=null && !menban.isRecycled() ){\n\t\t\tmenban.recycle();\n\t\t\tmenban = null;\n\t\t}\n\t\tif(surfaceHolder!=null){\n\t\t\tsurfaceHolder.removeCallback(this);\n\t\t\tsurfaceHolder = null;\n\t\t\t\n\t\t}\n\t\tSystem.gc();\n\t\tsuper.onDestroy();\n\t}", "title": "" }, { "docid": "42c5a9362a27210aa4fc1f76ab669045", "score": "0.6995336", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\tmyCamera.release();\n\t\t\tmyCamera = null;\n\t\t}", "title": "" }, { "docid": "f4c5cf5ca7e57aaa3dba0415889245db", "score": "0.6966078", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n }", "title": "" }, { "docid": "696ab4246d8d038509b280af3241f8f5", "score": "0.6947419", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n boolean retry = true;\n thread.setRunning(false);\n while (retry) {\n try {\n thread.join();\n retry = false;\n } catch (InterruptedException e) {\n }\n }\n }", "title": "" }, { "docid": "ba793c3b9e0f7e01e928e714d69f151c", "score": "0.6945942", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n\t\t}", "title": "" }, { "docid": "c22e1adb801ce1e6ab06f0dbae6a81ed", "score": "0.69408345", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder)\n {\n isSurfaceCreated = false;\n LogUtil.i( \"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$surfaceDestroyed\");\n }", "title": "" }, { "docid": "2ad6000b3bfa816a5bd710d67b538636", "score": "0.6938205", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n\n }", "title": "" }, { "docid": "1180045c6d737252d4e6569825e472ad", "score": "0.69317216", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n\t}", "title": "" }, { "docid": "f91ebd6717928858d54248497a3afe8e", "score": "0.69314504", "text": "public synchronized void release() {\n mListener = null;\n\n if (mCamera != null) {\n mCamera.stopPreview();\n mCamera.setPreviewCallback(null);\n try {\n mCamera.setPreviewTexture(null);\n } catch (IOException e) {\n Log.e(TAG, \"failed to unset preview texture from camera\", e);\n e.printStackTrace();\n }\n mCamera.release();\n }\n mCamera = null;\n\n if (mTexture != null) {\n mTexture.release();\n mTexture = null;\n GLES20.glDeleteTextures(mTextureIds.length, mTextureIds, 0);\n }\n }", "title": "" }, { "docid": "bd83d4a3cae00847eb20b4dfd619bba2", "score": "0.69065833", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder arg0) {\n }", "title": "" }, { "docid": "798ac3c7ca79a985698c94f43d6fd484", "score": "0.6896199", "text": "public void onSurfaceDestroyed (SurfaceHolder holder){\n\t\t\tsuper.onSurfaceDestroyed(holder);\n\t\t\tthis.visible = false;\n\t\t\thandler.removeCallbacks(drawRunner);\n\t\t}", "title": "" }, { "docid": "801ed190b4dfc556e8793e3cbf7b54d2", "score": "0.6887697", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n CameraUtil.safeCameraClose();\n }", "title": "" }, { "docid": "5d80a077f38237a4cc0dde318f33b07a", "score": "0.68863535", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n }", "title": "" }, { "docid": "5d80a077f38237a4cc0dde318f33b07a", "score": "0.68863535", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n }", "title": "" }, { "docid": "5d80a077f38237a4cc0dde318f33b07a", "score": "0.68863535", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n }", "title": "" }, { "docid": "2869c7cdab286ee8a6d2315bfa06173d", "score": "0.68728626", "text": "public /* synthetic */ void lambda$onSurfaceTextureDestroyed$1() {\n RenderView.this.internal.shutdown();\n CanvasInternal unused = RenderView.this.internal = null;\n }", "title": "" }, { "docid": "c25630dac8062ac6a9ddb2ee388c8a45", "score": "0.6867801", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n\n }", "title": "" }, { "docid": "4eb53c7d87c7961bdb84aa428c03b553", "score": "0.68554825", "text": "private void releaseGl() {\n GlUtil.checkGlError(\"releaseGl doStart\");\n int[] values = new int[1];\n if (mInputWindowSurface != null) {\n mInputWindowSurface.release();\n mInputWindowSurface = null;\n }\n if (mProgram != null) {\n mProgram.release();\n mProgram = null;\n }\n if (mOffscreenTexture > 0) {\n values[0] = mOffscreenTexture;\n GLES20.glDeleteTextures(1, values, 0);\n mOffscreenTexture = -1;\n }\n if (mFramebuffer > 0) {\n values[0] = mFramebuffer;\n GLES20.glDeleteFramebuffers(1, values, 0);\n mFramebuffer = -1;\n }\n if (mDepthBuffer > 0) {\n values[0] = mDepthBuffer;\n GLES20.glDeleteRenderbuffers(1, values, 0);\n mDepthBuffer = -1;\n }\n if (mFullScreen != null) {\n mFullScreen.release(false);\n mFullScreen = null;\n }\n GlUtil.checkGlError(\"releaseGl done\");\n mEglCore.makeNothingCurrent();\n }", "title": "" }, { "docid": "422491bbc83a7b824dd4f190cbd33965", "score": "0.68496174", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n\n }", "title": "" }, { "docid": "794ba1eb09551d921b0d91b577da4f7a", "score": "0.68083876", "text": "@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t}", "title": "" }, { "docid": "577ecf2e615c411881e759645a1476a9", "score": "0.680113", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n boolean retry = true;\n GThread.setRunning(false);\n while (retry) {\n try {\n try {\n GThread.mGT.join();\n } catch (InterruptedException e) {\n }\n GThread.join();\n retry = false;\n } catch (InterruptedException e) {\n }\n }\n }", "title": "" }, { "docid": "b65d0747b95ef5cb1a5630383cb15012", "score": "0.6800711", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}", "title": "" }, { "docid": "e30c12a09ab8ccb94ce42ebeff589245", "score": "0.6800648", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n camera.stopPreview();\n camera.release();\n camera = null;\n }", "title": "" }, { "docid": "9593fba20731af308b730426c0906de2", "score": "0.6775818", "text": "public void dispose() {\n\t\t// Call dispose on our children\n\t\tif (loadingMode != null)\n\t\t\tloadingMode.dispose();\n\t\tloadingMode = null;\n\n\t\tgameModeManager.dispose();\n\t\tgameModeManager = null;\n\n\t\tsetScreen(null);\n\n\t\tcanvas.dispose();\n\t\tcanvas = null;\n\t\n\t\t// Unload all of the resources\n\t\tmanager.clear();\n\t\tmanager.dispose();\n\t\tsuper.dispose();\n\t}", "title": "" }, { "docid": "600d90e4cd97e7efd28f18d190d52537", "score": "0.67687654", "text": "@Override\n\t\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\t\tif (null != camera) {\n\t\t\t\t\tcamera.release();\n\t\t\t\t\tcamera = null;\n\t\t\t\t}\n\n\t\t\t}", "title": "" }, { "docid": "3d5643d7ce0f9f7b1721a7793dc3cac1", "score": "0.67623764", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}", "title": "" }, { "docid": "3d5643d7ce0f9f7b1721a7793dc3cac1", "score": "0.67623764", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}", "title": "" }, { "docid": "3d5643d7ce0f9f7b1721a7793dc3cac1", "score": "0.67623764", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}", "title": "" }, { "docid": "3d5643d7ce0f9f7b1721a7793dc3cac1", "score": "0.67623764", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}", "title": "" }, { "docid": "3d5643d7ce0f9f7b1721a7793dc3cac1", "score": "0.67623764", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\n\t}", "title": "" }, { "docid": "e074a99548298f90601a7b8ea7a72d62", "score": "0.6762279", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n\n Log.d(TAG, \"Surface is being destroyed\");\n // tell the thread to shut down and wait for it to finish\n // this is a clean shutdown\n boolean retry = true;\n thread.setRunning(false);\n while (retry) {\n try {\n thread.join();\n retry = false;\n } catch (InterruptedException e) {\n // try again shutting down the thread\n }\n }\n Log.d(TAG, \"Thread was shut down cleanly\");\n }", "title": "" }, { "docid": "da2f0998da3f74f76f5b0fc23fee0001", "score": "0.6737968", "text": "@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tboolean retry = true;\r\n\t\tthread.setRunning(false);\r\n\t\t// caculateThread.setRunning(false);\r\n\t\twhile (retry) {\r\n\t\t\ttry {\r\n\t\t\t\tthread.join();\r\n\t\t\t\t// caculateThread.join();\r\n\t\t\t\tretry = false;\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5afea42fcf0b0bcb7c7e475df0e28acb", "score": "0.67369574", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\n\t}", "title": "" }, { "docid": "ba8e6043b65f9037aa8251a921c57310", "score": "0.6732298", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tsuper.surfaceDestroyed(holder);\n\t\tmPlayer.stop();\n\t\tmSoundPool.release();\n\t}", "title": "" }, { "docid": "a172c478ada8d9be21f57ad0405636c9", "score": "0.67158914", "text": "public void releaseSurface(Surface surface) {\n getGSYVideoManager().releaseSurface(surface);\n }", "title": "" }, { "docid": "a152eb4f81908f5471445e9c9abef9ed", "score": "0.67139095", "text": "public void destroy() {\r\n mContext = null;\r\n mBaseAdapterListener = null;\r\n mAdDescriptor = null;\r\n }", "title": "" }, { "docid": "a1d521adce7b94b20f5abbfca317d318", "score": "0.6713242", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "a1d521adce7b94b20f5abbfca317d318", "score": "0.6713242", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "f790752919f835ba3ad1b3800d6f16b4", "score": "0.6713039", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n camera.stopPreview(); \n camera.release(); \n camera = null; \n }", "title": "" }, { "docid": "b4840dda26f468d86ac0bbeb42199bfa", "score": "0.6704089", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n \tLog.d(TAG, \"on surfaceDestroyed\");\r\n }", "title": "" }, { "docid": "dbe52a28d464027b7a73c2e6ebbe2e04", "score": "0.66945523", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\n\t}", "title": "" }, { "docid": "601f4ccd18bc7746f27e58e8aa897014", "score": "0.6690969", "text": "public static void Release() {\n mFaceDet.release();\n mFaceDet = null;\n }", "title": "" }, { "docid": "1df373b8c17ce41ee566c2b9ae1104c8", "score": "0.6690574", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\r\n\t mCamera.stopPreview();\r\n\t mPreviewRunning = false;\r\n\t mCamera.release();\r\n\t }", "title": "" }, { "docid": "64da38639277d6ef4e562ad400ead947", "score": "0.6687001", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\tLog.i(\"SurfaceHolder\", \"surfaceDestroyed()\");\n\t\t// surfaceDestroyed的时候同时对象设置为null\n\t\tsurfaceview = null;\n\t\tsurfaceHolder = null;\n\t\t/*释放资源 mediarecorder mCamera 否则会后果很严重*/\n\t\tif (thread!=null) {\n\t\t\tthread.stopRecord();\n\t\t\tthread=null;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "644f2e2d29761abaa6a4b463d6c3fb8e", "score": "0.66846085", "text": "@Override\n protected void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n\n // Post to make sure we occur in order with any onSurfaceTextureAvailable calls.\n mainHandler.post(\n () -> {\n @Nullable Surface oldSurface = surface;\n if (oldSurface != null) {\n for (VideoSurfaceListener videoSurfaceListener : videoSurfaceListeners) {\n videoSurfaceListener.onVideoSurfaceDestroyed(oldSurface);\n }\n }\n releaseSurface(surfaceTexture, oldSurface);\n surfaceTexture = null;\n surface = null;\n });\n }", "title": "" }, { "docid": "4f96ba86ac1a54ee4f59124fdeaf119c", "score": "0.6676263", "text": "public boolean onSurfaceDestroyed(Surface surface);", "title": "" }, { "docid": "8b8f41fd8c1b01ecfc4e3d792b2c8237", "score": "0.66628546", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tLog.d(\"ZR\", \"surface destroy\");\n\t\tstopTimer();\n\t\tsensorManager.unregisterListener(this);\n\t}", "title": "" }, { "docid": "6372134aaf417fa7234b4c0d9ced3936", "score": "0.66494566", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n if (mCamera != null) {\n mCamera.stopPreview();\n }\n }", "title": "" }, { "docid": "c7dd981efd396790bc98c1f4783db2e4", "score": "0.6649016", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n\t\t// Surface will be destroyed when we return, so stop the preview.\n\t\t// Because the CameraDevice object is not a shared resource, it's very\n\t\t// important to release it when the activity is paused.\n\t\tmCamera.stopPreview();\n\t\tmCamera.release();\n\t\tmCamera = null;\n\t}", "title": "" }, { "docid": "0ef6868957432df28360442367ce00f1", "score": "0.6648785", "text": "public void surfaceDestroyed(SurfaceHolder holder)\n\t{\n\t\t// we have to tell thread to shut down & wait for it to finish, or else\n\t\t// it might touch the Surface after we return and explode\n\t\tboolean retry = true;\n\t\tthread.setRunning(false);\n\t\twhile (retry)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tthread.join();\n\t\t\t\tretry = false;\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c6253235f80c3e6b8314046de54cf417", "score": "0.6644245", "text": "@Override\n\t public void surfaceDestroyed(SurfaceHolder holder) {\n\t \t\n\t \tif (mCamera != null) {\n\t \t\tmCamera.release();\n\t \t}\n\t \t\n\t }", "title": "" }, { "docid": "33c6e97845dc40886fd211e9b6751d7b", "score": "0.66310436", "text": "public void mo22063d() {\n this.f24820a = null;\n this.f24821b = null;\n Activity activity = this.f24823d;\n if (this.f24826g != null) {\n this.f24826g.destroyDrawingCache();\n }\n if (this.f24822c != null) {\n this.f24822c.mo21771l();\n }\n if (this.f24825f != null) {\n this.f24825f.getHolder().getSurface().release();\n }\n }", "title": "" }, { "docid": "703e60662c980e94be45b5b1553021b7", "score": "0.66094995", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n Log.d(\"RecordOnSUrfaceDes\",String.valueOf(recording));\n if (recording) {\n recorder.stop();\n recording = false;\n\n }\n recorder.release();\n if (usecamera) {\n previewRunning = false;\n camera.release();\n }\n }", "title": "" }, { "docid": "0ee5fe9de5ba9aa6242f6329578888f4", "score": "0.6595398", "text": "private void cleanup() {\r\n\t\tDisplay.destroy();\r\n\t}", "title": "" }, { "docid": "ee72d33f026ec6ec00850f7e3b714081", "score": "0.6579727", "text": "@Override\n\t\tpublic void surfaceDestroyed(SurfaceHolder p1)\n\t\t{\n\t\t}", "title": "" }, { "docid": "0035b45fed9935bab89f7d5524530169", "score": "0.6575853", "text": "@Override\n public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {\n hasSurface = false;\n\n if (nativeMapView != null) {\n nativeMapView.destroySurface();\n }\n this.surface.release();\n return true;\n }", "title": "" }, { "docid": "d46e137720ce837da83f370a5ad4964e", "score": "0.65723985", "text": "@Implementation(minSdk = JELLY_BEAN_MR1)\n protected void finalize() throws Throwable {\n CloseGuard closeGuard = reflector(SurfaceReflector.class, realSurface).getCloseGuard();\n if (closeGuard != null) {\n closeGuard.close();\n }\n reflector(SurfaceReflector.class, realSurface).finalize();\n }", "title": "" }, { "docid": "436a0fcc64d07c638ce306bdcbb0fffb", "score": "0.6571739", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\n mCamera.stopPreview();\n mCamera.release();\n }", "title": "" }, { "docid": "4ecce2002019e24e42d2c94ba90eb4b1", "score": "0.6567436", "text": "@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\tstopPreviewAndFreeCamera(camera);\r\n\t}", "title": "" }, { "docid": "c63e75ec39852147a929656a1bcefe79", "score": "0.6552268", "text": "@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tisLoop =false;\r\n//\t\tusbtest.finish();\r\n\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\r\n\t}", "title": "" }, { "docid": "45153a9ac89abc5e42192f3ab38d0605", "score": "0.65483856", "text": "public void processSurfaceDestroyInner(Surface surface) {\r\n }", "title": "" }, { "docid": "c04e6ca0b551f98ce5c736826857e42a", "score": "0.65425354", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\tmCamera.stopPreview();\n\t//\tmCamera.release();\n\tmCamera= null;\n\t\n\t}", "title": "" }, { "docid": "41f7f44b43d265775d33319cd1ecefd9", "score": "0.65412676", "text": "@Override\n\t\t\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\t\t\tif (camera != null) {\n\t\t\t\t\tif (isPreview)\n\t\t\t\t\t\tcamera.stopPreview();\n\t\t\t\t\tcamera.release();\n\t\t\t\t\tcamera = null;\n\t\t\t\t}\n\t\t\t System.exit(0);\n\t\t\t}", "title": "" }, { "docid": "46c4ac0f69cb1e5b6097a38f1d5d44ed", "score": "0.6532907", "text": "public void destroy() {\n//\t\tsurface = null;\n//\t\tterrain = null;\n\t}", "title": "" }, { "docid": "a98c8f9750218e06d94fdee5dca13f57", "score": "0.6519972", "text": "public void destroy() {\n mContext = null;\n if (mDisposable != null) {\n mDisposable.dispose();\n }\n mDisposable = null;\n mResponse = null;\n }", "title": "" }, { "docid": "ca25d03813072cd4d709292d50500a51", "score": "0.6487005", "text": "public void dispose() {\n this.action.dispose();\n this.calibration.dispose();\n this.camera.dispose();\n this.core.dispose();\n this.gimbal.dispose();\n this.info.dispose();\n this.mission.dispose();\n this.offboard.dispose();\n this.param.dispose();\n this.telemetry.dispose();\n }", "title": "" }, { "docid": "be4c61785d571a8c6a394d7d23ca247a", "score": "0.64837205", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder){\n boolean retry = true;\n while(retry){\n try{\n thread.setRunning(false);\n thread.join();\n }catch(Exception e){\n e.printStackTrace();\n }\n retry = false;\n }\n }", "title": "" }, { "docid": "8d92785f397a973b30c618986d954f78", "score": "0.6467231", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n boolean retry = true;\n _thread.setRunning(false);\n while (retry) {\n try {\n _thread.join();\n retry = false;\n } catch (InterruptedException e) {\n // we will try it again and again...\n }\n }\n }", "title": "" }, { "docid": "49d5a2f2f118c6fc6e8ab856f8a9ad31", "score": "0.6464553", "text": "public void dispose() {\n requestStop();\n RenderManager.getInstance().removeRenderer(this);\n clear();\n name = null;\n }", "title": "" }, { "docid": "b094540f528decdeea35a69a40136bfc", "score": "0.6451231", "text": "public void surfaceDestroyed(SurfaceHolder holder) {\n if(mCamera != null) {\r\n \tmCamera.stopPreview(); \r\n \tmCamera.release();\r\n mCamera = null; \r\n }\r\n \r\n }", "title": "" }, { "docid": "160e975077b2a1a1da69bba4781701b0", "score": "0.64335114", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\tflag=false;\n\t}", "title": "" }, { "docid": "160e975077b2a1a1da69bba4781701b0", "score": "0.64335114", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder arg0) {\n\t\tflag=false;\n\t}", "title": "" }, { "docid": "d0c9a3807859745a1959788f1e5c9baf", "score": "0.64225805", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tflag = false;\n\t}", "title": "" }, { "docid": "f6738dc7df1a8cbea66c13ecd3687f6c", "score": "0.6407477", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n camera.stopPreview();\n camera.release();\n\n }", "title": "" }, { "docid": "4bdd4e5ba0608fa6283371e6ccfdbad8", "score": "0.64063954", "text": "@Override\n public void dispose() {\n baseImage = null;\n clickImage = null;\n currentImage = null;\n }", "title": "" }, { "docid": "f6ddee9609884b00eb062631261f9cb3", "score": "0.6386573", "text": "@Override\n public void surfaceDestroyed(SurfaceHolder holder)\n {\n if (mCamera != null)\n {\n mCamera.stopPreview();\n }\n }", "title": "" }, { "docid": "dde525854e8d349da763032f4e692973", "score": "0.63606495", "text": "@Override\n\t public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\n\t \ttheCamera.stopPreview();\n\t \ttheCamera.release();\n\t }", "title": "" }, { "docid": "d75ac4d7b4fdc7abe13a638727260010", "score": "0.63540894", "text": "@Override\n public void dispose() {\n pressState = 0;\n startGame = false;\n\n// background = null;\n// tile1Texture= null;\n// tile2Texture= null;\n// tile3Texture= null;\n// store1Texture= null;\n// store2Texture= null;\n// store3Texture= null;\n// arrowTexture= null;\n// backTexture= null;\n// headerTexture= null;\n }", "title": "" }, { "docid": "980b1f054138f33ebe98264008ea04c6", "score": "0.63522226", "text": "public final void destroy() {\n GLES10.glDeleteTextures(1, new int[] {textureId}, 0);\n\n // Setting this value to -1 indicates that it is unloaded.\n textureId = -1;\n }", "title": "" }, { "docid": "5a4702d4dfe5a245cad0803804f386ee", "score": "0.6324081", "text": "protected void cleanUp() {\n\t\tGLES30.glDeleteFramebuffers(1, fbo, 0);\n\t\tGLES30.glDeleteTextures(1, shadowMap, 0);\n\t}", "title": "" }, { "docid": "6eeff56f1caccbf0e15cb2dcb7ac548f", "score": "0.63183784", "text": "@Override\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tboolean retry = true;\n\t\twhile (retry) {\n\t\t\ttry {\n\t\t\t\tthread.join();\n\t\t\t\tretry = false;\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// try again shutting down the thread\n\t\t\t}\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "0021ad8f6ac2f26e8eb33d96f0e8d1f1", "score": "0.6309254", "text": "private void deInit() {\r\n\r\n\t\tKeyboard.destroy();\r\n\t\tDisplay.destroy();\r\n\t}", "title": "" }, { "docid": "d832605f48e9d9f9a632c47e44b82999", "score": "0.6306153", "text": "@Override\r\n\tpublic void surfaceDestroyed(SurfaceHolder holder) {\n\t\tif (prRecordInProcess) {\r\n\t\t\tmyrecorder.stopRecording();\r\n\t\t\tprStartBtn.setText(\"start\");\r\n\t\t\tprRecordInProcess = false;\r\n\t\t} else {\r\n\t\t\tprCamera.stopPreview();\r\n\t\t}\r\n\t\tmyrecorder.prMediaRecorder.release();\r\n\t\tmyrecorder.prMediaRecorder = null;\r\n\t\tprCamera.release();\r\n\t\tprCamera = null;\r\n\t}", "title": "" }, { "docid": "168981ed48f69de61d430437696a80ed", "score": "0.62796956", "text": "public void dispose() {\n presentation.cancel();\n presentation.detachState();\n virtualDisplay.release();\n renderTarget.release();\n }", "title": "" } ]
c627744e388b86695f375b8777eabd72
This is the method for enable the tile
[ { "docid": "8a99cee26e3b5e40e4899839effcb757", "score": "0.6809826", "text": "public void enableTile(String user , String id , boolean isEnabled) {\n\t\ttry {\n\t\t\t\n\t\t\tWebElement userRoleAddButton = driver.findElement(By\n\t\t\t\t\t.xpath(\"//td[text()='\"+ user +\"']/..//td[@class='watable-col-add_tile']/button\"));\n\t\t\twaitTime();\n\t\t\twaitForElementAndClick(userRoleAddButton);\n\t\t\twaitTime();\n\t\t\tWebElement tileId = driver.findElement(By\n\t\t\t\t\t.xpath(\"//input[@data-id='\" + id + \"']\"));\n\t\t\tif(isEnabled){\n\t\t\t\tif (!tileId.isSelected()) {\n\t\t\t\t\ttileId.click();\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif (tileId.isSelected()) {\n\t\t\t\t\ttileId.click();\n\t\t\t }\n\t\t\t}\n\t\t\twaitForElementAndClick(globalModalOKCancelSaveButton);\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Unable to select the Tile \");\n\t\t}\n\n\t}", "title": "" } ]
[ { "docid": "58af36d08276c0508e1406af5230ff15", "score": "0.66717905", "text": "public void enable(){}", "title": "" }, { "docid": "bd9fcd2a31d63c60cd7a039a64ae08bf", "score": "0.6616897", "text": "@Override\n\tpublic void enable()\n\t{\n\n\t}", "title": "" }, { "docid": "158478cd274f5224bda5d0cfc5fbb657", "score": "0.6549565", "text": "public void Enable(){\n enabled = true;\n }", "title": "" }, { "docid": "40be29555b2d91c697d7ea360d74f08f", "score": "0.65478224", "text": "public void enable() {\n }", "title": "" }, { "docid": "dbf620f5bc79bfc554422ab31f6512ab", "score": "0.6504253", "text": "public void enable();", "title": "" }, { "docid": "15424192c7f4ea29c6af8ae808046219", "score": "0.6494984", "text": "public void flagTile() {\n this.isTileFlagged = !this.isTileFlagged;\n }", "title": "" }, { "docid": "9cb0e5f1314064067dc21abc91ab24de", "score": "0.64384377", "text": "public void enable() {}", "title": "" }, { "docid": "87078c789c4a0718c6c1fdacaf6e38be", "score": "0.6282818", "text": "public void enableTileByRole(String role, String tileName) {\n\t\ttry {\n\t\t\twaitForElementPresenceAndClick(\"//tr[./td[text()='\" + role\n\t\t\t\t\t+ \"']]//button[@class='btn btn-link addTile']\");\n\t\t\twaitForElementPresenceAndClick(\"//input[@data-id = '\" + tileName + \"']\");\n\t\t\twaitForElementAndClick(globalModalOKCancelSaveButton);\n\t\t\tSystem.out.println(\"Tile \" + tileName + \" added to the \" + role);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Unable to add the tile \" + tileName);\n\t\t}\n\t\t\n\n\t}", "title": "" }, { "docid": "8ed2b282fe36605f81dad7ec70882886", "score": "0.6236998", "text": "public void enableCreatePermissionItemImportTile() {\n\t\ttry {\n\n\t\t\twaitForElementAndClick(systemAdminItemImportTile);\n\t\t\twaitForElementVisible(createPermissionItemImport);\n\t\t\tif (!createPermissionItemImport.isSelected()) {\n\t\t\t\twaitTime();\n\t\t\t\tcreatePermissionItemImport.click();\n\t\t\t}\n\n\t\t\twaitForElementAndClick(globalModalOKCancelSaveButton);\n\t\t} catch (Exception e) {\n\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Unable to select Create permission for the Item Import Tile \");\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "f539c5e79130c1c546e75c2078da2985", "score": "0.6105082", "text": "public abstract void setImpassableTile(int tile);", "title": "" }, { "docid": "c1029211a3b118bbf900e7849a5a5624", "score": "0.609652", "text": "void enable();", "title": "" }, { "docid": "c1029211a3b118bbf900e7849a5a5624", "score": "0.609652", "text": "void enable();", "title": "" }, { "docid": "ca6fbf4fb710eb83db4cf003258e7392", "score": "0.6081231", "text": "public void setTile(Tile t){\n this.tile = t;\n }", "title": "" }, { "docid": "1dcaac1c6fbf23856723a6a82aa3e6d1", "score": "0.60391414", "text": "public void enable() {\n maxChests = plugin.getConfiguration().getConfig().getInt(\"maxChests\");\n if (!database.setup()) {\n Bukkit.getPluginManager().disablePlugin(plugin);\n return;\n }\n \n Bukkit.getOnlinePlayers().forEach(player -> loadPlayer(player.getUniqueId()));\n Bukkit.getScheduler().runTaskTimerAsynchronously(plugin, this::saveAllPlayers, 20*60*5, 20*60*5);\n }", "title": "" }, { "docid": "479e1855a77a56c90bec3000b597e7ca", "score": "0.60090953", "text": "public void enableFeature() {\n }", "title": "" }, { "docid": "d8335e1a2024fe875ad337d1c533a19f", "score": "0.5989672", "text": "public void setMineTile() {\n this.tileLabel = \"B\";\n }", "title": "" }, { "docid": "2f2d9c6906e94a423ffb640f523474be", "score": "0.59679806", "text": "public void enable(){\n\t\ttask.enabled = true;\n\t}", "title": "" }, { "docid": "0b83771141b9e60d0c460756960fa238", "score": "0.59397346", "text": "public void setStartTile(int x, int y);", "title": "" }, { "docid": "0db65ab8a28aedd64335f508fb541e7a", "score": "0.5928482", "text": "private void enablePanel(Boolean flag) {\n\t\t\taddPlayer.setEnabled(flag);\n\t\t}", "title": "" }, { "docid": "112209f7d64b2b22739dfc05dc9e8dd1", "score": "0.5927937", "text": "public void enableBoard() {\r\n /* Each of the nine PLACE buttons on the board is enabled */\r\n for (int i = 0; i < btnSquares.length; i++) {\r\n for (int j = 0; j < btnSquares[0].length; j++) {\r\n setBtnEnabled(i, j, true);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "1c1cb131123a86e0c675432580c51da9", "score": "0.5916923", "text": "private void requestDragonTile(){\n Game game = Game.getGame();\n game.requestDragonTile(this);\n }", "title": "" }, { "docid": "e6e914a5e7dcfc329855deebc881d411", "score": "0.58949107", "text": "public void enableIcon(boolean enable){\n\t\tcharacterButton.setEnabled(enable);\n\t}", "title": "" }, { "docid": "ee674010dced01ed12702caab846b772", "score": "0.5884684", "text": "public void modifyTile(Tile tile);", "title": "" }, { "docid": "9e2980f89afab65234c8bd11d667768a", "score": "0.5856202", "text": "protected abstract void setEnabled();", "title": "" }, { "docid": "ee0ad89257acfd316f5feec2b91baafa", "score": "0.58285177", "text": "void updateEnableState();", "title": "" }, { "docid": "16f55a799c1536553f2826ffee1f61d8", "score": "0.5798891", "text": "public void setEnabled() {}", "title": "" }, { "docid": "b7210f53dc02e32dc2b294d8265959ca", "score": "0.5797944", "text": "@Override\r\n\tpublic void onEnable() {\n\t}", "title": "" }, { "docid": "df4a0b5f54c566eecf6c4185383c5aa6", "score": "0.5785071", "text": "public void enable() {\n\t\tm_thisMutex.lock();\n\t\ttry {\n\t\t\tm_enabled = true;\n\t\t} finally {\n\t\t\tm_thisMutex.unlock();\n\t\t}\n\t}", "title": "" }, { "docid": "7a44803dd0c80e30d9a0c65158aae58f", "score": "0.5773998", "text": "public void onEnable() {\n }", "title": "" }, { "docid": "ee3f125732061b6b4dc585dc1e1313ee", "score": "0.5766681", "text": "public void enableButton() {\n enableButton = true;\n }", "title": "" }, { "docid": "85c3645d785e4a6c752b82a2d9c4c7ee", "score": "0.57626367", "text": "public void onEnable() {\n\n }", "title": "" }, { "docid": "72b763a3b5922b146be54f3a5bf9c32c", "score": "0.5737236", "text": "private void performAddTileToBoard(MoveTileData addTileData) {\n try {\r\n server.addTile(playerID,\r\n WSObjToGameObjConverter.convertGameTileIntoGeneratedTile(draggedTile),\r\n addTileData.getTargetSequenceIndex(),\r\n addTileData.getTargetSequencePosition());\r\n disableAllControls(true);\r\n } catch (InvalidParameters_Exception ex) {\r\n showMessage(ex.getMessage(), ERROR_MSG_TYPE);\r\n }\r\n }", "title": "" }, { "docid": "7677b34088ea7583a76bd12114b186b8", "score": "0.57364637", "text": "public abstract void onEnable();", "title": "" }, { "docid": "a3460b659339c640ddcbd4d56b5c381b", "score": "0.5726153", "text": "public void toggleEnabled() {\n if (enabled) {\n clear(player.getPlayer());\n enabled = false;\n }\n else {\n enabled = true;\n setup(player.getPlayer());\n }\n }", "title": "" }, { "docid": "c32c614ee364c762ad9a79916616ff84", "score": "0.56791687", "text": "private void setupTile(Tile tile) {\n if (tilesAlreadySetup.contains(tile)) {\n return;\n }\n tilesAlreadySetup.add(tile);\n TileDragResizer.makeResizable(pane, tile);\n\n tile.setOnContextMenuRequested(event -> {\n ContextMenu contextMenu = createContextMenu(event);\n contextMenu.show(pane.getScene().getWindow(), event.getScreenX(), event.getScreenY());\n event.consume();\n });\n\n // Allow users to double-click on a tile to select it.\n tile.addEventHandler(MouseEvent.MOUSE_CLICKED, event -> {\n if (event.getButton() == MouseButton.PRIMARY && event.getClickCount() == 2) {\n selector.selectOnly(tile);\n }\n });\n\n ActionList.registerSupplier(tile, () -> {\n ActionList widgetPaneActions = ActionList\n .withName(tile.getContent().getTitle())\n .addAction(\"Remove\", () -> {\n if (selector.isSelected(tile)) {\n selector.getSelectedTiles().forEach(this::removeTile);\n } else {\n removeTile(tile);\n }\n selector.deselectAll();\n })\n .addNested(createLayoutMenus(tile));\n\n if (tile instanceof WidgetTile) {\n WidgetTile widgetTile = (WidgetTile) tile;\n ActionList changeMenus = createChangeMenusForWidget(widgetTile);\n if (changeMenus.hasItems()) {\n widgetPaneActions.addNested(changeMenus);\n }\n }\n widgetPaneActions.addAction(\"Edit Properties\",\n () -> {\n Set<Tile<?>> tiles = new LinkedHashSet<>();\n tiles.add(tile);\n tiles.addAll(selector.getSelectedTiles());\n if (tiles.size() == 1) {\n showSettingsDialog(createSettingsCategoriesForComponent(tile.getContent()));\n } else {\n List<Category> categories = tiles.stream()\n .map(t -> t.getContent())\n .map(c -> createSettingsCategoriesForComponent(c))\n .collect(Collectors.toList());\n showSettingsDialog(categories);\n }\n });\n\n // Layout unwrapping\n if (tile instanceof LayoutTile) {\n widgetPaneActions.addAction(\"Unwrap\", () -> {\n if (selector.areTilesSelected()\n && selector.getSelectedTiles().stream().allMatch(t -> t instanceof LayoutTile)) {\n selector.getSelectedTiles().forEach(t -> unwrapLayout((LayoutTile) t));\n } else {\n unwrapLayout(tile);\n }\n selector.deselectAll();\n });\n }\n return widgetPaneActions;\n });\n\n tile.setOnDragDetected(event -> startTileDrag(tile, event));\n\n tile.addEventHandler(MouseEvent.MOUSE_PRESSED, e -> mousePressOnTile(tile, e));\n\n tile.setOnDragDropped(new TileDropHandler(pane, tile));\n }", "title": "" }, { "docid": "0cc913f1c1e68b5342d1fd3a592091f1", "score": "0.5667848", "text": "void enableUserControl();", "title": "" }, { "docid": "f7303cb3b3bad2446ee2eb84accd3e16", "score": "0.5658427", "text": "@Override\n\tpublic void enableTC(Class<? extends DGeom> cls, boolean b) {\n\t}", "title": "" }, { "docid": "38d9eb09c1e6700d83605e454a7ce659", "score": "0.56541926", "text": "@Override\n\tpublic void enable(String id) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "cf1ab86403bd8f87cc7ab5c4f8d31c40", "score": "0.56272215", "text": "public abstract boolean ActionTile(Player player);", "title": "" }, { "docid": "029c22f666fd057e649bc8424d9fced2", "score": "0.5625497", "text": "public void load() {\r\n\t\tString tileKey = provider.getTileId(getCoord());\r\n\t\tif (!tileCache.containsKey(tileKey)) {\r\n\t\t\ttileCache.put(tileKey, new ArrayList<BufferedImage>());\r\n\t\t}\r\n\r\n\t\tArrayList<BufferedImage> imgs = tileCache.get(tileKey);\r\n\t\t// Acquire lock on the tile images. Thread with lock will load\r\n\t\t// tile if not already loaded\r\n\t\tLOG.debug(\"Acquiring lock on \" + getCoord().toString());\r\n\t\tsynchronized (imgs) {\r\n\t\tLOG.debug(\"Lock acquired \");\r\n\t\t\tif (imgs.isEmpty()) {\r\n\t\t\t\tList<String> urls = provider.getTileUrls(getCoord());\r\n\t\t\t\ttileCache.put(tileKey, imgs);\r\n\r\n\t\t\t\tfor (String url : urls) {\r\n\t\t\t\t\tLOG.debug(\"Loading tile at \" + url);\r\n\r\n\t\t\t\t\t// Read the Image\r\n\t\t\t\t\tBufferedImage image;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\timage = ImageIO.read(new URL(url));\r\n\t\t\t\t\t\tLOG.debug(\"Tile loaded \" + url);\r\n\t\t\t\t\t\timgs.add(image);\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t\tLOG.debug(e);\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\tLOG.debug(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (requestor != null) {\r\n\t\t\trequestor.renderTile(this);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "367544490110d0465d346ead1a953179", "score": "0.5604446", "text": "public void playTile(){\n turnState.playTile(currentCommandCreator.getCost());\n }", "title": "" }, { "docid": "382e9563da7ba5cdd80a021408fd06f0", "score": "0.5598153", "text": "public void enable() {\n m_enabled = true;\n m_controller.reset();\n }", "title": "" }, { "docid": "936e3f61c802d60723825af77399c8d7", "score": "0.559201", "text": "public void enableAction() {\n enabled = true;\n notifyAction();\n }", "title": "" }, { "docid": "afcde1ee238c0d587c949c59d5e93c5d", "score": "0.55826104", "text": "protected void enableAll(boolean enable){\n\t\toutputOverride.onOffButton.setEnabled(enable);\n\t\toutputOverride.leftRightButton.setEnabled(enable);\n\t\toutputOverride.powerslider.setEnabled(enable);\n\t\tfor(int i=0; i<8; i++){\n\t\t\toutputPanels[i].onOffButton.setEnabled(enable);\n\t\t\toutputPanels[i].leftRightButton.setEnabled(enable);\n\t\t\toutputPanels[i].powerslider.setEnabled(enable);\n\t\t}\n\t}", "title": "" }, { "docid": "975e2f09aed640872ffdad2b532ad5b0", "score": "0.55750084", "text": "@Override\n public void enableButtons() {\n }", "title": "" }, { "docid": "8bdb65cbe63d5cce4f2c5ba5b8b2f362", "score": "0.5571836", "text": "public void onEnable() {\r\n/* 47 */ mc.func_147108_a(gui);\r\n/* 48 */ guiOpen = true;\r\n/* 49 */ ClickGUI.WIDTH = ((Integer)width.getValue()).intValue();\r\n/* 50 */ ClickGUI.HEIGHT = ((Integer)height.getValue()).intValue();\r\n/* 51 */ ClickGUI.FEATURE_HEIGHT = ((Integer)height.getValue()).intValue() - 2;\r\n/* */ }", "title": "" }, { "docid": "d6f6592765b728eb247a101569309e3c", "score": "0.55358166", "text": "private void enableElement(InterfaceAttribute ia) {\n\t\tia.setBackgroundColor(ENABLED_BACKGROUND_COLOR);\n\t\tia.setIsEnabled(true);\n\t\tmodifyInterface(ia);\n\t}", "title": "" }, { "docid": "e67bb70d901b2f1ced4a6959b3eeb58e", "score": "0.5532678", "text": "public void onEnable()\n {\n info = getDescription();\n \n log.info(\"[StacheStash] Loading Configuration...\");\n\n if(StacheMotD.getFile().exists()) //if a MotD file exists\n {\n try\n {\n StacheMotD.loadMotD(); //load it\n log.info(\"[StacheStash] Configuration loaded!\");\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n else //otherwise\n {\n log.info(\"[StacheStash] No MotD file found. Creating a default MotD file\");\n try\n {\n StacheMotD.createMotD(); //create it\n log.info(\"[StacheStash] MotD file created successfully!\");\n }\n catch (IOException e)\n {\n e.printStackTrace();\n } \n }\n \n //register event listener by (type, typeListener, priority, this)\n PluginManager pm = getServer().getPluginManager();\n pm.registerEvent(Event.Type.PLAYER_JOIN, playerListener, Priority.Normal, this);\n pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Priority.Normal, this);\n \n //set up Perms 3.1.x\n setupPermissions();\n\n //Display plugin name & version on successful enable\n log.info(\"[StacheStash] v\" + info.getVersion() + \" is Enabled! (By: ACStache)\");\n }", "title": "" }, { "docid": "46fcff3ebb83822352cc4bd22cb5c766", "score": "0.553072", "text": "void enable() {\n wait = false;\n }", "title": "" }, { "docid": "8bf57c72ebb08f18e1edb9646021f578", "score": "0.55261", "text": "public static void enable()\n {\n if (!enabled)\n {\n enabled = true;\n CapabilityManager.INSTANCE.register(IEnergyHandler.class, new Storage(), new Callable<IEnergyHandler>()\n {\n @Override\n public IEnergyHandler call() throws Exception\n {\n return new EnergyBuffer();\n }\n });\n }\n }", "title": "" }, { "docid": "eb3097fdc4cb1e9aea372a2184733a99", "score": "0.5524921", "text": "private void DrawTile(int t, int x, int y) {\n\t\tif (t != -1) {\n\t\t\timages[t].draw(x * tileWidth - cameraPos.x, y * tileHeight - cameraPos.y);\n\t\t}\n\t}", "title": "" }, { "docid": "5c6df131fae6ac7a9bdd05cc513bc75e", "score": "0.5515628", "text": "@Override\n public void setEnabled(boolean b) {\n \n }", "title": "" }, { "docid": "c53c71c1419b6f998f99bfc91b3af235", "score": "0.55147916", "text": "public void remplirTileMap() {\n\t\tfor (int i = 0; i < 900; i++) {\n\t\t\tImageView texture = new ImageView(\"textures/\" +game.getMonTerrain().codeTuile(i) + \".png\");\n\t\t\tthis.map.getChildren().add(texture);\n\t\t}\n\t}", "title": "" }, { "docid": "5f2ca76d4629694e2f2b621f754fb602", "score": "0.55123407", "text": "public void enableGrid (double xstep, double ystep) {\n this.grid = true;\n this.xstepGrid = xstep;\n this.ystepGrid = ystep;\n }", "title": "" }, { "docid": "1f902e743e9f0357ae8bad3d7cf8a0b5", "score": "0.5510871", "text": "@Override\r\n \tpublic void setEnabled(boolean bool) {\n \t}", "title": "" }, { "docid": "3ca8d54391fbb35c0e8f4d8fe0f177f5", "score": "0.5509854", "text": "protected void setToEnable(boolean enable) {\r\n\t\tthis.enable = enable;\r\n\t}", "title": "" }, { "docid": "3778d0843f8fc6d649086fb4b4019cb7", "score": "0.5508886", "text": "@Override\n\tpublic void drawLayer(Graphics g, TileLayer layer, int renderX, int renderY, int startTileX, int startTileY,\n\t\t\t\t\t\t int widthInTiles, int heightInTiles, float alpha) {\n\t\t\n\t}", "title": "" }, { "docid": "ade0fc864c640f2e1416435f867c479a", "score": "0.55063546", "text": "protected void enableOverlay(boolean enable) {\n\t\tenableOverlay = enable;\n\t}", "title": "" }, { "docid": "f60bab36bb2d442a2476543707522951", "score": "0.5501588", "text": "protected abstract void onTileDraw(GL10 gl);", "title": "" }, { "docid": "29163f430bcf0496f7d786fc4262c487", "score": "0.5481743", "text": "public Tile(int inX, int inY, int inWidth, int inLength, int inHeight)//not sure why position isi given as a double. Can't see myself using half a unit or something.\n {\n x=inX;y=inY;width=inWidth;length=inLength; baseHeight = inHeight; height = baseHeight;\n thisClicked = false;\n polyPoints1 = new int[2][4];\n polyPoints2 = new int[2][4];\n color = new Color(14, 155, 14);\n firstColor = color;\n myThreadedUpperPoints = getUpperPoints();\n myThreadedLowerPoints = getPoints();\n thread = new Thread(this);\n transitPos = new int[2];\n spin = 0;\n movingX = x; \n movingY = y;\n threadedTilePolygon = new Polygon(myThreadedLowerPoints[0], myThreadedLowerPoints[1],4);\n \n TileDrawer2.tileList.add(this);\n \n thread.start();\n player = getPlayer();\n //addRandomFlowers(5, 15);\n addRandomScenery();\n //Mushroom testMushroom = new Mushroom(this, .5, .5, 1);\n }", "title": "" }, { "docid": "56fbd6b8ca2e9bfe909165bc9b3d77ad", "score": "0.54801756", "text": "public static void addTile(Tile t) {\n\t\taddTile(t, false);\n\t}", "title": "" }, { "docid": "4652769f4b4b59f73a6bc4144e97562f", "score": "0.54724246", "text": "public void setTilePanel(TilePanel tilePanel) {\n this.tilePanel = tilePanel;\n }", "title": "" }, { "docid": "50739759156f54c818f1a738ebf51386", "score": "0.546862", "text": "public void setEnable(Byte enable) {\n this.enable = enable;\n }", "title": "" }, { "docid": "54407db60f1ebce311e4db64d29d1595", "score": "0.54622996", "text": "public void setTile(Tile t){\n\t\tshape[t.getRow()][t.getColumn()] = t;\n\t}", "title": "" }, { "docid": "7ca3278833282194980e9d7494ffb02d", "score": "0.54609215", "text": "public void setTileType(TileType tileType) {\n\t\tthis.tileType = tileType;\n\t}", "title": "" }, { "docid": "4e0a6ee28dd77b4d30056504e76e9c54", "score": "0.5453547", "text": "protected void enableWidget(Widget w) {\r\n w.setState(WidgetState.ACTIVE);\r\n }", "title": "" }, { "docid": "bd4c46f25aa4f7fe1359db6105999b7d", "score": "0.54528606", "text": "@Override\r\n\tpublic void TurnOn() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f942d418164e6e2b46ca364e8d46f045", "score": "0.5438992", "text": "@Override\r\n\tpublic void enableHardware(AbstractHardware<? extends AbstractHardwareListener> hardware) {\r\n\t\tenabled = true;\r\n\r\n\t}", "title": "" }, { "docid": "d8b85c57772df7cf2738c1e041abee71", "score": "0.5435052", "text": "public void setTile(float x, float y)\r\n\t{\n\t\ttexture[0] = 0.0f*x;\ttexture[1] = 0.0f*y;\t\t// bottom left\t(V1)\r\n\t\ttexture[2] = 1.0f*x;\ttexture[3] = 0.0f*y;\t\t// bottom right\t(V3)\r\n\t\ttexture[4] = 0.0f*x;\ttexture[5] = 1.0f*y;\t\t// top left\t\t(V2)\r\n\t\ttexture[6] = 1.0f*x;\ttexture[7] = 1.0f*y;\t\t// top right\t(V4)\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e3aefbcbb521b46c5e6b60d3f3773efc", "score": "0.5433419", "text": "@Override\n public void onEnable() {\n p = this;\n setupConfiguration();\n\n registerEvents();\n\n setupWorldGuard();\n setupFilePaths();\n\n getCommand(\"dynamictextures\").setExecutor(new Commands());\n\n if (worldGuardEnabled) {\n //Region check timer (Runs every five seconds)\n new RegionTimerTask().runTaskTimer(this, 0, 5 * 20);\n }\n\n checkForUpdates();\n\n setupMetrics();\n }", "title": "" }, { "docid": "f854f2ba516445df57f765537245f1f9", "score": "0.54318124", "text": "public void loadTiles() {\n if (!this.isLoaded()) {\n this.load.start();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n Logger.getLogger(TileEngine.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "title": "" }, { "docid": "551d8729fb6826e69df7f6dcf1c79c94", "score": "0.5426738", "text": "protected void enableWidget(Widget w) {\n w.setState(WidgetState.ACTIVE);\n }", "title": "" }, { "docid": "3484861ebbd648f7334ecfccb12155e7", "score": "0.54240537", "text": "@Override\n public void activate_panel()\n {\n boolean system_level = true;\n }", "title": "" }, { "docid": "62d05874dba5146cf4bd3c8b7887e384", "score": "0.5412558", "text": "@Override\r\n\t public boolean isEnable(SfEntrust entrust, RequestMeta meta) {\n\t return true;\r\n\t }", "title": "" }, { "docid": "4fb26824c58111ffabddea466b032010", "score": "0.541139", "text": "public void enable() {\n\t\tByteBuffer bb = IPConnection.createRequestBuffer((byte)stackID, FUNCTION_ENABLE, (short)4);\n\n\t\tsendRequestNoResponse(bb.array());\n\t}", "title": "" }, { "docid": "47feb96e013f3419604c202bda4982f3", "score": "0.5407269", "text": "public void setTileState(TileState tileState)\n {\n this.tileState = tileState;\n }", "title": "" }, { "docid": "12e41c46542a6c1233faa2a3144e8511", "score": "0.540366", "text": "public void onEnable() {\n Central.getPluginServer().getPluginManager().registerEvents(new PlayerListener(), Central.getPluginInstance());\n Central.getPluginServer().getPluginManager().registerEvents(new BlockListener(), Central.getPluginInstance());\n\t\tBlocksInfo.loadBlocksInfo();\n\t\tCentral.getConfigManager().loadProperties();\n\n\t\tSystem.out.println(\"[\" + Central.getPluginName() + \"] \" + Central.getVersion() + \" is enabled\");\n\t}", "title": "" }, { "docid": "bb4035d0f14cac59bb37f5e174aea824", "score": "0.54029447", "text": "void enable(int flag);", "title": "" }, { "docid": "2f6b435e136bdffbfef13a1af1cc59b7", "score": "0.53999203", "text": "@Override\n public void visitTile(Tile tile){\n setCanMove(true);\n setCanMoveBelow(true);\n if (tile.hasObstacle() ) setCanMove(false);\n else {\n tile.getTerrain().accept(this);\n }\n }", "title": "" }, { "docid": "376af0e127ccf829d7f02ed3f80d892e", "score": "0.5389085", "text": "protected boolean enable() throws Exception\n {\n return false;\n }", "title": "" }, { "docid": "a315bb7b178a7efb64d13c8c5383c991", "score": "0.53712225", "text": "public void setEnable(boolean enable) {\n\t\tthis.enable = enable;\n\t}", "title": "" }, { "docid": "f7e673c7bea7f6481f3821d091e31811", "score": "0.5368196", "text": "public boolean isControlTile() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ae9707c78f83c7b237bc9fc0f5870655", "score": "0.5366838", "text": "public void revealTile() {\n this.isTileRevealed = true;\n }", "title": "" }, { "docid": "44ce36dc28672243563d9fa21eccc18e", "score": "0.5364566", "text": "public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}", "title": "" }, { "docid": "0521a8a6390f3c7dbd06c87d8077996e", "score": "0.5362538", "text": "public void setTileStatus(TileStatus tileStatus) {\n\t\tthis.tileStatus = tileStatus;\n\t\tnotifyAllObservers();\n\t}", "title": "" }, { "docid": "75b5012196305b32d152ea16a89a002c", "score": "0.535901", "text": "public void setEnable(EnableEnum enable) {\n this.enable = enable;\n }", "title": "" }, { "docid": "ee343579546b76b8f69c4d56f77a2194", "score": "0.53558964", "text": "@Override\n public void onHit() {\n GameScreen.Teleport = \"True\";\n\n\n }", "title": "" }, { "docid": "aee2847d7ccad44504ac60e153c79288", "score": "0.53509694", "text": "public void makeEmptyTileMap() {\n \tTileType[] tileTypes = { };\n int tileSize=17;\n int tilesMap[][]={\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1},\n {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1}\n };\n tileMap = new TileMap(tileSize, tileTypes, tilesMap);\n }", "title": "" }, { "docid": "c2cb4a38e3f18eb22a5dbbedefdb1968", "score": "0.5345585", "text": "@Override\n public void setEnabled(boolean b) {\n }", "title": "" }, { "docid": "8ef85e3306edfb63e0709a5af8174cc0", "score": "0.53291315", "text": "public void setEnable(Boolean enable) {\n\t\tthis.enable = enable;\n\t}", "title": "" }, { "docid": "d5559b15c0d01f1c06443f9c72e0ba5f", "score": "0.5328392", "text": "public void forceEnable() {\n mForceEnable = true;\n }", "title": "" }, { "docid": "f54df53eeae9d2b994e24208fb1b57a9", "score": "0.5327208", "text": "public void setEnabled (boolean enabled) {\n this.enabled = enabled;\n }", "title": "" }, { "docid": "acfcfbd76974bfa136f983820c9f81bb", "score": "0.5326213", "text": "void setEnableStepOverButton(boolean isEnable);", "title": "" }, { "docid": "5ac54b5104f2325c300c35dbf1dc746a", "score": "0.53260493", "text": "abstract protected Tile chooseTileHelper();", "title": "" }, { "docid": "2a0a2cd5b2f47097cf4dbcee4d6b54c8", "score": "0.5321632", "text": "private void checkEnabled() {\n }", "title": "" }, { "docid": "053e484c01bdc4c0ffd27f93ccde8a79", "score": "0.53190315", "text": "public void setTile(final FieldGeographicElement fieldGeographicElement, Boolean specifyRegion) {\n this.fieldGeographicElement = fieldGeographicElement;\n //If this element exists\n if (ManageStarredTiles.getInstance(getContext()).getPos(fieldGeographicElement) != -1)\n //tick the tick\n this.star.setChecked(true);\n //If there's not a denominazione\n if (specifyRegion)\n this.tile_head.setText(DPCData.trimTitleString(fieldGeographicElement.getField()));//only set header text with the tile_head\n //otherwise set both denominazione and field\n else this.tile_head.setText(String.format((String) getResources().getText(R.string.placeholder_concat),\n DPCData.trimTitleString(fieldGeographicElement.getField()),\n fieldGeographicElement.getDenominazione()));\n\n //setting colors\n if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_total)))\n this.container.setBackgroundColor(getResources().getColor(R.color.colorBlue, null));\n else if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_active)))\n this.container.setBackgroundColor(getResources().getColor(R.color.colorOrange, null));\n else if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_healed)))\n this.container.setBackgroundColor(getResources().getColor(R.color.colorGreen, null));\n else if (fieldGeographicElement.getField().equals(getResources().getText(R.string.denominazione_deaths)))\n this.container.setBackgroundColor(getResources().getColor(R.color.colorRed, null));\n else\n this.container.setBackgroundColor(getResources().getColor(R.color.colorGrey, null));\n\n //set listener\n this.star.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n //star.setBackgroundResource(R.drawable.star);\n if (isChecked)\n ManageStarredTiles.getInstance(getContext()).saveElement(fieldGeographicElement);\n else ManageStarredTiles.getInstance(getContext()).deleteElement(fieldGeographicElement);\n\n }\n });\n }", "title": "" }, { "docid": "4f1d931025eeccfd224165dc743657ee", "score": "0.5317256", "text": "public void setEnabled(boolean enabled) {\n }", "title": "" }, { "docid": "8ca9ebe4d4dfb93e560d19cd9c607b6e", "score": "0.53164107", "text": "public void enableCapturedPieceImages() {\n\t\twhitePawnIV.setImage(new Image(\"file:WhitePawn.png\", 100, 100, true, true)); \n\t\twhiteRookIV.setImage(new Image(\"file:WhiteRook.png\", 100, 100, true, true));\n\t\twhiteKnightIV.setImage(new Image(\"file:WhiteKnight.png\", 100, 100, true, true));\n\t\twhiteBishopIV.setImage(new Image(\"file:WhiteBishop.png\", 100, 100, true, true));\n\t\twhiteQueenIV.setImage(new Image(\"file:WhiteQueen.png\", 100, 100, true, true));\n\t\t\n\t\tblackPawnIV.setImage(new Image(\"file:BlackPawn.png\", 100, 100, true, true));\n\t\tblackRookIV.setImage(new Image(\"file:BlackRook.png\", 100, 100, true, true));\n\t\tblackKnightIV.setImage(new Image(\"file:BlackKnight.png\", 100, 100, true, true));\n\t\tblackBishopIV.setImage(new Image(\"file:BlackBishop.png\", 100, 100, true, true));\n\t\tblackQueenIV.setImage(new Image(\"file:BlackQueen.png\", 100, 100, true, true));\n\t}", "title": "" }, { "docid": "e5421fac4278c0894460780a9f5c733c", "score": "0.5307629", "text": "public void ChangeTerrainTilePartial(int xindex, int yindex, byte val){\n log.info(\"Changing Terrain Tile Partial\");\n if((0 > yindex)||(0 > xindex)){\n return;\n }\n if(yindex >= DPartials.size()){\n return;\n }\n if(xindex >= DPartials.get(0).size()){\n return;\n }\n Vector<Byte> modRow = DPartials.get(yindex);\n modRow.set(xindex, Byte.valueOf(val));\n DPartials.set(yindex,modRow);\n for(int YOff = 0; YOff < 2; YOff++){\n for(int XOff = 0; XOff < 2; XOff++){\n if(DRendered){\n int XPos = xindex + XOff;\n int YPos = yindex + YOff;\n if((0 < XPos)&&(0 < YPos)){\n if((YPos + 1 < DMap.size())&&(XPos + 1 < DMap.get(YPos).size())){\n SetTileTypeAndIndex(XPos-1, YPos-1);\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "798db717c5ffa35829293670d5d3dd07", "score": "0.5304418", "text": "public Result<Void> enable() {\n\t\treturn MenigaChallenge.apiOperations.enableChallenge(id);\n\t}", "title": "" } ]
fe6680e639149911616ebb75720bab34
Creates new form DocumentViewerPanel
[ { "docid": "23a18f6774ac011fe36cf05a5654932d", "score": "0.0", "text": "public DocumentViewerPanel(String title, String content, int date, String doi, String exercise, DefaultTableModel model) {\n \tthis.title = title;\n \tthis.content = content;\n \tthis.date = date;\n \tthis.doi = doi;\n \tthis.exercise = exercise;\n \tthis.model = model;\n initComponents();\n display();\n }", "title": "" } ]
[ { "docid": "d2b915aa2fa8d8d49b183434c29768b6", "score": "0.6821174", "text": "public void createContents(Composite parent) {\r\n parent.setLayout(new GridLayout(1, false));\r\n\r\n // Pressing the \"New Document\" button will create a new ViewForm\r\n Button button = new Button(parent, SWT.PUSH);\r\n button.setText(\"New Document\");\r\n\r\n // Create the composite that holds the ViewForms\r\n final Composite composite = new Composite(parent, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_BOTH));\r\n composite.setLayout(new FillLayout());\r\n\r\n // Add the event handler to create the ViewForms\r\n button.addSelectionListener(new SelectionAdapter() {\r\n public void widgetSelected(SelectionEvent event) {\r\n createViewFormHelper(composite, \"Document \" + (++count));\r\n composite.layout();\r\n }\r\n });\r\n }", "title": "" }, { "docid": "c62054fd42e47a6c92d6b9888ad6b3eb", "score": "0.6165357", "text": "@Override\n public void createPanel()\n {\n\n }", "title": "" }, { "docid": "cf6a3f2f21db89a46e00034b26485d51", "score": "0.60968095", "text": "protected GuiaViewer() {\n this.viewerPDF = new ViewerPDF();\n }", "title": "" }, { "docid": "e25230a0cc5a810ebe9cf81fd890aa4e", "score": "0.60680515", "text": "protected void createGraphicalViewer() {\n GraphicalViewer viewer = new ScrollingGraphicalViewer();\n viewer.createControl(this);\n setGraphicalViewer(viewer);\n configureGraphicalViewer();\n hookGraphicalViewer();\n initializeGraphicalViewer();\n }", "title": "" }, { "docid": "5e93da243eaccfcf82b203b8f41cb44e", "score": "0.60620445", "text": "public JComponent getDocumentViewer() {\n WebBrowser viewer = new WebBrowser();\n File file = new File(url);\n if (file.exists()) {\n try {\n URL curl = new URL(cacheUrl);\n viewer.setURL(curl);\n }\n catch (Exception e) {\n Log.error(e);\n }\n }\n else {\n try {\n viewer.setURL(new URL(url));\n }\n catch (MalformedURLException e) {\n try {\n URL curl = new URL(cacheUrl);\n viewer.setURL(curl);\n }\n catch (MalformedURLException e1) {\n Log.error(e1);\n }\n }\n }\n\n JPanel p = new JPanel();\n p.setLayout(new BorderLayout());\n p.add(viewer, BorderLayout.CENTER);\n\n return p;\n }", "title": "" }, { "docid": "272b133b6aec3f4bcad4769767aabb7b", "score": "0.605854", "text": "protected JPanel createForm()\n\t{\t\n\t\tJPanel formPanel = new JPanel ();\n\t\tformPanel.setLayout( new BoxLayout ( formPanel, BoxLayout.Y_AXIS ));\n\t\tformPanel.setBackground ( blue );\n\t\t\n\t\tformPanel.add(createDataEntryFields());\n\t\t\n\t\tformPanel.add(Box.createRigidArea( size ));\n\t\tformPanel.add(createNavigationButtons());\n\t\t\n\t\tformPanel.setBorder (BorderFactory.createEmptyBorder( 10, 10, 10, 10 ));\n\t\t\n\t\treturn formPanel;\t\t\n\t}", "title": "" }, { "docid": "943f50e130e71d7dd30e58e2ab1e325c", "score": "0.5993829", "text": "public void createPartControl(Composite parent) {\r\n\t\tFormToolkit toolkit = new FormToolkit(parent.getDisplay());\r\n\t\tForm form = toolkit.createForm(parent);\r\n\t\tFillLayout layout = new FillLayout();\r\n\t\tlayout.marginHeight = 10;\r\n\t\tlayout.marginWidth = 4;\r\n\t\tform.getBody().setLayout(layout);\r\n\t\ttoolkit.decorateFormHeading(form);\r\n\r\n\t\tIActionBars bars = getViewSite().getActionBars();\r\n\t\t\r\n\t\t// Drag and drop support\r\n\t\t// limited to the initial label and the section over the tabs\r\n\t\tfinal Label label = new Label(form.getBody(), SWT.CENTER);\r\n\t\tlabel.setText(\"drop Workflow-file (*.mwe) here\");\r\n\t\t \r\n\t\tint operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_DEFAULT;\r\n\t\tDropTarget dt = new DropTarget(label, operations);\r\n\t\tfinal TextTransfer textTransfer = TextTransfer.getInstance();\r\n\t\tfinal FileTransfer fileTransfer = FileTransfer.getInstance();\r\n\t\tTransfer[]\ttypes = new Transfer[] {fileTransfer, textTransfer};\r\n\t\tdt.setTransfer(types);\r\n\t\tWorkflowDropTargetListener dropTargetListener = new WorkflowDropTargetListener(this);\r\n\t\tdt.addDropListener(dropTargetListener);\r\n\t\t\r\n\t\tDropTarget dtForm = new DropTarget(form.getBody(), operations);\r\n\t\tdtForm.setTransfer(types);\r\n\t\tdtForm.addDropListener(dropTargetListener);\r\n\r\n\t\tmodelViewer = new ModelViewer(form.getBody(), toolkit,\r\n\t\t\t\tnew EclipseSourceLocator(), bars.getStatusLineManager());\r\n\r\n\t\tmenuManager = bars.getMenuManager();\r\n\t\ttoolBarManager = bars.getToolBarManager();\r\n\t\tcreateActions();\r\n\t\tfillLocalPullDown();\r\n\t\tfillLocalToolBar();\r\n\t\t// getSite().setSelectionProvider(modelViewer);\r\n\r\n\t}", "title": "" }, { "docid": "a00b8ec96b04b70a57d637efa3e3031b", "score": "0.5937751", "text": "private void initViewer() {\r\n\tHTML htmlViewer = new HTML();\r\n\thtmlViewer.setStylePrimaryName(\"Osyl-UnitView-UnitLabel\");\r\n\tsetViewer(htmlViewer);\r\n\r\n\tHTML htmlViewerDesc = new HTML();\r\n\thtmlViewerDesc.setStylePrimaryName(\"description\");\r\n\thtmlViewerDesc.setTitle(getView().getUiMessage(\r\n\t\t\"DocumentEditor.document.description\"));\r\n\tsetViewerDesc(htmlViewerDesc);\r\n\r\n\tHTML htmlViewerName = new HTML();\r\n\thtmlViewerName.setStylePrimaryName(\"name\");\r\n\tsetViewerName(htmlViewerName);\r\n\r\n\tHTML htmlViewerType = new HTML();\r\n\thtmlViewerType.setStylePrimaryName(\"type\");\r\n\tsetViewerType(htmlViewerType);\r\n\r\n\tsetViewer(new VerticalPanel());\r\n\tgetViewer().setStylePrimaryName(\"Osyl-UnitView-HtmlViewer\");\r\n\tHorizontalPanel linkAndNameHP = new HorizontalPanel();\r\n\tlinkAndNameHP.add(getViewerLink());\r\n\tlinkAndNameHP.add(getViewerType());\r\n\tgetViewer().add(linkAndNameHP);\r\n\tgetViewer().add(getViewerName());\r\n\tgetViewer().add(getViewerDesc());\r\n\r\n\tsetViewerPanel(new FlexTable());\r\n\tgetViewerPanel().setStylePrimaryName(\"Osyl-UnitView-HtmlViewer\");\r\n\r\n\tImage reqLevelIcon = getCurrentRequirementLevelIcon();\r\n\tif (reqLevelIcon != null) {\r\n\t getViewerPanel().addStyleName(\"Osyl-UnitView-LvlReq\");\r\n\t}\r\n\r\n\tgetViewerPanel().setWidget(0, 0, reqLevelIcon);\r\n\tgetViewerPanel().getFlexCellFormatter().setStylePrimaryName(0, 0,\r\n\t\t\"Osyl-UnitView-IconLvlReq\");\r\n\r\n\tint column = 0;\r\n\tif (getView().isContextImportant()) {\r\n\t getViewerPanel().addStyleName(\"Osyl-UnitView-Important\");\r\n\t getViewerPanel().setWidget(0, 1,\r\n\t\t new HTML(getView().getCoMessage(\"MetaInfo.important\")));\r\n\t getViewerPanel().getFlexCellFormatter().setStylePrimaryName(0, 1,\r\n\t\t \"Osyl-UnitView-TextImportant\");\r\n\t column = 1;\r\n\t}\r\n\r\n\tif (getView().isNewAccordingSelectedDate()) {\r\n\t getViewerPanel().addStyleName(\"Osyl-newElement\");\r\n\t}\r\n\r\n\tgetViewerPanel().setWidget(column, 1, getViewer());\r\n\tgetViewerPanel().getFlexCellFormatter().setStylePrimaryName(column, 1,\r\n\t\t\"Osyl-UnitView-Content\");\r\n\tgetMainPanel().add(getViewerPanel());\r\n\r\n }", "title": "" }, { "docid": "cb9dcd817ee4d3e22ea269f55856a032", "score": "0.59091085", "text": "public textoform() {\r\n initComponents();\r\n this.setTitle(title + \"new document]\");\r\n }", "title": "" }, { "docid": "2b591f4e89c1527f4290194b7781d52c", "score": "0.59058034", "text": "JComponent getPanel()\n{\n return doc_region;\n}", "title": "" }, { "docid": "cc8e043d2595e601cd5e6a58a4232030", "score": "0.5900585", "text": "JPanel createPanel();", "title": "" }, { "docid": "f508170f4cbda06faac425c7ac203041", "score": "0.5883329", "text": "private void initEditor() {\r\n\teditorPanel = new VerticalPanel();\r\n\r\n\tHTML l1 =\r\n\t\tnew HTML(getView().getUiMessage(\"clickable_text\")\r\n\t\t\t+ OsylAbstractEditor.MANDATORY_FIELD_INDICATOR);\r\n\teditorPanel.add(l1);\r\n\teditorLabel = new TextBox();\r\n\teditorLabel.setStylePrimaryName(\"Osyl-LabelEditor-TextBox\");\r\n\teditorLabel.addClickHandler(new ResetLabelClickListener(getView()\r\n\t\t.getCoMessage(\"InsertYourDocumentLabelHere\")));\r\n\teditorPanel.add(editorLabel);\r\n\r\n\tLabel l2 = new Label(getView().getUiMessage(\"comment\"));\r\n\teditorPanel.add(l2);\r\n\teditorDesc = new OsylRichTextArea();\r\n\teditorDesc.setHeight(\"80px\");\r\n\teditorDesc.setStylePrimaryName(\"Osyl-UnitView-TextArea\");\r\n\teditorPanel.add(editorDesc);\r\n }", "title": "" }, { "docid": "d23e398c81108d6b1245445cbfaa9c30", "score": "0.58375174", "text": "@Override\n public void delegateCreateFormPages() {\n try {\n // get the file being edited so that it can be passed to the layout editor.\n IFile editedFile = null;\n IEditorInput input = getEditor().getEditorInput();\n if (input instanceof FileEditorInput) {\n FileEditorInput fileInput = (FileEditorInput)input;\n editedFile = fileInput.getFile();\n if (!editedFile.isAccessible()) {\n return;\n }\n } else {\n AdtPlugin.log(IStatus.ERROR,\n \"Input is not of type FileEditorInput: %1$s\", //$NON-NLS-1$\n input.toString());\n }\n\n // It is possible that the Layout Editor already exits if a different version\n // of the same layout is being opened (either through \"open\" action from\n // the user, or through a configuration change in the configuration selector.)\n if (mGraphicalEditor == null) {\n\n // Instantiate GLE v2\n mGraphicalEditor = new GraphicalEditorPart(this);\n\n mGraphicalEditorIndex = getEditor().addPage(mGraphicalEditor,\n getEditor().getEditorInput());\n getEditor().setPageText(mGraphicalEditorIndex, mGraphicalEditor.getTitle());\n\n mGraphicalEditor.openFile(editedFile);\n } else {\n if (mNewFileOnConfigChange) {\n mGraphicalEditor.changeFileOnNewConfig(editedFile);\n mNewFileOnConfigChange = false;\n } else {\n mGraphicalEditor.replaceFile(editedFile);\n }\n }\n } catch (PartInitException e) {\n AdtPlugin.log(e, \"Error creating nested page\"); //$NON-NLS-1$\n }\n }", "title": "" }, { "docid": "7adfd34bbf56842dad4489ee69bc1cfa", "score": "0.58146113", "text": "public abstract void cloneViewer();", "title": "" }, { "docid": "c45a7371f23a7940eb5cb0b18f64139f", "score": "0.57993966", "text": "public Viewer toGUI()\n\t{\n\t\t//return new VanillaViewer(this);\n\t\tViewer dbGui = new BasicDataset.SimpleDatasetViewer();\n\t\tdbGui.setContent(this);\n\t\tViewer instGui = GUI.newSourcedExampleViewer();\n\t\treturn new ZoomedViewer(dbGui,instGui);\n\t}", "title": "" }, { "docid": "bfb3a9226a57691f84533e4412712059", "score": "0.579594", "text": "@Override\n protected final Widget createWidget() {\n view = new IngestionControlPanelWidgetView(hasMargins());\n view.setName(getName());\n view.setDescription(getDescription());\n return view;\n }", "title": "" }, { "docid": "7acbe17959c975edb2616cba09c97236", "score": "0.5754278", "text": "@objid (\"d9d926fa-58bf-4b88-896e-e6bec32332ce\")\n @Override\n public Control createContentArea(final Composite parent) {\n this.browser = new Browser(parent, SWT.BORDER);\n this.browser.setLayoutData(new GridData(GridData.FILL_BOTH));\n this.browser.setMenu(new Menu(this.browser));\n this.browser.setJavascriptEnabled(false);\n \n this.browser.addLocationListener(new LocationAdapter() {\n @Override\n public void changing(LocationEvent event)\n {\n \n String newLocation = event.location;\n try {\n URL url = new URL(newLocation);\n if (url.getQuery() != null) {\n BrowserDialog.this.browser.setUrl(BrowserDialog.this.docUrl);\n }\n } catch (MalformedURLException e) {\n Api.LOG.error(e);\n }\n \n }\n });\n \n this.browser.setUrl(this.docUrl);\n return this.browser;\n }", "title": "" }, { "docid": "15d8a34967ace410901de96976828f22", "score": "0.5747598", "text": "private void initialize() {\n lblQueryName = new JLabel();\n lblQueryName.setBounds(new Rectangle(46, 27, 85, 26));\n lblQueryName.setText(\"Query Name : \");\n lblDescription = new JLabel();\n lblDescription.setBounds(new Rectangle(50, 61, 81, 20));\n lblDescription.setText(\"Description : \");\n lblLastName = new JLabel();\n lblLastName.setBounds(new Rectangle(298, 139, 81, 26));\n lblLastName.setText(\"Last Name : \");\n lblFirstName = new JLabel();\n lblFirstName.setBounds(new Rectangle(55, 139, 76, 26));\n lblFirstName.setText(\"First Name : \");\n document = new FilteredDocument();\n this.setLayout(null);\n this.setSize(new Dimension(584, 239));\n this.add(lblFirstName, null);\n this.add(lblLastName, null);\n this.add(lblDescription, null);\n this.add(lblQueryName, null);\n this.add(getTxtQueryName(), null);\n this.add(getTxtFirstName(), null);\n this.add(getTxtLastName(), null);\n this.add(getBtnSave(), null);\n this.add(getBtnCancel(), null);\n this.add(getDescriptionScrollPane(), null);\n // this.add(document, null);\n \n }", "title": "" }, { "docid": "2c8b019797f67487de3642d73fc26b28", "score": "0.5735315", "text": "public void createView(){\r\n \r\n //Create Main content pane with Border Layout\r\n Container contentPane = getContentPane();\r\n contentPane.setLayout(new BorderLayout());\r\n //\r\n \r\n //Create Panel for West with GridBagLayout\r\n JPanel panelWest = new JPanel();\r\n panelWest.setLayout(new GridBagLayout());\r\n panelWest.setBackground(new Color(200, 200, 200));\r\n contentPane.add(panelWest, BorderLayout.WEST);\r\n \r\n //Set Layout?\r\n //scrollableDesktop.setBackground(new Color(255,255,255));\r\n panelCenter = new DrawingPanel(classes);\r\n // contentPane.add(panelCenter, BorderLayout.CENTER);\r\n scrollPane = new JScrollPane(panelCenter);\r\n \r\n scrollPane.setPreferredSize(new Dimension(200,200));\r\n add(scrollPane, BorderLayout.CENTER);\r\n \r\n //JMenuBar\r\n createMenu();\r\n //\r\n \r\n //Create Buttons on West Panel\r\n createToolButtons(panelWest);\r\n \r\n \r\n //setLayout(new BorderLayout());\r\n setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n setMinimumSize(new Dimension(300, 200));\r\n setVisible(true);\r\n }", "title": "" }, { "docid": "2111c63aad8346f5c152b42de70c48f7", "score": "0.572861", "text": "public void createPartControl(Composite parent) {\r\n\t\tviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL\r\n\t\t\t\t| SWT.V_SCROLL);\r\n\t\tviewer.setContentProvider(new ViewContentProvider());\r\n\t\tviewer.setLabelProvider(new ViewLabelProvider());\r\n\t\tgetSite().setSelectionProvider(viewer);\r\n\t\tgetComponents();\r\n\t\t\r\n\t\tviewer.addDoubleClickListener(new IDoubleClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void doubleClick(DoubleClickEvent event) {\r\n\t\t\t\tFixture fixture = (Fixture) ((IStructuredSelection) viewer.getSelection()).getFirstElement();\r\n\t\t\t\tSupplierFixtureEditor.openSupplierEditor(fixture);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "a6685c33f778fb32bfabb9ee768cec90", "score": "0.5718865", "text": "@Override\r\n\tpublic Viewer create(String name) {\n\t\tif(this.isAllDataPresent())\r\n\t\t{\r\n\t\t\treturn new CurveStructureViewer(name);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "800a4f75e0b13b4529e8812a7999f63c", "score": "0.5706873", "text": "protected FormPanel createImportFields() {\n\t\tfinal FormPanel form = new FormPanel();\n\t\tfinal TextBox url = new TextBox();\n\t\turl.setEnabled(false);\n\t\tform.setEncoding(FormPanel.ENCODING_MULTIPART);\n\t\tFlexTable table = new FlexTable();\n\t\ttable.setCellSpacing(0);\n\t\ttable.setWidth(\"500px\");\n\t\ttable.getColumnFormatter().getElement(0).setPropertyInt(\"width\", 100);\n\t\ttable.getColumnFormatter().getElement(1).setPropertyInt(\"width\", 400);\n\t\ttable.setWidget(0, 0,\n\t\t\t\tnew Label(EuropeanaClientConstants.VOCABULARYNAME));\n\t\tvocabularyName = new TextBox();\n\t\tsetDOMID(vocabularyName, \"vocabularyName\");\n\t\tvocabularyName.setName(\"vocabularyName\");\n\t\ttable.setWidget(0, 1, vocabularyName);\n\t\ttable.setWidget(1, 0, new Label(EuropeanaClientConstants.VOCABULARYURI));\n\t\tvocabularyUri = new TextBox();\n\t\tsetDOMID(vocabularyUri, \"vocabularyURI\");\n\t\tvocabularyUri.setName(\"vocabularyURI\");\n\t\ttable.setWidget(1, 1, vocabularyUri);\n\n\t\t\n\t\tfinal RadioButton radioButton1 = new RadioButton(\"file\", \"Remote File\");\n\t\tradioButton1.ensureDebugId(\"file-remote\");\n\t\tradioButton1.addClickHandler(new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// saveAndUpload.setEnabled(false);\n\t\t\t\turl.setEnabled(true);\n\t\t\t}\n\t\t});\n\t\ttable.setWidget(2, 0, radioButton1);\n\n\t\turl.ensureDebugId(\"url\");\n\t\tsetDOMID(url, \"url\");\n\t\turl.setName(\"url\");\n\t\ttable.setWidget(2, 1, url);\n\n\t\tfinal RadioButton rbUseOther = new RadioButton(\"file\",\n\t\t\t\tEuropeanaClientConstants.VOCUSEOTHER);\n\t\trbUseOther.ensureDebugId(\"file-other\");\n\t\trbUseOther.addClickHandler(new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// saveAndUpload.setEnabled(false);\n\t\t\t\turl.setEnabled(false);\n\t\t\t}\n\t\t});\n\t\ttable.setWidget(3, 0, rbUseOther);\n\t\ttable.setWidget(3, 1, vocList);\n\t\tfinal TextBox selectedVocabulary = new TextBox();\n\t\tselectedVocabulary.setVisible(false);\n\t\tselectedVocabulary.setName(\"selectedVocabulary\");\n\t\tif (vocList.getItemCount() > 0) {\n\t\t\tselectedVocabulary.setText(vocList.getItemText(0));\n\t\t}\n\t\ttable.setWidget(3, 2, selectedVocabulary);\n\t\tvocList.addChangeHandler(new ChangeHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onChange(ChangeEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tselectedVocabulary.setText(vocList.getItemText(vocList\n\t\t\t\t\t\t.getSelectedIndex()));\n\t\t\t}\n\t\t});\n\t\tfinal RadioButton rbImportFromFile = new RadioButton(\"file\",\n\t\t\t\tEuropeanaClientConstants.VOCIMPORTFROM);\n\t\trbImportFromFile.ensureDebugId(\"file-mapping\");\n\t\trbImportFromFile.addClickHandler(new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// saveAndUpload.setEnabled(false);\n\t\t\t\turl.setEnabled(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsaveAndUpload = new FileUpload();\n\t\t// saveAndUpload.setEnabled(false);\n\t\tsaveAndUpload.setEnabled(true);\n\t\tform.add(saveAndUpload);\n\t\tfinal RadioButton radioButton = new RadioButton(\"file\", \"Local File\");\n\t\tradioButton.ensureDebugId(\"file-local\");\n\t\tradioButton.addClickHandler(new ClickHandler() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t// saveAndUpload.setEnabled(true);\n\t\t\t\turl.setEnabled(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\n\t\ttable.setWidget(4, 0, radioButton);\n\n\t\tsaveAndUpload.ensureDebugId(\"local\");\n\t\tsaveAndUpload.setName(\"local\");\n\t\tsetDOMID(saveAndUpload, \"local\");\n\t\tsaveAndUpload.setTitle(EuropeanaClientConstants.VOCSAVEANDUPLOAD);\n\t\t\n\t\ttable.setWidget(5, 0, rbImportFromFile);\n\t\ttable.setWidget(6, 0, saveAndUpload);\n\t\ttable.setWidget(7, 0, new Label(\n\t\t\t\tEuropeanaClientConstants.VOCABULARYRULES));\n\t\tvocabularyRules = new TextBox();\n\t\tsetDOMID(vocabularyRules, \"vocabularyRules\");\n\t\tvocabularyRules.setName(\"vocabularyRules\");\n\t\ttable.setWidget(7, 1, vocabularyRules);\n\t\tButton submit = new Button(EuropeanaClientConstants.VOCSAVEANDUPLOAD);\n\t\tsubmit.addClickHandler(new ClickHandler() {\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tform.submit();\n\t\t\t}\n\t\t});\n\n\t\ttable.setWidget(8, 1, submit);\n\n\t\tform.add(table);\n\t\tform.addSubmitHandler(new SubmitHandler() {\n\t\t\t@Override\n\t\t\tpublic void onSubmit(SubmitEvent event) {\n\n\t\t\t\tif (radioButton.getValue()) {\n\t\t\t\t\tform.setMethod(FormPanel.METHOD_POST);\n\t\t\t\t\tform.setAction(GWT.getHostPageBaseURL()\n\t\t\t\t\t\t\t+ \"EuropeanaIngestionControlPanel/uploadservlet\");\n\t\t\t\t\tWindow.alert(\"Saving, you will be notified when the file is uploaded\");\n\t\t\t\t} else if (radioButton1.getValue()) {\n\t\t\t\t\tform.setMethod(FormPanel.METHOD_GET);\n\t\t\t\t\tform.setAction(GWT.getHostPageBaseURL()\n\t\t\t\t\t\t\t+ \"EuropeanaIngestionControlPanel/remoteuploadservlet\");\n\t\t\t\t\tWindow.alert(\"Downloading remote file, you will be notified when the file is saved\");\n\t\t\t\t} else if (rbUseOther.getValue()) {\n\t\t\t\t\tform.setMethod(FormPanel.METHOD_GET);\n\t\t\t\t\tform.setAction(GWT.getHostPageBaseURL()\n\t\t\t\t\t\t\t+ \"EuropeanaIngestionControlPanel/copymappingservlet\");\n\t\t\t\t\tWindow.alert(\"Copying and saving the mapping specified\");\n\t\t\t\t} else if (rbImportFromFile.getValue()) {\n\t\t\t\t\tform.setMethod(FormPanel.METHOD_POST);\n\t\t\t\t\tform.setAction(GWT.getHostPageBaseURL()\n\t\t\t\t\t\t\t+ \"EuropeanaIngestionControlPanel/handlemappingservlet\");\n\t\t\t\t\tWindow.alert(\"Importing mapping\");\n\t\t\t\t} else {\n\t\t\t\t\tWindow.alert(\"Select a file\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tform.addSubmitCompleteHandler(new SubmitCompleteHandler() {\n\t\t\t@Override\n\t\t\tpublic void onSubmitComplete(SubmitCompleteEvent event) {\n\t\t\t\tif (radioButton.getValue() || radioButton1.getValue()\n\t\t\t\t\t\t) {\n\t\t\t\t\tuploadControlledVocabulary();\n\t\t\t\t}\n fillVocabularyTable();\n\t\t\t}\n\t\t});\n\t\treturn form;\n\t}", "title": "" }, { "docid": "10d17d4d484c79dd6e4d9839141e88b9", "score": "0.5695786", "text": "private void constructPage() {\n\t\tForm<ApproveGeneralLedgerPage> form = new Form<ApproveGeneralLedgerPage>(\"glForm\",\n\t\t\tnew CompoundPropertyModel<ApproveGeneralLedgerPage>(this));\n\t\t// Add the Manage Products container\n\t\tWebMarkupContainer productsContainer = new WebMarkupContainer(\"glContainer\");\n\t\tproductsContainer.add(new FeedbackPanel(\"errorMessages\"));\n\t\tmanageGLDataView(productsContainer);\n\t\tproductsContainer.setOutputMarkupId(true);\n\t\tproductsContainer.setRenderBodyOnly(true);\n\t\tform.add(productsContainer);\n\t\t// Add add Button\n\t\tadd(form);\n\t}", "title": "" }, { "docid": "80cd562c93e7775111f469e6812cf9f1", "score": "0.5695293", "text": "private static void createAndShowGUI()\r\n {\r\n JFrame f = new JFrame(\"Viewer\");\r\n f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n f.getContentPane().setLayout(new BorderLayout());\r\n f.getContentPane().add(\r\n new JLabel(\"<html>\"\r\n + \"Right mouse drags: Translate<br> \"\r\n + \"Left mouse drags: Rotate<br>\"\r\n + \"Mouse wheel: Zoom uniformly<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +shift: zoom along x<br>\"\r\n + \"&nbsp;&nbsp;&nbsp;&nbsp; +ctrl: zoom along y<br>\"\r\n + \"</html>\"),\r\n BorderLayout.NORTH);\r\n \r\n \r\n BackgroundPainter painter = \r\n BackgroundPainters.createVerticalGradient(\r\n Color.LIGHT_GRAY, Color.DARK_GRAY);\r\n \r\n int cellsX = 4;\r\n int cellsY = 4;\r\n GridLayoutPainter gridLayoutPainter = \r\n new GridLayoutPainter(cellsX, cellsY, 0.125, 0.125);\r\n for (int y = 0; y < cellsY; y++)\r\n {\r\n for (int x = 0; x < cellsX; x++)\r\n {\r\n gridLayoutPainter.setDelegate(x, y, painter);\r\n }\r\n }\r\n \r\n Viewer viewer = new Viewer();\r\n viewer.addPainter(gridLayoutPainter);\r\n viewer.setDisplayedWorldArea(-1, -1, 3, 3);\r\n \r\n f.getContentPane().add(viewer, BorderLayout.CENTER);\r\n f.setSize(800,800);\r\n f.setLocationRelativeTo(null);\r\n f.setVisible(true);\r\n }", "title": "" }, { "docid": "8026bdbf4786497df4b43f995c609b09", "score": "0.5678811", "text": "private void createContent( ) {\n // Create the Language selection tools\n Section section = getSection();\n section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n \n FormToolkit toolkit = mPage.getManagedForm().getToolkit();\n \n Composite clientArea = toolkit.createComposite(section);\n clientArea.setLayout(new GridLayout());\n clientArea.setLayoutData(new GridData(GridData.FILL_BOTH));\n createControls( toolkit, clientArea );\n \n toolkit.paintBordersFor( clientArea );\n \n section.setClient( clientArea );\n }", "title": "" }, { "docid": "db05fb5ccdfcf7f842bb3d88a86510f4", "score": "0.5652357", "text": "private JPanel mainPanel(){\n\t\tJPanel panel = new JPanel();\n\t\tlogTextArea.setEditable(false);\n\t\tscrollPaneLog.setPreferredSize(new Dimension(600,500));\n\t\tscrollPaneLog.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPaneLog.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\tpanel.setPreferredSize(new Dimension(800,600));\n\t\tpanel.add(scrollPaneLog);\n\t\treturn panel;\n\t}", "title": "" }, { "docid": "86591e47423527d5d8fc069860960f8c", "score": "0.5641704", "text": "private void setupPanel()\n{\n the_panel = new DocPanel();\n\n JLabel ttl = new JLabel(ref_item.getDigestedName());\n //JLabel ttl = new JLabel(ref_item.getNameHead());\n ttl.setFont(CONTEXT_FONT);\n ttl.setForeground(CONTEXT_COLOR);\n ttl.setBackground(BDOC_TOP_COLOR);\n ttl.addMouseListener(new TitleMouser());\n ttl.setOpaque(true);\n the_panel.setTitleComponent(ttl);\n\n String desc = \"<html>\" + doc_item.getDescription();\n\n desc_view = new DescriptionView(desc);\n the_panel.setDescriptionComponent(desc_view);\n\n DefaultMutableTreeNode root = new DefaultMutableTreeNode();\n for (ItemRelation ir : ItemRelation.values()) {\n List<SubItem> itms = doc_item.getItems(ir);\n if (itms != null) {// get nicer name\n\t DefaultMutableTreeNode relnode = new DefaultMutableTreeNode(ir,true);\n\t root.add(relnode);\n\t for (SubItem itm : itms) {\n\t // really want a tree node that displays the item\n\t MutableTreeNode itmnode = new DefaultMutableTreeNode(itm,false);\n\t relnode.add(itmnode);\n\t }\n }\n }\n\n item_tree = new ItemTree(root);\n item_tree.setRootVisible(false);\n item_tree.setCellRenderer(cell_renderer);\n item_tree.addMouseListener(new ItemMouser());\n item_tree.addTreeExpansionListener(new TreeListener());\n item_tree.setFocusable(true);\n\n the_panel.setItemsComponent(item_tree);\n\n the_panel.addComponentListener(new PanelWidthManager());\n\n BudaCursorManager.setCursor(the_panel,Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n\n the_panel.setBackground(BDOC_TOP_COLOR);\n the_panel.setFocusable(true);\n\n doc_region = new JScrollPane(the_panel);\n}", "title": "" }, { "docid": "4770d742c59e8c37d6814230d1c8389c", "score": "0.5636007", "text": "private void constructPage() {\n\t\tfinal Form<ConsumerViewHelpPage> viewHelpForm = new Form<ConsumerViewHelpPage>(\"formHelp\",\n\t\t\tnew CompoundPropertyModel<ConsumerViewHelpPage>(this));\n\t\tviewHelpForm.add(new FeedbackPanel(\"errorMessages\"));\n\t\tviewHelpForm.add(new TextArea<String>(\"consumerPortalText\"));\n\t\tadd(viewHelpForm);\n\t}", "title": "" }, { "docid": "980cb392c2917207dc6d8f78a1bce2a9", "score": "0.56259745", "text": "private void createControl() {\n GridLayout gridLayout = new GridLayout(2, false);\n gridLayout.horizontalSpacing = HORIZONTAL_SPACING;\n gridLayout.verticalSpacing = 0;\n gridLayout.marginWidth = 0;\n gridLayout.marginHeight = 0;\n setLayout(gridLayout);\n\n // Create the table viewer.\n tableViewer = createTableViewer(this);\n\n // Ensure the table fills the available space.\n tableViewer.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));\n\n // If there is no selection dialog, then addition of items requires\n // table cells to be editable.\n if (selectionDialog == null) {\n\n // Create and set the cell editors for the viewer.\n tableViewer.setCellEditors(createCellEditors());\n\n // Create and set the cell modifier for the viewer. The cell\n // modifier is invoked when cells gain focus.\n tableViewer.setCellModifier(createCellModifier());\n }\n\n // Create and set the content provider.\n tableViewer.setContentProvider(new ListBuilderContentProvider());\n // Create and set the label provider.\n tableViewer.setLabelProvider(createLabelProvider());\n\n // Add a selection listener which enables or disables buttons\n // according to the list selection.\n tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {\n public void selectionChanged(SelectionChangedEvent event) {\n updateButtons();\n }\n });\n addButtonPanel(this);\n }", "title": "" }, { "docid": "0f48055059fe02ab0843dd2010cec263", "score": "0.5620819", "text": "private void addNewDocument(EuclideDoc doc) {\r\n\t\t// add a new menu item\r\n\r\n\t\t// Create action for selecting doc\r\n\t\t// TODO: add a number if same doc is open twice\r\n\t\tString docName = doc.getName(); \r\n\t\tString actionName = \"selectDoc:\" + docName;\r\n\t\tEuclideAction action = new SelectDocumentAction(this, actionName, doc);\r\n\t\tJMenuItem item = new JMenuItem(action);\r\n\t\titem.setText(docName);\r\n\t\t\r\n\t\t// Find the menu item corresponding to document list, \r\n\t\t// and add the created action to it\r\n\t\tEuclideMainFrame frame = getCurrentFrame();\r\n\t\tJMenu docListItem = (JMenu) findDocListItem(frame);\r\n\t\tdocListItem.add(item);\r\n\r\n\t\t\r\n\t\t// create main view, associated with this document\r\n\t\tEuclideDocView view = new EuclideDocView(doc);\r\n\r\n\t\tframe.removeAllViews();\r\n\t\tframe.addView(view);\r\n\t\tframe.setCurrentView(view);\r\n\t\tframe.setCurrentTool(getTool(\"select\"));\r\n\t\tview.repaint();\r\n\t}", "title": "" }, { "docid": "8bbbe734ccd46d504f9fa8fde74696d2", "score": "0.56145847", "text": "public Frame() {\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n filePath = \"DEFAULT\";\n preferences = new Preferences();\n jc = new Vector<ElementView>();\n // Create all actions presented by the menu bar and toolbar\n menuBar = new MainMenuBar(this);\n add(menuBar, BorderLayout.NORTH);\n // Create view\n view = new View(this);\n getContentPane().add(view);\n newFile();\n \n try {\n\t\t\tcreatTempFile(new File(\"./null.svg.tmp\"));\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n // Set an initial view size in case the document size is based on the view\n view.setSize(new Dimension(480, 360));\n\n // Size the view to the document\n view.setPreferredSize(new Dimension((int) document.getWidth().getValue(), (int) document.getHeight().getValue()));\n pack();\n }", "title": "" }, { "docid": "8f86f81ab3cca1550d2d7b467445717b", "score": "0.56072676", "text": "public PanelDirectorAdd() {\n initComponents();\n }", "title": "" }, { "docid": "bc7174d0f385b5523c4a9e07b717b013", "score": "0.5606558", "text": "private static void createAndShowGUI()\n {\n try\n {\n // create and set up window\n frame = new JFrame(\"Admin Setup\");\n adminSetupController = new AdminSetupController(frame);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().add(tabDoc.getRootPanel());\n frame.setPreferredSize(new Dimension(WIDTH,HEIGHT));\n\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n frame.setLocation(dim.width/2 - WIDTH/2, dim.height/2 - HEIGHT/2);\n\n tabDoc.setItemList(adminSetupModel.getItems());\n tabDoc.setTestNameList(adminSetupModel.getTestNames());\n\n // Display the window\n frame.pack();\n frame.setVisible(true);\n }\n catch(Exception ex)\n {\n System.out.println(ex.toString());\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "b1eb97afc8f5febaff546632505e54f8", "score": "0.560509", "text": "private JPanel createPanel() {\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\tJPanel p = new JPanel();\n\t\tcommentsField = new JTextArea(10, 50);\n\t\tcommentsField.setLineWrap(true);\n\t\tcommentsField.setWrapStyleWord(true);\n\t\tJScrollPane scrollP = new JScrollPane(commentsField);\n\n\t\tp.add(scrollP);\n\t\tpanel.add(scrollP, BorderLayout.CENTER);\n\n\t\treturn panel;\n\t}", "title": "" }, { "docid": "102eb006f6134a449e3746a0dbaf7801", "score": "0.5598921", "text": "public void createPartControl(Composite parent) {\n\t\tviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tviewer.setContentProvider(new ViewContentProvider());\n\t\tviewer.setLabelProvider(new ViewLabelProvider());\n\t\tviewer.setSorter(new NameSorter());\n\t\tviewer.setInput(getViewSite());\n\t\tmakeActions();\n\t\thookContextMenu();\n\t\thookDoubleClickAction();\n\t\tcontributeToActionBars();\n\t}", "title": "" }, { "docid": "2aeef33f84e466bb7d60fc687af7d6fa", "score": "0.5598215", "text": "protected void newDocument() {\n\n\t\t// start a new document\n\t\tDOMImplementation domImpl = this.dBuilder.getDOMImplementation();\n\n\t\tfinal DocumentType dtype = domImpl.createDocumentType(\"html\", NavaDocConstants.XHTML_PUBLICID, NavaDocConstants.XHTML_SYSTEMID);\n\t\tthis.dom = domImpl.createDocument(NavaDocConstants.XHTML_NAMESPACE, \"html\", dtype);\n\t\tthis.root = this.dom.getDocumentElement();\n\t}", "title": "" }, { "docid": "141d4f07c9cd1011ae3cb11357d11243", "score": "0.55978394", "text": "public void createPartControl(Composite parent) {\n\t\tviewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tviewer.setContentProvider(new ViewContentProvider());\n\t\tviewer.setLabelProvider(new ViewLabelProvider());\n\t\tviewer.setSorter(new NameSorter());\n\t\tviewer.setInput(getViewSite());\n\n\t\t// Create the help context id for the viewer's control\n\t\tPlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), \"IntentEMFModelPlugin.viewer\");\n\t\tmakeActions();\n\t\thookContextMenu();\n\t\thookDoubleClickAction();\n\t\tcontributeToActionBars();\n\t}", "title": "" }, { "docid": "1f9fc336944dfc6590f41d58d0463d9e", "score": "0.55946314", "text": "private void initMainPanel() {\r\n\tsetMainPanel(new VerticalPanel());\r\n\tgetMainPanel().setStylePrimaryName(\"Osyl-ResProxDocument\");\r\n }", "title": "" }, { "docid": "e967c7ef0f3d8222a0100769904325d0", "score": "0.5587611", "text": "public PanelEmailPreview() {\n initComponents();\n \n HTMLEditorKit kit = new HTMLEditorKit();\n jEditorPane1.setEditorKit(kit);\n Document doc = kit.createDefaultDocument();\n jEditorPane1.setDocument(doc);\n }", "title": "" }, { "docid": "b3d34db117487e6ca54eb693dac2c3fb", "score": "0.5584137", "text": "@Override\n\tpublic void createControl(Composite parent) {\n\t\tviewer.createControl(parent);\n\t\t// configure outline viewer\n\t\tviewer.setEditDomain(getEditDomain());\n\t\tviewer.setEditPartFactory(new SymbolNavigatorEditPartFactory());\n\t\t// configure & add context menu to viewer\n\t\tContextMenuProvider cmProvider = new SNavViewContextMenuProvider(\n\t\t\t\tviewer, getActionRegistry()); \n\t\tviewer.setContextMenu(cmProvider);\n\t\tgetSite().registerContextMenu(\n\t\t\t\tSNavViewContextMenuProvider.MENU_ID,\n\t\t\t\tcmProvider, getSite().getSelectionProvider());\t\t\n\t\t// hook outline viewer\n\t\tselectionSynchronizer.addViewer(viewer);\n\t\t// initialize outline viewer with model\n\t\tviewer.setContents(diagram);\n\t\t// show outline viewer\n\t\t\n\t\tviewer.addSelectionChangedListener(new ISelectionChangedListener() {\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\n\t\t\t\tupdateActions(selectionActions);\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "2c5b594438610e26fcf0758794aa9f60", "score": "0.5575948", "text": "private JPanel create_page(ArrayList<String> labels, String b_label, CustomerActions action){\n\t\tJButton button= new JButton(b_label);\n\t\tbutton.addMouseListener(new ButtonListener(action));\n\t\tInputForm form = new InputForm(labels, button);\n\t\tJPanel holder= new JPanel();\n\t\t//holder.add(form);\n\t\treturn form;\n\t}", "title": "" }, { "docid": "f8b8ab4c51ade6ec0ff8fd254187e54a", "score": "0.55640185", "text": "protected void newDocDialog() {\n\n final Stage dialog = Stage.createStage();\n dialog.setTitle(getString(\"newDocumentDialog.title\"));\n\n final Textbox width = new Textbox(\"800\");\n width.setPrefWidth(100);\n final Textbox height = new Textbox(\"600\");\n height.setPrefWidth(100);\n Callback<ActionEvent> canceled = new Callback<ActionEvent>() {\n public void call(ActionEvent event) {\n dialog.hide();\n }\n };\n\n Callback<ActionEvent> okay = new Callback<ActionEvent>() {\n public void call(ActionEvent event) {\n dialog.hide();\n double dwidth = Double.parseDouble(width.getText());\n double dheight = Double.parseDouble(height.getText());\n SketchDocument doc = new SketchDocument();\n doc.setDocBoundsActive(true);\n doc.setUnits(CanvasDocument.LengthUnits.Pixels);\n doc.setWidth(dwidth);\n doc.setHeight(dheight);\n try {\n newDocCreated(doc);\n } catch (Exception e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n };\n\n\n final PopupMenuButton popup = new PopupMenuButton();\n popup.setModel(ListView.createModel(new String[]{\"800x600\",\"1024x1024\"}));\n Callback<ActionEvent> clicked = new Callback<ActionEvent>() {\n public void call(ActionEvent event) {\n switch(popup.getSelectedIndex()) {\n case 0: width.setText(\"800\"); height.setText(\"600\"); break;\n case 1: width.setText(\"1024\"); height.setText(\"768\"); break;\n }\n }\n };\n popup.onClicked(clicked);\n dialog.setContent(\n new GridBox()\n .setPadding(5)\n .createColumn(70, GridBox.Align.Right)\n .createColumn(100, GridBox.Align.Left)\n .addControl(new Label(getString(\"newDocumentDialog.preset\")))\n .addControl(popup)\n .nextRow()\n .addControl(new Label(getString(\"newDocumentDialog.width\") +\" (px):\"))\n .addControl(width)\n .nextRow()\n .addControl(new Label(getString(\"newDocumentDialog.height\")+\" (px):\"))\n .addControl(height)\n .nextRow()\n .addControl(new Button(getString(\"dialog.cancel\")).onClicked(canceled))\n .addControl(new Button(getString(\"dialog.okay\")).onClicked(okay))\n );\n dialog.setWidth(300);\n dialog.setHeight(200);\n dialog.centerOnScreen();\n }", "title": "" }, { "docid": "09bf77c2b1d639e44522538861dd9746", "score": "0.5559147", "text": "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\turl = \"http://localhost:port/imogenedemo\".replace(\"port\", System.getProperty(\"jetty.port\"));\n\n\t\tScrolledForm form = toolkit.createScrolledForm(parent);\n\t\tform.setText(Messages.dashboard_form_title);\n\t\tTableWrapLayout layout = new TableWrapLayout();\n\t\tlayout.topMargin = 0;\n\t\tlayout.bottomMargin = 0;\n\t\tlayout.leftMargin = 0;\n\t\tlayout.rightMargin = 0;\n\t\tlayout.horizontalSpacing = 20;\n\t\tlayout.verticalSpacing = 17;\n\t\tlayout.makeColumnsEqualWidth = false;\n\t\tlayout.numColumns = 1;\n\n\t\tform.getBody().setLayout(layout);\n\n\t\tSection launchSection = toolkit.createSection(form.getBody(), Section.TWISTIE | Section.TITLE_BAR);\n\t\tlaunchSection.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));\n\t\tlaunchSection.setText(Messages.dashboard_launch_title);\n\t\tlaunchSection.setExpanded(true);\n\n\t\tFormText launchText = toolkit.createFormText(launchSection, false);\n\t\tlaunchText.setText(Messages.bind(Messages.dashboard_launch_description, url), true, true);\n\t\tlaunchText.addHyperlinkListener(this);\n\n\t\tlaunchSection.setClient(launchText);\n\n\t\tSection syncSection = toolkit.createSection(form.getBody(), Section.TWISTIE | Section.TITLE_BAR);\n\t\tsyncSection.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));\n\t\tsyncSection.setText(Messages.dashboard_sync_title);\n\t\tsyncSection.setExpanded(true);\n\n\t\tsyncText = toolkit.createFormText(syncSection, false);\n\t\tsyncText.addHyperlinkListener(this);\n\n\t\tsyncSection.setClient(syncText);\n\n\t\tupdate();\n\t\tSyncActivator.getDefault().getPreferenceStore().addPropertyChangeListener(this);\n\t}", "title": "" }, { "docid": "dcc81169eb27f320324911f27f90fa54", "score": "0.5552802", "text": "protected ScrollPanel createUploadedVocabularies() {\n\t\tScrollPanel scroll = new ScrollPanel();\n\t\tProvidesKey<ControlledVocabularyDTO> key = new ProvidesKey<ControlledVocabularyDTO>() {\n\n\t\t\t@Override\n\t\t\tpublic Object getKey(ControlledVocabularyDTO arg0) {\n\t\t\t\treturn arg0.getName();\n\t\t\t}\n\t\t};\n\t\tvocabularyTable = new CellTable<ControlledVocabularyDTO>(key);\n\n\t\tTextColumn<ControlledVocabularyDTO> nameColumn = new TextColumn<ControlledVocabularyDTO>() {\n\n\t\t\t@Override\n\t\t\tpublic String getValue(ControlledVocabularyDTO arg0) {\n\t\t\t\treturn arg0.getName();\n\t\t\t}\n\t\t};\n\t\tTextColumn<ControlledVocabularyDTO> urlColumn = new TextColumn<ControlledVocabularyDTO>() {\n\n\t\t\t@Override\n\t\t\tpublic String getValue(ControlledVocabularyDTO arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn arg0.getUri();\n\t\t\t}\n\t\t};\n\n\t\tTextColumn<ControlledVocabularyDTO> iterationsColumn = new TextColumn<ControlledVocabularyDTO>() {\n\n\t\t\t@Override\n\t\t\tpublic String getValue(ControlledVocabularyDTO arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn Integer.toString(arg0.getIterations());\n\t\t\t}\n\t\t};\n\n\t\tTextColumn<ControlledVocabularyDTO> rulesColumn = new TextColumn<ControlledVocabularyDTO>() {\n\n\t\t\t@Override\n\t\t\tpublic String getValue(ControlledVocabularyDTO arg0) {\n\t\t\t\tString rules = \"\";\n\t\t\t\tint i = 1;\n\t\t\t\tfor (String rule : arg0.getRules()) {\n\t\t\t\t\trules = rules + rule;\n\t\t\t\t\tif (i < arg0.getRules().length) {\n\t\t\t\t\t\trules = rules + \", \";\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t}\n\n\t\t\t\treturn rules;\n\t\t\t}\n\t\t};\n\n\t\tvocabularyTable.addColumn(nameColumn, \"Name\");\n\t\tvocabularyTable.addColumn(urlColumn, \"URL\");\n\t\tvocabularyTable.addColumn(rulesColumn, \"Rules\");\n\t\tvocabularyTable.addColumn(iterationsColumn, \"Iterations\");\n\t\tfinal SelectionModel<ControlledVocabularyDTO> selectionModel = new SingleSelectionModel<ControlledVocabularyDTO>();\n\t\tvocabularyTable.setSelectionModel(selectionModel);\n\t\tselectionModel\n\t\t\t\t.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSelectionChange(SelectionChangeEvent event) {\n\t\t\t\t\t\tvocabulary = ((SingleSelectionModel<ControlledVocabularyDTO>) selectionModel)\n\t\t\t\t\t\t\t\t.getSelectedObject();\n\t\t\t\t\t\tvocabularyName.setText(vocabulary.getName());\n\t\t\t\t\t\tvocabularyUri.setText(vocabulary.getUri());\n\t\t\t\t\t\tString rules = \"\";\n\t\t\t\t\t\tfor(String rule: vocabulary.getRules()){\n\t\t\t\t\t\t\trules += rule +\" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvocabularyRules.setText(rules.trim());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tscroll.add(vocabularyTable);\n\t\tfillVocabularyTable();\n\t\treturn scroll;\n\t}", "title": "" }, { "docid": "b1db852dc1b385303e81823cb03e8870", "score": "0.5551689", "text": "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setEnabled(false);\n\t\tframe.setBounds(0, 0, 1366, 768);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tImage docs=new ImageIcon(this.getClass().getResource(\"/docsicon.png\")).getImage();\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnDocs = new JButton(\"\");\n\t\tbtnDocs.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDocs.main(new String[] {});\n\t\t\t}\n\t\t});\n\t\tbtnDocs.setBounds(1307, 111, 41, 43);\n\t\tbtnDocs.setIcon(new ImageIcon(docs));\n\t\tframe.getContentPane().add(btnDocs);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setEnabled(true);\n\t\tscrollPane.setBounds(24, 160, 446, 488);\n\t\tscrollPane.setViewportBorder(UIManager.getBorder(\"TextArea.border\"));\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tframe.getContentPane().add(scrollPane);\n\t\t\n\t\tJTextArea txtrText = new JTextArea();\n\t\ttxtrText.setBackground(Color.BLACK);\n\t\ttxtrText.setForeground(Color.WHITE);\n\t\ttxtrText.setFont(new Font(\"Calibri\", Font.PLAIN, 13));\n\t\ttxtrText.setEditable(false);\n\t\tscrollPane.setViewportView(txtrText);\n\t\t\n\t\tJButton btnShowData = new JButton(\"Show Data\");\n\t\tbtnShowData.setBounds(361, 111, 109, 38);\n\t\tbtnShowData.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tMongoCollection<Document> coll=Mongo.showdata(txtDatabase.getText().toString(), txtCollections.getText().toString(), txtDatabase, txtCollections);\n\t\t\t\tMongoIterable<Document> mi=coll.find(new Document());\n\t\t\t\tMongoCursor<Document> cur=mi.iterator();\n\t\t\t\t\n\t\t\t\ttxtrText.setText(\"\");\n\t\t\t\twhile(cur.hasNext()) {\n\t\t\t\t\ttxtrText.append(cur.next()+\"\\n\");\n\t\t\t\t}\n\t\t\t\ttxtDatabase.setText(\"Enter Database Name\");\n\t\t\t\ttxtCollections.setText(\"Enter Collection Name\");\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnShowData);\n\t\t\n\t\ttxtCollections = new JTextField();\n\t\ttxtCollections.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\ttxtCollections.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtCollections.setBounds(191, 111, 160, 38);\n\t\ttxtCollections.setText(\"Enter Collection Name\");\n\t\tframe.getContentPane().add(txtCollections);\n\t\ttxtCollections.setColumns(10);\n\t\t\n\t\ttxtDatabase = new JTextField();\n\t\ttxtDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\ttxtDatabase.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtDatabase.setBounds(24, 111, 157, 38);\n\t\ttxtDatabase.setText(\"Enter Database Name\");\n\t\tframe.getContentPane().add(txtDatabase);\n\t\ttxtDatabase.setColumns(10);\n\t\t\n\t\tJButton btnListOfAll = new JButton(\"List Of All Databases\");\n\t\tbtnListOfAll.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\ttxtrText.setText(\"\");\n\t\t\t\t\n\t\t\t\tMongoIterable<String> strings=Mongo.listdatabase();\n\t\t\t\tMongoCursor<String> iterator=strings.iterator();\n\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t txtrText.append(\"Database: \"+iterator.next().toString()+\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnListOfAll.setBounds(513, 157, 366, 38);\n\t\tframe.getContentPane().add(btnListOfAll);\n\t\t\n\t\tJLabel lblAdminFunctions = new JLabel(\"Admin Functions\");\n\t\tlblAdminFunctions.setBounds(513, 111, 366, 43);\n\t\tlblAdminFunctions.setForeground(SystemColor.desktop);\n\t\tlblAdminFunctions.setFont(new Font(\"Calibri\", Font.BOLD, 40));\n\t\tlblAdminFunctions.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tframe.getContentPane().add(lblAdminFunctions);\n\t\t\n\t\tJLabel lblOtherFunctions = new JLabel(\"Other Functions\");\n\t\tlblOtherFunctions.setBounds(931, 111, 366, 43);\n\t\tlblOtherFunctions.setForeground(SystemColor.desktop);\n\t\tlblOtherFunctions.setFont(new Font(\"Calibri\", Font.BOLD, 40));\n\t\tlblOtherFunctions.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tframe.getContentPane().add(lblOtherFunctions);\n\t\t\n\t\tJButton btnListOfAll_1 = new JButton(\"Collection list\");\n\t\tbtnListOfAll_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tMongoIterable<String> collection=Mongo.listcollection(txtDatabasename.getText(), txtDatabasename);\n\t\t\t\tMongoCursor<String> cur=collection.iterator();\n\t\t\t\ttxtrText.setText(\"\");\n\t\t\t\t\n\t\t\t\tif(cur.hasNext()==false)\n\t\t\t\t\ttxtrText.setText(\"No collection to display\");\n\t\t\t\t\n\t\t\t\twhile(cur.hasNext()) {\n\t\t\t\t\ttxtrText.append(cur.next()+\"\\n\");\n\t\t\t\t}\t\t\t\t\n\t\t\t\ttxtDatabasename.setText(\"Database Name\");\n\t\t\t}\n\t\t});\n\t\tbtnListOfAll_1.setBounds(738, 255, 141, 38);\n\t\tframe.getContentPane().add(btnListOfAll_1);\n\t\t\n\t\tJButton btnMaximumClosingPrice = new JButton(\"Maximum Closing Price \");\n\t\tbtnMaximumClosingPrice.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tMongoCollection<Document> coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections );\t\t\t\t\t\n\t\t FindIterable<Document> cursor=coll.find().sort((Bson) new BasicDBObject(\"Close\", 1)).limit(1);\n\t\t txtrText.setText(cursor.iterator().next().toString());\n\t\t txtDatabaseName.setText(\"Databse Name\");\n\t\t txtCollectionName.setText(\"Collection Name\");\n\t\t \n\t\t\t}\n\t\t});\n\t\tbtnMaximumClosingPrice.setBounds(931, 206, 366, 38);\n\t\tframe.getContentPane().add(btnMaximumClosingPrice);\n\t\t\n\t\tJButton MaximumOpeningPrice = new JButton(\"Maximum Opening Price \");\n\t\tMaximumOpeningPrice.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tMongoCollection<Document> coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections );\t\t\t\t\t\n\t\t FindIterable<Document> cursor=coll.find().sort((Bson) new BasicDBObject(\"Open\", 1)).limit(1);\n\t\t txtrText.setText(cursor.iterator().next().toString());\n\t\t txtDatabaseName.setText(\"Databse Name\");\n\t\t txtCollectionName.setText(\"Collection Name\");\n\t\t\t}\n\t\t});\n\t\tMaximumOpeningPrice.setBounds(931, 255, 366, 38);\n\t\tframe.getContentPane().add(MaximumOpeningPrice);\n\t\t\n\t\tJButton btnMinimumClosingPrice = new JButton(\"Minimum Closing Price \");\n\t\tbtnMinimumClosingPrice.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tMongoCollection<Document> coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections);\t\t\t\t\t\n\t\t FindIterable<Document> cursor=coll.find().sort((Bson) new BasicDBObject(\"Close\", -1)).limit(1);\n\t\t txtrText.setText(cursor.iterator().next().toString());\n\t\t txtDatabaseName.setText(\"Databse Name\");\n\t\t txtCollectionName.setText(\"Collection Name\");\n\t\t\t}\n\t\t});\n\t\tbtnMinimumClosingPrice.setBounds(931, 304, 366, 38);\n\t\tframe.getContentPane().add(btnMinimumClosingPrice);\n\t\t\n\t\tJButton btnMinimumOpeningPrice = new JButton(\"Minimum Opening Price \");\n\t\tbtnMinimumOpeningPrice.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tMongoCollection<Document> coll=Mongo.showdata(txtDatabaseName.getText().toString(), txtCollectionName.getText().toString(), txtDatabase, txtCollections );\t\t\t\t\t\n\t\t FindIterable<Document> cursor=coll.find().sort((Bson) new BasicDBObject(\"Open\", -1)).limit(1);\n\t\t txtrText.setText(cursor.iterator().next().toString());\t\t\n\t\t txtDatabaseName.setText(\"Databse Name\");\n\t\t txtCollectionName.setText(\"Collection Name\");\n\t\t\t}\n\t\t});\n\t\tbtnMinimumOpeningPrice.setBounds(931, 353, 366, 38);\n\t\tframe.getContentPane().add(btnMinimumOpeningPrice);\n\t\t\n\t\tJButton btnListOfAll_2 = new JButton(\"List Of All Users And Passwords\");\n\t\tbtnListOfAll_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tResultSet rs=Sqliteconnect.showtable();\n\t\t\t\t\n\t\t\t\t\ttxtrText.setText(\"\");\n\t\t\t\t\t while (rs.next()) {\n\t\t\t\t\t\t int no=rs.getInt(\"Serial\");\n\t\t\t\t\t\t String user=rs.getString(\"Username\");\n\t\t\t\t\t\t String pass=rs.getString(\"Password\");\n\t\t\t\t\t\t String admin=rs.getString(\"Admin\");\n\t\t\t\t\t\t \n\t\t\t\t\t\t txtrText.append(\"S.NO: \"+no+\" Username: \"+user+\" Password: \"+pass+\" Admin Rights: \"+admin+\"\\n\");\n\t\t\t\t\t }\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\tbtnListOfAll_2.setBounds(513, 206, 366, 38);\n\t\tframe.getContentPane().add(btnListOfAll_2);\n\t\t\n\t\tJButton btnLogout = new JButton(\"Logout\");\n\t\tbtnLogout.setBounds(24, 659, 446, 38);\n\t\tbtnLogout.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t//Mongo.mongoClient.close();\n\t\t\t\tframe.dispose();\n\t\t\t\tMember_Login.main(new String[] {});\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnLogout);\n\t\t\n\t\ttxtNewUsername = new JTextField();\n\t\ttxtNewUsername.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtNewUsername.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtNewUsername.setBounds(642, 573, 172, 38);\n\t\ttxtNewUsername.setText(\"New Username\");\n\t\tframe.getContentPane().add(txtNewUsername);\n\t\ttxtNewUsername.setColumns(10);\n\t\t\n\t\tpwdNewPassword = new JPasswordField();\n\t\tpwdNewPassword.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tpwdNewPassword.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tpwdNewPassword.setBounds(824, 574, 172, 36);\n\t\tpwdNewPassword.setText(\"New Password\");\n\t\tframe.getContentPane().add(pwdNewPassword);\n\t\t\n\t\ttxtYesOrLeave = new JTextField();\n\t\ttxtYesOrLeave.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtYesOrLeave.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtYesOrLeave.setBounds(1006, 574, 172, 36);\n\t\ttxtYesOrLeave.setText(\"Admin Rights: yes or null\");\n\t\tframe.getContentPane().add(txtYesOrLeave);\n\t\ttxtYesOrLeave.setColumns(10);\n\t\t\n\t\tJButton btnAdd = new JButton(\"Add User\");\n\t\tbtnAdd.setBounds(1188, 574, 109, 38);\n\t\tbtnAdd.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString Admin;\n\t\t\t\tif(txtYesOrLeave.getText().equals(\"YES\") || txtYesOrLeave.getText().equals(\"yes\"))\n\t\t\t\t\tAdmin=\"YES\";\n\t\t\t\telse\n\t\t\t\t\tAdmin=\"null\";\n\t\t\t\t\n\t\t\t\tboolean i=Sqliteconnect.save(txtNewUsername.getText(), String.valueOf(pwdNewPassword.getPassword()), Integer.valueOf(txtSerial.getText()), Admin);\n\t\t\t\t\n\t\t\t\tif(i==true)\n\t\t\t\t\ttxtrText.setText(\"New User Entry Saved\");\n\t\t\t\telse\n\t\t\t\t\ttxtrText.setText(\"Error: Something wrong in Serial/Username/Passwors/AdminRights\");\n\t\t\t\t\n\t\t\t\ttxtNewUsername.setText(\"New Username\");\n\t\t\t\tpwdNewPassword.setText(\"New Password\");\n\t\t\t\ttxtSerial.setText(\"Serial\");\n\t\t\t\ttxtYesOrLeave.setText(\"Admin Rights: yes or null\");\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnAdd);\n\t\t\n\t\ttxtUsername = new JTextField();\n\t\ttxtUsername.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtUsername.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtUsername.setBounds(513, 306, 215, 38);\n\t\ttxtUsername.setText(\"Existing Username\");\n\t\tframe.getContentPane().add(txtUsername);\n\t\ttxtUsername.setColumns(10);\n\t\t\n\t\tJButton btnDeleteUser = new JButton(\"Delete User\");\n\t\tbtnDeleteUser.setBounds(738, 306, 141, 38);\n\t\tbtnDeleteUser.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tboolean i=Sqliteconnect.delete(txtUsername.getText());\n\t\t\t\ttxtrText.setText(\"Existing Username\");\n\t\t\t\t\n\t\t\t\tif(i==true)\n\t\t\t\t\ttxtrText.setText(\"Username and Password deleted Successfully\");\n\t\t\t\telse\n\t\t\t\t\ttxtrText.setText(\"Username and Password doesn't exist\");\n\t\t\t\t\n\t\t\t\ttxtUsername.setText(\"Existing Username\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tframe.getContentPane().add(btnDeleteUser);\n\t\t\n\t\ttxtSerial = new JTextField();\n\t\ttxtSerial.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtSerial.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtSerial.setText(\"Serial\");\n\t\ttxtSerial.setBounds(513, 574, 119, 37);\n\t\tframe.getContentPane().add(txtSerial);\n\t\ttxtSerial.setColumns(10);\n\t\t\n\t\ttxtDatabasename = new JTextField();\n\t\ttxtDatabasename.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtDatabasename.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtDatabasename.setText(\"Database Name\");\n\t\ttxtDatabasename.setBounds(513, 255, 215, 38);\n\t\tframe.getContentPane().add(txtDatabasename);\n\t\ttxtDatabasename.setColumns(10);\n\t\t\n\t\ttxtExistingUsername = new JTextField();\n\t\ttxtExistingUsername.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtExistingUsername.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtExistingUsername.setText(\"Existing Username\");\n\t\ttxtExistingUsername.setBounds(513, 357, 215, 38);\n\t\tframe.getContentPane().add(txtExistingUsername);\n\t\ttxtExistingUsername.setColumns(10);\n\t\t\n\t\tJButton btnChangePassword = new JButton(\"Check Password\");\n\t\tbtnChangePassword.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tboolean status=Sqliteconnect.showpass(txtExistingUsername.getText(), txtrText );\n\t\t\t\ttxtExistingUsername.setText(\"Existing Username\");\n\t\t\t\t\n\t\t\t\tif(status==false)\n\t\t\t\t\ttxtrText.setText(\"Username does not exist\");\n\t\t\t}\n\t\t});\n\t\tbtnChangePassword.setBounds(738, 357, 141, 38);\n\t\tframe.getContentPane().add(btnChangePassword);\n\t\t\n\t\tpwdNewPassword_1 = new JPasswordField();\n\t\tpwdNewPassword_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tpwdNewPassword_1.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tpwdNewPassword_1.setText(\"New Password\");\n\t\tpwdNewPassword_1.setBounds(850, 658, 328, 39);\n\t\tframe.getContentPane().add(pwdNewPassword_1);\n\t\t\n\t\tJButton btnChange = new JButton(\"Change\");\n\t\tbtnChange.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tboolean status=Sqliteconnect.changepassfrominside(txtUsername_1.getText().toString(), String.valueOf(pwdNewPassword_1.getPassword()) );\n\t\t\t\t\n\t\t\t\tif(status==true)\n\t\t\t\t\ttxtrText.setText(\"Password changed successfully\");\n\t\t\t\telse\n\t\t\t\t\ttxtrText.setText(\"Username does not exist\");\n\t\t\t\t\n\t\t\t\ttxtUsername_1.setText(\"Existing Username\");\n\t\t\t\tpwdNewPassword_1.setText(\"New Password\");\n\t\t\t}\n\t\t});\n\t\tbtnChange.setBounds(1188, 660, 109, 37);\n\t\tframe.getContentPane().add(btnChange);\n\t\t\n\t\ttxtUsername_1 = new JTextField();\n\t\ttxtUsername_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtUsername_1.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtUsername_1.setText(\"Existing Username\");\n\t\ttxtUsername_1.setBounds(513, 659, 327, 38);\n\t\tframe.getContentPane().add(txtUsername_1);\n\t\ttxtUsername_1.setColumns(10);\n\t\t\n\t\tJLabel lblAddNewUser = new JLabel(\"Add New User\");\n\t\tlblAddNewUser.setForeground(SystemColor.desktop);\n\t\tlblAddNewUser.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblAddNewUser.setFont(new Font(\"Calibri\", Font.BOLD, 28));\n\t\tlblAddNewUser.setBounds(513, 536, 665, 43);\n\t\tframe.getContentPane().add(lblAddNewUser);\n\t\t\n\t\tJLabel lblChangePasswordOf = new JLabel(\"Change Password Of Existing User\");\n\t\tlblChangePasswordOf.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblChangePasswordOf.setForeground(SystemColor.desktop);\n\t\tlblChangePasswordOf.setFont(new Font(\"Calibri\", Font.BOLD, 28));\n\t\tlblChangePasswordOf.setBounds(513, 618, 665, 43);\n\t\tframe.getContentPane().add(lblChangePasswordOf);\n\t\t\n\t\ttxtNameOfCollection = new JTextField();\n\t\ttxtNameOfCollection.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtNameOfCollection.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtNameOfCollection.setText(\"Name Of Collection\");\n\t\ttxtNameOfCollection.setBounds(850, 487, 328, 38);\n\t\tframe.getContentPane().add(txtNameOfCollection);\n\t\ttxtNameOfCollection.setColumns(10);\n\t\t\n\t\ttxtNameOfDatabase = new JTextField();\n\t\ttxtNameOfDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtNameOfDatabase.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtNameOfDatabase.setText(\"Name Of Database\");\n\t\ttxtNameOfDatabase.setBounds(513, 487, 327, 38);\n\t\tframe.getContentPane().add(txtNameOfDatabase);\n\t\ttxtNameOfDatabase.setColumns(10);\n\t\t\n\t\tJButton btnCount = new JButton(\"Count\");\n\t\tbtnCount.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tMongoCollection<Document> coll=Mongo.showdata(txtNameOfDatabase.getText().toString(), txtNameOfCollection.getText().toString(), txtDatabase, txtCollections);\n\t\t\t\tlong count=coll.count();\n\n\t\t\t\ttxtrText.setText(\"Database: \"+txtNameOfDatabase.getText().toString()+\"\\n\"+\"Collection: \"+txtNameOfCollection.getText().toString()+\"\\n\"+\"Total No of Documents: \"+count);\n\t\t\t\ttxtNameOfDatabase.setText(\"Name Of Database\");\n\t\t\t\ttxtNameOfCollection.setText(\"Name Of Collection\");\n\t\t\t}\n\t\t});\n\t\tbtnCount.setBounds(1188, 487, 109, 38);\n\t\tframe.getContentPane().add(btnCount);\n\t\t\n\t\tJLabel lblCountNoOf = new JLabel(\"Count No Of Documents In Collection\");\n\t\tlblCountNoOf.setForeground(SystemColor.desktop);\n\t\tlblCountNoOf.setFont(new Font(\"Calibri\", Font.BOLD, 28));\n\t\tlblCountNoOf.setBounds(513, 449, 493, 38);\n\t\tframe.getContentPane().add(lblCountNoOf);\n\t\t\n\t\ttxtDatabaseName = new JTextField();\n\t\ttxtDatabaseName.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\ttxtDatabaseName.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtDatabaseName.setText(\"Database Name\");\n\t\ttxtDatabaseName.setBounds(931, 157, 172, 38);\n\t\tframe.getContentPane().add(txtDatabaseName);\n\t\ttxtDatabaseName.setColumns(10);\n\t\t\n\t\ttxtCollectionName = new JTextField();\n\t\ttxtCollectionName.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\ttxtCollectionName.setText(\"\");\n\t\t\t}\n\t\t});\n\t\ttxtCollectionName.setText(\"Collection Name\");\n\t\ttxtCollectionName.setBounds(1125, 156, 172, 38);\n\t\tframe.getContentPane().add(txtCollectionName);\n\t\ttxtCollectionName.setColumns(10);\n\t\t\n\t\tImage icon=new ImageIcon(this.getClass().getResource(\"/icon.png\")).getImage();\n\t\tImage background=new ImageIcon(this.getClass().getResource(\"/back2.png\")).getImage();\n\t\t\n\t\tframe.setIconImage(icon);\n\t\t\n\t\tJLabel label = new JLabel(\"Mongo Stock DB\");\n\t\tlabel.setForeground(new Color(30, 144, 255));\n\t\tlabel.setFont(new Font(\"Verdana\", Font.BOLD, 40));\n\t\tlabel.setBounds(924, 0, 373, 70);\n\t\tframe.getContentPane().add(label);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"\");\n\t\tlblNewLabel.setBounds(0, 0, 1366, 768);\n\t\tlblNewLabel.setIcon(new ImageIcon(background));\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t}", "title": "" }, { "docid": "bc8acbf6ec08474d5c795467913f2d3a", "score": "0.55497944", "text": "private void dataNew() {\n\n\t\tthis.setFileNew(true);\t\n\t\tthis.setFileDir(\"\");\n\t\t// create internal frame\n\t\tJInternalFrame frame = new JInternalFrame(\"\", true, true, true, true);\n\t\t\n\t\tSpecialTextArea specialArea = new SpecialTextArea(); // create new panel\n\t\teditorPane.add(specialArea);\n\t\t\n\t\t// add or set elements in Map put method key and value pair\n\t\tfileInfoMap.put(new Integer(COUNTER), fileDir);\n\t\t\n\t\t//editorPane.setParamText(\"\"); // Use TextComponent\n\t\tframe.add(editorPane.get(COUNTER), BorderLayout.CENTER); // add panel\n\n\t\tframe.pack(); // set internal frame to size of contents\n\t\ttheDesktop = new JDesktopPane();\n\n\t\ttheDesktop.add(frame, BorderLayout.CENTER); // attach internal frame\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\n\t\tframe.setSize(screenSize.width - 20, screenSize.height - 130);\n\t\tframe.setVisible(true); // show internal frame\t\t\n\t\t\n\t\tsetTabName(\"new \" + COUNTER);\n\t\ttabbedPane.addTab(getTabName(), theDesktop);\n\t\tint count = tabbedPane.getTabCount();\n\t\ttabbedPane.setSelectedIndex(count - 1);\t\t\n\t\t\n\t\tmainPanel.add(tabbedPane);\t\t\n\n\t\tCOUNTER++;\t\n\t\t\n\t\tthis.setFileOpen(false);\n\n\t}", "title": "" }, { "docid": "7d4a355342d567e5c65a1dbbd3d68435", "score": "0.5549036", "text": "public FormAdministrador() {\n initComponents();\n this.setSize(Toolkit.getDefaultToolkit().getScreenSize());\n paneles.add(new PanelPedidosNuevo().getContentPane(), \"Nuevo Pedido\");\n paneles.add(new PanelPedidos(), \"Modificar Pedidos\");\n paneles.add(new PanelProductos(),\"Productos\");\n paneles.add(new PanelClientes(),\"Clientes\");\n paneles.add(new PanelEmpleados(),\"Empleados\");\n \n \n \n }", "title": "" }, { "docid": "d9b06fd4f0f8fb69121d2f1925478f65", "score": "0.55479354", "text": "private void createButtonPanel(){\r\n //creiamo il pannello\r\n buttonPanel = new JPanel();\r\n\r\n //creiamo il bottone \"Elimina\" che al click rimuove una riparazione\r\n delete = ButtonFactory.createButton(SettingName.GUIDELETE, e -> {\r\n model.delete(repair.getID());\r\n frame.dispose();\r\n });\r\n\r\n /*\r\n creiamo il bottone \"Applica\" che è abilitato/disabilitato in base al valore della checkbox.\r\n Al click crea una nuova riparazionee i cui parametri sono i valori\r\n correnti delle texfield, e aggiorniamo la riparazione corrente con una nuova\r\n */\r\n update = ButtonFactory.createButton(SettingName.GUIUPDATE, e -> {\r\n RepairBuilder builder = new RepairBuilder();\r\n builder.addCustomer(comboBox.getItemAt(comboBox.getSelectedIndex()).getCustomer());\r\n builder.addCode(code.getText());\r\n builder.addNumber(number.getText());\r\n builder.addPickUpDate(pickupdate.getJFormattedTextField().getText());\r\n builder.addBrand(brand.getText());\r\n builder.addModel(txtmodel.getText());\r\n builder.addSerialNumber(serialnumber.getText());\r\n builder.addPurchuaseDate(purchasedate.getJFormattedTextField().getText());\r\n builder.addBrake(brake.getText());\r\n builder.addNote(note.getText());\r\n try {\r\n builder.addPrice(Double.parseDouble(price.getText()));\r\n }catch (NumberFormatException ex){\r\n builder.addPrice(0);\r\n }\r\n builder.addPreventive(preventive.isSelected());\r\n\r\n model.update(repair.getID(), builder.getResult());\r\n frame.dispose();\r\n });\r\n update.setEnabled(isEditable);\r\n\r\n //creiamo la checkbox che abilita/disabilita la modifica\r\n edit = new JCheckBox(SettingName.GUIEDIT, isEditable);\r\n edit.addActionListener(e -> {\r\n JCheckBox cb = (JCheckBox) e.getSource();\r\n isEditable = cb.isSelected();\r\n areTextFiledsEnabled(isEditable);\r\n update.setEnabled(isEditable);\r\n });\r\n\r\n //creiamo il bottone per scaricare il contratto di riparazione\r\n downloadpdf = ButtonFactory.createButton(SettingName.GUIDOWNLOAD, e -> {\r\n FilePicker picker = new FilePicker();\r\n picker.setMode(\"save\");\r\n if(picker.getPath() != null){\r\n String namePDF = \"riparazione#\";\r\n if(repair.get(SettingName.REPAIRNUMBER).equals(\"\")){\r\n namePDF += (\"0\");\r\n }else{\r\n try{\r\n namePDF += (repair.get(SettingName.REPAIRNUMBER).substring(0,3));\r\n }catch (StringIndexOutOfBoundsException ex){\r\n UserLogManager.notify(SettingName.LOGERROR, \"Numero di riparazione non nel formato XXX/ANNO\");\r\n }\r\n }\r\n new PDFGenerate(picker.getPath()+\"\\\\\"+namePDF+\".pdf\",SettingName.PDFPATH, repair);\r\n }\r\n });\r\n\r\n //aggiungiamo i bottoni al pannello\r\n buttonPanel.add(downloadpdf);\r\n buttonPanel.add(delete);\r\n buttonPanel.add(update);\r\n buttonPanel.add(edit);\r\n\r\n //aggiungiamo il pannello dei bottoni a quello principale\r\n mainPanel.add(buttonPanel, BorderLayout.SOUTH);\r\n }", "title": "" }, { "docid": "503362ba6151979d94eec10feefb0058", "score": "0.55426407", "text": "private Widget buildPanel(int width,int height,LocalDto dto) {\r\n\t\tcontroler = new AssociationEditControler();\r\n\t\tcontroler.getModel().addObserver(this);\r\n\t\t/*********** Main Panel ***********************************************************/\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\t/* Style */\r\n\t\tpanel.setWidth(width+\"px\");\r\n\t\tpanel.setHeight(height+\"px\");\r\n\t\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\r\n\t\t/**********************************************************************************/\r\n\t\t\r\n\t /*********** Create a table to layout the form options ****************************/\r\n\t layout = new FlexTable();\r\n\t layout.setCellSpacing(5);\r\n\t FlexCellFormatter cellFormatter = layout.getFlexCellFormatter();\r\n\r\n\t /* Add a title to the form */\r\n\t layout.setHTML(0, 0, I18n.getI18nConstants().edit());\r\n\t cellFormatter.setColSpan(0, 0, 3);\r\n\t cellFormatter.setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_CENTER);\r\n\r\n\t /* Add fields to display */\r\n\t layout.setHTML(1, 0, I18n.getI18nConstants().name()+\":\");\r\n\t TextBox name = new TextBox();\r\n\t name.setText(((AssociationLocalDto) dto).getName());\r\n\t layout.setWidget(1, 1,name);\r\n\t layout.setHTML(1, 2, \"\");\r\n\t \r\n\t layout.setHTML(2, 0, I18n.getI18nConstants().address()+\":\");\r\n\t TextBox address = new TextBox();\r\n\t address.setText(((AssociationLocalDto) dto).getAddress());\r\n\t layout.setWidget(2, 1,address);\r\n\t layout.setHTML(2, 2, \"\");\r\n\t \r\n\t layout.setHTML(3, 0, I18n.getI18nConstants().postalCode()+\":\");\r\n\t TextBox postalCode = new TextBox();\r\n\t postalCode.setText(((AssociationLocalDto) dto).getPostalCode());\r\n\t layout.setWidget(3, 1,postalCode);\r\n\t layout.setHTML(3, 2, \"\");\r\n\t \t \r\n\t layout.setHTML(4, 0, I18n.getI18nConstants().town()+\":\");\r\n\t TextBox town = new TextBox();\r\n\t town.setText(((AssociationLocalDto) dto).getTown());\r\n\t layout.setWidget(4, 1,town);\r\n\t layout.setHTML(4, 2, \"\");\r\n\t \r\n\t layout.setHTML(5, 0, I18n.getI18nConstants().email()+\":\");\r\n\t TextBox email = new TextBox();\r\n\t email.setText(((AssociationLocalDto) dto).getEmail());\r\n\t layout.setWidget(5, 1,email);\r\n\t layout.setHTML(5, 2, \"\");\r\n\t \r\n\t layout.setHTML(6, 0, I18n.getI18nConstants().cellNumber()+\":\");\r\n\t TextBox cellNumber = new TextBox();\r\n\t cellNumber.setText(((AssociationLocalDto) dto).getCellNumber());\r\n\t layout.setWidget(6, 1,cellNumber);\r\n\t layout.setHTML(6, 2, \"\");\r\n\t \r\n\t layout.setHTML(7, 0, I18n.getI18nConstants().phoneNumber()+\":\");\r\n\t TextBox phoneNumber = new TextBox();\r\n\t phoneNumber.setText(((AssociationLocalDto) dto).getPhoneNumber());\r\n\t layout.setWidget(7, 1,phoneNumber);\r\n\t layout.setHTML(7, 2, \"\");\r\n\t \r\n\t layout.setHTML(8, 0, I18n.getI18nConstants().webSite()+\":\");\r\n\t TextBox webSite = new TextBox();\r\n\t webSite.setText(((AssociationLocalDto) dto).getWebsite());\r\n\t layout.setWidget(8, 1,webSite);\t\r\n\t layout.setHTML(8, 2, \"\");\r\n\t \r\n\t layout.setHTML(9, 0, I18n.getI18nConstants().password()+\":\");\r\n\t TextBox password = new TextBox();\r\n\t password.setText(((AssociationLocalDto) dto).getPassword());\r\n\t layout.setWidget(9, 1,password);\t\r\n\t layout.setHTML(9, 2, \"\");\r\n\t \r\n\t /* Add a button 'Validate' to the form */\r\n\t validate = new Button(I18n.getI18nConstants().validate());\r\n\t validate.addClickHandler(controler.getValidateClickHandler());\r\n\t layout.setWidget(10, 0, validate);\r\n\t cellFormatter.setColSpan(10, 0, 2);\r\n\t cellFormatter.setHorizontalAlignment(10, 0, HasHorizontalAlignment.ALIGN_CENTER);\r\n\t \r\n\t /* Add a waiting message to the form */\r\n\t cellFormatter.setColSpan(11, 0, 2);\r\n\t cellFormatter.setHorizontalAlignment(11, 0, HasHorizontalAlignment.ALIGN_CENTER);\r\n\r\n\t \r\n\t /* style */\r\n\t cellFormatter.setStyleName(0, 0, \"titleFontFlexTable\");\r\n\t cellFormatter.setStyleName(1, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(1, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(1, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(2, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(2, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(2, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(3, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(3, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(3, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(4, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(4, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(4, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(5, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(5, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(5, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(6, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(6, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(6, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(7, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(7, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(7, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(8, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(8, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(8, 2, \"errorFont\");\r\n\t cellFormatter.setStyleName(9, 0, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(9, 1, \"calibriFontFlexTable\");\r\n\t cellFormatter.setStyleName(9, 2, \"errorFont\");\r\n\t validate.setStyleName(\"singleButton\");\r\n\t\t/**********************************************************************************/\r\n\t \r\n\t\t/***************** Fill the main panel ********************************************/\t \r\n\t /* Wrap the contents in a DecoratorPanel */\r\n\t DecoratorPanel decPanel = new DecoratorPanel();\r\n\t decPanel.setWidth(width*0.5+\"px\");\r\n\t decPanel.setWidget(layout);\r\n\t \r\n\t panel.add(decPanel);\r\n\t\t/**********************************************************************************/\r\n\r\n\t /***************** Controler ******************************************************/\r\n\t name.addClickHandler(controler.getTextBoxClickHandler(name));\r\n\t controler.setName(name);\r\n\t address.addClickHandler(controler.getTextBoxClickHandler(address));\r\n\t controler.setAddress(address);\r\n\t postalCode.addClickHandler(controler.getTextBoxClickHandler(postalCode));\r\n\t controler.setPostalCode(postalCode);\r\n\t town.addClickHandler(controler.getTextBoxClickHandler(town));\r\n\t controler.setTown(town);\r\n\t email.addClickHandler(controler.getTextBoxClickHandler(email));\r\n\t controler.setEmail(email);\r\n\t cellNumber.addClickHandler(controler.getTextBoxClickHandler(cellNumber));\r\n\t controler.setCellNumber(cellNumber);\r\n\t phoneNumber.addClickHandler(controler.getTextBoxClickHandler(phoneNumber));\r\n\t controler.setPhoneNumber(phoneNumber);\r\n\t webSite.addClickHandler(controler.getTextBoxClickHandler(webSite));\r\n\t controler.setWebSite(webSite);\r\n\t password.addClickHandler(controler.getTextBoxClickHandler(password));\r\n\t controler.setPassword(password);\r\n\t \r\n\t controler.getModel().onInitialize((AssociationLocalDto) dto);\r\n\t\t/**********************************************************************************/\r\n\r\n\t return panel;\r\n\t}", "title": "" }, { "docid": "5927d248faaff56f27e1655fd41f87b6", "score": "0.5533246", "text": "private FormPanel createUploadForm(){\n \t\tfinal FormPanel uploadForm = new FormPanel();\n \t\tVerticalPanel uploadPanel = new VerticalPanel();\n \t\tHorizontalPanel buttonPanel = new HorizontalPanel();\n \t\tfinal FileUpload fileSelector = new FileUpload();\n \t\tButton submitButton = new Button(\"Upload File\");\n \t\tButton updateButton = new Button(\"Update from Data Vancouver\");\n \t\t//Button downloadButton = new Button(\"Download current data\");\n \t\t\n \t\t// Add upload form, courtesy of http://examples.roughian.com/index.htm#Widgets~FileUpload\n \t uploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);\n \t uploadForm.setMethod(FormPanel.METHOD_POST);\n \t uploadForm.addStyleName(\"uploadForm\");\n \t fileSelector.setName(\"uploadButton\");\n \t uploadPanel.add(new HTML(\"<b>Upload xml file:</b><br />\"));\n \t uploadPanel.add(new HTML(\"<b><font color ='red'>(ADMIN USE ONLY)</b><br />\"));\n \t uploadPanel.add(fileSelector);\t \n \t uploadPanel.setHorizontalAlignment(HasAlignment.ALIGN_LEFT);\n \t submitButton.addClickHandler(new ClickHandler()\n \t {\n \t\t\t@Override\n \t\t\tpublic void onClick(ClickEvent event) {\n \t\t\t\tuploadForm.submit();\t\t\t\t\n \t\t\t}\n \t });\n \t //TODO clickhandlers for download and update buttons\n \t uploadPanel.add(new HTML(\"<hr />\"));\n \t buttonPanel.add(submitButton);\n \t buttonPanel.add(updateButton);\n \t //buttonPanel.add(downloadButton);\n \t uploadPanel.add(buttonPanel);\n \t uploadForm.add(uploadPanel);\n \t uploadForm.setAction(\"/UploadArt\");\n \t uploadForm.addSubmitHandler(new SubmitHandler()\n \t {\n \t\t\t@Override\n \t\t\tpublic void onSubmit(SubmitEvent event) {\n \t\t\t\tif(fileSelector.getFilename().endsWith(\"xml\"))\n \t\t\t\t\tuploadForm.submit();\n \t\t\t\telse if(fileSelector.getFilename().equals(\"\"))\n \t\t\t\t\tWindow.alert(\"Please select a xml file first\");\n \t\t\t\telse\n \t\t\t\t\tWindow.alert(\"Not a XML file\");\t\t\t\t\n \t\t\t}\n \t });\t \n \t return uploadForm;\n \t}", "title": "" }, { "docid": "8ecbe61bb4ad0638bb6e2bfaa9d50cdd", "score": "0.553256", "text": "private void createMainFrame() {\r\n\t\tthis.mainFrame = new EuclideMainFrame(this);\r\n\r\n\t\t// create menubar from resource file\r\n\t\tthis.mainFrame.setJMenuBar(this.guiBuilder.createMenuBar());\r\n\r\n\t\t// Add listeners\r\n\t\tfor (EuclideDoc doc : appli.getDocuments()) {\r\n\t\t\taddNewDocument(doc);\r\n\t\t}\r\n\t\t\r\n\t\tthis.mainFrame.setCurrentTool(getTool(\"addFreePoint\"));\r\n\t\tthis.mainFrame.updateTitle();\r\n\t}", "title": "" }, { "docid": "7e1b17fae55a77604339d26398b1747b", "score": "0.5531967", "text": "public JFrame makeRecordSegmentationFrame()\n\t{\n\t\tJFrame frame = new JFrame();\n\t\tframe.setSize(500, 250);\n\t\tframe.setTitle(\"Record_segmentation_aneurysm_database\");\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tContainer contentPane = frame.getContentPane();\n\t\t_recordPanel = new RecordSegmentationPanel(DbConn.PROPERTIES);\n\t\tcontentPane.add(_recordPanel);\t\n\t\t\n\t\treturn frame;\n\t}", "title": "" }, { "docid": "315c86e6d12df66e9ee8ce594da9cf6f", "score": "0.5504041", "text": "private JPanel getCreateAuthorForm() {\n\t\tfinal JPanel panel = new JPanel();\n\t\tpanel.setBorder(BorderFactory.createTitledBorder(\"Create publication\"));\n\t\tpanel.setLayout(new GridBagLayout());\n\n\t\tfinal GridBagConstraints c = new GridBagConstraints();\n\t\t// column padding\n\t\tc.insets = new Insets(5, 0, 0, 10);\n\n\t\t// ID\n\t\t// distribute 1% of available width to left column\n\t\tc.weightx = 0.1;\n\t\t// column\n\t\tc.gridx = 0;\n\t\t// row\n\t\tc.gridy = 0;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\t// align right\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tpanel.add(new JLabel(\"ID:\"), c);\n\n\t\t// distribute 90% of available width to right column\n\t\tc.weightx = 0.9;\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridx = 1;\n\t\tid = new JTextField();\n\t\tpanel.add(id, c);\n\t\t// reset to default\n\t\tc.weightx = 0;\n\n\t\t// TITLE\n\t\tc.gridx = 0;\n\t\tc.gridy++;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tpanel.add(new JLabel(\"Title:\"), c);\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridx = 1;\n\t\ttitle = new JTextField();\n\t\tpanel.add(title, c);\n\n\t\t// YEAR\n\t\tc.gridx = 0;\n\t\tc.gridy++;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tpanel.add(new JLabel(\"Year:\"), c);\n\t\tc.fill = GridBagConstraints.NONE;\n\t\t// align left\n\t\tc.anchor = GridBagConstraints.LINE_START;\n\t\tc.gridx = 1;\n\t\tfinal NumberFormat myFormat = NumberFormat.getInstance();\n\t\tmyFormat.setMaximumIntegerDigits(4);\n\t\tmyFormat.setParseIntegerOnly(true);\n\t\tmyFormat.setGroupingUsed(false);\n\t\tyear = new JFormattedTextField(myFormat);\n\t\tyear.setColumns(3);\n\t\tyear.setMinimumSize(new Dimension(40, 20));\n\t\tyear.validate();\n\t\tpanel.add(year, c);\n\n\t\t// TYPE\n\t\tc.gridx = 0;\n\t\tc.gridy++;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tpanel.add(new JLabel(\"Type:\"), c);\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridx = 1;\n\n\t\tpublicationType = new JComboBox<>(PublicationType.values());\n\t\tpanel.add(publicationType, c);\n\n\t\t// AUTHORS\n\t\tc.insets = new Insets(10, 0, 0, 10);\n\t\tc.gridx = 0;\n\t\tc.gridy++;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tc.anchor = GridBagConstraints.FIRST_LINE_END;\n\t\tpanel.add(new JLabel(\"Authors:\"), c);\n\n\t\tc.fill = GridBagConstraints.BOTH;\n\t\tc.weighty = 1.;\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridx = 1;\n\t\tauthors = new JList<>(new AuthorListModel(model.getAuthorModel()));\n\t\tauthors.setSelectionModel(new DefaultListSelectionModel() {\n\t\t\t@Override\n\t\t\tpublic void setSelectionInterval(final int index0, final int index1) {\n\t\t\t\tif (super.isSelectedIndex(index0)) {\n\t\t\t\t\tsuper.removeSelectionInterval(index0, index1);\n\t\t\t\t} else {\n\t\t\t\t\tsuper.addSelectionInterval(index0, index1);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tpanel.add(new JScrollPane(authors), c);\n\n\t\t// CREATE BUTTON\n\t\tc.weighty = 0.;\n\t\tc.gridx = 1;\n\t\tc.gridy++;\n\t\tc.fill = GridBagConstraints.NONE;\n\t\tc.anchor = GridBagConstraints.LINE_END;\n\t\tfinal JButton b = new JButton(\"Create publication\");\n\t\tb.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\n\t\t\t\tfinal Publication pub = new Publication();\n\t\t\t\tpub.setId(id.getText());\n\t\t\t\tpub.setTitle(title.getText());\n\t\t\t\ttry {\n\t\t\t\t\tpub.setYearPublished(year.getValue() != null ? ((Long) year\n\t\t\t\t\t\t\t.getValue()).intValue() : -1);\n\t\t\t\t} catch (final ClassCastException ex) {\n\t\t\t\t\tpub.setYearPublished(-1);\n\t\t\t\t}\n\n\t\t\t\tpub.setAuthors(getSelectedAuthors());\n\t\t\t\tpub.setType((PublicationType) publicationType.getSelectedItem());\n\t\t\t\tcontroller.createPublication(pub);\n\t\t\t}\n\n\t\t});\n\t\tpanel.add(b, c);\n\n\t\treturn panel;\n\t}", "title": "" }, { "docid": "0f66548a2db6d330d61a6c1903d381f8", "score": "0.5501952", "text": "void setComponentDocument (Document doc);", "title": "" }, { "docid": "dcdd1bd47998f929c1c353caef45b721", "score": "0.55006987", "text": "private void initComponents()\n {\n SkrivUt(4, \"initComponents\");\n menuBar = new javax.swing.JMenuBar();\n fileMenu = new javax.swing.JMenu();\n openMenuItem = new javax.swing.JMenuItem();\n exitMenuItem = new javax.swing.JMenuItem();\n helpMenu = new javax.swing.JMenu();\n contentsMenuItem = new javax.swing.JMenuItem();\n aboutMenuItem = new javax.swing.JMenuItem();\n printMenuItem = new javax.swing.JMenuItem();\n viewMenu = new javax.swing.JMenu();\n nextPageItem = new javax.swing.JMenuItem();\n previousPageItem = new javax.swing.JMenuItem();\n\n if (EasyReader)\n {\n SkrivUt(4, \"EasyReader True, sumPan.\");\n sumPan = new SummarizerPanelPDF( this , false ); // AH* tillagd.\n } else\n {\n SkrivUt(4, \"EasyReader False, sumPan.\");\n sumPan = new SummarizerPanelPDF( this , true ); // AH* tillagd.\n }\n sumPan.setSize(100, 30); // AH* tillagd.\n\n setTitle(\"PDFBox - PDF Reader\");\n addWindowListener(new java.awt.event.WindowAdapter()\n {\n public void windowClosing(java.awt.event.WindowEvent evt)\n {\n exitApplication();\n }\n });\n\n\n JScrollPane documentScroller = new JScrollPane();\n documentScroller.setViewportView( documentPanel );\n\n getContentPane().add( sumPan, java.awt.BorderLayout.NORTH); // AH* SumPan.\n getContentPane().add( documentScroller, java.awt.BorderLayout.CENTER );\n getContentPane().add( bottomStatusPanel, java.awt.BorderLayout.SOUTH );\n\n fileMenu.setText(\"Arkiv\");\n openMenuItem.setText(\"Öppna\");\n openMenuItem.setToolTipText(\"Öppna PDF fil\");\n openMenuItem.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n openMenuItemActionPerformed(evt);\n }\n });\n\n fileMenu.add(openMenuItem);\n\n printMenuItem.setText( \"Skriv Ut\" );\n printMenuItem.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n try\n {\n if (document != null) \n {\n document.print();\n }\n }\n catch( PrinterException e )\n {\n e.printStackTrace();\n }\n }\n });\n fileMenu.add( printMenuItem );\n\n exitMenuItem.setText(\"Avsluta\");\n exitMenuItem.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n exitApplication();\n }\n });\n\n fileMenu.add(exitMenuItem);\n\n menuBar.add(fileMenu);\n\n helpMenu.setText(\"Hjälp\");\n contentsMenuItem.setText(\"Innehåll\");\n helpMenu.add(contentsMenuItem);\n\n aboutMenuItem.setText(\"Om...\");\n helpMenu.add(aboutMenuItem);\n\n viewMenu.setText(\"Visa\");\n nextPageItem.setText(\"Nästa sida\");\n nextPageItem.setAccelerator(KeyStroke.getKeyStroke('+'));\n nextPageItem.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n nextPage();\n }\n });\n viewMenu.add(nextPageItem);\n\n previousPageItem.setText(\"Föregående sida\");\n previousPageItem.setAccelerator(KeyStroke.getKeyStroke('-'));\n previousPageItem.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n previousPage();\n }\n });\n viewMenu.add(previousPageItem);\n\n menuBar.add(viewMenu);\n\n menuBar.add(helpMenu); // AH* Avkommenterad.\n\n setJMenuBar(menuBar);\n\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-700)/2, (screenSize.height-600)/2, 700, 600);\n }", "title": "" }, { "docid": "0c18a1b38efd28f396eabfd25fa7b972", "score": "0.54996496", "text": "protected void createContents() {\r\n\t\tsetText(\"XML View\");\r\n\t\tsetSize(608, 471);\r\n\r\n\t}", "title": "" }, { "docid": "3396e0315e9b400de35b6fe41076f0f4", "score": "0.5495939", "text": "public VerticalPanel getInputFormPanel() {\n\t\tVerticalPanel inputFormPanel = new VerticalPanel();\n\t\tinputFormPanel.setStyleName(\"dialogInputForm\");\n\n\t\t// XML-structure\n\t\tLabel la_textarea = new Label(\n\t\t\t\t\"Please enter the new sensor in XML format\");\n\t\tinputFormPanel.add(la_textarea);\n\n\t\ttextarea = new TextArea();\n\t\ttextarea.setText(\"\");\n\t\ttextarea.setVisibleLines(15);\n\t\ttextarea.setCharacterWidth(80);\n\t\tinputFormPanel.add(textarea);\n\n\t\t// Buttons\n\t\tHorizontalPanel buttonPanel = new HorizontalPanel();\n\t\tbuttonPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);\n\t\tButton b_add = new Button(\"Add\");\n\t\tb_add.addClickListener(new ClickListener() {\n\t\t\tpublic void onClick(Widget sender) {\n\t\t\t\tSensorServiceAsync instance = SensorService.Util\n\t\t\t\t\t\t.getInstance();\n\t\t\t\tinstance.addSensor(textarea.getText(), new AsyncCallback() {\n\n\t\t\t\t\tpublic void onFailure(Throwable error) {\n\t\t\t\t\t\tAddSensorPopup.this.hide();\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onSuccess(Object retValue) {\n\t\t\t\t\t\tAddSensorPopup.this.hide();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tbuttonPanel.add(b_add);\n\n\t\tButton b_cancel = new Button(\"Cancel\");\n\t\tb_cancel.addClickListener(new ClickListener() {\n\t\t\tpublic void onClick(Widget sender) {\n\t\t\t\tAddSensorPopup.this.hide();\n\t\t\t}\n\t\t});\n\t\tbuttonPanel.add(b_cancel);\n\t\tinputFormPanel.add(buttonPanel);\n\t\tthis.add(inputFormPanel);\n\n\t\treturn inputFormPanel;\n\t}", "title": "" }, { "docid": "f2e1092d573e3416afa5daeff3005a1c", "score": "0.54946053", "text": "public NBMongoDBNewInstanceSettingsVisualPanel() {\n changeSupport = new ChangeSupport(this);\n initComponents();\n Document prtDoc = portTextField.getDocument();\n if (prtDoc instanceof PlainDocument) {\n ((PlainDocument) prtDoc).setDocumentFilter(new WholeNumberDocumentFilter());\n }\n }", "title": "" }, { "docid": "c67cb5f0f4349641127d96bc5cf18326", "score": "0.54889643", "text": "public void createPage() {\n\t\tframe = new JFrame(\"Basic Window\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(400,400);\n\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBackground(new Color (0,0,0));\n\t}", "title": "" }, { "docid": "cff8476ee0ce3de5b61a0f534e054a53", "score": "0.54707915", "text": "private void createTextPanel() {\n textPanel = new JPanel();\n textArea = new JTextArea();\n textArea.setFont(textFieldFont);\n textPanel.setPreferredSize(new Dimension(WIDTH*2/3, HEIGHT));\n Color c = new Color(130,177,230);\n textPanel.setBackground(c);\n\n JEditorPane editorPane = new JEditorPane();\n editorPane.setEditable(false);\n setPreferredSize(new Dimension(WIDTH*2/3, HEIGHT));\n\n try {\n editorPane.setPage(\"https://www.ugrad.cs.ubc.ca/~cs210/2018w1/welcomemsg.html\");\n } catch (IOException e) {\n System.out.println(\"exception caught\");\n }\n\n JScrollPane scroll = new JScrollPane(textArea);\n scroll.setPreferredSize(new Dimension(WIDTH*2/3-10, HEIGHT-100));\n\n textArea.setEditable(false);\n textArea.setBackground(Color.WHITE);\n viewCurrent(itemList);\n\n textPanel.add(editorPane);\n textPanel.add(scroll);\n\n add(textPanel, BorderLayout.WEST);\n }", "title": "" }, { "docid": "30b5ccd7cf0ab8940ef40f0219b9e993", "score": "0.54646957", "text": "public AwardDocumentForm() {\r\n initComponents();\r\n }", "title": "" }, { "docid": "1d07df505bd32a3aff2872c4ef6631ed", "score": "0.54591596", "text": "private void createAndShowGUI() {\n JFrame frame = new JFrame(\"Configurator\");\n frame.setSize(300, 300);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n // Add the top panel\n JPanel topPanel = new JPanel();\n topPanel.setLayout(new BoxLayout(topPanel, BoxLayout.PAGE_AXIS));\n\t\tframe.getContentPane().add(topPanel);\n \n\t\t// Add the scroll pane\n\t\ttopPanel.add(getParameterView());\n\t\t\n\t\t// Add the validate panel\n\t\ttopPanel.add(getValidateView());\n \n // Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "title": "" }, { "docid": "813b08b23e31d7afc95570adcafd1a6b", "score": "0.545865", "text": "private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {\n \tPageD pageD = new PageD();\n \tpageD.setVisible(true);\n }", "title": "" }, { "docid": "c048ce243429c0b84747f1d78991ef20", "score": "0.54439765", "text": "void saveDocumentAsNew(DocumentWindowManager documentWindowManager);", "title": "" }, { "docid": "4c80a1ff161a242a9534aa07002d1249", "score": "0.5440034", "text": "public newWindowPage()\n\t\t{\n\t\t\tPageFactory.initElements(driver, this);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "261b6d29188ef9b400dae4fd48ee2066", "score": "0.54383403", "text": "public void create(JPanel panelToAdd) {\n\t\tmainPanel.removeAll();\t\t\n\t\t\n\t\tmainPanel.add(panelToAdd,BorderLayout.CENTER);\t\t\t\n\t\tmainPanel.revalidate();\n\t\tmainPanel.repaint();\n\t}", "title": "" }, { "docid": "fea26a0996a73ecad5ab12029b1a3f02", "score": "0.54366916", "text": "@Override\r\n\tpublic void createPartControl(Composite parent) {\r\n\t\tfinal Composite composite = new ElementPOJOComposite(parent, SWT.NONE);\r\n\r\n\t\tcreateActions();\r\n\t\tinitializeToolBar();\r\n\t\tinitializeMenu();\r\n\t\t\r\n\t\tgetSite().getPage().addPostSelectionListener(new ISelectionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void selectionChanged(IWorkbenchPart part, ISelection selection) {\r\n\t\t\t\tif(part.equals(this)) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tStructuredSelection ss = (StructuredSelection) selection;\r\n\t\t\t\tElement element = (Element) ss.getFirstElement();\r\n\t\t\t\tif(element != null && element instanceof Element) {\r\n\t\t\t\t\tPOJOCompositeUtils.setPOJO(composite, element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "78b7b82c76cabd94f5bd05b567f81e7e", "score": "0.5434606", "text": "public InfraViewerPanel(JFrame parent) {\n initComponents();\n this.frame = parent;\n }", "title": "" }, { "docid": "cfffed6e1443a7d35028d9ee3ce7cbf4", "score": "0.5432106", "text": "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\tprivate void initialize() {\r\n\t\ttaskHistory = new ArrayList<Task>();\r\n\t\tIFn require = Clojure.var(\"clojure.core\", \"require\");\r\n\t\trequire.invoke(Clojure.read(\"dray.core\"));\r\n\r\n\t\tIFn populateFn = Clojure.var(\"dray.core\", \"populate-gui-tables\");\r\n\t\t// IFn populateFn = Clojure.var(\"clojure.core\", \"+\");\r\n\t\tpopulateFn.invoke();\r\n\t\tframe = new JFrame();\r\n\t\tframe.setTitle(\"Document Viewer\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t/* MENU BAR */\r\n\t\tinitMenuBar();\r\n\r\n\t\tcanvas = new DocumentCanvas(this);\r\n\t\tJPanel canvasPanel = new JPanel(new BorderLayout());\r\n\r\n\t\tJScrollPane canvasScrollPane = new JScrollPane(canvas);\r\n\t\tcanvasButtonPanel = new CanvasButtonPanel(this);\r\n\t\tJScrollPane canvasButtonPanelScroll = new JScrollPane();\r\n\t\tcanvasButtonPanelScroll.setViewportView(canvasButtonPanel);\r\n\t\tcanvasButtonPanelScroll.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\tcanvasPanel.add(canvasButtonPanelScroll, BorderLayout.NORTH);\r\n\t\tcanvasPanel.add(canvasScrollPane, BorderLayout.CENTER);\r\n\t\tJSplitPane mainSplitPane = new JSplitPane();\r\n\t\tmainSplitPane.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\r\n\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\ttabbedPane.setTabLayoutPolicy(JTabbedPane.WRAP_TAB_LAYOUT);\r\n\t\ttabbedPane.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent changeEvent) {\r\n\t\t\t\tcanvas.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tDefaultListModel<JCheckBox> model = new DefaultListModel<JCheckBox>();\r\n\t\tlayerCheckList = new CheckBoxList(model);\r\n\t\tlayerCheckList.addMouseListener(new MouseAdapter() {\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tint index = layerCheckList.locationToIndex(e.getPoint());\r\n\t\t\t\tif (index != -1) {\r\n\t\t\t\t\tJCheckBox checkbox = (JCheckBox) layerCheckList.getModel().getElementAt(index);\r\n\t\t\t\t\tif (e.getClickCount() >= 1) {\r\n\t\t\t\t\t\tdataManager.getLayerList().getLayerByName(checkbox.getText()).setHighlight(checkbox.isSelected());\r\n\t\t\t\t\t\tcanvas.repaint();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/*\r\n\t\t\t * public void mouseExited(MouseEvent e) { for (Layer layer :\r\n\t\t\t * dataManager.getLayerList().values()){\r\n\t\t\t * //layer.setShouldHighlight(false); canvas.repaint(); } currentIndex\r\n\t\t\t * = -1; }\r\n\t\t\t */\r\n\t\t});\r\n\t\t/*\r\n\t\t * \r\n\t\t * layerCheckList.addMouseMotionListener(new MouseAdapter() { public void\r\n\t\t * mouseMoved(MouseEvent e) { int index =\r\n\t\t * layerCheckList.locationToIndex(e.getPoint()); if (index !=\r\n\t\t * currentIndex){ //dataManager.getLayerList().getLayerByIndex(index).\r\n\t\t * setShouldHighlight( true); canvas.repaint(); currentIndex = index; } }\r\n\t\t * });\r\n\t\t */\r\n\t\t/*\r\n\t\t * for (Layer layer : dataManager.getLayerList().asList()){ JCheckBox tmp\r\n\t\t * = new JCheckBox(layer.getName()); tmp.setSelected(true);\r\n\t\t * model.addElement(tmp); System.out.println(layer.getName() + \"/\" +\r\n\t\t * dataManager.getLayerList().asList().size()); }\r\n\t\t */\r\n\t\t// JCheckBox test = model.elementAt(0);\r\n\t\t// tabbedPane.addTab(\"Elements\", list);\r\n\t\tJSplitPane exploreSplitPane = new JSplitPane();\r\n\r\n\t\texploreSplitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\r\n\t\t// refreshLayerChecklist();\r\n\r\n\t\t/* page picker */\r\n\t\tpagePickerList = new JList();\r\n\t\tpagePickerList.setCellRenderer(new ImageListRenderer());\r\n\t\tpagePickerList.addMouseListener(new MouseAdapter() {\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tint index = pagePickerList.getSelectedIndex();\r\n\t\t\t\tif (index != -1) {\r\n\t\t\t\t\tdataManager.getView().setCurrentPage(index + 1);\r\n\t\t\t\t\tviewWSUpdated();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tJPanel pagePickerPanel = new JPanel(new BorderLayout());\r\n\t\tJScrollPane pagePickerScrollPane = new JScrollPane(pagePickerList);\r\n\r\n\t\t/* VISUAL TREE */\r\n\t\tvisualTree = new JTree(new DefaultMutableTreeNode(\"No Document Loaded\"));\r\n\t\t// refreshLayerList();\r\n\t\tJScrollPane treeView = new JScrollPane(visualTree);\r\n\t\tvisualTree.setRootVisible(false);\r\n\t\tvisualTree.getSelectionModel().addTreeSelectionListener(new TreeSelectionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void valueChanged(TreeSelectionEvent e) {\r\n\t\t\t\tgetView().getSelected().clear();\r\n\t\t\t\tTreePath[] selectedNodes = visualTree.getSelectionPaths();\r\n\t\t\t\tif (selectedNodes == null)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tfor (TreePath path : selectedNodes) {\r\n\t\t\t\t\tif (((DefaultMutableTreeNode) path.getLastPathComponent()).getUserObject() instanceof El)\r\n\t\t\t\t\t\tgetView().getSelected()\r\n\t\t\t\t\t\t\t\t.add((El) ((DefaultMutableTreeNode) path.getLastPathComponent()).getUserObject());\r\n\t\t\t\t}\r\n\t\t\t\tcanvas.repaint();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t/* REP TREE */\r\n\t\trepTree = new RepresentationJTree(this);\r\n\t\t// refreshLayerList();\r\n\t\tJScrollPane repView = new JScrollPane(repTree);\r\n\t\trepTree.setRootVisible(false);\r\n\r\n\t\t/* TEXT AREA */\r\n\t\ttextArea = new JTextArea();\r\n\t\ttextArea.setRows(6);\r\n\t\tJScrollPane textScrollPane = new JScrollPane(textArea);\r\n\r\n\t\t/* WORKING SET TREE */\r\n\t\tworkingSetTree = new WorkingSetJTree(this);\r\n\t\t// refreshWorkingSetTree();\r\n\t\tJScrollPane wsView = new JScrollPane(workingSetTree);\r\n\r\n\t\t/* OPTIONS */\r\n\t\tJPanel optionsPanel = new JPanel();\r\n\t\toffsetSliderH = new JSlider(JSlider.HORIZONTAL, -30, 30, 0);\r\n\t\toffsetSliderH.setPaintTicks(true);\r\n\t\toffsetSliderH.setPaintLabels(true);\r\n\t\toffsetSliderH.setMinorTickSpacing(1);\r\n\t\toffsetSliderH.setMajorTickSpacing(10);\r\n\t\toffsetSliderH.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent event) {\r\n\t\t\t\tint value = offsetSliderH.getValue();\r\n\t\t\t\tdataManager.setOffsetX(value);\r\n\t\t\t\tcanvas.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\t\toffsetSliderV = new JSlider(JSlider.VERTICAL, -30, 30, 0);\r\n\t\toffsetSliderV.setPaintTicks(true);\r\n\t\toffsetSliderV.setPaintLabels(true);\r\n\t\toffsetSliderV.setMinorTickSpacing(1);\r\n\t\toffsetSliderV.setMajorTickSpacing(10);\r\n\t\toffsetSliderV.addChangeListener(new ChangeListener() {\r\n\t\t\tpublic void stateChanged(ChangeEvent event) {\r\n\t\t\t\tint value = offsetSliderV.getValue();\r\n\t\t\t\tdataManager.setOffsetY(value);\r\n\t\t\t\tcanvas.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Add things\r\n\t\t// mainSplitPane.add(canvasScrollPane, JSplitPane.RIGHT);\r\n\t\tmainSplitPane.add(canvasPanel, JSplitPane.RIGHT);\r\n\t\toptionsPanel.add(offsetSliderH);\r\n\t\toptionsPanel.add(offsetSliderV);\r\n\t\tmainSplitPane.add(tabbedPane, JSplitPane.LEFT);\r\n\t\texploreSplitPane.add(layerCheckList, JSplitPane.BOTTOM);\r\n\t\tpagePickerPanel.add(pagePickerScrollPane, BorderLayout.CENTER);\r\n\t\tframe.getContentPane().add(mainSplitPane, BorderLayout.CENTER);\r\n\t\tframe.getContentPane().add(textScrollPane, BorderLayout.SOUTH);\r\n\t\texploreSplitPane.add(wsView, JSplitPane.TOP);\r\n\t\ttabbedPane.addTab(\"Explore\", exploreSplitPane);\r\n\t\ttabbedPane.addTab(\"Pages\", pagePickerPanel);\r\n\t\ttabbedPane.addTab(\"Details\", treeView);\r\n\t\t// tabbedPane.addTab(\"Options\", optionsPanel);\r\n\t\ttabbedPane.addTab(\"Rep\", repView);\r\n\r\n\t\tKeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(new KeyEventDispatcher() {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean dispatchKeyEvent(KeyEvent e) {\r\n\t\t\t\tint ctrl = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();\r\n\t\t\t\tif ((e.getKeyCode() == KeyEvent.VK_Z) && (e.getID() == KeyEvent.KEY_PRESSED)\r\n\t\t\t\t\t\t&& ((e.getModifiers() & ctrl) == ctrl)) {\r\n\r\n\t\t\t\t\tundoTask();\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t/*\r\n\t\t * dataManager.setPdfFile(new\r\n\t\t * File(\"resources/corpora/wnt-pv/008_11_pv.pdf\"));\r\n\t\t * workingSetTree.reload(); refreshPageIconList();\r\n\t\t * this.refreshLayerList(); this.refreshLayerChecklist();\r\n\t\t * dataManager.getView().setCurrentWS(dataManager.getPageWS(1));\r\n\t\t * repTree.reload(); viewWSUpdated();\r\n\t\t */\r\n\t\tif (dataManager.getVDocument() != null) {\r\n\t\t\tList pages = (List) dataManager.getVDocument().getItems();\r\n\t\t\tVPage page = (VPage) pages.get(0);// dataManager.getCurrentPage());\r\n\t\t\tBoundingBox pagebb = (BoundingBox) page.getBbox();\r\n\t\t\tcanvas.setPreferredSize(new Dimension((int) pagebb.getWidth(), (int) pagebb.getHeight()));\r\n\t\t\tcanvasScrollPane.setPreferredSize(new Dimension((int) pagebb.getWidth(), (int) pagebb.getHeight()));\r\n\t\t\tcanvasScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\tcanvasScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\t\t// canvasButtonPanel.setPreferredSize(new\r\n\t\t\t// Dimension((int)pagebb.getWidth(), 42));\r\n\t\t\tcanvasButtonPanelScroll.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n\t\t} else {\r\n\t\t\tcanvasScrollPane.setPreferredSize(new Dimension(640, 640));\r\n\t\t\tcanvasButtonPanelScroll.setPreferredSize(new Dimension(640, 60));\r\n\r\n\t\t}\r\n\t\tframe.pack();\r\n\t}", "title": "" }, { "docid": "6e55146ac6a829672880468666b33f2d", "score": "0.5417546", "text": "private void createSubForm() {\r\n\t\tString className = design.getClassName();\r\n\r\n\t\tif (className == null || className.trim().length() == 0) {\r\n\t\t\tsetSubForm(new ClassNotFoundForm(\"No Class Name\"));\r\n\t\t}\r\n\t\telse {\t\t\t\r\n\t\t\tDesignProperty[] subDesign = design.getBeanProperties();\r\n\t\t\t\t\r\n\t\t\tif (subDesign == null) {\r\n\t\t\t\tsetSubForm(new ClassNotFoundForm(\r\n\t\t\t\t\t\t\"Class Not Found \" + className));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tForm subForm = new PropertiesForm(subDesign);\r\n\t\t\t\tsetSubForm(subForm);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f12193fc77812a3c35f5924e419bcc69", "score": "0.5403113", "text": "void createPixivFields(String domainName) {\n\t\tfieldsPane.removeAll();\n\t\t\n\t\tJLabel memberIDLabel = new JLabel(\"Member ID:\");\n\t\tpixivID = new JTextField(10);\n\t\tJButton submitBtn = new JButton(\"Get Gallery\");\n\t\t//submitBtn.addActionListener(imgurSubmitBtnActionListener());\n\t\t\n\t\tfieldsPane.add(memberIDLabel);\n\t\tfieldsPane.add(pixivID);\n\t\tfieldsPane.add(submitBtn, \"cell 1 2,alignx center\");\n\t\t\n\t\trevalidate();\n\t\trepaint();\n\t}", "title": "" }, { "docid": "86ea5dea0739563ae02017d02526a047", "score": "0.54025394", "text": "public void createPartControl(Composite parent) {\n\t\tfinal Browser browser = new Browser(parent, SWT.NONE);\n\t\tSettings settings = SettingsManager.getSettings();\n\t\tbrowser.setUrl(settings.getHomePage());\n\n\t\tbrowser.setMenu(new Menu(browser));\n\n\t\tnew InputOnfocusFunction(browser, InputOnfocusFunction.FUNCTION_NAME);\n\t\tnew InputLosefocusFunction(browser, InputLosefocusFunction.FUNCTION_NAME);\n\n\t\tfinal String script1 = ScriptManager.loadScript(ScriptManager.force_open_link_in_self);\n\t\tbrowser.addProgressListener(new ProgressListener() {\n\n\t\t\t@Override\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\tbrowser.execute(script1);\n\t\t\t\tbrowser.execute(ScriptManager.loadScript(ScriptManager.FORBID_IE_ERROR));\n\t\t\t\t// browser.execute(ScriptManager.loadScript(ScriptManager.FORBID_KEY));\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// 只在completed时替换target是不够的,用户可能在页面还未完全载入时就点击链接\n\t\t\t\tbrowser.execute(script1);\n\t\t\t}\n\t\t});\n\n\t\tbrowser.addMouseListener(new MouseListener() {\n\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tif (e.button == 3) {\n\t\t\t\t\tMenuManager mgr = new MenuManager();\n\t\t\t\t\tmgr.setRemoveAllWhenShown(true);\n\t\t\t\t\tmgr.addMenuListener(new IMenuListener() {\n\t\t\t\t\t\tpublic void menuAboutToShow(IMenuManager manager) {\n\t\t\t\t\t\t\tmanager.add(new SettingsAction());\n\t\t\t\t\t\t\tmanager.add(new ExitAction());\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tMenu menu = mgr.createContextMenu(browser);\n\t\t\t\t\tbrowser.setMenu(menu);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\n\t\t\t}\n\t\t});\n\n\t\tbrowser.addOpenWindowListener(new OpenWindowListener() {\n\t\t\tpublic void open(WindowEvent e) {\n\t\t\t\tlogger.debug(\"弹出窗口被禁止。\");\n\t\t\t\tfinal Shell shell2 = new Shell(Display.getCurrent());\n\t\t\t\tshell2.setLayout(new org.eclipse.swt.layout.FillLayout());\n\t\t\t\tBrowser brs = new Browser(shell2, SWT.NONE);\n\t\t\t\te.browser = brs;\n\t\t\t\te.display.asyncExec(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tshell2.close();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}\n\t\t});\n\n\t\tToolbar toolbar = Toolbar.getToolbar();\n\t\ttoolbar.setVisible(true);\n\t}", "title": "" }, { "docid": "2cb72308f7dfd744d4095d8e2953cc44", "score": "0.53986794", "text": "public ContentVideoViewControls createControls();", "title": "" }, { "docid": "052e34565f692d001e48926cbcee96ed", "score": "0.53897953", "text": "public FormDetectionPanel() {\n dataModel = new FormDetectionDataModel();\n initGUI();\n }", "title": "" }, { "docid": "64e7a5b50627018d012e48439ad211d2", "score": "0.53854287", "text": "private TSPanel createTriggersView() {\n\t\tm_triggersmodel = new DB2TriggersModel(getConnection(), null);\n\t\tDB2TriggersView view = new DB2TriggersView(m_triggersmodel);\n\t\treturn view;\n\t}", "title": "" }, { "docid": "be5f5ffec9318c54eb506b5b8c2fb182", "score": "0.5380753", "text": "private static void createAndShowFrontLogAnalysisGUI(){\n frontLogAnalysis = new JFrame(\"Oracle Primavera Front End Log Analysis\");\n frontLogAnalysis.getContentPane().setSize(475,300);\n \n \n //Add contents to the window.\n frontLogAnalysis.add(new frontLogAnalysis());\n \n \n //Display the window.\n frontLogAnalysis.pack();\n frontLogAnalysis.setVisible(true);\n }", "title": "" }, { "docid": "8b71ca097953e79cb2e39253f80e9216", "score": "0.5379642", "text": "Document create();", "title": "" }, { "docid": "ffa7f8dd1ba83e0d7778660d7fc9b057", "score": "0.5379392", "text": "public void createPartControl(Composite parent) {\n \r\n \r\n Composite container = new Composite(parent, SWT.NONE);\r\n container.setLayout(new FillLayout());\r\n styledText = new StyledText(container, SWT.BORDER|SWT.MULTI|SWT.H_SCROLL|SWT.V_SCROLL);\r\n styledText.setLayout(new FillLayout());\r\n styledText.setEditable(false);\r\n \r\n //String log = ftpClient.getLog();\r\n /*if (log == null) {\r\n log = \"Log initialized\";\r\n }\r\n styledText.setText(log);*/\r\n styledText.setTopIndex(styledText.getLineCount());\r\n\r\n\r\n }", "title": "" }, { "docid": "7517b50817e8168a7ec7d1bc6375904a", "score": "0.53777987", "text": "public void createPartControl(Composite parent) {\n\t\t// Initialize label to display the graph snapshot\n\t\tlabel = new Label(parent, SWT.NONE);\n//\t\tlabel.setText(\"API Usage Graph\");\n\t\tmakeActions();\n\t\tcontributeToActionBars();\n\t}", "title": "" }, { "docid": "24065280df6c95a73aa8b23c18e5391c", "score": "0.5372321", "text": "public FSMIOViewer()\n {\n makeFrame();\n }", "title": "" }, { "docid": "7289321036d4ea83892d300260164bf8", "score": "0.53668296", "text": "private void buildFormPanel() {\n\t\tformPanel = new JPanel(new SpringLayout());\n \n\t\t//Create the input labels\n\t\twebsiteNameLabel = new JLabel(\"Website Name:\", JLabel.TRAILING);\n\t\twebsiteURLLabel = new JLabel(\"Website URL:\", JLabel.TRAILING);\n\t\t\n\t\t//Create the vendor name & craft type input fields with 20-characters\n\t\twebsiteNameField = new JTextField(20);\n\t\twebsiteURLField = new JTextField(\"http://\", 20);\n\t\t\n\t\t//Set labels for fields\n\t\twebsiteNameLabel.setLabelFor(websiteNameField);\n\t\twebsiteURLLabel.setLabelFor(websiteURLField);\n\n\t\t//Add components to panel\n\t\tformPanel.add(websiteNameLabel);\tformPanel.add(websiteNameField);\n\t\tformPanel.add(websiteURLLabel);\t\tformPanel.add(websiteURLField);\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\tformPanel.add(new JLabel(\" \"));\t\tformPanel.add(new JLabel(\" \")); //blank for spacing\n\t\t\n //Lay out the panel\n SpringUtilities.makeCompactGrid(formPanel,\n ROWS, 2, \t\t //rows, cols\n 6, 6, //initX, initY\n 6, 6); //xPad, yPad\n \n\t\t// Add focusListeners to the textfields\n\t\twebsiteNameField.addFocusListener(this);\n\t\twebsiteURLField.addFocusListener(this);\n\t}", "title": "" }, { "docid": "917e861525725fae5dc7b9634295dcf3", "score": "0.5366691", "text": "public void createControlPanel()\r\n\t{\r\n\t\tCONTROL_PANEL = new JPanel();\r\n\t\tCONTROL_PANEL.setLayout(new BorderLayout());\r\n\t\t\r\n\t\t//creating components of control panel\r\n\t\tcreateDateSubPanel();\r\n\t\tcreateActionSubPanel();\r\n\t\t\r\n\t\tCONTROL_PANEL.add(dateSubPanel, BorderLayout.NORTH);\r\n\t\tCONTROL_PANEL.add(actionSubPanel, BorderLayout.SOUTH);\r\n\t\t\r\n\t\twestPanel.add(CONTROL_PANEL, BorderLayout.SOUTH);\r\n\t}", "title": "" }, { "docid": "6a47ac4e3aa01dacf013b257487c3a6e", "score": "0.5364972", "text": "public void showModifyPanel() {\n\t\ttry {\n\t\t\tModifyPanel modifyPanel = new ModifyPanel();\n\t\t\tmodifyPanel.setOpaque(false);\n\t\t\tmodifyPanel.setBounds(5, 35, 956, 562);\n\t\t\tmodifyPanel.setModifyPanelListener(new ModifyPanelListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onImageClicked(String filmName) {\n\t\t\t\t\tcontentPane.remove(modifyPanel);\n\t\t\t\t\tcontentPane.repaint();\n\t\t\t\t\tshowModifyInfoPanel(filmName);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onBackClicked() {\n\t\t\t\t\tcontentPane.remove(modifyPanel);\n\t\t\t\t\tcontentPane.repaint();\n\t\t\t\t\ttry {\n\t\t\t\t\t\tshowModifyMenuPanel();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tcontentPane.add(modifyPanel);\n\t\t\t\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "39ec071f93ef953837147bd2ae1d515c", "score": "0.53645974", "text": "@Override\r\n\tpublic void createPartControl(final Composite parent) {\r\n\t\t// Create the scrolled parent component\r\n\t\ttoolkit = new FormToolkit(CustomColors.FORM_COLOR(parent.getDisplay()));\r\n\t\tform = toolkit.createForm(parent);\r\n\t\ttoolkit.decorateFormHeading(form);\r\n\t\tform.getBody().setLayout(new FillLayout());\r\n\r\n\t\tfinal Composite composite = form.getBody();\r\n\r\n\t\t// tab folder\r\n\t\ttabFolder = new TabFolder(composite, SWT.NONE);\r\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\r\n\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t// assert valid\r\n\t\t\t\tif (e.item.getData() == null)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tif (!(e.item.getData() instanceof Location))\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\t// remove all location filter\r\n\t\t\t\tfor (ViewerFilter filter : viewer.getFilters()) {\r\n\t\t\t\t\tif (filter instanceof PersonalViewFilter)\r\n\t\t\t\t\t\tviewer.removeFilter(filter);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// cast to a location and apply the new filter\r\n\t\t\t\tLocation location = (Location) e.item.getData();\r\n\t\t\t\tviewer.addFilter(new PersonalViewFilter(location));\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tviewer = new TableViewer(tabFolder, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION);\r\n\t\tviewer.setContentProvider(new PersonalViewContentProvider());\r\n\t\tviewer.setLabelProvider(new PersonalViewLabelProvider());\r\n\t\tviewer.setInput(ModelFactory.getInstance().getRosterEntryManager().toArray());\r\n\t\tviewer.getTable().setLinesVisible(true);\r\n\r\n\t\t// set the tooltip\r\n\t\ttooltip = new PersonalTooltip(viewer.getControl());\r\n\t\t// show the tooltip when the selection has changed\r\n\t\tviewer.addSelectionChangedListener(new ISelectionChangedListener() {\r\n\r\n\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\tTableItem[] selection = viewer.getTable().getSelection();\r\n\t\t\t\tif (selection != null && selection.length > 0) {\r\n\t\t\t\t\tRectangle bounds = selection[0].getBounds();\r\n\t\t\t\t\ttooltip.show(new Point(bounds.x, bounds.y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tviewer.getTable().addMouseListener(new MouseAdapter() {\r\n\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\tif (viewer.getTable().getItem(new Point(e.x, e.y)) == null) {\r\n\t\t\t\t\tviewer.setSelection(new StructuredSelection());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// sort the table by default\r\n\t\tviewer.setSorter(new PersonalViewSorter(PersonalViewSorter.NAME_SORTER, SWT.UP));\r\n\t\tviewer.addFilter(new PersonalDateFilter(Calendar.getInstance()));\r\n\r\n\t\t// create the table for the roster entries\r\n\t\tfinal Table table = viewer.getTable();\r\n\t\ttable.setLinesVisible(true);\r\n\t\ttable.setHeaderVisible(true);\r\n\r\n\t\tfinal TableColumn lockColumn = new TableColumn(table, SWT.NONE);\r\n\t\tlockColumn.setToolTipText(\"Eintrag wird gerade bearbeitet\");\r\n\t\tlockColumn.setWidth(24);\r\n\t\tlockColumn.setText(\"L\");\r\n\r\n\t\tfinal TableColumn columnStandby = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnStandby.setToolTipText(\"Mitarbeiter auf Bereitschaft (Symbol, wenn der Fall)\");\r\n\t\tcolumnStandby.setWidth(30);\r\n\t\tcolumnStandby.setText(\"B\");\r\n\r\n\t\tfinal TableColumn columnNotes = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnNotes.setToolTipText(\"Anmerkung (Symbol, wenn Anmerkung vorhanden)\");\r\n\t\tcolumnNotes.setWidth(30);\r\n\t\tcolumnNotes.setText(\"A\");\r\n\r\n\t\tfinal TableColumn columnStaffName = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnStaffName.setWidth(130);\r\n\t\tcolumnStaffName.setText(\"Name\");\r\n\r\n\t\tfinal TableColumn columnWorkTime = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnWorkTime.setToolTipText(\"Dienst lt. Dienstplan\");\r\n\t\tcolumnWorkTime.setWidth(120);\r\n\t\tcolumnWorkTime.setText(\"Dienst\");\r\n\r\n\t\tfinal TableColumn columnCheckin = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnCheckin.setToolTipText(\"Zeit der tatsächlichen Anmeldung\");\r\n\t\tcolumnCheckin.setWidth(70);\r\n\t\tcolumnCheckin.setText(\"Anm\");\r\n\r\n\t\tfinal TableColumn columnCheckout = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnCheckout.setToolTipText(\"Zeit der tatsächlichen Abmeldung\");\r\n\t\tcolumnCheckout.setWidth(70);\r\n\t\tcolumnCheckout.setText(\"Abm\");\r\n\r\n\t\tfinal TableColumn columnService = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnService.setToolTipText(\"Dienstverhältnis\");\r\n\t\tcolumnService.setWidth(90);\r\n\t\tcolumnService.setText(\"DV\");\r\n\r\n\t\tfinal TableColumn columnJob = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnJob.setToolTipText(\"Verwendung\");\r\n\t\tcolumnJob.setWidth(80);\r\n\t\tcolumnJob.setText(\"V\");\r\n\r\n\t\tfinal TableColumn columnVehicle = new TableColumn(table, SWT.NONE);\r\n\t\tcolumnVehicle.setToolTipText(\"Fahrzeug, dem der Mitarbeiter zugewiesen ist\");\r\n\t\tcolumnVehicle.setWidth(55);\r\n\t\tcolumnVehicle.setText(\"Fzg\");\r\n\r\n\t\t// make the columns sortable\r\n\t\tListener sortListener = new Listener() {\r\n\r\n\t\t\tpublic void handleEvent(Event e) {\r\n\t\t\t\t// determine new sort column and direction\r\n\t\t\t\tTableColumn sortColumn = viewer.getTable().getSortColumn();\r\n\t\t\t\tTableColumn currentColumn = (TableColumn) e.widget;\r\n\t\t\t\tint dir = viewer.getTable().getSortDirection();\r\n\t\t\t\t// revert the sortorder if the column is the same\r\n\t\t\t\tif (sortColumn == currentColumn) {\r\n\t\t\t\t\tif (dir == SWT.UP)\r\n\t\t\t\t\t\tdir = SWT.DOWN;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tdir = SWT.UP;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tviewer.getTable().setSortColumn(currentColumn);\r\n\t\t\t\t\tdir = SWT.UP;\r\n\t\t\t\t}\r\n\t\t\t\t// sort the data based on column and direction\r\n\t\t\t\tString sortIdentifier = null;\r\n\t\t\t\tif (currentColumn == columnStaffName)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.NAME_SORTER;\r\n\t\t\t\tif (currentColumn == columnWorkTime)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.WORKTIME_SORTER;\r\n\t\t\t\tif (currentColumn == columnCheckin)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.CHECKIN_SORTER;\r\n\t\t\t\tif (currentColumn == columnCheckout)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.CHECKOUT_SORTER;\r\n\t\t\t\tif (currentColumn == columnService)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.SERVICE_SORTER;\r\n\t\t\t\tif (currentColumn == columnJob)\r\n\t\t\t\t\tsortIdentifier = PersonalViewSorter.JOB_SORTER;\r\n\t\t\t\t// apply the filter\r\n\t\t\t\tviewer.getTable().setSortDirection(dir);\r\n\t\t\t\tviewer.setSorter(new PersonalViewSorter(sortIdentifier, dir));\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// attach the listener\r\n\t\tcolumnStaffName.addListener(SWT.Selection, sortListener);\r\n\t\tcolumnWorkTime.addListener(SWT.Selection, sortListener);\r\n\t\tcolumnCheckin.addListener(SWT.Selection, sortListener);\r\n\t\tcolumnCheckout.addListener(SWT.Selection, sortListener);\r\n\t\tcolumnService.addListener(SWT.Selection, sortListener);\r\n\t\tcolumnJob.addListener(SWT.Selection, sortListener);\r\n\r\n\t\t// create the actions\r\n\t\tmakeActions();\r\n\t\thookContextMenu();\r\n\r\n\t\t// load the data\r\n\t\tloadData();\r\n\t}", "title": "" }, { "docid": "08a004678ca143a903c55bb8e892c62a", "score": "0.53632504", "text": "public void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"Service Catalogue for Bluemix Services\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Create and set up the content pane.\r\n\t\tServiceCatalog newContentPane = new ServiceCatalog();\r\n\t\tnewContentPane.setOpaque(true); // content panes must be opaque\r\n\t\tframe.setContentPane(newContentPane);\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "title": "" }, { "docid": "c0ad2b853d86f6605136b7a30f10610f", "score": "0.5363153", "text": "public DesktopViewer() {\r\n initComponents();\r\n detektor = new Detector(filePath);\r\n }", "title": "" }, { "docid": "fdfafe08d846139afa4d9e0cceee0cad", "score": "0.53621167", "text": "protected void createPartControl(Composite parent) {\r\n\t\r\n\t // Get the some settings from the preference store\r\n\t useGross = (preferences.getInt(Constants.PREFERENCES_DOCUMENT_USE_NET_GROSS) == DocumentSummary.ROUND_NET_VALUES);\r\n\t\r\n\t // Create the top Composite\r\n\t top = new Composite(parent, SWT.NONE);\r\n\t GridLayoutFactory.swtDefaults().numColumns(2).applyTo(top);\r\n\t\r\n\t // Add context help reference \r\n\t// PlatformUI.getWorkbench().getHelpSystem().setHelp(top, helpID);\r\n\t\r\n\t // Create the top Composite\r\n\t Composite titlebar = new Composite(top, SWT.NONE);\r\n\t GridLayoutFactory.swtDefaults().numColumns(2).applyTo(titlebar);\r\n\t GridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, false).span(2, 1).applyTo(titlebar);\r\n\t\r\n\t // Large title\r\n\t Label labelTitle = new Label(titlebar, SWT.NONE);\r\n\t \r\n\t //T: VoucherEditor - Title\r\n\t labelTitle.setText(getEditorTitle());\r\n\t GridDataFactory.fillDefaults().align(SWT.CENTER, SWT.CENTER).grab(true, false).applyTo(labelTitle);\r\n\t makeLargeLabel(labelTitle);\r\n\t \r\n\t // The \"book\" label\r\n\t bBook = new Button(titlebar, SWT.CHECK | SWT.RIGHT);\r\n\t bBook.setSelection(!BooleanUtils.toBoolean(voucher.getDoNotBook()));\r\n\t// bindModelValue(voucher, bBook, Voucher_.doNotBook.getName());\r\n\t\r\n\t //T: Label voucher editor\r\n\t bBook.setText(msg.editorVoucherFieldBookName);\r\n\t bBook.setToolTipText(msg.editorVoucherFieldBookTooltip);\r\n\t \r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.BOTTOM).applyTo(bBook);\r\n\t \r\n\t // If the book check box is selected ...\r\n\t bBook.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> { \r\n\t if (!bBook.getSelection()) {\r\n\t //T: Dialog in the voucher editor to uncheck the book field \r\n\t if (MessageDialog.openConfirm(parent.getShell(), msg.editorVoucherDialogBookConfirmHeader,\r\n\t msg.editorVoucherDialogBookConfirmWarning)) {\r\n\t bBook.setSelection(false);\r\n\t getMDirtyablePart().setDirty(true);\r\n\t }\r\n\t }\r\n\t }));\r\n\t \r\n\t // Voucher category\r\n\t Label labelCategory = new Label(top, SWT.NONE);\r\n\t\r\n\t //T: Label in the voucher editor\r\n\t labelCategory.setText(msg.commonFieldAccount);\r\n\t labelCategory.setToolTipText(msg.commonFieldAccountTooltip);\r\n\t \r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelCategory);\r\n\t\r\n\t comboCategory = new CCombo(top, SWT.BORDER);\r\n\t comboCategory.setToolTipText(msg.commonFieldAccountTooltip);\r\n//\t fillAndBindCategoryCombo();\r\n\t GridDataFactory.fillDefaults().grab(true, false).applyTo(comboCategory);\r\n\t\r\n\t // Document date\r\n\t Label labelDate = new Label(top, SWT.NONE);\r\n\t //T: Label in the voucher editor\r\n\t labelDate.setText(msg.commonFieldDate);\r\n\t labelDate.setToolTipText(msg.editorVoucherFieldDateTooltip);\r\n\t\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelDate);\r\n\t\r\n\t // Document date\r\n\t dtDate = new CDateTime(top, CDT.BORDER | CDT.DROP_DOWN);\r\n\t dtDate.setToolTipText(labelDate.getToolTipText());\r\n\t dtDate.setFormat(CDT.DATE_MEDIUM);\r\n\t GridDataFactory.swtDefaults().hint(150, SWT.DEFAULT).applyTo(dtDate);\r\n\t\r\n\t // Number\r\n\t Label labelNr = new Label(top, SWT.NONE);\r\n\t //T: Label in the voucher editor\r\n\t labelNr.setText(msg.editorVoucherFieldNumberName);\r\n\t labelNr.setToolTipText(msg.editorVoucherFieldNumberTooltip);\r\n\t\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelNr);\r\n\t textNr = new Text(top, SWT.BORDER);\r\n\t textNr.setToolTipText(labelNr.getToolTipText());\r\n\t GridDataFactory.fillDefaults().grab(true, false).applyTo(textNr);\r\n\t\r\n\t // Document number\r\n\t Label labelDocumentNr = new Label(top, SWT.NONE);\r\n\t //T: Label in the voucher editor\r\n\t labelDocumentNr.setText(msg.editorVoucherFieldDocumentnumberName);\r\n\t labelDocumentNr.setToolTipText(msg.editorVoucherFieldDocumentnumberTooltip);\r\n\t\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelDocumentNr);\r\n\t textDocumentNr = new Text(top, SWT.BORDER);\r\n\t textDocumentNr.setToolTipText(msg.editorVoucherFieldDocumentnumberTooltip);\r\n\t GridDataFactory.fillDefaults().grab(true, false).applyTo(textDocumentNr);\r\n\t\r\n\t // Supplier name\r\n\t Label labelName = new Label(top, SWT.NONE);\r\n\t\r\n\t labelName.setText(customerSupplier);\r\n\t labelName.setToolTipText(MessageFormat.format(msg.editorVoucherFieldCustomersupplierName, getCustomerSupplierString()));\r\n\t \r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelName);\r\n\t textName = new Text(top, SWT.BORDER);\r\n\t textName.setToolTipText(labelName.getToolTipText());\r\n\t \r\n\t // Add the suggestion listener\r\n\t String[] nameProposals = getNameProposals(MAX_PROPOSAL_LIST_LENGTH);\r\n\t if(nameProposals.length > 0) {\r\n\t\t ControlDecoration decoration = new ControlDecoration(textName, SWT.LEFT | SWT.TOP);\r\n\t\t Image hintImage = FieldDecorationRegistry.getDefault()\r\n\t\t \t\t.getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL).getImage();\r\n\t\t \t\tdecoration.setImage(hintImage);\t \r\n\t\t decoration.setImage(hintImage);\r\n\t\t decoration.setDescriptionText(msg.editorVoucherFieldCustomersupplierHint);\r\n\t\t decoration.setShowOnlyOnFocus(true);\r\n\t\t decoration.setShowHover(true);\r\n\t \tnew AutoCompleteField(textName, new TextContentAdapter(), nameProposals);\r\n\t }\r\n\t \r\n\t GridDataFactory.fillDefaults().grab(true, false).applyTo(textName);\t\r\n\t\r\n\t/* * * * * * * * * * * * * here the items list table is created * * * * * * * * * * * * */ \r\n\t VoucherItemListBuilder itemListBuilder = ContextInjectionFactory.make(VoucherItemListBuilder.class, context);\r\n\t itemListTable = itemListBuilder\r\n\t .withParent(top)\r\n\t .withVoucher(voucher)\r\n\t// .withNetGross(netgross)\r\n\t .withContainer(this)\r\n\t .withUseGross(useGross)\r\n\t .build();\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ \r\n\t\r\n\t // Create the bottom Composite\r\n\t Composite bottom = new Composite(top, SWT.NONE);\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).span(2,1).applyTo(bottom);\r\n\t \r\n\t GridLayoutFactory.swtDefaults().numColumns(5).applyTo(bottom);\r\n\t\r\n\t // The paid label\r\n\t bPaidWithDiscount = new Button(bottom, SWT.CHECK | SWT.RIGHT);\r\n\t //T: Mark a voucher, if the paid value is not equal to the total value.\r\n\t bPaidWithDiscount.setText(msg.editorVoucherFieldWithdiscountName);\r\n\t bPaidWithDiscount.setToolTipText(msg.editorVoucherFieldWithdiscountTooltip);\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(bPaidWithDiscount);\r\n\t\r\n\t // If the bPaidWithDiscount check box is selected ...\r\n\t bPaidWithDiscount.addSelectionListener(SelectionListener.widgetSelectedAdapter(e -> { \r\n\t if (textPaidValue != null) {\r\n\t boolean selection = bPaidWithDiscount.getSelection();\r\n\t \r\n\t // If selected and the paid value was not already set,\r\n\t // use the total value\r\n\t if (selection && paidValue.isZero()) {\r\n\t paidValue = totalValue;\r\n\t textPaidValue.setValue(paidValue);\r\n\t }\r\n\t\r\n\t textPaidValue.getControl().setVisible(selection);\r\n\t labelPaidValue.setVisible(selection);\r\n\t }\r\n\t }));\r\n\t\r\n\t \r\n\t labelPaidValue = new Label(bottom, SWT.NONE);\r\n\t //T: Label in the voucher editor\r\n\t labelPaidValue.setText(msg.editorVoucherFieldPaidvalueName + \":\");\r\n\t labelPaidValue.setToolTipText(msg.editorVoucherFieldPaidvalueTooltip);\r\n\t labelPaidValue.setVisible(bPaidWithDiscount.getSelection());\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelPaidValue);\r\n\t\r\n\t paidValue = Money.of(java.util.Optional.ofNullable(voucher.getPaidValue()).orElse(Double.valueOf(0.0)), currencyUnit);\r\n\t\r\n\t textPaidValue = new FormattedText(bottom, SWT.BORDER | SWT.RIGHT);\r\n\t textPaidValue.setFormatter(ContextInjectionFactory.make(MoneyFormatter.class, context));\r\n\t textPaidValue.getControl().setVisible(BooleanUtils.isTrue(voucher.getDiscounted()));\r\n\t textPaidValue.getControl().setToolTipText(labelPaidValue.getToolTipText());\r\n\t GridDataFactory.swtDefaults().hint(80, SWT.DEFAULT).align(SWT.END, SWT.CENTER).applyTo(textPaidValue.getControl());\r\n\t\r\n\t // Total value\r\n\t Label labelTotalValue = new Label(bottom, SWT.NONE);\r\n\t //T: Label in the voucher editor\r\n\t labelTotalValue.setText(msg.editorVoucherFieldTotalvalueName + \":\");\r\n\t //T: Tool Tip Text\r\n\t labelTotalValue.setToolTipText(msg.editorVoucherFieldTotalvalueTooltip);\r\n\t GridDataFactory.swtDefaults().align(SWT.END, SWT.CENTER).applyTo(labelTotalValue);\r\n\t\r\n\t totalValue = Money.of(java.util.Optional.ofNullable(voucher.getTotalValue()).orElse(Double.valueOf(0.0)), currencyUnit);\r\n\t\r\n\t textTotalValue = new FormattedText(bottom, SWT.BORDER | SWT.RIGHT);\r\n\t textTotalValue.setFormatter(ContextInjectionFactory.make(MoneyFormatter.class, context));\r\n\t textTotalValue.getControl().setEditable(false);\r\n\t textTotalValue.getControl().setToolTipText(labelTotalValue.getToolTipText());\r\n\t GridDataFactory.swtDefaults().hint(80, SWT.DEFAULT).align(SWT.END, SWT.CENTER).applyTo(textTotalValue.getControl());\r\n\t \r\n\t bindModel();\r\n\t }", "title": "" }, { "docid": "8238073355287b4ff5ef419ee9c8c388", "score": "0.5361266", "text": "public NewEntryView() \n { \n initComponents();\n this.setSize(870,570);\n this.setLocationRelativeTo(null);\n System.setProperty(\"jna.library.path\", vlcPath);\n //NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), vlcPath);\n //NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcCoreName(), vlcPath);\n jScrollPane2.getVerticalScrollBar().setUnitIncrement(20);\n jScrollPane2.getHorizontalScrollBar().setUnitIncrement(20);\n previewVideoButton.setVisible(false);\n pauseButton.setVisible(false);\n stopButton.setVisible(false); \n imageNumber = 0;\n imageFiles = new File[30];\n maxImageNumber = 30;\n entryAlreadyExistsLabel.setVisible(false);\n entryAlreadyExistsLabel.setText(\"Warning! An Entry With This Title Already Exists!\");\n submitButton.setEnabled(false);\n imageExceedLabel.setVisible(false);\n }", "title": "" }, { "docid": "ba0589b846f0ebf5e5afcfc6bb0d294b", "score": "0.53550667", "text": "public void buildDocument() {\n/* 105 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 107 */ syncAccessMethods();\n/* */ }", "title": "" }, { "docid": "e165ce6d6d512078278f0fde663a2d36", "score": "0.5354302", "text": "public DetailViewPanel() {\n initComponents();\n \n }", "title": "" }, { "docid": "98dfcb6d6ff04c1d09e9aabda93c36c3", "score": "0.535232", "text": "public NewJPanel() {\n initComponents();\n }", "title": "" }, { "docid": "98dfcb6d6ff04c1d09e9aabda93c36c3", "score": "0.535232", "text": "public NewJPanel() {\n initComponents();\n }", "title": "" }, { "docid": "dd8e50f904dabca6893ac993149852a4", "score": "0.53445137", "text": "public MoviePageView(Page parent) {\n super(parent);\n initComponents();\n boxLayout = new BoxLayout(panel, BoxLayout.Y_AXIS);\n panel.setLayout(boxLayout);\n this.setVisible(true);\n \n }", "title": "" }, { "docid": "83c078995e45514e7ab65dce8d1fa427", "score": "0.53438646", "text": "public void createButtonPanel() { \n\n Button_Panel = this.getButtonPanel();\n \n }", "title": "" }, { "docid": "b33a6d10daeede56e074d65c0f8e521e", "score": "0.53431815", "text": "private void createViewFormHelper(final Composite parent, String text) {\r\n // Create the ViewForm\r\n final ViewForm vf = new ViewForm(parent, SWT.BORDER);\r\n\r\n // Create the CLabel for the top left, which will have an image and text\r\n CLabel label = new CLabel(vf, SWT.NONE);\r\n label.setText(text);\r\n label.setImage(lookImage);\r\n label.setAlignment(SWT.LEFT);\r\n vf.setTopLeft(label);\r\n\r\n // Create the downward-pointing arrow to display the menu\r\n // and set it as the top center\r\n final ToolBar tbMenu = new ToolBar(vf, SWT.FLAT);\r\n final ToolItem itemMenu = new ToolItem(tbMenu, SWT.PUSH);\r\n itemMenu.setImage(menuImage);\r\n vf.setTopCenter(tbMenu);\r\n\r\n // Create the close button and set it as the top right\r\n ToolBar tbClose = new ToolBar(vf, SWT.FLAT);\r\n ToolItem itemClose = new ToolItem(tbClose, SWT.PUSH);\r\n itemClose.setText(\"X\");\r\n itemClose.addSelectionListener(new SelectionAdapter() {\r\n public void widgetSelected(SelectionEvent event) {\r\n vf.dispose();\r\n parent.layout();\r\n }\r\n });\r\n vf.setTopRight(tbClose);\r\n\r\n // Create the content--a multi-line text box\r\n final Text textArea = new Text(vf, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);\r\n vf.setContent(textArea);\r\n\r\n // Create the menu to display when the down arrow is pressed\r\n final Menu menu = new Menu(tbMenu);\r\n MenuItem clear = new MenuItem(menu, SWT.NONE);\r\n clear.setText(\"Clear\");\r\n clear.addSelectionListener(new SelectionAdapter() {\r\n public void widgetSelected(SelectionEvent event) {\r\n textArea.setText(\"\");\r\n }\r\n });\r\n\r\n // Add the handler to display the menu\r\n itemMenu.addSelectionListener(new SelectionAdapter() {\r\n public void widgetSelected(SelectionEvent event) {\r\n // Place the menu right below the toolbar button\r\n Rectangle rect = itemMenu.getBounds();\r\n menu.setLocation(tbMenu.toDisplay(rect.x, rect.y + rect.height));\r\n menu.setVisible(true);\r\n }\r\n });\r\n }", "title": "" }, { "docid": "b3aceca942118dae16d8f15b506d1c4b", "score": "0.5339098", "text": "AsynchClientTask[] newDocument(TopLevelWindowManager requester, VCDocument.DocumentCreationInfo documentCreationInfo);", "title": "" }, { "docid": "81eabe8767375742de58c38e6d8a9ed3", "score": "0.533568", "text": "@Override\n\tpublic void createEditPanel(IPanel iPanel)\n\t{\t\n\t\tthis.iPanel = iPanel;\n\t\t\n\t\teditPanel = new JPanel();\n\t\t// editPanel.setLayout(new BoxLayout(editPanel, BoxLayout.Y_AXIS));\n\t\teditPanel.setBorder(GUIBitsAndBobs.getTitledBorder(\"Net of regular 4-simplex\"));\n\t\teditPanel.setLayout(new MigLayout(\"insets 0\"));\n\t\t\n\t\t// a text field containing the description\n\t\tdescriptionPanel = new LabelledStringPanel(\"Description\");\n\t\teditPanel.add(descriptionPanel, \"wrap\");\n\n\t\tJTabbedPane tabbedPane = new JTabbedPane();\n\t\teditPanel.add(tabbedPane, \"wrap\");\n\t\t\n\t\t\n\n\t\t//\n\t\t// the main parameters panel\n\t\t//\n\t\t\n\t\tJPanel mainParametersPanel = new JPanel();\n\t\tmainParametersPanel.setLayout(new MigLayout(\"insets 0\"));\n\t\t\n\t\tcentroidPanel = new LabelledVector3DPanel(\"Centroid\");\n\t\tmainParametersPanel.add(centroidPanel, \"wrap\");\n\t\t\n\t\tedgeLengthPanel = new LabelledDoublePanel(\"Edge length\");\n\t\tmainParametersPanel.add(edgeLengthPanel, \"wrap\");\n\t\t\n\n\t\tdirectionToVertex0Panel = new LabelledVector3DPanel(\"Direction to vertex #0\");\n\t\tmainParametersPanel.add(directionToVertex0Panel, \"wrap\");\n\n\t\tdirectionVertex1ToVertex2Panel = new LabelledVector3DPanel(\"Direction vertex #1 to vertex #2\");\n\t\tmainParametersPanel.add(directionVertex1ToVertex2Panel, \"wrap\");\n\t\t\n\t\tshowSpaceCancellingWedgesCheckBox = new JCheckBox(\"Show null-space wedges\");\n\t\tmainParametersPanel.add(showSpaceCancellingWedgesCheckBox, \"wrap\");\n\t\t\n\t\tspaceCancellingWedgeLegLengthFactorPanel = new LabelledDoublePanel(\"Leg length factor\");\n\t\tmainParametersPanel.add(spaceCancellingWedgeLegLengthFactorPanel, \"wrap\");\n\t\t\n\t\tgluingTypeComboBox = new JComboBox<GluingType>(GluingType.values());\n\t\tgluingTypeComboBox.addActionListener(this);\n\t\tmainParametersPanel.add(gluingTypeComboBox, \"wrap\");\n\t\t\n\t\tspaceCancellingWedgeSurfaceTransmissionCoefficientPanel = new LabelledDoublePanel(\"Transmission coefficient of null-space-wedge surfaces\");\n\t\tmainParametersPanel.add(spaceCancellingWedgeSurfaceTransmissionCoefficientPanel, \"wrap\");\n\t\t\n\t\tnumberOfNegativeSpaceWedgesPanel = new LabelledIntPanel(\"Number of negative-space wedges per null-space wedge\");\n\t\tmainParametersPanel.add(numberOfNegativeSpaceWedgesPanel, \"wrap\");\n\t\t\n\t\ttabbedPane.addTab(\"Main parameters\", mainParametersPanel);\n\n\t\t//\n\t\t// the structure-visualisation panel\n\t\t//\n\t\t\n\t\tJPanel structureVisualisationPanel = new JPanel();\n\t\tstructureVisualisationPanel.setLayout(new MigLayout(\"insets 0\"));\n\t\t\n\t\tshowNetEdgesCheckBox = new JCheckBox(\"Show structure (edges and faces) of net of 4-simplex\");\n\t\tstructureVisualisationPanel.add(showNetEdgesCheckBox, \"wrap\");\n\n\t\tshowSpaceCancellingWedgesEdgesCheckBox = new JCheckBox(\"Show edges of null-space wedges\");\n\t\tstructureVisualisationPanel.add(showSpaceCancellingWedgesEdgesCheckBox, \"wrap\");\n\n\t\tedgeRadiusPanel = new LabelledDoublePanel(\"Tube radius\");\n\t\tstructureVisualisationPanel.add(edgeRadiusPanel, \"wrap\");\n\n\t\tnetStructureSurfacePropertyPanel = new SurfacePropertyPanel(\"Surface of net edges\", getStudio().getScene());\n\t\t// frameSurfacePropertyPanel.addButtonsActionListener(new SurfacePropertyPanelListener(frameSurfacePropertyPanel));\n\t\tstructureVisualisationPanel.add(netStructureSurfacePropertyPanel, \"wrap\");\n\t\tnetStructureSurfacePropertyPanel.setIPanel(iPanel);\n\n\t\tnetFaceSurfacePropertyPanel = new SurfacePropertyPanel(\"Surface of net faces\", getStudio().getScene());\n\t\t// frameSurfacePropertyPanel.addButtonsActionListener(new SurfacePropertyPanelListener(frameSurfacePropertyPanel));\n\t\tstructureVisualisationPanel.add(netFaceSurfacePropertyPanel, \"wrap\");\n\t\tnetFaceSurfacePropertyPanel.setIPanel(iPanel);\n\t\t\n\t\tspaceCancellingWedgeEdgesSurfacePropertyPanel = new SurfacePropertyPanel(\"Surface of null-space-wedge edges\", getStudio().getScene());\n\t\t// frameSurfacePropertyPanel.addButtonsActionListener(new SurfacePropertyPanelListener(frameSurfacePropertyPanel));\n\t\tstructureVisualisationPanel.add(spaceCancellingWedgeEdgesSurfacePropertyPanel, \"wrap\");\n\t\tspaceCancellingWedgeEdgesSurfacePropertyPanel.setIPanel(iPanel);\n\n\t\ttabbedPane.addTab(\"Structure-visualisation details\", structureVisualisationPanel);\n\n\t\t// the convert button\n\n\t\tconvertButton = new JButton(\"Convert to collection of scene objects\");\n\t\tconvertButton.addActionListener(this);\n\t\teditPanel.add(convertButton);\n\t\t\n\t\t// validate the entire edit panel\n\t\teditPanel.validate();\n\t}", "title": "" }, { "docid": "5a6f96851a0bca862db3dd118156140c", "score": "0.53313416", "text": "public Component createDisplay() {\n JPanel displayPanel = new JPanel();\n\n //Add various widgets to the sub panels.\n // addWidgets();\n\n //Create the main panel to contain the two sub panels.\n JPanel mainPanel = new JPanel();\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));\n // Add border around the select panel\n\nmainPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(\"Premiership\"),\n BorderFactory.createEmptyBorder(5,5,5,5)));\n\n //Add display panels to the main panel.\n mainPanel.add(displayPanel);\n return mainPanel;\n }", "title": "" }, { "docid": "2ee85044c593da621f982276900c0fe9", "score": "0.5330788", "text": "public JPanel createJPanel()\r\n {\r\n contentPane = new JPanel();\r\n textArea = new JTextArea(screenBounds.height / 20, screenBounds.width / 15);\r\n textArea.setTabSize(2);\r\n\r\n scrollArea = new JScrollPane(textArea);\r\n\r\n contentPane.add(scrollArea);\r\n\r\n return contentPane;\r\n\r\n }", "title": "" }, { "docid": "23a34fac4fc4d1fbbdb662964c5659c0", "score": "0.53305686", "text": "public EditorGUI() {\n initComponents();\n\n this.editor = new Editor(this, jTextArea1, jLabelFind, jLabelStstus);\n jTextArea1.getDocument().addDocumentListener(this);\n\n FileNameExtensionFilter FILTER = new FileNameExtensionFilter(\n \"Documentos de texto plano .txt\", \"txt\");\n jFileChooser1.setFileFilter(FILTER);\n\n }", "title": "" }, { "docid": "c474e32a22c53378a310fee99f87ec71", "score": "0.5318445", "text": "public JPanel buildContentPanel() {\n this.getJP().add(textField);\n this.getJP().add(passwordField);\n this.getJP().add(button);\n return this.getJP();\n }", "title": "" } ]
b1ff1c5d79dcebea6fb81e8fd2ebe3ca
Get the preferred group length.
[ { "docid": "5e1d7a9feef6922cfa801a128ea98907", "score": "0.80120075", "text": "public int getPref_group_len()\n\t{\n\t\treturn pref_group_len;\n\t}", "title": "" } ]
[ { "docid": "cdf9fbd2265529ef26795d945c6485ff", "score": "0.7686633", "text": "public int getMax_group_len()\n\t{\n\t\treturn max_group_len;\n\t}", "title": "" }, { "docid": "399ad914c591f59a6c74a36d1dda7f7b", "score": "0.76771", "text": "public int getMin_group_len()\n\t{\n\t\treturn min_group_len;\n\t}", "title": "" }, { "docid": "cd2dbabd9b00f3bcac19c5bdd1960a03", "score": "0.6875718", "text": "public int getNumberOfGroups() {\n return getInteger(11, -2);\n }", "title": "" }, { "docid": "9e35ca3e8eb8b4787c2ed9970e7c3392", "score": "0.65303576", "text": "public int getCurrentGroupSize() {\r\n return currentGroupSize;\r\n }", "title": "" }, { "docid": "95f70fdb2d1640741695f767e2595663", "score": "0.65115523", "text": "@JsonProperty(\"maxPlacementGroupSize\")\n public Integer getMaxPlacementGroupSize() {\n return this.max_placement_group_size;\n }", "title": "" }, { "docid": "761eb56e09d0f580db55424f93467202", "score": "0.6321872", "text": "@Override\n\t\tpublic int getGroupCount() {\n\t\t\treturn padre.length;\n\t\t}", "title": "" }, { "docid": "ede88fb6f2682a61cdbe0b56ee7f3057", "score": "0.6214413", "text": "public Proportion getDefaultLength()\n {\n return defaultLength;\n }", "title": "" }, { "docid": "4811ebaf52cca73bcafc999c6e5b5114", "score": "0.6201785", "text": "@Accessor(qualifier = \"groupLimit\", type = Accessor.Type.GETTER)\n\tpublic Integer getGroupLimit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(GROUPLIMIT);\n\t}", "title": "" }, { "docid": "7bc040668acdd85954b28baf80a997a4", "score": "0.61473554", "text": "public int getGroupIndentSize() {\n\t\treturn getAttributeAsInt(\"groupIndentSize\");\n\t}", "title": "" }, { "docid": "3cb4ed32b570e936436241a170aa3ac1", "score": "0.6107799", "text": "public int getGroupGap() {\r\n return _layout.getGroupGap();\r\n }", "title": "" }, { "docid": "451749a3b7a04597e6c0310dfa06a8d9", "score": "0.6101926", "text": "private Optional<Integer> evaluateGrpCount() {\n try {\n Integer grpCount = Integer.parseInt(this.txtGrpCount.getText());\n return Optional.of(grpCount);\n } catch (NumberFormatException ex) {\n return Optional.empty();\n }\n }", "title": "" }, { "docid": "bc6d400eb2e813c5f71111a54ee05ce8", "score": "0.6014267", "text": "private int largestPriorityStringWidth() {\n int prefixCharLen = dash.length() + 1;\n int largestWidth = 0;\n\n for (Priority p : Priority.values()) {\n int length = p.priName.length() + prefixCharLen;\n\n largestWidth = Math.max(largestWidth, length);\n }\n\n return largestWidth;\n }", "title": "" }, { "docid": "a31066c5652c291507d230c569392a3a", "score": "0.59679455", "text": "@JsonProperty(\"maxPlacementGroupCoreSize\")\n public Integer getMaxPlacementGroupCoreSize() {\n return this.max_placement_group_core_size;\n }", "title": "" }, { "docid": "55e6cd8c51870379e51f8b8f07e0d516", "score": "0.59536755", "text": "protected int getDefaultLength() {\n return DEFAULT_LENGTH;\n }", "title": "" }, { "docid": "801d78a936c3be3a654c6e6fd0c51c20", "score": "0.59417415", "text": "int getGroupBookingSize();", "title": "" }, { "docid": "6c916a9659aa266ed7ef1f30aa86ccd3", "score": "0.5934795", "text": "public Integer getGroupGranularity() {\r\n return getAttributeAsInt(\"groupGranularity\");\r\n }", "title": "" }, { "docid": "86241ae8655d519b9b83c2abe16f398d", "score": "0.59208566", "text": "public int getPreferredWidth() {\n\t return new Double(Display.getWidth() * 0.25).intValue();\n\t}", "title": "" }, { "docid": "fa044742e4f38aba9e51e380852f566d", "score": "0.58729297", "text": "public final String getMaxLength()\n {\n String maxLength94a = this.maxLength94a;\n if (!this.maxLength94aSet)\n {\n // maxLength has no pre constraints\n maxLength94a = handleGetMaxLength();\n // maxLength has no post constraints\n this.maxLength94a = maxLength94a;\n if (isMetafacadePropertyCachingEnabled())\n {\n this.maxLength94aSet = true;\n }\n }\n return maxLength94a;\n }", "title": "" }, { "docid": "331bf643a87969b6b1fb688fc7623f1d", "score": "0.58464825", "text": "public int getMaxLength( ) {\n return( ml );\n }", "title": "" }, { "docid": "d3d5936f3e0da2a168cd5cb910154917", "score": "0.5844231", "text": "public int getNumGroups() { return numGroups; }", "title": "" }, { "docid": "2fbcf11dfa97562ee64a8b113a8f76cf", "score": "0.5839491", "text": "public int getGapLength() {\r\n\t\treturn state.getGap();\r\n\t}", "title": "" }, { "docid": "200c8baa514fed7324fef6500d18774b", "score": "0.58087915", "text": "int getGroupMembersSize(String groupID) throws Exception;", "title": "" }, { "docid": "612441b8b28d1fc544d43acbcd5905ac", "score": "0.579306", "text": "public int getGroupIconSize() {\n\t\treturn getAttributeAsInt(\"groupIconSize\");\n\t}", "title": "" }, { "docid": "3a010b97e6dd71ada8c6ad59cf017d53", "score": "0.57638407", "text": "public int getPreferredLabelWidth() \n { \n return(keyLabel.getPreferredSize().width);\n }", "title": "" }, { "docid": "b802d517a6c7b13a5f2cbefa8d598e0c", "score": "0.57582396", "text": "java.lang.String getNominalLength();", "title": "" }, { "docid": "9288a72c0193f92882153e4b4f64ab9d", "score": "0.57397914", "text": "public int getSize()\n {\n int size = this.getContactListSize(rootGroup);\n\n return size;\n }", "title": "" }, { "docid": "a57a24d62dd74c71d617ab5f35ffc68a", "score": "0.5707108", "text": "public String getEditLoaderMinGroupSize() {\r\n return editLoaderMinGroupSize;\r\n }", "title": "" }, { "docid": "3f00246fa3105e4899ee8196dca6d63f", "score": "0.5700051", "text": "public int getMaxLength() {\r\n return this.maxLength;\r\n }", "title": "" }, { "docid": "6fb53078f237659c69a083b8e48cb974", "score": "0.56606996", "text": "public int getMaxWidth();", "title": "" }, { "docid": "9ce3cad9eecf7ade2c140757fe23e476", "score": "0.56378096", "text": "public Integer getMinimumLength() {\n\t\treturn this.MinimumLength;\n\t}", "title": "" }, { "docid": "bab31dbf5fb5ae12a1cc74a11da76240", "score": "0.5633869", "text": "private static int findMaxNameLen() {\n return results.stream()\n .map(r -> r.name)\n .map(n -> n.length())\n .max(Comparator.naturalOrder())\n .get();\n }", "title": "" }, { "docid": "573025f3c06d6f976fb9ff41bf4910fc", "score": "0.5614888", "text": "public int getLength() {\n return this.definedLength > 0 ? this.definedLength : this.length;\n }", "title": "" }, { "docid": "50e13a3be94c52d939002f7e795c3bc7", "score": "0.5600953", "text": "public int maxLength() {\n return maxLength;\n }", "title": "" }, { "docid": "11b2acf1ee88b4418dfd979147b3743b", "score": "0.55966634", "text": "public java.lang.String getGroupdef10() {\r\n return groupdef10;\r\n }", "title": "" }, { "docid": "3091e732a8eedfb04e4630a37223761c", "score": "0.55938476", "text": "public String getEditLoaderMinGroupNumberOfMembers() {\r\n return editLoaderMinGroupNumberOfMembers;\r\n }", "title": "" }, { "docid": "1d3c22f6b50b63f768698e3dd6568999", "score": "0.5589034", "text": "public int getLength() {\n\t\treturn rung;\n\t}", "title": "" }, { "docid": "6723ad4acfa3d31de1302e8a68ac5f92", "score": "0.5581602", "text": "@DISPID(2353)\r\n @PropGet\r\n int getMaxCharacters();", "title": "" }, { "docid": "e16a10fb9e75b9ade4ba205b1ee30927", "score": "0.55460316", "text": "public static int getMaxFieldLength() {\r\n return MainWindow.maxFieldLength;\r\n }", "title": "" }, { "docid": "ff74e35008c3bc1254e54b169080e04a", "score": "0.55426335", "text": "protected int getPreferredWidth() {\n return 350;\r\n }", "title": "" }, { "docid": "6bff326924e2b348f8e10a1759cb07f3", "score": "0.5537757", "text": "public int getMaxLength() {\n return maxLength;\n }", "title": "" }, { "docid": "5424b2534e0085cfd86b6d4e46323002", "score": "0.5535921", "text": "public int getGroupCount() {\r\n\t\treturn groups.size();\r\n\t}", "title": "" }, { "docid": "ac561f82805795fe4ad2feb1c8c03aa2", "score": "0.55358136", "text": "public static int getMaxSubPeerGroups() {\r\n\t\treturn maxSubPeerGroups;\r\n\t}", "title": "" }, { "docid": "eb4a51351b2546a99a5f332c812345af", "score": "0.55229974", "text": "public int size() {\n return stringGroup.size();\n }", "title": "" }, { "docid": "50a7a06f5bad16daf67cdaa575e95731", "score": "0.5517268", "text": "public int getGrouping( ) {\n return( gid );\n }", "title": "" }, { "docid": "5cb2affd7933226c27f3f6f7d626e300", "score": "0.55106217", "text": "int getFamilyCapacity();", "title": "" }, { "docid": "0bbd8a5d2a423ede6eb50c6c67fca18a", "score": "0.5505961", "text": "protected double getMaxLength() {\n\t\treturn maxLength;\n\t}", "title": "" }, { "docid": "f51a99a7aff85a9e36c479aaaa31dd9c", "score": "0.5503745", "text": "public int sizeOfGroupArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GROUP$10);\r\n }\r\n }", "title": "" }, { "docid": "b7337d421ec3581658be7b719d8e10c2", "score": "0.5503111", "text": "public Integer getCheckpointGroupSize() {\n return checkpointGroupSize;\n }", "title": "" }, { "docid": "03c2329e58881329dc7af71e731d16d7", "score": "0.5503066", "text": "public int[] maxComputeWorkGroupSize(){\n\t\t int[] var = getMaxComputeWorkGroupSize0(super.ptr, maxComputeWorkGroupSize);\n\t\t this.maxComputeWorkGroupSize = var;\n\t\t return this.maxComputeWorkGroupSize;\n\t }", "title": "" }, { "docid": "8c47417add629a27a4404d3585c023d1", "score": "0.5495359", "text": "public int getGroupCount()\n {\n int n = 1;\n\n switch (type)\n {\n case Variable.CATEGORICAL:\n n = levels.size();\n break;\n case Variable.NUMERIC:\n //n = tm.getNumOfIntervals();\n n=grouping.getNumberOfRanges();\n break;\n }\n\n return n;\n }", "title": "" }, { "docid": "c5549a130a2caaf610f158dd24376815", "score": "0.54943013", "text": "public int getMinLength() {\r\n\t\treturn minLength;\r\n\t}", "title": "" }, { "docid": "c5549a130a2caaf610f158dd24376815", "score": "0.54943013", "text": "public int getMinLength() {\r\n\t\treturn minLength;\r\n\t}", "title": "" }, { "docid": "f45ff12b698028b8a36cd66c877fa118", "score": "0.54917884", "text": "int getMatchLength();", "title": "" }, { "docid": "90e7c5cb3d69078c4f7180bb5b8aec6b", "score": "0.5489209", "text": "protected int getMaxFieldWidth() {\n \t\treturn convertWidthInCharsToPixels(40);\n \t}", "title": "" }, { "docid": "4a258f77faeacabb2734d5aa7a17f8bb", "score": "0.5487515", "text": "public Integer getLEN() {\n return LEN;\n }", "title": "" }, { "docid": "2188b5d796edf9388150070feea18e9d", "score": "0.5487075", "text": "public int size() { return _groups.size(); }", "title": "" }, { "docid": "2c60c25970ec15d2c4ffcbd787777bcc", "score": "0.5485629", "text": "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getMinSize();", "title": "" }, { "docid": "d7d5427f55c8d22f2e8dea9d4fc7fee8", "score": "0.54676044", "text": "public int getFixedLength() {\r\n\t\treturn 4;\r\n\t}", "title": "" }, { "docid": "a6a35fe60a98a3d189d0dce424fe7870", "score": "0.54670155", "text": "public Long getMaxLength() {\r\n Facet maxLengthFacet = getFacet(Facet.MAX_LENGTH);\r\n if (maxLengthFacet == null)\r\n return null;\r\n\r\n try {\r\n return new Long(maxLengthFacet.toLong());\r\n } catch (java.lang.Exception e) {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "45d1f80876133c136b0005d32d4ac232", "score": "0.54670113", "text": "double getMinLength();", "title": "" }, { "docid": "7d13d6b3d0f693ffe7f814283cf326ce", "score": "0.5463101", "text": "public int getEditorPopupPrefixLength() {\n int length = 2;\n try {\n length = Integer.parseInt(newService.getSetting(Setting.Strings.EDITOR_POPUP_PREFIX_LENGTH));\n } catch (NumberFormatException ignored) {\n }\n return length;\n }", "title": "" }, { "docid": "fc649c0ac12f8ce05aa7fd650ca30c47", "score": "0.5460681", "text": "public int getMaxSchoolSize() {\n return 4;\n }", "title": "" }, { "docid": "1430ac61217c02a4199caf7a3d8390fa", "score": "0.545012", "text": "public Long getLength() {\r\n Facet lengthFacet = getFacet(Facet.LENGTH);\r\n if (lengthFacet == null)\r\n return null;\r\n\r\n try {\r\n return new Long(lengthFacet.toLong());\r\n } catch (java.lang.Exception e) {\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "8857c568499ee3a0c3b76441c837eac3", "score": "0.5448623", "text": "public int getMaxResultLength();", "title": "" }, { "docid": "410cb10c8280fd57477a10e4ab7da5db", "score": "0.54469204", "text": "public int getMaxLength() {\r\n\t\treturn maxLength;\r\n\t}", "title": "" }, { "docid": "410cb10c8280fd57477a10e4ab7da5db", "score": "0.54469204", "text": "public int getMaxLength() {\r\n\t\treturn maxLength;\r\n\t}", "title": "" }, { "docid": "67f60c7ff5b39a269ca5b67e9e98ca61", "score": "0.5439809", "text": "private double getMaximumViewLength() {\n\t\tif (this.model == null || this.model.getFocus() == null) {\n\t\t\treturn getMinimumViewLength();\n\t\t}\n\t\tdouble minLengh = getMinimumViewLength();\n\t\tlong focalWidth = model.getFocus().width();\n\t\tdouble maxLength = focalWidth * labelLength;\n\t\tassert focalWidth >= 0;\n\t\tmaxLength += labelLength;\n\t\treturn Math.max(minLengh, maxLength);\n\t}", "title": "" }, { "docid": "0b5c95ab10a2bdfcb736df3b06eda418", "score": "0.54363775", "text": "@Override\n\tpublic int getGroupCount() {\n\t\treturn group.length;\n\t}", "title": "" }, { "docid": "82d25c75ac57e7133f5c5e9baf753b71", "score": "0.54316825", "text": "@Override\n public String getGroupSpacer(int length) {\n String tolString;\n switch (typeOfLoad){\n case BUDGET:tolString = \"Бюджетная\"; break;\n case OFF_BUDGET:tolString = \"Внебюджетная\";break;\n case SHORT:tolString = \"Сокращённая\";break;\n default:tolString = \"Бюджетная\"; break;\n }\n if(tolString.length()>length){\n tolString = tolString.substring(0,length-1);\n }\n while (tolString.length()<length){\n tolString+=\".\";\n }\n return tolString;\n }", "title": "" }, { "docid": "243ffbd30f0de8c666aac465cbc08f12", "score": "0.5430609", "text": "@Override\n int getWidthHint() {\n int widthHint = super.getWidthHint();\n if (widthHint == LENGTH_PREFERRED) {\n widthHint = LENGTH_FILL_PARENT;\n }\n return widthHint;\n }", "title": "" }, { "docid": "57f53ba0141719113044719b18b72ef3", "score": "0.54259014", "text": "private int getLimitMaxForPlot(int length) {\n if (length < 100) {\n return length;\n\n }\n return 100;\n }", "title": "" }, { "docid": "599f005e34a63cd99878b166e2a429e3", "score": "0.54230344", "text": "long maxLength();", "title": "" }, { "docid": "94564c20b3bb997db6f7240ea7a99836", "score": "0.5421625", "text": "public int getLsP9X4Max() {\r\n return lsP9X4Max;\r\n }", "title": "" }, { "docid": "b43e57e5b147c62d7ccc4f06cc25a11b", "score": "0.5418073", "text": "public Integer getLength() {\r\n\t\treturn length;\r\n\t}", "title": "" }, { "docid": "213f51d44fee7969ad293b38cc194822", "score": "0.54133046", "text": "public String getPromptWidth() {\n return _promptWidthField.getText();\n }", "title": "" }, { "docid": "02908e4fabf3903065aab35c8ae202a2", "score": "0.54076415", "text": "private String getGroupNumber() throws InvalidProtocolException\n\t{\n\t\t//#CM28929\n\t\t// Group No.(included in CarryInformation)\n\t\tint groupNo = wCarryInfo.getGroupNumber();\n\t\tif (groupNo > 999)\n\t\t{\n\t\t\tthrow new InvalidProtocolException(\"group number too large\") ;\n\t\t}\n\t\tDecimalFormat fmt = new DecimalFormat(\"000\") ;\n\t\tString c_groupNo = fmt.format(groupNo) ;\n\t\treturn (c_groupNo) ;\n\t}", "title": "" }, { "docid": "35c4417449c9d342f5722ddaf90f0c5a", "score": "0.5400037", "text": "public int getDisplayLength() {\n return displayLength;\n }", "title": "" }, { "docid": "95b871bdafabf817dcfd5e7abc6b9173", "score": "0.5397706", "text": "public int getLength() {\n if (length != null) {\n return length.getValue();\n } else {\n return internalGetLength() + packetId.getLength();\n }\n }", "title": "" }, { "docid": "692795767e20f75c6c98ee33ed3747e0", "score": "0.53880316", "text": "public DHGexParameters(int pref_group_len)\n\t{\n\t\tif ((pref_group_len < MIN_ALLOWED) || (pref_group_len > MAX_ALLOWED))\n\t\t\tthrow new IllegalArgumentException(\"pref_group_len out of range!\");\n\n\t\tthis.pref_group_len = pref_group_len;\n\t\tthis.min_group_len = 0;\n\t\tthis.max_group_len = 0;\n\t}", "title": "" }, { "docid": "a9c19ffbc5aa956e4f2a57f61c718b16", "score": "0.5386911", "text": "public int getWidth() {\n if (fontMetrics != null && lbl != null) {\n return fontMetrics.stringWidth(lbl) + 12;\n }\n return 10;\n }", "title": "" }, { "docid": "218e511f096ebcbba709a1ec958c2e42", "score": "0.5384325", "text": "int getLengthCount();", "title": "" }, { "docid": "218e511f096ebcbba709a1ec958c2e42", "score": "0.5384325", "text": "int getLengthCount();", "title": "" }, { "docid": "74e5e287d880ecf04533b8e5cf299e1c", "score": "0.53780967", "text": "int getMinimumWidth();", "title": "" }, { "docid": "37aaa51492398038faf58fd47a78a6af", "score": "0.53724235", "text": "public int lenPackedPattern() { return lenPackedPattern; }", "title": "" }, { "docid": "5c50e8b51d43a8b69ddd154fb34b67dd", "score": "0.536943", "text": "public long workGroupSize(CLDevice theDevice) {\n return _myKernel.getWorkGroupSize(theDevice);\n }", "title": "" }, { "docid": "1ae4f720f21bb8f4b2a73ac09f130c68", "score": "0.53683084", "text": "String minSize();", "title": "" }, { "docid": "d702e25af61aa630c3e85cc3acf44151", "score": "0.53584135", "text": "public String getNumberOfOrganizationsFollowed() {\n return (mNumberOfOrganizationsFollowed + \" Groups\");\n }", "title": "" }, { "docid": "96c211c163ef4c3c635ad22e49509040", "score": "0.5356808", "text": "public void setGroupWidth(int newWidth) {\n groupWidth = newWidth;\n }", "title": "" }, { "docid": "88be805148c0a8102122b18fd581cd92", "score": "0.5343218", "text": "public short computeLength() {\n \tshort len = (short)MINIMUM_LENGTH;\n\t\tif ( this.properties != null ) for ( org.openflow.protocol.interfaces.OFTableFeatureProperty i : this.properties ) { len += i.computeLength(); }\n \treturn len;\n }", "title": "" }, { "docid": "ce7b04f9013e42bdda424745d24288fa", "score": "0.53421026", "text": "private javax.swing.JLabel getLblWidth() {\n\tif (ivjLblWidth == null) {\n\t\ttry {\n\t\t\tivjLblWidth = new javax.swing.JLabel();\n\t\t\tivjLblWidth.setName(\"LblWidth\");\n\t\t\tivjLblWidth.setText(resOptionsDialog.getString(\"LblWidth_text\"));\n\t\t\tivjLblWidth.setBounds(19, 22, 112, 14);\n\t\t\t// user code begin {1}\n\t\t\t// user code end\n\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t// user code begin {2}\n\t\t\t// user code end\n\t\t\thandleException(ivjExc);\n\t\t}\n\t}\n\treturn ivjLblWidth;\n}", "title": "" }, { "docid": "3408ed5eaa367bbebf9b2f77b7d99383", "score": "0.5341065", "text": "public Integer getLength() {\n\t\t\treturn length;\n\t\t}", "title": "" }, { "docid": "de95c39ba503d6bf81c56c083e5a96b2", "score": "0.53378737", "text": "public java.lang.String getGroupdef18() {\r\n return groupdef18;\r\n }", "title": "" }, { "docid": "dbb6692346d16ecf53c972feda58bc60", "score": "0.5337409", "text": "@Override\n\tpublic int getGroupCount() {\n\t\treturn toppingCatagories.length;\n\t}", "title": "" }, { "docid": "21be9f2e1174ccfe23ea8108b0b66a0c", "score": "0.53236634", "text": "public Integer getLength() {\n return length;\n }", "title": "" }, { "docid": "21be9f2e1174ccfe23ea8108b0b66a0c", "score": "0.53236634", "text": "public Integer getLength() {\n return length;\n }", "title": "" }, { "docid": "fb35021542c1ab3c95d01eb4cdbb6189", "score": "0.531227", "text": "public int getLenght();", "title": "" }, { "docid": "02f840eb23c17200173b798318e1e779", "score": "0.53079325", "text": "public int getMaxAlternatives() {\n return instance.getMaxAlternatives();\n }", "title": "" }, { "docid": "714911f2748f2412ceaafea996d15894", "score": "0.5306309", "text": "java.lang.String getNominalWidth();", "title": "" }, { "docid": "5cc2c1b1f2b46069be7d835b26704117", "score": "0.5296035", "text": "int getMemberGroupListCount();", "title": "" }, { "docid": "29f86b277b988471687b494a390351eb", "score": "0.52945477", "text": "public int getTabMaxWidth() {\n return this.l;\n }", "title": "" } ]
7758a81a5c5998d97ca15dd91a4cd824
Sets the account type.
[ { "docid": "fd1052e384e8392d64324b39d2087e01", "score": "0.78660154", "text": "public void setAccountType(final AccountType accountType) {\n\t\tthis.accountType = accountType;\n\t}", "title": "" } ]
[ { "docid": "502b7652ef17e433d21c3859bf8135c6", "score": "0.79781014", "text": "public void setAccountType(Byte accountType) {\n this.accountType = accountType;\n }", "title": "" }, { "docid": "f5aeb36048b136e529d498171e09a36e", "score": "0.793318", "text": "public void setAccountType(Byte accountType) {\r\n\t\tthis.accountType = accountType;\r\n\t}", "title": "" }, { "docid": "5e411657acfa8ee21d76b2c6eeae3912", "score": "0.7928964", "text": "public void setAccountType(int accountType) {\r\n this.accountType = accountType;\r\n }", "title": "" }, { "docid": "a6573130f99063a1edf216b5268180e0", "score": "0.7680516", "text": "@Generated(hash = 25176323)\n public void setAccountType(AccountTypeModel accountType) {\n synchronized (this) {\n this.accountType = accountType;\n typeId = accountType == null ? null : accountType.getId();\n accountType__resolvedKey = typeId;\n }\n }", "title": "" }, { "docid": "babd04acf4aca7bbbff9512fa018ef5f", "score": "0.75916696", "text": "public void setAccountType(String AccountType) {\n\t\tif (AccountType != null && AccountType.length() > 1) {\n\t\t\tlog.warning(\"Length > 1 - truncated\");\n\t\t\tAccountType = AccountType.substring(0, 0);\n\t\t}\n\t\tset_Value(\"AccountType\", AccountType);\n\t}", "title": "" }, { "docid": "969d922c1af1b5c236b4c21f1162bfe3", "score": "0.75387067", "text": "public void setUserAccountType(AccountType accountType) {\n if(accountType.getTag().equals(\"ST\"))\n this.userAccountType = UserType.SCHOOL_USER;\n else \n this.userAccountType = UserType.SINGLE_USER;\n }", "title": "" }, { "docid": "93894c66d94561e771f6fa10ad016541", "score": "0.75016284", "text": "public void setAcctType(String acctType) {\n this.acctType = acctType;\n }", "title": "" }, { "docid": "0ca22e32ba3b4182f0870046aa77a5ac", "score": "0.74600506", "text": "public void setAcctType(int acctType) {\n this.acctType = acctType;\n }", "title": "" }, { "docid": "434921c6ebd67d9837b686223a99ac22", "score": "0.70337284", "text": "public String getAccountType() {\r\n\t\treturn this.accountType;\r\n\t}", "title": "" }, { "docid": "99c49dc4b1755e4e421d5e3e490139a5", "score": "0.6924363", "text": "public void setAcc_type(String acc_type) {\n this.acc_type = acc_type;\n myDB.connect();\n Connection con = myDB.getConn();\n try {\n con.setAutoCommit(false);\n myDB.write(\"UPDATE Customers SET account_type = '\" + acc_type + \"' WHERE customer_ID = '\" + custID + \"'\");\n con.commit();\n } catch (SQLException ex) {\n Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);\n if (con != null) {\n try {\n System.err.print(\"Transaction rolling back!\");\n con.rollback();\n } catch (SQLException ex1) {\n Logger.getLogger(DBConnectivity.class.getName()).log(Level.SEVERE, null, ex1);\n }\n }\n } finally {\n try {\n con.setAutoCommit(true);\n myDB.closeConnection();\n } catch (SQLException ex) {\n Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "title": "" }, { "docid": "60b5e43303e9a3d2ebe863db5f5a7b79", "score": "0.6907565", "text": "public AccountType getAccountType() {\r\n\t\treturn accountType;\r\n\t}", "title": "" }, { "docid": "73332e9c70dffa3ef11207ec40a0c469", "score": "0.69001377", "text": "public AccountType getAccountType() {\n\t\treturn accountType;\n\t}", "title": "" }, { "docid": "3dd268000b0669c8371eb02de823fc81", "score": "0.68534786", "text": "public Builder setAccountType(\n SetupIntentCreateParams.PaymentMethodData.UsBankAccount.AccountType accountType) {\n this.accountType = accountType;\n return this;\n }", "title": "" }, { "docid": "59cd0287df296aa783af9602310714e0", "score": "0.6738726", "text": "public void setAccountType(String accountType, int age) {\n\t\tif (accountType != null && accountType.length() > 0) {\n\t\t\tif (age >= 65) {\n\t\t\t\tsetAccountType(accountType);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"The customer has to be older than 65 years old to open a Gold Account.\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5db6653b86ab37dee056662e94011825", "score": "0.66816014", "text": "public AccountType getAccountType() {\n return accountType;\n }", "title": "" }, { "docid": "813e5872354812e157d550fc0d3d3fef", "score": "0.6645846", "text": "public Builder setType(org.tron.tronj.proto.Common.AccountType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n type_ = value.getNumber();\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1892c03737b1b59f950fa8c9f3f4ca25", "score": "0.6631974", "text": "public void setType(String type) {\n Type = type;\n }", "title": "" }, { "docid": "41c965cf2c5cd84104e2e11fd33c8f7c", "score": "0.6615427", "text": "public void setAA_HZACT_accountType(\n final java.lang.String AA_HZACT_accountType) {\n this._AA_HZACT_accountType = AA_HZACT_accountType;\n }", "title": "" }, { "docid": "6b139d4f887410e212787af1cb654b60", "score": "0.6578288", "text": "public Byte getAccountType() {\r\n\t\treturn accountType;\r\n\t}", "title": "" }, { "docid": "f3e80c65d77750127d2288c72e4e626e", "score": "0.6552742", "text": "public void setType(String type) {\n doSetType(type);\n }", "title": "" }, { "docid": "6518fb85c481262d48ea79c336141981", "score": "0.6549259", "text": "public void setAccount(au.gov.asic.types.fss.FssAccountType account)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.fss.FssAccountType target = null;\n target = (au.gov.asic.types.fss.FssAccountType)get_store().find_element_user(ACCOUNT$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.fss.FssAccountType)get_store().add_element_user(ACCOUNT$0);\n }\n target.set(account);\n }\n }", "title": "" }, { "docid": "63d627b26483afc5970087ba7189e22d", "score": "0.6492889", "text": "public int getAccountType() {\r\n return accountType;\r\n }", "title": "" }, { "docid": "3a362b2d7e5d81826d80dc31820ca3a5", "score": "0.64881957", "text": "public AccountType getAccountType() {\n return accountType.get();\n }", "title": "" }, { "docid": "5d7e8e0b73dcd27ddb1c562805cd7d24", "score": "0.64786774", "text": "public void setType(String type) {\n mType = type;\n }", "title": "" }, { "docid": "e62a31264b6ee7406ec8607dab9f6878", "score": "0.6471163", "text": "public void setType(gov.nih.nci.calims2.domain.common.Type type) {\n this.type = type;\n }", "title": "" }, { "docid": "3568cf1b1402b5280dbd0c8f60bddeae", "score": "0.6451279", "text": "public String getAccountType() {\n\t\treturn (String) get_Value(\"AccountType\");\n\t}", "title": "" }, { "docid": "d52e2d8c4915586e38c310fcb1315f61", "score": "0.6449201", "text": "protected void setType(Type type) {\n this.type = type;\n }", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.6441714", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.6441714", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.6441714", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "126380080272b72a0684fa5bc0142e0f", "score": "0.6441714", "text": "public void setType(String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "557fd0ff743f7356596afb6041f14546", "score": "0.64275885", "text": "public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}", "title": "" }, { "docid": "253bd99cb71d8e148111baccf9c5376c", "score": "0.6423272", "text": "public void setType(String type);", "title": "" }, { "docid": "37591f567b3394ec6aaa980eb3a1f33b", "score": "0.6421467", "text": "public Account(int accountType) {\n this.accountType = accountType;\n this.transactions = new ArrayList<Transaction>();\n }", "title": "" }, { "docid": "62c58024be6d44ad30075ed4c81e293d", "score": "0.6418262", "text": "public void setType(String type_)\r\n {\r\n this.type = type_;\r\n }", "title": "" }, { "docid": "6fca7a7b64fcce0cb7e5866f653f8e4f", "score": "0.6417503", "text": "public void setType(Type type)\n {\n _type=type;\n }", "title": "" }, { "docid": "fe9ff3599c58c2474edc1e87ecfe5bfd", "score": "0.6414353", "text": "protected void setType(Type type) {\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "8df11755d103a7918868707e865a677d", "score": "0.6408124", "text": "public void setType(String type) { this.type = type; }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "db9497de8dab59ccf5101784dbf46f52", "score": "0.640328", "text": "public void setType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "edb587a0d51ac5dc529929e400e066ad", "score": "0.6400974", "text": "public void setType(String type) {\n throwExceptionIfImmutable();\n this.type = type;\n }", "title": "" }, { "docid": "cf79e293fe8628f3b2cef899f6d7d82b", "score": "0.63974005", "text": "public void setType( String type )\n {\n this.type = type;\n }", "title": "" }, { "docid": "1213abc7f1d219934e76cea92fec2fc6", "score": "0.6379038", "text": "public Byte getAccountType() {\n return accountType;\n }", "title": "" }, { "docid": "894a95865c340a717129f1965e00a996", "score": "0.6371335", "text": "public void setType(Type type) {\n this.type = type;\n }", "title": "" }, { "docid": "f2465ce599578a59b045c938b5996b0f", "score": "0.6368921", "text": "public void setType(final String type) {\n this.type = type;\n }", "title": "" }, { "docid": "f2465ce599578a59b045c938b5996b0f", "score": "0.6368921", "text": "public void setType(final String type) {\n this.type = type;\n }", "title": "" }, { "docid": "ebb19276607d59c55952c28a19a86153", "score": "0.6364753", "text": "public void setType(String type){\n this.type = type;\n }", "title": "" }, { "docid": "ebb19276607d59c55952c28a19a86153", "score": "0.6364753", "text": "public void setType(String type){\n this.type = type;\n }", "title": "" }, { "docid": "6a5bb246f63b09733db690a0bc0f252b", "score": "0.63646454", "text": "public void setType(Type t) {\n type = t;\n }", "title": "" }, { "docid": "4aef307443522b2d4b92a6221a78eeab", "score": "0.6359619", "text": "public void setType(String type)\n {\n this.type = type;\n }", "title": "" }, { "docid": "4aa84b07e7cc1a7e36aa6479f94e8865", "score": "0.6356612", "text": "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "4aa84b07e7cc1a7e36aa6479f94e8865", "score": "0.6356612", "text": "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "4aa84b07e7cc1a7e36aa6479f94e8865", "score": "0.6356612", "text": "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "e854db96fed6a702bb1986282d9b458b", "score": "0.6354766", "text": "public void setType(String type) {\n\n this.type = type;\n\n }", "title": "" }, { "docid": "9c5cfc6cff29f5d7b8560981c9925b74", "score": "0.6351551", "text": "public void setType(Type type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "9c5cfc6cff29f5d7b8560981c9925b74", "score": "0.6351551", "text": "public void setType(Type type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "9c5cfc6cff29f5d7b8560981c9925b74", "score": "0.6351551", "text": "public void setType(Type type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "9c5cfc6cff29f5d7b8560981c9925b74", "score": "0.6351551", "text": "public void setType(Type type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "b79604ac476c67638eb672ff25f1afce", "score": "0.63502413", "text": "public String getAcctType() {\n return acctType;\n }", "title": "" }, { "docid": "28dbbfcf1e4aac9871d9e3faa961ed9a", "score": "0.6329945", "text": "public void setType(Type type) { \n\tthis._type = type;\n }", "title": "" }, { "docid": "075a0d216f7c939e290e069cd31e1ed0", "score": "0.6329575", "text": "public final ACHBankAccountBuilder accountType(final AccountType accountType) {\n\t\t\tachBankAccounts.setAccountType(accountType);\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "ec39370987c0f64d3cee91170f097a42", "score": "0.6324398", "text": "public void setType(final String type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "4f9236e750836f8852cc196565d72067", "score": "0.6317994", "text": "protected void setType(int type) {\n\t\t\tthis.type = type;\n\t\t}", "title": "" }, { "docid": "4f9236e750836f8852cc196565d72067", "score": "0.6317994", "text": "protected void setType(int type) {\n\t\t\tthis.type = type;\n\t\t}", "title": "" }, { "docid": "8598ac00c315bdb87ff4fc2a7e174bf8", "score": "0.6311916", "text": "public void setType(int type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "8598ac00c315bdb87ff4fc2a7e174bf8", "score": "0.6311916", "text": "public void setType(int type) {\r\n this.type = type;\r\n }", "title": "" }, { "docid": "c4bc2c3c5070869cb582aab93de6a9eb", "score": "0.6305839", "text": "public void doSetType(String type) {\n this.type = type;\n }", "title": "" }, { "docid": "ed0f353ac71696156b40214da5f79993", "score": "0.63004315", "text": "public void setType(int type) {\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "ed0f353ac71696156b40214da5f79993", "score": "0.63004315", "text": "public void setType(int type) {\r\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "3ce38433505b4b0351b236b7c1fc4878", "score": "0.629374", "text": "public void setType(int type) {\n this.type = type;\n }", "title": "" }, { "docid": "3ce38433505b4b0351b236b7c1fc4878", "score": "0.629374", "text": "public void setType(int type) {\n this.type = type;\n }", "title": "" }, { "docid": "3ce38433505b4b0351b236b7c1fc4878", "score": "0.629374", "text": "public void setType(int type) {\n this.type = type;\n }", "title": "" }, { "docid": "c8de89a303371c175cea4bb35a1f4512", "score": "0.628113", "text": "public void setType(String type){\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "64387893228f127542b5ef9d8e5c9e3c", "score": "0.6271425", "text": "@Override\r\n\tpublic void setType(String type) {\n\t\tthis.type = type;\r\n\t}", "title": "" }, { "docid": "617011e419f1f60cf5921ab9331775ac", "score": "0.62687993", "text": "public void setType(String type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "617011e419f1f60cf5921ab9331775ac", "score": "0.62687993", "text": "public void setType(String type) {\n\t\tthis.type = type;\n\t}", "title": "" }, { "docid": "617011e419f1f60cf5921ab9331775ac", "score": "0.62687993", "text": "public void setType(String type) {\n\t\tthis.type = type;\n\t}", "title": "" } ]
0dd1b2d6f8a0c3a6789ce2536870ef6c
This method generates the specification of the text, this is used while writing the specification to a file.
[ { "docid": "13705cff45c7d333170889f42f80507d", "score": "0.74852514", "text": "public String generateSpec() {\n\t\tString spec = \"\\ntext\\n\" + rb + \" \" + cb + \"\\n\" + text + \"\\n\" + rInc + \" \" + cInc + \"\\n.\";\n\t\treturn spec;\n\t}", "title": "" } ]
[ { "docid": "d4777e33d2f56faef0cdef0e105e70af", "score": "0.6466778", "text": "private void writeSpecFile() throws MojoExecutionException\n {\n File f = new File( workarea, \"SPECS\" );\n File specf = new File( f, name + \".spec\" );\n try\n {\n getLog().info( \"Creating spec file \" + specf.getAbsolutePath() );\n PrintWriter spec = new PrintWriter( new FileWriter( specf ) );\n \n writeList( spec, defineStatements, \"%define \" );\n \n spec.println( \"Name: \" + name );\n spec.println( \"Version: \" + version );\n spec.println( \"Release: \" + release );\n if ( summary != null )\n {\n spec.println( \"Summary: \" + summary );\n }\n \n /* copyright composition */\n String copyrightText = copyright;\n if ( copyrightText == null )\n {\n copyrightText = generateCopyrightText();\n }\n if ( copyrightText != null )\n {\n spec.println( \"License: \" + copyrightText );\n }\n if ( distribution != null )\n {\n spec.println( \"Distribution: \" + distribution );\n }\n if ( icon != null )\n {\n spec.println( \"Icon: \" + icon.getName() );\n }\n if ( vendor != null )\n {\n spec.println( \"Vendor: \" + vendor );\n }\n if ( url != null )\n {\n spec.println( \"URL: \" + url );\n }\n if ( group != null )\n {\n spec.println( \"Group: \" + group );\n }\n if ( packager != null )\n {\n spec.println( \"Packager: \" + packager );\n }\n \n // if this package obsoletes any packages, make sure those packages are added to the provides list\n if ( obsoletes != null )\n {\n if ( provides == null )\n {\n provides = obsoletes;\n }\n else\n {\n provides.addAll( obsoletes );\n }\n }\n \n writeList( spec, provides, \"Provides: \" );\n writeList( spec, requires, \"Requires: \" );\n writeList( spec, prereqs, \"PreReq: \" );\n writeList( spec, obsoletes, \"Obsoletes: \" );\n writeList( spec, conflicts, \"Conflicts: \" );\n \n spec.println( \"autoprov: \" + ( autoProvides ? \"yes\" : \"no\" ) );\n spec.println( \"autoreq: \" + ( autoRequires ? \"yes\" : \"no\" ) ); \n \n if ( prefix != null )\n {\n spec.println( \"Prefix: \" + prefix );\n }\n spec.println( \"BuildRoot: \" + buildroot.getAbsolutePath() );\n spec.println();\n spec.println( \"%description\" );\n if ( description != null )\n {\n spec.println( description );\n }\n \n boolean printedInstall = false;\n \n if ( !linkTargetToSources.isEmpty() )\n {\n if ( !printedInstall )\n {\n spec.println();\n spec.println( \"%install\" );\n printedInstall = true;\n }\n \n for ( Iterator entryIter = linkTargetToSources.entrySet().iterator(); entryIter.hasNext(); )\n {\n final Map.Entry directoryToSourcesEntry = (Entry) entryIter.next();\n String directory = (String) directoryToSourcesEntry.getKey();\n if ( directory.startsWith( \"/\" ) )\n {\n directory = directory.substring( 1 );\n }\n if ( directory.endsWith( \"/\" ) )\n {\n directory = directory.substring( 0, directory.length() - 1 );\n }\n \n final List sources = (List) directoryToSourcesEntry.getValue();\n final int sourceCnt = sources.size();\n \n if ( sourceCnt == 1 )\n {\n final SoftlinkSource linkSource = (SoftlinkSource) sources.get( 0 );\n final File sourceLocation = linkSource.getLocation();\n final File buildSourceLocation = new File( buildroot, sourceLocation.getAbsolutePath() );\n if ( buildSourceLocation.isDirectory() )\n {\n final DirectoryScanner scanner = scanLinkSource( linkSource, buildSourceLocation );\n \n if ( scanner.isEverythingIncluded() )\n {\n File destinationFile = new File( buildroot, directory );\n destinationFile.delete();\n \n spec.print( \"ln -s \" );\n spec.print( sourceLocation.getAbsolutePath() );\n spec.print( \" $RPM_BUILD_ROOT/\" );\n spec.print( directory );\n \n final String dest = linkSource.getDestination();\n if ( dest != null )\n {\n spec.print( '/' );\n spec.print( dest );\n linkSource.getSourceMapping().addLinkedFileNameRelativeToDestination( dest );\n }\n \n spec.println(); \n }\n else\n {\n linkScannedFiles( spec, directory, linkSource, scanner );\n }\n }\n else\n {\n linkSingleFile( spec, directory, linkSource );\n }\n }\n else\n {\n for ( Iterator sourceIter = sources.iterator(); sourceIter.hasNext(); )\n {\n final SoftlinkSource linkSource = (SoftlinkSource) sourceIter.next();\n final File sourceLocation = linkSource.getLocation();\n final File buildSourceLocation = new File( buildroot, sourceLocation.getAbsolutePath() );\n if ( buildSourceLocation.isDirectory() )\n {\n final DirectoryScanner scanner = scanLinkSource( linkSource, buildSourceLocation );\n \n linkScannedFiles( spec, directory, linkSource, scanner );\n }\n else\n {\n linkSingleFile( spec, directory, linkSource );\n }\n }\n }\n }\n }\n \n if ( installScriptlet != null )\n {\n if ( !printedInstall )\n {\n installScriptlet.write( spec, \"%install\" );\n }\n else\n {\n spec.println();\n \n installScriptlet.writeContent( spec );\n }\n }\n \n spec.println();\n spec.println( \"%files\" );\n spec.println( getDefAttrString() ); \n \n for ( Iterator it = mappings.iterator(); it.hasNext(); )\n {\n Mapping map = (Mapping) it.next();\n \n // For each mapping we need to determine which files in the destination were defined by this\n // mapping so that we can write the %attr statement correctly.\n \n final String destination = map.getDestination();\n final File absoluteDestination = new File( buildroot, destination );\n \n if ( map.hasSoftLinks() && !absoluteDestination.exists() )\n {\n getLog().debug( \"writing attribute string for directory created by soft link: \" + destination );\n \n final String attributes = map.getAttrString( defaultFilemode, defaultGroupname, defaultUsername );\n \n spec.print( attributes );\n spec.print( ' ' );\n spec.println( destination );\n \n continue;\n }\n \n final List includes = map.getCopiedFileNamesRelativeToDestination();\n final List links = map.getLinkedFileNamesRelativeToDestination();\n \n final DirectoryScanner scanner = new DirectoryScanner();\n scanner.setBasedir( absoluteDestination );\n \n //the linked files are not present yet (will be \"installed\" during rpm build)\n //so they cannot be \"included\"\n scanner.setIncludes( includes.isEmpty() ? null\n : (String[]) includes.toArray( new String[includes.size()] ) );\n scanner.setExcludes( null );\n scanner.scan();\n \n final String attrString = map.getAttrString( defaultFilemode, defaultGroupname, defaultUsername );\n if ( scanner.isEverythingIncluded() && links.isEmpty() && map.isDirectoryIncluded() )\n {\n getLog().debug( \"writing attriute string for directory: \" + destination );\n spec.println( attrString + \" \" + destination );\n }\n else\n {\n getLog().debug( \"writing attribute string for identified files in directory: \" + destination );\n \n String[] files = scanner.getIncludedFiles();\n \n final String baseFileString = attrString + \" \" + destination + File.separatorChar;\n \n for ( int i = 0; i < files.length; ++i )\n {\n spec.print( baseFileString );\n spec.println( files[i] );\n }\n \n //since the linked files are not present in directory (yet), the scanner will not find them\n for ( Iterator linkIter = links.iterator(); linkIter.hasNext(); )\n {\n String link = (String) linkIter.next();\n \n spec.print( baseFileString );\n spec.println( link );\n }\n }\n }\n \n printScripts( spec );\n \n if ( triggers != null )\n {\n for ( Iterator i = triggers.iterator(); i.hasNext(); )\n {\n BaseTrigger trigger = (BaseTrigger) i.next();\n trigger.writeTrigger( spec );\n }\n }\n \n printChangelog( spec );\n spec.close();\n }\n catch ( Throwable t )\n {\n throw new MojoExecutionException( \"Unable to write \" + specf.getAbsolutePath(), t );\n }\n }", "title": "" }, { "docid": "6a2c730fd56596774a2354429cd4efc4", "score": "0.588929", "text": "public static void sampleTest(){\n\t\ttry {\n\t\t\t\n\t\t\tDocument doc=Factory.newDocument(\"It is freezing inside and it is raining outside. President Koroma said the move had been a success but had exposed \\\"areas of greater challenges\\\", which was why other areas were being quarantined. Bruno even dared to say that space was endless and contained many other suns, each with its own planets. \"); //\"The move follows a three-day nationwide lockdown that ended on Sunday night.\");//\"During Sierra Leone's three-day curfew, more than a million households were surveyed and 130 new cases discovered, the authorities say.\");\n\t\t\tdoc.setName(\"testText\");\n\t\t\tHashMap<String,String> params=new HashMap<String, String>();\n\t\t\t//params.put(\"syntax.diagnosis\", \"y\");\n\t\t\tparams.put(\"languageCode\", \"en\");\n\t\t\tparams.put(\"sentenceLevel\", \"y\");\n\t\t\t//\"{\\\"languageCode\\\":\\\"en\\\",\\\"sentenceLevel\\\":\\\"y\\\"}\"\n\t\t\t\n\t\t\t//SyntacticProcessor processor=new SyntacticProcessor();//new File(\"target/gate/SimpleSyntax.gapp\"));\n\t\t\t//processor.process(doc, params);\n\t\t\t\n\t\t\tSyntaxOBServiceImpl soben=new SyntaxOBServiceImpl();\n\t\t\t//soben.gateInited=true;\n\t\t\ttry {\n\t\t\t\tString document=doc.toXml();\n\t\t\t\tString result=soben.simplifySyntax( document, \"{\\\"syntax.outFormat\\\"=\\\"gatexml\\\", \\\"languageCode\\\":\\\"en\\\", \\\"syntax.appositions\\\":\\\"detect\\\", \\\"syntax.diagnose\\\":\\\"n\\\"}\");\n\t\t\t\tSystem.out.println(result);\n\t\t\t} catch (FormatException_Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t\t//System.out.println(doc.toString());\n\t\t} catch (ResourceInstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "3d80b44cfe21677bbd025ce2419e2cbf", "score": "0.5716066", "text": "@Override\n\tpublic void generateOutputFile(Text fileText) {\n\n\t\tLOGGER.debug(\"Entering generateOutputFile() method in FileParserServiceImpl\");\n\n\t\ttry {\n\t\t\tboolean createXml = false;\n\t\t\tif (appConfigFileParser.getGenXml() == 1) {\n\t\t\t\tcreateXml = true;\n\t\t\t}\n\t\t\tif (createXml) {\n\t\t\t\tfileParserForXML.marshalProcess(fileText);\n\t\t\t}\n\n\t\t\tboolean createCsv = false;\n\n\t\t\tif (appConfigFileParser.getGenCsv() == 1) {\n\t\t\t\tcreateCsv = true;\n\t\t\t}\n\n\t\t\tif (createCsv) {\n\t\t\t\tgenerateOutputCSV(fileText.getSentences());\n\t\t\t}\n\n\t\t} catch (FileParsingException e) {\n\t\t\tLOGGER.error(\"Error occurred while generating the file in generateOutputFile() \" + e.getMessage());\n\t\t\tSystem.out.println(\"Error occurred while generating the file in generateOutputFile() \" + e.getMessage());\n\t\t}\n\t\tLOGGER.debug(\"Exiting generateOutputFile() method in FileParserServiceImpl\");\n\t}", "title": "" }, { "docid": "97398a1ef7726efa7d3eeeca7405e4bf", "score": "0.5674086", "text": "public static Text createText(String spec) {\n\t\tString[] properties = spec.split(\"\\\\n\");\n\t\tString text = properties[2];\n\t\tString[] attributes = properties[1].split(\"\\\\s\");\n\t\tint rb = Integer.parseInt(attributes[0]);\n\t\tint cb = Integer.parseInt(attributes[1]);\n\t\tattributes = properties[3].split(\"\\\\s\");\n\t\tint rInc = Integer.parseInt(attributes[0]);\n\t\tint cInc = Integer.parseInt(attributes[1]);\n\t\treturn new Text(rb, cb, text, rInc, cInc);\n\t}", "title": "" }, { "docid": "f435e034a9e7abf162ec483d7a7f9e58", "score": "0.5639995", "text": "private void run() throws IOException {\n\n\t\tSpecificationPackage.eINSTANCE.getSpecificationFactory();\n\t\tEMFTypePackage.eINSTANCE.getEMFTypeFactory();\n\n\t\tfinal URI base = URI.createPlatformResourceURI(\n\t\t\t\t\"/org.gervarro.democles.interpreter.test/model/\", true);\n\t\tfinal URI uri = URI.createFileURI(\"meaningful.pattern\");\n\t\tset.getURIConverter().getURIMap().put(uri, uri.resolve(base));\n\t\tResource res = set.createResource(uri, ContentHandler.UNSPECIFIED_CONTENT_TYPE);\n\t\tres.load(null);\n\t\tfinal Pattern patternSpecification = (Pattern) res.getContents().get(0);\n\n\t\t// 2) Prepares an internal representation for the pattern\n\t\tEMFPatternBuilder<DefaultPattern, DefaultPatternBody> patternBuilder =\n\t\t\t\tnew EMFPatternBuilder<DefaultPattern, DefaultPatternBody>(new DefaultPatternFactory());\n\t\tEMFConstraintModule emfTypeModule =\n\t\t\t\tnew EMFConstraintModule(set);\n\t\tEMFTypeModule internalEMFTypeModule =\n\t\t\t\tnew EMFTypeModule(emfTypeModule);\n\t\tpatternBuilder.addVariableTypeSwitch(internalEMFTypeModule.getVariableTypeSwitch());\n\t\tpatternBuilder.addConstraintTypeSwitch(internalEMFTypeModule.getConstraintTypeSwitch());\n RelationalTypeModule relationalTypeModule = new RelationalTypeModule(CoreConstraintModule.INSTANCE);\n patternBuilder.addVariableTypeSwitch(relationalTypeModule.getVariableTypeSwitch());\n patternBuilder.addConstraintTypeSwitch(relationalTypeModule.getConstraintTypeSwitch());\n\n\t\tfinal DefaultPattern internalPatternSpecification =\n\t\t\t\tpatternBuilder.build(patternSpecification);\n\n\t\t// 3) Initializes the pattern matcher module\n\t\tfinal LinkedList<SearchPlanOperationBuilder<WeightedOperation<SearchPlanOperation<BatchInterpreterSearchPlanOperation>, Integer>, BatchInterpreterSearchPlanOperation>> builders = new LinkedList<>();\n\t\tbuilders.add(new CombinedSearchPlanOperationBuilder<WeightedOperation<SearchPlanOperation<BatchInterpreterSearchPlanOperation>,Integer>,SearchPlanOperation<BatchInterpreterSearchPlanOperation>,BatchInterpreterSearchPlanOperation>(\n\t\t\t\tnew EMFSearchPlanOperationBuilder<BatchInterpreterSearchPlanOperation>(),\n\t\t\t\tnew EMFWeightedOperationBuilder<SearchPlanOperation<BatchInterpreterSearchPlanOperation>,BatchInterpreterSearchPlanOperation>()));\n\t\t\n\t\tDefaultAlgorithm<InterpreterCombiner,SearchPlanOperation<BatchInterpreterSearchPlanOperation>,BatchInterpreterSearchPlanOperation> searchPlanAlgorithm = \n\t\t\tnew DefaultAlgorithm<InterpreterCombiner,SearchPlanOperation<BatchInterpreterSearchPlanOperation>,BatchInterpreterSearchPlanOperation>(builders);\n\t\tInterpreterPatternMatcherModule patternMatcherModule =\n\t\t\tnew InterpreterPatternMatcherModule(DepthFirstTraversalStrategy.INSTANCE);\n\t\tpatternMatcherModule.setSearchPlanAlgorithm(\n\t\t\t\tnew InterpreterSearchPlanAlgorithm(searchPlanAlgorithm));\n\t\t\n\t\tGenericOperationBuilder<SpecificationExtendedVariableRuntime> emfReflectiveOperationBuilder =\n\t\t\tnew GenericOperationBuilder<SpecificationExtendedVariableRuntime>(\n\t\t\t\t\tnew EMFNativeOperationBuilder<SpecificationExtendedVariableRuntime>(emfTypeModule),\n\t\t\t\t\tDefaultEMFBatchAdornmentStrategy.INSTANCE);\n\t\tpatternMatcherModule.addOperationBuilder(emfReflectiveOperationBuilder);\n\t\tpatternMatcherModule.addOperationBuilder(\n\t\t\t\tnew ListOperationBuilder<InterpretableAdornedOperation, SpecificationExtendedVariableRuntime>(\n\t\t\t\t\t\tnew RelationalOperationBuilder<SpecificationExtendedVariableRuntime>()));\n\n\t\t// 4) Creates the interpretable pattern matcher\n\t\tOperationCachingPattern patternRuntime =\n\t\t\t\tpatternMatcherModule.build(internalPatternSpecification);\n\n\t\t// 5) Invokes pattern matching (runtime step)\n\t\tfinal InterpretedDataFrame frame = patternRuntime.createDataFrame();\n\t\tframe.setValue(0, patternSpecification);\n\t\tSystem.out.println(\"Input: \" + frame);\n\t\tint i = 0;\n\t\tfor (final DataFrame matching : patternRuntime.matchAll(frame)) {\n\t\t\tmatching.getValue(2);\n\t\t\tSystem.out.println(String.format(\"[Match all]: %2d %s\", i++, matching));\n\t\t}\n\t\tfinal DataFrame singleMatch = patternRuntime.matchSingle(frame);\n\t\tsingleMatch.getValue(2);\n System.out.println(String.format(\"[Match single]: %2d %s\", i++, singleMatch));\n\t}", "title": "" }, { "docid": "0442df5f331a3687d69992129c7e8d34", "score": "0.5485584", "text": "public static void main(String[] args) {\n\n TextObject tempText = new TextObject();\n tempText.setTextContent(\"Titre Principal\");\n tempText.setType(TextType.mainTitle);\n\n TextObject intro = new TextObject();\n intro.setTextContent(\"Introduction\");\n intro.setType(TextType.chapter);\n\n TextObject introP1 = new TextObject();\n introP1.setTextContent(\"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa.\");\n introP1.setType(TextType.paragraph);\n\n TextObject introP2 = new TextObject();\n introP2.setTextContent(\"Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. Nunc viverra imperdiet enim.\");\n introP2.setType(TextType.paragraph);\n\n TextObject introP3 = new TextObject();\n introP3.setTextContent(\"Fusce est. Vivamus a tellus.\");\n introP3.setType(TextType.paragraph);\n\n //Chap 1\n TextObject chap1 = new TextObject();\n chap1.setTextContent(\"Chapter 1\");\n chap1.setType(TextType.chapter);\n\n TextObject chap1Part1 = new TextObject();\n chap1Part1.setTextContent(\"1.1\");\n chap1Part1.setType(TextType.title);\n\n TextObject chap1Part1P1 = new TextObject();\n chap1Part1P1.setTextContent(\"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin pharetra nonummy pede.\");\n chap1Part1P1.setType(TextType.paragraph);\n\n TextObject chap1Part1P2 = new TextObject();\n chap1Part1P2.setTextContent(\"Mauris et orci. Aenean nec lorem.\");\n chap1Part1P2.setType(TextType.paragraph);\n\n TextObject chap1Part1P3 = new TextObject();\n chap1Part1P3.setTextContent(\"In porttitor. Donec laoreet nonummy augue.\");\n chap1Part1P3.setType(TextType.paragraph);\n\n TextObject chap1Part2 = new TextObject();\n chap1Part2.setTextContent(\"1.2\");\n chap1Part2.setType(TextType.title);\n\n TextObject chap1Part2P1 = new TextObject();\n chap1Part2P1.setTextContent(\"Suspendisse dui purus, scelerisque at, vulputate vitae, pretium mattis, nunc. Mauris eget neque at sem venenatis eleifend.\");\n chap1Part2P1.setType(TextType.paragraph);\n\n TextObject chap1Part2P2 = new TextObject();\n chap1Part2P2.setTextContent(\"Ut nonummy. Fusce aliquet pede non pede.\");\n chap1Part2P2.setType(TextType.paragraph);\n\n TextObject chap1Part2P3 = new TextObject();\n chap1Part2P3.setTextContent(\"Suspendisse dapibus lorem pellentesque magna. Integer nulla.\");\n chap1Part2P3.setType(TextType.paragraph);\n\n //Chap2\n TextObject chap2 = new TextObject();\n chap2.setTextContent(\"Chapter 2\");\n chap2.setType(TextType.chapter);\n\n TextObject chap2Part1 = new TextObject();\n chap2Part1.setTextContent(\"2.1\");\n chap2Part1.setType(TextType.title);\n\n TextObject chap2Part1P1 = new TextObject();\n chap2Part1P1.setTextContent(\"Donec blandit feugiat ligula. Donec hendrerit, felis et imperdiet euismod, purus ipsum pretium metus, in lacinia nulla nisl eget sapien.\");\n chap2Part1P1.setType(TextType.paragraph);\n\n TextObject chap2Part1P2 = new TextObject();\n chap2Part1P2.setTextContent(\"Donec ut est in lectus consequat consequat. Etiam eget dui.\");\n chap2Part1P2.setType(TextType.paragraph);\n\n TextObject chap2Part1P3 = new TextObject();\n chap2Part1P3.setTextContent(\"Aliquam erat volutpat. Sed at lorem in nunc porta tristique.\");\n chap2Part1P3.setType(TextType.paragraph);\n\n TextObject chap2Part2 = new TextObject();\n chap2Part2.setTextContent(\"2.2\");\n chap2Part2.setType(TextType.title);\n\n TextObject chap2Part2P1 = new TextObject();\n chap2Part2P1.setTextContent(\"Proin nec augue. Quisque aliquam tempor magna.\");\n chap2Part2P1.setType(TextType.paragraph);\n\n TextObject chap2Part2P2 = new TextObject();\n chap2Part2P2.setTextContent(\"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc ac magna.\");\n chap2Part2P2.setType(TextType.paragraph);\n\n TextObject chap2Part2P3 = new TextObject();\n chap2Part2P3.setTextContent(\"Maecenas odio dolor, vulputate vel, auctor ac, accumsan id, felis. Pellentesque cursus sagittis felis.\");\n chap2Part2P3.setType(TextType.paragraph);\n\n //Concl\n\n TextObject concl = new TextObject();\n concl.setTextContent(\"Conclusion\");\n concl.setType(TextType.chapter);\n\n TextObject conclP1 = new TextObject();\n conclP1.setTextContent(\"Pellentesque porttitor, velit lacinia egestas auctor, diam eros tempus arcu, nec vulputate augue magna vel risus. Cras non magna vel ante adipiscing rhoncus.\");\n conclP1.setType(TextType.paragraph);\n\n TextObject conclP2 = new TextObject();\n conclP2.setTextContent(\"Vivamus a mi. Morbi neque.\");\n conclP2.setType(TextType.paragraph);\n\n TextObject conclP3 = new TextObject();\n conclP3.setTextContent(\"Aliquam erat volutpat. Integer ultrices lobortis eros.\");\n conclP3.setType(TextType.paragraph);\n\n\n\n //Construction arbre\n\n StdTree myTree = new StdTree();\n myTree.addRoot(tempText);\n //Intro\n myTree.addChild(intro);\n myTree.addChild(introP1);\n myTree.addSibling(introP2);\n myTree.addSibling(introP3);\n myTree.parent();\n myTree.parent();\n //Chap1\n myTree.addChild(chap1);\n myTree.addChild(chap1Part1);\n myTree.addChild(chap1Part1P1);\n myTree.addSibling(chap1Part1P2);\n myTree.addSibling(chap1Part1P3);\n myTree.parent();\n myTree.addSibling(chap1Part2);\n myTree.addChild(chap1Part2P1);\n myTree.addSibling(chap1Part2P2);\n myTree.addSibling(chap1Part2P3);\n myTree.parent();\n myTree.parent();\n myTree.parent();\n\n //Chap2\n\n myTree.addChild(chap2);\n myTree.addChild(chap2Part1);\n myTree.addChild(chap2Part1P1);\n myTree.addSibling(chap2Part1P2);\n myTree.addSibling(chap2Part1P3);\n myTree.parent();\n myTree.addSibling(chap2Part2);\n myTree.addChild(chap2Part2P1);\n myTree.addSibling(chap2Part2P2);\n myTree.addSibling(chap2Part2P3);\n myTree.parent();\n myTree.parent();\n myTree.parent();\n\n //Concl\n myTree.addChild(concl);\n myTree.addChild(conclP1);\n myTree.addSibling(conclP2);\n myTree.addSibling(conclP3);\n myTree.parent();\n myTree.parent();\n\n //Afficahge\n myTree.root();\n TextObject temp = (TextObject) myTree.getElement();\n System.out.println(temp.getTextContent());\n\n myTree.children(1);\n temp = (TextObject) myTree.getElement();\n System.out.println(temp.getTextContent());\n\n myTree.children(1);\n temp = (TextObject) myTree.getElement();\n System.out.println(temp.getTextContent());\n\n myTree.children(1);\n temp = (TextObject) myTree.getElement();\n System.out.println(temp.getTextContent());\n\n //myTree.root();\n TreeFct depth = new TreeFct();\n System.out.println(Integer.toString(depth.computeDepth(myTree)));\n\n //Index\n myTree.root();\n depth.computeIndex(myTree);\n\n\n\n /*\n Test partie 1\n if(tempText.getType() == TextType.mainTitle){\n\n System.out.println(\"Type OK!\");\n }\n else{\n System.out.println(\"Type KO!\");\n }\n\n System.out.println(tempText.getTextContent());\n System.out.println(\"Nbr Chars: \" + Integer.toString(tempText.getNbrChars()));\n */\n }", "title": "" }, { "docid": "55d0931b3bcfaa432b239f4313eeb8e8", "score": "0.54817826", "text": "public void neft_doc_type_txt_test () {\n\t\t\n\t}", "title": "" }, { "docid": "71444b5d6b0014d672290d8a68aa5dfd", "score": "0.5481082", "text": "private static void prepareDataManual() {\n\n\t\ttext = text + \"Use unigram features: [\" + Features.isUseUnigramFeatures() + \"] - Used in Quantification: [\" + Features.isUseQuantifUnigrams() + \"]\" + n;\n\t\ttextProperty.set(text);\n\n\t\ttext = text + \"Use basic pattern features: [\" + Features.isUsePatternFeatures() + \"] - Used in Quantification: [\" + Features.isUseQuantifBasicPatterns() + \"]\" + n;\n\t\ttextProperty.set(text);\n\t\t\n\t\ttext = text + \"Use adv. pattern features: [\" + Features.isUseAdvancedPatternFeatures() + \"] - Used in Quantification: [\" + Features.isUseQuantifAdvancedPatterns() + \"]\" + n;\n\t\ttextProperty.set(text);\n\t\t\t\t\n\t\tFeatures.setCoefficients(Features.getManualCoefficients());\n\t\ttotalNumberOfTasks.set(1);\n\n\t\ttext = text + \"Coefficients extracted\" + n;\n\t\ttextProperty.set(text);\n\t\t\n\t\t// Select the data set to use\n\t\tArrayList<Tweet> tweets;\n\t\t\n\t\tif (Parameters.getTypeOfProject().equals(Parameters.TypeOfProject.TESTSET)) {\n\t\t\ttweets = Parameters.getTestSet();\n\t\t\ttext = text + \"Data set to use: \" + \"[Test Set]\" + n;\n\t\t\ttextProperty.set(text);\n\t\t} else {\n\t\t\ttweets = Parameters.getUnknownSet();\n\t\t\ttext = text + \"Data set to use: \" + \"[Non-annotated Set]\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t\t// Add Unigram final scores\n\t\tif (Features.isUseQuantifUnigrams()) {\n\t\t\tfor (Tweet tweet : tweets) {\n\t\t\t\tTweetProcessing.addUnigramScores(tweet, Parameters.getClasses());\n\t\t\t}\n\t\t\ttext = text + \"Unigram scores extracted\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t\t// Add the basic pattern final scores\n\t\tif (Features.isUseQuantifBasicPatterns()) {\n\t\t\t\n\t\t\tint m = Features.getMaxPatternLength() - Features.getMinPatternLength() + 1;\n\t\t\tint min = Features.getMinPatternLength();\n\t\t\t\n\t\t\tdouble[] factors = new double[m];\n\t\t\t\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tfactors[i] = (double) (min + i-1) / (double) (min + i+1); \n\t\t\t}\n\t\t\t\n\t\t\tfor (Tweet tweet : tweets) {\n\t\t\t\tTweetProcessing.addBasicPatternScores(tweet, Parameters.getClasses(), factors);\n\t\t\t}\n\t\t\ttext = text + \"Basic pattern scores extracted\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t\t// Add the Advanced pattern final scores\n\t\tif (Features.isUseQuantifAdvancedPatterns()) {\n\t\t\t\n\t\t\tint m = Features.getAdvancedMaxPatternLength() - Features.getAdvancedMinPatternLength() + 1;\n\t\t\tint min = Features.getAdvancedMinPatternLength();\n\t\t\t\n\t\t\tdouble[] factors = new double[m];\n\t\t\t\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tfactors[i] = (double) (min + i-1) / (double) (min + i+1); \n\t\t\t}\n\t\t\t\n\t\t\tfor (Tweet tweet : tweets) {\n\t\t\t\tTweetProcessing.addAdvancedPatternScores(tweet, Parameters.getClasses(), factors);\n\t\t\t}\n\t\t\ttext = text + \"Advanced pattern scores extracted\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "8fc1c8445d68790c98fea5352be5be2d", "score": "0.5383374", "text": "public static void CreateDocument(){\n PrintWriter outputStream = null;\n if(editImportedText == 0){\n fileName = \"\";\n System.out.println(\"Enter the name of the new file:\");\n fileName = keyboard.nextLine();\n fileName = fileName+\".txt\";\n } \n \n try{\n if(fileName.contains(\"\\\\\"))\n outputStream = new PrintWriter(fileName);\n else\n outputStream = new PrintWriter(\"C:\\\\Users\\\\CapnM\\\\OneDrive\\\\Documents\\\\Word Documents\\\\\"+fileName);\n }\n catch(FileNotFoundException e){\n System.out.println(\"Error opening the file \"+fileName);\n System.exit(0);\n }\n \n \n System.out.println(\"C- copy a line and paste to another line\");\n System.out.println(\"E- edit previously typed line\");\n System.out.println(\"P-print document to screen\");\n System.out.println(\"F- finished document\");\n //Initially the text is saved in an array.\n //The user can edit the file easily.\n k = 1;\n int endText = 0;\n if (editImportedText == 1){\n k = j;\n }\n while(endText == 0){\n exportText[k] = keyboard.nextLine();\n \n if (exportText[k].equals(\"C\")){\n \n }\n else if (exportText[k].equals(\"E\")){\n //The user can access a previous line and edit it.\n k--;\n editLine(k);\n }\n else if (exportText[k].equals(\"P\")){\n k--;\n printToScreen(k);\n }\n else if (exportText[k].equals(\"F\")){\n exportText[k] = \"\";\n k-=2;\n endText = 1;\n }\n k++;\n increaseExportArray(k);\n }\n if (editImportedText == 1){\n for (int i = 1; i <= k; i++){\n outputStream.println(exportText[i]);\n editImportedText = 0;\n }\n \n }\n else{\n for (int i = 1; i <= k; i++){\n outputStream.println(exportText[i]);\n }\n }\n \n outputStream.close();\n System.out.println(\"The lines were written to the text file \"+fileName);\n returnToMenu();\n }", "title": "" }, { "docid": "a6055ad3d1e9f7307ef375ebf79720fb", "score": "0.530636", "text": "public TextFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "198f7eab71f239aa233810c27e7602b2", "score": "0.52839273", "text": "protected abstract String produceNextGeneration();", "title": "" }, { "docid": "0979e274dc4fa5d41fde3af7157ea4d1", "score": "0.5283268", "text": "public void createJavaSourceFile() {\n String famNumber = Character.toString(_architecture.charAt(_architecture.length() - 1));\n String namePrefix = \"V\" + famNumber;\n String fileName = namePrefix + \"PartLibrary.java\";\n\n try {\n BufferedWriter buf = new BufferedWriter(new FileWriter(fileName));\n createFileHeader(buf);\n buf.write(\"package edu.byu.ece.bitstreamTools.configurationSpecification;\\n\\n\");\n\n buf.write(\"import java.util.ArrayList;\\nimport java.util.Arrays;\\n\\n\");\n\n buf.write(\"public class \" + namePrefix + \"PartLibrary extends PartLibrary {\\n\\n\");\n\n // constructor\n buf.write(\"\\tpublic \" + namePrefix + \"PartLibrary() {\\n\");\n buf.write(\"\\t\\tsuper();\\n\");\n buf.write(\"\\t}\\n\\n\");\n\n // add parts method\n buf.write(\"\\tprotected void addParts() {\\n\");\n for (String currPartName : _partNames) {\n buf.write(\"\\t\\taddPart(new \" + currPartName.toUpperCase() + \"());\\n\");\n }\n buf.write(\"\\t}\\n\\n\");\n\n // define parts\n int i = 0;\n for (String currPartName : _partNames) {\n\n buf.write(\"\\tclass \" + currPartName.toUpperCase() + \" extends V\" + famNumber + \"ConfigurationSpecification {\\n\\n\");\n buf.write(\"\\t\\tpublic \" + currPartName.toUpperCase() + \"() {\\n\");\n buf.write(\"\\t\\t\\tsuper();\\n\");\n buf.write(\"\\t\\t\\t_deviceName = \\\"\" + currPartName.toUpperCase() + \"\\\";\\n\");\n buf.write(\"\\t\\t\\t_deviceIDCode = \\\"\" + _deviceIDCodes.get(i) + \"\\\";\\n\");\n\n // Write out Packages\n buf.write(\"\\t\\t\\t_validPackages = new String[] {\");\n for (String pkg : _validPackages.get(i)) {\n buf.write(\"\\\"\" + pkg + \"\\\", \");\n }\n buf.write(\"};\\n\");\n\n // Write out Speed Grades\n buf.write(\"\\t\\t\\t_validSpeedGrades = new String[] {\");\n for (String speeds : _validSpeedGrades.get(i)) {\n buf.write(\"\\\"\" + speeds + \"\\\", \");\n }\n buf.write(\"};\\n\");\n\n buf.write(\"\\t\\t\\t_topRows = \" + _numTopRows.get(i) + \";\\n\");\n buf.write(\"\\t\\t\\t_bottomRows = \" + _numBottomRows.get(i) + \";\\n\");\n\n buf.write(\"\\t\\t\\t_blockTypeLayouts = new ArrayList<BlockTypeInstance>(Arrays.asList(new BlockTypeInstance[] {\\n\");\n buf.write(\"\\t\\t\\t\\t\\tnew BlockTypeInstance(LOGIC_INTERCONNECT_BLOCKTYPE, new BlockSubType[] {\\n\\t\\t\\t\\t\\t\\t\");\n for (BlockSubType blk : _logicLayouts.get(i)) {\n buf.write(blk + \", \");\n }\n buf.write(\"\\n\\t\\t\\t\\t\\t}),\\n\");\n buf.write(\"\\t\\t\\t\\t\\tnew BlockTypeInstance(BRAM_CONTENT_BLOCKTYPE, new BlockSubType[] {\\n\\t\\t\\t\\t\\t\\t\");\n for (BlockSubType blk : _bramContentLayouts.get(i)) {\n buf.write(blk + \", \");\n }\n buf.write(\"\\n\\t\\t\\t\\t\\t}),\\n\");\n buf.write(\"\\t\\t\\t}));\\n\");\n\n buf.write(\"\\t\\t\\t_overallColumnLayout = _blockTypeLayouts.get(0).getColumnLayout();\\n\");\n\n buf.write(\"\\t\\t}\\n\");\n buf.write(\"\\t}\\n\\n\");\n i++;\n }\n\n buf.write(\"}\\n\");\n buf.flush();\n\n } catch (IOException e) {\n e.printStackTrace();\n System.err.println(\"Error writing file: \" + fileName);\n System.exit(1);\n }\n\n }", "title": "" }, { "docid": "d0436d8df6b4e568cd7d28f450645055", "score": "0.52670795", "text": "private void run() throws IOException {\r\n\t\tprintln(\"Escort: a DDMSence Sample\\n\");\r\n\r\n\t\tprintln(\"This program allows you to build a DDMS 5.0 assertion from scratch using a\");\r\n\t\tprintln(\"representative subset of possible components. Suggested valid answers are\");\r\n\t\tprintln(\"provided in square brackets for each prompt. However, these are not default\");\r\n\t\tprintln(\"values (hitting Enter will answer the prompt with an empty string).\\n\");\r\n\r\n\t\t_useDummySecurityAttributes = confirm(\"Would you like to save time by using dummy security attributes, Unclassified/USA, throughout the assertion?\");\r\n\r\n\t\tDDMSVersion.setCurrentVersion(\"5.0\");\r\n\r\n\t\tprintHead(\"ddms:metacardInfo (exactly 1 required)\");\r\n\t\tgetTopLevelComponents().add(inputLoop(MetacardInfo.class));\r\n\r\n\t\tprintHead(\"ddms:identifier (at least 1 required)\");\r\n\t\tgetTopLevelComponents().add(inputLoop(Identifier.class));\r\n\r\n\t\tprintHead(\"ddms:title (at least 1 required)\");\r\n\t\tgetTopLevelComponents().add(inputLoop(Title.class));\r\n\r\n\t\t// Skip optional subtitle component.\r\n\r\n\t\tprintHead(\"ddms:description (only 1 allowed)\");\r\n\t\tif (confirm(\"Include this component?\")) {\r\n\t\t\tgetTopLevelComponents().add(inputLoop(Description.class));\r\n\t\t}\r\n\r\n\t\t// Skip optional language component.\r\n\r\n\t\tprintHead(\"ddms:dates (only 1 allowed)\");\r\n\t\tif (confirm(\"Include this component?\")) {\r\n\t\t\tgetTopLevelComponents().add(inputLoop(Dates.class));\r\n\t\t}\r\n\r\n\t\t// Skip optional rights, source, and type components.\r\n\r\n\t\tprintHead(\"Producers: creator, publisher, contributor, and pointOfContact (at least 1 required)\");\r\n\t\tgetTopLevelComponents().add(inputLoop(AbstractProducerRole.class));\r\n\r\n\t\t// Skip optional format component.\r\n\r\n\t\tprintHead(\"ddms:subjectCoverage (at least 1 required)\");\r\n\t\tgetTopLevelComponents().add(inputLoop(SubjectCoverage.class));\r\n\r\n\t\t// Skip optional virtualCoverage, temporalCoverage, geospatialCoverage, relatedResource,\r\n\t\t// and resourceManagement components.\r\n\r\n\t\t// Skip security, which was removed after DDMS 4.1.\r\n\r\n\t\t// Skip optional extensible elements.\r\n\r\n\t\tprintHead(\"ddms:resource Attributes (all required)\");\r\n\t\tResource resource = (Resource) inputLoop(Resource.class);\r\n\t\tprintln(\"The DDMS Resource is valid!\");\r\n\t\tif (resource.getValidationWarnings().isEmpty())\r\n\t\t\tprintln(\"No warnings were recorded.\");\r\n\t\telse {\r\n\t\t\tprintln(\"The following warnings were recorded:\");\r\n\t\t\tfor (ValidationMessage warning : resource.getValidationWarnings())\r\n\t\t\t\tprintln(\" [WARNING] \" + warning.getLocator() + \": \" + warning.getText());\r\n\t\t}\r\n\r\n\t\tprintHead(\"Saving the Resource\");\r\n\t\tif (confirm(\"Would you like to save this file?\")) {\r\n\t\t\tprintln(\"This Resource will be saved as XML in the \" + PropertyReader.getProperty(\"sample.data\")\r\n\t\t\t\t+ \" directory.\");\r\n\t\t\twhile (true) {\r\n\t\t\t\tString filename = readString(\"a filename\");\r\n\t\t\t\tif (filename.length() > 0) {\r\n\t\t\t\t\tsaveFile(filename, resource);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tprintln(\"\\nYou can now open your saved file with the Essentials application.\");\r\n\t\t}\r\n\t\tprintln(\"The Escort wizard is now finished.\");\r\n\t}", "title": "" }, { "docid": "3dfdec2ddc921040ac9fa2fa4ecba49a", "score": "0.5259353", "text": "public static void generateFileText(int lengthText, String fileName)\n {\n File f = new File(fileName);\n if(f.exists())\n {\n f.delete();\n }\n\n double rnd;\n boolean space = false;\n PrintWriter out = null;\n try {\n out = new PrintWriter(\n new BufferedWriter(\n new FileWriter(fileName, true)));\n for(int i=0; i<lengthText; i++)\n {\n double x = Math.random()*10;\n if(i%50 == 0)\n {\n out.println();\n }\n if(x>8 && !space)\n {\n out.print(' ');\n space=true;\n continue;\n }\n rnd = rand.nextDouble() ;\n out.print(map.ceilingEntry(rnd).getValue());\n space=false;\n }\n } catch (Exception e)\n {\n System.err.println(\"Error during generating file\");\n }\n finally {\n out.close();\n }\n }", "title": "" }, { "docid": "26180d8e7746d3d1c777934b54428166", "score": "0.5248198", "text": "TestSpecificationSkeleton generate(Object object);", "title": "" }, { "docid": "6d0be102bb65880daef7fa29cb156fb2", "score": "0.5243984", "text": "@Override\r\n public String printToFile() {\r\n return \"type = \\\"electronics\\\"\" +\r\n \"\\n\" + super.printToFile() +\r\n \"\\nmaker = \\\"\" + getMaker() + \"\\\"\";\r\n }", "title": "" }, { "docid": "f01317ddf4f42f5d88a831ea09810c46", "score": "0.5227685", "text": "@Test\n public void createFormattedRun() throws Exception\n {\n Document doc = new Document();\n\n // Create a new run of text\n Run run = new Run(doc, \"Hello\");\n\n // Specify character formatting for the run of text\n Font f = run.getFont();\n f.setName(\"Courier New\");\n f.setSize(36.0);\n f.setHighlightColor(Color.YELLOW);\n\n // Append the run of text to the end of the first paragraph\n // in the body of the first section of the document\n doc.getFirstSection().getBody().getFirstParagraph().appendChild(run);\n //ExEnd\n\n doc = DocumentHelper.saveOpen(doc);\n run = doc.getFirstSection().getBody().getFirstParagraph().getRuns().get(0);\n\n Assert.assertEquals(\"Hello\", msString.trim(run.getText()));\n Assert.assertEquals(\"Courier New\", run.getFont().getName());\n Assert.assertEquals(36, run.getFont().getSize());\n Assert.assertEquals(Color.YELLOW.getRGB(), run.getFont().getHighlightColor().getRGB());\n\n }", "title": "" }, { "docid": "0c50ed571543076f173c7c3950b071a4", "score": "0.52170336", "text": "public void generate() {\n\n try {\n FileWriter input = new FileWriter(\"sunset.txt\");\n StringBuilder sb = new StringBuilder();\n sb.append(\"canvas \");\n sb.append(\"200 70 360 360\" + \"\\n\");\n sb.append(\"canvas 0 0 800 800\\n\"\n + \"shape background rectangle\\n\"\n + \"shape sun ellipse\\n\"\n + \"shape building1 rectangle\\n\"\n + \"shape building2 rectangle\\n\"\n + \"shape treebark rectangle\\n\"\n + \"shape treetop1 ellipse\\n\"\n + \"shape treetop2 ellipse\\n\"\n + \"\\n\"\n + \"motion background 1 0 0 800 800 137 207 240 1 0 0 800 800 137 207 240\\n\"\n + \"motion background 1 0 0 800 800 137 207 240 50 0 0 800 800 137 207 240\\n\"\n + \"motion background 50 0 0 800 800 137 207 240 90 0 0 800 800 2 7 93\\n\"\n + \"motion background 90 0 0 800 800 2 7 93 200 0 0 800 800 2 7 93\\n\"\n + \"\\n\"\n + \"motion sun 1 600 100 150 150 255 229 124 1 600 100 150 150 255 229 124\\n\"\n + \"motion sun 1 600 100 150 150 255 229 124 50 100 100 150 150 255 229 124\\n\"\n + \"motion sun 50 100 100 150 150 255 229 124 90 100 100 150 150 255 250 250\\n\"\n + \"motion sun 90 100 100 150 150 255 250 250 200 100 100 150 150 255 250 250\\n\"\n + \"\\n\"\n + \"motion building1 1 30 424 200 326 128 128 112 1 30 424 200 326 128 128 112\\n\"\n + \"motion building1 1 30 424 200 326 128 128 112 50 30 424 200 326 128 128 112\\n\"\n + \"motion building1 50 30 424 200 326 128 128 112 90 30 424 200 326 0 0 0\\n\"\n + \"motion building1 90 30 424 200 326 0 0 0 200 30 424 200 326 0 0 0\\n\"\n + \"\\n\"\n + \"motion building2 1 270 375 150 375 254 127 156 1 270 375 150 375 254 127 156\\n\"\n + \"motion building2 1 270 375 150 375 254 127 156 50 270 375 150 375 254 127 156\\n\"\n + \"motion building2 50 270 375 150 375 254 127 156 90 270 375 150 375 0 0 0\\n\"\n + \"motion building2 90 270 375 150 375 0 0 0 200 270 375 150 375 0 0 0\\n\"\n + \"\\n\"\n + \"\\n\"\n + \"motion treebark 1 570 570 50 200 51 25 0 1 570 570 50 200 51 25 0\\n\"\n + \"motion treebark 1 570 570 50 200 51 25 0 50 570 570 50 200 51 25 0\\n\"\n + \"motion treebark 50 570 570 50 200 51 25 0 90 570 570 50 200 0 0 0\\n\"\n + \"motion treebark 90 570 570 50 200 0 0 0 200 570 570 50 200 0 0 0\\n\"\n + \"\\n\"\n + \"motion treetop1 1 500 450 200 125 34 139 34 1 500 450 200 125 34 139 34\\n\"\n + \"motion treetop1 1 500 450 200 125 34 139 34 50 500 450 200 125 34 139 34\\n\"\n + \"motion treetop1 50 500 450 200 125 34 139 34 90 500 450 200 125 0 0 0\\n\"\n + \"motion treetop1 90 500 450 200 125 0 0 0 200 500 450 200 125 0 0 0\\n\"\n + \"\\n\"\n + \"motion treetop2 1 530 370 150 105 34 139 34 1 530 370 150 105 34 139 34\\n\"\n + \"motion treetop2 1 530 370 150 105 34 139 34 50 530 370 150 105 34 139 34\\n\"\n + \"motion treetop2 50 530 370 150 105 34 139 34 90 530 370 150 105 0 0 0\\n\"\n + \"motion treetop2 90 530 370 150 105 0 0 0 200 530 370 150 105 0 0 0\\n\");\n input.write(sb.toString());\n input.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d3722efac09284c81be423cf4f22793d", "score": "0.52054745", "text": "public static void main(String[] args) {\n\t\tString src=\"D:\\\\ServiceTestGenerator\\\\\";\r\n\t\tScanner scan=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter Class name: \");\r\n\t\tString name=scan.next();\r\n\t\tSystem.out.println(\"Enter method1 name: \");\r\n\t\tString method1=scan.next();\r\n\t\tSystem.out.println(\"Enter method2 name: \");\r\n\t\tString method2=scan.next();\r\n\t\tSystem.out.println(\"Enter method3 name: \");\r\n\t\tString method3=scan.next();\r\n\t\tSystem.out.println(\"Enter method4 name: \");\r\n\t\tString method4=scan.next();\r\n\t\tSystem.out.println(\"Enter method5 name: \");\r\n\t\tString method5=scan.next();\r\n\t\tFile f = new File(src, name + \".java\");\r\n\t\tif(!f.exists())\r\n\t\t\ttry {\r\n\t\t\t\tf.createNewFile();\r\n\t\t\t\tFileWriter fileWriter = new FileWriter(src+name+\".java\");\r\n\t\t\t PrintWriter printWriter = new PrintWriter(fileWriter);\r\n\t\t\t\t/*\r\n\t\t\t\t * printWriter.print(\"Some String\");\r\n\t\t\t\t * printWriter.printf(\"Product name is %s and its price is %d $\", \"iPhone\",\r\n\t\t\t\t * 1000);\r\n\t\t\t\t */\r\n\t\t\t String name1=name.replaceAll(\"Test\", \"\");\r\n\t\t\t String mock1=name.replaceAll(\"ServiceTest\", \"DAO\");\r\n\t\t\t String mock2=name.replaceAll(\"ServiceTest\", \"Model\");\r\n\t\t\t String obj= Character.toLowerCase(name.charAt(0)) + name1.substring(1);\r\n\t\t\t String mockobj1= Character.toLowerCase(mock1.charAt(0)) + mock1.substring(1);\r\n\t\t\t String mockobj2= Character.toLowerCase(mock2.charAt(0)) + mock2.substring(1);\r\n\t\t\t printWriter.print(\"package com.rhs.common.masterdata.serviceTest;\\r\\n\" + \r\n\t\t\t \t\t\"\\r\\n\" + \r\n\t\t\t \t\t\"import java.util.ArrayList;\\r\\n\" + \r\n\t\t\t \t\t\"import java.util.List;\\r\\n\" + \r\n\t\t\t \t\t\"\\r\\n\" + \r\n\t\t\t \t\t\"import org.junit.Assert;\\r\\n\" + \r\n\t\t\t \t\t\"import org.junit.Before;\\r\\n\" + \r\n\t\t\t \t\t\"import org.junit.Test;\\r\\n\" + \r\n\t\t\t \t\t\"import org.mockito.InjectMocks;\\r\\n\" + \r\n\t\t\t \t\t\"import org.mockito.Mock;\\r\\n\" + \r\n\t\t\t \t\t\"import org.mockito.Mockito;\\r\\n\" + \r\n\t\t\t \t\t\"import org.mockito.MockitoAnnotations;\"\r\n\t\t\t \t\t+ \"\\r\\n\" + \r\n\t\t\t \t\t\"import com.rhs.common.masterdata.dao.\"+mock1+\";\"+\"\\r\\n\" + \r\n\t\t\t \t\t\"import com.rhs.common.masterdata.domain.\"+mock2+\";\"+\"\\r\\n\"\r\n\t\t\t \t\t+ \"import com.rhs.common.masterdata.service.\"+name1+\";\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.print(\"public class \"+ name+\"{\");\r\n\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@InjectMocks\\r\\n\" + \r\n\t\t\t \t\t\"\tprivate \"+name1+\" \"+obj+\";\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Mock\\r\\n\" + \r\n\t\t\t \t\t\"\tprivate \"+mock1+\" \"+ mockobj1+\";\\r\\n\" + \r\n\t\t\t \t\t\"\\r\\n\" + \r\n\t\t\t \t\t\"\t@Mock\\r\\n\" + \r\n\t\t\t \t\t\"\tprivate \"+mock2+\" \"+ mockobj2+\";\");\r\n\t\t\t printWriter.println(\"\\r\\n\");\r\n\t\t\t printWriter.print(\"@Before\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void setUp() throws Exception {\\r\\n\" + \r\n\t\t\t \t\t\"\t\tMockitoAnnotations.initMocks(this);\\r\\n\" + \r\n\t\t\t \t\t\"\t}\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Test\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void \"+method1+\"Test() { \"\r\n\t\t\t \t\t\t\t+ \"\\n\"\r\n\t\t\t \t\t\t\t+ \"\\n final \"+mock2+\" \"+ mockobj2+\" = \"+\" Mockito.mock(\"+mock2+\".class);\"\r\n\t\t\t \t\t\t\t+ \"\\n Mockito.when(this.\"+mockobj1+\".\"+method1+\"(\"+mockobj2+\")).thenReturn(1);\"\r\n\t\t\t \t\t\t\t+ \"\\n Assert.assertNotNull(this.\"+obj+\".\"+method1+\"(\"+mockobj2+\")); }\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Test\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void \"+method2+\"Test() { \"\r\n\t\t\t \t\t\t\t+ \"\\n final \"+mock2+\" \"+ mockobj2+\" = \"+\" Mockito.mock(\"+mock2+\".class);\\r\\n\" \r\n\t\t\t \t\t\t\t+ \"\\n Mockito.when(this.\"+mockobj1+\".\"+method2+\"(\"+mockobj2+\")).thenReturn(1);\"\r\n\t\t\t \t\t\t\t+ \"\\n Assert.assertNotNull(this.\"+obj+\".\"+method2+\"(\"+mockobj2+\")); }\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Test\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void \"+method3+\"Test() { \"\r\n\t\t\t \t\t\t\t+ \"final String code = \\\"Hello\\\";\\r\\n\" \r\n\t\t\t \t\t\t\t+\"Mockito.when(this.\"+mockobj1+\".\"+method3+\"(code)).thenReturn(this.\"+mockobj2+\");\"\r\n\t\t\t \t\t\t\t+\"Assert.assertNotNull(this.\"+obj+\".\"+method3+\"(code));}\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Test\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void \"+method4+\"Test() { \"\r\n\t\t\t \t\t\t\t+ \"final List<\"+mock2+\"> value = new ArrayList<>();\\r\\n\" + \r\n\t\t\t \t\t\t\t\"\t\tMockito.when(this.\"+mockobj1+\".\"+method4+\"()).thenReturn(value);\\r\\n\" + \r\n\t\t\t \t\t\t\t\"\t\tAssert.assertNotNull(this.\"+obj+\".\"+method4+\"()); }\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"\");\r\n\t\t\t \r\n\t\t\t printWriter.println(\"@Test\\r\\n\" + \r\n\t\t\t \t\t\"\tpublic void \"+method5+\"Test() { \"\r\n\t\t\t \t\t\t\t+ \" Mockito.when(this.\"+mockobj1+\".\"+method5+\"(this.\"+mockobj2+\")).thenReturn(1);\\r\\n\" + \r\n\t\t\t \t\t\t\t\"\t\tAssert.assertNotNull(this.\"+obj+\".\"+method5+\"(this.\"+mockobj2+\")); }\");\r\n\r\n\t\t\t printWriter.println(\"\");\r\n\r\n\t\t\t printWriter.println(\"}\");\r\n\t\t\t printWriter.close();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} 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}", "title": "" }, { "docid": "69be22074468eae07e1c86635308f877", "score": "0.52054673", "text": "protected void c_basic_concept_marks() throws IOException {\n\n File file = new File(\"MARKS.txt\");\n FileWriter fileWriter = new FileWriter(file, true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n PrintWriter printWriter = new PrintWriter(bufferedWriter);\n if (file.exists() == false) {\n file.createNewFile();\n System.out.println(\"\\n\");\n } else {\n System.out.println(\"\\n\");\n }\n\n printWriter.println(user);\n printWriter.println(\"----------------------------------------------\\n\");\n System.out.println(\"\\t ___________________________________________\");\n System.out.println(\"\\t ** MARKS ADDED ** \");\n System.out.println(\"\\t ___________________________________________\");\n printWriter.close();\n }", "title": "" }, { "docid": "204728d1c577054b8c1eb8d47a878220", "score": "0.5171928", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tIDocument mydoc = new Document2004();\r\n\t\tmydoc.getBody().addEle(Paragraph.with(\"There is a BreakLine under this Paragraph. And of course I am a Paragraph.\"));\r\n\r\n\t\tmydoc.getBody().addEle(new BreakLine());\r\n\r\n\t\tmydoc.getBody().addEle(Heading1.with(\"I am a Heading1\"));\r\n\t\t\r\n\t\t/*Image img01 = new Image(\"http://www.google.com.au/intl/en_com/images/srpr/logo1w.png\", ImageType.WEB_URL);\r\n\t\timg01.setWidth(\"200\"); // this will override the default values\r\n\t\timg01.setHeight(\"30\"); // this will override the default values\r\n\t\tmydoc.getBody().addEle(img01);*/\r\n\r\n\t\tTable tbl = new Table();\r\n\t\ttbl.addTableEle(TableEle.TH, \"Name\", \"Salary\");\r\n\t\t\r\n\t\tmydoc.getBody().addEle(tbl);//add my table to the document\r\n\r\n\t\tmydoc.getFooter().showPageNumber(true); //default is true ok...\r\n\r\n\r\n\t\t\r\n\t\t\r\n\t\t/*IDocument myDoc = new Document2004();\r\n TableV2 tbl = new TableV2();\r\n \r\n tbl.addRow( TableRow.with(\"Table Header in all Pages\", \"Usefull for reports\").withStyle().repeatTableHeaderOnEveryPage().create() );\r\n \r\n tbl.addRow( TableRow.with(\"Simple String cell\", \"Another simple String cell\") ); \r\n tbl.addRow( TableRow.with( TableCell.with(Paragraph.with(\"TableCell- Style to the whole cell, Par\").create()), \"Simple String\" ).withStyle().bold().create() );\r\n tbl.addRow( TableRow.with(\"Style to the whole cell, Str\", \"String\").withStyle().bold().create() );\r\n tbl.addRow( TableRow.with( TableCell.with(Paragraph.with(\"TableRowV2 with merge\").create()).withStyle().gridSpan(2).create() ).withStyle().bold().create() );\r\n tbl.addRow( TableRow.with( TableCell.with(Paragraph.withPieces( ParagraphPiece.with(\"Paragraph with Style inside TableCell\").withStyle().bold().fontSize(\"20\").create() ).create()).withStyle().bgColor(\"00FFFF\").create(), \"String\" ));\r\n \r\n String img = Image.from_WEB_URL(\"http://www.google.com/images/logos/ps_logo2.png\").setHeight(\"100\").setWidth(\"300\").create().getContent();\r\n tbl.addRow( TableRow.with(\"this google logo: \", \"Image here: \"+ img + \" == image before\") );\r\n \r\n for (int i = 0; i < 8000; i++) {\r\n tbl.addRow( TableRow.with(\"111 \", \"222\") ); \r\n }\r\n \r\n tbl.addRow( TableRow.with(\"LAST\", \"LAST\") ); \r\n \r\n //myDoc.addEle(tbl.getContent());\r\n */\r\n File file = new File(\"D:\\\\a1.doc\");\r\n if (!file.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tFileWriter fw = null;\r\n\t\ttry {\r\n\t\t\tfw = new FileWriter(file.getAbsoluteFile());\r\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\tbw.write(mydoc.getContent());\r\n\t\t\tbw.close();\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n \r\n\t\t/*try {\r\n\t\t\tthrow new Exception();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Class is : <\"+e.getStackTrace()[0].getClassName()+\">, Method Name is : <\"+e.getStackTrace()[0].getMethodName()+\">, Message : \"); \r\n\t\t\tfor (final StackTraceElement ste : e.getStackTrace()) {\r\n\t\t System.out.println(ste.getClassName()); \r\n\t\t System.out.println(ste.getMethodName()); \r\n\t\t }\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t/*Properties props = new Properties();\r\n\t\ttry {\r\n\t\t\tprops.load(new FileInputStream(\"log4j.properties\"));\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\tPropertyConfigurator.configure(props);\r\n\t\tLoggerSingleton.getInstance().debug(\"Hello this is an debug message\");\r\n\t\tLoggerSingleton.getInstance().info(\"Hello this is an info message\");\r\n\t\t*/\r\n\t\t/*Fruit[] fruits = new Fruit[4];\r\n\t\t \r\n\t\tFruit pineappale = new Fruit(\"Pineapple\", \"Pineapple description\",70); \r\n\t\tFruit apple = new Fruit(\"Apple\", \"Apple description\",100); \r\n\t\tFruit orange = new Fruit(\"Orange\", \"Orange description\",80); \r\n\t\tFruit banana = new Fruit(\"Banana\", \"Banana description\",90); \r\n \r\n\t\tfruits[0]=pineappale;\r\n\t\tfruits[1]=apple;\r\n\t\tfruits[2]=orange;\r\n\t\tfruits[3]=banana;\r\n\r\n\t\tArrays.sort(fruits, new Fruit());\r\n \r\n\t\tint i=0;\r\n\t\tfor(Fruit temp: fruits){\r\n\t\t System.out.println(\"fruits \" + ++i + \" : \" + temp.getFruitName() + \r\n\t\t\t\", Quantity : \" + temp.getQuantity());\r\n\t\t}\r\n\t\t\r\n\t\tArrays.sort(fruits, Fruit.FruitNameComparator);\r\n \r\n\t\tfor(Fruit temp: fruits){\r\n\t\t System.out.println(\"fruits \" + ++i + \" : \" + temp.getFruitName() + \r\n\t\t\t\", Quantity : \" + temp.getQuantity());\r\n\t\t}*/\r\n\t\t\r\n\t\t/*try {\r\n\t\t\tDate d1 = ApplicationUtil.dateFormat1.parse(\"2014-07-23\");\r\n\t\t\tDate d2 = ApplicationUtil.dateFormat1.parse(\"2014-08-30\");\r\n\t\t\tint x1 = (int) d1.getTime();\r\n\t\t\tint x2 = (int) d2.getTime();\r\n\t\t\tint x3 = x2 - x1;\r\n\t\t\tint x4 = x3 / (1000*60*60*24);\r\n\t\t\tint x5 = (int)(d2.getTime() - d1.getTime());\r\n\t\t\tint x6 = x5 / (1000*60*60*24);\r\n\t\t\tCalendar c1 = Calendar.getInstance(); c1.setTime(d1);\r\n\t\t\tCalendar c2 = Calendar.getInstance(); c1.setTime(d2);\r\n\t\t\tlong x7 = (int)c1.getTimeInMillis() - c2.getTimeInMillis();\r\n\t\t\tlong x8 = x7 / (1000*60*60*24);\r\n\t\t\t\r\n\t\t\tSystem.out.println(x6);\r\n\t\t\tSystem.out.println(x8);\r\n\t\t} catch (ParseException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}*/\r\n\t\t\r\n\t\t//1432840192\r\n\t\t/*\r\n\t\tint s1 = 0;\r\n\t\ttry {\r\n\t\t\ts1 = new java.io.File(\"D://AdminWeb//build//classes123\").list().length;\r\n\t\t} catch(NullPointerException e) {}\r\n\t\tSystem.out.print(s1);\r\n\t\tSystem.exit(0);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.print(\"+0909987878\".replaceFirst(\"^[0|+]*\", \"\"));*/\r\n\t\t/*SimpleDateFormat sdfgmt = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t sdfgmt.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n\r\n\t SimpleDateFormat sdfmad = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t sdfmad.setTimeZone(TimeZone.getTimeZone(\"Asia/Kolkata\"));\r\n\r\n\t String inpt = \"2011-23-03 16:40:44\";\r\n\t Date inptdate = null;\r\n\t try {\r\n\t inptdate = sdfgmt.parse(inpt);\r\n\t } catch (ParseException e) {e.printStackTrace();}\r\n\r\n\t System.out.println(\"GMT:\\t\\t\" + sdfgmt.format(inptdate));\r\n\t System.out.println(\"Europe/Madrid:\\t\" + sdfmad.format(inptdate));*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t/*\r\n\t\t\t String [] testArray = {\"sms.register\", \"ride.option.sms\", \"ride.option.approved\", \r\n\t\t\t\t\"ride.option.rejected\", \"sms.cancel.driver.admin\", \"sms.cancel.passenger.admin\", \r\n\t\t\t\t\"sms.rideSeeker.unmatched.cancel\", \"sms.cancel\", \"sms.cancel.driver\", \"sms.forgot.password\", \r\n\t\t\t\t\"sms.match\", \"sms.match.driver\", \"ride.option.msgBoard\"};\r\n\t\t\t for(String key:testArray) {try {\r\n\t\t\t\tSmsService.sendSms(\"8884114220\", Messages.getValue(key, new Object[]{\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\"}));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace(); }\r\n\t\t\t}*/\r\n\t\t\r\n\t\t//System.out.println(ApplicationUtil.currentTimeStamp);\r\n\t\t\r\n\t\t/*String str1 = \"25-Jun-2014 08:00 PM\";\r\n\t\tSystem.out.println(str1);\r\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(ApplicationUtil.datePattern3);\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(ApplicationUtil.datePattern9);\r\n\t\tDate date;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(dateFormat.format(new Date()));\r\n\t\t\tdate = dateFormat.parse(str1);\r\n\t\t\tSystem.out.println(date);\r\n\t\t\tSystem.out.println(formatter.format(date));\r\n\t\t} catch (ParseException 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\tString str[] = \"[ONCE, Two]\".replace(\"[\", \"\").replace(\"]\", \"\").split(\",\");\r\n\t\tfor(int i=0;i<str.length;i++) str[i] = str[i].trim();\r\n\t\tList s = Arrays.asList(str);\r\n\t\t\r\n\t\ttry{\r\n\t\t\tDate date = ApplicationUtil.dateFormat3.parse(\"2014-06-11 00:00:00\");\r\n\t\t\t\r\n\t\t\tDate fromNight = ApplicationUtil.dateFormat16.parse(\"20:00:00\");\r\n\t\t\tDate toNight = ApplicationUtil.dateFormat16.parse(\"06:00:00\");\r\n\t\t\t\r\n\t\t\tdate = ApplicationUtil.dateFormat16.parse(ApplicationUtil.dateFormat16.format(date));\r\n\t\t\tDate fromLimit = ApplicationUtil.dateFormat16.parse(\"23:59\");\r\n\t\t\tDate toLimit = ApplicationUtil.dateFormat16.parse(\"00:00\");\r\n\t\t\t\r\n\t\t\t//System.out.println(date.after(fromNight) && date.before(fromLimit));\r\n\t\t\t//System.out.println(date.before(toNight) && date.after(toLimit));\r\n\t\t} catch(ParseException e) {}\r\n\t\tSystem.out.print(compareDates(\"20:00:00\", \"06:00:00\", \"15:00:00\"));*/\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c5847252fc54966b3d23e04e43134f93", "score": "0.5170058", "text": "public static void createProgramFile() throws IOException\r\n\t\t{\r\n\t\t\t\tList<List<String>> list = new ArrayList<>(); // declaring a list of types string\r\n\t\t\t\t\r\n\t\t\t\t File file = new File(\"Programs\\\\\"+programUserInterface.saveFileNametxt.getText()); // providing the path of the files\r\n\t \r\n\t\t\t\tString fileName = file.getAbsolutePath(); // fetch the specified path of file and store it into string\r\n\r\n\t\t\t\t// use for loop, and add the file into list\r\n\t\t\t\tfor (int i = 0; i < 1; i++) {\r\n\t\t\t\t\tlist.add(new ArrayList<>()); // add file into list\r\n\t\t\t\t\tlist.get(0).add(\"Dictionary\" + \"\\n\" + \"Demo\"+ \"\\n\"\r\n\t\t\t\t\t\t\t+\"\\t\"+ writeProgram.getText());\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\tdict.saveDictionary(list, fileName); // calling the method from the dictionary API\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "85a73eff833aa860878abbb2184a139c", "score": "0.51693875", "text": "@Test\n\tpublic void generateNewText_loadedDictionary_generatedText() {\n\t\tString output = generator.generateNewText();\n\t\tboolean actual = output.equals(\"I wish I. \")\n\t\t\t\t|| output.equals(\"I wish I? \") || output.equals(\"I wish I! \");\n\t\tassertTrue(\"One of outputs generated does not match what is expected\",\n\t\t\t\tactual);\n\t}", "title": "" }, { "docid": "39dd78c45567e30b4ade96e312f99aba", "score": "0.51629317", "text": "private static void genTests(String path){\n\t\ttry {\n\t\t\tBufferedWriter inputfile = new BufferedWriter(new FileWriter(path + \"/p1tests\"));\n\t\t\tBufferedWriter latexfile = new BufferedWriter(new FileWriter(path + \"/p1.tex\"));\n\t\t\tCharacter[] gnames = new Character[]{'k', 'b', 'p', 'c', 'w', 's'};\n\t\t\tString[] opnames = new String[]{\"dir\", \"car\", \"str\", \"odd\", \"lex\", \"sum\", \"join\"};\n\t\t\tString[] texOps = new String[]{\"\\\\otimes\", \"\\\\square\", \"\\\\boxtimes\", \"\\\\bigtriangleup\", \"\\\\circ\", \"\\\\oplus\", \"$---$\"};\n\t\t\tString[] texNames = new String[]{\"K_5\", \"K_{4,6}\", \"P_5\", \"C_5\", \"W_5\", \"S_5\"};\n\t\t\tString[] nameds = new String[]{\".K5\", \".K4,6\", \".P5\", \".C5\", \".W5\", \".S5\"};\n\t\t\tString[] binOps = new String[]{\"(X)\", \"[ ]\", \"[X]\", \"(^)\", \"(o)\", \"(+)\", \"---\"};\n\t\t\t\n\t\t\t// complements\n\t\t\tfor(int i = 0; i < nameds.length; i++){\n\t\t\t\tinputfile.write(gnames[i] + \"c = -\" + nameds[i] + \"; \");\n\t\t\t\tinputfile.write(\"print \" + gnames[i] + \"c;\\n\");\n\t\t\t\tlatexfile.write(\"$\\\\overline{\" + texNames[i] + \"}$:\");\n\t\t\t\tlatexfile.write(\"\\\\input{p1figures/\" + gnames[i] + \"c.tex}\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t// all binary operators\n\t\t\tfor(int i = 0; i < nameds.length; i++){\n\t\t\t\tfor(int j = i+1; j < nameds.length; j++){\n\t\t\t\t\tfor(int k = 0; k < binOps.length; k++){\n\t\t\t\t\t\tinputfile.write(gnames[i] + opnames[k] + gnames[j] + \" = \");\n\t\t\t\t\t\tinputfile.write(nameds[i] + binOps[k] + nameds[j] + \"; \");\n\t\t\t\t\t\tinputfile.write(\"print \" + gnames[i] + opnames[k] + gnames[j] + \";\\n\");\n\t\t\t\t\t\tlatexfile.write(\"$\" + texNames[i] + texOps[k] + \" \" + texNames[j] + \"$:\");\n\t\t\t\t\t\tlatexfile.write(\"\\\\input{p1figures/\" + gnames[i] + opnames[k] + gnames[j] + \".tex}\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tinputfile.close();\n\t\t\tlatexfile.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to output tests file!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "946afae267c8d96e0198db176401c370", "score": "0.51578516", "text": "@Override\n public void startDocument() {\n inName = false;\n inDescription = false;\n inVictoryPoints = false;\n inWorksOn = false;\n inStrategy = false;\n inColourArray = false;\n inValueArray = false;\n }", "title": "" }, { "docid": "ff35648e1b1d3994d62d5bea487923e5", "score": "0.51434165", "text": "protected void specifications() {\n\t\tspecifications(8, 10, 9, production.FOOD, productionAmount, health, \n\t\t\t\tstorage);\n\t}", "title": "" }, { "docid": "1930bae1a93d270a659b9fa618e46e32", "score": "0.51389664", "text": "private String makeTxtFile() throws PipelineException{\n \t\n NodeDetailsHeavy det = pSelected.get(pPrimary).getHeavyDetails();\n VersionID mainID = det.getWorkingVersion().getWorkingID();\n \n String verNum = mainID.toString();\n verNum = verNum.replace(\".\", \"_\");\n String a = det.toString();\n a = a.substring(0, a.indexOf(\".\"));\n \n \n /*--Write the txt file--------------*/\n String fName = \"/usr/tmp/\"+a+\"_delivery_v\"+verNum+\".txt\";\t\t\n try {\n\t File txtFile = new File(fName);\n\t BufferedWriter out = new BufferedWriter( new FileWriter(txtFile));\n\t \n\t /*add the included files*/\n\t for(Integer key: pNodes.keySet()){\n\t NodeDetailsHeavy cur = pNodes.get(key).getHeavyDetails();\n\t VersionID id = cur.getWorkingVersion().getWorkingID();\t \n\t \n\t FileSeq fseq = cur.getWorkingVersion().getPrimarySequence();\n\t if(fseq.numFrames()>1){\n\t out.write(key+\"\\t\"+cur.getBaseVersion().getName()+\"\\t\"+fseq.toString() +\"\\t\"+id+\"\\n\");\n\t \n\t } else {\n\t //System.err.println(\"Not a sequence\");\n\t out.write(key+\"\\t\"+cur.getBaseVersion().getName()+\"\\t\"+cur.getWorkingVersion()+\"\\t\"+id+\"\\n\");\t \n\t }\n\t }//end for\n\t \n\t /*add the excluded files*/\n\t for(Integer key: pExclusions.keySet()){\n\t NodeDetailsHeavy cur = pExclusions.get(key).getHeavyDetails();\n\t VersionID id = cur.getWorkingVersion().getWorkingID();\t \n\t FileSeq fseq = cur.getWorkingVersion().getPrimarySequence();\n\t if(fseq.numFrames()>1){\n\t out.write(key+\"\\t\"+cur.getBaseVersion().getName()+\"\\t\"+fseq.toString() +\"\\t\"+id+\"\\t[Excluded]\\n\");\n\t \n\t } else {\n\t //System.err.println(\"Not a sequence\");\n\t out.write(key+\"\\t\"+cur.getBaseVersion().getName()+\"\\t\"+cur.getWorkingVersion()+\"\\t\"+id+\"\\t[Excluded]\\n\");\t \n\t }\n\t }//end for\n\t \n\t out.write(\"\\n\");\n\t for(String key: pLinks){\n\t out.write(key+\"\\n\");\n\t }//end for\n\t \n\t out.close();\n } catch(IOException ex) {\n\t throw new PipelineException\n\t \t(\"Unable to write temporary script file (\" + fName + \")!\\n\" +\n\t \t\tex.getMessage());\n }//end catch \n return fName;\n }", "title": "" }, { "docid": "6103b66d4faab56fc753efdbe1de3b76", "score": "0.513424", "text": "public void generateReport() {\n\t\ttry\n\t\t{\n\t\tHeaderSectionData header = fetchHeaderSectionData();\n\t\tReportBodyData body = fetchReportBodyData();\n\t\tFooterSectionData footer = fetchFooterSectionData();\n\t\twriteDataToFile(header, body, footer);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"generateReport -> exception :\"+e);\n\t\t}\n\t}", "title": "" }, { "docid": "9256e0c28af9a5ad5979771aa4a53ce7", "score": "0.51331836", "text": "public void output()\n\t{\n\t\ttextWhole = FileFunctions.extractTextFromFile(fileIn);\n\t\t\n\t\t// step 2: partiate text\n\t\tList<String> \tsentences1 = sentenceSplitter(textWhole);\n\t\t\n\t\t// step 3: filter out objectiv sentences\n\t\tList<String>\tsentences2 = filterObjectiveSentences(sentences1);\n\t\t\n\t\t// step 4: identify opinion words\n\t\tdouble [] opinionSums1 = ep.getEmotion(sentences2);\n\t\topinionPrint(opinionSums1);\n\t\t\n\t\t// step 5: normalize opinion words\n\t\tList<String> \tsentences3 = new ArrayList<String>();\n\t\tfor (String s : sentences2)\n\t\t{\n\t\t\tsentences3.add(porterAlgo.stripAffixesSentence(s));\n\t\t}\n\t\t\n\t\t// step 6: investigate modifiers\n\t\t// step 7: compute opinion\n\t\t\n\t\t// output result\n\t\tFileFunctions.saveSentencesToFile(fileOut, sentences3);\n\t}", "title": "" }, { "docid": "ca4582a58b49c52a88da6887ce65bf53", "score": "0.5112534", "text": "@Override\n\tpublic void onBatch(final String text) {\n\t\tview.showProgress();\n\t\tString normalizedText = xmlModelFileCreator.normalizeText(text);\n\t\tfinal List<String> treatments = xmlModelFileCreator.getTreatmentTexts(normalizedText);\n\t\t\n\t\t//temporarily in place as long as we are not sure about the stability of out of memory issue\n\t\t/*if(treatments.size() > 50) {\n\t\t\tAlerter.tooManyFiles();\n\t\t\tview.hideProgress();\n\t\t\treturn;\n\t\t}*/\n\t\t\n\t\tfinal StringBuilder overallError = new StringBuilder();\n\t\tfinal List<XmlModelFile> overallXmlModelFiles = new LinkedList<XmlModelFile>();\t\t\n\t\t\n\t\tif(treatments.size() > 0) {\t\t\n\t\t\tfinal int i = 0;\n\t\t\tfileFormatService.createTaxonDescriptionFile(Authentication.getInstance().getToken(), treatments.get(i), \n\t\t\t\t\tnew TaxonDescriptionCreateRPCCallback(treatments, i, overallError, overallXmlModelFiles));\n\t\t} else\n\t\tview.hideProgress();\t\n\t}", "title": "" }, { "docid": "e7781f78a6ce25a9d0866119a742cb6b", "score": "0.5111527", "text": "@Test\n public void complexScript() throws Exception\n {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n builder.getFont().setComplexScript(true);\n\n builder.writeln(\"Text treated as complex script.\");\n\n doc.save(getArtifactsDir() + \"Font.ComplexScript.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Font.ComplexScript.docx\");\n Run run = doc.getFirstSection().getBody().getParagraphs().get(0).getRuns().get(0);\n\n Assert.assertEquals(\"Text treated as complex script.\", msString.trim(run.getText()));\n Assert.assertTrue(run.getFont().getComplexScript());\n }", "title": "" }, { "docid": "8deb0563c46aaa3d5a7a9b05187d5b0c", "score": "0.5108282", "text": "public static void main (String[] args){\n System.out.println(\"Documentacion para generar un archivo\");\n System.out.println(\"Saldrán todas las clases explicadas si tienen comentarios con /**\");\n }", "title": "" }, { "docid": "ecde21cc4e11dd54ecd9d6ff47eed796", "score": "0.5101604", "text": "public void writeTextFile(boolean infoOn){\n String outputFileName = outputDirectory+rootFileName+\"Extended.dat\";\n PrintStream PS;\n FileOutputStream fout;\n //boolean infoOn=true;\n if (infoOn) System.out.println(\"Writing all author extended data text file \"+ outputFileName);\n try {\n fout = new FileOutputStream(outputFileName);\n PS = new PrintStream(fout);\n\n String sep=\"\\t\";\n String noEntry=\" \";\n writeDataTable(PS, sep, noEntry);\n\n try{ fout.close ();\n } catch (IOException e) { throw new RuntimeException(\"*** File Error with \" +outputFileName+\" \"+e.getMessage());}\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException(\"*** Error opening output file \"+outputFileName+\" \"+e.getMessage());\n }\n if (infoOn) System.out.println(\"Finished writing all author extended data text file \"+ outputFileName);\n }", "title": "" }, { "docid": "053c8e6054e8c58e753b8da14f7af23c", "score": "0.51011384", "text": "String getSpecification();", "title": "" }, { "docid": "3c6da768de46c9beaf9781e36fa12ad8", "score": "0.5070658", "text": "@Override\n public void outputSpecificationBody(IHTTPOutput out, Locale locale, Specification os,\n int connectionSequenceNumber, int actualSequenceNumber, String tabName)\n throws ManifoldCFException, IOException\n {\n Map<String, Object> paramMap = new HashMap<String, Object>();\n\n // Set the tab name\n paramMap.put(\"TABNAME\", tabName);\n paramMap.put(\"SEQNUM\",Integer.toString(connectionSequenceNumber));\n paramMap.put(\"SELECTEDNUM\",Integer.toString(actualSequenceNumber));\n\n // Fill in the field mapping tab data\n fillInFieldMappingSpecificationMap(paramMap, os);\n fillInExceptionsSpecificationMap(paramMap, os);\n fillInBoilerplateSpecificationMap(paramMap, os);\n \n Messages.outputResourceWithVelocity(out,locale,EDIT_SPECIFICATION_FIELDMAPPING_HTML,paramMap);\n Messages.outputResourceWithVelocity(out,locale,EDIT_SPECIFICATION_EXCEPTIONS_HTML,paramMap);\n Messages.outputResourceWithVelocity(out,locale,EDIT_SPECIFICATION_BOILERPLATE_HTML,paramMap);\n }", "title": "" }, { "docid": "0dfd929e5a103e4beb5cb9ccb73ebba6", "score": "0.50573677", "text": "public File saveCommandSpec(TemplateDefinitions definition, File targetDirectory) {\n\n Template templateAnnotation = definition.getTemplateAnnotation();\n String templateDash = getTemplateNameDash(templateAnnotation.name());\n\n if (!targetDirectory.exists()) {\n targetDirectory.mkdirs();\n }\n\n File file =\n new File(targetDirectory, templateDash.toLowerCase() + \"-generated-command-spec.json\");\n LOG.info(\"Saving command spec \" + file.getAbsolutePath());\n\n try (FileWriter writer = new FileWriter(file)) {\n\n String containerName = templateAnnotation.flexContainerName();\n\n if (definition.getTemplateAnnotation().type() == TemplateType.JAVA) {\n writer.write(\n \"{\\n\"\n + \" \\\"mainClass\\\": \\\"\"\n + definition.getTemplateClass().getName()\n + \"\\\",\\n\"\n + \" \\\"classPath\\\": \\\"/template/\"\n + containerName\n + \"/*:/template/\"\n + containerName\n + \"/libs/conscrypt-openjdk-uber-*.jar:/template/\"\n + containerName\n + \"/libs/*:/template/\"\n + containerName\n + \"/classes:/template/\"\n + containerName\n + \"/resources\\\",\\n\"\n + \" \\\"defaultParameterValues\\\": {\\n\"\n + \" \\\"labels\\\": \\\"{\\\\\\\"goog-dataflow-provided-template-type\\\\\\\":\\\\\\\"flex\\\\\\\",\"\n + \" \\\\\\\"goog-dataflow-provided-template-name\\\\\\\":\\\\\\\"\"\n + containerName.toLowerCase()\n + \"\\\\\\\"}\\\"\\n\"\n + \" }\\n\"\n + \"}\\n\");\n } else {\n writer.write(\n \"{\\n\"\n + \" \\\"pyFile\\\": \\\"/template/\"\n + containerName\n + \"/main.py\\\",\\n\"\n + \" \\\"defaultParameterValues\\\": {\\n\"\n + \" \\\"labels\\\": \\\"{\\\\\\\"goog-dataflow-provided-template-type\\\\\\\":\\\\\\\"flex\\\\\\\",\"\n + \" \\\\\\\"goog-dataflow-provided-template-name\\\\\\\":\\\\\\\"\"\n + containerName.toLowerCase()\n + \"\\\\\\\"}\\\"\\n\"\n + \" }\\n\"\n + \"}\\n\");\n }\n } catch (IOException e) {\n throw new RuntimeException(\"Error writing command spec\", e);\n }\n\n return file;\n }", "title": "" }, { "docid": "e26382f7a7ec1c1ff3b72276be4d1498", "score": "0.5056595", "text": "@Test\n void collectTest(){\n StringBuilder expected = new StringBuilder();\n for (int i =0;i<100;i++)\n expected.append(i+\";\");\n\n //TextComponent\n TextComponent paragraph = new TextComponent(TextComponentType.PARAGRAPH,\"\",text);\n for(int i=0;i<10;i++){\n ITextComponent sentence= new TextComponent(TextComponentType.SENTENCE,\"\",text);\n paragraph.add(sentence);\n for(int j=0;j<10;j++){\n sentence.add(new TextComponent(TextComponentType.WORD,Integer.toString(i*10+j)+\";\",sentence));\n }\n }\n\n Assertions.assertEquals(expected.toString(),paragraph.collect());\n }", "title": "" }, { "docid": "4802f19b0cbf77a73333290f2936e049", "score": "0.50538146", "text": "public static void main(String[] args) throws IOException {\n int index = 0;\r\n String text = loadText(\"d:\\\\text.txt\");\r\n int len = (int)(Math.sqrt(text.length()));\r\n List<String[]> list = new ArrayList<>();\r\n changeTable(formTable(text, len), new String[len], list, 0, len);\r\n writeToFile(list, \"d:\\\\output.dat\");\r\n }", "title": "" }, { "docid": "ed06f2f27d05618a191d96ac972e7d63", "score": "0.50502026", "text": "public String getSpecParserAsString() {\n\n\t\tString KindName = this.getName();\n\t\tString[] PropertyNames = this.Data.DataNames;\n\t\tStringBuffer Properties = new StringBuffer();\n\t\t\n\t\tfor(int i = 0; i < PropertyNames.length; i++) {\n\t\t\tString PropertyName = PropertyNames[i];\n\t\t\tif(PropertyName == null) continue;\n\t\t\t\n\t\t\tStringBuffer PropertyNameAlternatives_ExceptThisProperty = new StringBuffer();\n\t\t\tfor(int j = 0; j < PropertyNames.length; j++) {\n\t\t\t\tif(i == j) continue;\t// Except this one\n\t\t\t\tString PName = PropertyNames[j];\n\t\t\t\tif(PName == null) continue;\n\t\t\t\t// Append the '|' sign\n\t\t\t\tif(PropertyNameAlternatives_ExceptThisProperty.length() != 0)\n\t\t\t\t\tPropertyNameAlternatives_ExceptThisProperty.append(\"|\");\n\t\t\t\t// Append the property name\n\t\t\t\tPropertyNameAlternatives_ExceptThisProperty.append(PName);\n\t\t\t}\n\t\t\t// Change to '.' if empty or add prefix and suffix if not empty.\n\t\t\tif(PropertyNameAlternatives_ExceptThisProperty.length() == 0)\n\t\t\t\t PropertyNameAlternatives_ExceptThisProperty = (new StringBuffer()).append(\".\");\n\t\t\telse PropertyNameAlternatives_ExceptThisProperty =\n\t\t\t\t\t(new StringBuffer()).append(\n\t\t\t\t\t\t\tString.format(\"(^[:NewLine:][:#:](%s)[:::])\", PropertyNameAlternatives_ExceptThisProperty\n\t\t\t\t\t));\n\t\t\t\n\t\t\tString EachProperty = String.format(\n\t\t\t\t\t\"(#%s:~\\n\"+\n\t\t\t\t\t\"\t%s*\\n\"+\n\t\t\t\t\t\"\t~:~\\n\"+\n\t\t\t\t\t\"\t((^[:NewLine:][:#:]%s[:::])*[:NewLine:])?\\n\"+\n\t\t\t\t\t\"\t[:#:]%s[:::][^[:NewLine:]]*[:NewLine:]\\n\"+\n\t\t\t\t\t\"\t($%s:~.*~)\\n\"+\n\t\t\t\t\t\"~)\\n\",\n\t\t\t\t\tPropertyName,\n\t\t\t\t\tPropertyNameAlternatives_ExceptThisProperty.toString(),\n\t\t\t\t\tPropertyName,\n\t\t\t\t\tPropertyName,\n\t\t\t\t\tPropertyName\n\t\t\t\t);\n\t\t\tif(Properties.length() != 0) Properties.append(\"|\\n\");\n\t\t\tProperties.append(EachProperty);\n\t\t}\n\t\t\n\t\treturn String.format(StringParserPrefix, KindName)+\"(\\n\"+Properties.toString()+\")*\\n\"+StringParserSuffix;\n\t}", "title": "" }, { "docid": "b18689ea0687ebb66c65a302528bc0b7", "score": "0.5043735", "text": "public void createDocument() {\r\n\t\tXWPFDocument document = new XWPFDocument();\r\n\t\tint i = 0;\r\n\t\ttry {\r\n\r\n\t\t\tFile file = new File(ServerMessageManager.PATH + exam.getExamId() + \".docx\");\r\n\t\t\tFileOutputStream out = new FileOutputStream(file);\r\n\t\t\t// create Paragraph\r\n\t\t\tXWPFParagraph paragraph = document.createParagraph();\r\n\t\t\tparagraph.setAlignment(ParagraphAlignment.LEFT);\r\n\t\t\tXWPFRun run = paragraph.createRun();\r\n\t\t\trun.setText(\"Name:_________________\");\r\n\t\t\trun.addBreak();\r\n\t\t\trun.addBreak();\r\n\t\t\trun.setText(\"Id:___________________\");\r\n\t\t\trun.addBreak();\r\n\t\t\trun.addBreak();\r\n\t\t\trun.addBreak();\r\n\t\t\tArrayList<QuestionInExam> questionInExam = exam.getExamQuestions();\r\n\t\t\tfor (QuestionInExam q : questionInExam) {\r\n\t\t\t\ti++;\r\n\t\t\t\tQuestion question = q.getQuestion();\r\n\t\t\t\trun.setText(\"Question number \" + i + \": \" + question.getIdquestionIntruction());\r\n\t\t\t\trun.addTab();\r\n\t\t\t\trun.setText(\"(\" + q.getQuestionGrade() + \" points)\");\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.setText(question.getQuestionText());\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\tif (q.getFreeTextForStudent() != null) {\r\n\t\t\t\t\trun.setText(\"note: \" + q.getFreeTextForStudent());\r\n\t\t\t\t\trun.addBreak();\r\n\t\t\t\t}\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.setText(\"The answers are:\");\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.setText(\"1. \" + question.getAns1());\r\n\t\t\t\trun.addTab();\r\n\t\t\t\trun.setText(\"2. \" + question.getAns2());\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.setText(\"3. \" + question.getAns3());\r\n\t\t\t\trun.addTab();\r\n\t\t\t\trun.setText(\"4. \" + question.getAns4());\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t\trun.addBreak();\r\n\t\t\t}\r\n\t\t\trun.setText(\"Good luck!\");\r\n\t\t\tdocument.write(out);\r\n\t\t\tout.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "609bc2c8e0fffa6820abae4bdffe698f", "score": "0.50376505", "text": "private void processTextUnit (TextUnit resource) {\n \t\tif (( tmxWriter != null ) && resource.hasTarget(trgLang) ) {\r\n \t\t\ttmxWriter.writeItem(resource, null);\r\n \t\t}\r\n \t\t// Write skeleton and its content\r\n \t\twriter.write(skelWriter.processTextUnit(resource));\r\n \t}", "title": "" }, { "docid": "ac747dc514568b37f7a735068e15b07d", "score": "0.5023134", "text": "public void generate() {\n\t\tgetILIMessages();\n\n\t\tPath directory = platformGenerator.getPdOutputDir().resolve(\"src-gen/\" + trigInst.getComponentImplementation().getName() + \"/\" + trigInst.getName());\n\n\t\tTrigInstanceILIWriterC iliWriter = new TrigInstanceILIWriterC(directory, trigInstILI.getTrigInst());\n\n\t\tiliWriter.open();\n\t\tiliWriter.writePreamble();\n\t\tiliWriter.setILIMessages(iliMessageList);\n\t\tiliWriter.writeMessageDefinition();\n\t\tiliWriter.writeMessageStructure();\n\t\tiliWriter.writeIncludes();\n\t\tiliWriter.close();\n\n\t\t// Set the ILI Message list in the module type\n\t\ttrigInstILI.setILIMessageList(iliMessageList);\n\n\t}", "title": "" }, { "docid": "1078984b07c16b0668471d3870e4b713", "score": "0.5022757", "text": "public void createPackageContents()\r\n {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n turtleDocumentEClass = createEClass(TURTLE_DOCUMENT);\r\n createEReference(turtleDocumentEClass, TURTLE_DOCUMENT__STATEMENTS);\r\n\r\n statementEClass = createEClass(STATEMENT);\r\n\r\n directiveEClass = createEClass(DIRECTIVE);\r\n createEAttribute(directiveEClass, DIRECTIVE__URI);\r\n\r\n prefixEClass = createEClass(PREFIX);\r\n createEAttribute(prefixEClass, PREFIX__NAME);\r\n\r\n baseEClass = createEClass(BASE);\r\n\r\n tripleEClass = createEClass(TRIPLE);\r\n createEReference(tripleEClass, TRIPLE__SUBJECT);\r\n createEReference(tripleEClass, TRIPLE__PREDICATE_OBJECT_LIST);\r\n\r\n subjectEClass = createEClass(SUBJECT);\r\n\r\n predicateObjectListEClass = createEClass(PREDICATE_OBJECT_LIST);\r\n createEReference(predicateObjectListEClass, PREDICATE_OBJECT_LIST__PREDICATE);\r\n createEReference(predicateObjectListEClass, PREDICATE_OBJECT_LIST__OBJECT_LIST);\r\n\r\n verbEClass = createEClass(VERB);\r\n\r\n aVerbEClass = createEClass(AVERB);\r\n createEAttribute(aVerbEClass, AVERB__NAME);\r\n\r\n resourceEClass = createEClass(RESOURCE);\r\n\r\n objectListEClass = createEClass(OBJECT_LIST);\r\n createEReference(objectListEClass, OBJECT_LIST__OBJECT);\r\n\r\n objectEClass = createEClass(OBJECT);\r\n\r\n collectionEClass = createEClass(COLLECTION);\r\n createEReference(collectionEClass, COLLECTION__ITEMS);\r\n\r\n literalEClass = createEClass(LITERAL);\r\n createEReference(literalEClass, LITERAL__TAG);\r\n\r\n stringValueEClass = createEClass(STRING_VALUE);\r\n createEAttribute(stringValueEClass, STRING_VALUE__VALUE);\r\n\r\n integerValueEClass = createEClass(INTEGER_VALUE);\r\n createEAttribute(integerValueEClass, INTEGER_VALUE__VALUE);\r\n\r\n rdfTagEClass = createEClass(RDF_TAG);\r\n\r\n typeTagEClass = createEClass(TYPE_TAG);\r\n createEReference(typeTagEClass, TYPE_TAG__TYPE);\r\n\r\n langTagEClass = createEClass(LANG_TAG);\r\n createEAttribute(langTagEClass, LANG_TAG__LANG);\r\n\r\n uriRefEClass = createEClass(URI_REF);\r\n createEAttribute(uriRefEClass, URI_REF__URI);\r\n\r\n qNameEClass = createEClass(QNAME);\r\n createEReference(qNameEClass, QNAME__PREFIX);\r\n createEAttribute(qNameEClass, QNAME__NAME);\r\n\r\n blankEClass = createEClass(BLANK);\r\n\r\n nodeIDEClass = createEClass(NODE_ID);\r\n createEAttribute(nodeIDEClass, NODE_ID__NODE_ID);\r\n\r\n voidEClass = createEClass(VOID);\r\n createEAttribute(voidEClass, VOID__NODE_ID);\r\n\r\n blankNodeContentEClass = createEClass(BLANK_NODE_CONTENT);\r\n createEReference(blankNodeContentEClass, BLANK_NODE_CONTENT__PREDICATE_OBJECT_LIST);\r\n }", "title": "" }, { "docid": "7c82ae2a62d19e2ab8604accdd854e70", "score": "0.50074935", "text": "public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = null;\n\t\tBufferedWriter out = null;\n\t\tList<String> lst=new ArrayList<String>();\n\t\tString line;\n\t\tSurveyQuestionPaper sPaper=new SurveyQuestionPaper();\n\t\tString status=\"\";\n\t\tint count=0;\n\t\tint sinOption=0;\n\t\tdo{\n\t\ttry {\n\t\t\tin = new BufferedReader(new FileReader(\".//src//SurveyOnSurvey//source.txt\"));\n\t\t\tout = new BufferedWriter(new FileWriter(\".//src//SurveyOnSurvey//report.txt\", true));\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\t\n\t\twhile((line = in.readLine()) != null)\n\t\t{\t\n\t\t\tString str[]=line.split(\",\");\n\t\t\t\n\t\t\t//Single select case\n\t\t\tif(str[1].trim().equalsIgnoreCase(\"Single Select\")){\n\t\t\t\t\n\t\t\t\tdiplayQuestion(str,1);\n\t\t\t\tString option[]=getOptionArray(str[2]);\n\t\t\t\tsinOption=option.length;\n\t\t\t\tString answer=choiceSelect(str[2],1);\n\t\t\t\tlst.add(answer);\n\t\t\t\tsPaper.addSingleChoiceQuestion(str[0], str[2],answer);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//multi select case\n\t\t\telse if(str[1].trim().equalsIgnoreCase(\"Multi Select\")){\n\t\t\t\t\n\t\t\t\tdiplayQuestion(str,2);\n\t\t\t\tString option[]=getOptionArray(str[2]);\n\t\t\t\tString answer=choiceSelect(str[2],2);\n\t\t\t\tsPaper.addMultipleChoiceQuestion(str[0], str[2],answer);\n\t\t\t\t\n\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Text select case\n\t\t\telse if(str[1].trim().equalsIgnoreCase(\"Text\")){\n\t\t\t\tdiplayQuestion(str,3);\n\t\t\t\tString answer=choiceSelect(\"\",3);\n\t\t\t\tsPaper.addTextQuestion(str[0], answer);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcount++;\n\t\tprintReport(sPaper,out,count);\n\t\tSystem.out.print(\"Enter y of Y for next participent survey\");\n\t\tScanner scan =new Scanner(System.in);\n\t\tstatus=scan.next();\n\t\t\n\t\t}while(status.equalsIgnoreCase(\"y\"));\n\t\t\n\t\t/*Map<String, Integer> map=sPaper.surveyPercentage(lst);\n\t\tfor(int index=0;index<sinOption;index++){\n\t\t\tint per=(map.get(index+1)/count)*100;\n\t\t\tout.write(\"\"+index+\" :\"+per);\n\t\t\tout.flush();\n\t\t\tout.newLine();\n\t\t}\n\t\t*/\n\t\t\n\t\tin.close();\n\t\t\n\t\t\n\t\t \n\t\t\n\t}", "title": "" }, { "docid": "d974542bc9c92398867062a8709dfebd", "score": "0.5005898", "text": "public void createPackageContents()\r\n {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n algorithm_clauseEClass = createEClass(ALGORITHM_CLAUSE);\r\n createEReference(algorithm_clauseEClass, ALGORITHM_CLAUSE__ALGORITHM);\r\n\r\n statementEClass = createEClass(STATEMENT);\r\n createEReference(statementEClass, STATEMENT__IF_STATEMENT);\r\n createEReference(statementEClass, STATEMENT__STATE_OUTPUT_EXPR_LIST);\r\n createEReference(statementEClass, STATEMENT__ALGO_MG);\r\n createEReference(statementEClass, STATEMENT__STATE_COMP_REF);\r\n createEReference(statementEClass, STATEMENT__FOR_STATEMENT);\r\n createEReference(statementEClass, STATEMENT__WHEN_STATEMENT);\r\n createEReference(statementEClass, STATEMENT__WHILE_STATEMENT);\r\n createEReference(statementEClass, STATEMENT__ALGO_GI);\r\n createEReference(statementEClass, STATEMENT__ALGO_GC);\r\n\r\n algorithm_Macros_GEN_SIGNALEClass = createEClass(ALGORITHM_MACROS_GEN_SIGNAL);\r\n createEReference(algorithm_Macros_GEN_SIGNALEClass, ALGORITHM_MACROS_GEN_SIGNAL__COMPONENT_REFERENCE);\r\n\r\n algorithm_Macros_GEN_INCEClass = createEClass(ALGORITHM_MACROS_GEN_INC);\r\n createEReference(algorithm_Macros_GEN_INCEClass, ALGORITHM_MACROS_GEN_INC__COMPONENT_REFERENCE);\r\n\r\n algorithm_Macros_GEN_CHANGEEClass = createEClass(ALGORITHM_MACROS_GEN_CHANGE);\r\n createEReference(algorithm_Macros_GEN_CHANGEEClass, ALGORITHM_MACROS_GEN_CHANGE__COMPONENT_REFERENCE);\r\n\r\n state_OutputExprListEClass = createEClass(STATE_OUTPUT_EXPR_LIST);\r\n createEReference(state_OutputExprListEClass, STATE_OUTPUT_EXPR_LIST__OUTPUT_EXPRESSION_LIST);\r\n createEReference(state_OutputExprListEClass, STATE_OUTPUT_EXPR_LIST__COMPONENT_REF);\r\n createEReference(state_OutputExprListEClass, STATE_OUTPUT_EXPR_LIST__FUN_CALL_ARGS);\r\n\r\n state_Comp_RefEClass = createEClass(STATE_COMP_REF);\r\n createEReference(state_Comp_RefEClass, STATE_COMP_REF__COMPONENT_REFERENCE);\r\n createEReference(state_Comp_RefEClass, STATE_COMP_REF__EXPR);\r\n createEReference(state_Comp_RefEClass, STATE_COMP_REF__FUN_CALL_ARGS);\r\n\r\n when_statementEClass = createEClass(WHEN_STATEMENT);\r\n createEReference(when_statementEClass, WHEN_STATEMENT__WHEN_EXPR);\r\n createEReference(when_statementEClass, WHEN_STATEMENT__WHEN_STAT_TRUE);\r\n createEReference(when_statementEClass, WHEN_STATEMENT__ELSE_WHEN_EXPR);\r\n createEReference(when_statementEClass, WHEN_STATEMENT__THEN_STATEMENT);\r\n\r\n while_statementEClass = createEClass(WHILE_STATEMENT);\r\n createEReference(while_statementEClass, WHILE_STATEMENT__WHILE_EXPR);\r\n createEReference(while_statementEClass, WHILE_STATEMENT__WHILE_STAT);\r\n\r\n for_statementEClass = createEClass(FOR_STATEMENT);\r\n createEReference(for_statementEClass, FOR_STATEMENT__FOR_LOOP);\r\n createEReference(for_statementEClass, FOR_STATEMENT__FOR_ALGO);\r\n\r\n if_statementEClass = createEClass(IF_STATEMENT);\r\n createEReference(if_statementEClass, IF_STATEMENT__EXPRTRUE);\r\n createEReference(if_statementEClass, IF_STATEMENT__STATE);\r\n createEReference(if_statementEClass, IF_STATEMENT__EXPR_STILLTRUE);\r\n }", "title": "" }, { "docid": "48ee51ab738eb9f33cbc83c73366a6f4", "score": "0.49978018", "text": "protected void createContents() {\n\t\tsetText(\"东陆maven仓库生成器\");\n\t\tsetSize(506, 598);\n\n\t}", "title": "" }, { "docid": "7f83626917ea11fea08c3beb6f478a32", "score": "0.49974746", "text": "@Override\n public void generateCode()\n {\n Rule.writer.println(\"EXTREF\\tXWRITE\");\n Rule.writer.println(\"+JSUB\\tXWRITE\");\n Rule.writer.println(\"WORD\"+\"\\t\"+ String.valueOf(idNames.size() ) );\n for( int i=0; i<idNames.size(); i++ )\n Rule.writer.println(\"WORD\"+\"\\t\"+ idNames.get(i) );\n\n }", "title": "" }, { "docid": "e50758957c73af2d9aa4e13f0ea2c1c4", "score": "0.49938726", "text": "Cfdadrug setSpecification(String specification);", "title": "" }, { "docid": "cbd36a714e0a6cde032bbc4fa3b2597d", "score": "0.49919856", "text": "public static void main(String[] args) {\n\t\tJustofiedText sol = new JustofiedText();\n//\t\tString[] arr = {\"What\", \"must\", \"be\", \"shall\", \"be.\"};\n\t\tString[] arr = { \"glu\", \"muskzjyen\", \"ahxkp\", \"t\", \"djmgzzyh\", \"jzudvh\", \"raji\", \"vmipiz\", \"sg\", \"rv\", \"mekoexzfmq\", \"fsrihvdnt\", \"yvnppem\", \"gidia\", \"fxjlzekp\", \"uvdaj\", \"ua\", \"pzagn\", \"bjffryz\", \"nkdd\", \"osrownxj\", \"fvluvpdj\", \"kkrpr\", \"khp\", \"eef\", \"aogrl\", \"gqfwfnaen\", \"qhujt\", \"vabjsmj\", \"ji\", \"f\", \"opihimudj\", \"awi\", \"jyjlyfavbg\", \"tqxupaaknt\", \"dvqxay\", \"ny\", \"ezxsvmqk\", \"ncsckq\", \"nzlce\", \"cxzdirg\", \"dnmaxql\", \"bhrgyuyc\", \"qtqt\", \"yka\", \"wkjriv\", \"xyfoxfcqzb\", \"fttsfs\", \"m\" };\n\n\t\tString[] op = sol.fullJustify(arr, 144);\n\t\tfor(String s : op) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}", "title": "" }, { "docid": "666c294a2bd8fcfed6ac38e3cabeb5fe", "score": "0.49877754", "text": "public void buildModel(){\n\t\tfor (String name : formattedFileData){\n\t\t\tfor (int i = 0; i + markovOrder <= name.length(); i++){\n\t\t\t\tString substringKey = name.substring(i, i + markovOrder);\n\t\t\t\tif (i + markovOrder == name.length()) markovModel.put(substringKey, new LetterListGenerator());\n\t\t\t\telse{\n\t\t\t\t\tString appendableLetter = name.substring(i + markovOrder, i + markovOrder + 1);\n\t\t\t\t\tif (markovModel.containsKey(substringKey)){\n\t\t\t\t\t\tmarkovModel.get(substringKey).addLetterToList(appendableLetter);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLetterListGenerator newList = new LetterListGenerator();\n\t\t\t\t\t\tnewList.addLetterToList(appendableLetter);\n\t\t\t\t\t\tmarkovModel.put(substringKey, newList);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "45ee7bb5a59464dbd2eb66b1661c4db1", "score": "0.49863535", "text": "private String generateHeader() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"999\" + NEW_LINE);\n sb.append(\"DXF created by Red Carpet\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"SECTION\" + NEW_LINE);\n sb.append(\"2\" + NEW_LINE);\n sb.append(\"HEADER\" + NEW_LINE);\n sb.append(\"9\" + NEW_LINE);\n sb.append(\"$ACADVER\" + NEW_LINE);\n sb.append(\"1\" + NEW_LINE);\n sb.append(\"AC1006\" + NEW_LINE);\n sb.append(\"9\" + NEW_LINE);\n sb.append(\"$INSUNITS\" + NEW_LINE);\n sb.append(\"70\" + NEW_LINE);\n sb.append(\"1\" + NEW_LINE); // Inches\n sb.append(\"9\" + NEW_LINE);\n sb.append(\"$INSBASE\" + NEW_LINE);\n sb.append(\"10\" + NEW_LINE);\n sb.append(\"0.0\" + NEW_LINE);\n sb.append(\"20\" + NEW_LINE);\n sb.append(\"0.0\" + NEW_LINE);\n sb.append(\"30\" + NEW_LINE);\n sb.append(\"0.0\" + NEW_LINE);\n sb.append(\"9\" + NEW_LINE);\n sb.append(\"$EXTMIN\" + NEW_LINE);\n sb.append(\"10\" + NEW_LINE);\n sb.append(\"0.0\" + NEW_LINE);\n sb.append(\"20\" + NEW_LINE);\n sb.append(\"0.0\" + NEW_LINE);\n sb.append(\"9\" + NEW_LINE);\n sb.append(\"$EXTMAX\" + NEW_LINE);\n sb.append(\"10\" + NEW_LINE);\n sb.append(\"1000.0\" + NEW_LINE);\n sb.append(\"20\" + NEW_LINE);\n sb.append(\"1000.0\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"ENDSEC\").append(NEW_LINE);\n \n \n sb.append(\"0\" + NEW_LINE);\n sb.append(\"SECTION\" + NEW_LINE);\n sb.append(\"2\" + NEW_LINE);\n sb.append(\"TABLES\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"TABLE\" + NEW_LINE);\n sb.append(\"2\" + NEW_LINE);\n sb.append(\"LTYPE\" + NEW_LINE);\n sb.append(\"70\" + NEW_LINE);\n sb.append(\"1\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"LTYPE\" + NEW_LINE);\n sb.append(\"2\" + NEW_LINE);\n sb.append(\"CONTINUOUS\" + NEW_LINE);\n sb.append(\"70\" + NEW_LINE);\n sb.append(\"64\" + NEW_LINE);\n sb.append(\"3\" + NEW_LINE);\n sb.append(\"Solid line\" + NEW_LINE);\n sb.append(\"72\" + NEW_LINE);\n sb.append(\"65\" + NEW_LINE);\n sb.append(\"73\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"40\" + NEW_LINE);\n sb.append(\"0.000000\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"ENDTAB\" + NEW_LINE);\n \n \n sb.append(\"0\" + NEW_LINE);\n sb.append(\"TABLE\" + NEW_LINE);\n sb.append(\"2\" + NEW_LINE);\n sb.append(\"LAYER\" + NEW_LINE);\n sb.append(\"70\" + NEW_LINE);\n sb.append(\"6\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"LAYER\" + NEW_LINE);\n sb.append(\"2\" + NEW_LINE);\n sb.append(\"Holes\" + NEW_LINE);\n sb.append(\"70\" + NEW_LINE);\n sb.append(\"64\" + NEW_LINE);\n sb.append(\"62\" + NEW_LINE);\n sb.append(\"7\" + NEW_LINE);\n sb.append(\"6\" + NEW_LINE);\n sb.append(\"CONTINUOUS\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"LAYER\" + NEW_LINE);\n sb.append(\"2\" + NEW_LINE);\n sb.append(\"Border\" + NEW_LINE);\n sb.append(\"70\" + NEW_LINE);\n sb.append(\"64\" + NEW_LINE);\n sb.append(\"62\" + NEW_LINE);\n sb.append(\"7\" + NEW_LINE);\n sb.append(\"6\" + NEW_LINE);\n sb.append(\"CONTINUOUS\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"ENDTAB\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"TABLE\" + NEW_LINE);\n sb.append(\"2\" + NEW_LINE);\n sb.append(\"STYLE\" + NEW_LINE);\n sb.append(\"70\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"ENDTAB\" + NEW_LINE);\n sb.append(\"0\" + NEW_LINE);\n sb.append(\"ENDSEC\" + NEW_LINE);\n\n return sb.toString();\n }", "title": "" }, { "docid": "dc58014d6192935acd9910d350d4f592", "score": "0.4979531", "text": "private static void prepareDataAutomatic() {\n\t\tint numberOfSets = 0;\n\t\tif (Features.isUseUnigramFeatures()) {\n\t\t\tnumberOfSets++;\n\t\t}\n\t\ttext = text + \"Use unigram features: [\" + Features.isUseUnigramFeatures() + \"] - Used in Quantification: [\" + Features.isUseUnigramFeatures() + \"]\" + n;\n\t\ttextProperty.set(text);\n\t\t\n\t\tif (Features.isUsePatternFeatures()) {\n\t\t\tnumberOfSets++;\n\t\t}\n\t\ttext = text + \"Use basic pattern features: [\" + Features.isUsePatternFeatures() + \"] - Used in Quantification: [\" + Features.isUsePatternFeatures() + \"]\" + n;\n\t\ttextProperty.set(text);\n\t\t\n\t\tif (Features.isUseAdvancedPatternFeatures()) {\n\t\t\tnumberOfSets++;\n\t\t}\n\t\ttext = text + \"Use adv. pattern features: [\" + Features.isUseAdvancedPatternFeatures() + \"] - Used in Quantification: [\" + Features.isUseAdvancedPatternFeatures() + \"]\" + n;\n\t\ttextProperty.set(text);\n\t\t\n\t\t// set the corresponding scoring coefficients\n\t\tif (numberOfSets == 0) {\n\t\t\tdouble[][] coefficients = new double[0][0];\n\t\t\tFeatures.setCoefficients(coefficients);\n\t\t\ttotalNumberOfTasks.set(1);\n\t\t} else if (numberOfSets == 1) {\n\t\t\tdouble[][] coefficients = new double[1][1];\n\t\t\tcoefficients[0][0] = 1;\n\t\t\tFeatures.setCoefficients(coefficients);\n\t\t\ttotalNumberOfTasks.set(1);\n\t\t} else if (numberOfSets == 2) {\n\t\t\tdouble[][] coefficients = new double[2][11];\n\t\t\tfor (int i = 0; i < 11; i++) {\n\t\t\t\tcoefficients[0][i] = (double) i / 10;\n\t\t\t\tcoefficients[1][i] = 1 - coefficients[0][i];\n\t\t\t\ttotalNumberOfTasks.set(11);\n\t\t\t}\n\t\t\tFeatures.setCoefficients(coefficients);\n\t\t} else if (numberOfSets == 3) {\n\t\t\tFeatures.setCoefficients(Reader.getCoefficients(Constants.COEFFICIENTS));\n\t\t\ttotalNumberOfTasks.set(66);\n\t\t} \n\t\t\n\t\ttext = text + \"Coefficients extracted\" + n;\n\t\ttextProperty.set(text);\n\t\t\n\t\t// Select the data set to use\n\t\tArrayList<Tweet> tweets;\n\t\t\n\t\tif (Parameters.getTypeOfProject().equals(Parameters.TypeOfProject.TESTSET)) {\n\t\t\ttweets = Parameters.getTestSet();\n\t\t\ttext = text + \"Data set to use: \" + \"[Test Set]\" + n;\n\t\t\ttextProperty.set(text);\n\t\t} else {\n\t\t\ttweets = Parameters.getUnknownSet();\n\t\t\ttext = text + \"Data set to use: \" + \"[Non-annotated Set]\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t\t// Add Unigram final scores\n\t\tif (Features.isUseUnigramFeatures()) {\n\t\t\tfor (Tweet tweet : tweets) {\n\t\t\t\tTweetProcessing.addUnigramScores(tweet, Parameters.getClasses());\n\t\t\t}\n\t\t\ttext = text + \"Unigram scores extracted\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t\t// Add the basic pattern final scores\n\t\tif (Features.isUsePatternFeatures()) {\n\t\t\t\n\t\t\tint m = Features.getMaxPatternLength() - Features.getMinPatternLength() + 1;\n\t\t\tint min = Features.getMinPatternLength();\n\t\t\t\n\t\t\tdouble[] factors = new double[m];\n\t\t\t\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tfactors[i] = (double) (min + i-1) / (double) (min + i+1); \n\t\t\t}\n\t\t\t\n\t\t\tfor (Tweet tweet : tweets) {\n\t\t\t\tTweetProcessing.addBasicPatternScores(tweet, Parameters.getClasses(), factors);\n\t\t\t}\n\t\t\ttext = text + \"Basic pattern scores extracted\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t\t// Add the Advanced pattern final scores\n\t\tif (Features.isUseAdvancedPatternFeatures()) {\n\t\t\t\n\t\t\tint m = Features.getAdvancedMaxPatternLength() - Features.getAdvancedMinPatternLength() + 1;\n\t\t\tint min = Features.getAdvancedMinPatternLength();\n\t\t\t\n\t\t\tdouble[] factors = new double[m];\n\t\t\t\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tfactors[i] = (double) (min + i-1) / (double) (min + i+1); \n\t\t\t}\n\t\t\t\n\t\t\tfor (Tweet tweet : tweets) {\n\t\t\t\tTweetProcessing.addAdvancedPatternScores(tweet, Parameters.getClasses(), factors);\n\t\t\t}\n\t\t\ttext = text + \"Advanced pattern scores extracted\" + n;\n\t\t\ttextProperty.set(text);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "6377b51353270a0c0d3d3c68b5a2a026", "score": "0.4964298", "text": "public String createContentToSave(FileTypes type) {\n String content = \"\";\n String separator = \"0\";\n if (type == FileTypes.TXT) separator = SEPARATOR_TEXT;\n else separator = SEPARATOR_CSV;\n\n if (samples.size() > 0) {\n content += \"# some comment \" + NEW_LINE + \"#! \" + samples.get(0).getNumberOfInputs() + \" \" + samples.get(0).getNumberOfOutputs() + NEW_LINE;\n for (Sample s : samples) {\n for (Double d : s.getInputs()\n ) {\n content += Double.toString(d) + separator;\n }\n for (Double d : s.getOutputs()\n ) {\n content += Double.toString(d) + separator;\n }\n content += NEW_LINE;\n\n }\n } else {\n content = \"Something went wrong\";\n }\n return content;\n }", "title": "" }, { "docid": "b344cf571037f6b77580004b3dcab69c", "score": "0.4959059", "text": "private void createLiteralsFile() {\n\t\tboolean ok = true; // write/access failure state\n\t\tHashMap<String, LiteralMap> literalslist = getLiteralsList();\n\t\tif(!literalslist.isEmpty()) {\n\t\t\tFile out = new File(\"new_literals_list.txt\");\n\t\t\tFileOutputStream ofs = null;\n\t\t\ttry {\n\t\t\t\tif(!out.exists()) {\n\t\t\t\t\tout.createNewFile();\n\t\t\t\t}\n\t\t\t\tofs = new FileOutputStream(out);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.err.println(\"open of file output stream failed: \"+e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t\tok = false;\n\t\t\t} catch(IOException ioe) {\n\t\t\t\tSystem.err.println(\"Create of output file failed: \"+ioe.getMessage());\n\t\t\t\tioe.printStackTrace();\n\t\t\t\tok = false;\n\t\t\t}\n\t\t\tboolean hasLiterals = false;\n\t\t\tfinal String preamble = \"START CLASSLITERALS\\n\";\n\t\t\tfinal String classpost = \"END CLASSLITERALS\\n\";\n\t\t\tfinal String classpreamble = \"CLASSNAME\\n\";\n\t\t\tfinal String literalslabel = \"LITERALS\\n\";\n\t\t\tSet<String> class_set = literalslist.keySet();\n\t\t\tIterator<String> class_iter = class_set.iterator();\n\t\t\tStringBuffer cbuf = new StringBuffer();\n\t\t\twhile(ok && class_iter.hasNext()) {\n\t\t\t\tString currClass = class_iter.next();\n\t\t\t\tLiteralMap lm = literalslist.get(currClass);\n\t\t\t\tif(lm != null && !lm.isEmpty()) {\n\t\t\t\t\t// Have a set of literals for this currClass\n\t\t\t\t\tcbuf.append(preamble);\n\t\t\t\t\tcbuf.append(classpreamble);\n\t\t\t\t\tif(currClass.matches(\"^\\\\..*\")) {\n\t\t\t\t\t\tcurrClass = currClass.replaceAll(\"^\\\\.\", \"\");\n\t\t\t\t\t}\n\t\t\t\t\tcbuf.append(currClass);\n\t\t\t\t\tcbuf.append(\"\\n\");\n\t\t\t\t\tcbuf.append(literalslabel);\n\t\t\t\t\t//String classpreamble = \"CLASSNAME\\n\"+currClass+\"\\nLITERALS\\n\";\n\t\t\t\t\t//try {\n\t\t\t\t\t//\tofs.write(preamble.getBytes());\n\t\t\t\t\t//\tofs.write(classpreamble.getBytes());\n\t\t\t\t\t//\tofs.flush();\n\t\t\t\t\t//} catch (IOException e1) {\n\t\t\t\t\t//\tSystem.err.println(\"Error writing classname preamble to output file \"+e1.getMessage());\n\t\t\t\t\t//\te1.printStackTrace();\n\t\t\t\t\t//\tok = false;\n\t\t\t\t\t//}\n\t\t\t\t\tSet<String> type_set = lm.keySet();\n\t\t\t\t\tIterator<String> type_iter = type_set.iterator();\n\t\t\t\t\twhile(type_iter.hasNext()) {\n\t\t\t\t\t\tString currType = type_iter.next();\n\t\t\t\t\t\tTreeSet<String> type_values = lm.get(currType);\n\t\t\t\t\t\tfor(String tvalue : type_values) {\n\t\t\t\t\t\t\tif(!eliminateDup(currType, tvalue)) {\n\t\t\t\t\t\t\t\tcbuf.append(currType);\n\t\t\t\t\t\t\t\tcbuf.append(\":\");\n\t\t\t\t\t\t\t\tif(currType.equals(\"String\")) {\n\t\t\t\t\t\t\t\t\tif(tvalue.contains(\"\\\"\")) {\n\t\t\t\t\t\t\t\t\t\tString tmpval = tvalue.replaceAll(\"\\\"\", \"\");\n\t\t\t\t\t\t\t\t\t\ttvalue = tmpval;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t cbuf.append(\"\\\"\");\n\t\t\t\t\t\t\t\t\tcbuf.append(tvalue);\n\t\t\t\t\t\t\t\t\tcbuf.append(\"\\\"\");\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 cbuf.append(tvalue);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcbuf.append(\"\\n\");\n\t\t\t\t\t\t\t\thasLiterals = true;\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\tif(hasLiterals) {\n\t\t\t\t\tcbuf.append(classpost);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tofs.write(cbuf.toString().getBytes());\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\tSystem.err.println(\"Error writing classliterals block output file \"+e1.getMessage());\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\tok = false;\n\t\t\t\t\t}\n\t\t\t\t\thasLiterals = false;\n\t\t\t\t}\n\t\t\t\tcbuf.delete(0, cbuf.length());\n\t\t\t}\n\t\t\tif(ofs != null) {\n\t\t\t\ttry {\n\t\t\t\t\tofs.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.err.println(\"error closing: \"+out.getName()+\" \"+e.getMessage());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ad3042feca394887c5bb07a271b8b140", "score": "0.49537158", "text": "public void createReport() throws Exception\n {\n //Load template from source folder\n Configuration cfg = new Configuration();\n Template template = cfg.getTemplate(\"/src/main/java/templates/helloworld.ftl\");\n\n // Build the data-model\n Map<String, Object> data = new HashMap<String, Object>();\n data.put(\"title\", this.getCatalog().getName());\n\n List<String> items_name = new ArrayList<String>();\n Vector<Item> items = getCatalog().getItems();\n\n\n for(int index=0;index < this.getCatalog().getItems().size();index++)\n {\n items_name.add(items.get(index).getName());\n }\n\n data.put(\"items\",items_name);\n // Console output\n Writer out = new OutputStreamWriter(System.out);\n template.process(data, out);\n out.flush();\n\n // File output\n Writer file = new FileWriter (new File(\"reportCatalog.html\"));\n template.process(data, file);\n file.flush();\n file.close();\n }", "title": "" }, { "docid": "bda2dfd5d269a46bc1452c8c2afee817", "score": "0.49517915", "text": "public static void main(String[] args) {\n String filepathString = \"C:/Users/suiwei/Desktop/合同生成.doc\"; \n String destpathString = \"C:/Users/suiwei/Desktop/合同生成1.doc\"; \n Map<String, String> map = new HashMap<String, String>(); \n map.put(\"${NAME}\", \"12345000\"); \n map.put(\"${NsAME}\", \"出租方测试\"); \n map.put(\"${NAMaE}\", \"承租方测试\"); \n map.put(\"${NArME}\", \"王五王五啊柯乐义的辣味回答东拉网\"); \n map.put(\"${NwAME}\", \"王五王五啊王的辣味回答侯何问起网\"); \n map.put(\"${NA4ME}\", \"王五王五啊王力侯何问起网\"); \n map.put(\"${N5AME}\", \"王五王五辣味回答侯何问起网\"); \n map.put(\"${NAadwME}\", \"王五力宏的辣味回答侯何问起网\"); \n System.out.println(replaceAndGenerateWord(filepathString, \n destpathString, map)); \n }", "title": "" }, { "docid": "2e0c5fac0c224838e3f8677f94b81966", "score": "0.49408668", "text": "private void write(String text, Tag tag) throws IOException, FormatException {\n\n NdefRecord[] records = { createRecord(text) };\n NdefMessage message = new NdefMessage(records);\n // Get an instance of Ndef for the tag.\n Ndef ndef = Ndef.get(tag);\n // Enable I/O\n ndef.connect();\n // Write the message\n ndef.writeNdefMessage(message);\n // Close the connection\n ndef.close();\n sendNotification(\"fo\", \"fi\", \"bo\", \"done writing operation !\", \"done writing the info to the tag\");\n\n }", "title": "" }, { "docid": "cc1a6a475cd471924d7107805b9a76de", "score": "0.49405926", "text": "@Override\n\tpublic String getDescription() {\n\t\treturn \".doc\";\n\t}", "title": "" }, { "docid": "23e08dd00a3c3c3979d0ac5e05b4ee8c", "score": "0.49367234", "text": "public static void main(String[] args) {\n String input=\"data/BlankTemplate.docx\";\r\n Document document = new Document(input);\r\n\r\n //Get the first section\r\n Section section = document.getSections().get(0);\r\n\r\n Paragraph par = section.addParagraph();\r\n\r\n //Add address block in the paragraph\r\n Field field = par.appendField(\"ADDRESSBLOCK\", FieldType.Field_Address_Block);\r\n\r\n //Set field code\r\n field.setCode(\"ADDRESSBLOCK \\\\c 1 \\\\d \\\\e Test2 \\\\f Test3 \\\\l \\\"Test 4\\\"\");\r\n\r\n //Save to file\r\n String result=\"output/insertAddressBlockField.docx\";\r\n document.saveToFile(result, FileFormat.Docx);\r\n }", "title": "" }, { "docid": "bbe9d75dc785dfc7d82e601a8b2776d7", "score": "0.49365038", "text": "public static void main(String[] args) {************* Begin of ./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml *************//\n\t\t//\n\t\tSCGenerator scGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1 = new SCGenerator(\n\t\t\t\t\"./files_generated/SP_command/fm_sc_update.fml\");\n\t\ttry {\n\t\t\tscGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1\n\t\t\t\t\t.setAmFilePath(\"./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml\");\n\t\t\tscGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1.start();\n\t\t\tscGenerator_SP_command_ServiceName_2_CapabilityName_2_2_am1.stop();\n\t\t} catch (SCGeneratorException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"\\\\\\\\***************The output of ./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml :***************//\");\n\n\t\t//\n\t\t//************* End of ./files_generated/SP_command/am/ServiceName_2_CapabilityName_2_2_1.fml *************//\n\n\t\t//************* Begin of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml *************//\n\t\t//\n\t\tSCGenerator scGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2 = new SCGenerator(\n\t\t\t\t\"./files_generated/SP_command/fm_sc_update.fml\");\n\t\ttry {\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2\n\t\t\t\t\t.setAmFilePath(\"./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml\");\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2.start();\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_3_am2.stop();\n\t\t} catch (SCGeneratorException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"\\\\\\\\***************The output of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml :***************//\");\n\n\t\t//\n\t\t//************* End of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_3_2.fml *************//\n\n\t\t//************* Begin of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml *************//\n\t\t//\n\t\tSCGenerator scGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3 = new SCGenerator(\n\t\t\t\t\"./files_generated/SP_command/fm_sc_update.fml\");\n\t\ttry {\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3\n\t\t\t\t\t.setAmFilePath(\"./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml\");\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3.start();\n\t\t\t// The response handler in your AM is asynchronous. \n\t\t\t// Hence, the business logic code here is executed in parallel with the capability invocation.\n\t\t\tThread.sleep(1000);\n\t\t\tscGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3.stop();\n\t\t} catch (SCGeneratorException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"\\\\\\\\***************The output of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml :***************//\");\n\n\t\tSP_command.output.OutputDataClassName_3_2 result_SP_command_ServiceName_3_CapabilityName_3_2_am3 = (SP_command.output.OutputDataClassName_3_2) scGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3\n\t\t\t\t.getResponse();\n\n\t\tString state_SP_command_ServiceName_3_CapabilityName_3_2_am3 = scGenerator_SP_command_ServiceName_3_CapabilityName_3_2_am3\n\t\t\t\t.getState();\n\n\t\tSystem.out.println(\"OutputName_3_2_1 : \"\n\t\t\t\t+ result_SP_command_ServiceName_3_CapabilityName_3_2_am3\n\t\t\t\t\t\t.getOutputName_3_2_1());\n\t\tSystem.out.println(\"OutputName_3_2_2 : \"\n\t\t\t\t+ result_SP_command_ServiceName_3_CapabilityName_3_2_am3\n\t\t\t\t\t\t.getOutputName_3_2_2());\n\n\t\tSystem.out.println(\"State : \"\n\t\t\t\t+ state_SP_command_ServiceName_3_CapabilityName_3_2_am3);\n\t\t//\n\t\t//************* End of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_2_3.fml *************//\n\t}", "title": "" }, { "docid": "78821e4779dfcd81e8476593ac4d351f", "score": "0.49199498", "text": "@Test\n public void noProofing() throws Exception\n {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n builder.getFont().setNoProofing(true);\n\n builder.writeln(\"Proofing has been disabled for this run, so these spelking errrs will not display red lines underneath.\");\n\n doc.save(getArtifactsDir() + \"Font.NoProofing.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Font.NoProofing.docx\");\n Run run = doc.getFirstSection().getBody().getParagraphs().get(0).getRuns().get(0);\n\n Assert.assertEquals(\"Proofing has been disabled for this run, so these spelking errrs will not display red lines underneath.\", msString.trim(run.getText()));\n Assert.assertTrue(run.getFont().getNoProofing());\n }", "title": "" }, { "docid": "28f5978cbe71cf3300c18840a3f78f39", "score": "0.49189782", "text": "public SoText2()\n//\n////////////////////////////////////////////////////////////////////////\n{\n nodeHeader.SO_NODE_CONSTRUCTOR(/*SoText2*/);\n\n nodeHeader.SO_NODE_ADD_MFIELD(string,\"string\", (\"\"));\n nodeHeader.SO_NODE_ADD_SFIELD(spacing,\"spacing\", (1.f));\n nodeHeader.SO_NODE_ADD_SFIELD(justification,\"justification\", (Justification.LEFT.getValue()));\n\n // Set up static info for enumerated type field\n nodeHeader.SO_NODE_DEFINE_ENUM_VALUE(Justification.LEFT);\n nodeHeader.SO_NODE_DEFINE_ENUM_VALUE(Justification.RIGHT);\n nodeHeader.SO_NODE_DEFINE_ENUM_VALUE(Justification.CENTER);\n\n // Set up info in enumerated type field\n nodeHeader.SO_NODE_SET_SF_ENUM_TYPE(justification,\"justification\", \"Justification\");\n\n isBuiltIn = true;\n myFont = null;\n \n \n}", "title": "" }, { "docid": "71c5fd1af87e01fc3a623d3323ea8fdf", "score": "0.49145326", "text": "@Test\r\n\tpublic void generateCode() throws Exception {\r\n\r\n\t\tList<String[]> constraints;\r\n\t\tconstraints = new ArrayList<String[]>();\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/body\", \"body01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/body\", \"body02\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/body\",\r\n\t\t\t\t\"staticBody01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/def\", \"def01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/def\", \"def02\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/def\", \"def03\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"constraintkindtest/def\", \"staticDef01\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"constraintkindtest/def\", \"staticDef02\" });\r\n\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"constraintkindtest/derive\", \"derive01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/derive\",\r\n\t\t\t\t\"staticDerive01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/init\", \"init01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/init\",\r\n\t\t\t\t\"staticInit01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/pre\", \"pre01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/pre\", \"pre02\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"constraintkindtest/pre\", \"staticPre01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/post\", \"post01\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/post\", \"post02\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/post\",\r\n\t\t\t\t\"staticPost01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"expressions/calls\", \"operation01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/calls\", \"operation02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/calls\", \"property01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/calls\", \"property02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"any01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"closure01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"closure02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"closure03\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"closure04\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"closure05\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"collect01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\",\r\n\t\t\t\t\"collectNested01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"exists01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"exists02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"forAll01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"forAll02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"isUnique01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"iterate01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"one01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"reject01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"select01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/iterator\", \"sortedBy01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"boolean01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"boolean02\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"collection01\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"collection02\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"collection03\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"collection04\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"collection05\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"expressions/literals\", \"enumeration01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"integer01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"invalid01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"invalid02\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"real01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"string01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"tuple01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"type01\" });\r\n\t\tconstraints.add(new String[] { \"expressions/literals\", \"undefined01\" });\r\n\t\tconstraints.add(new String[] { \"expressions\", \"if01\" });\r\n\t\tconstraints.add(new String[] { \"expressions\", \"let01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"asBag01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"asOrderedSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"asSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"asSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"count01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"equals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"excluding01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"flatten01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"including01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"intersection01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"intersection02\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"union01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/bag\", \"union02\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"and01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"implies01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"not01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"or01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"toString01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/boolean\", \"xor01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"asBag01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"asOrderedSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"asSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"asSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"count01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"equals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"excludes01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"excludesAll01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"flatten01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"includes01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"includesAll01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"isEmpty01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"min01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"max01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"notEmpty01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"notEquals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"product01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"size01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/collection\", \"sum01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"div01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"divide01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"max01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"min01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"minus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"mod01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"multiply01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"negation01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"plus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/integer\", \"toString01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"allInstances01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"atPre01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"equals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"notEquals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclAsType01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsInvalid01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsInvalid02\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsKindOf01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsNew01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsTypeOf01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclIsUndefined01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/oclany\", \"oclType01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/ocltype\", \"allInstances01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/ocltype\", \"allInstances02\" });\r\n\t\tconstraints.add(new String[] { \"sltest/ocltype\", \"allInstances03\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"append01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"asBag01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"asOrderedSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"asSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"asSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"at01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"first01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"indexof01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"insertAt01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"last01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"prepend01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/orderedset\", \"reverse01\" });\r\n\t\tconstraints\r\n\t\t\t\t.add(new String[] { \"sltest/orderedset\", \"subOrderedSet01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"abs01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"division01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"floor01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"greaterThan01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"greaterThanEqual01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"lessThan01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"lessThanEqual01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"max01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"min01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"minus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"multiply01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"negation01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"plus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"round01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/real\", \"toString01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"append01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"asBag01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"asOrderedSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"asSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"asSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"at01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"count01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"equals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"excluding01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"first01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"flatten01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"including01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"indexof01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"insertAt01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"last01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"prepend01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"reverse01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"subSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/sequence\", \"union01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"asBag01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"asOrderedSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"asSequence01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"asSet01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"count01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"equals01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"excluding01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"flatten01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"including01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"intersection01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"intersection02\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"minus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"symmetricDifference01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"union01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/set\", \"union02\" });\r\n\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"at01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"characters01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"concat01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"equalsIgnoreCase01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"greaterThan01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"greaterThanEqual01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"indexOf01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"lessThan01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"lessThanEqual01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"plus01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"size01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"substring01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"toBoolean01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"toInteger01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"toUpperCase01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"toReal01\" });\r\n\t\tconstraints.add(new String[] { \"sltest/string\", \"toLowerCase01\" });\r\n\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/inv\", \"inv01\" });\r\n\r\n\t\tthis.createInstrumentationCode(\r\n\t\t\t\t\"tudresden.ocl20.pivot.tools.codegen.ocl2java.test.aspectj\",\r\n\t\t\t\tconstraints);\r\n\r\n\t\tconstraints.clear();\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/inv\", \"inv02\" });\r\n\r\n\t\tIOcl2JavaSettings settings;\r\n\t\tsettings = Ocl2JavaFactory.getInstance()\r\n\t\t\t\t.createJavaCodeGeneratorSettings();\r\n\t\tsettings.setDefaultInvariantCheckMode(IOcl2JavaSettings.INVARIANT_CHECK_AFTER_CONSTRUCT_AND_PUBLIC_METHOD_EXECUTION);\r\n\r\n\t\tthis.createInstrumentationCode(\r\n\t\t\t\t\"tudresden.ocl20.pivot.tools.codegen.ocl2java.test.aspectj\",\r\n\t\t\t\tconstraints, settings);\r\n\r\n\t\tconstraints.clear();\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/inv\", \"inv03\" });\r\n\t\tconstraints.add(new String[] { \"constraintkindtest/inv\", \"inv04\" });\r\n\r\n\t\tsettings.setDefaultInvariantCheckMode(IOcl2JavaSettings.INVARIANT_CHECK_AFTER_SPECIAL_METHOD_INVOCATION);\r\n\r\n\t\tthis.createInstrumentationCode(\r\n\t\t\t\t\"tudresden.ocl20.pivot.tools.codegen.ocl2java.test.aspectj\",\r\n\t\t\t\tconstraints, settings);\r\n\t}", "title": "" }, { "docid": "5615b8290e6d8dc8f8972340e479b6d6", "score": "0.4913927", "text": "@Test\n public void testGenerateLabelShouldGenerateLabel() {\n \n Patient patient = new Patient();\n patient.setGender(\"F\");\n \n Calendar cal = Calendar.getInstance();\n cal.set(2010, 11, 2);\n patient.setBirthdate(cal.getTime());\n \n PatientIdentifier primaryIdentifier = new PatientIdentifier();\n primaryIdentifier.setIdentifierType(primaryIdentifierType);\n primaryIdentifier.setIdentifier(\"ABC\");\n patient.addIdentifier(primaryIdentifier);\n \n PersonName name = new PersonName();\n name.setFamilyName(\"Jones\");\n name.setGivenName(\"Indiana\");\n patient.addName(name);\n \n String data = template.generateLabel(patient, \"123\");\n System.out.println(data);\n Assert.assertTrue(data.equals(\"^XA^CI28^PW1300^MTT^FO080,40^AVN^FDJones, Indiana^FS^FO080,120^AUN^FDABC^FS^FO080,190^ATN^FD02/Dec/2010, Female^FS^FO680,40^FB520,1,0,R,0^AVN^FD123^FS^FO780,120^ATN^BY4^BCN,150,N^FDABC^FS^XZ\"));\n \n }", "title": "" }, { "docid": "27236e9c08062ac42f4d5da7a99c5cc3", "score": "0.48870745", "text": "public void generate() throws IOException {\n\n // Loop over the topics in the topic map\n Iterator<TopicIF> topics = topicmap.getTopics().iterator();\n while (topics.hasNext()) {\n TopicIF topic = topics.next();\n\n // Loop over the basenames of the topic\n Iterator<TopicNameIF> basenames = topic.getTopicNames().iterator();\n while (basenames.hasNext()) {\n TopicNameIF basename = basenames.next();\n indexer.index(docgen.generate(basename));\n\n // Loop over the variants of the basename\n Iterator<VariantNameIF> variants = basename.getVariants().iterator();\n while (variants.hasNext()) {\n VariantNameIF variant = variants.next();\n indexer.index(docgen.generate(variant));\n }\n }\n\n // Loop over the occurences of the topic\n Iterator<OccurrenceIF> occurs = topic.getOccurrences().iterator();\n while (occurs.hasNext()) {\n OccurrenceIF occur = occurs.next();\n indexer.index(docgen.generate(occur));\n } \n }\n\n }", "title": "" }, { "docid": "57b935d427b928f0ad610031a66f7ad6", "score": "0.48865655", "text": "Description createDescription();", "title": "" }, { "docid": "57b935d427b928f0ad610031a66f7ad6", "score": "0.48865655", "text": "Description createDescription();", "title": "" }, { "docid": "9e9109f34a1a039102d4b6d463334376", "score": "0.4885154", "text": "private void GeneratePrints() {\n page.setPaper( paper );\n pages.append(sheet, page);\n\n if ( unitSize > 24 ) {\n chits.clearForces();\n chits.AddForce((Force) this.forces.get(0));\n pages.append(chits, page);\n\n PrintDeclaration chit2 = new PrintDeclaration(imageTracker);\n chit2.AddForce((Force) this.forces.get(1));\n pages.append(chit2, page);\n } else {\n pages.append(chits, page);\n }\n }", "title": "" }, { "docid": "ef7aad7534cc1f658dced85cfeb7365e", "score": "0.48833567", "text": "private static String generateDocument(int length, int seed) throws IOException {\r\n\t\t\r\n String fileName = \"input.html\";\r\n String line;\r\n StringBuilder sb = new StringBuilder();\r\n BufferedReader br = new BufferedReader(new FileReader(fileName));\r\n\r\n while((line = br.readLine()) != null) {\r\n sb.append(line.trim()+\" \");\r\n } \r\n\r\n br.close();\r\n \r\n String ref = sb.toString();\r\n\t\t\r\n\t\tsb = new StringBuilder(length);\r\n\t\tint i;\r\n\t\t\r\n\t\tfor (i=0; i<length; i++) {\r\n\t\t\tsb.append(ref.charAt((i+seed)%ref.length()));\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//we need to remove all occurences of this special character! \r\n\t\treturn sb.substring(0).replace(WoCoServer.SEPARATOR, '.');\r\n\t\t\r\n\t}", "title": "" }, { "docid": "91d8ff5dedd10cc888a8e5cce6b50522", "score": "0.48804194", "text": "public LogTextFile( ) {\n\t\tsetDir(Configuration.getDefaultDirectory( ));\n\t\tsetName(Configuration.getDefaultFileName( ));\n\t\tsetSummary(Configuration.getDefaultSummary( ));\n\t\tcreateFile( );\n\t}", "title": "" }, { "docid": "c8d05e3271ea32c0fe76a7dad11ff8f8", "score": "0.48797274", "text": "public static void main(String[] args) throws IOException {\n\r\n\t\tString location=\"usingtext2.txt\";\r\n\t\tString content=\"am happy\";\r\n\t\tPath path=Paths.get(location);\r\n\t\tFiles.write(path, content.getBytes());\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c2826ad3348e81ce4f1fcde2906fefeb", "score": "0.48792225", "text": "private void buildOutput() {\n\t\t// This is what I expect from the Template variable object.\n\t\t// I am not tacking care of the template xml, only what I will pass to it.\n\t\t// This is a code isolation.\n\t\tmyExpectation = \"{VLAN_ID='\" + vlanString + \"', DEVICE='\" + deviceName + \"', INTF_NAME='\" + interfaceId\n\t\t\t\t+ \"', INT_TYPE='\" + interfaceType + \"'}\";\n\t}", "title": "" }, { "docid": "b5c63e1df1f7132a5306a25c8897e116", "score": "0.4874598", "text": "public void createPackageContents()\r\n {\r\n if (isCreated) return;\r\n isCreated = true;\r\n\r\n // Create classes and their features\r\n modelEClass = createEClass(MODEL);\r\n createEReference(modelEClass, MODEL__SCANNER);\r\n createEReference(modelEClass, MODEL__EXPORT);\r\n createEReference(modelEClass, MODEL__IMPORTS);\r\n createEReference(modelEClass, MODEL__GLOBAL);\r\n createEReference(modelEClass, MODEL__LOCAL);\r\n createEReference(modelEClass, MODEL__DEFAULT);\r\n createEReference(modelEClass, MODEL__EOF);\r\n createEReference(modelEClass, MODEL__BEGIN);\r\n createEReference(modelEClass, MODEL__CLOSE);\r\n createEReference(modelEClass, MODEL__DEFINE);\r\n createEReference(modelEClass, MODEL__STATES);\r\n createEReference(modelEClass, MODEL__RULES);\r\n createEReference(modelEClass, MODEL__INSERT);\r\n\r\n codeBlockEClass = createEClass(CODE_BLOCK);\r\n createEAttribute(codeBlockEClass, CODE_BLOCK__WALL);\r\n createEReference(codeBlockEClass, CODE_BLOCK__BLOCK);\r\n\r\n scannerEClass = createEClass(SCANNER);\r\n createEAttribute(scannerEClass, SCANNER__NAME);\r\n\r\n exportEClass = createEClass(EXPORT);\r\n createEReference(exportEClass, EXPORT__CONTENT);\r\n\r\n importEClass = createEClass(IMPORT);\r\n createEReference(importEClass, IMPORT__CONTENT);\r\n\r\n globalEClass = createEClass(GLOBAL);\r\n createEReference(globalEClass, GLOBAL__CONTENT);\r\n\r\n localEClass = createEClass(LOCAL);\r\n createEReference(localEClass, LOCAL__CONTENT);\r\n\r\n defaultEClass = createEClass(DEFAULT);\r\n createEReference(defaultEClass, DEFAULT__CONTENT);\r\n\r\n eofEClass = createEClass(EOF);\r\n createEReference(eofEClass, EOF__CONTENT);\r\n\r\n beginEClass = createEClass(BEGIN);\r\n createEReference(beginEClass, BEGIN__CONTENT);\r\n\r\n closeEClass = createEClass(CLOSE);\r\n createEReference(closeEClass, CLOSE__CONTENT);\r\n\r\n defineEClass = createEClass(DEFINE);\r\n createEReference(defineEClass, DEFINE__DEFINES);\r\n\r\n defineRuleEClass = createEClass(DEFINE_RULE);\r\n createEAttribute(defineRuleEClass, DEFINE_RULE__NAME);\r\n createEAttribute(defineRuleEClass, DEFINE_RULE__RULE);\r\n\r\n startStatesEClass = createEClass(START_STATES);\r\n createEReference(startStatesEClass, START_STATES__INCSTATES);\r\n createEReference(startStatesEClass, START_STATES__EXSTATES);\r\n\r\n startStateEClass = createEClass(START_STATE);\r\n createEAttribute(startStateEClass, START_STATE__NAME);\r\n\r\n ruleEClass = createEClass(RULE);\r\n createEAttribute(ruleEClass, RULE__INFO);\r\n createEReference(ruleEClass, RULE__RULES);\r\n\r\n ruleInsertEClass = createEClass(RULE_INSERT);\r\n createEAttribute(ruleInsertEClass, RULE_INSERT__INFO);\r\n createEAttribute(ruleInsertEClass, RULE_INSERT__CASE);\r\n createEReference(ruleInsertEClass, RULE_INSERT__START);\r\n createEReference(ruleInsertEClass, RULE_INSERT__CONTENT);\r\n createEReference(ruleInsertEClass, RULE_INSERT__RULES);\r\n\r\n singleRuleEClass = createEClass(SINGLE_RULE);\r\n createEReference(singleRuleEClass, SINGLE_RULE__START);\r\n createEReference(singleRuleEClass, SINGLE_RULE__RULE);\r\n createEReference(singleRuleEClass, SINGLE_RULE__CONTENT);\r\n\r\n ruleDefinitionEClass = createEClass(RULE_DEFINITION);\r\n createEReference(ruleDefinitionEClass, RULE_DEFINITION__PARTS);\r\n\r\n rulePartEClass = createEClass(RULE_PART);\r\n createEAttribute(rulePartEClass, RULE_PART__REG);\r\n createEReference(rulePartEClass, RULE_PART__REF);\r\n\r\n ruleStartEClass = createEClass(RULE_START);\r\n createEAttribute(ruleStartEClass, RULE_START__RULE_PREC);\r\n createEReference(ruleStartEClass, RULE_START__RULE_STATES);\r\n createEAttribute(ruleStartEClass, RULE_START__RULE_DEFAULT);\r\n }", "title": "" }, { "docid": "6d80a66352d36c1f789a02ac0e904f2c", "score": "0.48737028", "text": "@Override\n public Builder text(Narrative text) {\n return (Builder) super.text(text);\n }", "title": "" }, { "docid": "6d80a66352d36c1f789a02ac0e904f2c", "score": "0.48737028", "text": "@Override\n public Builder text(Narrative text) {\n return (Builder) super.text(text);\n }", "title": "" }, { "docid": "6d80a66352d36c1f789a02ac0e904f2c", "score": "0.48737028", "text": "@Override\n public Builder text(Narrative text) {\n return (Builder) super.text(text);\n }", "title": "" }, { "docid": "6d80a66352d36c1f789a02ac0e904f2c", "score": "0.48737028", "text": "@Override\n public Builder text(Narrative text) {\n return (Builder) super.text(text);\n }", "title": "" }, { "docid": "6d80a66352d36c1f789a02ac0e904f2c", "score": "0.48737028", "text": "@Override\n public Builder text(Narrative text) {\n return (Builder) super.text(text);\n }", "title": "" }, { "docid": "0863ef299769b19326fa7571f7692a11", "score": "0.48688394", "text": "public static void createCarUsageReport() {\n Realtor basicUsage[] = vehicleUsageList.getBasicUsage();\n Realtor luxUsage[] = vehicleUsageList.getLuxUsage();\n int basic[] = carStackImpl.getBasicLot();\n int lux[] = carStackImpl.getLuxLot();\n final int BASIC_MAX_INDEX = 3;\n final int LUX_MAX_INDEX = 2;\n int car = -1;\n String file = \"output/carUsageReport.txt\";\n Realtor realtor;\n RealtorNode node;\n \n File outputFile = null; \n PrintWriter fileOut = null;\n \n \n outputFile = new File(file);\n \n\n try {\n fileOut = new PrintWriter(outputFile);\n }\n \n catch (IOException e) {\n System.err.println(\"Input/Output exception for \" + outputFile \n + \"\\n\" + e);\n System.exit(1);\n }\n \n fileOut.println(\"\\nCAR USAGE REPORT\");\n for (int i = 0; i <= BASIC_MAX_INDEX; i++) {\n car = i + 1;\n if (basicUsage[i] != null) {\n fileOut.println(basicUsage[i].getMyFirstName() \n + \" \" + basicUsage[i].getMyLastName() \n + \" is using car number \" + car);\n }\n }\n for (int i = 0; i <= LUX_MAX_INDEX; i++) {\n car = i + 1;\n if (luxUsage[i] != null) {\n fileOut.println(luxUsage[i].getMyFirstName() \n + \" \" + luxUsage[i].getMyLastName() \n + \" is using car number \" + car);\n }\n }\n fileOut.println(\"\\nAVILABLE CARS\");\n fileOut.println(\"\\n BASIC CARS\");\n if (!carStackImpl.isBasicEmpty()) {\n for (int i = 0; basic[i] != -1 && i < BASIC_MAX_INDEX; i++) {\n fileOut.println(\"\\n basic car number \" + basic[i] \n + \" is avilable\");\n } \n }\n else {\n fileOut.println(\"\\n no basic cars are avilable\");\n }\n \n fileOut.println(\"\\n LUXURY CARS\");\n if (!carStackImpl.isLuxEmpty()) {\n for (int i = 0; lux[i] != -1 && i < LUX_MAX_INDEX; i++) {\n fileOut.println(\"\\n luxury car number \" + lux[i] \n + \" is avilable\");\n } \n }\n else {\n fileOut.println(\"\\n no luxury cars are avilable\");\n }\n fileOut.println(\"\\nTOP SELLER QUEUE\");\n node = topRealtorQueueImpl.getHead();\n if (node == null) {\n fileOut.println(\"there are no top selling realtors waiting\"); \n }\n else {\n fileOut.println(node.getRealtor().getMyFirstName() + \" \" \n + node.getRealtor().getMyLastName() + \"is waiting\");\n \n while (node != null) {\n node = node.getNextNode();\n realtor = node.getRealtor();\n fileOut.println(realtor.getMyFirstName() + \" \" \n + realtor.getMyLastName() + \"is waiting\");\n }\n }\n \n fileOut.println(\"\\nSTANDARD REALTOR QUEUE\");\n node = standardRealtorQueueImpl.getHead();\n if (node == null) {\n fileOut.println(\"there are no standatd realtors waiting\");\n }\n else {\n fileOut.println(node.getRealtor().getMyFirstName() + \" \" \n + node.getRealtor().getMyLastName() + \"is waiting\");\n\n while (node.getRealtor() != null) {\n node = node.getNextNode();\n fileOut.println(node.getRealtor().getMyFirstName() + \" \" \n + node.getRealtor().getMyLastName() + \"is waiting\");\n } \n }\n }", "title": "" }, { "docid": "076e723df9dc7df1b41d9204310421ab", "score": "0.4867508", "text": "@Override\n\tpublic void text(TemplateFileSourceInfo source, String text) throws TemplateParserException {\n\t\tprogram.setSourceInformation(source, SourceInfo.NO_LINE, SourceInfo.NO_COLUMN);\n\t\tprogram.append(Opcode.PRINT_LITERAL, text);\n\t}", "title": "" }, { "docid": "b707c5f25b7d8a3952c6a13993920da1", "score": "0.4867299", "text": "static void OutputTxt()\n\t{\n\t\tfinal myFileReader fr = new myFileReader();\n\t\tSystem.out.println(\"OUTPUT\");\n\t\tString roomVertices[] = new String[numberOfRooms];\n\t\tfor(int i = 0; i < roomVertices.length; i++)\n\t\t\t{\n\t\t\t\troomVertices[i] = \"\";\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tSystem.out.println(rooms.size());\n\t\t\t\tfor(int j = 0; j < rooms.get(i).vertices.size(); j++)\n\t\t\t\t{\n\t\t\t\t\troomVertices[i] = roomVertices[i] + rooms.get(i).vertices.get(j).x;\n\t\t\t\t\troomVertices[i] = roomVertices[i] + rooms.get(i).vertices.get(j).y;\n\t\t\t\t\tif(i < rooms.get(i).vertices.size() - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\troomVertices[i] = roomVertices[i] + \",\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(roomVertices[i]);\n\t\t\t}\n\t\t\n\t\t// fileReading importing functions from fileReader class\n\t\tint roomCount = fr.getLineCount();\n\t\tString roomNames[] = new String[roomCount];\n\t\t\n\t\tfor (int i = 0; i < roomCount; i ++){\n\t\t\t// print just for testing purposes\n\t\t\t//System.out.println(fr.readMe()[i]);\n\t\t\troomNames[i] = fr.readMe()[i];\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tBufferedWriter out = new BufferedWriter(new FileWriter(\"file.txt\"));\n\t\t\tout.write(\"{\\\"floors\\\":[\");\n\t\t\tout.write(\"{\\\"features\\\":[\");\n\t\t\tfor(int i = 0; i < roomVertices.length; i++)\n\t\t\t{\n\t\t\t\tout.write(\"{\");\n\t\t\t\tout.write(\"{\\\"bounds\\\":[\");\n\t\t\t\tout.write(roomVertices[i]);\n\t\t\t\tout.write(\"],\");\n\t\t\t\tout.write(\"\\\"connections\\\":[],\");\n\t\t\t\tout.write(\"\\\"name\\\": \");\n\t\t\t\t// conditional, since not all rooms are marked with a number or name\n\t\t\t\tif(i < roomCount){\n\t\t\t\t\tout.write(roomNames[i]);\n\t\t\t\t}\n\t\t\t\tout.write(\",\");\n\t\t\t\tout.write(\"\\\"type\\\": \\\"Room\\\"\");\n\t\t\t\tout.write(\"}\");\n\t\t\t\tif(i < roomVertices.length - 1)\n\t\t\t\t{\n\t\t\t\t\tout.write(\",\");\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\tout.close();\n\t\t}\n\t\tcatch (IOException e) {}\n\t}", "title": "" }, { "docid": "b10d8cc7c10980cdbbc85fb1009c68f0", "score": "0.48618993", "text": "public void outputModel(int inputType) {\n\n\t\tPrintWriter pw1 = null;\n\t\tPrintWriter pw2 = null;\n\t\tString[] fileName = { \"unigramEN.txt\", \"bigramEN.txt\", \"unigramFR.txt\", \"bigramFR.txt\", \"unigramOT.txt\",\n\t\t\t\t\"bigramOT.txt\" };\n\t\ttry {\n\n\t\t\tif (inputType == 1) {\n\t\t\t\tpw1 = new PrintWriter(new FileOutputStream(fileName[0]));\n\t\t\t\tSystem.out.println(fileName[0] + \" was created\");\n\t\t\t\tfor (int i = 0; i < enUnigramProb.length; i++) {\n\t\t\t\t\tchar letter = (char) (i + 97);\n\t\t\t\t\tpw1.println(\"P(\" + letter + \") = \" + enUnigramProb[i]);\n\t\t\t\t}\n\t\t\t\tpw2 = new PrintWriter(new FileOutputStream(fileName[1]));\n\t\t\t\tSystem.out.println(fileName[1] + \" was created\\n\");\n\t\t\t\tfor (int i = 0; i < enBigramProb.length; i++) {\n\t\t\t\t\tfor (int j = 0; j < enBigramProb[i].length; j++) {\n\t\t\t\t\t\tchar row = (char) (i + 97);\n\t\t\t\t\t\tchar column = (char) (j + 97);\n\t\t\t\t\t\tpw2.println(\"P(\" + column + \"|\" + row + \") = \" + enBigramProb[i][j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (inputType == 2) {\n\t\t\t\tpw1 = new PrintWriter(new FileOutputStream(fileName[2]));\n\t\t\t\tSystem.out.println(fileName[2] + \" was created\");\n\t\t\t\tfor (int i = 0; i < frUnigramProb.length; i++) {\n\t\t\t\t\tchar letter = (char) (i + 97);\n\t\t\t\t\tpw1.println(\"P(\" + letter + \") = \" + frUnigramProb[i]);\n\t\t\t\t}\n\t\t\t\tpw2 = new PrintWriter(new FileOutputStream(fileName[3]));\n\t\t\t\tSystem.out.println(fileName[3] + \" was created\\n\");\n\t\t\t\tfor (int i = 0; i < frBigramProb.length; i++) {\n\t\t\t\t\tfor (int j = 0; j < frBigramProb[i].length; j++) {\n\t\t\t\t\t\tchar row = (char) (i + 97);\n\t\t\t\t\t\tchar column = (char) (j + 97);\n\t\t\t\t\t\tpw2.println(\"P(\" + column + \"|\" + row + \") = \" + frBigramProb[i][j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (inputType == 3) {\n\t\t\t\tpw1 = new PrintWriter(new FileOutputStream(fileName[4]));\n\t\t\t\tSystem.out.println(fileName[4] + \" was created\");\n\t\t\t\tfor (int i = 0; i < esUnigramProb.length; i++) {\n\t\t\t\t\tchar letter = (char) (i + 97);\n\t\t\t\t\tpw1.println(\"P(\" + letter + \") = \" + esUnigramProb[i]);\n\t\t\t\t}\n\t\t\t\tpw2 = new PrintWriter(new FileOutputStream(fileName[5]));\n\t\t\t\tSystem.out.println(fileName[5] + \" was created\\n\");\n\t\t\t\tfor (int i = 0; i < esBigramProb.length; i++) {\n\t\t\t\t\tfor (int j = 0; j < esBigramProb[i].length; j++) {\n\t\t\t\t\t\tchar row = (char) (i + 97);\n\t\t\t\t\t\tchar column = (char) (j + 97);\n\t\t\t\t\t\tpw2.println(\"P(\" + column + \"|\" + row + \") = \" + esBigramProb[i][j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"Wrong type, input again\");\n\t\t\tpw1.close();\n\t\t\tpw2.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Problem creating files.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "604b6f3c0f60318bf0313e0f842c3d60", "score": "0.4860437", "text": "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n trNetModelEClass = createEClass(TR_NET_MODEL);\n createEReference(trNetModelEClass, TR_NET_MODEL__PATTERNS);\n createEReference(trNetModelEClass, TR_NET_MODEL__OPERATORS);\n createEAttribute(trNetModelEClass, TR_NET_MODEL__ID);\n createEReference(trNetModelEClass, TR_NET_MODEL__RESTRICTIONS);\n createEReference(trNetModelEClass, TR_NET_MODEL__OPERANDS);\n createEReference(trNetModelEClass, TR_NET_MODEL__RESULTS);\n createEReference(trNetModelEClass, TR_NET_MODEL__FLOW_RULES);\n createEReference(trNetModelEClass, TR_NET_MODEL__CALCULATIONS);\n\n nodePatternEClass = createEClass(NODE_PATTERN);\n createEReference(nodePatternEClass, NODE_PATTERN__INCOMING);\n createEReference(nodePatternEClass, NODE_PATTERN__OUTGOING);\n createEReference(nodePatternEClass, NODE_PATTERN__SAME_OUT);\n createEReference(nodePatternEClass, NODE_PATTERN__SAME_IN);\n createEReference(nodePatternEClass, NODE_PATTERN__PATTERN);\n createEReference(nodePatternEClass, NODE_PATTERN__ATTRIBUTES);\n createEAttribute(nodePatternEClass, NODE_PATTERN__NAME);\n createEReference(nodePatternEClass, NODE_PATTERN__KEEP_IN);\n createEReference(nodePatternEClass, NODE_PATTERN__KEEP_OUT);\n createEReference(nodePatternEClass, NODE_PATTERN__DIFFERENT_IN);\n createEReference(nodePatternEClass, NODE_PATTERN__DIFFERENT_OUT);\n createEAttribute(nodePatternEClass, NODE_PATTERN__ID);\n createEAttribute(nodePatternEClass, NODE_PATTERN__EXPECTED_NUMBER_OF_DISTINCT_VALUES);\n\n edgePatternEClass = createEClass(EDGE_PATTERN);\n createEReference(edgePatternEClass, EDGE_PATTERN__SOURCE);\n createEReference(edgePatternEClass, EDGE_PATTERN__TARGET);\n createEReference(edgePatternEClass, EDGE_PATTERN__PATTERN);\n createEAttribute(edgePatternEClass, EDGE_PATTERN__NAME);\n\n patternEClass = createEClass(PATTERN);\n createEReference(patternEClass, PATTERN__NODES);\n createEReference(patternEClass, PATTERN__EDGES);\n createEReference(patternEClass, PATTERN__INCOMING_RESULTS);\n createEReference(patternEClass, PATTERN__OUTGOING_OPERANDS);\n createEAttribute(patternEClass, PATTERN__ID);\n createEAttribute(patternEClass, PATTERN__EXPECTED_SIZE);\n\n sameEClass = createEClass(SAME);\n createEReference(sameEClass, SAME__SOURCE);\n createEReference(sameEClass, SAME__TARGET);\n\n differentEClass = createEClass(DIFFERENT);\n createEReference(differentEClass, DIFFERENT__SOURCE);\n createEReference(differentEClass, DIFFERENT__TARGET);\n\n attributePatternEClass = createEClass(ATTRIBUTE_PATTERN);\n createEAttribute(attributePatternEClass, ATTRIBUTE_PATTERN__NAME);\n createEReference(attributePatternEClass, ATTRIBUTE_PATTERN__ATTRIBUTE_EXTERNAL_CALCULATION_CALL);\n createEReference(attributePatternEClass, ATTRIBUTE_PATTERN__OWNER_NODE);\n createEAttribute(attributePatternEClass, ATTRIBUTE_PATTERN__EXPECTED_NUMBER_OF_DISTINCT_VALUES);\n\n keepEClass = createEClass(KEEP);\n createEReference(keepEClass, KEEP__SOURCE);\n createEReference(keepEClass, KEEP__TARGET);\n\n restrictionEClass = createEClass(RESTRICTION);\n\n mandatoryNodeEClass = createEClass(MANDATORY_NODE);\n\n optionalNodeEClass = createEClass(OPTIONAL_NODE);\n\n combinatorEClass = createEClass(COMBINATOR);\n\n externalEClass = createEClass(EXTERNAL);\n\n operatorEClass = createEClass(OPERATOR);\n createEReference(operatorEClass, OPERATOR__OPERANDS);\n createEReference(operatorEClass, OPERATOR__RESULTS);\n createEAttribute(operatorEClass, OPERATOR__ID);\n createEReference(operatorEClass, OPERATOR__FLOW_OUT);\n createEReference(operatorEClass, OPERATOR__FLOW_IN);\n createEReference(operatorEClass, OPERATOR__CONDITIONS);\n createEReference(operatorEClass, OPERATOR__ACTIONS);\n\n resultEClass = createEClass(RESULT);\n createEReference(resultEClass, RESULT__PATTERN);\n createEReference(resultEClass, RESULT__OPERATOR);\n\n anyResultEClass = createEClass(ANY_RESULT);\n\n someResultEClass = createEClass(SOME_RESULT);\n createEAttribute(someResultEClass, SOME_RESULT__COUNT);\n\n operandEClass = createEClass(OPERAND);\n createEReference(operandEClass, OPERAND__OPERATOR);\n createEReference(operandEClass, OPERAND__PATTERN);\n createEAttribute(operandEClass, OPERAND__INDEX);\n\n anyOperandEClass = createEClass(ANY_OPERAND);\n\n someOperandEClass = createEClass(SOME_OPERAND);\n createEAttribute(someOperandEClass, SOME_OPERAND__COUNT);\n\n antiOperandEClass = createEClass(ANTI_OPERAND);\n\n optionalOperandEClass = createEClass(OPTIONAL_OPERAND);\n\n flowRuleEClass = createEClass(FLOW_RULE);\n createEReference(flowRuleEClass, FLOW_RULE__SOURCE);\n createEReference(flowRuleEClass, FLOW_RULE__TARGET);\n\n nextEClass = createEClass(NEXT);\n\n eventuallyEClass = createEClass(EVENTUALLY);\n\n nextDerivedEClass = createEClass(NEXT_DERIVED);\n\n attributeCalculationEClass = createEClass(ATTRIBUTE_CALCULATION);\n\n externalAttributeCalculationCallEClass = createEClass(EXTERNAL_ATTRIBUTE_CALCULATION_CALL);\n createEAttribute(externalAttributeCalculationCallEClass, EXTERNAL_ATTRIBUTE_CALCULATION_CALL__ID);\n createEAttribute(externalAttributeCalculationCallEClass, EXTERNAL_ATTRIBUTE_CALCULATION_CALL__QUALIFIED_NAME);\n createEReference(externalAttributeCalculationCallEClass, EXTERNAL_ATTRIBUTE_CALCULATION_CALL__RESULT);\n createEReference(externalAttributeCalculationCallEClass, EXTERNAL_ATTRIBUTE_CALCULATION_CALL__PARAMETERS);\n\n parameterEClass = createEClass(PARAMETER);\n createEReference(parameterEClass, PARAMETER__EXTERNAL_ATTRIBUTE_CALCULATION_CALL_REF);\n createEReference(parameterEClass, PARAMETER__EXTERNAL_CONDITION_CALL_REF);\n createEReference(parameterEClass, PARAMETER__EXTERNAL_ACTION_CALL_REF);\n createEReference(parameterEClass, PARAMETER__EXTERNAL_CALCULATION_CALL_REF);\n\n applicationConditionEClass = createEClass(APPLICATION_CONDITION);\n\n externalConditionCallEClass = createEClass(EXTERNAL_CONDITION_CALL);\n createEAttribute(externalConditionCallEClass, EXTERNAL_CONDITION_CALL__ID);\n createEAttribute(externalConditionCallEClass, EXTERNAL_CONDITION_CALL__QUALIFIED_NAME);\n createEReference(externalConditionCallEClass, EXTERNAL_CONDITION_CALL__PARAMETERS);\n\n actionEClass = createEClass(ACTION);\n\n externalActionCallEClass = createEClass(EXTERNAL_ACTION_CALL);\n createEAttribute(externalActionCallEClass, EXTERNAL_ACTION_CALL__ID);\n createEAttribute(externalActionCallEClass, EXTERNAL_ACTION_CALL__QUALIFIED_NAME);\n createEReference(externalActionCallEClass, EXTERNAL_ACTION_CALL__PARAMETERS);\n\n externalAttributeCalculationCallParameterEClass = createEClass(EXTERNAL_ATTRIBUTE_CALCULATION_CALL_PARAMETER);\n createEReference(externalAttributeCalculationCallParameterEClass, EXTERNAL_ATTRIBUTE_CALCULATION_CALL_PARAMETER__OWNER);\n createEReference(externalAttributeCalculationCallParameterEClass, EXTERNAL_ATTRIBUTE_CALCULATION_CALL_PARAMETER__PARAMETER);\n\n externalConditionCallParameterEClass = createEClass(EXTERNAL_CONDITION_CALL_PARAMETER);\n createEReference(externalConditionCallParameterEClass, EXTERNAL_CONDITION_CALL_PARAMETER__OWNER);\n createEReference(externalConditionCallParameterEClass, EXTERNAL_CONDITION_CALL_PARAMETER__PARAMETER);\n\n externalActionCallParameterEClass = createEClass(EXTERNAL_ACTION_CALL_PARAMETER);\n createEReference(externalActionCallParameterEClass, EXTERNAL_ACTION_CALL_PARAMETER__OWNER);\n createEReference(externalActionCallParameterEClass, EXTERNAL_ACTION_CALL_PARAMETER__PARAMETER);\n\n parameterRefEClass = createEClass(PARAMETER_REF);\n createEAttribute(parameterRefEClass, PARAMETER_REF__INDEX);\n\n calculationEClass = createEClass(CALCULATION);\n\n externalCalculationCallEClass = createEClass(EXTERNAL_CALCULATION_CALL);\n createEAttribute(externalCalculationCallEClass, EXTERNAL_CALCULATION_CALL__ID);\n createEAttribute(externalCalculationCallEClass, EXTERNAL_CALCULATION_CALL__QUALIFIED_NAME);\n createEReference(externalCalculationCallEClass, EXTERNAL_CALCULATION_CALL__PARAMETERS);\n\n externalCalculationCallParameterEClass = createEClass(EXTERNAL_CALCULATION_CALL_PARAMETER);\n createEReference(externalCalculationCallParameterEClass, EXTERNAL_CALCULATION_CALL_PARAMETER__OWNER);\n createEReference(externalCalculationCallParameterEClass, EXTERNAL_CALCULATION_CALL_PARAMETER__PARAMETER);\n }", "title": "" }, { "docid": "b115c816944ed29a461e26d4bd340e37", "score": "0.48577377", "text": "public static void main(String[] args) throws TemplateException,\n\t\t\tIOException {\n\t\tString testPath = \"D:/workspace/upapp/WebRoot/template/contentModel/contetnModelTemplate/\";\n\t\tTemplateBuilder tbu = TemplateBuilderUtil.newInstance(testPath);\n\n\t\tMap<String, Object> models = new HashMap<String, Object>();\n\t\tmodels.put(\"name\", \"嗬嗬嗬嗬 ~\");\n\t\tString templatePage = \"edit.ftl\";\n\t\tString savePage = testPath + \"builder.html\";\n\n\t\ttbu.buildFileByTemplate(models, templatePage, savePage);\n\t\t// String str = tbu.buildByTemplate(models, templatePage);\n\t\t// System.out.println(str);\n\n\t\t// System.out.println(content);\n\t\t// tbu.buildFileByContent(models, \"sdfdfkl${(name)!}\", savePage);\n\t\tString str = tbu.buildByContent(models, \"sdfdfkl${(name)!}\");\n\t\tSystem.out.println(str);\n\t}", "title": "" }, { "docid": "4f2a802ff973b99d0f987b29dd7bcbee", "score": "0.4848922", "text": "public void generate() {\r\n\r\n\t\tfor (int i = 0; i < K; i++) {\r\n\t\t\tphis[i] = MathUtil.drawDirichlet(V, betas);\r\n\t\t}\r\n\r\n\t\t// thetas\r\n\t\tfor (int m = 0; m < M; m++) {\r\n\t\t\tthetas[m] = MathUtil.drawDirichlet(K, alphas);\r\n\t\t\tint Nm = MathUtil.generateDocLength(avgLength);\r\n\t\t\tdocs[m] = new int[Nm];\r\n\t\t\tz[m] = new int[Nm];\r\n\t\t\tfor (int n = 0; n < Nm; n++) {\r\n\t\t\t\tint zmn = MathUtil.drawMultinomial(K, thetas[m]);\r\n\t\t\t\tint wmn = MathUtil.drawMultinomial(V, phis[zmn]);\r\n\t\t\t\tdocs[m][n] = wmn;\r\n\t\t\t\tz[m][n] = zmn;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4721951509454f742448ce6006211bed", "score": "0.48487702", "text": "public void generateTestCases(String test_case_file) throws Exception {\n\t\tFileWriter fw = new FileWriter(test_case_file);\n\t\t\n\t\tfor(String line : glines) {\n\t\t\tfw.write(line + '\\n');\n\t\t}\n\t\t\n\t\tfw.flush();\n\t\tfw.close();\n\t\tSystem.out.println(\"File Written...\" + test_case_file);\n\t}", "title": "" }, { "docid": "323224d943c99d0d2e913306881d6649", "score": "0.48470664", "text": "@Override\n public void processInputDetails() {\n System.out.println(\"SentenceDecorator\");\n List<String> words = inputDetails.getFileText();\n for (int i = 0; i < words.size(); i++) {\n if (i == 0) {\n String newWord = words.get(i);\n newWord = newWord.replace(newWord, PrefixSuffix.BEGIN_SENTENCE__ + newWord);\n words.set(i, newWord);\n //System.out.println(newWord);\n }\n /*if(words.get(i).equals(\".\")||words.equals(\" .\"))\n {\n String newWord=words.get(i);\n newWord=newWord.replace(newWord,PrefixSuffix.__END_SENTENCE+newWord);\n words.set(i,newWord);\n System.out.println(newWord);\n }*/\n if (words.get(i).endsWith(\".\")) {\n String newWord = words.get(i);\n String withoutPeriod = newWord.substring(0, newWord.length() - 1);\n newWord = newWord.replace(newWord, withoutPeriod + PrefixSuffix.__END_SENTENCE + \".\");\n words.set(i, newWord);\n //System.out.println(newWord);\n\n if (words.get(i + 1) != null && !isSpace(words.get(i + 1))) {\n String nextWord = words.get(i + 1);\n nextWord = nextWord.replace(nextWord, PrefixSuffix.BEGIN_SENTENCE__ + nextWord);\n words.set(i + 1, nextWord);\n //System.out.println(words.get(i + 1));\n }\n }\n\n\n }\n System.out.println(words);\n if (null != atd) {\n atd.processInputDetails();\n }\n\n\n }", "title": "" }, { "docid": "28e4a8f285f63d7295c348d27f0b1659", "score": "0.48458332", "text": "public TextView(Model model) throws IOException {\n this.model = model;\n\n createFile();\n System.out.println(\"The document 'BusSchedule.txt' has been created, and stored on your\"\n + \" desktop.\");\n }", "title": "" }, { "docid": "503ea572dd381aa0eae75f6dde8b71e7", "score": "0.48370624", "text": "@Override\n public String dumpDiagram(String diagramName, String fileText)\n {\n return \"\";\n }", "title": "" }, { "docid": "f5d4d50527aedcb33f51ed6cfd2a67dc", "score": "0.48369855", "text": "private void createFile(boolean inititate) throws IOException {\n PrintWriter writer = new PrintWriter(\"config-pxp142030-\" + identifier + \".out\", \"UTF-8\");\n writer.print(\"Net ID: pxp142030\");\n writer.print(\"\\nNode ID: \" + identifier);\n String[] nodeDetail = all_nodes[identifier].split(\" \");\n writer.print(\"\\nListening on \" + nodeDetail[1] + \":\" + nodeDetail[2]);\n writer.print(\"\\nRandom number: \" + value);\n if (inititate == true) {\n for (int i = 0; i < token.length; i++) {\n writer.print(\"\\nEmitting token \" + token[i].get_idsNo() + \" with path \" + token[i].getOriginalMap());\n }\n }\n if (inititate == false) {\n writer.print(\"\\nAll tokens received\");\n }\n writer.close();\n }", "title": "" }, { "docid": "41872c9e2437abffdf2c5c6f8635bf62", "score": "0.4835783", "text": "@Override\n public void generate()\n {\n }", "title": "" }, { "docid": "29aa839c548d2086ac44bd47803f2ee8", "score": "0.4835302", "text": "private void gen(String code)\n \t{\n \t\tout.println(\" \" + code);\n \t}", "title": "" }, { "docid": "64daeb39edb990c5c2431317a582953b", "score": "0.48347938", "text": "public void start() {\n\n List<Sentence> l = new ArrayList<Sentence>();\n l.add(new Sentence(\n \"Last night a $dude$ named D. Gibbons, the Olympic $jock$, was stopped in his car by $the heat$.\",\n \"Last night a man named D. Gibbons, the Olympic athlete, was stopped in his car by the police.\"));\n l.add(new Sentence(\n \"He was coming from a $bash$ and appeared $battered$ to the $fuzz$.\",\n \"He was coming from a party and appeared very intoxicated to the police.\"));\n l.add(new Sentence(\n \"On the backseat his $ball and chain$, famous for wearing very expensive $bling bling$, was $bunning$.\",\n \"On the backseat his wife, famous for wearing very expensive jewellery, was smoking marijuana.\"));\n l.add(new Sentence(\n \"It $was batiste$ when he took the $cop$ for a $bad egg$ and tried to $cut a deal$ for $100.\",\n \"It made matters worse when he took the policeman for a corrupt person and tried to make an agreement for $100.\"));\n l.add(new Sentence(\n \"He didn't have his driver's licence with him, claiming that his wallet was $whipped$ from him.\",\n \"He didn't have his driver's licence with him, claiming that his wallet was stolen from him.\"));\n l.add(new Sentence(\n \"As $the heat$ saw a $piece$ on the floor of the car, Gibbons $mits$ were cuffed.\",\n \"As the police saw a weapon on the floor of the car, Gibbons hands were cuffed.\"));\n l.add(new Sentence(\n \"The $dibble$ was later reported to have said that \\\"Gibbons was really screwed up - thank god he didn't go postal\\\".\",\n \"The policeman was later reported to have said that \\\"Gibbons was really screwed up - thank god he didn't go postal\\\".\"));\n l.add(new Sentence(\n \"Eventually the $bluecoats$ drove him and his $missus$ to their $crib$ - both await $phat$ legal charges.\",\n \"Eventually the officers drove him and his wife to their home - both await great legal charges.\"));\n\n for (Sentence s : l) {\n validate(s.expect, m_solution.translate(s.orig, dict));\n }\n }", "title": "" }, { "docid": "9c5ad1d8b84deb8e6258db34083654fd", "score": "0.4832513", "text": "public void saveText();", "title": "" }, { "docid": "ca49e2e2ccb2a7bc7fb4815303d3f4c7", "score": "0.48295394", "text": "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttextEClass = createEClass(TEXT);\n\t\tcreateEAttribute(textEClass, TEXT__TEXT);\n\n\t\tcompositeTextElementEClass = createEClass(COMPOSITE_TEXT_ELEMENT);\n\t\tcreateEReference(compositeTextElementEClass, COMPOSITE_TEXT_ELEMENT__SUBTEXT);\n\n\t\ttextElementEClass = createEClass(TEXT_ELEMENT);\n\n\t\tstrongEClass = createEClass(STRONG);\n\t\tcreateEAttribute(strongEClass, STRONG__TEXT);\n\n\t\temphasisEClass = createEClass(EMPHASIS);\n\t\tcreateEAttribute(emphasisEClass, EMPHASIS__TEXT);\n\n\t\turlBasedLinkEClass = createEClass(URL_BASED_LINK);\n\t\tcreateEAttribute(urlBasedLinkEClass, URL_BASED_LINK__URL);\n\t\tcreateEAttribute(urlBasedLinkEClass, URL_BASED_LINK__TITLE);\n\n\t\tlinkWithRefEClass = createEClass(LINK_WITH_REF);\n\t\tcreateEAttribute(linkWithRefEClass, LINK_WITH_REF__REFERENCE);\n\n\t\tlinkEClass = createEClass(LINK);\n\n\t\timageEClass = createEClass(IMAGE);\n\n\t\tbuttonEClass = createEClass(BUTTON);\n\n\t\ttextContainerEClass = createEClass(TEXT_CONTAINER);\n\t\tcreateEReference(textContainerEClass, TEXT_CONTAINER__TEXTELEMENT);\n\n\t\telementEClass = createEClass(ELEMENT);\n\n\t\tpageEClass = createEClass(PAGE);\n\t\tcreateEAttribute(pageEClass, PAGE__PAGE_NAME);\n\t\tcreateEReference(pageEClass, PAGE__ELEMENT);\n\n\t\telementContainerEClass = createEClass(ELEMENT_CONTAINER);\n\t\tcreateEReference(elementContainerEClass, ELEMENT_CONTAINER__ELEMENT);\n\t\tcreateEAttribute(elementContainerEClass, ELEMENT_CONTAINER__GRADE);\n\n\t\ttitleEClass = createEClass(TITLE);\n\t\tcreateEAttribute(titleEClass, TITLE__GRADE);\n\n\t\tparagraphEClass = createEClass(PARAGRAPH);\n\t}", "title": "" }, { "docid": "1067ae91b20eb9c6be3879ba1b81714c", "score": "0.48286074", "text": "public String text(){\t\r\n\t\r\n\tString text =\"\\nPROJET TUTORE: Licence 3 - UNIVERSITE PARIS DESCARTES\\n\" +\r\n\t\t\t\"Tutrice: Julie Mauclair\\n\" +\r\n\t\t\t\" \\n Analystes programmeurs & documentalistes:\\n\" +\r\n\t\t\t\t\t\"- Katrina Gigante\\n\" +\r\n\t\t\t\t\t\"- Baskan Alper\\n\" +\r\n\t\t\t\t\t\"- Abdullah Yassir Houssen\\n\" +\r\n\t\t\t\t\t\"- Sekar Vijay\";\r\n\treturn text;\r\n\t\t\t}", "title": "" }, { "docid": "79b6a6618df625ad0212c16cfc36cf70", "score": "0.48244372", "text": "@Override\n protected String getPreviewText() {\n return \"\"\"\n package sample;\n public class Sample {\n /**\n * This is a method description that is long enough to exceed right margin.\n *\n * Another paragraph of the description placed after blank line.\n * <p/>\n * Line with manual\n * line feed.\n * @param i short named parameter description\n * @param longParameterName long named parameter description\n * @param missingDescription\n * @return return description.\n * @throws XXXException description.\n * @throws YException description.\n * @throws ZException\n *\n * @invalidTag */\n public abstract String sampleMethod(int i, int longParameterName, int missingDescription) throws XXXException, YException, ZException;\n\n /** One-line comment */\n public abstract String sampleMethod2();\n\n /**\n * Simple method description\n * @return\n */\n public abstract String sampleMethod3();\n \"\"\";\n }", "title": "" }, { "docid": "f869031d65c2559122196a4783d92c38", "score": "0.48210976", "text": "public static void main(String[] args) throws IOException {\n\t\t\n\t\tFileWriter fw = new FileWriter(\"demo.txt\",true);\n\t\tFile file = new File(\"/Users/lutian/eclipse-workspace/lixinghua/src/a.text\");\n\t\t\n\n\t\t\n\t}", "title": "" }, { "docid": "b325337a99c924dc3bf8bf762b54e4dd", "score": "0.48207685", "text": "private void genPaths() {\n textLine = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\r\n // create the text curve\r\n textCurve = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\r\n // create the text curve control polygon\r\n textCurveControlPolygon = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\r\n // create the draggable control point\r\n controlPoint = vg.vgCreatePath(VG_PATH_FORMAT_STANDARD, VG_PATH_DATATYPE_F, 1.0f, 0.0f, 0, 0, VG_PATH_CAPABILITY_ALL);\r\n vg.vguEllipse(controlPoint, 0.0f, 0.0f, controlPointsRadius * 2.0f, controlPointsRadius * 2.0f);\r\n }", "title": "" }, { "docid": "098e55f0d807827d1f696381f56afddb", "score": "0.4814269", "text": "public String generate()\n\t {\n\t TextContentElement loTce = null;\n\t String loText = null;\n\t try\n\t {\n\t // Check to see if the report type is a Business Object Report\n\t if ( getJobClassName().equals(\"BusObjReport\") )\n\t {\n\t StringBuffer loTextBuffer = new StringBuffer();\n\t StringBuffer lsbBOHtmlLink = new StringBuffer(256);\n\n\t boolean lboolValidReportDataSaved = setBOReportIdentifier();\n\n\t VSORBSession loORBSession = parentApp.getSession().getORBSession();\n\t String lsUserID = loORBSession.getUserName();\n\t AMSUser loUser = AMSSecurity.getUser( lsUserID ) ;\n\t String lsPassword = loUser.getBOPassword();\n\n\t if ( !AMSParams.mboolIsBOIntegrationEnabled ) /* Is BO integration enabled?*/\n\t {\n\t loTextBuffer.append(\"<TR class=\\\"\"+\"advgridoddrow\\\"\" + \">\").append(\"\\n\\t\");\n\t loTextBuffer.append(\"<TD>\");\n\t loTextBuffer.append(\"infoADVANTAGE integration is not enabled.\");\n\t loTextBuffer.append(\" Please contact your System Administrator.\");\n\t loTextBuffer.append(\"</TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"</TR>\");\n\t }\n\t else if ( !loUser.getStdRptUserFl() ) /* Is user authorized? */\n\t {\n\t loTextBuffer.append(\"<TR class=\\\"\"+\"advgridoddrow\\\"\" + \">\").append(\"\\n\\t\");\n\t loTextBuffer.append(\"<TD>\");\n\t loTextBuffer.append(\"You are not authorized to view infoADVANTAGE reports.\");\n\t loTextBuffer.append(\"</TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"</TR>\");\n\t }\n\t else\n\t {\n\n\t if (lboolValidReportDataSaved)\n\t {\n\n\t\t\t\t /*\n\t\t\t\t * The HTML page has the second FORM element for which the\n\t\t\t\t * action field will be filled now. Also the following\n\t\t\t\t * will be populated\n\t\t\t\t * the security token\n\t\t\t\t * the report identifier\n\t\t\t\t */\n\n\t BoundElement loFormE =\n\t getDocumentModel().getElementByName(\"infoADVANTAGE_displayreport\");\n\t if (loFormE !=null)\n\t {\n\t UnknownScalarElement loFormElem = (UnknownScalarElement)loFormE;\n\t loFormElem.addAttribute(\"action\",getBOStartURL());\n\t }\n\n\n\t BoundElement loTokenE =\n\t getDocumentModel().getElementByName(\"token\");\n\t if (loTokenE !=null)\n\t {\n\t UnknownScalarElement loTokenElem = (UnknownScalarElement)loTokenE;\n\t loTokenElem.setValue(getSAMLToken());\n\t }\n\n\n\t BoundElement loReportIdE =\n\t getDocumentModel().getElementByName(\"report_identifier\");\n\t if (loReportIdE !=null)\n\t {\n\n\t UnknownScalarElement loReportIdElem = (UnknownScalarElement)loReportIdE;\n\t loReportIdElem.setValue(msReportIdentifier);\n\t }\n\n\n\n\t loTextBuffer.append(\"<TR class=\\\"advgridoddrow\\\">\").append(\"\\n\\t\");\n\n\t loTextBuffer.append(\"<TD></TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\n\t /*\n\t * New HTML Archetypes after Accessibilty changes have\n\t * a TD less\n\t */\n\n\t //Business Object Report Name\n\t loTextBuffer.append(\"<TD>\");\n\t loTextBuffer.append(getJobLabel());\n\t loTextBuffer.append(\"</TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\n\n\t /*\n\t * New HTML Archetypes after Accessibilty changes have\n\t * a TD less\n\t */\n\t // Add the Html Link\n\t loTextBuffer.append(\"<TD class=\\\"\" + \"advnavlink\\\"\" +\">\");\n\t loTextBuffer.append(\"<a title=\\\"View HTML Report \\\"\");\n\t loTextBuffer.append(\" vsaction = \\\"(None)\\\"\");\n\t loTextBuffer.append(\" vsds= \\\"(None)\\\"\");\n\t loTextBuffer.append(\" name=\\\"BOReportTrigger\\\" \" );\n\n\n\n\n\t loTextBuffer.append(\"href=\\\"javascript:void(document.infoADVANTAGE_displayreport.submit()); \\\">\" );\n\t loTextBuffer.append(\"View HTML </a>\");\n\t loTextBuffer.append(\"</TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\n\n\t /*\n\t * New HTML Archetypes after Accessibilty changes have\n\t * a TD less\n\t */\n\n\t // Add the Pdf Link\n\t loTextBuffer.append(\"<TD class=\\\"\" + \"advnavlink\\\"\" +\">\");\n\t loTextBuffer.append(\"No PDF\");\n\t loTextBuffer.append(\"</TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\n\t /*\n\t * New HTML Archetypes after Accessibilty changes have\n\t * a TD less\n\t */\n\n\t loTextBuffer.append(\"<TD></TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"</TR>\").append(\"\\n\");\n\t } //if (lboolValidReportDataSaved)\n\t else\n\t {\n\t loTextBuffer.append(\"<TR class=\\\"\"+\"advgridoddrow\\\"\" + \">\").append(\"\\n\\t\");\n\t loTextBuffer.append(\"<TD></TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"<TD></TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"<TD>\");\n\t loTextBuffer.append(\"No infoADVANTAGE Report Data Retrieved\");\n\t loTextBuffer.append(\"</TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"<TD></TD>\");\n\t loTextBuffer.append(\"\\n\\t\");\n\t loTextBuffer.append(\"</TR>\");\n\t }\n\t }\n\n\t loText = loTextBuffer.toString();\n\t }\n\t else // else get report text from VLS\n\t {\n\t loText = getReportLinks();\n\t }\n\t }\n\t catch(Exception loExp)\n\t {\n // Add exception log to logger object\n moAMSLog.error(\"Unexpected error encountered while processing. \", loExp);\n\n\t }\n\n\t loTce = (TextContentElement)getElementByName(\"AMSReportOutputRows\");\n\n\t loTce.setValue(loText);\n\n\t return super.generate();\n\t }", "title": "" } ]
5c7c55a0f81ee22d35db8e618d66d799
This method was generated by MyBatis Generator. This method returns the value of the database column province_city.parent_id
[ { "docid": "a02b16d8f9eb53f8709c870b09df624c", "score": "0.65446675", "text": "public Integer getParentId() {\n return parentId;\n }", "title": "" } ]
[ { "docid": "2bec54dab32f07af8cd9f1530c2eceaf", "score": "0.6777824", "text": "public Integer getParent_id() {\n return parent_id;\n }", "title": "" }, { "docid": "79a52c2265c4139528ca39cd6ed4cc33", "score": "0.66903263", "text": "public Long getParentid() {\r\n return parentid;\r\n }", "title": "" }, { "docid": "79a52c2265c4139528ca39cd6ed4cc33", "score": "0.66903263", "text": "public Long getParentid() {\r\n return parentid;\r\n }", "title": "" }, { "docid": "b74b6a005b738f1f4acd3d1cef17d866", "score": "0.6666298", "text": "public Long getParentid() {\n return parentid;\n }", "title": "" }, { "docid": "ee8ef748688782ad84e69870e745ca25", "score": "0.6622976", "text": "public Integer getParentid() {\n return parentid;\n }", "title": "" }, { "docid": "4543ae1aa807bf018438dc08ee5520ff", "score": "0.6596772", "text": "long getParentId();", "title": "" }, { "docid": "4543ae1aa807bf018438dc08ee5520ff", "score": "0.6596772", "text": "long getParentId();", "title": "" }, { "docid": "34bcb9e2091b216f95d13253e75f66a3", "score": "0.6522463", "text": "public Long getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "34bcb9e2091b216f95d13253e75f66a3", "score": "0.6522463", "text": "public Long getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "34bcb9e2091b216f95d13253e75f66a3", "score": "0.6522463", "text": "public Long getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "34bcb9e2091b216f95d13253e75f66a3", "score": "0.6522463", "text": "public Long getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "23bb9afd37cfdbbf4eb680a9fa655033", "score": "0.6513283", "text": "public BigDecimal getParentid() {\n return parentid;\n }", "title": "" }, { "docid": "e226e474dc90db3aa7139ffc7cd88d36", "score": "0.6463081", "text": "public Integer getParentid() {\n\t\treturn parentid;\n\t}", "title": "" }, { "docid": "95e1c5d41c3be12ff731010fb657fd58", "score": "0.64427054", "text": "public String getParentPkid() {\n return parentPkid;\n }", "title": "" }, { "docid": "d78fb3e3e7e8b52267a37190ec08db4a", "score": "0.64360404", "text": "public String getParentId() {\r\n return parentId;\r\n }", "title": "" }, { "docid": "1a058f6b0bc967bcdcc2af11be8aa130", "score": "0.6391098", "text": "public int getParentId(){\n return _parentId;\n }", "title": "" }, { "docid": "18a3b47f2b0069b7496f80c4a5259b9c", "score": "0.6385592", "text": "public Long getParentId() {\n\t\treturn parentId;\n\t}", "title": "" }, { "docid": "a69d3bcf56343b3bb2587bcf1071e283", "score": "0.63818914", "text": "@Override\n\tpublic long getParentId() {\n\t\treturn model.getParentId();\n\t}", "title": "" }, { "docid": "81b8fde2d51bd239c108db463141156a", "score": "0.6378505", "text": "public String getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "81b8fde2d51bd239c108db463141156a", "score": "0.6378505", "text": "public String getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "81b8fde2d51bd239c108db463141156a", "score": "0.6378505", "text": "public String getParentId() {\n return parentId;\n }", "title": "" }, { "docid": "9571b89a995c67f842d73f3aa8da0e04", "score": "0.6340142", "text": "String getParentIntermediaryName(int parentIntmNo) throws SQLException;", "title": "" }, { "docid": "10d908fbf87dfafe88e02f8016574e10", "score": "0.6305561", "text": "public long getParentId() {\n return parentId_;\n }", "title": "" }, { "docid": "34669b38680f9e085acf66abc5254081", "score": "0.62554824", "text": "public String getParentId() {\n return this.parentId;\n }", "title": "" }, { "docid": "b4dc79747ff9dadbe78f109ab69696d2", "score": "0.6221754", "text": "public String getParentId() {\n\t\treturn parentId;\n\t}", "title": "" }, { "docid": "64281976c16ddabaf7591a7ceaf89dd1", "score": "0.6220434", "text": "public final int getParentId() {\r\n return this.parentId;\r\n }", "title": "" }, { "docid": "389a8586ebc1a862f17ca938e19191da", "score": "0.6208914", "text": "public long getParentId() {\n return parentId_;\n }", "title": "" }, { "docid": "5440e54268cd826ad6d4ede161336d13", "score": "0.6206157", "text": "@NonNull\n public String getParentId() {\n return mParentId;\n }", "title": "" }, { "docid": "6f1b333c693b3eea641ca2e74df1e4e7", "score": "0.60518456", "text": "Parent selectByPrimaryKey(Integer parentId);", "title": "" }, { "docid": "471688a6b8c4a6036d986af698b9e191", "score": "0.6044497", "text": "Long getParentPageReferenceId();", "title": "" }, { "docid": "bb8b9edef4aa49fd338593b88a64e86a", "score": "0.6001571", "text": "public String getParentIdString(){\n \treturn Integer.toString(_parentId);\n }", "title": "" }, { "docid": "bb9c393d85531ff2b872a4dd278ce64b", "score": "0.59042555", "text": "public Long getParentObjectId()\n\t{\n return parentObjectId;\n }", "title": "" }, { "docid": "870ead5c4d006d7051b08a09193ce3d5", "score": "0.58290386", "text": "public Long getParent() {\n return parent;\n }", "title": "" }, { "docid": "e4343f44652f5fa0c8a02d3def9b3bf7", "score": "0.57624614", "text": "public long getParent();", "title": "" }, { "docid": "4697d3996048c4906bf8ec2c4f8e8d21", "score": "0.5746439", "text": "int getCityId();", "title": "" }, { "docid": "4697d3996048c4906bf8ec2c4f8e8d21", "score": "0.5746439", "text": "int getCityId();", "title": "" }, { "docid": "3c2804e201db32d731145908b2f5e39a", "score": "0.57282573", "text": "public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT C_OrderLine.C_Order_ID AS NAME\" +\n \" FROM C_OrderLine\" +\n \" WHERE C_OrderLine.C_OrderLine_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "title": "" }, { "docid": "515f8d7d186664ee5015ab8666797424", "score": "0.5678748", "text": "@Override\n public UniqueIdentifier getParentPositionId() {\n return _parentPositionId;\n }", "title": "" }, { "docid": "184b00b2149f7d67ec20665af501991a", "score": "0.5660628", "text": "public int getParent()\r\n\t{\r\n\t\treturn parent;\t// return parent\r\n\t}", "title": "" }, { "docid": "9d7d777a664f10077c1850a57f9a2a48", "score": "0.56563324", "text": "public String getParentBranch() {\n return parentBranch;\n }", "title": "" }, { "docid": "170c8ca0ec52384fadabb9e51a4fa739", "score": "0.5649158", "text": "public Integer getCityId() {\n return cityId;\n }", "title": "" }, { "docid": "170c8ca0ec52384fadabb9e51a4fa739", "score": "0.5649158", "text": "public Integer getCityId() {\n return cityId;\n }", "title": "" }, { "docid": "e9cf60d6001dc705cdeef4572a05a50b", "score": "0.5634723", "text": "@javax.annotation.Nullable\n @JsonProperty(\"parent_category_id\")\n @JsonInclude(value = JsonInclude.Include.NON_NULL)\n public String getParentCategoryId() { return parentCategoryId; }", "title": "" }, { "docid": "e807aee880c548654d0a6361232db06a", "score": "0.5629388", "text": "public int getCityId() {\n return cityId;\n }", "title": "" }, { "docid": "d6bb5b3849a901305f5331c79cf3fc3c", "score": "0.5618654", "text": "public java.lang.String getParentCustomerCode() {\n return parentCustomerCode;\n }", "title": "" }, { "docid": "d6d20ecd595e6eb2fe9496fc80d51bfb", "score": "0.5612167", "text": "public long getCityid()\n {\n return cityid;\n }", "title": "" }, { "docid": "18a9b3f6bba72beeae333b52b52d3b54", "score": "0.56037873", "text": "public int getCityId() {\n return cityId_;\n }", "title": "" }, { "docid": "18a9b3f6bba72beeae333b52b52d3b54", "score": "0.56037873", "text": "public int getCityId() {\n return cityId_;\n }", "title": "" }, { "docid": "41c488743300e7a0807a078038d57ed7", "score": "0.5603119", "text": "public Long getCityId() {\r\n return cityId;\r\n }", "title": "" }, { "docid": "19be16ec606f2bb9714eeab1dc571a47", "score": "0.55862474", "text": "public Parent selectParent(@Param(\"id\") int id);", "title": "" }, { "docid": "06e02014ca437ad14a0560259f5a2f86", "score": "0.5514004", "text": "public String getCity_id() {\r\n return city_id;\r\n }", "title": "" }, { "docid": "ea69d70d7368aa676ef187a95796fdc4", "score": "0.5512947", "text": "public int getCityId() {\n return cityId_;\n }", "title": "" }, { "docid": "ea69d70d7368aa676ef187a95796fdc4", "score": "0.5512947", "text": "public int getCityId() {\n return cityId_;\n }", "title": "" }, { "docid": "545438ecefbdbb2ab5c0171b740057c5", "score": "0.5492092", "text": "@Override\r\n\tpublic String getParentPKFieldName() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0f00d53c5de440c7f019824e185a27bf", "score": "0.54750985", "text": "public long getParentUserRoleId() {\n return parentUserRoleId;\n }", "title": "" }, { "docid": "c046aa9253dea1c1d4e4182a74f1b899", "score": "0.5468948", "text": "public java.lang.String getParentMerchantId() {\n return genClient.cacheGet(CacheKey.parentMerchantId);\n }", "title": "" }, { "docid": "e02c801fcbf114b5dd009777c3931f61", "score": "0.5468445", "text": "public String getCity_par_id() {\r\n return city_par_id;\r\n }", "title": "" }, { "docid": "2ae3dcc5a94e0a79f64aabf0cd5d3dae", "score": "0.54652596", "text": "public Integer getParent() {\n return parent;\n }", "title": "" }, { "docid": "10963e9951f9732446646c91e210d209", "score": "0.5439318", "text": "public long getCityId() {\r\n\t\treturn cityId;\r\n\t}", "title": "" }, { "docid": "19308e5a5175771221f5a59dd5a4b0f2", "score": "0.5421336", "text": "public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT zssm_WorkstepTechDoc_v.Zssm_Workstep_V_ID AS NAME\" +\n \" FROM zssm_WorkstepTechDoc_v\" +\n \" WHERE zssm_WorkstepTechDoc_v.Zssm_WorkstepTechDoc_V_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "title": "" }, { "docid": "e3d991eae3f1b03d056a2ede734cc8fb", "score": "0.5421203", "text": "@DurableGetter(Id = 4L, EntityFactoryProxies = \"m_node_efproxies\", GenericFieldTypes = \"m_node_gftypes\")\n public abstract TreeNode<E> getParent();", "title": "" }, { "docid": "f50c9ca0ade56b15c59cbfc9d7094f71", "score": "0.5415567", "text": "public String getParentCampaignId() {\n\n return parentCampaignId;\n }", "title": "" }, { "docid": "23f8837079153511148ad9e1655b78c0", "score": "0.5407027", "text": "public Long getParentIndexId() {\r\n\r\n\t\treturn parentIndexId;\r\n\t}", "title": "" }, { "docid": "073b62e0c8fd01db03d8b2f5141079a7", "score": "0.538543", "text": "@Override\n\tpublic String getParentNodeId() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c57161f8a84487f5f4f336e01a9c360f", "score": "0.5373315", "text": "public void setParent_id(Integer parent_id) {\n this.parent_id = parent_id;\n }", "title": "" }, { "docid": "14514bceaa73367adc4d71b3d286a49e", "score": "0.53649247", "text": "public String getParentKey()\r\n\t{\r\n\t\treturn parentKey;\r\n\t}", "title": "" }, { "docid": "6fecf20f3eb2fbad74462fa6e4a4af0f", "score": "0.536154", "text": "@Override\n\tpublic Parent getParent(int id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b2e7315a811605bbc5629b8e10d8402d", "score": "0.5351917", "text": "public void setParentid(BigDecimal parentid) {\n this.parentid = parentid;\n }", "title": "" }, { "docid": "f3c9de8ce574f1ef5d08867aa59846dd", "score": "0.53495353", "text": "@Override\r\n public String getParentPKFieldName() {\n return null;\r\n }", "title": "" }, { "docid": "c8ab312adb81cbe4bcb2ece64b83357d", "score": "0.5344978", "text": "public String getCityid() {\n return cityid;\n }", "title": "" }, { "docid": "f39693e95d828acd197c20603a796fea", "score": "0.53343517", "text": "public String getParentfuncid() {\n\t\treturn parentfuncid;\n\t}", "title": "" }, { "docid": "8f768a2b4e2fbd726d6b77cf62e563e2", "score": "0.53326434", "text": "int getProvinceId();", "title": "" }, { "docid": "c51086cd463b96c2cb0dd374c3bbad49", "score": "0.53283936", "text": "@Override\n public Set<UniqueId> getParentRegionIds() {\n return _parentRegionIds;\n }", "title": "" }, { "docid": "eb239f9c08ec1aee41149d9037b13a60", "score": "0.5313431", "text": "DatabaseObject getParent();", "title": "" }, { "docid": "e4c3f2864e9dca10d9c9707605ce2498", "score": "0.53068274", "text": "public long getParentAccountId(String parentCode, int circleId)\n\t\t\tthrows DAOException;", "title": "" }, { "docid": "b5bb4d6e4170ab63ca6c2221a575a6c8", "score": "0.52972245", "text": "public ProductContainer getParent(){\n return this.productGroupVault.get(_parentId);\n }", "title": "" }, { "docid": "2c3616f3dd86d3e4f8244cadd0fd0ca4", "score": "0.5285114", "text": "public static String selectParentID(ConnectionProvider connectionProvider, String key) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT ad_ref_gridcolumn.AD_Ref_Group_ID AS NAME\" +\n \" FROM ad_ref_gridcolumn\" +\n \" WHERE ad_ref_gridcolumn.AD_Ref_Gridcolumn_ID = ?\";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, key);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "title": "" }, { "docid": "e382d391b5dfba9001249990004e2eba", "score": "0.5264408", "text": "public int getProvinceId() {\n return provinceId_;\n }", "title": "" }, { "docid": "75ee6bab76caf9739cf16b3618609adb", "score": "0.52503026", "text": "public void setParentid(Long parentid) {\r\n this.parentid = parentid;\r\n }", "title": "" }, { "docid": "75ee6bab76caf9739cf16b3618609adb", "score": "0.52503026", "text": "public void setParentid(Long parentid) {\r\n this.parentid = parentid;\r\n }", "title": "" }, { "docid": "fbec0749b885d73d419d3a9970f21d49", "score": "0.5238012", "text": "public String getParentIds() {\n\t\treturn parentIds;\n\t}", "title": "" }, { "docid": "cc4208603442094c6fc5523ffee0744b", "score": "0.5237032", "text": "public int getParentFolderId() {\n return parentFolderId;\n }", "title": "" }, { "docid": "8e4b71317d7f2d390bfe7350222a8f16", "score": "0.52100873", "text": "public List getParentRightsID();", "title": "" }, { "docid": "7341be2986cef657d4711be2559fbf10", "score": "0.51782054", "text": "public NodeInfo getParent();", "title": "" }, { "docid": "c08baa1e47cae1bf9c142f27e549a85e", "score": "0.51739836", "text": "public void setParentid(Integer parentid) {\n this.parentid = parentid;\n }", "title": "" }, { "docid": "c0a356d4a68fc39d49cd2bbae76d5962", "score": "0.5167528", "text": "public static String selectParent(ConnectionProvider connectionProvider, String zssmWorkstepVId) throws ServletException {\n String strSql = \"\";\n strSql = strSql + \n \" SELECT (TO_CHAR(COALESCE(TO_CHAR(table1.Value), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.Name), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.Zssm_Prj_Name), '')) || ' - ' || TO_CHAR(COALESCE(TO_CHAR(table1.SeqNo), ''))) AS NAME FROM zssm_workstep_v left join (select Zssm_Workstep_V_ID, Value, Name, Zssm_Prj_Name, SeqNo from Zssm_Workstep_V) table1 on (zssm_workstep_v.Zssm_Workstep_V_ID = table1.Zssm_Workstep_V_ID) WHERE zssm_workstep_v.Zssm_Workstep_V_ID = ? \";\n\n ResultSet result;\n String strReturn = \"\";\n PreparedStatement st = null;\n\n int iParameter = 0;\n try {\n st = connectionProvider.getPreparedStatement(strSql);\n iParameter++; UtilSql.setValue(st, iParameter, 12, null, zssmWorkstepVId);\n\n result = st.executeQuery();\n if(result.next()) {\n strReturn = UtilSql.getValue(result, \"name\");\n }\n result.close();\n } catch(SQLException e){\n log4j.error(\"SQL error in query: \" + strSql + \"Exception:\"+ e);\n throw new ServletException(\"@CODE=\" + e.getSQLState() + \"@\" + e.getMessage());\n } catch(Exception ex){\n log4j.error(\"Exception in query: \" + strSql + \"Exception:\"+ ex);\n throw new ServletException(\"@CODE=@\" + ex.getMessage());\n } finally {\n try {\n connectionProvider.releasePreparedStatement(st);\n } catch(Exception ignore){\n ignore.printStackTrace();\n }\n }\n return(strReturn);\n }", "title": "" }, { "docid": "cdb855d5b26a8e1d44d373dbdf47a729", "score": "0.5165654", "text": "public TreeNode getParent() {\n return parent;\n }", "title": "" }, { "docid": "8ae7a7dae9684f7cd67305427d2c2691", "score": "0.5165339", "text": "public final Object getParent() {\n try {\n \tif(hasListeners()) {\n \t\teventTrigger().triggerAttribute(Stage.BEGIN, this, \"parent\", Optional.empty());\n \t}\n \tAJoinPoint result = this.getParentImpl();\n \tif(hasListeners()) {\n \t\teventTrigger().triggerAttribute(Stage.END, this, \"parent\", Optional.ofNullable(result));\n \t}\n \treturn result!=null?result:getUndefinedValue();\n } catch(Exception e) {\n \tthrow new AttributeException(get_class(), \"parent\", e);\n }\n }", "title": "" }, { "docid": "63c6ad3eac8e657b463d6c6c26297859", "score": "0.5161025", "text": "@NotNull\n @Valid\n @JsonProperty(\"parentUnit\")\n public BusinessUnitResourceIdentifier getParentUnit();", "title": "" }, { "docid": "47b80c74eaff8834f15ba1b1a840906b", "score": "0.5160459", "text": "String getParentReference() {\n return this.parentReference;\n }", "title": "" }, { "docid": "39b6efaeacbb53acf8f3a9c08c4f735c", "score": "0.5144324", "text": "public void setParentid(Long parentid) {\n this.parentid = parentid;\n }", "title": "" } ]
89b7df22b89a875951278077dd7ddc7b
Tests whether the action of the request is follow or unfollow.
[ { "docid": "ca3b125d7ecaf90634a69946c69f0cfc", "score": "0.8123929", "text": "private boolean isFollowAction(HttpServletRequest request)\r\n throws IllegalRequestParameterException {\r\n String action = getNonEmptyParameter(request, \"action\");\r\n if (action.equals(\"follow\")) {\r\n return true;\r\n }\r\n if (action.equals(\"unfollow\")) {\r\n return false;\r\n }\r\n throw new IllegalRequestParameterException(\"action\", action,\r\n \"Invalid value. Allowed values are: follow|unfollow\");\r\n }", "title": "" } ]
[ { "docid": "80d177e7136dc89ceb98acbc306d40f8", "score": "0.6708929", "text": "public Integer getIsFollow() {\n return isFollow;\n }", "title": "" }, { "docid": "8d376ebb335502f07cbf68a939ec938f", "score": "0.65291286", "text": "public final boolean getFollow() {\n return follow;\n }", "title": "" }, { "docid": "fd606043d6b643d64618f322d61bccfd", "score": "0.64080673", "text": "boolean getFollowed();", "title": "" }, { "docid": "fd606043d6b643d64618f322d61bccfd", "score": "0.64080673", "text": "boolean getFollowed();", "title": "" }, { "docid": "46c3fea94520abdd4bfaf941250531a3", "score": "0.62263775", "text": "public boolean getFollowed() {\n return followed_;\n }", "title": "" }, { "docid": "46c3fea94520abdd4bfaf941250531a3", "score": "0.6226254", "text": "public boolean getFollowed() {\n return followed_;\n }", "title": "" }, { "docid": "5c6296dd49ff61eca9477d1d861e9ba3", "score": "0.6226145", "text": "public boolean getFollowed() {\n return followed_;\n }", "title": "" }, { "docid": "5c6296dd49ff61eca9477d1d861e9ba3", "score": "0.6226145", "text": "public boolean getFollowed() {\n return followed_;\n }", "title": "" }, { "docid": "41457964a19f37ef9c4500d5572cbe38", "score": "0.62014526", "text": "private boolean isInFollow(String terminalOrNonTerminalName, Token token) {\n if (!isNonTerminal(terminalOrNonTerminalName))\n return false;\n else {\n return checkIsInSet(token, followSets.get(terminalOrNonTerminalName));\n }\n }", "title": "" }, { "docid": "114551a36b482fc091ab08df13d02636", "score": "0.61635315", "text": "public void setIsFollow(Integer isFollow) {\n this.isFollow = isFollow;\n }", "title": "" }, { "docid": "34c2e86c19256f63eaa2d240d10eacc5", "score": "0.5889625", "text": "private void checkUserFollowed() {\n\t\tif (!Global.IS_LOADED_FAVORITE_LIST) {\n\t\t\tGlobal.listFavorite = new Vector<UserModel>();\n\t\t\tRequestParams request = new RequestParams();\n\t\t\trequest.put(Params.PARAM_USER_ID_, mSession.getUserId());\n\t\t\trequest.put(Params.PARAM_TOKEN_, mSession.getToken());\n\t\t\tGetListUserAPI apiListFavorite = new GetListUserAPI(this, this,\n\t\t\t\t\tGlobal.listFavorite, Params.FAVORITE);\n\t\t\tapiListFavorite.setParams(request);\n\t\t\tapiListFavorite.setUseProgressbar(true);\n\t\t\tapiListFavorite.onRunButtonPressed();\n\t\t} else {\n\t\t\tcheckFollowed();\n\t\t}\n\t}", "title": "" }, { "docid": "61b19cd73b9d7a39dd7f4348cba1f8f0", "score": "0.5838105", "text": "public boolean actionIsDoneOnBehalfOfAnother() throws OXException {\n if (actor == null || actor.hasRole(ITipRole.PRINCIPAL)) {\n return false;\n }\n return !actor.equals(getOnBehalfOf());\n }", "title": "" }, { "docid": "eca5279dd57b8cc3d62f5141553fc9f0", "score": "0.57817674", "text": "public final void setFollow(final boolean newValue) {\n follow = newValue;\n }", "title": "" }, { "docid": "e409a63a76d482757c09d734cd7b35e1", "score": "0.57602346", "text": "@Override\n public boolean a () {\n\n if (follow == null) {\n return false;\n } else if (follow.isDead()) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "036b9285c73c9db102256cea015f4289", "score": "0.57345146", "text": "public boolean follow(Unit target) {\n return follow_native(pointer, target);\n }", "title": "" }, { "docid": "e3aa2723f7b645e51c69a3105462b284", "score": "0.5672147", "text": "boolean isUserFollowedBy(User a, User b) throws UserException;", "title": "" }, { "docid": "69686cc246ce6ba2792334aec12d7d75", "score": "0.56669736", "text": "public void followFinished() {\n isFollowMode = false;\n }", "title": "" }, { "docid": "ee3a8d2c714846a3e1cd6d5c144ac6f8", "score": "0.5613426", "text": "@Override\r\n\tprotected boolean followRelationship(IKnowledgeSubject source,\r\n\t\t\tIRelationship relationship, IConcept type) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "237499cd82379bd7f829b3138d7a7769", "score": "0.5526663", "text": "public boolean hasAction() {\n return responseCase_ == 11;\n }", "title": "" }, { "docid": "a325c15426f424f0803414609fce82a9", "score": "0.5515975", "text": "public boolean tellToTarget(MessageProtos.Message request) {\n if (request.getTargetActorName().equals(\"/\")) {\n return true;\n }\n\n ActorRef ref = ActorCache.instance().get(request.getTargetActorName());\n ActorSelection actorSelection = null;\n if (ref == null) {\n actorSelection = ActorCache.instance().getRemote(request.getTargetActorName());\n }\n\n if (request.getMsgOption() ==\n SEND_AND_FORGET) {\n if (ref != null) {\n ref.tell(request, self());\n } else if (actorSelection != null) {\n actorSelection.tell(request, self());\n }\n } else if (request.getMsgOption() == GET_BACK_RESPONSE) {\n route(actorSelection, ref, request, getContext().dispatcher());\n }\n return (ref != null || actorSelection != null);\n }", "title": "" }, { "docid": "bf7684c1f42c1cac23c8e20e755996c0", "score": "0.5515568", "text": "public boolean hasAction() {\n return responseCase_ == 11;\n }", "title": "" }, { "docid": "d758ee31dc80473ed80eb5a4f43d2a73", "score": "0.54958946", "text": "FollowingResponse getFollowing(FollowingRequest request);", "title": "" }, { "docid": "0f7459bfcd0556cfa18b974f94627c51", "score": "0.5347393", "text": "public boolean isFollowing() {\n return isFollowing_native(pointer);\n }", "title": "" }, { "docid": "7bb25457be05507d4cd9f7f75672c95a", "score": "0.5326454", "text": "public boolean isTenderFragmetAction() {\n return !(equals(PROFILE) || equals(RESULT_SET));\n }", "title": "" }, { "docid": "a34e574843a8e9fdf067438509d0c083", "score": "0.5299254", "text": "private boolean following(String username, String otherUser) {\n return userRepository.findFollowers(username).contains(otherUser);\n }", "title": "" }, { "docid": "1e031b3abe882a67c6ae0df05dbad369", "score": "0.5290098", "text": "public void setFollowRedirect(boolean followRedirect) {\r\n this.followRedirect = followRedirect;\r\n }", "title": "" }, { "docid": "3c5f89d2870e368afec6c0bf75123479", "score": "0.5288953", "text": "static final /* synthetic */ int m98481a(IMUser iMUser, IMUser iMUser2) {\n if (iMUser.getFollowStatus() == 2 && iMUser2.getFollowStatus() != 2) {\n return -1;\n }\n if (iMUser.getFollowStatus() == 2 || iMUser2.getFollowStatus() != 2) {\n return 0;\n }\n return 1;\n }", "title": "" }, { "docid": "91500580d2c7710df0ad0a37f6d26921", "score": "0.5270269", "text": "public int getFollowingType() {\n return followingType_;\n }", "title": "" }, { "docid": "8c2176165b89bf729b8654bc783e280b", "score": "0.5269247", "text": "boolean isUserFollowing(User a, User b) throws UserException;", "title": "" }, { "docid": "669072c6bd91aee73e85cb8231cbe846", "score": "0.5258522", "text": "boolean unfollowUser(InstaUser username);", "title": "" }, { "docid": "28e4ecef9eb65e91c4dc2ca8cb9c04d8", "score": "0.5256392", "text": "private void updateFollowView() {\n if (mIsOwnerUser) {\n mFollowBtn.setVisibility(View.GONE);\n return;\n }\n\n if (mProfileInfo == null || mProfileInfo.getIsSubscribed() == null) {\n return;\n }\n\n mFollowBtn.setVisibility(View.VISIBLE);\n boolean isFollowed = mProfileInfo.getIsSubscribed();\n if (isFollowed) {\n mFollowBtn.setText(getString(R.string.unfollow));\n mFollowBtn.setTextColor(ContextCompat.getColor(this, R.color.white_op50));\n\n } else {\n mFollowBtn.setText(getString(R.string.follow));\n mFollowBtn.setTextColor(ContextCompat.getColor(this, R.color.colorAccent));\n }\n }", "title": "" }, { "docid": "5643e45145aaa3d0d56f2b991241102b", "score": "0.523406", "text": "@ReLogoBuilderGeneratedFor(\"beehive.relogo.Follower\")\r\n\tpublic boolean isFollowerQ(Object o){\r\n\t\treturn (o instanceof beehive.relogo.Follower);\r\n\t}", "title": "" }, { "docid": "db4a284e88236d160102dd0e6fded8ac", "score": "0.5222532", "text": "public boolean hasAction() {\n return requestCase_ == 11;\n }", "title": "" }, { "docid": "028ac9a6096062fbe11e213d0b65eaa8", "score": "0.5220134", "text": "boolean hasActionType();", "title": "" }, { "docid": "79d8c584334783af1729618629934526", "score": "0.52139574", "text": "boolean followUser(InstaUser _username);", "title": "" }, { "docid": "d3b66bf0ab9c2bbe7ccf3168be541aa1", "score": "0.52072155", "text": "boolean isRequest();", "title": "" }, { "docid": "6a32e9e2b670688d3d2ec8f3e9364a2b", "score": "0.52003694", "text": "public boolean hasAction() {\n return requestCase_ == 11;\n }", "title": "" }, { "docid": "25158eebeb187dd719d5ebe29f51fc29", "score": "0.51967263", "text": "public void updateFlagToFollowup(PrivateMessage pm) throws Exception;", "title": "" }, { "docid": "196753b4a92a6a90c3846684b95b3fe7", "score": "0.5196546", "text": "public boolean followUser(User user, User followingUser) {\n return userDAO.followUser(user, followingUser);\n }", "title": "" }, { "docid": "bf58bb69d62199dafe7a38cba9850f52", "score": "0.5181036", "text": "public Builder setFollowed(boolean value) {\n \n followed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "bf58bb69d62199dafe7a38cba9850f52", "score": "0.51810145", "text": "public Builder setFollowed(boolean value) {\n \n followed_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "ea04941bbde1c449e5ce5b5b07d2e706", "score": "0.51789707", "text": "@Override\n public void onClick(View v) {\n int id = mUserInfo.getId();\n if (ApiUtil.hasUserToken()) {\n UserInfoService.follow(id, new Callback<Object>() {\n @Override\n public void onResponse(Call<Object> call, Response<Object> response) {\n ToastUtil.show(\"关注成功!\");\n String msg = response.message();\n Log.d(\"TAG\", response.message());\n }\n\n @Override\n public void onFailure(Call<Object> call, Throwable t) {\n Log.d(\"TAG\", t.toString());\n }\n });\n }\n }", "title": "" }, { "docid": "27b71d5f50c05609ab64cc8fde5d7270", "score": "0.5173806", "text": "public void setFollowUId(String followUId) {\n this.followUId = followUId;\n }", "title": "" }, { "docid": "cd54d184f40edb82f722a1f63eb9e446", "score": "0.5171742", "text": "private String createFollowUnfollowUserSuccessMessage(HttpServletRequest request, Long userId,\r\n boolean isFollow) {\r\n UserProfileDetails details = ServiceLocator.findService(UserProfileManagement.class)\r\n .getUserProfileDetailsById(userId, false);\r\n String displayName = UserNameHelper.getSimpleDefaultUserSignature(details);\r\n String messageKey = isFollow ? \"follow.follow.user.success\"\r\n : \"follow.unfollow.user.success\";\r\n return MessageHelper.getText(request, messageKey,\r\n new String[] { displayName });\r\n }", "title": "" }, { "docid": "1c93d363dc6c5074867e373481bdd625", "score": "0.5170964", "text": "public static void check(CharacterEntity actor, Pet pet) throws ActionException {\n\t\tif(!pet.follower().isFollowing(actor)) throw ActionException.of(\"pet.not.owner\");\n\t}", "title": "" }, { "docid": "fe6d8ca3e75e2b1ce305a5f5842f3f19", "score": "0.51684964", "text": "@Override\n\tpublic boolean isRetweetedByMe() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "32739f94c0e4b87314ee5d6512763093", "score": "0.5166", "text": "@Override\n\t\t\tpublic boolean isRetweetedByMe() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "be1e1818ce054b627b827f3ef99d928f", "score": "0.5124384", "text": "@RequestMapping(method= RequestMethod.POST, value = \"/follow/true\")\n public Map<String, Boolean> getIsFollowed(@RequestBody String jsonString) {\n JSONObject data = new JSONObject(jsonString);\n String[] followFields = ControllerHelper.getFollowFields(data);\n Boolean isFollowed = UserDatabaseLogic.userIsFollowed(followFields[0], followFields[1]);\n return Collections.singletonMap(\"userIsFollowed\", isFollowed);\n }", "title": "" }, { "docid": "533795d3ed2da77ab9e89add35edd1de", "score": "0.5102071", "text": "public void unfollowIfDiscussionIsFollowed(int threadNumber) {\n By followButtonBy = By.cssSelector(\".thread:nth-child(\" + threadNumber + \") li.follow\");\n WebElement followButton = wait.forElementVisible(followButtonBy);\n\n if (followButton.getText().contains(\"Following\")) {\n Log.log(\n \"unfollowIfDiscussionIsFollowed\",\n \"discussion is followed. Preparing to click \\\"unfollowed\\\"\",\n true\n );\n wait.forElementClickable(followButton);\n scrollAndClick(followButton);\n Log.log(\"unfollowIfDiscussionIsFollowed\", \"discussion unfollowed\", true, driver);\n } else {\n Log.log(\"unfollowIfDiscussionIsFollowed\", \"discussion was unfollowed already\", true);\n }\n }", "title": "" }, { "docid": "779379a926ce83b19a38bd310e2d10f0", "score": "0.5083476", "text": "public boolean unfollowUser(User user, User unfollowingUser) {\n return userDAO.unfollowUser(user, unfollowingUser);\n }", "title": "" }, { "docid": "10f0548260deda2fdb1a60b7ab01692b", "score": "0.50799", "text": "boolean hasActionRaw();", "title": "" }, { "docid": "d9b5738a04ef4d6b3d6e07f03ebd8789", "score": "0.5079656", "text": "public boolean isSynch(String action) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b975df32a80cc935046c65bba13393e8", "score": "0.50790346", "text": "public void setEntityToFollow(Entity entityToFollow)\n {\n this.entityToFollow = entityToFollow;\n }", "title": "" }, { "docid": "743068f67afebb651bd4293dce9496f8", "score": "0.5067167", "text": "boolean hasRequest();", "title": "" }, { "docid": "743068f67afebb651bd4293dce9496f8", "score": "0.5067167", "text": "boolean hasRequest();", "title": "" }, { "docid": "743068f67afebb651bd4293dce9496f8", "score": "0.5067167", "text": "boolean hasRequest();", "title": "" }, { "docid": "743068f67afebb651bd4293dce9496f8", "score": "0.5067167", "text": "boolean hasRequest();", "title": "" }, { "docid": "8f052f80b0c5b25addef7b6b07c2a0dc", "score": "0.5066819", "text": "public final void mT__91() throws RecognitionException {\n try {\n int _type = T__91;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSml.g:91:7: ( 'follows:' )\n // InternalSml.g:91:9: 'follows:'\n {\n match(\"follows:\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "title": "" }, { "docid": "af144e3260ae205a0a3e3a00e83d5e4d", "score": "0.50643164", "text": "private boolean shouldDispatchAction(Action action) {\n return action == mRewindAction\n || action == mFastForwardAction\n || action == mThumbsDownAction\n || action == mThumbsUpAction\n || action == mRepeatAction\n || action == mShuffleAction\n || action == mClosedCaptionAction\n || action == mPictureAction;\n }", "title": "" }, { "docid": "2771e5c4a881e167b58704b66624f3d1", "score": "0.5061249", "text": "private boolean hasRelationship(Relation principal, Relation unknow) {\n\t\tboolean hasRelationship = false;\n\t\tif (isNotNullWithFatherID(principal) && isNotNullWithFatherID(unknow)) {\n\t\t\tif (areEqualsID(principal.getFatherId(), unknow.getFatherId())) {\n\t\t\t\thasRelationship = true;\n\t\t\t}\n\t\t}\n\t\treturn hasRelationship;\n\t}", "title": "" }, { "docid": "5d114dfa27fc4471c2ddff493d9c1907", "score": "0.5052486", "text": "public boolean isActionDeterministic();", "title": "" }, { "docid": "9fd821dd7339c708c27bbc17957cc3ef", "score": "0.5047419", "text": "abstract boolean isForward();", "title": "" }, { "docid": "4b45b256fb11262448f1f72e1c83f8f0", "score": "0.5045873", "text": "@Override\n\tpublic boolean unfollowUser(long id) {\n\t\tfuRepository.deleteById(id);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bffe176f629f45de651e95d454e02f65", "score": "0.5044895", "text": "private void doFollow(ApiResult apiResult, HttpServletRequest request, Long blogId,\r\n Long noteId, Long discussionId, Long tagId, Long userId) {\r\n // only handle first encountered\r\n String message = null;\r\n try {\r\n if (blogId != -1) {\r\n getFollowManagement().followBlog(blogId);\r\n message = createFollowUnfollowBlogSuccessMessage(request, blogId, true);\r\n } else if (noteId != -1) {\r\n getFollowManagement().followDiscussionByNoteId(noteId);\r\n message = MessageHelper.getText(request, \"follow.follow.discussion.success\");\r\n } else if (discussionId != -1) {\r\n getFollowManagement().followDiscussion(discussionId);\r\n message = MessageHelper.getText(request, \"follow.follow.discussion.success\");\r\n } else if (tagId != -1) {\r\n getFollowManagement().followTag(tagId);\r\n message = MessageHelper.getText(request, \"follow.follow.tag.success\",\r\n new String[] { ServiceLocator.instance().getService(TagManagement.class)\r\n .findTag(tagId).getDefaultName() });\r\n } else {\r\n getFollowManagement().followUser(userId);\r\n message = createFollowUnfollowUserSuccessMessage(request, userId, true);\r\n }\r\n } catch (NotFoundException e) {\r\n apiResult.setStatus(ApiResult.ResultStatus.ERROR.name());\r\n if (e instanceof BlogNotFoundException) {\r\n message = MessageHelper.getText(request, \"follow.follow.error.not.found.blog\");\r\n } else if (e instanceof NoteNotFoundException) {\r\n message = MessageHelper.getText(request, \"follow.follow.error.not.found.note\");\r\n } else if (e instanceof TagNotFoundException) {\r\n message = MessageHelper.getText(request, \"follow.follow.error.not.found.tag\");\r\n } else {\r\n message = MessageHelper.getText(request, \"follow.follow.error.not.found.user\");\r\n }\r\n } catch (BlogAccessException e) {\r\n apiResult.setStatus(ApiResult.ResultStatus.ERROR.name());\r\n }\r\n apiResult.setMessage(message);\r\n }", "title": "" }, { "docid": "dce0824a89f95da82b7aba6200d730ba", "score": "0.5040835", "text": "public Boolean isAction()\r\n {\r\n if (this.cardType == \"wild\"\r\n || this.cardType == \"draw two\"\r\n || this.cardType == \"wild draw four\"\r\n || this.cardType == \"skip\"\r\n || this.cardType == \"reverse\" ) \r\n return true;\r\n else return false;\r\n }", "title": "" }, { "docid": "bfe62aec8be38d21bd1f7eb8352001d3", "score": "0.50390166", "text": "public boolean expectSetRedirectionNumberIn() {\n try {\n synchronized(__actions) {\n java.util.Queue<Object> __action = __actions.poll();\n if(__action == null) {\n __actions.wait(TIMEOUT);\n __action = __actions.poll();\n }\n if(__action == null)\n return false;\n if(!(\"setRedirectionNumberIn\".equals(__action.poll())))\n return false;\n return true;\n }\n } catch(InterruptedException e) {\n return false;\n }\n }", "title": "" }, { "docid": "f0b9073e3f2fb7ae590a390e7be5e931", "score": "0.5033673", "text": "public boolean hasFollowingTarget() {\n return this.route.getDestination() != null && this.target != null && this.distanceSquared(this.target) < this.getRange();\n }", "title": "" }, { "docid": "864c7bf2b1f1a9467d1a71b578c3e67e", "score": "0.502089", "text": "public int getFollowingType() {\n return instance.getFollowingType();\n }", "title": "" }, { "docid": "857fb2581f4d2ec42431863a721c951a", "score": "0.50017476", "text": "@Override\n public boolean executeAction(Action action) {\n if (action == null)\n return false;\n\n if(super.executeAction(action))\n return true;\n else if (this.username == null) {\n sendToClient(new Action(\"{type:friends,action:friend_not_added,message:'Not logged in'}\"));\n return false;\n }\n else if (action.getValueOf(\"type\") == null\n || action.getValueOf(\"action\") == null\n || !action.getValueOf(\"type\").equals(\"friends\"))\n return false;\n\n switch (action.getValueOf(\"action\")) {\n case \"add_friend\":\n if (action.getValueOf(\"username\") != null\n && action.getValueOf(\"username\").matches(usernameRegex)) {\n addFriend(action.getValueOf(\"username\"));\n } else {\n sendToClient(new Action(\"{type:friends,action:friend_not_added,message:'Invalid friend username'}\"));\n }\n break;\n case \"remove_friend\":\n if (action.getValueOf(\"username\") != null && action.getValueOf(\"username\").matches(usernameRegex)) {\n removeFriend(action.getValueOf(\"username\"));\n } else {\n sendToClient(new Action(\"{type:friends,action:friend_not_removed,message:'Invalid friend username'}\"));\n }\n break;\n case \"show_friends\":\n ArrayList<String> friends = getFriends();\n sendFriends(friends);\n break;\n default:\n sendToClient(new Action(\"{type:friends,action:not_recognized}\"));\n }\n return true;\n }", "title": "" }, { "docid": "161be533295625c928631a12c1232da5", "score": "0.49908975", "text": "private String createFollowUnfollowBlogSuccessMessage(HttpServletRequest request, Long blogId,\r\n boolean isFollow) {\r\n // TODO there should be some caching\r\n Blog blog;\r\n try {\r\n blog = ServiceLocator.instance().getService(BlogManagement.class)\r\n .getBlogById(blogId, false);\r\n } catch (BlogNotFoundException e) {\r\n throw BlogManagementHelper.convertException(e);\r\n } catch (BlogAccessException e) {\r\n throw BlogManagementHelper.convertException(e);\r\n }\r\n String title = blog.getTitle();\r\n String messageKey = isFollow ? \"follow.follow.blog.success\"\r\n : \"follow.unfollow.blog.success\";\r\n return MessageHelper.getText(request, messageKey, new String[] { title });\r\n }", "title": "" }, { "docid": "a9a1b18972915c5465f6b4536458a71a", "score": "0.49781343", "text": "public boolean isAgreeToExecute(Request request) {\n return request.getFoodEnum().equals(this.specialization);\n }", "title": "" }, { "docid": "b4b4e23cf7df0ae9ac02ba39ab1584c7", "score": "0.49737364", "text": "public String getFollowUId() {\n return followUId;\n }", "title": "" }, { "docid": "92cc372666842426120b11d66e3c62ab", "score": "0.49707857", "text": "boolean hasAction();", "title": "" }, { "docid": "92cc372666842426120b11d66e3c62ab", "score": "0.49707857", "text": "boolean hasAction();", "title": "" }, { "docid": "a1bf835289e97b57d5b1e17bb4098db2", "score": "0.4962046", "text": "@Override\n public void onClick(View v){\n //todo implement ability to show send request button or following text depending on if user is already following\n if(FollowController.sendPendingRequest(username, searchUsername, context)){\n // if it returns true....\n\n AchievementManager.initManager(context);\n achievements = AchievementController.getAchievements();\n achievements.followCount += 1;\n AchievementController.checkForMoodAchievements(context);\n AchievementController.saveAchievements();\n\n // change button displayed\n //todo need to implement check for what button to display on this screen\n viewHolder.requestButton.setText(\"REQUEST SENT\");\n viewHolder.requestButton.setEnabled(false);\n return;\n }\n else{\n // display message to warn user that they are not connected to the internet\n Toast.makeText(context, \"Please check your internet connection\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n }", "title": "" }, { "docid": "17fabc216abe99569f109f0a705bfe7a", "score": "0.49538773", "text": "public boolean getFollowRedirects() {\n return this.followRedirects;\n }", "title": "" }, { "docid": "8044ec1524ce60a7983c0866d682d6b1", "score": "0.4953326", "text": "private void doUnfollow(ApiResult apiResult, HttpServletRequest request, Long blogId,\r\n Long noteId, Long discussionId, Long tagId, Long userId) {\r\n // only handle first encountered\r\n String message = null;\r\n if (blogId != -1) {\r\n getFollowManagement().unfollowBlog(blogId);\r\n message = createFollowUnfollowBlogSuccessMessage(request, blogId, false);\r\n } else if (noteId != -1) {\r\n getFollowManagement().unfollowDiscussionByNoteId(noteId);\r\n message = MessageHelper.getText(request, \"follow.unfollow.discussion.success\");\r\n } else if (discussionId != -1) {\r\n getFollowManagement().unfollowDiscussion(discussionId);\r\n message = MessageHelper.getText(request, \"follow.unfollow.discussion.success\");\r\n } else if (tagId != -1) {\r\n getFollowManagement().unfollowTag(tagId);\r\n message = MessageHelper.getText(request, \"follow.unfollow.tag.success\",\r\n new String[] { ServiceLocator.instance().getService(TagManagement.class)\r\n .findTag(tagId).getDefaultName() });\r\n } else {\r\n getFollowManagement().unfollowUser(userId);\r\n message = createFollowUnfollowUserSuccessMessage(request, userId, false);\r\n }\r\n apiResult.setMessage(message);\r\n }", "title": "" }, { "docid": "e0c134d5b49757ec4389aeedc8dada1d", "score": "0.49404335", "text": "public Boolean getFollowRedirects() {\r\n return this.followRedirects;\r\n }", "title": "" }, { "docid": "9bbae1b8395c892a609e0cfd088f706f", "score": "0.49391845", "text": "@Override\n\t\t\tpublic boolean apply(EntityTameDragonRed input) {\n\t\t\t\treturn (input.getBond() >= BOND_LEVEL_FOLLOW);\n\t\t\t}", "title": "" }, { "docid": "c32cce2ee402864c032c7042be11752e", "score": "0.49188772", "text": "private void initialPostCheck(@SuppressLint(\"UseSwitchCompatOrMaterialCode\") Switch like,\n @SuppressLint(\"UseSwitchCompatOrMaterialCode\") Switch follow,\n String creatorId) {\n creatorIdStr = creatorId;\n\n if (currentUser != null) {\n if (creatorIdStr.equals(String.valueOf(currentUser.getId()))) {\n\n like.setChecked(true);\n follow.setChecked(true);\n like.setEnabled(false);\n follow.setEnabled(false);\n }\n if (currentUser.isLikedPost(clicked)) {\n like.setChecked(true);\n }\n if (currentUser.isFollowed(creatorId)) {\n follow.setChecked(true);\n }\n } else {\n like.setEnabled(false);\n follow.setEnabled(false);\n commentField.setEnabled(false);\n }\n }", "title": "" }, { "docid": "bce148740ff235bc1e4bda6e48a6f6eb", "score": "0.4910643", "text": "public boolean hasLogoutRequest() {\n return bodyCase_ == 4;\n }", "title": "" }, { "docid": "d9e797420342e5987001723c96596632", "score": "0.49091357", "text": "@Override\n\t\t\tpublic boolean isRetweet() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "16eb8f9a9557edb080b6a710327bda93", "score": "0.49063504", "text": "private void setFollowingType(int value) {\n \n followingType_ = value;\n }", "title": "" }, { "docid": "cc533e00b0de4236445652b3c8621645", "score": "0.4899953", "text": "private void unFollow(HttpServletRequest request, HttpServletResponse response) {\n\t\t\ttry {\n\t\t\t\tString idServicePackage = request.getParameter(\"id1\");\n\t\t\t\tHttpSession session = request.getSession();\n\t\t\t\tint userId = (Integer) session.getAttribute(\"id\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfls.UnfollowServicePackage(idServicePackage, String.valueOf(userId));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" get idservicepackage=\"+idServicePackage);\n\t\t\t\t//System.out.println(\" get idUser=\"+idUser);\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "9579ba739627df9b802547db06d6569a", "score": "0.48945072", "text": "@Override\n\tpublic boolean isRetweet() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "90c592428320e0d6039c0e47a1a9ee1b", "score": "0.48832467", "text": "public String getDoesntFollowRulesMessage() {\n\t\treturn DOESNT_FOLLOW_RULES;\n\t}", "title": "" }, { "docid": "0ec057ceae5f073cb6aca61dda6f635d", "score": "0.48777965", "text": "public boolean expectSetRedirectionNumberOut() {\n try {\n synchronized(__actions) {\n java.util.Queue<Object> __action = __actions.poll();\n if(__action == null) {\n __actions.wait(TIMEOUT);\n __action = __actions.poll();\n }\n if(__action == null)\n return false;\n if(!(\"setRedirectionNumberOut\".equals(__action.poll())))\n return false;\n return true;\n }\n } catch(InterruptedException e) {\n return false;\n }\n }", "title": "" }, { "docid": "d018e66574eb395238222f8b0ef24a70", "score": "0.48739168", "text": "private static void m82181c(Context context, Aweme aweme, FollowStatus followStatus) {\n m82199d(context, \"follow_cancel\", aweme, m82274s(context, aweme, \"raw ad homepage follow cancel\"));\n }", "title": "" }, { "docid": "2f2fc280ce44a8077882ba4ed66033bf", "score": "0.48612195", "text": "public boolean isFulfilling() {\r\n\t\treturn this == FULFILLING || this == EATING || this == RESTING\r\n\t\t\t\t|| this == TALKING || this == PLAYING || this == FUCKING\r\n\t\t\t\t|| this == FIGHTING || this == WORKING;\r\n\t}", "title": "" }, { "docid": "b23dd2856980607bff7ff58a2e0f049b", "score": "0.48596686", "text": "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Step1ActionFollowed)) {\n return false;\n }\n Step1ActionFollowed other = (Step1ActionFollowed) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "099d6167a11bf46e7763cb38588cd8a9", "score": "0.48579514", "text": "public boolean hasLogoutRequest() {\n return bodyCase_ == 4;\n }", "title": "" }, { "docid": "ad2bc09991bd8b952ebd24186d3c4533", "score": "0.48516244", "text": "boolean hasHttpMethod();", "title": "" }, { "docid": "28f78afaf4432d529f4079f793bd2dd1", "score": "0.48488495", "text": "public boolean isRequestedByUser() {\n return requestedByUser;\n }", "title": "" }, { "docid": "6e264b3cafce191b62fa62e4eeacf95c", "score": "0.48463884", "text": "protected boolean checkNeedsToUpdate() {\n if (orders == null) {\n return true;\n }\n\n if (ai.isLeader())\n if (checkArrived()) {\n return true;\n }\n if (!ai.isLeader())\n if (isFollowOrAvoid() == isNearby()) {\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "a4f114d86de2aea970ab31ddc539811f", "score": "0.4846159", "text": "public boolean isUpstream() {\r\n return \"true\".equals(getAttribute(\"upstream\"));\r\n }", "title": "" }, { "docid": "97d60d5d99145ec81843281e5d857074", "score": "0.4843652", "text": "public interface FollowService {\n /**\n * Returns the users that the user specified in the request is following. Uses information in\n * the request object to limit the number of followees returned and to return the next set of\n * followees after any that were returned in a previous request.\n *\n * @param request contains the data required to fulfill the request.\n * @return the followees.\n */\n FollowingResponse getFollowing(FollowingRequest request);\n\n FollowersResponse getFollowers(FollowersRequest request);\n\n FollowResponse doFollow(FollowRequest request);\n\n IsFollowingResponse isFollowing(IsFollowingRequest request);\n}", "title": "" }, { "docid": "e6f4d3ebe82e91b797abcb9d30af5042", "score": "0.48398337", "text": "@Test\n\tpublic void testGetFollowedBy_1() throws Exception {\n\t\tCounts fixture = new Counts();\n\t\tfixture.setFollows(1);\n\t\tfixture.setMedia(1);\n\t\tfixture.setFollowedBy(1);\n\n\t\tint result = fixture.getFollowedBy();\n\n\t\t// add additional test code here\n\t\tassertEquals(1, result);\n\t}", "title": "" }, { "docid": "5cfabed51db4e5f5cb1410465cd0f5a5", "score": "0.4838583", "text": "private boolean isInRequest()\n {\n return m_inLogRequest.get() != null;\n }", "title": "" }, { "docid": "1f35b4fa1c529ece4524303999ab189c", "score": "0.48362744", "text": "@RequestMapping(method= RequestMethod.POST, value = \"/follow\")\n public ResponseEntity<String> follow(@RequestBody String jsonString) {\n JSONObject data = new JSONObject(jsonString);\n\n String[] followFields = ControllerHelper.getFollowFields(data);\n Boolean followSuccessful;\n if (!followFields[0].equals((followFields[1]))) {\n followSuccessful = UserDatabaseLogic.followPeople(followFields[0], followFields[1]);\n } else {\n followSuccessful = false;\n }\n return (followSuccessful) ? new ResponseEntity<String>(HttpStatus.OK) : new ResponseEntity<String>(HttpStatus.BAD_REQUEST);\n }", "title": "" }, { "docid": "ecc806cd0f36a851da91b8b8ddce92a3", "score": "0.48247167", "text": "public void setFollowRedirects(boolean followRedirects) {\n this.followRedirects = followRedirects;\n }", "title": "" } ]
764a584b5fe9739ff58222f73ebb3d3f
Creates new form PenerimaanBarang
[ { "docid": "057561056618f49d06d0431353153730", "score": "0.0", "text": "public FrmMutasiStok() {\n initComponents();\n table.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).\n put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),\n \"selectNextColumnCell\");\n table.putClientProperty(\"terminateEditOnFocusLost\", Boolean.TRUE);\n jXDatePicker1.setFormats(MainForm.sDateFormat);\n }", "title": "" } ]
[ { "docid": "8a988b9b17d53507aaacec1f6c72ef52", "score": "0.73015267", "text": "public void insert(){\n Barang B = new Barang();\n B.setKodebarang(form.getTxtkdbarang().getText());\n B.setNamabarang(form.getTxtnmbarang().getText());\n B.setSatuan(form.getCmbsatuan().getSelectedItem().toString());\n B.setHarga(Integer.parseInt(form.getTxtharga().getText()));\n B.setStok(Integer.parseInt(form.getTxtstok().getText()));\n B.setKodekategori(Integer.parseInt(form.getCmbkategori().getSelectedItem().toString()));\n model.insert(B);\n }", "title": "" }, { "docid": "514e2b60dbcbb63425423bd9ae9fddfa", "score": "0.6708459", "text": "public Controller_Barang(MBarang form){\n this.form = form;\n model = new DAO_Barang();\n list = model.getAll();\n header = new String[]{\"KODE BARANG\", \"NAMA BARANG\", \"SATUAN\", \"HARGA\", \"STOK\",\"KODE KATEGORI\", \"NAMA KATEGORI\"};\n \n form.getTblbarang().setShowGrid(true);\n form.getTblbarang().setShowVerticalLines(true);\n form.getTblbarang().setGridColor(Color.blue); \n }", "title": "" }, { "docid": "67639577c01e0a66e7bfd24e15931e38", "score": "0.6567095", "text": "public void newPaquete() {\n\t\tcleanForm();\n\t\tthis.action = Action.NEW;\n\t\tthis.stateNewEdit();\n\t\tthis.addMessage(\"Hice click en Nuevo\");\n\t}", "title": "" }, { "docid": "c43adf6204ebfae909e3de8a20cdf12a", "score": "0.65502053", "text": "public FormPendaftaran() {\n initComponents();\n cbt = new ControllerPendaftaran(this);\n \n }", "title": "" }, { "docid": "536a86d5383ef9547695e24a7637224b", "score": "0.65139014", "text": "public FormAbsensi() {\n initComponents();\n Baru();\n }", "title": "" }, { "docid": "83862b2171c2d6aab4e43831b34af582", "score": "0.64853066", "text": "public FKnjiga() {\n initComponents();\n \n prepareForm();\n }", "title": "" }, { "docid": "5baa4f26ee8ba84d9d79e14126f2a7e8", "score": "0.647057", "text": "public CrearHojaDeTrabajo() {\n initComponents();\n }", "title": "" }, { "docid": "75ac6e184f6b4f9f4606191852443093", "score": "0.6437541", "text": "public FormTransaksiPembayaranHutang() {\n try {\n initComponents();\n this.setLocationRelativeTo(null);\n// setExtendedState(this.getExtendedState() | JFrame.MAXIMIZED_BOTH);\n\n update();\n isiList();\n\n sinkronGambar();\n GregorianCalendar gc = new GregorianCalendar();\n date_tanggal.setDate(gc.getTime());\n\n combo_barang.setEnabled(false);\n label_tanggal.setText(Tanggal.getTanggal());\n defaultnya();\n date_tanggal.setEnabled(false);\n\n } catch (SQLException ex) {\n Logger.getLogger(FormTransaksiPembayaranHutang.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "fe7c4e5b6b50e1dfbe9d8cc3acc3d297", "score": "0.6406411", "text": "public form_pembelian_pulsa() {\n initComponents();\n kosong();\n tampilkan_data();\n }", "title": "" }, { "docid": "8248994500743b6e4bf570a5daa96e70", "score": "0.63812804", "text": "public FormPerkiraan() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n this.setBorder(null);\n model=new DefaultTableModel(){\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n };\n model.addColumn(\"Kode Perkiraan\");\n model.addColumn(\"Nama Perkiraan\");\n model.addColumn(\"Jenis Perkiraan\");\n tablePerkiraan.getTableHeader().setFont(new Font(\"Tahoma Plain\", Font.BOLD, 11));\n tidakAktif();\n panjangKarakter();\n }", "title": "" }, { "docid": "04c42ba8558022588745f343ae57018e", "score": "0.6376493", "text": "public TambahPerusahaan() {\n initComponents();\n }", "title": "" }, { "docid": "05c0289292e37364f52f87067140b426", "score": "0.63278884", "text": "@Override\n public void gunakanBarang(Barang barangPilih) {\n super.gunakanBarang(barangPilih); //panggil parent\n isTerkunci = false;\n narasi = narasiTerbuka;\n\n //karena kunci sudah terbuka ada pilihan baru keluar dari kamar\n\n Adegan KeluarKoridor = new KeluarKoridor();\n KeluarKoridor.narasi = \"BYE\";\n Pilihan pilihanMenujuKoridor1 = new PilihanGantiAdegan(KeluarKoridor,\"Keluar koridor\");\n tambahPilihan(pilihanMenujuKoridor1);\n }", "title": "" }, { "docid": "be928e7ed8c5c7e257fbcfc18d6fc6f9", "score": "0.6322058", "text": "private void jmniBarangActionPerformed(java.awt.event.ActionEvent evt) {\n if (frmbarang == null) { \n frmbarang = new FrmBarang(); \n } \n jdesktoppane.setVisible(true);\n showForm(frmbarang);\n Aktif();\n }", "title": "" }, { "docid": "a048932323caa48aadd49a53b80a9d9e", "score": "0.63074946", "text": "public persoBajas() {\n initComponents();\n //Llamada a método para mostrar trabla \n mostrartabla();\n }", "title": "" }, { "docid": "34168dc256c1a613da346954a43b1b26", "score": "0.63041985", "text": "public CodigoGuiaContenedorForm createGuiaContenedorForm();", "title": "" }, { "docid": "ef5c2907c1dd948e5530e000983b2cb2", "score": "0.6301314", "text": "public void newEnvio() {\n\t\tcleanForm();\n\t\tthis.action = Action.NEW;\n\t\tthis.stateNewEdit();\n\t\tthis.addMessage(\"Hice click en Nuevo\");\n\t}", "title": "" }, { "docid": "887f03d710a3d06ce37316658c5e57ca", "score": "0.6223908", "text": "@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 lihatButton = new javax.swing.JButton();\n kodeBarangLabel = new javax.swing.JLabel();\n kodeBarangTextField = new javax.swing.JTextField();\n namaBarangLabel = new javax.swing.JLabel();\n namaBarangTextField = new javax.swing.JTextField();\n satuanBarangLabel = new javax.swing.JLabel();\n hargaBarangLabel = new javax.swing.JLabel();\n stokbarangLabel = new javax.swing.JLabel();\n stokSpinner = new javax.swing.JSpinner();\n hargaBarangSpinner = new javax.swing.JSpinner();\n satuanComboBox = new javax.swing.JComboBox<>();\n jPanel2 = new javax.swing.JPanel();\n simpanButton = new javax.swing.JButton();\n hapusButton = new javax.swing.JButton();\n tutupButton = new javax.swing.JButton();\n\n setClosable(true);\n setTitle(\"Form Data Barang\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Data Barang\"));\n\n lihatButton.setLabel(\"Lihat\");\n lihatButton.setNextFocusableComponent(kodeBarangTextField);\n lihatButton.setPreferredSize(new java.awt.Dimension(73, 23));\n lihatButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n lihatButtonActionPerformed(evt);\n }\n });\n\n kodeBarangLabel.setLabelFor(kodeBarangTextField);\n kodeBarangLabel.setText(\"Kode barang :\");\n\n kodeBarangTextField.setNextFocusableComponent(namaBarangTextField);\n\n namaBarangLabel.setLabelFor(namaBarangTextField);\n namaBarangLabel.setText(\"Nama barang :\");\n\n namaBarangTextField.setNextFocusableComponent(hargaBarangSpinner);\n\n satuanBarangLabel.setLabelFor(satuanComboBox);\n satuanBarangLabel.setText(\"Satuan :\");\n\n hargaBarangLabel.setLabelFor(hargaBarangSpinner);\n hargaBarangLabel.setText(\"Harga Rp:\");\n\n stokbarangLabel.setLabelFor(stokSpinner);\n stokbarangLabel.setText(\"Stok:\");\n\n hargaBarangSpinner.setModel(new javax.swing.SpinnerNumberModel(0L, 0L, null, 1L));\n hargaBarangSpinner.setNextFocusableComponent(stokSpinner);\n\n satuanComboBox.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\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 .addGap(26, 26, 26)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(stokbarangLabel)\n .addComponent(hargaBarangLabel)\n .addComponent(kodeBarangLabel)\n .addComponent(namaBarangLabel)\n .addComponent(satuanBarangLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(kodeBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lihatButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(namaBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stokSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(hargaBarangSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(satuanComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(kodeBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lihatButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(kodeBarangLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(namaBarangLabel)\n .addComponent(namaBarangTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(hargaBarangSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(hargaBarangLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(stokSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(stokbarangLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(satuanBarangLabel)\n .addComponent(satuanComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(14, Short.MAX_VALUE))\n );\n\n simpanButton.setText(\"Simpan\");\n simpanButton.setMaximumSize(new java.awt.Dimension(80, 23));\n simpanButton.setMinimumSize(new java.awt.Dimension(80, 23));\n simpanButton.setNextFocusableComponent(hapusButton);\n simpanButton.setPreferredSize(new java.awt.Dimension(80, 23));\n simpanButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n simpanButtonActionPerformed(evt);\n }\n });\n\n hapusButton.setText(\"Hapus\");\n hapusButton.setNextFocusableComponent(tutupButton);\n hapusButton.setPreferredSize(new java.awt.Dimension(80, 23));\n hapusButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n hapusButtonActionPerformed(evt);\n }\n });\n\n tutupButton.setText(\"Tutup\");\n tutupButton.setNextFocusableComponent(lihatButton);\n tutupButton.setPreferredSize(new java.awt.Dimension(80, 23));\n tutupButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tutupButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(simpanButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(50, 50, 50)\n .addComponent(hapusButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(tutupButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(33, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(simpanButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(hapusButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tutupButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(24, 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.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, 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 .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0))\n );\n\n pack();\n }", "title": "" }, { "docid": "78b1ee0499b6d56383e483cfd676283f", "score": "0.6183932", "text": "public BodegaManagedBean() {\n try {\n crearLabelBoton = \"Create\";\n updateLabelBoton = \"Update\";\n deleteLabelBoton = \"Delete\";\n readLabelBoton = \"Read\";\n bodegas = new ArrayList<BodegaEntity>();\n System.out.println(\"BodegaBean() \");\n loadLista();\n bodegaPojo = new BodegaPojo();\n } catch (Exception e) {\n Logger.getLogger(BodegaManagedBean.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "title": "" }, { "docid": "edceb420d53baf1661d60148baed1c9a", "score": "0.61680096", "text": "public BancoForm() {\n initComponents();\n }", "title": "" }, { "docid": "5fe497bb575aff1fc0c976d87be2dfc8", "score": "0.61554885", "text": "public Form_Pelanggan() {\n initComponents();\n }", "title": "" }, { "docid": "7f42eb80b65cc1ca1427e5dd2389eb1e", "score": "0.61539227", "text": "public FormLaporan() {\n initComponents();\n }", "title": "" }, { "docid": "932716ef71f42dd91781f68b317b70b0", "score": "0.6146614", "text": "public FormDataBarang() {\n initComponents();\n isiSatuanComboBox();\n setMnemoniccc();\n }", "title": "" }, { "docid": "aa529e1a9be387aa430b000897d307ca", "score": "0.61124784", "text": "@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 cboCategoria = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n txtProducto = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtCliente = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n txtPrecio = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n txtCantidad = new javax.swing.JTextField();\n btnProcesar = new javax.swing.JButton();\n\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"REGISTRAR VENTA\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Categoría:\");\n\n cboCategoria.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n cboCategoria.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setText(\"Producto:\");\n\n txtProducto.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Cliente:\");\n\n txtCliente.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Precio:\");\n\n txtPrecio.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"Cantidad:\");\n\n txtCantidad.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n btnProcesar.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n btnProcesar.setText(\"Procesar\");\n btnProcesar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnProcesarActionPerformed(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 .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cboCategoria, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtProducto))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCliente))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtPrecio))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCantidad)))\n .addContainerGap(40, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnProcesar, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(92, 92, 92))\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, false)\n .addComponent(cboCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(txtProducto))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(txtCliente))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(txtPrecio))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE)\n .addComponent(txtCantidad))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnProcesar, javax.swing.GroupLayout.DEFAULT_SIZE, 54, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "820f47dfc6c9562c7de8be4a7b67e2dc", "score": "0.6110644", "text": "public beriPrincian() {\n initComponents();\n }", "title": "" }, { "docid": "97625ea528efc4ae8af585bddc6c424f", "score": "0.61055434", "text": "public void update(){\n Barang B = new Barang();\n B.setNamabarang(form.getTxtnmbarang().getText());\n B.setSatuan(form.getCmbsatuan().getSelectedItem().toString());\n B.setHarga(Integer.parseInt(form.getTxtharga().getText()));\n B.setStok(Integer.parseInt(form.getTxtstok().getText()));\n //hilangkan .tostrnig() setelah selected item\n B.setKodekategori(Integer.parseInt(form.getCmbkategori().getSelectedItem().toString()));\n B.setKodebarang(form.getTxtkdbarang().getText());\n model.update(B);\n }", "title": "" }, { "docid": "7fe2a0a3f9ff7943fec4dbbcbfedb454", "score": "0.61017346", "text": "public Bajas() {\n initComponents();\n }", "title": "" }, { "docid": "c45405662ce8c9277dc0b23c045bf9ea", "score": "0.607053", "text": "public GUIAddAntecedente() {\n initComponents();\n this.controller = ControllerAntecedentesPenales.getInstance();\n \n }", "title": "" }, { "docid": "f2a0f624976b8caf588ed16163fb11bb", "score": "0.60682034", "text": "public Pegawai() {\n initComponents();\n tampilData();\n kosongkanForm();\n }", "title": "" }, { "docid": "06b0c01eaeb59ce9c4c5c28cfe145f39", "score": "0.6063565", "text": "public createsaving() {\n initComponents();\n\n }", "title": "" }, { "docid": "b4f71f2152d04c921bb2e6a6cbd59b18", "score": "0.60622954", "text": "public TipoSalaForm() {\n initComponents();\n }", "title": "" }, { "docid": "4074f5a88caf5218f97198b346c8fe31", "score": "0.6062236", "text": "public form_laporan() {\n initComponents();\n tampilkan();\n }", "title": "" }, { "docid": "a67331cdba3441f1ac45a15f68e2ca7b", "score": "0.6059564", "text": "public frmReservacion() {\n initComponents();\n this.cbVuelosdis.setModel(q.Obt_Vuelo());\n InicializaMatriz();\n }", "title": "" }, { "docid": "2082c6af04bedeae01512ecf2a5f6bfa", "score": "0.604845", "text": "public FrmBus() {\n initComponents();\n tampilkanData();\n tampilkanCmbIdsupir();\n kosongkanForm();\n }", "title": "" }, { "docid": "de497f186ceceef4337f72a452d57426", "score": "0.60397714", "text": "@RequestMapping(value = \"/pasien/tambah\", method = RequestMethod.GET)\r\n public String addPasienFormPage(Model model){\r\n PasienModel newPasien = new PasienModel();\r\n newPasien.setListAsuransi(new ArrayList<AsuransiModel>());\r\n newPasien.getListAsuransi().add(new AsuransiModel());\r\n List<AsuransiModel> listAsuransi = asuransiService.getAsuransiList();\r\n newPasien.setEmergencyContact(new EmergencyContactModel());\r\n model.addAttribute(\"pasien\", newPasien);\r\n model.addAttribute(\"listAsuransi\", listAsuransi);\r\n return \"form-add-pasien\";\r\n\r\n }", "title": "" }, { "docid": "934252bf634fc9b2b51db46abc3d056e", "score": "0.6039488", "text": "public PantallaAdd() {\n initComponents();\n }", "title": "" }, { "docid": "56937af906a7c3f9401ddb147fb288e9", "score": "0.60277677", "text": "public FormProduto() {\n initComponents();\n }", "title": "" }, { "docid": "e4cbfb2008356703e1dd84d043eeac5c", "score": "0.6009127", "text": "public frm_adm_malla_modalidad() {\n }", "title": "" }, { "docid": "9c10b77df427215bb8ffca946ba1f5f5", "score": "0.59977585", "text": "public EkranskaFormaPrimerak() {\n initComponents();\n postaviImeForme();\n postaviModeleTabela();\n postaviToolTipove();\n }", "title": "" }, { "docid": "adabe4f08d5b96e585eaa1ab4daf2da6", "score": "0.59967095", "text": "public TelaCadastroBairro() {\n initComponents();\n }", "title": "" }, { "docid": "5e4e9a011c6addf4e8f79906332cb07f", "score": "0.5982378", "text": "public VAsignarPersonal() {\n initComponents();\n }", "title": "" }, { "docid": "c51263839b176b9f6723da11763d8cf3", "score": "0.59792507", "text": "private void configurarFormulario() {\n this.setTitle(\"VENDA\");\n this.setMaximizable(false);\n this.setIconifiable(false);\n this.setClosable(true);\n \n produtos = new ArrayList<>();\n produtos.add(\"Anel de vedação\");\n produtos.add(\"Bobina\");\n produtos.add(\"Filtro de ar\");\n produtos.add(\"Jogo de vela\");\n produtos.add(\"Rolamento\");\n produtos.add(\"outros\");\n \n carregarList();\n configurarCombo();\n }", "title": "" }, { "docid": "b6c80d3dea88b0ec591a38029bb9f9b2", "score": "0.59732527", "text": "public CrearE() {\n initComponents();\n }", "title": "" }, { "docid": "664aef7f33003837c8de6a5eab9ab63d", "score": "0.5972206", "text": "@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 jLabel5 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\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 jtfModelo = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n jtfID = new javax.swing.JTextField();\n btnBajaBuscar = new javax.swing.JButton();\n jcbMarca = new javax.swing.JComboBox<>();\n jcbTipo = new javax.swing.JComboBox<>();\n spnPrecio = new javax.swing.JSpinner();\n spnCantidad = new javax.swing.JSpinner();\n jLabel4 = new javax.swing.JLabel();\n btnRealizarBaja = new javax.swing.JButton();\n btnMenuAlta = new javax.swing.JButton();\n btnReset = new javax.swing.JButton();\n btnEditar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Bajas y Cambios\");\n\n jPanel1.setBackground(new java.awt.Color(255, 195, 0));\n\n jLabel5.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Realiza una Baja o Cambio al Sistema\");\n\n jPanel2.setBackground(new java.awt.Color(255, 87, 51));\n\n jLabel6.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"Marca\");\n\n jLabel7.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"Modelo\");\n\n jLabel8.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel8.setText(\"Tipo\");\n\n jLabel9.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"Precio\");\n\n jLabel10.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"Cantidad\");\n\n jtfModelo.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n\n jLabel11.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel11.setText(\"ID\");\n\n jtfID.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n\n btnBajaBuscar.setBackground(new java.awt.Color(199, 0, 57));\n btnBajaBuscar.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n btnBajaBuscar.setText(\"Buscar\");\n btnBajaBuscar.setBorder(null);\n btnBajaBuscar.setBorderPainted(false);\n btnBajaBuscar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnBajaBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBajaBuscarActionPerformed(evt);\n }\n });\n\n jcbMarca.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n jcbMarca.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Elige Una Opción\", \"Italika\", \"Suzuki\", \"Yamaha\", \"Honda\", \"Bajaj\", \"Ducati\", \"BMW\", \"Kawasaki\", \"Harley-Davidson\" }));\n\n jcbTipo.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n jcbTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Elige Una Opción\", \"Doble Proposito\", \"Deportiva\", \"Turing\", \"Scooter\", \"Naked\", \"Crucero\", \"Enduro\", \"Cafe Racer\" }));\n\n spnPrecio.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n\n spnCantidad.setFont(new java.awt.Font(\"Century Gothic\", 1, 11)); // NOI18N\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(spnCantidad))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jcbMarca, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(spnPrecio))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jtfID, javax.swing.GroupLayout.PREFERRED_SIZE, 350, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnBajaBuscar, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jtfModelo, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jcbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(32, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(32, 32, 32))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jtfID, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBajaBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jcbMarca, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jtfModelo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jcbTipo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(spnPrecio, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(spnCantidad, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 4, Short.MAX_VALUE))\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n\n jLabel4.setFont(new java.awt.Font(\"Century Gothic\", 3, 36)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"Albar's Moto Sport\");\n jLabel4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n\n btnRealizarBaja.setBackground(new java.awt.Color(204, 0, 0));\n btnRealizarBaja.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n btnRealizarBaja.setText(\"Eliminar\");\n btnRealizarBaja.setBorder(null);\n btnRealizarBaja.setBorderPainted(false);\n btnRealizarBaja.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnRealizarBaja.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRealizarBajaActionPerformed(evt);\n }\n });\n\n btnMenuAlta.setBackground(new java.awt.Color(199, 0, 57));\n btnMenuAlta.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n btnMenuAlta.setText(\"Menu\");\n btnMenuAlta.setBorder(null);\n btnMenuAlta.setBorderPainted(false);\n btnMenuAlta.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnMenuAlta.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnMenuAltaActionPerformed(evt);\n }\n });\n\n btnReset.setBackground(new java.awt.Color(144, 12, 63));\n btnReset.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n btnReset.setText(\"Limpiar\");\n btnReset.setBorder(null);\n btnReset.setBorderPainted(false);\n btnReset.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnReset.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnResetActionPerformed(evt);\n }\n });\n\n btnEditar.setBackground(new java.awt.Color(88, 24, 69));\n btnEditar.setFont(new java.awt.Font(\"Century Gothic\", 1, 18)); // NOI18N\n btnEditar.setForeground(new java.awt.Color(255, 255, 255));\n btnEditar.setText(\"Editar\");\n btnEditar.setBorder(null);\n btnEditar.setBorderPainted(false);\n btnEditar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnEditar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEditarActionPerformed(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 .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnMenuAlta, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnRealizarBaja, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnReset, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnRealizarBaja, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnMenuAlta, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnReset, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\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 }", "title": "" }, { "docid": "11277acb67ea0f5c0241e621018c30c8", "score": "0.5968318", "text": "public tabelBuku() {\n initComponents();\n //membuat tablemodel\n model = new DefaultTableModel();\n //menambah tablemodel ke tabel\n jTable1.setModel(model);\n \n model.addColumn(\"ID Buku\");\n model.addColumn(\"Judul\");\n model.addColumn(\"Pengarang\");\n model.addColumn(\"Penerbit\");\n model.addColumn(\"Kategori\");\n model.addColumn(\"Keterangan\");\n \n loadData();\n xxx();\n enaButtonSimpan();\n cbbKategori.setSelectedIndex(0);\n cbbPenerbit.setSelectedIndex(0);\n }", "title": "" }, { "docid": "d7809f082d289ff0e9edcc2e6cf949fb", "score": "0.59631044", "text": "public BarangView() {\n initComponents();\n tblSalesDetail.setAutoCreateColumnsFromModel(false);\n tblSalesDetail.getSelectionModel().addListSelectionListener(new BarangTableSelection());\n enableForm(false);\n btnDelete.setEnabled(false);\n btnAdd.setEnabled(true);\n btnCancel.setEnabled(false);\n btnEdit.setEnabled(false);\n btnSave.setEnabled(false);\n txtCari.setEnabled(false);\n refreshTable();\n TextComponentUtils.setNumericTextOnly(txtStock);\n }", "title": "" }, { "docid": "9c947f74ace12a638c6377197b0539ed", "score": "0.59495527", "text": "public formEquipoNuevo() {\n initComponents();\n }", "title": "" }, { "docid": "8312448b25437d81eba6a59095508f8a", "score": "0.5945666", "text": "public FormPenilaian() {\n initComponents();\n }", "title": "" }, { "docid": "c7d3d705f48eb0f4362aa062eedf2079", "score": "0.59385", "text": "private void submitBarang(Barang barang) {\n\n database.child(\"barang\").push().setValue(barang).addOnSuccessListener(\n this, new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n etKode.setText(\"\");\n etNama.setText(\"\");\n etSatuan.setText(\"\");\n etHargaBeli.setText(\"\");\n etHargaJual.setText(\"\");\n etStok.setText(\"\");\n etStokMin.setText(\"\");\n Snackbar.make(findViewById(R.id.bt_submit),\n \"Data berhasil ditambahkan\", Snackbar.LENGTH_LONG).show();\n }\n });\n }", "title": "" }, { "docid": "c1f060be3931278f7ea23f40d41fc3a2", "score": "0.5934561", "text": "@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 jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n harga_sewa = new javax.swing.JTextField();\n harga_terlambat = new javax.swing.JTextField();\n harga_btn_simpan = new javax.swing.JPanel();\n jLabel73 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n harga_rusak = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Tambah data VCD\");\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 0, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(51, 51, 51));\n jLabel1.setText(\"Tambah data harga\");\n\n jLabel2.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(96, 96, 96));\n jLabel2.setText(\"Pastikan data harga sudah benar\");\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI\", 0, 16)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(51, 51, 51));\n jLabel3.setText(\"Data harga\");\n\n jLabel4.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(93, 93, 93));\n jLabel4.setText(\"Sewa VCD ( Rp. )\");\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(93, 93, 93));\n jLabel5.setText(\"Denda keterlambatan ( Rp. )\");\n\n harga_sewa.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n harga_sewa.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(96, 96, 96), 2));\n\n harga_terlambat.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n harga_terlambat.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(96, 96, 96), 2));\n\n harga_btn_simpan.setBackground(new java.awt.Color(0, 120, 215));\n harga_btn_simpan.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n harga_btn_simpan.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n harga_btn_simpanMouseClicked(evt);\n }\n });\n\n jLabel73.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n jLabel73.setForeground(new java.awt.Color(255, 255, 255));\n jLabel73.setText(\"Simpan data\");\n\n javax.swing.GroupLayout harga_btn_simpanLayout = new javax.swing.GroupLayout(harga_btn_simpan);\n harga_btn_simpan.setLayout(harga_btn_simpanLayout);\n harga_btn_simpanLayout.setHorizontalGroup(\n harga_btn_simpanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(harga_btn_simpanLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel73)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n harga_btn_simpanLayout.setVerticalGroup(\n harga_btn_simpanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel73, javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)\n );\n\n jLabel6.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(93, 93, 93));\n jLabel6.setText(\"Denda kerusakan ( Rp. )\");\n\n harga_rusak.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n harga_rusak.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(96, 96, 96), 2));\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 .addGap(40, 40, 40)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(harga_terlambat)\n .addComponent(harga_sewa, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)\n .addComponent(harga_btn_simpan, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(harga_rusak)))\n .addComponent(jLabel3))\n .addGap(40, 40, 40))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {harga_sewa, harga_terlambat});\n\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jLabel1)\n .addGap(10, 10, 10)\n .addComponent(jLabel2)\n .addGap(20, 20, 20)\n .addComponent(jLabel3)\n .addGap(15, 15, 15)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel4)\n .addComponent(harga_sewa, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)\n .addComponent(jLabel5)\n .addComponent(harga_terlambat, 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.CENTER)\n .addComponent(jLabel6)\n .addComponent(harga_rusak, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(15, 15, 15)\n .addComponent(harga_btn_simpan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(40, 40, 40))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {harga_rusak, harga_sewa, harga_terlambat});\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 }", "title": "" }, { "docid": "f3d4e3470a57e4ca2b96b9ba468388c7", "score": "0.5913498", "text": "Form createForm();", "title": "" }, { "docid": "eb6fdcb9877eb724a703b4f39a57e35f", "score": "0.59128904", "text": "private void add() {\n try {\n rbMetode = new ButtonGroup();\n rbMetode.add(rbKredit);\n rbMetode.add(rbDebit);\n rbMetode.add(rbTunai);\n\n String potongan = tfPotongan.getText();\n Integer.parseInt(potongan);\n tfSubTotal.setText(String.valueOf((Long.parseLong(tfHarga.getText()) * Long.parseLong(spJumlah.getValue().toString())) - Integer.parseInt(tfPotongan.getText())));\n\n //Add to table\n dtmCart.addRow(new Object[]{\n noUrut,\n cbProduk.getSelectedItem(),\n tfHarga.getText(),\n spJumlah.getValue(),\n potongan,\n tfSubTotal.getText()\n });\n\n //Add to list for use in addToDb\n String selectedItem = trimId(cbProduk.getSelectedItem().toString());\n\n Detailpembelian dp = new Detailpembelian();\n dp.setIDProduk(daoStok.getStokById(Integer.parseInt(selectedItem)).get(0));\n dp.setHarga(daoStok.getStokById(Integer.parseInt(selectedItem)).get(0).getHarga());\n dp.setJumlah(Integer.parseInt(spJumlah.getValue().toString()));\n dp.setPotonganHarga(Integer.parseInt(potongan));\n listDetail.add(dp);\n noUrut++;\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Gagal add order!\");\n }\n }", "title": "" }, { "docid": "3508e4626667fc52f600bc50e475eab4", "score": "0.59009343", "text": "public EstudianteForm() {\n \n initComponents();\n }", "title": "" }, { "docid": "4e204ca173d2fd517f7a4e81d3c57696", "score": "0.5895508", "text": "public gerbanglogika() {\n initComponents();\n this.setTitle(\"Tabel Kebenaran Gerbang Logika\");\n this.setLocationRelativeTo(this);\n \n ButtonGroup bG= new ButtonGroup();\n bG.add(and);\n bG.add(or);\n bG.add(nota);\n bG.add(notb);\n bG.add(nand);\n bG.add(nor);\n bG.add(exor);\n bG.add(exnor);\n \n int inputA[][] ={{1},{0},{1},{0}};\n int inputB[][] ={{1},{1},{0},{0}};\n \n a11.setText(String.valueOf(inputA[0][0]));\n a12.setText(String.valueOf(inputA[1][0]));\n a13.setText(String.valueOf(inputA[2][0]));\n a14.setText(String.valueOf(inputA[3][0]));\n b11.setText(String.valueOf(inputB[0][0]));\n b12.setText(String.valueOf(inputB[1][0]));\n b13.setText(String.valueOf(inputB[2][0]));\n b14.setText(String.valueOf(inputB[3][0]));\n }", "title": "" }, { "docid": "8967212eaaa1ee711c9b225a6354d634", "score": "0.589241", "text": "public FormPedido() {\n initComponents();\n }", "title": "" }, { "docid": "35dac20d6dbec7ef04762f53a74f7b6d", "score": "0.5891759", "text": "public aplikasipertambahanangka() {\n initComponents();\n }", "title": "" }, { "docid": "4f8659fe246eafd085529cf5250d9a1c", "score": "0.58907723", "text": "@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 jPanel2 = new javax.swing.JPanel();\n btnTambah = new javax.swing.JButton();\n btnSimpan = new javax.swing.JButton();\n btnHapus = new javax.swing.JButton();\n txtKodePerkiraan = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n txtNamaPerkiraan = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n cmbJenis = new javax.swing.JComboBox<>();\n jLabel5 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jScrollPane1 = new javax.swing.JScrollPane();\n tablePerkiraan = new javax.swing.JTable();\n txtCari = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(85, 239, 196));\n\n jPanel1.setBackground(new java.awt.Color(0, 184, 148));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel1.setText(\"Kode Perkiaraan\");\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS));\n\n btnTambah.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n btnTambah.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Plus Math_20px.png\"))); // NOI18N\n btnTambah.setText(\"Tambah\");\n btnTambah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTambahActionPerformed(evt);\n }\n });\n jPanel2.add(btnTambah);\n\n btnSimpan.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n btnSimpan.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Check File_20px_5.png\"))); // NOI18N\n btnSimpan.setText(\"Simpan\");\n btnSimpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSimpanActionPerformed(evt);\n }\n });\n jPanel2.add(btnSimpan);\n\n btnHapus.setFont(new java.awt.Font(\"Segoe UI\", 0, 12)); // NOI18N\n btnHapus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/images/Trash_20px.png\"))); // NOI18N\n btnHapus.setText(\"Hapus\");\n btnHapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnHapusActionPerformed(evt);\n }\n });\n jPanel2.add(btnHapus);\n\n txtKodePerkiraan.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtKodePerkiraan.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n txtKodePerkiraanKeyTyped(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"Nama Perkiraan\");\n\n txtNamaPerkiraan.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n\n jLabel3.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel3.setText(\"Jenis Perkiraan\");\n\n cmbJenis.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n cmbJenis.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Aktiva\", \"Modal\", \"Beban\", \"Hutang\", \"Pendapatan\" }));\n\n jLabel5.setFont(new java.awt.Font(\"Segoe UI\", 0, 24)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"Form Data Perkiraan\");\n\n jSeparator1.setForeground(new java.awt.Color(255, 255, 255));\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 .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jSeparator1))\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtNamaPerkiraan, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtKodePerkiraan, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmbJenis, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(519, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtKodePerkiraan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNamaPerkiraan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cmbJenis, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 98, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n tablePerkiraan.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Kode Akun\", \"Nama Akun\", \"Jenis Akun\"\n }\n ));\n jScrollPane1.setViewportView(tablePerkiraan);\n\n txtCari.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n txtCari.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n txtCariKeyPressed(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(51, 51, 51));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel6.setText(\"Cari\");\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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 864, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, 210, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, 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(jLabel6)\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "fd2fbc2d7e55327b51d9beaccdcf63db", "score": "0.58849937", "text": "@FXML\r\n private void agregarBoveda(MouseEvent event) {\r\n try {\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/view/agregarBoveda.fxml\"));\r\n loader.load();\r\n AnchorPane root = loader.getRoot();\r\n AgregarBovedaController ventana = loader.getController();\r\n ventana.cargarObjetos(this, this.bovedas, this.owner, cliente);\r\n Scene scene = new Scene(root);\r\n Stage primaryStage = new Stage();\r\n primaryStage.setTitle(\"Agregar Boveda\");\r\n primaryStage.setScene(scene);\r\n primaryStage.initModality(Modality.APPLICATION_MODAL);\r\n primaryStage.show();\r\n } catch (IOException ex) {\r\n Logger.getLogger(MiPassword.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n btnEliminarBoveda.setDisable(true);\r\n btnEditarBoveda.setDisable(true);\r\n }", "title": "" }, { "docid": "86c63d2ff5a26d0d87b5b7e1888f4eef", "score": "0.588462", "text": "public Modal_Crear_Pvps() {\n initComponents();\n //////////establecemos formato botones aceptar y cancelar\n OperacionesForms.setbuttonsAceptarCancelar(jButton1, jButton2);\n radiobactualizarrespectoalCosto.setSelected(true);\n /*\n LISTAMOS tipos de USAURIOS\n */\n //////////validamos que los text se ingresen solo doubles y obtenga el foco\n OperacionesForms.valitarjtexfieldOnlyDouble(txt_cantidad_productos);\n OperacionesForms.valitarjtexfieldOnlyDouble(txt_utilidad_pvp);\n OperacionesForms.valitarjtexfieldOnlyDouble(txt_utilidad_costo);\n\n Tipo_UsuariosDao tud = new Tipo_UsuariosDao();\n listaTiposUsuarios = tud.listar();\n for (Tipo_Usuario obj : listaTiposUsuarios) {\n jComboBox1.addItem(obj.getTipo());\n }\n\n// UsuariosDao ud = new UsuariosDao();\n// listaUsuarios=ud.listar();\n// for (Usuarios obj : listaUsuarios) {\n// jComboBox1.addItem(obj.getNombre());\n// }\n }", "title": "" }, { "docid": "00816f9d0efc6368ebdff55bf129e714", "score": "0.58702594", "text": "@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 txtColumnas = new javax.swing.JTextField();\n txtFilas = new javax.swing.JTextField();\n lblCodSala = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Crear Sala\");\n setResizable(false);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel1.setText(\"Número Sala: \");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"Número Columnas: \");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"Número Filas: \");\n\n jButton1.setText(\"Crear\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(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 .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButton1)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtFilas, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblCodSala)\n .addComponent(txtColumnas, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)))))\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.BASELINE)\n .addComponent(jLabel1)\n .addComponent(lblCodSala))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtColumnas, 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(jLabel3)\n .addComponent(txtFilas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "3d4189149c776917d49d293d56b866b6", "score": "0.5868876", "text": "public PanelCrearCampanaTmp()\n { \t\n\n \tsetLayout(new GridLayout(2,2,5,5));\n \t\n \tetiquetaServicio = new JLabel( \"Nombre: \" );\n etiquetaServicio.setFont( etiquetaServicio.getFont( ).deriveFont( Font.PLAIN ) );\n add( etiquetaServicio );\n \n String[] servicios = {\"Consulta medico general\", \"Consulta medico especialista\", \"Urgencias\", \"Examen Diagnostico\", \"Terapia\", \"Hospitalizacion\", \"Procedimientos médico especializado\",\n \t\t\"Examen de Sangre\", \"Radiografia\", \"Consulta Odontologica\", \"Jornada de Vacunacion\"};\n \n txtTipo = new JComboBox<String>(servicios);\n add( txtTipo );\n \n etiquetaCapacidad = new JLabel( \"Capacidad: \" );\n etiquetaCapacidad.setFont( etiquetaCapacidad.getFont( ).deriveFont( Font.PLAIN ) );\n add( etiquetaCapacidad );\n\n txtCapacidad = new JTextField( 2 );\n add( txtCapacidad );\n \t\n setPreferredSize(new Dimension(200,60));\n\n }", "title": "" }, { "docid": "361c4b917bcb3c2c01816c05fa5379ed", "score": "0.5868428", "text": "public frmAsigPaciente() {\n initComponents();\n cargaComboPaciente();\n cargaComboEnf();\n btnListar.doClick();\n skin1();\n }", "title": "" }, { "docid": "75dd0624fe0c8d12faa1a41928986f50", "score": "0.58597875", "text": "public String criar() {\n\t\ttry{\n\n\t\t\tplantaBean = new PlantaBean();\n\n\t\t\treturn \"criar\";\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tString msg = \"Criacao nao realizada. Movito: \" + e.getMessage();\n\t\t\tFacesMessage message = new FacesMessage(msg);\n\t\t\tthis.getFacesContext().addMessage(\"formulario\", message);\n\t\t\treturn \"falha\";\n\t\t}\n\t}", "title": "" }, { "docid": "9e92b3071724db270fbb901eb2eba5e0", "score": "0.5848386", "text": "public abstract Balise creerBalise(Contenu contenu);", "title": "" }, { "docid": "3856b9a4a790a131ec18ffa4580ca455", "score": "0.5847843", "text": "private static void createAndShowGUI() {\n //Create and set up the window.\n \tJButton Banterior,boton1,boton2,boton3,boton4,boton5,Bsiguiente;\n \tBanterior=new JButton(\"Anterior\");\n \tboton1=new JButton(\" > \");\n \tboton2=new JButton(\" >> \");\n \tboton3=new JButton(\" < \");\n \tboton4=new JButton(\" << \");\n \tboton5=new JButton(\"Crear coalición\");\n \tBsiguiente=new JButton(\"Siguiente\");\n \tPanelConBotones ventana=new PanelConBotones(Banterior,boton1,boton2,boton3,boton4,boton5,Bsiguiente);\n \t//contd.F.pack();\n \t//ventana.JF.setPreferredSize(new Dimension(400, 300));\n \t\n \tJFrame frame=new JFrame(\"marco\");\n \tframe.add(ventana.JP);\n \tframe.setLocationRelativeTo(null);\n \tframe.setSize(800, 200);\n \tframe.setVisible(true);\n }", "title": "" }, { "docid": "9863e107937dbd6854ca333cfcf57704", "score": "0.58401054", "text": "public AgregarTarifa() {\n //FormInicio = inicio;\n initComponents();\n }", "title": "" }, { "docid": "8b361089b96d0c8479fd514b25c16a7e", "score": "0.5838374", "text": "@RequestMapping(value=\"/form\")//el metodo get se encarga de mostrar el formulario al usuario\n\tpublic String crear(Map<String, Object> model) {\n\t\tEscuela escuela = new Escuela();//se crea instancia de nuevo objeto escuela\n\t\tmodel.put(\"escuela\", escuela);//se pasa el objeto cliente a la vista\n\t\tmodel.put(\"titulo\", \"Formulario de Colegio\");\n\t\treturn \"form\";\n\t\t//la primera fase es mostrar el formulario al usuario\n\t\t//la segunda fase es cuando el suaurio envia en el submit los datos\n\t\t//del formulario, se hace un metodo aca en el controlador que procesa los datos\n\t}", "title": "" }, { "docid": "fe3dbb62ad9bc5432b8505b35427971e", "score": "0.58260816", "text": "public bajasEmpleados() {\n initComponents();\n }", "title": "" }, { "docid": "9cb6a956154e0f0bfb9b44c34dfcf1b8", "score": "0.582475", "text": "public void onClick$btnGuardar(){\n\t\tParroquia parro= new Parroquia() ;\r\n\t\tparroquias = servicioParroquia.listar();\r\n\t\tfor (int i = 0; i < parroquias.size(); i++) {\r\n\t\t\tif (parroquias\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getCodigoParroquia()\r\n\t\t\t\t\t.equals(cmbParroquia.getSelectedItem().getValue().toString())) {\r\n\t\t\t\tparro=parroquias.get(i);\r\n\t\t\t} \r\n\t\t}\r\n\t\r\n\t\t\r\n\tinstitucion.setParroquia(parro);\r\n\t///institucion.\r\n\t//institucion.setCodigoInstitucion(txtCodigo.getValue());\r\n//\tinstitucion.setDireccion(txtDireccion.getValue());\r\n\tinstitucion.setEstatus('A');\r\n\tservicioInstitucion.agregar(institucion);\r\n\tinstitucion= new Institucion();\r\n\tbinder.loadAll();\r\n\t}", "title": "" }, { "docid": "fc297b0bf446158fd383cf61ea7a799b", "score": "0.5819219", "text": "public FormAlunoCadastro() {\n initComponents();\n }", "title": "" }, { "docid": "1246792e7f664b73ca2f8aebc6ace271", "score": "0.5818139", "text": "@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 jLabel9 = new javax.swing.JLabel();\n jPanel7 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n buttAdicionar = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n txtNome = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n cmbTipo = new javax.swing.JComboBox();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n txtNif = new javax.swing.JTextField();\n txtBi = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setModal(true);\n setResizable(false);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/Resources/logo.png.jpg\"))); // NOI18N\n\n jPanel7.setBackground(new java.awt.Color(84, 184, 72));\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 223, Short.MAX_VALUE)\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n\n jLabel1.setText(\"Inserir Doador\");\n\n buttAdicionar.setFont(new java.awt.Font(\"Dialog\", 0, 12)); // NOI18N\n buttAdicionar.setText(\"Adicionar\");\n buttAdicionar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttAdicionarActionPerformed(evt);\n }\n });\n\n jLabel8.setForeground(new java.awt.Color(102, 102, 102));\n jLabel8.setText(\"Nome:\");\n\n txtNome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomeActionPerformed(evt);\n }\n });\n\n jLabel11.setForeground(new java.awt.Color(102, 102, 102));\n jLabel11.setText(\"Tipo:\");\n\n cmbTipo.setFont(new java.awt.Font(\"Dialog\", 0, 10)); // NOI18N\n cmbTipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Individual\", \"Instituição\" }));\n cmbTipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbTipoActionPerformed(evt);\n }\n });\n\n jLabel12.setForeground(new java.awt.Color(102, 102, 102));\n jLabel12.setText(\"BI:\");\n\n jLabel13.setForeground(new java.awt.Color(102, 102, 102));\n jLabel13.setText(\"NIF:\");\n\n txtNif.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNifActionPerformed(evt);\n }\n });\n\n txtBi.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBiActionPerformed(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 .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(buttAdicionar))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel8))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11)\n .addComponent(cmbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNif, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13)\n .addComponent(txtBi, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addComponent(jLabel1)\n .addGap(10, 10, 10)\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(cmbTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtBi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtNif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(buttAdicionar)\n .addContainerGap())\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, 481, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 383, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n\n pack();\n }", "title": "" }, { "docid": "5fd103c9d3f4a5ba3a1097de8aeb6c09", "score": "0.5816826", "text": "private void btnBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarActionPerformed\n // se solicita un Nro de habitacion existente en la base de datos\n String buscarHab=JOptionPane.showInputDialog(\"Ingrese Nro valido de Habitacion a buscar\");\n if (buscarHab!=null){\n int busca=Integer.parseInt(buscarHab);\n Habitacion ha=habitacionData.buscarHabitacion(busca);\n //*******Consulta que habitacion sea diferente de null para asegurar que devuelva la habiacion deseada\n if(ha!=null){\n txtNroHabitacion.setText(ha.getNroHabitacion()+\"\");\n if(ha.isEstado()){\n chcLibre.setSelected(true);\n chcOcupada.setSelected(false);\n }else{\n chcOcupada.setSelected(true);\n chcLibre.setSelected(false);\n }\n txtPiso.setText(ha.getPiso()+\"\");\n idHabitacion=ha.getIdHabitacion();\n String tipo=ha.getId_tipoHabitacion().getTipo();\n cbxTipoHabitacion.setSelectedItem(tipo);\n borrarFilasTabla();\n modelo.addRow(new Object[]{ha.getId_tipoHabitacion().getId_tipoHabitacion(),ha.getId_tipoHabitacion().getCodigo(),\n ha.getId_tipoHabitacion().getTipo(),ha.getId_tipoHabitacion().getTipoCama(),ha.getId_tipoHabitacion().getCantCamas(),\n ha.getId_tipoHabitacion().getCantPersonasMax(),ha.getId_tipoHabitacion().getPrecioPorNoche()});\n \n }else{JOptionPane.showMessageDialog(null, \"hbitacion no existe\");}\n }\n }", "title": "" }, { "docid": "ebb5d3e13ac9e031ffdd834bac506af2", "score": "0.58128583", "text": "@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 btnKembali = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n txtIdbus = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtPlat = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n txtKapasitas = new javax.swing.JTextField();\n txtKelas = new javax.swing.JTextField();\n btnTambahdata = new javax.swing.JButton();\n btnSimpan = new javax.swing.JButton();\n btnCari = new javax.swing.JButton();\n txtCari = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n tblBus = new javax.swing.JTable();\n btnHapus = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n cmbIdsupir = new javax.swing.JComboBox();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(102, 102, 102));\n\n btnKembali.setText(\"Kembali\");\n btnKembali.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnKembaliActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 48)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Data Bus\");\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Icon/logo4.png\"))); // NOI18N\n\n jPanel2.setBackground(new java.awt.Color(51, 51, 51));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Id Bus\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"Plat\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Kapasitas\");\n\n btnTambahdata.setText(\"Tambah data\");\n btnTambahdata.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTambahdataActionPerformed(evt);\n }\n });\n\n btnSimpan.setText(\"Simpan\");\n btnSimpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSimpanActionPerformed(evt);\n }\n });\n\n btnCari.setText(\"Cari\");\n btnCari.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCariActionPerformed(evt);\n }\n });\n\n txtCari.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCariActionPerformed(evt);\n }\n });\n\n tblBus.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n tblBus.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n tblBusMouseClicked(evt);\n }\n });\n jScrollPane2.setViewportView(tblBus);\n\n btnHapus.setText(\"Hapus\");\n btnHapus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnHapusActionPerformed(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"Kelas\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setText(\"Id Supir\");\n\n cmbIdsupir.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n cmbIdsupir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbIdsupirActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(btnTambahdata)\n .addGap(155, 155, 155)\n .addComponent(btnSimpan)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel8)\n .addComponent(jLabel9))\n .addGap(26, 26, 26)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(txtKelas)\n .addGap(65, 65, 65))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtKapasitas, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE)\n .addComponent(txtPlat, javax.swing.GroupLayout.Alignment.LEADING))\n .addComponent(txtIdbus, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 134, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(cmbIdsupir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(btnHapus)\n .addGap(24, 24, 24))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, 228, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCari))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtIdbus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtPlat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(txtKapasitas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel5)\n .addGap(0, 0, 0)\n .addComponent(jLabel8))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(txtKelas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(9, 9, 9)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(cmbIdsupir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSimpan)\n .addComponent(btnTambahdata)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnCari)\n .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnHapus)))\n .addContainerGap(100, Short.MAX_VALUE))\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.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(btnKembali))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(77, 77, 77)\n .addComponent(jLabel1)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel7)\n .addGap(38, 38, 38))\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(btnKembali)\n .addGap(18, 18, 18)\n .addComponent(jLabel1))\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\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 }", "title": "" }, { "docid": "824ed2a1927af32c9acd147ce322b8ed", "score": "0.5810315", "text": "public frmveOrdenE() {\n initComponents();\n }", "title": "" }, { "docid": "675755a054676d0a389142ff834c2e17", "score": "0.5810143", "text": "public NewAttributeBox(java.awt.Frame parent, Controlador controlador) {\n super(parent);\n super.setModal(true);\n initComponents();\n jLValor2.setEnabled(false);\n jCBvalor.setEnabled(false);\n jLleft.setVisible(false);\n jLright.setVisible(false);\n jTFleft.setVisible(false);\n jTFright.setVisible(false);\n cambiarVisibleInt(false);\n getRootPane().setDefaultButton(jButtonSave);\n log.info(\"Añadiendo un atributo\");\n setControlador(controlador);\n jButtonSave.setActionCommand(GUARDAR_ATRIBUTO);\n\n }", "title": "" }, { "docid": "28dfacc1249cd392f21ee3a046e94daa", "score": "0.5809033", "text": "private TtktKtBbCongBoKetLuan createCongBoQd(ApplicationContext appContext,\r\n\t\t\tCongBoKetLuanForm form) throws Exception {\n\t\tTtktKtBbCongBoKetLuan congBoKL = new TtktKtBbCongBoKetLuan();\r\n\r\n\t\tcongBoKL.setId(form.getIdCongBoQuyetDinh());\r\n\t\tcongBoKL.setIdCuocTtkt(form.getIdCuocTtkt());\r\n\t\tcongBoKL.setThoiDiemCongBo(Formater.str2dateForNV(form\r\n\t\t\t\t.getThoiDiemCongBo()));\r\n\t\tcongBoKL.setThoiDiemKetThuc(Formater.str2dateForNV(form\r\n\t\t\t\t.getThoiDiemKetThuc()));\r\n\t\tcongBoKL.setNgayLap(Formater.str2date(form.getNgayLap()));\r\n\t\tcongBoKL.setDiaDiem(form.getDiaDiem());\r\n\t\tcongBoKL.setYkDaiDienCqTienHanh(form.getYkienPhatBieu());\r\n\t\tcongBoKL.setYkCqqlCapTrenCuaDtuong(form.getYkCqqlCapTrenCuaDtuong());\r\n\t\tcongBoKL.setYkDaiDienCqtBiTtkt(form.getYkDaiDienCqtBiTtkt());\r\n\t\tcongBoKL.setNoiLap(form.getNoiLap());\r\n\t\tcongBoKL.setIdNguoiCapNat(appContext.getMaCanbo());\r\n\t\tcongBoKL.setTenNguoiCapNhat(appContext.getTenCanbo());\r\n\t\tcongBoKL.setNgayCapNhat(new Date());\r\n\t\t// Dai dien co quan ban hanh Qd\r\n\t\tcongBoKL.setTpThamDuCqtTienHanh(form.getIdDaiDienCqBanHanhQd());\r\n\t\tTtktCmThanhPhanThamDu[] arrDaiDienCqtBanHanhQd = form\r\n\t\t\t\t.getArrDaiDienCqtBanHanhQD();\r\n\t\tif (arrDaiDienCqtBanHanhQd != null && arrDaiDienCqtBanHanhQd.length > 0) {\r\n\t\t\tArrayList dsDaiDienCqtBanHanhQd = new ArrayList();\r\n\t\t\tfor (int i = 0; i < arrDaiDienCqtBanHanhQd.length; i++)\r\n\t\t\t\tdsDaiDienCqtBanHanhQd.add(arrDaiDienCqtBanHanhQd[i]);\r\n\t\t\tcongBoKL.setDsTptdCqtTienHanh(dsDaiDienCqtBanHanhQd);\r\n\t\t}\r\n\r\n\t\t// Dai dien co quan quan ly cap tren\r\n\t\tcongBoKL.setTpThamDuCquanTchucCnhan(form.getIdDaiDienCqqlCapTren());\r\n\t\tTtktCmThanhPhanThamDu[] arrDaiDienCqQlCapTren = form\r\n\t\t\t\t.getArrDaiDienCqqlCapTren();\r\n\t\tif (arrDaiDienCqQlCapTren != null && arrDaiDienCqQlCapTren.length > 0) {\r\n\t\t\tArrayList dsDaiDienCqQlCapTren = new ArrayList();\r\n\t\t\tfor (int i = 0; i < arrDaiDienCqQlCapTren.length; i++)\r\n\t\t\t\tdsDaiDienCqQlCapTren.add(arrDaiDienCqQlCapTren[i]);\r\n\t\t\tcongBoKL.setDsTptdCquanTchucCnhan(dsDaiDienCqQlCapTren);\r\n\t\t}\r\n\r\n\t\t// Dai dien doan Ttkt\r\n\t\tcongBoKL.setTpThamDuDoanTtkt(form.getIdDaiDienDoanTtkt());\r\n\t\tTtktCmThanhPhanThamDu[] arrDaiDienDoanTtkt = form\r\n\t\t\t\t.getArrDaiDienDoanTtkt();\r\n\t\tif (arrDaiDienDoanTtkt != null && arrDaiDienDoanTtkt.length > 0) {\r\n\t\t\tArrayList dsDaiDienDoanTtkt = new ArrayList();\r\n\t\t\tfor (int i = 0; i < arrDaiDienDoanTtkt.length; i++)\r\n\t\t\t\tdsDaiDienDoanTtkt.add(arrDaiDienDoanTtkt[i]);\r\n\t\t\tcongBoKL.setDsTptdDoanTtkt(dsDaiDienDoanTtkt);\r\n\t\t}\r\n\r\n\t\t// Don vi duoc Ttkt\r\n\t\tcongBoKL.setTpThamDuDviDuocTtkt(form.getIdDaiDienDonViDuocTtkt());\r\n\t\tTtktCmThanhPhanThamDu[] arrDaiDienDvDuocTtkt = form\r\n\t\t\t\t.getArrDaiDienDonViDuocTtkt();\r\n\t\tif (arrDaiDienDvDuocTtkt != null && arrDaiDienDvDuocTtkt.length > 0) {\r\n\t\t\tArrayList dsDaiDienDvDuocTtkt = new ArrayList();\r\n\t\t\tfor (int i = 0; i < arrDaiDienDvDuocTtkt.length; i++)\r\n\t\t\t\tdsDaiDienDvDuocTtkt.add(arrDaiDienDvDuocTtkt[i]);\r\n\t\t\tcongBoKL.setDsTptdDviDuocTtkt(dsDaiDienDvDuocTtkt);\r\n\t\t}\r\n\r\n\t\treturn congBoKL;\r\n\t}", "title": "" }, { "docid": "588c5b79dfe557fad60f8192e80d8dcb", "score": "0.58044523", "text": "@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 cmbJenisPelanggan = new javax.swing.JComboBox<>();\n cmbJenisPaket = new javax.swing.JComboBox<>();\n cmbJenisPembayaran = new javax.swing.JComboBox<>();\n txtHasilPelanggan = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n jButton1 = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n txtJmlPaket = new javax.swing.JTextField();\n txtHasilPaket = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n txtHasilPembayaran = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n txtHasilJumlahPaket = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txtHasilHarga = new javax.swing.JTextField();\n jLabel10 = new javax.swing.JLabel();\n txtHasilDiskon = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n txtHasilBayar = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Jenis Pelanggan\");\n\n jLabel2.setText(\"Jenis Paket\");\n\n jLabel3.setText(\"Jenis Pembayaran\");\n\n jLabel4.setText(\"Jumlah Paket\");\n\n cmbJenisPelanggan.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"member\", \"non member\" }));\n\n cmbJenisPaket.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"hemat\", \"nikmat\", \"ningrat\" }));\n\n cmbJenisPembayaran.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"cash\", \"debit\" }));\n\n jLabel5.setFont(new java.awt.Font(\"Comic Sans MS\", 1, 24)); // NOI18N\n jLabel5.setText(\"RESTORAN RASA ENAK\");\n\n jButton1.setText(\"Hitung\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel6.setText(\"Jenis Pelanggan\");\n\n txtHasilPaket.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtHasilPaketActionPerformed(evt);\n }\n });\n\n jLabel7.setText(\"Jenis Paket\");\n\n jLabel8.setText(\"Jenis Pembayaran\");\n\n jLabel9.setText(\"Jumlah Paket\");\n\n jLabel10.setText(\"Total Harga\");\n\n jLabel11.setText(\"Diskon\");\n\n jLabel12.setText(\"Total Bayar\");\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(143, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 368, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilPelanggan, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 404, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4))\n .addGap(90, 90, 90)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cmbJenisPembayaran, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmbJenisPaket, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmbJenisPelanggan, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(txtJmlPaket, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilPaket, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilPembayaran, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilJumlahPaket, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilHarga, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilDiskon, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtHasilBayar, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(141, 141, 141))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cmbJenisPelanggan, 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(jLabel2)\n .addComponent(cmbJenisPaket, 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(jLabel3)\n .addComponent(cmbJenisPembayaran, 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(jLabel4)\n .addComponent(txtJmlPaket, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(19, 19, 19)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(txtHasilPelanggan, 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(jLabel7)\n .addComponent(txtHasilPaket, 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(jLabel8)\n .addComponent(txtHasilPembayaran, 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(jLabel9)\n .addComponent(txtHasilJumlahPaket, 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(jLabel10)\n .addComponent(txtHasilHarga, 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(txtHasilDiskon, 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(jLabel12)\n .addComponent(txtHasilBayar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(65, Short.MAX_VALUE))\n );\n\n pack();\n }", "title": "" }, { "docid": "742472b287f95fc513d4b314616426ff", "score": "0.58017886", "text": "@Override\r\n public void actionPerformed(ActionEvent tambah) {\r\n //menampilkan tabel baru jika pengguna memilih tambahPasien\r\n //isi tabel tersebut berupa data yang telah di susun pada kelas\r\n //TambahPasienBaruDialog\r\n if (tambah.getSource() == tambahPasien) {\r\n TambahPasienBaruDialog test = new TambahPasienBaruDialog();\r\n test.setSize(400, 500);\r\n test.setVisible(true);\r\n }\r\n //menampilkan tabel baru jika pengguna memilih tambahAntrian\r\n //isi tabel tersebut berupa data yang telah di susun pada kelas\r\n //TambahAntrianDialog\r\n if (tambah.getSource() == tambahAntrian) {\r\n TambahAntrianDialog test = new TambahAntrianDialog();\r\n test.setSize(400, 500);\r\n test.setVisible(true);\r\n }\r\n //jika pengguna memilih exitMenuItem maka akan keluar dari tabel\r\n if (tambah.getSource() == exitMenuItem) {\r\n System.exit(0);\r\n }\r\n }", "title": "" }, { "docid": "7def77938229d1be6023b644436a4f1f", "score": "0.5798278", "text": "public Form_Transaksi() {\n initComponents();\n \n //membuat obyek\n model = new DefaultTableModel();\n \n //memberi nama header pada tabel\n tblTransaksi.setModel(model);\n model.addColumn(\"NO TRANSAKSI\");\n model.addColumn(\"ID PEGAWAI\");\n model.addColumn(\"ID PEMBELI\");\n model.addColumn(\"NAMA PEMBELI\");\n model.addColumn(\"ID BARANG\");\n model.addColumn(\"NAMA BARANG\");\n model.addColumn(\"HARGA\");\n model.addColumn(\"JUMLAH\");\n model.addColumn(\"TOTAL\");\n }", "title": "" }, { "docid": "12543a282c1f7e3338fa42a5475258ba", "score": "0.57979894", "text": "public formProduto() {\n initComponents();\n resetText();\n }", "title": "" }, { "docid": "88053e0aadd4f33676e7f130ecaf9193", "score": "0.5793099", "text": "public frmProducto() {\n initComponents();\n Mostrar();\n }", "title": "" }, { "docid": "368f846bd4009b2030a21d19ada21ccd", "score": "0.57904655", "text": "public void crearTabla(){\r\n nombre = ventanaCreaTabla.txtFieldNombre.getText();\r\n String msg = \"\";\r\n int pTipo=1;\r\n if(!nombre.isEmpty()){\r\n switch(tipo){\r\n case \"int\":\r\n pTipo=1;\r\n break;\r\n case \"float\":\r\n pTipo=2;\r\n break;\r\n case \"String\":\r\n pTipo=4;\r\n break;\r\n case \"boolean\":\r\n pTipo=3;\r\n break;\r\n default:\r\n break;\r\n }\r\n if(contador>=2){\r\n String[] listaCampos = textoCampos.split(\"//*\");\r\n textoCampos = \"\";\r\n for(String lista1:listaCampos){\r\n textoCampos+=lista1;\r\n }\r\n msg = dao.crearTabla(nombre,base,textoCampos);\r\n if(msg.equals(\"false\")){\r\n JOptionPane.showMessageDialog(ventanaCreaTabla, \"No se puede crear la tabla.\");\r\n }\r\n else{\r\n JOptionPane.showMessageDialog(ventanaCreaTabla, \"La tabla y el campo se crearon con exito.\");\r\n cerrar();\r\n }\r\n }\r\n else{\r\n JOptionPane.showMessageDialog(ventanaCreaTabla,\"Para crear la tabla deben existir al menos dos tablas\");\r\n }\r\n \r\n }\r\n }", "title": "" }, { "docid": "74403e63d3a4d1df2838dc0ee8e08226", "score": "0.5785863", "text": "public TelaCadastroProduto() {\n initComponents();\n \n }", "title": "" }, { "docid": "76d9bf2f5828d20e098bfa881571d3f3", "score": "0.5785702", "text": "@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 jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n recibo_numero = new javax.swing.JTextField();\n recibo_numero_envio = new javax.swing.JTextField();\n recibo_peso_producto = new javax.swing.JTextField();\n recibo_cantidad_sacos_nylon = new javax.swing.JTextField();\n recibo_cosecha = new javax.swing.JComboBox<>();\n recibo_tipo_cafe = new javax.swing.JComboBox<>();\n recibo_productor = new javax.swing.JComboBox<>();\n recibo_fecha = new com.toedter.calendar.JDateChooser();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n recibo_cantidad_sacos_yuta = new javax.swing.JTextField();\n crear_recibo = new javax.swing.JButton();\n jPanel7 = new javax.swing.JPanel();\n jScrollPane4 = new javax.swing.JScrollPane();\n tabla_recibos = new javax.swing.JTable();\n jPanel2 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n tabla_cafe_existente = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Creación de Recibos\");\n\n jPanel1.setBackground(new java.awt.Color(0, 204, 153));\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Nuevo Recibo:\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 14))); // NOI18N\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Recibo No.\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setText(\"Cosecha:\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Café:\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Proveedor:\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"Fecha:\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel6.setText(\"Envío No.\");\n\n recibo_numero.setEditable(false);\n recibo_numero.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_numero_envio.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_peso_producto.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_cantidad_sacos_nylon.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_cosecha.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_tipo_cafe.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_productor.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n recibo_fecha.setDateFormatString(\"yyyy-MM-dd\");\n recibo_fecha.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"Peso Quintales:\");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel8.setText(\"Sacos Nylon:\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel9.setText(\"Sacos Yuta:\");\n\n recibo_cantidad_sacos_yuta.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n crear_recibo.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n crear_recibo.setText(\"Crear Recibo\");\n crear_recibo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n crear_reciboActionPerformed(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(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_numero, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_cosecha, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_fecha, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_productor, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_numero_envio, javax.swing.GroupLayout.PREFERRED_SIZE, 125, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_tipo_cafe, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(7, 7, 7)\n .addComponent(jLabel9)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(recibo_cantidad_sacos_nylon, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(recibo_peso_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(recibo_cantidad_sacos_yuta, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(220, 220, 220)\n .addComponent(crear_recibo)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(recibo_numero, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(1, 1, 1)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(recibo_cosecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(recibo_productor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(recibo_numero_envio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(recibo_fecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(recibo_tipo_cafe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(recibo_cantidad_sacos_nylon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8)\n .addComponent(recibo_peso_producto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(recibo_cantidad_sacos_yuta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)\n .addComponent(crear_recibo))\n );\n\n jPanel7.setBackground(new java.awt.Color(153, 153, 255));\n jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Recibos creados recientemente:\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 14))); // NOI18N\n\n tabla_recibos.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n tabla_recibos.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"No. Recibo\", \"Cosecha\", \"Café\", \"Productor\", \"Fecha\", \"Número de envío\", \"Peso total\", \"Sacos de Nylon\", \"Sacos de Yuta\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false, false, false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tabla_recibos.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tabla_recibos.setRowHeight(25);\n jScrollPane4.setViewportView(tabla_recibos);\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4)\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 289, Short.MAX_VALUE)\n );\n\n jPanel2.setBackground(new java.awt.Color(153, 153, 255));\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Café existente:\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 14))); // NOI18N\n\n tabla_cafe_existente.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n tabla_cafe_existente.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"No.\", \"Nombre\", \"Tipo\", \"Saldo en Bodega\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false, false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n tabla_cafe_existente.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tabla_cafe_existente.setRowHeight(25);\n jScrollPane5.setViewportView(tabla_cafe_existente);\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 0, 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 .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap())\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, false)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "title": "" }, { "docid": "07581e3c54aa90452b29c94f31cc0a56", "score": "0.5779523", "text": "public TelaBusca(BancoPopular banco, Aluno aluno, long posicao) {\n initComponents();\n this.banco = banco;\n this.aluno = aluno;\n this.posicao = posicao;\n \n textFieldNome.setText(aluno.getNome(true));\n matriculaLabel.setText(Long.toString(aluno.getMatricula()));\n textFieldCPF.setText(Long.toString(aluno.getCpf()));\n textFieldAlergia.setText(aluno.getAlergia(true));\n textFieldCelular.setText(aluno.getCelular(true));\n textFieldDoenca.setText(aluno.getDoença(true));\n textFieldEmail.setText(aluno.getEmail(true));\n textFieldEmergencia.setText(aluno.getEmergencia(true));\n textFieldEndereco.setText(aluno.getEndereco(true));\n textFieldMedicacao.setText(aluno.getMedicacao(true));\n textFieldNascimento.setText(aluno.getNascimento(true));\n textFieldTelefone.setText(aluno.getTelefone(true));\n comboBoxSexo.setSelectedIndex(aluno.getSexo());\n comboBoxVinculo.setSelectedIndex(aluno.getVinculo());\n \n String rh = aluno.getRh(true);\n if(rh.equals(\"A+\")){\n comboBoxRH.setSelectedIndex(0);\n }else if(rh.equals(\"B+\")){\n comboBoxRH.setSelectedIndex(1);\n }else if(rh.equals(\"AB+\")){\n comboBoxRH.setSelectedIndex(2);\n }else if(rh.equals(\"O+\")){\n comboBoxRH.setSelectedIndex(3);\n }else if(rh.equals(\"A-\")){\n comboBoxRH.setSelectedIndex(4);\n }else if(rh.equals(\"B-\")){\n comboBoxRH.setSelectedIndex(5);\n }else if(rh.equals(\"AB-\")){\n comboBoxRH.setSelectedIndex(6);\n }else if(rh.equals(\"O-\")){\n comboBoxRH.setSelectedIndex(7);\n }else if(rh.equals(\"N\")){\n comboBoxRH.setSelectedIndex(8);\n }\n }", "title": "" }, { "docid": "a8588c75773fd7d3f937c82030b78a8d", "score": "0.5773998", "text": "public VentanaPistas() {\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 392, 416);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Atrás\");\r\n\t\tbtnNewButton.setBackground(SystemColor.textHighlight);\r\n\t\tbtnNewButton.setForeground(SystemColor.window);\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tVentanaOpcion nuevaVentana = new VentanaOpcion(); \r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Reserva de pistas\");\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 39));\r\n\t\tlblNewLabel.setForeground(SystemColor.window);\r\n\t\tlblNewLabel.setBounds(10, 11, 355, 77);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\t\tbtnNewButton.setBounds(10, 343, 104, 23);\r\n\t\tcontentPane.add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Baloncesto\");\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaB = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"baloncesto\")) {\r\n\t\t\t\t\t\tpistaB = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaBaloncesto nuevaVentana = new VentanaBaloncesto(pistaB);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setIcon(new ImageIcon(\"C:\\\\Users\\\\Mikel\\\\Documents\\\\balon.png\"));\r\n\t\tbtnNewButton_1.setBounds(10, 109, 104, 98);\r\n\t\tcontentPane.add(btnNewButton_1);\r\n\t\t\r\n\t\tJButton btnFtbol = new JButton(\"F\\u00FAtbol\");\r\n\t\tbtnFtbol.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaF = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"futbol\")) {\r\n\t\t\t\t\t\tpistaF = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaFutbol nuevaVentana = new VentanaFutbol(pistaF);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFtbol.setIcon(new ImageIcon(\"C:\\\\Users\\\\Mikel\\\\Downloads\\\\icons8-f\\u00FAtbol-100.png\"));\r\n\t\tbtnFtbol.setBounds(136, 109, 104, 98);\r\n\t\tcontentPane.add(btnFtbol);\r\n\t\t\r\n\t\tJButton btnFutbol = new JButton(\"Tenis 1\");\r\n\t\tbtnFutbol.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaT = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"tenis\")) {\r\n\t\t\t\t\t\tpistaT = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaTenis nuevaVentana = new VentanaTenis(pistaT);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFutbol.setIcon(new ImageIcon(\"C:\\\\Users\\\\Mikel\\\\Downloads\\\\icons8-jugador-de-f\\u00FAtbol-americano-100.png\"));\r\n\t\tbtnFutbol.setBounds(262, 109, 104, 98);\r\n\t\tcontentPane.add(btnFutbol);\r\n\t\t\r\n\t\tJButton btnAtletismo = new JButton(\"P\\u00E1del 2\");\r\n\t\tbtnAtletismo.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaP2 = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"padel2\")) {\r\n\t\t\t\t\t\tpistaP2 = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaPadel2 nuevaVentana = new VentanaPadel2(pistaP2);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAtletismo.setIcon(new ImageIcon(\"C:\\\\Users\\\\Mikel\\\\Documents\\\\pole-vault.png\"));\r\n\t\tbtnAtletismo.setBounds(262, 232, 104, 98);\r\n\t\tcontentPane.add(btnAtletismo);\r\n\t\t\r\n\t\tJButton btnTenis = new JButton(\"P\\u00E1del 1\");\r\n\t\tbtnTenis.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaP = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"padel\")) {\r\n\t\t\t\t\t\tpistaP = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaPadel nuevaVentana = new VentanaPadel(pistaP);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnTenis.setBounds(136, 232, 104, 98);\r\n\t\tcontentPane.add(btnTenis);\r\n\t\t\r\n\t\tJButton btnPadel = new JButton(\"Tenis 2\");\r\n\t\tbtnPadel.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tPista pistaT2 = null;\r\n\t\t\t\tfor(Pista pista:pistas) {\r\n\t\t\t\t\tif(pista.getNombre().equals(\"tenis2\")) {\r\n\t\t\t\t\t\tpistaT2 = pista;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tVentanaTenis2 nuevaVentana = new VentanaTenis2(pistaT2);\r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPadel.setIcon(new ImageIcon(\"C:\\\\Users\\\\Mikel\\\\Documents\\\\cycling-road.png\"));\r\n\t\tbtnPadel.setBounds(10, 232, 104, 98);\r\n\t\tcontentPane.add(btnPadel);\r\n\t\t\r\n\t\tJButton btnNewButton_2 = new JButton(\"\");\r\n\t\tbtnNewButton_2.setBackground(SystemColor.textHighlight);\r\n\t\tbtnNewButton_2.setEnabled(false);\r\n\t\tbtnNewButton_2.setBounds(0, 0, 376, 98);\r\n\t\tcontentPane.add(btnNewButton_2);\r\n\t\t\r\n\t\tJButton reset = new JButton(\"RESETEAR\");\r\n\t\treset.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tBDatos.resetPistas();\r\n\t\t\t\tBDatos.cargarPista();\r\n\t\t\t\tJOptionPane.showMessageDialog(reset, \"Las pistas se han reseteado correctamente\");\r\n\t\t\t\t\r\n\t\t\t\tVentanaPistas.this.dispose();\r\n\t\t\t\tVentanaOpcion nuevaVentana = new VentanaOpcion(); \r\n\t\t\t\tnuevaVentana.setVisible(true);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\treset.setForeground(new Color(255, 255, 255));\r\n\t\treset.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\r\n\t\treset.setBackground(new Color(255, 0, 0));\r\n\t\treset.setBounds(262, 343, 103, 23);\r\n\t\tcontentPane.add(reset);\r\n\t\t\r\n\t\tJButton btnAadirPista = new JButton(\"A\\u00F1adir pista\");\r\n\t\tbtnAadirPista.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAadirPista.setForeground(Color.WHITE);\r\n\t\tbtnAadirPista.setFont(new Font(\"Tahoma\", Font.BOLD, 13));\r\n\t\tbtnAadirPista.setBackground(Color.RED);\r\n\t\tbtnAadirPista.setBounds(137, 343, 103, 23);\r\n\t\tcontentPane.add(btnAadirPista);\r\n\t\t\r\n\t\tif (VentanaInicio.vale.getNombre().equals(\"admin\")) {\r\n\t\t\treset.setVisible(true);\r\n\t\t\tbtnAadirPista.setVisible(true);\r\n\t\t} else {\r\n\t\t\treset.setVisible(false);\r\n\t\t\tbtnAadirPista.setVisible(false);\r\n\t\t}\r\n\t\t\r\n\t\tsetLocationRelativeTo(null);\r\n\t\t\r\n\t\t// Cargamos reservas\r\n\t\tpistas = BDatos.cargarPista();\r\n\t}", "title": "" }, { "docid": "67701bcd55200ef517e1eb551018a2e2", "score": "0.5773082", "text": "Trebejo crear(Posicion posicion, Boolean blanca);", "title": "" }, { "docid": "532feb75fda1f719535efe1adbc1b4a5", "score": "0.5772299", "text": "public Apariencia_GuargarBBDD(int lineasInsertadas) {\r\n\t\tsuper(new BorderLayout());\r\n JOptionPane.showMessageDialog(p,\"Guardado en BBDD correctamente. \\nTotal de registros insertados: \" + Integer.toString(lineasInsertadas), \"INFORMACION\", JOptionPane.INFORMATION_MESSAGE);\r\n\r\n\t\t//CALCULAMOS EL CENTRO DE LA PANTALLA \r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint height = (screenSize.height)/2;\r\n\t\tint width = (screenSize.width)/2;\r\n\t\t\r\n\t\t//ESTABLECEMOS LOS 3 BOTONES\r\n\t\tbutton0 = new JButton(\"Descargar LOG\");\r\n\t\tbutton0.setPreferredSize(new Dimension(width/4, height/2));\r\n\t\tp.add(button0, BorderLayout.WEST);\r\n\t\tbutton0.addActionListener(this); \r\n\t\t\r\n\t\tbutton1 = new JButton(\"Pantalla inicial\");\r\n\t\tbutton1.setPreferredSize(new Dimension(width/4, height/2));\r\n\t\tp.add(button1, BorderLayout.CENTER);\r\n\t\tbutton1.addActionListener(this); \r\n\r\n\t\tbutton2 = new JButton(\"Cerrar\");\r\n\t\tbutton2.setPreferredSize(new Dimension(width/4, height/2));\r\n\t\tp.add(button2, BorderLayout.EAST);\r\n\t\tbutton2.addActionListener(this); \r\n\t\t\t\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.add(p);\r\n\t\tframe.pack();\t\t\r\n\r\n\t\t//CENTRAMOS EL JFRAME EN MITAD DE LA PANTALLA \r\n\t\tframe.setSize(width-(width/5), height-(height/3));\t\t \r\n\t\tframe.setLocationRelativeTo(null);\r\n\t\t\r\n\t\tframe.setVisible(true);\t\t\t\t\t\r\n\t}", "title": "" }, { "docid": "4b6275f6322127f82e082830bd4ca92f", "score": "0.57700133", "text": "public NuevoProducto() {//constructor de nuevoProducto\n initComponents();\n }", "title": "" }, { "docid": "fcd956734dad2ace7e101bb20a2b282c", "score": "0.5769934", "text": "@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 jComboBox1 = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n tNama = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n tHarga = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n tJumlah = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n tTotal = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n tUBayar = new javax.swing.JTextField();\n tUKembali = new javax.swing.JTextField();\n bBersih = new javax.swing.JButton();\n bKeluar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(0, 0, 0));\n\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"KODE BARANG\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Pilih\", \"B001\", \"B002\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"NAMA BARANG\");\n\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"HARGA BARANG\");\n\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"JUMLAH BARANG\");\n\n tJumlah.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tJumlahKeyPressed(evt);\n }\n });\n\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"TOTAL BAYAR\");\n\n tTotal.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tTotalKeyPressed(evt);\n }\n });\n\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"UANG BAYAR\");\n\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\"UANG KEMBALI\");\n\n tUBayar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tUBayarKeyPressed(evt);\n }\n });\n\n bBersih.setText(\"BERSIH\");\n bBersih.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bBersihActionPerformed(evt);\n }\n });\n\n bKeluar.setText(\"KELUAR\");\n bKeluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bKeluarActionPerformed(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 .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(39, 39, 39)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jComboBox1, 0, 97, Short.MAX_VALUE)\n .addComponent(tNama))\n .addGap(32, 32, 32)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tUBayar)\n .addComponent(tUKembali, javax.swing.GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE)))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(bKeluar)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 66, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(tHarga)\n .addComponent(tJumlah)\n .addComponent(tTotal, javax.swing.GroupLayout.DEFAULT_SIZE, 88, Short.MAX_VALUE))))\n .addGap(21, 21, 21))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(114, 114, 114)\n .addComponent(bBersih)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(tHarga, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(tNama, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(tJumlah, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(tTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(tUBayar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(tUKembali, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 44, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bBersih)\n .addComponent(bKeluar))\n .addGap(102, 102, 102))\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 }", "title": "" }, { "docid": "44153575f57e87fc163f02d613d5602b", "score": "0.5769807", "text": "public VisualizzaRichiesteAggiuntaAppelloForm() {\n initComponents();\n appelli = new Appelli();\n appelli.caricaRichieste();\n richiesteTable.setModel(appelli);\n }", "title": "" }, { "docid": "238fd2b07a8d35d676edc762ded5fbb5", "score": "0.5768104", "text": "@Override\n public void btnAddActionPerformed(ActionEvent evt) {\n JDialog dialog = new FrmPessoaCadastro();\n dialog.setVisible(true);\n table.atualizar();\n }", "title": "" }, { "docid": "0c8c0ad655613b44582130301f74ab06", "score": "0.5767713", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n buttonBackProgettista = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n textObjectProgettista = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n comboPesoProgettista = new javax.swing.JComboBox<>();\n jLabel1 = new javax.swing.JLabel();\n comboPrezzoProgettista = new javax.swing.JComboBox<>();\n jLabel3 = new javax.swing.JLabel();\n comboEsteticaProgettista = new javax.swing.JComboBox<>();\n jLabel4 = new javax.swing.JLabel();\n comboComfortProgettista = new javax.swing.JComboBox<>();\n buttonOkProgettista = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n Sfondo = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n buttonBackProgettista.setBackground(new java.awt.Color(248, 223, 174));\n buttonBackProgettista.setFont(new java.awt.Font(\"Dubai Medium\", 1, 14)); // NOI18N\n buttonBackProgettista.setText(\"Back\");\n buttonBackProgettista.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n buttonBackProgettistaActionPerformed(evt);\n }\n });\n getContentPane().add(buttonBackProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 410, 80, 30));\n\n jLabel6.setFont(new java.awt.Font(\"Dubai Medium\", 3, 14)); // NOI18N\n jLabel6.setText(\"IMPOSTA LE TUE PREFERENZE\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 10, 220, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel7.setText(\"Oggetto da valutare\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 70, 130, 30));\n\n textObjectProgettista.setFont(new java.awt.Font(\"Lucida Calligraphy\", 0, 12)); // NOI18N\n textObjectProgettista.setForeground(new java.awt.Color(153, 153, 153));\n textObjectProgettista.setText(\"Nome oggetto\");\n textObjectProgettista.addFocusListener(new java.awt.event.FocusAdapter()\n {\n public void focusLost(java.awt.event.FocusEvent evt)\n {\n textObjectProgettistaFocusLost(evt);\n }\n });\n textObjectProgettista.addMouseListener(new java.awt.event.MouseAdapter()\n {\n public void mouseClicked(java.awt.event.MouseEvent evt)\n {\n textObjectProgettistaMouseClicked(evt);\n }\n });\n getContentPane().add(textObjectProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 70, 170, 30));\n\n jLabel5.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel5.setText(\"CPU\");\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 110, 130, 30));\n\n comboPesoProgettista.setBackground(new java.awt.Color(248, 223, 174));\n comboPesoProgettista.setFont(new java.awt.Font(\"Lucida Calligraphy\", 0, 12)); // NOI18N\n comboPesoProgettista.setForeground(new java.awt.Color(51, 51, 51));\n comboPesoProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Scegli...\", \"Molto importante\", \"Importante\", \"Sufficiente\", \"Poco Importante\", \"Non importante\" }));\n getContentPane().add(comboPesoProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 210, 140, 30));\n\n jLabel1.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel1.setText(\"Prezzo\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 250, 130, 30));\n\n comboPrezzoProgettista.setBackground(new java.awt.Color(248, 223, 174));\n comboPrezzoProgettista.setFont(new java.awt.Font(\"Lucida Calligraphy\", 0, 12)); // NOI18N\n comboPrezzoProgettista.setForeground(new java.awt.Color(51, 51, 51));\n comboPrezzoProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Scegli...\", \"Molto importante\", \"Importante\", \"Sufficiente\", \"Poco Importante\", \"Non importante\" }));\n getContentPane().add(comboPrezzoProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 250, 140, 30));\n\n jLabel3.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel3.setText(\"Estetica\");\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 290, 130, 30));\n\n comboEsteticaProgettista.setBackground(new java.awt.Color(248, 223, 174));\n comboEsteticaProgettista.setFont(new java.awt.Font(\"Lucida Calligraphy\", 0, 12)); // NOI18N\n comboEsteticaProgettista.setForeground(new java.awt.Color(51, 51, 51));\n comboEsteticaProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Scegli...\", \"Molto importante\", \"Importante\", \"Sufficiente\", \"Poco Importante\", \"Non importante\" }));\n getContentPane().add(comboEsteticaProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 290, 140, 30));\n\n jLabel4.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel4.setText(\"Comfort\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 330, 130, 30));\n\n comboComfortProgettista.setBackground(new java.awt.Color(248, 223, 174));\n comboComfortProgettista.setFont(new java.awt.Font(\"Lucida Calligraphy\", 0, 12)); // NOI18N\n comboComfortProgettista.setForeground(new java.awt.Color(51, 51, 51));\n comboComfortProgettista.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Scegli...\", \"Molto importante\", \"Importante\", \"Sufficiente\", \"Poco Importante\", \"Non importante\" }));\n getContentPane().add(comboComfortProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 330, 140, 30));\n\n buttonOkProgettista.setBackground(new java.awt.Color(248, 223, 174));\n buttonOkProgettista.setFont(new java.awt.Font(\"Dubai Medium\", 1, 14)); // NOI18N\n buttonOkProgettista.setText(\"OK\");\n buttonOkProgettista.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n buttonOkProgettistaActionPerformed(evt);\n }\n });\n getContentPane().add(buttonOkProgettista, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 410, 70, 40));\n\n jLabel8.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel8.setText(\"Peso\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 210, 130, 30));\n\n jLabel9.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel9.setText(\"GPU\");\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 140, 130, 30));\n\n jLabel10.setFont(new java.awt.Font(\"Dubai Medium\", 1, 12)); // NOI18N\n jLabel10.setText(\"RAM\");\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 170, 130, 30));\n\n Sfondo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Immagini/fundo-textura-da-aguarela_1048-2727.jpg\"))); // NOI18N\n getContentPane().add(Sfondo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 620, 460));\n\n pack();\n }", "title": "" }, { "docid": "f0fa6c7e77188f97a62984f4ea375074", "score": "0.57659715", "text": "public tabelkegiatan() {\n initComponents();\n }", "title": "" }, { "docid": "9a616d20572bd438c62db035ccf899cf", "score": "0.5764113", "text": "public Transaksi() {\n initComponents();\n setTanggal();\n setJam();\n }", "title": "" }, { "docid": "f4a9bfd47107b58b332aa7227c1978f3", "score": "0.5759693", "text": "public Bebidas() {\n initComponents();\n }", "title": "" }, { "docid": "52a1ed5cd46d588a4d0acefe4cbd87e0", "score": "0.57583207", "text": "public FormUtama() {\n initComponents();\n }", "title": "" }, { "docid": "d6a4814c1fb0be8b100a9c4ceac5dfc2", "score": "0.5757366", "text": "@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 panel = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n cbJumlah = new javax.swing.JComboBox<>();\n labelbilangan1 = new javax.swing.JLabel();\n tb1 = new javax.swing.JTextField();\n tb2 = new javax.swing.JTextField();\n labelbilangan2 = new javax.swing.JLabel();\n tb3 = new javax.swing.JTextField();\n labelbilangan3 = new javax.swing.JLabel();\n labelbilangan4 = new javax.swing.JLabel();\n tb4 = new javax.swing.JTextField();\n labelhasil = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n textareahasil = new javax.swing.JTextArea();\n bHitung = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n ket = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n cbJenis = new javax.swing.JComboBox<>();\n bTutup = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setResizable(false);\n getContentPane().setLayout(null);\n\n jLabel1.setFont(new java.awt.Font(\"Tunga\", 1, 18)); // NOI18N\n jLabel1.setText(\"Program Aritmatika\");\n getContentPane().add(jLabel1);\n jLabel1.setBounds(30, 20, 170, 30);\n\n panel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Operasi\"));\n panel.setForeground(new java.awt.Color(204, 204, 204));\n panel.setLayout(null);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel3.setText(\"Jumlah Bilangan\");\n panel.add(jLabel3);\n jLabel3.setBounds(10, 70, 110, 30);\n\n cbJumlah.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"2\", \"3\", \"4\" }));\n cbJumlah.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbJumlahActionPerformed(evt);\n }\n });\n panel.add(cbJumlah);\n cbJumlah.setBounds(220, 70, 150, 30);\n\n labelbilangan1.setText(\"Bilangan 1\");\n panel.add(labelbilangan1);\n labelbilangan1.setBounds(20, 120, 90, 30);\n panel.add(tb1);\n tb1.setBounds(220, 120, 120, 30);\n panel.add(tb2);\n tb2.setBounds(220, 160, 120, 30);\n\n labelbilangan2.setText(\"Bilangan 2\");\n panel.add(labelbilangan2);\n labelbilangan2.setBounds(20, 160, 90, 30);\n panel.add(tb3);\n tb3.setBounds(220, 200, 120, 30);\n\n labelbilangan3.setText(\"Bilangan 3\");\n panel.add(labelbilangan3);\n labelbilangan3.setBounds(20, 200, 90, 30);\n\n labelbilangan4.setText(\"Bilangan 4\");\n panel.add(labelbilangan4);\n labelbilangan4.setBounds(20, 240, 90, 30);\n panel.add(tb4);\n tb4.setBounds(220, 240, 120, 30);\n\n labelhasil.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n labelhasil.setText(\"Hasil\");\n panel.add(labelhasil);\n labelhasil.setBounds(20, 350, 70, 20);\n\n textareahasil.setEditable(false);\n textareahasil.setColumns(20);\n textareahasil.setFont(new java.awt.Font(\"Tahoma\", 1, 13)); // NOI18N\n textareahasil.setRows(5);\n jScrollPane1.setViewportView(textareahasil);\n\n panel.add(jScrollPane1);\n jScrollPane1.setBounds(90, 350, 260, 100);\n\n bHitung.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n bHitung.setText(\"Hitung\");\n bHitung.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bHitungActionPerformed(evt);\n }\n });\n panel.add(bHitung);\n bHitung.setBounds(220, 290, 120, 30);\n\n jPanel2.setLayout(null);\n\n ket.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jPanel2.add(ket);\n ket.setBounds(10, 0, 150, 40);\n\n panel.add(jPanel2);\n jPanel2.setBounds(120, 20, 170, 40);\n\n getContentPane().add(panel);\n panel.setBounds(30, 90, 390, 470);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jLabel2.setText(\"Jenis Aritmatika\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(40, 60, 100, 20);\n\n cbJenis.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Penjumlahan\", \"Pengurangan\", \"Perkalian\", \"Pembagian\" }));\n cbJenis.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbJenisActionPerformed(evt);\n }\n });\n getContentPane().add(cbJenis);\n cbJenis.setBounds(250, 50, 140, 30);\n\n bTutup.setText(\"Tutup\");\n bTutup.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bTutupActionPerformed(evt);\n }\n });\n getContentPane().add(bTutup);\n bTutup.setBounds(320, 570, 90, 30);\n\n setSize(new java.awt.Dimension(456, 645));\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "480bb4b3cee37b16196cc5e89e909b9b", "score": "0.5756858", "text": "@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 txtIdTunjangan = new javax.swing.JTextField();\n txtIdPegawai = new javax.swing.JTextField();\n cbBulan = new javax.swing.JComboBox();\n txtNamaTunjangan = new javax.swing.JTextField();\n txtNilaiTunjangan = new javax.swing.JTextField();\n txtTanggalTunjangan = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n txtNamaPegawai = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n cmdSimpan = new javax.swing.JButton();\n cmdKeluar = new javax.swing.JButton();\n txtPeriodeTahun = new javax.swing.JTextField();\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setText(\"Form Tunjangan\");\n\n jLabel2.setText(\"Id Tunjangan\");\n\n jLabel3.setText(\"Id Pegawai\");\n\n jLabel4.setText(\"Periode Bulan\");\n\n jLabel5.setText(\"Periode Tahun\");\n\n jLabel6.setText(\"Nama Tunjangan\");\n\n jLabel7.setText(\"Nilai Tunjangan\");\n\n jLabel8.setText(\"Tanggal \");\n\n cbBulan.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"JANUARI\", \"FEBRUARY\", \"MARET\", \"APRIL\", \"MEI\", \"JUNI\", \"JULI\", \"AGUSTUS\", \"SEPTEMBER\", \"OKTOBER\", \"NOVEMBER\", \"DESEMBER\", \" \" }));\n\n jLabel9.setText(\"Nama Pegawai\");\n\n jButton1.setText(\"...\");\n\n cmdSimpan.setText(\"Simpan\");\n cmdSimpan.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdSimpanActionPerformed(evt);\n }\n });\n\n cmdKeluar.setText(\"Keluar\");\n cmdKeluar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdKeluarActionPerformed(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(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 339, javax.swing.GroupLayout.PREFERRED_SIZE)\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(jLabel7)\n .addComponent(jLabel8))\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(cbBulan, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNamaTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, 266, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNilaiTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtTanggalTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtIdTunjangan, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE)\n .addComponent(txtIdPegawai, javax.swing.GroupLayout.Alignment.LEADING))\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtNamaPegawai, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1))\n .addComponent(txtPeriodeTahun, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(275, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(cmdSimpan)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cmdKeluar)\n .addGap(38, 38, 38))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtIdTunjangan, 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(jLabel3)\n .addComponent(txtIdPegawai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9)\n .addComponent(txtNamaPegawai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(cbBulan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtPeriodeTahun, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(txtNamaTunjangan, 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.LEADING)\n .addComponent(jLabel7)\n .addComponent(txtNilaiTunjangan, 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.LEADING)\n .addComponent(jLabel8)\n .addComponent(txtTanggalTunjangan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 50, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(cmdSimpan)\n .addComponent(cmdKeluar))\n .addGap(19, 19, 19))\n );\n\n pack();\n }", "title": "" }, { "docid": "405e83b4db2a09c2e6b84aeb8c362c4f", "score": "0.5747677", "text": "public Seguridad_Ingresar() {\n initComponents();\n }", "title": "" }, { "docid": "50f5de4ae0fc0bc41587372253bc4069", "score": "0.5735645", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel3 = new javax.swing.JLabel();\n lblStatus = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n txtTurma = new javax.swing.JTextField();\n txtAno = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n btnSalvar = new javax.swing.JButton();\n btnCancelarTurma = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n lblDashboard = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n lblTurma = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n cmbPeriodo = new javax.swing.JComboBox();\n jLabel9 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(723, 420));\n setResizable(false);\n setSize(new java.awt.Dimension(723, 420));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/fiap/images/Icones-02 51x51.png\"))); // NOI18N\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 35, -1, -1));\n\n lblStatus.setFont(new java.awt.Font(\"Candara\", 0, 28)); // NOI18N\n lblStatus.setText(\"Inserir\");\n getContentPane().add(lblStatus, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 50, -1, -1));\n\n jLabel6.setFont(new java.awt.Font(\"Candara\", 0, 18)); // NOI18N\n jLabel6.setText(\"*Turma:\");\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 140, -1, -1));\n\n txtTurma.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n getContentPane().add(txtTurma, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 140, 320, -1));\n\n txtAno.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n getContentPane().add(txtAno, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 170, 90, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Candara\", 0, 18)); // NOI18N\n jLabel7.setText(\"*Ano:\");\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 170, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Candara\", 0, 18)); // NOI18N\n jLabel8.setText(\"*Período:\");\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 200, -1, 30));\n\n btnSalvar.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n btnSalvar.setText(\"Salvar\");\n btnSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalvarActionPerformed(evt);\n }\n });\n getContentPane().add(btnSalvar, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 230, 100, -1));\n\n btnCancelarTurma.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n btnCancelarTurma.setText(\"Cancelar\");\n btnCancelarTurma.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n btnCancelarTurmaMouseClicked(evt);\n }\n });\n btnCancelarTurma.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarTurmaActionPerformed(evt);\n }\n });\n getContentPane().add(btnCancelarTurma, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 230, 100, -1));\n\n jLabel2.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n jLabel2.setText(\"* Campos obrigatórios\");\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 280, -1, -1));\n\n lblDashboard.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n lblDashboard.setText(\"Dashboard\");\n lblDashboard.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblDashboardMouseClicked(evt);\n }\n });\n getContentPane().add(lblDashboard, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, -1, -1));\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/fiap/images/Icones-Seta 16x16.png\"))); // NOI18N\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(115, 8, -1, -1));\n\n lblTurma.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n lblTurma.setText(\"Turmas\");\n lblTurma.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblTurmaMouseClicked(evt);\n }\n });\n getContentPane().add(lblTurma, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 10, -1, -1));\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/br/com/fiap/images/Icones-Seta 16x16.png\"))); // NOI18N\n getContentPane().add(jLabel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(65, 8, 20, -1));\n\n cmbPeriodo.setFont(new java.awt.Font(\"Arial\", 0, 14)); // NOI18N\n cmbPeriodo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Selecione o periodo\" }));\n getContentPane().add(cmbPeriodo, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 200, 320, -1));\n\n jLabel9.setFont(new java.awt.Font(\"Candara\", 0, 28)); // NOI18N\n jLabel9.setText(\"Turma\");\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(170, 50, -1, -1));\n\n jLabel4.setFont(new java.awt.Font(\"Candara\", 0, 12)); // NOI18N\n jLabel4.setText(\"Novo\");\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 10, -1, -1));\n\n pack();\n }", "title": "" }, { "docid": "b7e2a2f889a0c848f5f75d1480c54b86", "score": "0.5734988", "text": "public Formas(){\r\n //Constructor sin parametros\r\n }", "title": "" } ]
48ac6ca15a9fcda5ad6a6096263573ce
An interface for both Database's and WebContainer's methods.
[ { "docid": "eb1065fab7888017c38d4b9984905f92", "score": "0.69944394", "text": "public interface DatabaseAndWeb extends Database, WebContainer {\n public abstract String getLocation();\n}", "title": "" } ]
[ { "docid": "78d051670303ee6075c1e9b26945a4b7", "score": "0.7709888", "text": "public void DatabaseInterface() {\r\n }", "title": "" }, { "docid": "650d1c3451b992a6b5a7320cc51aca38", "score": "0.7437257", "text": "public interface Database {\n public String sayHello();\n}", "title": "" }, { "docid": "868bd7ca392bde5e0c01356faa52bef0", "score": "0.73528594", "text": "public interface IDatabaseService {\r\n\r\n List<String> getDatabases();\r\n DatabaseInfo getDatabaseInfo(String databaseName);\r\n boolean deleteDatabase(String databaseName);\r\n\r\n SQLResponse dropTable(String databaseName, String tableName);\r\n SQLResponse dropIndex(String databaseName, String indexName);\r\n SQLResponse dropView(String databaseName, String viewName);\r\n\r\n void truncateTable(String databaseName, String tableName);\r\n\r\n SQLResponse execSQL(String databaseName, String sql);\r\n\r\n}", "title": "" }, { "docid": "544c122055ebcd906fcbf188a0c26e4a", "score": "0.72139984", "text": "public interface DatabaseApi\n{\n\t/**\n\t * Init database and table\n\t */\n\tpublic void onStart();\n\n\t/**\n\t * release connection etc.\n\t */\n\tpublic void onStop();\n\n\tpublic DaoFactory daoFactory();\n\n\tpublic ArticleApi article();\n}", "title": "" }, { "docid": "2daeabc51fc13f8a252cf5340a83e0ab", "score": "0.7137349", "text": "public interface DatabaseController {\n\n /**\n * Initialise, verify and if needed create any missing tables.\n *\n * @throws DBUtilsException if any IOException occurs when accessing\n * database properties or SQLException when verifying or creating tables.\n */\n void init() throws DBUtilsException;\n\n /**\n * Prepare a provided single query for execution.\n *\n * @param query The query to prepare. This is a String that follows SQL\n * syntax.\n * @return A Query object which can have parameters added to it and\n * provides ability to execute the query.\n * @throws DBUtilsException If any SQLExceptions occur preparing the\n * statement or creating the Query.\n */\n Query prepareQuery(String query) throws DBUtilsException;\n\n /**\n * Prepare a batch query, where all queries are dependent on each other.\n *\n * @param queries An unknown amount of queries to add to the batch queries\n * list. This is a list of Strings that follows SQL syntax.\n * @return A BatchQuery object which can have further queries, or\n * parameters added to it, and provides ability to execute queries.\n * @throws DBUtilsException If any SQLExceptions occur preparing the\n * statement or creating the BatchQuery.\n */\n BatchQuery prepareBatchQuery(String... queries) throws DBUtilsException;\n\n /**\n * Prepare a batch query, where all queries are dependent on each other.\n *\n * @param queries An unknown amount of queries to add to the batch queries\n * list. This is a list of Strings that follows SQL syntax.\n * @return A BatchQuery object which can have further queries, or\n * parameters added to it, and provides ability to execute queries.\n * @throws DBUtilsException If any SQLExceptions occur preparing the\n * statement or creating the BatchQuery.\n */\n BatchQuery prepareBatchQuery(List<String> queries) throws DBUtilsException;\n\n boolean databaseExists() throws DBUtilsException;\n\n void setProperty(String key, String value) throws DBUtilsException;\n}", "title": "" }, { "docid": "4441c4e162e6c637f7a57b01473a771b", "score": "0.6763906", "text": "public abstract U accessDB();", "title": "" }, { "docid": "bad264910991f900663ede8c9160b5bf", "score": "0.6747426", "text": "public interface DataBase {\n\n public Connection createConnection(String database, String userName, String password, String url) throws SQLException ;\n\n public boolean clear() throws SQLException;\n\n public boolean delete(String command) throws SQLException;\n\n public boolean insert(String enteredValues, String columns) throws SQLException;\n\n public boolean update(int idColumn, String changedColumns, String[] enteredData) throws SQLException;\n\n public boolean isExists(int id);\n\n public String[] list() throws SQLException;\n\n public int getTableWidth() throws SQLException;\n\n public int getTableHight() throws SQLException;\n\n public String[] getColumnNames() throws SQLException;\n\n public String[] getRows() throws SQLException;\n\n public void destroyConnection();\n\n public void setTable(String table);\n\n public String getDatabase();\n\n public String getTable();\n}", "title": "" }, { "docid": "2b3b608f918610e619fbd42a4cd57390", "score": "0.67194396", "text": "public interface IDatabase {\n String getName();\n}", "title": "" }, { "docid": "9a4eb50fbc95320c13d111655c3821fb", "score": "0.66761905", "text": "public interface ISQLDataBase {\n void addTitleAndUrl(String title, String url);\n List<String> getAllTitles();\n List<String> getAllUrls();\n void clean();\n\n}", "title": "" }, { "docid": "2c30dd15c0a4684f1957552e9451888b", "score": "0.66203773", "text": "public interface IDbAccess<T> {\n\n /**\n * 执行数据查询\n * @param sql\n * @param dbParams\n * @return\n */\n ResultSet query(String sql, DBParam[] dbParams);\n\n /**\n * 执行数据查询(数据结果可以自定义实现转换)\n * @param sql\n * @param dbParamses\n * @param resultSetConverter\n * @return\n */\n T query(String sql, DBParam[] dbParamses, IResultSetConverter<T> resultSetConverter);\n\n /**\n * 执行数据操作\n * 新增、修改、删除\n *\n * @param sql\n * @param dbParamses\n * @return\n */\n int exec(String sql, DBParam[] dbParamses);\n\n /**\n * 批量执行多个不同表不同操作的数据操作\n * 新增、修改、删除\n *\n * @param sqls\n * @return\n */\n int batchExec(Map<String, DBParam[]> sqls);\n\n /**\n * 批量执行单表的新增、修改、删除\n *\n * @param sql\n * @param listDbParams\n * @return\n */\n int repeatBatchExec(String sql, ArrayList<DBParam[]> listDbParams);\n}", "title": "" }, { "docid": "4a6ed0d6624c9f9af3f190db41201bb3", "score": "0.65771776", "text": "public interface DaoDB {\n Connection getConnection();\n void closeConnection();\n}", "title": "" }, { "docid": "146da379b769a0677612c34ea0c1ae03", "score": "0.65665644", "text": "public interface DbCommand {\n String dbCommand();\n\n String tableCommand(DatabaseModel db);\n\n String tableInfoCommand(DatabaseModel db, TableModel tb);\n// String\n}", "title": "" }, { "docid": "7eb6b739b4f0731eead27226129e0f82", "score": "0.65496325", "text": "public interface SQL_Connection {\r\n\tpublic Statement getMarketStatement() throws SQLException, ClassNotFoundException;\r\n\t\r\n\tpublic void changeConnectionString(String serverLocation, String userID, String password);\r\n\tpublic void changeConnectionString(String serverLocation, String userID);\r\n\tpublic void changeConnectionString(String serverLocation);\r\n\tpublic boolean testConnection();\r\n}", "title": "" }, { "docid": "25e852bc884bc6db4144a1ded5c3ba0f", "score": "0.653422", "text": "public interface Query {\n /**\n * Creates a select query for a SQL statement\n *\n * @param sql SQL statement\n * @return Select query for the SQL statement\n */\n SelectQuery select(String sql);\n\n /**\n * Creates an update or insert query for a SQL statement\n *\n * @param sql SQL statement\n * @return Update query for the SQL statement\n */\n UpdateQuery update(String sql);\n\n /**\n * Creates a batch update or insert query for a SQL statement\n *\n * @param sql SQL statement\n * @return Batch update or insert query for the SQL statement\n */\n BatchQuery batch(String sql);\n\n /**\n * Transaction control\n *\n * @return Transaction control\n */\n Transaction transaction();\n\n /**\n * Provides access to a JDBC Connection managed by FluentJdbc for low level operations\n *\n * @param plainConnectionQuery operation on a managed connection\n * @param <T> type of return value\n * @return value\n */\n <T> T plainConnection(PlainConnectionQuery<T> plainConnectionQuery);\n\n /**\n * Inspection of the database (tables, columns, etc..)\n *\n * @return databaseInspection\n */\n DatabaseInspection databaseInspection();\n}", "title": "" }, { "docid": "f73609dd4be5115c0575ad56b5619816", "score": "0.6527193", "text": "public interface DataBaseOperations \n{\n boolean registerStation (String stationName);\n boolean registerTube (String stationName, String tubeName);\n String getStationByTube (String tubeName, String receiverName);\n}", "title": "" }, { "docid": "2e67d3acc8625e1e879603aff4f6483e", "score": "0.65081847", "text": "public interface IDBExecutionKernel {\n\n // TODO - AHK - Decide on packaging\n\n // TODO - AHK - Decide if this is really a good API\n\n // TODO - AHK - This should probably return more than just one object\n Object executeInsert(String sql, IPreparedStatementParameter... arguments);\n\n <T> List<T> executeSelect(String sql, IQueryResultProcessor<T> resultProcessor, IPreparedStatementParameter... arguments);\n\n void executeUpdate(String sql, IPreparedStatementParameter... arguments);\n\n void executeDelete(String sql, IPreparedStatementParameter... arguments);\n\n}", "title": "" }, { "docid": "a961cdab8ec560713582e4eaf4e7cf48", "score": "0.64816064", "text": "interface SqlDatasource {\n\n /**\n * Returns an open connection to the database\n *\n * @return an open connection\n */\n Connection getConnection();\n}", "title": "" }, { "docid": "219f79f97aa590065e8910e225175077", "score": "0.6445121", "text": "public interface DB {\n void fileWriter(String path, Object object);\n void removeFileArgument(String path, Object object);\n List<Object> fileReader(String path);\n void clearingFile(String path);\n\n}", "title": "" }, { "docid": "9187116e91cc9ce7aa45127d05da2073", "score": "0.6443771", "text": "public interface Database<T> {\n\n void onLoad(List<T> ts);\n\n void update(List<T> ts);\n\n List<T> query();\n}", "title": "" }, { "docid": "856511d9d9fe27d7277ef5b1d6546a76", "score": "0.63901556", "text": "public interface DatabaseRepo {\n\n // get all object from collection with other key\n public Iterable getAll();\n\n // get one object from collection with id\n public Object get(int id);\n\n //get Last Object from collection\n public Object lastOne();\n\n // save object\n public Object save(Object o);\n\n // update object\n public Object update(Object o) throws IOException;\n\n // delete object\n public int delete(int id);\n\n}", "title": "" }, { "docid": "2d99df4157936b158de1edf12f944831", "score": "0.638814", "text": "public interface Database {\n\n List<Employee> readEmployees();\n}", "title": "" }, { "docid": "944985537dee84492903dcd0595c5ab9", "score": "0.63398045", "text": "public interface DAORDBMSGetService {\n public List<ProductDetails> getProduct(String productName) throws HibernateException;\n}", "title": "" }, { "docid": "0035d886936a5f7e856cd8b460e5d6b4", "score": "0.6325119", "text": "Database database();", "title": "" }, { "docid": "3312b2b564b2fd84375a914e672f1158", "score": "0.6314135", "text": "DatabaseImpl getDatabaseImpl(){\n return dbImpl;\n }", "title": "" }, { "docid": "efa05f24342cba3e67cc660d56f4662a", "score": "0.63082117", "text": "public interface IDatabaseConfig {\n Connection connect();\n Statement getStatement(Connection connection) throws SQLException;\n\n\n}", "title": "" }, { "docid": "89dad06b463be54b1b6a99646b96e490", "score": "0.6291121", "text": "public interface DBMSExecutor {\n public List<QueryResult> executeQuery(String sqlQuery) throws RelsemDBException;\n\n}", "title": "" }, { "docid": "4249b8be37e6900348e4cd1b504da7ed", "score": "0.624675", "text": "public interface DbInterface {\n\n /**\n * @param tbName\n * 清空表数据\n */\n void clearTb(String tbName);\n\n\n /**\n * @param musicDatas\n * @param tbName\n * 添加音乐列表到本地\n */\n void insertMusics(List<MusicData> musicDatas,String tbName);\n\n /**\n * @param tbName\n * @param id\n * 删除音乐\n */\n void removeMusic(String tbName,int id);\n\n /**\n * @return\n * 查询音乐\n */\n List<MusicData> queryMusic(String tbName);\n\n\n}", "title": "" }, { "docid": "c21c920207855b9b32a434ded66fc369", "score": "0.6216783", "text": "public interface IDBConnection {\n default Connection connectToDB(){\n Connection connection = null;\n\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n connection = DriverManager.getConnection(URL+DATABASE,USER,PASSWORD);\n }catch (Exception e){\n e.printStackTrace();\n\n }finally {\n return connection;\n }\n }\n}", "title": "" }, { "docid": "ad43b3910bbc5b4ff83558dde72507e1", "score": "0.6197096", "text": "public interface DatabaseObjectWriter {\n /**\n * Create a schema in the database.\n *\n * @param schema schema to be written\n */\n void write(final Schema schema);\n\n /**\n * Create a table in the database.\n *\n * @param table table to be written\n */\n void write(final Table table);\n\n /**\n * Bulk write data to a database table.\n *\n * @param table table to write to\n * @param rows stream of rows to be written\n */\n void write(final Table table, final Stream<List<Object>> rows);\n\n /**\n * Truncate a table.\n * \n * @param table table to truncate\n */\n void truncate(Table table);\n\n /**\n * Create a user in the database.\n *\n * @param user to be created\n */\n void write(final User user);\n\n /**\n * Grant system privileges to a user.\n *\n * @param user user who gets the privileges\n * @param privileges privileges to be assigned\n */\n void write(final User user, final GlobalPrivilege... privileges);\n\n /**\n * Grant privileges to a database object to a user.\n *\n * @param user user who gets the privileges\n * @param object object the privileges apply to\n * @param objectPrivileges privileges to be assigned\n */\n void write(final User user, final DatabaseObject object, final ObjectPrivilege... objectPrivileges);\n\n /**\n * Execute the contents of a SQL script file.\n *\n * @param sqlFiles path(s) to the script file(s)\n */\n void executeSqlFile(Path... sqlFiles);\n\n /**\n * Drop a table.\n *\n * @param table table to drop\n */\n void drop(Table table);\n\n /**\n * Drop a user.\n * \n * @param user to drop\n */\n void drop(User user);\n\n /**\n * Drop a schema.\n * \n * @param schema to drop\n */\n void drop(Schema schema);\n}", "title": "" }, { "docid": "311e84dea3914ab6d79dd53d5e5577bb", "score": "0.61959517", "text": "public interface DatabaseTranslator {\n\n public static String DBTYPE_ORACLE = \"ORACLE\";\n public static String DBTYPE_MYSQL = \"MYSQL\";\n public static String DBTYPE_HSQLDB = \"HSQLDB\";\n public static String DBTYPE_DB2 = \"DB2\";\n public static String DBTYPE_MSSQL = \"MSSQL\";\n public static String DBTYPE_POSTGRES = \"POSTGRES\";\n public static String DBTYPE_DERBY = \"DERBY\";\n\n /**\n * Defines the valid database types\n */\n public static String[] DBTYPES = {\n DBTYPE_HSQLDB,\n DBTYPE_MYSQL,\n DBTYPE_ORACLE,\n DBTYPE_DERBY,\n DBTYPE_POSTGRES,\n DBTYPE_DB2,\n DBTYPE_MSSQL\n };\n\n /**\n * @return the database constant for the DB handled by this translator\n */\n public String handlesDB();\n\n /**\n * @param tableName the name of the table which the row was inserted into\n * @param idColumnName the name of the id column\n * @return the query to get the auto generated id of the last insert\n */\n public String makeAutoIdQuery(String tableName, String idColumnName);\n\n /**\n * @param sql any SELECT query\n * @param start the row to start on\n * @param limit the maximum number of rows to return\n * @param tableName the name of the table which the query was executed on\n * @return the SELECT based on the original with limits applied\n */\n public String makeLimitQuery(String sql, long start, long limit, String tableName);\n\n}", "title": "" }, { "docid": "de3ce561be8d77b9df02f915047e30a8", "score": "0.61885154", "text": "public interface Database {\n AutoCloseable getConnection();\n}", "title": "" }, { "docid": "5adee29950da8f2eee0f57e66b892181", "score": "0.6178603", "text": "private Database(){\n\t\t\n\t}", "title": "" }, { "docid": "a071fe01411e45b9f3509f9698d6b88b", "score": "0.61692715", "text": "public interface DubboDBInterfaceTest {\n\n public List<Aaaa> getAaaaByDb(Integer id);\n\n public String insetAaaaByDb(Aaaa aaaa);\n\n public String updateAaaaByDb(Aaaa aaaa);\n\n public String deleteAaaaByDb(Integer id);\n\n}", "title": "" }, { "docid": "e9f3ee801794b6941d163da564af41a4", "score": "0.6168067", "text": "public interface IBD<Object> {\n //Métodos que se deben implementar para los Repositorios y para indicar que métodos generar para el uso de la BD\n\n public boolean Save(Object object);\n\n public boolean Update(Object object);\n\n public boolean Delete(Object object);\n\n public ArrayList<Object> GetAll();\n\n public ArrayList<Object> GetBy(Object object);\n}", "title": "" }, { "docid": "674863e93c864ba38fd9c467f8c5209f", "score": "0.6151806", "text": "DatabasePlatform databasePlatform();", "title": "" }, { "docid": "ac478fad5ea79d6bf935643efbd8bd8c", "score": "0.615085", "text": "public interface ConnectionManager {\r\n /**\r\n * Gets a {@link Connection} to database\r\n *\r\n * @return the connection to DB\r\n */\r\n Connection getConnection() throws SQLException;\r\n\r\n /**\r\n * Gets the {@link DataSource}.\r\n *\r\n * @return the DataSource we use\r\n */\r\n DataSource getDataSource();\r\n}", "title": "" }, { "docid": "e83cfe5662cdb1189fea2f02ed0878a6", "score": "0.61483335", "text": "public interface IJMSOperaHouseDAO \r\n{\r\n\t\r\n\tpublic void connect() throws ClassNotFoundException, SQLException;\r\n\r\n\tpublic List<RehearsalJMSDTO> getRehearsals() throws SQLException;\r\n\r\n\tpublic void disconnect() throws SQLException;\r\n\r\n}", "title": "" }, { "docid": "2dcde91b4b313b67f7a7327c3161fff2", "score": "0.6141225", "text": "@ServiceImplAnnotation(serviceImpl=DatabaseService.class)\r\npublic interface IDatabaseService extends IService {\r\n\t\r\n\t/**\r\n\t * @return Crea la conexion a la bbdd de la aplicacion\r\n\t */\r\n\tConnection createConnection();\r\n}", "title": "" }, { "docid": "60e9d10726ebbc4c6b599bf04cc9735e", "score": "0.61402327", "text": "public interface ConnectionOperate {\n\n /**\n * 创建一个连接\n *\n * @return\n */\n boolean create(DatabaseConfig config);\n\n /**\n * 删除连接\n *\n * @return\n */\n boolean delete(Long id);\n\n /**\n * 连接数据库\n *\n * @return\n */\n boolean connection();\n\n /**\n * 编辑连接\n *\n * @return\n */\n boolean edit(DatabaseConfig config);\n\n /**\n * 查询所有连接\n *\n * @return\n */\n List<DatabaseConfig> query();\n\n}", "title": "" }, { "docid": "a2fdb6830015299ea4a92cdf694b5014", "score": "0.6125671", "text": "public interface Database {\n void write() throws IOException;\n\n // ===============================================\n // Getters\n // ===============================================\n TableFindable<Requirement> getRequirementTable();\n\n TableFindable<Staff> getStaffTable();\n\n TableFilterableByAssignmentElements<Assignment> getAssignmentTable();\n\n // ===============================================\n // Cleaner Method\n // ===============================================\n void cleanlyRemove(AssignmentElement item);\n\n // ===============================================\n // Filter Method\n // ===============================================\n ArrayList<Requirement> getRequirementsWithoutEnoughPeople();\n\n // ===============================================\n // Get next Id\n // ===============================================\n int getNextId(ModeSelector mode);\n\n // ===============================================\n // Display Matrices\n // ===============================================\n Object[][] getRequirementsDisplayMatrix();\n\n Object[][] getStaffDisplayMatrix();\n}", "title": "" }, { "docid": "b7a45dbfde26cddf517dceb50db7821e", "score": "0.60976493", "text": "public interface DBConnection {\n\t/**\n\t * Close the connection.\n\t */\n\tpublic void close();\n\n\t// favorite docs\n\t/**\n\t * add the favorite documents for a user.\n\t * \n\t * @param userId\n\t * @param docIds\n\t */\n\tpublic void addFavoriteDocs(String userId, List<String> docIds);\n\n\t/**\n\t * delete the favorite documents for a user.\n\t * \n\t * @param userId\n\t * @param docIds\n\t */\n\tpublic void deleteFavoriteDocs(String userId, List<String> docIds);\n\n\t/**\n\t * Get the favorite document Ids for a user.\n\t * \n\t * @param userId\n\t * @return docIds\n\t */\n\tpublic Set<String> getFavoriteDocIds(String userId);\n\n\t/**\n\t * Get the favorite documents for a user.\n\t * \n\t * @param userId\n\t * @return documents\n\t */\n\tpublic Set<MyDoc> getFavoriteDocs(String userId);\n\n\t/**\n\t * Get the favorite documents for a user.\n\t * \n\t * @param userId\n\t * @return documents\n\t */\n\tpublic MyDoc getDoc(String docId);\n\t\n\t// query logs\n\t/**\n\t * Get the query Ids for a user.\n\t * \n\t * @param userId\n\t * @return docIds\n\t */\n\tpublic Set<String> getQueryIds(String userId);\n\t\n\t/**\n\t * Gets query log of a user\n\t * \n\t * @param userId\n\t * @return queries\n\t */\n\tpublic Set<Query> getQueryLog(String userId);\n\t\n\t/**\n\t * add query into query log of a user\n\t * \n\t * @param userId\n\t * @param queries\n\t */\n\tpublic void addQuery(Query query);\n\t\n\t/**\n\t * delete query log of a user\n\t * \n\t * @param userId\n\t * @param queries\n\t */\n\tpublic void deleteQuery(String userId, List<String> queryIds);\n\t\n\t/**\n\t * Save document into db.\n\t * \n\t * @param doc\n\t */\n\tpublic void addDoc(MyDoc doc);\n\t\n\n\t/**\n\t * Save document into db.\n\t * \n\t * @param doc\n\t */\n\tpublic void addUser(User user);\n\t\n\t/**\n\t * Get full name of a user. (This is not needed for main course, just for demo\n\t * and extension).\n\t * \n\t * @param userId\n\t * @return full name of the user\n\t */\n\tpublic String getFullname(String userId);\n\n\t/**\n\t * Return whether the credential is correct. (This is not needed for main\n\t * course, just for demo and extension)\n\t * \n\t * @param userId\n\t * @param password\n\t * @return boolean\n\t */\n\tpublic boolean verifyLogin(String userId, String password);\n}", "title": "" }, { "docid": "2b295e72dd0524535ecbd8663f4b95fb", "score": "0.6095291", "text": "protected abstract MongoDatabase getDatabase();", "title": "" }, { "docid": "1cec19d22a166d15c244244fc3c80140", "score": "0.60895324", "text": "public interface DatabaseAccessObject<T extends HasID> {\n\n void create (T t);\n\n void update (T t);\n\n List<T> getAll ();\n\n void remove (T t);\n\n T getWithID(int id);\n\n Dao<T, Integer> getGenericDao();\n\n JdbcPooledConnectionSource getConnectionSource();\n}", "title": "" }, { "docid": "0c0baf2e430e0d6936ee0758483901c4", "score": "0.6085103", "text": "public interface DBService {\n\n String getLocalStatus();\n\n void save(UserProfile dataSet);\n\n UserProfile read(long id);\n\n UserProfile readByName(String name);\n\n List<UserProfile> readAll();\n\n long readCountAll();\n\n void update(UserProfile dataSet);\n\n List<UserProfile> readLimitOrder(int limit);\n\n void shutdown();\n}", "title": "" }, { "docid": "2967eb222021dc1c5b2e7b57ea788664", "score": "0.60801226", "text": "public interface FHIRDbDAO {\n public static final String FHIRDB_JNDI_NAME_DEFAULT = \"jdbc/fhirProxyDataSource\";\n public static final String PROPERTY_DB_DRIVER = \"dbDriverName\";\n public static final String PROPERTY_DB_URL = \"dbUrl\";\n public static final String PROPERTY_DB2_USER = \"user\";\n public static final String PROPERTY_DB2_PSWD = \"password\";\n\n /**\n * Acquires and returns a JDBC database connection to the FHIR database.\n * If no DB Properties are available, an attempt is made to acquire the connection via a Datasource obtained via\n * JNDI. If DB Properties are present, those properties are used to build the Connection.\n * \n * @return Connection - A connection to the FHIR database.\n * @throws FHIRPersistenceDBConnectException\n */\n Connection getConnection() throws FHIRPersistenceDBConnectException;\n\n /**\n * Returns a previously set externally managed DB connection, used by the DAO for all DB activity.\n * \n * @return Connection\n */\n Connection getExternalConnection();\n\n /**\n * Sets an externally managed DB connection, used by the DAO for all DB activity.\n * \n * @param connection\n */\n void setExternalConnection(Connection connection);\n\n /**\n * @return true if this DAO is connected to a DB2 database.\n * @throws Exception\n */\n boolean isDb2Database() throws Exception;\n}", "title": "" }, { "docid": "5814a2f0bdf5a1c3f110f145b44b23a1", "score": "0.60774887", "text": "public interface DataPlatformInterface extends DataConnectionInterface, RelationalDatabaseInterface\n{\n}", "title": "" }, { "docid": "afaefece9945dc9f0b1a538726c08a0a", "score": "0.6069048", "text": "public interface DataBase {\n void save(Integer element);\n\n void removeByIndex(int indexOfElement);\n\n void removeByElement(int element);\n\n ArrayList<Integer> findAllElements();\n}", "title": "" }, { "docid": "5bd73c0724970b8794cce1d2c2055a29", "score": "0.6063203", "text": "public interface Persistable {\n /**\n * Provides logic that the implementing object is correctly stored in the database\n * @param db The database handler\n * @throws SQLException Generic Database Exception\n */\n public void persistInDatabase(DatabaseConnector db) throws SQLException;\n}", "title": "" }, { "docid": "48e06a9aea2f781503ac484aa8e597f2", "score": "0.6052438", "text": "public interface DBManager {\n\n // Get methods\n ElasticsearchEntity getById(Type type, Long id);\n ArrayList<ElasticsearchEntity> getAll(Type type);\n void add(ElasticsearchEntity envelope);\n}", "title": "" }, { "docid": "45b44047a749cf878ead6f8d10613631", "score": "0.603882", "text": "public interface JobsDAO {\r\n\t\r\n\t/**\r\n\t * Gets the jobs.\r\n\t *\r\n\t * @param connection the connection\r\n\t * @param request the request\r\n\t * @param response the response\r\n\t * @return the array list\r\n\t */\r\n\tpublic List<Jobs> GetJobs();\r\n\r\n\t\r\n\r\n}", "title": "" }, { "docid": "f610072b0e4df2622c3bb2d391102a78", "score": "0.60371673", "text": "public interface StoreDAO {\n\n}", "title": "" }, { "docid": "d3be9b4e13da8deee372cb15da57a044", "score": "0.6033614", "text": "public interface RespuestaDAO {\n public Respuesta createRspuesta(String temaId, String userId, String contenido) throws SQLException;\n\n public Respuesta getResputestaById(String id) throws SQLException;\n\n public RespuestasCollection getRespuestasFromTema(String temaId) throws SQLException;\n\n public Respuesta updateRespuesta(String id, String contenido) throws SQLException;\n\n public boolean deleteRespuesta(String id) throws SQLException;\n\n\n}", "title": "" }, { "docid": "6336574fe9aaa405f0961b0646fd0e09", "score": "0.6031533", "text": "public interface DBManager\n{\n public List<DBCity> getAllCities();\n\n public List<DBArea> getAreaInCity(int cityId);\n\n public List<DBMall> getMallsInCityArea(int cityId, int areaId);\n}", "title": "" }, { "docid": "f30fe63ca9809c8e71b9334421928343", "score": "0.6030283", "text": "public interface GeneticDAO <T> {\n void add(T t) throws SQLException;\n void update(T t) throws SQLException;\n void delete(T t) throws SQLException;\n Collection getAll() throws SQLException;\n T getById(Integer id) throws SQLException;\n void printAll() throws SQLException ;\n}", "title": "" }, { "docid": "0f03a38fdf77a6296a9ca64ec18eef83", "score": "0.6017955", "text": "public interface AdminDao {\n void installSchema();\n}", "title": "" }, { "docid": "e4bca62e0c7d6b351ef911d655f9e9c3", "score": "0.60171056", "text": "public interface IDatabase {\n void startTransaction();\n void endTransaction();\n IUserDao getUserDao();\n IGameDao getGameDao();\n void setMaxCommands(int maxCommands);\n}", "title": "" }, { "docid": "c4ec14c2e9e2f7f41f38cb502d2df293", "score": "0.6014751", "text": "public interface DatabaseObjectAddable {\n public Map<String, Object> getDatabaseObjectProperties();\n\n}", "title": "" }, { "docid": "2546ed9d694a57c933219e64b8471da1", "score": "0.6010272", "text": "public interface IDBSchemaDelegator {\n\n /**\n * Gets the db schema.\n *\n * @param tableSpecs\n * the table specs\n * @return the db schema\n * @throws P4JavaException\n * the p4 java exception\n */\n List<IDbSchema> getDbSchema(List<String> tableSpecs) throws P4JavaException;\n}", "title": "" }, { "docid": "1ccb85c49a254c0e5254248f27677816", "score": "0.60073686", "text": "public interface MaterialService {\n void insertMagazine(Magazine magazine) throws SQLException;\n\n void insertNewspaper(Newspaper newspaper) throws SQLException;\n\n void insertBook(Book book) throws SQLException;\n\n void deleteMagazine(Magazine magazine) throws SQLException;\n\n void deleteNewspaper(Newspaper newspaper) throws SQLException;\n\n void deleteBook(Book book) throws SQLException;\n\n void updateMagazine(Magazine magazine) throws SQLException;\n\n void updateNewspaper(Newspaper newspaper) throws SQLException;\n\n void updateBook(Book book) throws SQLException;\n\n List<Magazine> viewAllMagazine() throws SQLException;\n\n List<Newspaper> viewAllNewspaper() throws SQLException;\n\n List<Book> viewAllBook() throws SQLException;\n}", "title": "" }, { "docid": "a0e8ce600092f01042ed383f92216bdf", "score": "0.6005256", "text": "public interface IDataBase {\n\n\t/**\n\t * Add a new auction to database\n\t * \n\t * @param auction: Auction to add\n\t * @throws NoUserLoggedIn: Need an logged user to add auction\n\t * @throws NotAuctionSeller : Trying to add an auction of an user\n\t * in other user session\n\t */\n\tvoid addAuction(IAuction auction)\n\t\t\tthrows NotAuctionSeller, NoUserLoggedIn;\n\t\n\t/**\n\t * Add a new user to database\n\t * \n\t * @param user: User to add\n\t * @throws UserAlreadyExists: user with the same username is already in the\n\t * database\n\t */\n\tvoid addUser(IUser user) throws UserAlreadyExists;\n\t\n\t/**\n\t * Get user with given user name\n\t * \n\t * @param username: User name of user to look for\n\t * @return User with givens user name, null if there's no such user\n\t */\n\tIUser getUser(String username);\n\t\n\t/**\n\t * Create and return a new iterator for all users sorted first by type then\n\t * by username alphabetically\n\t * \n\t * @return Iterator to all users\n\t */\n\tIterator<IUser> getUsers();\n\t\n\t/**\n\t * Creates and returns a new iterator for all users sorted by sales amount\n\t * \n\t * @return Iterator to all users sorted by amount of sales\n\t */\n\tIterator<IUser> getUsersBySales();\n\t\n\t/**\n\t * Create and returns a new iterator for all auctions of givens product category\n\t * \n\t * @param category: Product category to look for\n\t * @return Auctions selling products of givens category\n\t */\n\tIterator<IAuction> getAuctions(EProductCategory category);\n\t\n\t/**\n\t * Create and returns a new iterator for auctions of Tablets with givens size\n\t * \n\t * @param size: size of Tablet to look for\n\t * @return Iterator for Tablets' auctions\n\t */\n\tIterator<IAuction> getAuctionsTabletBySize(int size);\n\n\t/**\n\t * Add product to database\n\t * \n\t * @param product: Product to add\n\t * @throws ProductAlreadyExists: Product already exist in database\n\t * @throws NoUserLoggedIn: Need a logged user to add product to\n\t */\n\tvoid addProduct(IProduct product)\n\t\t\tthrows ProductAlreadyExists, NoUserLoggedIn;\n\t\n\t/**\n\t * Report to the database that <code>auction</code> was closed.\n\t * \n\t * @param auction: Auction to report that has been closed\n\t */\n\tvoid reportClosedAuction(IAuction auction);\n\t\n}", "title": "" }, { "docid": "cc81b07e48f2c5fa8bc2f29f66313783", "score": "0.6003351", "text": "public interface MetalService {\n\n public int insertMetal(MetalBO metalBO)throws Exception;\n\n public int updateMetal(MetalBO metalBO)throws Exception;\n\n List<MetalBO> queryMetal(MetalBO metalBO)throws Exception;\n\n public int deleteMetal(MetalBO metalBO) throws Exception;\n}", "title": "" }, { "docid": "ce1911429a4cf34a7ee6c74b07ab7ec5", "score": "0.59912485", "text": "public interface Dao {\n}", "title": "" }, { "docid": "af9f16eb837ee7ddd965df3c0fee6216", "score": "0.5987745", "text": "public interface UserDAO {\n\n User create(User user) throws DatabaseException;\n\n void update(User user) throws DatabaseException;\n\n void delete(User user) throws DatabaseException;\n\n User find(Long id) throws DatabaseException;\n\n Collection<User> find(String firstName, String lastName) throws DatabaseException;\n\n List<User> findAll() throws DatabaseException;\n\n /**\n * Set connection factory for User's data access object.\n * @param connectionFactory\n */\n void setConnectionFactory(ConnectionFactory connectionFactory);\n}", "title": "" }, { "docid": "15c66271dfbd73f00ef2b4371b061c8c", "score": "0.59847337", "text": "public interface DatabaseOpeningFacade {\n\n /**\n * Create a DAOFactory that provides DAOs to access the given\n * database.\n * @param dataSource the data source for other connection to\n * the database\n * @param jdbcTemplate the Spring JDBC Template access to the\n * database\n * \n * @return your plugin's DAOFactory sub-interface by which the\n * instance will later be retrieved by your plugin, and an\n * instance of this type, encapsulated in an InstancePair\n * \n */\n InstancePair<DAOFactory> createDAOFactory(\n DataSource dataSource,\n SimpleJdbcTemplate jdbcTemplate);\n}", "title": "" }, { "docid": "384494c7651ef4b3e3ff9a0f4d158adf", "score": "0.5977465", "text": "public interface TestDAO {\n}", "title": "" }, { "docid": "00ea2c11ce85c9107793d46376c7d916", "score": "0.5964078", "text": "public interface IService {\n String selectAll();\n String selectOne(int id);\n String insert(String name, String address);\n}", "title": "" }, { "docid": "0ba5bf6cdddbe11636b1702fc5efe72a", "score": "0.5950131", "text": "public interface IUbicacionEdicionDAO {\r\n public List<UbicacionEdicion> obtenerUbicaciones();\r\n public void crear(UbicacionEdicion ubicacionEdicion);\r\n public void modificar(UbicacionEdicion ubicacionEdicion);\r\n public void borrar(UbicacionEdicion ubicacionEdicion);\r\n}", "title": "" }, { "docid": "08909f165e7467be9330c52135f94c56", "score": "0.59435236", "text": "public abstract ISitioDAO getSitioDAO();", "title": "" }, { "docid": "ce7a0624c7703df117f7f11970fdb3d6", "score": "0.5942441", "text": "public interface DAO<T> {\n\n\t// ***************************************\n\t// *** Establish a Database Connection ***\n\t// ***************************************\n\tpublic default Connection getConnection() throws SQLException {\t\t\n\t\tString url = \"jdbc:mysql://localhost:3306/prs?autoReconnect=true&useSSL=false\";\t\t\n\t\tString usr = \"prs_user\";\n\t\tString psw = \"prs_user\";\n\t\tConnection cnx = DriverManager.getConnection(url,usr,psw);\n\t return cnx;\n\t}\n\t\n\tList<T> queryAll();\n\t\n\tT queryById(int id);\n\t\n\tT queryByUniqueKey(String colName, String colValue);\n\t\n\tboolean insert(T t);\n\t\n\tboolean update(T t);\n\t\n\tboolean delete(T t);\n\n}", "title": "" }, { "docid": "2ee39911c0df1d0af5f07176020ed17c", "score": "0.5940846", "text": "public interface SolicitudDAO extends GenericoDAO<Solicitud,Integer>{\r\n public static String BEAN_NAME = \"solicitudDAO\";\r\n \r\n public List<Solicitud> obtenerSolicitudesPorIdProcesoNumeroTramite(Integer id_proceso, Integer numero_tramite, Integer id_solicitud_omitida);\r\n \r\n public List<Solicitud> obtenerSolicitudesPorUsuarioNemonico(String identificacion, String nemonico);\r\n \r\n}", "title": "" }, { "docid": "325295bc6cbb9837d70725c34bfd116a", "score": "0.5923817", "text": "public interface TestService {\n\n void test();\n\n void sqlTest();\n}", "title": "" }, { "docid": "e7f1ae3807f0b14dd23d132377e73e49", "score": "0.59234095", "text": "public interface IController<T> {\n\n T insert(T entidade, Context context) throws SQLException;\n\n long update (T entidade, Context context) throws SQLException;\n\n List<T> listAll(Context context) throws SQLException;\n\n int delete(T entidade, Context context) throws SQLException;\n\n int deleteAll(Context context) throws SQLException;\n\n int count(Context context) throws SQLException;\n}", "title": "" }, { "docid": "61d5307e01dae05e3c7f20745ad2788c", "score": "0.59140825", "text": "public interface ISQLiteHelper {\n\n void close();\n\n void registerDao(AbstractDao dao, Object daoInfo);\n\n void createDataBase();\n\n void registerDb(AbstractDao dao);\n}", "title": "" }, { "docid": "b32d869d74b9e144a4e91a14a01ca80f", "score": "0.5913557", "text": "public interface DatabaseSearch {\r\n\tpublic List<SongData> search(String broadTerm, String title, String artist,\r\n\t\t\tString album, int sortBy, String usename);\r\n\r\n\tpublic List<String> getAllUsers();\r\n}", "title": "" }, { "docid": "c72df1b03c19f5d90bbda48c0ab3c658", "score": "0.58975315", "text": "public interface IMachineDao extends IDAO<Integer, Machine> {\n\n public boolean removeById(int id) throws Exception;\n\n /**\n * 分页查询容器信息\n * @param clown\n * @param keyWord\n * @param currentPage\n * @param lineSize\n * @return\n * @throws SQLException\n */\n public List<Machine> getAllMachinesPag(String clown, String keyWord,\n Integer currentPage, Integer lineSize) throws SQLException;\n\n public boolean changeStatus(int id,int changeStatus) throws SQLException;\n\n}", "title": "" }, { "docid": "7e0baf5123b633ddb5919a45d1262dcc", "score": "0.58957046", "text": "public interface AeropuertoDAO extends CRUD<Aeropuerto> {\n}", "title": "" }, { "docid": "51e298e693aa1a757cf8d4fcfc16deb2", "score": "0.58949596", "text": "public interface IDataBaseManager {\n SQLiteDatabase openPresent();\n void openNew();\n DataBaseManager close();\n}", "title": "" }, { "docid": "a373ede696a7707d3a8913f5cb6c2d2c", "score": "0.58940715", "text": "public interface DatabaseConnectionValidator {\n\n boolean isConnected();\n\n DatabaseType getDatabaseType();\n\n}", "title": "" }, { "docid": "13b641d3a3ca6e8b5e22467b6f554068", "score": "0.5886664", "text": "public interface DocumentDAO extends DAO<Document, String> {\n}", "title": "" }, { "docid": "2b820f3681e0f050ec627be7027ab1d4", "score": "0.5883794", "text": "public interface AdminDAO {\r\n\r\n\t/**\r\n\t * This method is used to do admin login\r\n\t * \r\n\t * @param username {@code String}, password {@code String}\r\n\t * @return {@code true} if login successfully , otherwise {@code false}\r\n\t */\r\n\tboolean adminLogin(String username, String password);\r\n}", "title": "" }, { "docid": "9970e198e9428da10453c2e69c8162fe", "score": "0.5881923", "text": "public interface JobDAO {\r\n public int insertJob();\r\n public boolean deleteJob();\r\n public Job findJob(String id, Connection conn);\r\n public boolean updateJob();\r\n public Map<Integer,String> getJobList(Connection conn);\r\n //public RowSet selectCarsRS();\r\n}", "title": "" }, { "docid": "02e9ad81ff30ae19342425a6ec426952", "score": "0.58808583", "text": "public interface ISponsorDB {\n public String createSponsor(String name, String description, Address address);\n public String getSponsor(long sponsorId);\n public String updateSponsor(long sponsorId, String name, String description, Address address);\n public String deleteSponsor(long sponsorId);\n public boolean doesSponsorExist(long sponsorId);\n}", "title": "" }, { "docid": "2f0dd935819556e6d520f9797202c041", "score": "0.58786404", "text": "public interface JDBCService {\n /**\n * @return The data source or null if JDBC is disabled.\n */\n DataSource getDataSource();\n\n /**\n * This method checks the current context for an existing connection or creates a new connection and puts it in the\n * current context.\n *\n * @return The connection or null if JDBC is disabled.\n */\n Connection setupConnection();\n\n /**\n * Removes the connection (if any) from the current context.\n */\n void tearDownConnection();\n}", "title": "" }, { "docid": "8397ace53128a094075b8fcf5f5f49be", "score": "0.5877939", "text": "public interface DBModel {\n boolean login(final User user);\n boolean register(final User user);\n}", "title": "" }, { "docid": "152368355c578fcb232ef1319880202c", "score": "0.58762693", "text": "public interface DAOFactory {\n /**\n *This method create connection with DB.\n *@return Connection - connectin with DB\n */\n Connection getConnection()throws SQLException;\n\n}", "title": "" }, { "docid": "4791c0543a7d75c0747b7de97fd4edea", "score": "0.5870368", "text": "public interface DataMetaConfigDAO {\n\n\n}", "title": "" }, { "docid": "c9bb45f8c8db75af0627a02afb52641d", "score": "0.58691686", "text": "public interface StudentDAO {\n /**\n * query all students\n * @return\n */\n List<Student> query();\n\n public void save(Student student);\n}", "title": "" }, { "docid": "9ce30176fda2621d1b460029d0730efb", "score": "0.5867942", "text": "public interface ClientDAO {\n\n //GET METHODS\n public Client getClientById(int clientId);\n public List<Client> getClientList();\n\n //EXECUTE METHODS\n public int insertClient(Client client);\n public boolean updateClient(Client client);\n public boolean deleteClient(int clientId);\n}", "title": "" }, { "docid": "535ac17e29f96813a3f71561bf498833", "score": "0.5864518", "text": "public interface IPlayerDB {\n public String createPlayer(String firstname, String lastName, String email, String description, Address address, Long sponsorId);\n public String getPlayer(long playerId);\n public String updatePlayer(long playerId, String firstname, String lastName, String email, String description, Address address, Long sponsorId);\n public String deletePlayer(long playerId);\n}", "title": "" }, { "docid": "fd37ff13d16d654d63efd1b00ca89e41", "score": "0.5863457", "text": "public interface DAO<T>{\n\t\n\tT get(String code); //read method: SELECT* from table to get row\n\tList<T> getAll(); //read method \n\tboolean add(T t);\n\tboolean update(T t);\n\tboolean delete(T t);\n\t\n\t\n}", "title": "" }, { "docid": "71debb33b8bf44d1db641bfd0101beff", "score": "0.5861953", "text": "public interface GenericDatabaseInterface extends UserInterface, EmotionInterface {\n\n void init(Context context);\n\n}", "title": "" }, { "docid": "40474e4378c42d6f6cf28fcb55d42afc", "score": "0.5859327", "text": "public interface IAnimalService {\n\n void createDefaultAnimal() throws SQLException;\n}", "title": "" }, { "docid": "4d5880b7c6de926c49b2f2053f606eaf", "score": "0.58585066", "text": "public interface ItemDAO {\n\n public List<Item> getAllItems();\n}", "title": "" }, { "docid": "d8609e744b6018bf1dd4a33ab187def3", "score": "0.5855623", "text": "public interface IUserDAO {\n /**\n * Gets user.\n *\n * @param name the name\n * @param password the password\n * @return the user\n */\n User getUser (String name, String password);\n\n /**\n * Add user.\n *\n * @param name the name\n * @param password the password\n */\n void addUser(String name, String password);\n\n /**\n * Gets user by name.\n *\n * @param name the name\n * @return the user by name\n */\n User getUserByName (String name);\n}", "title": "" }, { "docid": "7ac4d754318bdaf49cdf494e33b5ac41", "score": "0.584401", "text": "public abstract String getNomeDatabase();", "title": "" }, { "docid": "22fbf85e33d471bdceff616e10db9d91", "score": "0.58434343", "text": "public interface UserDAO {\r\n\r\n /**\r\n * query database for all users\r\n * @return List of all users in database\r\n */\r\n List<User> getAllUsers();\r\n\r\n /**\r\n * query database for specific user\r\n * @param request GetUserRequest object\r\n * @return user from database\r\n */\r\n User getUser(GetUserRequest request);\r\n\r\n /**\r\n * insert user into database\r\n * @param user CreateUserRequest object\r\n * @return newly created user\r\n */\r\n User createUser(User user);\r\n}", "title": "" }, { "docid": "274eddb1eee3bc88b2938de05cd88a3e", "score": "0.584001", "text": "public interface DBStrategy {\n\n Object getConextion();\n\n int executeStatement(String statement);\n\n List executeSelectStatement(String statement);\n\n void closeConnection();\n\n boolean makeTransactions(List<String> statements);\n\n void makeBackUp();\n\n Object statConnection();\n\n}", "title": "" }, { "docid": "33ae5f0656be1629c7113e864f70c7bb", "score": "0.5837136", "text": "public interface IntroDAO {\r\n\r\n}", "title": "" }, { "docid": "935eb502e98201ea544d39821035bfa4", "score": "0.5836711", "text": "public interface DatabaseService {\n\n /**\n * Stores an image in the Storage Service and its information in the database\n * @param imageInfo an Image object containing the information of the image, apart from the path\n * @param image the image to be stored. its path will be added in imageInfo\n * @param enablePublicReadAccess enables public read access to the image\n * @return returns true if the process was a success, false otherwise\n */\n Boolean storeImage(Image imageInfo, MultipartFile image, Boolean enablePublicReadAccess);\n\n /**\n * Stores an image in the Storage Service and its path in the database. The rest of the fields in\n * Image will be left empty\n * @param image the image to be stored\n * @param enablePublicReadAccess enables public read access to the image\n * @return returns true if the process was a success, false otherwise\n */\n Boolean storeImage(MultipartFile image, Boolean enablePublicReadAccess);\n\n /**\n * Stores an image in the Storage Service and its information in the database\n * @param title the title of the image\n * @param author the author of the image\n * @param writtenDate the date when it was written\n * @param page the page from where it was taken\n * @param description the description of the image\n * @param image the image to be saved\n * @param enablePublicReadAccess enables public read access to the image\n * @return returns true if the process was a success, false otherwise\n */\n Boolean storeImage(String title, String author, String writtenDate,\n String page, String description, MultipartFile image, Boolean enablePublicReadAccess);\n\n /**\n * Returns a list of all the images\n * @return a list with all the images stored\n */\n List<Image> getImages();\n\n /**\n * Returns the image with the given id\n * @param id the id of the image to look for\n * @return the image with that id\n */\n Optional<Image> getImageById(Long id);\n\n /**\n * Deletes an image from the Storage and the Database given its id\n * @param id the id of the image to be deleted\n * @return returns true if the process was a success, false otherwise\n */\n Boolean deleteImageById(Long id);\n\n /**\n * Deletes an image from the Storage and the Database given its\n * object representation in the database\n * @param image the object representing the image in the Database\n * @return returns true if the process was a success, false otherwise\n */\n Boolean deleteImage(Image image);\n\n}", "title": "" }, { "docid": "0266b8eaa0449dd4e7e8642e4d9237ef", "score": "0.5835194", "text": "public interface CarDAO {\n List<Car> findAvailableCarByType(CarType carType);\n Car getById(long id);\n void updateInDB(Connection connection, Car car) throws SQLException;\n}", "title": "" } ]
ac267706c8a56ae5d574dfba6feb62d5
.liubaninc.m0.storage.ShareEncryptStorage ShareEncryptStorage = 1;
[ { "docid": "8bb27aa144021e97db0ff1d47a130a08", "score": "0.645733", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder() {\n return getShareEncryptStorage();\n }", "title": "" } ]
[ { "docid": "b61eeb0874e9b68b32024c8a05d02277", "score": "0.787022", "text": "liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage();", "title": "" }, { "docid": "ede3a637a2b525ea8b8a7506c8569e64", "score": "0.7132145", "text": "boolean hasShareEncryptStorage();", "title": "" }, { "docid": "b4993fd89866ef0f8d0be212dfcab30e", "score": "0.70414805", "text": "liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage(int index);", "title": "" }, { "docid": "f65ee05c717ef86593f8dd664e851e02", "score": "0.6941132", "text": "liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder();", "title": "" }, { "docid": "5b1f86c1d6947f6623a31cde0a32142f", "score": "0.6812109", "text": "liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage();", "title": "" }, { "docid": "825f79e918c47b3f17e96111e3e29c48", "score": "0.65553707", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder addShareEncryptStorageBuilder() {\n return getShareEncryptStorageFieldBuilder().addBuilder(\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance());\n }", "title": "" }, { "docid": "14f9e57931198754ff861ec1bf43aa61", "score": "0.64745456", "text": "public boolean hasShareEncryptStorage() {\n return shareEncryptStorage_ != null;\n }", "title": "" }, { "docid": "f6df505b805fe7e58b8162aeb678ac47", "score": "0.64741176", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage(int index) {\n return shareEncryptStorage_.get(index);\n }", "title": "" }, { "docid": "2c16716bdd9f78b0441fc8902e69af8b", "score": "0.64179546", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage() {\n return shareEncryptStorage_ == null ? liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance() : shareEncryptStorage_;\n }", "title": "" }, { "docid": "e6944f38aa46e106a6ab779a6c52f85c", "score": "0.639564", "text": "public boolean hasShareEncryptStorage() {\n return shareEncryptStorageBuilder_ != null || shareEncryptStorage_ != null;\n }", "title": "" }, { "docid": "dcc504dd2445ddc35630c739ca5b494f", "score": "0.6342747", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage() {\n if (shareEncryptStorageBuilder_ == null) {\n return shareEncryptStorage_ == null ? liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance() : shareEncryptStorage_;\n } else {\n return shareEncryptStorageBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "098d17875a0f277a6a77fd9a8b22c1a0", "score": "0.62861896", "text": "int getShareEncryptStorageCount();", "title": "" }, { "docid": "8f392ef2f39e2c471377bf5d85317950", "score": "0.62791425", "text": "java.util.List<liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage> \n getShareEncryptStorageList();", "title": "" }, { "docid": "f0fb1e2290416c5aa896161e66a1cef4", "score": "0.62723446", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage getShareEncryptStorage(int index) {\n if (shareEncryptStorageBuilder_ == null) {\n return shareEncryptStorage_.get(index);\n } else {\n return shareEncryptStorageBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "0cc926b108b8210603fdbc93032d807b", "score": "0.62006813", "text": "public java.util.List<liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage> getShareEncryptStorageList() {\n return shareEncryptStorage_;\n }", "title": "" }, { "docid": "bb4044ded20f53bdd2cb4a864bca2511", "score": "0.61128294", "text": "public Builder setShareEncryptStorage(liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\n if (shareEncryptStorageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n shareEncryptStorage_ = value;\n onChanged();\n } else {\n shareEncryptStorageBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "20ed7c38ea3788c44430f4a8430f3985", "score": "0.6061272", "text": "public java.util.List<? extends liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder> \n getShareEncryptStorageOrBuilderList() {\n return shareEncryptStorage_;\n }", "title": "" }, { "docid": "31afd72f4067cd2d1b2ddc0c0d922822", "score": "0.60547", "text": "boolean hasEncryptStorage();", "title": "" }, { "docid": "e51ebff1b81ac5ccd5604fce17c81823", "score": "0.6013817", "text": "public int getShareEncryptStorageCount() {\n return shareEncryptStorage_.size();\n }", "title": "" }, { "docid": "bbd0b88951d119a9bcc04fd0a5127d67", "score": "0.5968377", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder getShareEncryptStorageBuilder() {\n \n onChanged();\n return getShareEncryptStorageFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "7b0777269293ed8df59a122ec085d429", "score": "0.59546345", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder() {\n if (shareEncryptStorageBuilder_ != null) {\n return shareEncryptStorageBuilder_.getMessageOrBuilder();\n } else {\n return shareEncryptStorage_ == null ?\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance() : shareEncryptStorage_;\n }\n }", "title": "" }, { "docid": "f65886686b51d1a4c7c7ce10728cd42d", "score": "0.59406286", "text": "public Builder addShareEncryptStorage(liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\n if (shareEncryptStorageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.add(value);\n onChanged();\n } else {\n shareEncryptStorageBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "172cc844cec28995cd68f14c6091d34c", "score": "0.59227914", "text": "liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage(int index);", "title": "" }, { "docid": "4d2a9cc46937d1f3352598e05260cd2e", "score": "0.5916392", "text": "java.util.List<? extends liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder> \n getShareEncryptStorageOrBuilderList();", "title": "" }, { "docid": "ec7e133452b614bdd64332f4a43bf3ea", "score": "0.58995706", "text": "public EvacuateOptions onSharedStorage(boolean isShare) {\n add(Option.ON_SHARED_STORAGE, isShare);\n return this;\n }", "title": "" }, { "docid": "9a69abb70bbbe1bae758b01de009de0f", "score": "0.5790636", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder(\n int index) {\n return shareEncryptStorage_.get(index);\n }", "title": "" }, { "docid": "8edd0046fb54f80e5d437ad2c4eb1337", "score": "0.57761705", "text": "public java.util.List<? extends liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder> \n getShareEncryptStorageOrBuilderList() {\n if (shareEncryptStorageBuilder_ != null) {\n return shareEncryptStorageBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(shareEncryptStorage_);\n }\n }", "title": "" }, { "docid": "fecc80405dfd0684f98b2c5150bb7f6d", "score": "0.576398", "text": "public void setSharedSecret(String sharedSecret)\n { this.sharedSecret=sharedSecret;\n }", "title": "" }, { "docid": "9e66c3dd1decbec572bff104477dd54c", "score": "0.5754017", "text": "public java.util.List<liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage> getShareEncryptStorageList() {\n if (shareEncryptStorageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(shareEncryptStorage_);\n } else {\n return shareEncryptStorageBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "a776c8de95ad7cff3b5e9eb83341d2d7", "score": "0.5746245", "text": "liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder(\n int index);", "title": "" }, { "docid": "971beef4a84a3a3bc7a51e8ba0705e83", "score": "0.5721289", "text": "liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorageOrBuilder getEncryptStorageOrBuilder();", "title": "" }, { "docid": "b8cd53c5f57e1a41576782068e472e7a", "score": "0.569964", "text": "public Builder setShareEncryptStorage(\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\n if (shareEncryptStorageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.set(index, value);\n onChanged();\n } else {\n shareEncryptStorageBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "6d2f3b6acac1094c04b215ed154f75ec", "score": "0.5661393", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder addShareEncryptStorageBuilder(\n int index) {\n return getShareEncryptStorageFieldBuilder().addBuilder(\n index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.getDefaultInstance());\n }", "title": "" }, { "docid": "50fc14c398d64182f047040da2c0c395", "score": "0.5651106", "text": "public Builder mergeShareEncryptStorage(liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\n if (shareEncryptStorageBuilder_ == null) {\n if (shareEncryptStorage_ != null) {\n shareEncryptStorage_ =\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.newBuilder(shareEncryptStorage_).mergeFrom(value).buildPartial();\n } else {\n shareEncryptStorage_ = value;\n }\n onChanged();\n } else {\n shareEncryptStorageBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "5b339636d01c0771c00448c827fc08ef", "score": "0.5646159", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder getShareEncryptStorageOrBuilder(\n int index) {\n if (shareEncryptStorageBuilder_ == null) {\n return shareEncryptStorage_.get(index); } else {\n return shareEncryptStorageBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "222f5c859be3c72f070df4c94142dc6a", "score": "0.5625015", "text": "public Builder addShareEncryptStorage(\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage value) {\n if (shareEncryptStorageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.add(index, value);\n onChanged();\n } else {\n shareEncryptStorageBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "755ff7c63820987b79ce647606479a2a", "score": "0.56026167", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder> \n getShareEncryptStorageFieldBuilder() {\n if (shareEncryptStorageBuilder_ == null) {\n shareEncryptStorageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorageOrBuilder>(\n getShareEncryptStorage(),\n getParentForChildren(),\n isClean());\n shareEncryptStorage_ = null;\n }\n return shareEncryptStorageBuilder_;\n }", "title": "" }, { "docid": "aa704c1a094f17b46a5da2153ca9d8a9", "score": "0.5571804", "text": "SystemStorageProvider() {\n // uses default mount and bucket\n }", "title": "" }, { "docid": "61e5586f84cbcad71c0001e64caa334c", "score": "0.5501457", "text": "public Builder addAllShareEncryptStorage(\n java.lang.Iterable<? extends liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage> values) {\n if (shareEncryptStorageBuilder_ == null) {\n ensureShareEncryptStorageIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, shareEncryptStorage_);\n onChanged();\n } else {\n shareEncryptStorageBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "b6d29330d6edadfc35c8163d719faf8a", "score": "0.546928", "text": "public int getShareEncryptStorageCount() {\n if (shareEncryptStorageBuilder_ == null) {\n return shareEncryptStorage_.size();\n } else {\n return shareEncryptStorageBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "5883ed5b4bf8bf52e28f192e5b54116a", "score": "0.5411275", "text": "@Override\n\tpublic void doShareFiles() {\n\t\t\n\t}", "title": "" }, { "docid": "43960e1e2e1c6baa3ef1932a8faccd89", "score": "0.54112023", "text": "public Builder setShareEncryptStorage(\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\n if (shareEncryptStorageBuilder_ == null) {\n shareEncryptStorage_ = builderForValue.build();\n onChanged();\n } else {\n shareEncryptStorageBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "title": "" }, { "docid": "becf7649e277c807e39eeba61adeab30", "score": "0.53981835", "text": "public void setEncryption(Encryption encryption);", "title": "" }, { "docid": "c7899b28a3f7b605ec855747a60525a9", "score": "0.5380568", "text": "public Builder clearShareEncryptStorage() {\n if (shareEncryptStorageBuilder_ == null) {\n shareEncryptStorage_ = null;\n onChanged();\n } else {\n shareEncryptStorage_ = null;\n shareEncryptStorageBuilder_ = null;\n }\n\n return this;\n }", "title": "" }, { "docid": "0e96d5fbdd3618674ccbd37615491bbd", "score": "0.53605694", "text": "public Builder addShareEncryptStorage(\n liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\n if (shareEncryptStorageBuilder_ == null) {\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.add(builderForValue.build());\n onChanged();\n } else {\n shareEncryptStorageBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "1296b02617530c101cc9197ea49409a9", "score": "0.53602546", "text": "public interface IShare {\n\n /**\n * 初始化\n */\n public void init();\n\n /**\n * 设置分享内容\n *\n * @param title\n * @param content\n * @param url\n */\n public void setShareContent(String title, String content, String url);\n\n /**\n * 设置um分享图片, 不设置默认是应用图标\n *\n * @param umImager\n */\n public void setUMImager(UMImage umImager);\n\n\n}", "title": "" }, { "docid": "5977d37563959e4b6732b7b09669da51", "score": "0.53555024", "text": "public Builder clearShareEncryptStorage() {\n if (shareEncryptStorageBuilder_ == null) {\n shareEncryptStorage_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n shareEncryptStorageBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "b906eeca3d91fc50bf124719c65a917a", "score": "0.5351467", "text": "public void setStorageEncrypted(Boolean storageEncrypted) {\n this.storageEncrypted = storageEncrypted;\n }", "title": "" }, { "docid": "51e2ef3057f5ae11c4f5797eb614bb4f", "score": "0.5331564", "text": "public interface ShareService {\n @C6457h(mo15740a = \"/aweme/v1/thrid/platform/share/\")\n C12466b<AutoShare> autoShare(@C6475z Map<String, String> map);\n }", "title": "" }, { "docid": "a0d6de89a72bf1ea2e14420e0446b2bf", "score": "0.5315346", "text": "public AzureStorageSmbFileShareEndpointProperties() {\n }", "title": "" }, { "docid": "f2dd1b4df412394f21f8ea03f978ae78", "score": "0.5312178", "text": "int getEncryptStorageCount();", "title": "" }, { "docid": "984e19f1ec6b379413a199d7122ec383", "score": "0.5294612", "text": "public liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder getShareEncryptStorageBuilder(\n int index) {\n return getShareEncryptStorageFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "25f84cc00544e4cc07eef9fb2e8e2779", "score": "0.5282793", "text": "public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.Builder addEncryptStorageBuilder() {\n return getEncryptStorageFieldBuilder().addBuilder(\n liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.getDefaultInstance());\n }", "title": "" }, { "docid": "84eb6200ee8816660198389a9d4ea1f2", "score": "0.5265284", "text": "public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage(int index) {\n return encryptStorage_.get(index);\n }", "title": "" }, { "docid": "77e6dafe28776608ff35524cc87728d5", "score": "0.5264589", "text": "@Override\n public void onStart(SHARE_MEDIA platform) {\n Toast.makeText(LoginActivity.this, \"授权开始\",\n Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "77e6dafe28776608ff35524cc87728d5", "score": "0.5264589", "text": "@Override\n public void onStart(SHARE_MEDIA platform) {\n Toast.makeText(LoginActivity.this, \"授权开始\",\n Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "17529b8ac2cab456f29770dcc451c79e", "score": "0.5200661", "text": "public boolean hasEncryptStorage() {\n return encryptStorage_ != null;\n }", "title": "" }, { "docid": "7e3146d53c3787ba1d0c0a8a37833947", "score": "0.5200611", "text": "public Builder setShareEncryptStorage(\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\n if (shareEncryptStorageBuilder_ == null) {\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.set(index, builderForValue.build());\n onChanged();\n } else {\n shareEncryptStorageBuilder_.setMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "c4c5886d7195c4d8e68a7dd84666357a", "score": "0.5185814", "text": "java.util.List<liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage> \n getEncryptStorageList();", "title": "" }, { "docid": "48fdc9d6200f8531b49beb9b39e1a944", "score": "0.51853096", "text": "public Builder addShareEncryptStorage(\n int index, liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder builderForValue) {\n if (shareEncryptStorageBuilder_ == null) {\n ensureShareEncryptStorageIsMutable();\n shareEncryptStorage_.add(index, builderForValue.build());\n onChanged();\n } else {\n shareEncryptStorageBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "836e9964aab570dd7f932207a758a989", "score": "0.516438", "text": "@Override\r\n\tpublic Storage attachStorage() {\n\t\treturn new Storage128Gb();\r\n\t}", "title": "" }, { "docid": "d0d52f4cbc4e983cd6cce118c2670508", "score": "0.5135356", "text": "public void setSymmetric()\n {\n\n strategy = new SymmetricKey();\n\n encMethod= \"Symmetric\";\n \n //Used to update the view to have proper window for Encryption / Decryption\n windowToUse = \"Symmetric\";\n }", "title": "" }, { "docid": "4e99c79731160da3f8c6fbad70aa3c94", "score": "0.51346123", "text": "public void setRuntimeStorage(ISVNAuthenticationStorage storage);", "title": "" }, { "docid": "1d709d31ac125ea383013e95c66eb52f", "score": "0.5116076", "text": "public void setPublicSharingEnabled(Boolean publicSharingEnabled) {\n this.publicSharingEnabled = publicSharingEnabled;\n }", "title": "" }, { "docid": "b3da99cd85573c94b9f66dd4419d516b", "score": "0.51098657", "text": "public interface ShareService {\n\n /**\n * 保存分享信息\n * @param share\n */\n void save(Share share);\n\n /**\n * 根据id查询分享信息\n * @param id\n * @return\n */\n Share selectById(String id);\n\n /**\n * 根据分享信息过滤,得到分享列表(不加条件查询所有)\n * @param share\n * @return\n */\n List<Share> findList(Share share);\n\n /**\n * 获取分享配置信息接口\n * @param message\n * @param content\n */\n void findShareSetting(Message message,String content);\n\n void updateAndroidDownloads();\n\n}", "title": "" }, { "docid": "898459b5484347165299b1d86ef2e9ea", "score": "0.51023287", "text": "public boolean getShared(){\n return isShared;\n }", "title": "" }, { "docid": "5f3ca4ec51e13a2158b1491dbec125fa", "score": "0.5101225", "text": "public Boolean getStorageEncrypted() {\n return this.storageEncrypted;\n }", "title": "" }, { "docid": "636d1f26552af23079945ed03672f66e", "score": "0.50918865", "text": "@Override\n\t\tpublic void setEncryptSn(String encryptSn) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "4c607174e4ac6c304c5e9efebe0870e6", "score": "0.50890404", "text": "public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage(int index) {\n if (encryptStorageBuilder_ == null) {\n return encryptStorage_.get(index);\n } else {\n return encryptStorageBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "87d0694ecd8778b7e263e77f98a19589", "score": "0.50768757", "text": "public boolean hasEncryptStorage() {\n return encryptStorageBuilder_ != null || encryptStorage_ != null;\n }", "title": "" }, { "docid": "7d6f8ec862317e20862d986b1dcede88", "score": "0.5067809", "text": "private QueryGetShareEncryptStorageRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "1f4fe2b25854d903d17c5abc04a3ce58", "score": "0.5067729", "text": "public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorageOrBuilder getEncryptStorageOrBuilder() {\n return getEncryptStorage();\n }", "title": "" }, { "docid": "ff456a630d80ec493d6a1d57398a6b35", "score": "0.5050445", "text": "public Builder setEncryptStorage(liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage value) {\n if (encryptStorageBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n encryptStorage_ = value;\n onChanged();\n } else {\n encryptStorageBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "e230f9004516e07c608af7a3c35fad39", "score": "0.5044148", "text": "public interface WelcomeSPKeyConstants extends BaseSPKeyConstants {\n String APK_DOWNLOAD_FILE_PATH = \"apk_download_file_path\";\n String USER_PRIVACY_AGREE = \"user_privacy_agree\";\n}", "title": "" }, { "docid": "47ff55304b22d34b10832aef07cf9859", "score": "0.50356954", "text": "@Override\n public void sendByWeiXin() {\n ShareUtil.weiXinShare2(\"\", \"\", \"\", handler, MoreActivity.this);\n }", "title": "" }, { "docid": "c0e6077a9c1afdcdca013cd15fa1dcea", "score": "0.50336003", "text": "boolean getUseShared();", "title": "" }, { "docid": "c0e6077a9c1afdcdca013cd15fa1dcea", "score": "0.50336003", "text": "boolean getUseShared();", "title": "" }, { "docid": "ef70d153d7b4c1f73ced1fbc41c1eb8a", "score": "0.50272745", "text": "void setShared(boolean status){\n isShared = status;\n }", "title": "" }, { "docid": "dbfe13f8ad78295e90f9333079af89fc", "score": "0.50085866", "text": "public Boolean isStorageEncrypted() {\n return this.storageEncrypted;\n }", "title": "" }, { "docid": "1ceac0195f88a009a904ae5f8ce1004a", "score": "0.49810794", "text": "public interface Secret {\n public static final String PUBLIC_KEY = \"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDNkqpYFbbMgpaN3zaArKukyTz3YC3E4wstE0+tiMDkd+sfOZRzzwZbxsjYHzZxq3N1EuukG0pMYoftMb2zIJY54AmjuZ68pqI5Lz9FOdjor/D5tm5bFgQ8+FNACJHfWa+OkhjZQcl0znxA0xXufd248D6y4nzThK7bUrvKvoCMAQIDAQAB\";\n\n public static final String PRIVATE_KEY = \"MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAM2SqlgVtsyClo3fNoCsq6TJPPdgLcTjCy0TT62IwOR36x85lHPPBlvGyNgfNnGrc3US66QbSkxih+0xvbMgljngCaO5nrymojkvP0U52Oiv8Pm2blsWBDz4U0AIkd9Zr46SGNlByXTOfEDTFe593bjwPrLifNOErttSu8q+gIwBAgMBAAECgYAFzl2nTT2zewC7kxFcAwR6DAD/z6SbSfpX1JLMiO9BxK1MXXj26GL6lpu3lvIXtcr2BInJQcgQbjv+lAgSlhoIDW0JeKMSb4QDvAvitldLZUylLSP1ylLjF4mrEMWWHpfKn6J5WBqGkmW3Tuio/IjS9jYjJE3vLFnQL+4i+6vlXQJBAPocy9ykLXds602IybSzpGZPmmYbGo4cBVrmRgDwQJ3X31Y230pgaUBc4+1ODMJoF/IGnnFcpDBcjEw0W6i2dssCQQDSaXgQWkFgYc2qcaQDADzgGVqkHkqWeT2A1HuPN45jnfthWXlDojWcMI2h4Mp4aI9JBxJOZqdWZd+WmLvewuLjAkEA7M//JjY85mq2kH8HnJTLACQ26J6ZEhzt5RdLCPBx/gG7cQIbgWyvu0U4eiQAaMHuijZCJsu0miXGoRCiCKha6QJBAINw91vfxe9bqYrMKtTlFSI5NHJJqfaODmmoUveIkR6R1jNeHW6uqibD/fYd4t2NE9Ve4YSwg+BpC1+cUeA6hlkCQQCskgssRGhc0PczWQ5b3waxiIWbJh90l/biEVK1pG/zq4+IAMoaKhygCemnFpvwTCVWI/apwACyr+7s4mc/S6QV\";\n\n public static final String DES_KEY = \"FoOPW1KM/tU=\";\n\n public static final String SIGNATURE = \"KSO_9527\";\n}", "title": "" }, { "docid": "e20c718092351d29603879af9e474233", "score": "0.4976878", "text": "java.util.List<? extends liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorageOrBuilder> \n getEncryptStorageOrBuilderList();", "title": "" }, { "docid": "6b71903b094ddb7c566a7e185932024c", "score": "0.49741146", "text": "@Override\n\tpublic void setEncryptSn(String encryptSn) {\n\t\t\n\t}", "title": "" }, { "docid": "3b15482e869632318683e63897f3bda1", "score": "0.4959969", "text": "@Attribute(desc = \"Whether this server shares its data store with a corresponding live or backup serve\")\n boolean isSharedStore();", "title": "" }, { "docid": "b000d5ccaa5b008b052b7aa5b89e34a9", "score": "0.49595353", "text": "public java.util.List<? extends liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorageOrBuilder> \n getEncryptStorageOrBuilderList() {\n return encryptStorage_;\n }", "title": "" }, { "docid": "46a19dbe4799b8729b0924e9eba6656c", "score": "0.495832", "text": "public interface BizConstants {\n\n /**\n * 短信签名庆辉快递\n */\n public static final String SMSSIGN=\"庆辉快递\";\n}", "title": "" }, { "docid": "7b15254791099637e35916b766cdc2fd", "score": "0.4958063", "text": "public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage() {\n return encryptStorage_ == null ? liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.getDefaultInstance() : encryptStorage_;\n }", "title": "" }, { "docid": "b522297868e941f1d1b2a8cb30e63eee", "score": "0.49567458", "text": "static void authImplicit() {\n Storage storage = StorageOptions.getDefaultInstance().getService();\n\n\n }", "title": "" }, { "docid": "80ef2a16f3592dd1f8511e5ed3717cc2", "score": "0.49535027", "text": "public java.util.List<liubaninc.m0.storage.ShareEncryptStorageOuterClass.ShareEncryptStorage.Builder> \n getShareEncryptStorageBuilderList() {\n return getShareEncryptStorageFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "a57044d5ddeb199874f65a0f6f7eb0e2", "score": "0.49513137", "text": "public interface ShareListener {\n void onStart(SocializePlatform share_media);\n\n void onResult(SocializePlatform share_media);\n\n void onError(SocializePlatform share_media, Throwable throwable);\n\n void onCancel(SocializePlatform share_media);\n\n}", "title": "" }, { "docid": "168027dccd7d1a3dfcea2ee5288c82bc", "score": "0.4941105", "text": "public java.util.List<liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage> getEncryptStorageList() {\n return encryptStorage_;\n }", "title": "" }, { "docid": "d589712986888636eac1e3ac1ad62816", "score": "0.49408427", "text": "public String getSharedSecret() {\r\n\t\treturn this.sharedSecret;\r\n\t}", "title": "" }, { "docid": "7b90f63ca3e455cfacab36ec9bfceba4", "score": "0.49189737", "text": "private void updateStorage() {\n\t\ttry {\n\t\t\tfinal String serialized = ConverterFactory.JSON.convertTo(this.mSecretsMap, false);\n\t\t\tFilesManagerFactory.FILE_MANAGER.writeContentTo(new ByteArrayInputStream(serialized.getBytes(\"UTF-8\")), this.mSecretsFile);\n\n\t\t} catch (final Exception e) {\n\t\t\tLockerFilePersistenceManager.LOGGER.fatal(\"Writing to locker's file (\" + LockerFilePersistenceManager.LOCKERS_FILE_PATH + \")resulted in error !\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "cfc4ff9d0062a03cc99d7a2654748909", "score": "0.49111208", "text": "@Override\n\tpublic boolean isShareable() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8084e143dfb52169528fa2f0d9618bf4", "score": "0.4904287", "text": "private QueryGetShareEncryptStorageResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "e1307ed0319716604d1d508c0aceef85", "score": "0.49004614", "text": "public abstract void setupStorage();", "title": "" }, { "docid": "5c4c244e7f0ad490d4858e5724f50dee", "score": "0.48836705", "text": "public liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage getEncryptStorage() {\n if (encryptStorageBuilder_ == null) {\n return encryptStorage_ == null ? liubaninc.m0.storage.EncryptStorageOuterClass.EncryptStorage.getDefaultInstance() : encryptStorage_;\n } else {\n return encryptStorageBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "d19c870e8ab21e7dced91b25d0e9660c", "score": "0.48787826", "text": "private void createShareButton() {\n final ImageButton shareButton = findViewById(R.id.shareButton);\n shareButton.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n Bitmap sharableBitmap = Save.getBitmapFromView(frame);\n File dir = getApplicationContext().getCacheDir();\n deleteFile(dir, shareFileName);\n Save.saveImageToCache(sharableBitmap, shareFileName, getApplicationContext());\n\n File imagePath = new File(getApplicationContext().getCacheDir(), \"images\");\n File newFile = new File(imagePath, shareFileName);\n Uri contentUri = FileProvider.getUriForFile(getApplicationContext(), \"com.matchette.matchette.fileprovider\", newFile);\n shareFromUri(contentUri);\n }\n });\n }", "title": "" }, { "docid": "59359f9d1b37eb06846245055209f4fc", "score": "0.48709303", "text": "private MediaProxy(Context context){\n super(context);\n setProxyName(\"MediaProxy\");\n// mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE);\n }", "title": "" }, { "docid": "11d137c01d3d013d5f11ea194ef0617a", "score": "0.48621783", "text": "public interface ShareProvider {\n\n String GOOGLE_MESSAGE= \"com.google.android.apps.messaging\";\n String FACEBOOK = \"com.facebook.composer\";\n String TWITTER = \"com.twitter.android.composer.composeractivity\";\n String GMAIL = \"gmail\";\n String ANDROID_NATIVE_MESSAGE = \"android.mms\";\n String SAMSUNG_EMAIL = \"com.samsung.android.email\";\n}", "title": "" }, { "docid": "5c141131edd676b2a72b1ae5961ce9e3", "score": "0.4861708", "text": "public void setSharedSecret(String sharedSecret) {\n\t\tthis.sharedSecret = sharedSecret;\n\t}", "title": "" } ]
27c2dd7ab4a50a37882846b058d82ef9
=====================================CODIFICAR Y DECODIFICAR ARCHIVOS ENVIADOS, RECIBIDOS A SUNAT=========================================
[ { "docid": "22622ed232bcd4448ce04ea10389478e", "score": "0.0", "text": "public String encode(String RutaCPE) throws Exception {\n FileInputStream fis = new FileInputStream(RutaCPE);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int c = 0;\n while ((c = fis.read()) != -1) {\n baos.write(c);\n }\n fis.close();\n byte[] byteReturn = baos.toByteArray();\n\n ByteArrayOutputStream baos2 = new ByteArrayOutputStream();\n OutputStream b64os = MimeUtility.encode(baos2, \"base64\");\n b64os.write(byteReturn);\n b64os.close();\n return baos2.toString();\n }", "title": "" } ]
[ { "docid": "51deae9316bd2b9b69aa8ea483a61948", "score": "0.65195805", "text": "public void leeArchivo()\r\n {\r\n File fichero = new File(ruta);\r\n if(fichero.exists())\r\n {\r\n try{\r\n FileInputStream file = new FileInputStream(fichero);\r\n ObjectInputStream oos = new ObjectInputStream(file);\r\n historialReparaciones = (HashMap<Integer,FichaReparacion>) oos.readObject();\r\n oos.close();\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }\r\n else\r\n {\r\n try{\r\n fichero.createNewFile();\r\n }catch(IOException e){\r\n e.printStackTrace();\r\n }\r\n escribeArchivo();\r\n leeArchivo();\r\n }\r\n }", "title": "" }, { "docid": "b2f79ad035bdba70800b56b8f8b78925", "score": "0.6431004", "text": "public void escribeArchivo()\r\n {\r\n try{\r\n FileOutputStream file = new FileOutputStream(ruta);\r\n ObjectOutputStream oos = new ObjectOutputStream(file);\r\n oos.writeObject(historialReparaciones);\r\n oos.close();\r\n }catch(IOException e){\r\n e.printStackTrace();\r\n }\r\n \r\n }", "title": "" }, { "docid": "99e576f1a49e9b5968eee0850bac4d7f", "score": "0.63934034", "text": "private void procesarArchivo_PlcMms_PlcTu(File file, PlcMms macPlcMms)\n {\n String idMms = file.getName().split(\"_\")[1];//obtenemos el id del dispositivo maestro \n String directorioamover = RUTAFTPDIRMMAESTROS + idMms;//el nombre de la carpeta final de destino\n \n List<EventosAmarre> listaEventosAmarre = new ArrayList();\n List<EventosConsumo> listaEventosConsumo = new ArrayList();\n boolean archivoProcesadoCorrectamente = true;\n String motivo = \"\";\n //es el id del maestro que envio el archivo\n Notificacion notificacion = new Notificacion();\n notificacion.setRevisadoNotificacion(0);\n notificacion.setRutaarchivoNotificacion(directorioamover+\"/\"+file.getName());\n notificacion.setFechaNotificacion(new Date());\n notificacion.setTipoEvento(1); \n \n \n FileReader fr = null;\n int contadorlinea = 0;\n BufferedReader br;\n try { \n fr = new FileReader (file);\n br = new BufferedReader(fr);\n \n int numero_eventos = 0;\n \n String fecha=\"\";\n String linea =br.readLine();\n String idtrafoPlcMms = macPlcMms.getIdTrafo().getIdTrafo();\n \n while(linea!= null && !linea.equals(\" @;;;;;;\") && contadorlinea >=0)//con convencion el @ indica el final del archivo\n { \n if(contadorlinea == 0)\n {\n // de la primera linea sacamos la fecha\n fecha= linea.split(\";\")[1];\n fecha =fecha.replace(\"/\", \"-\");\n System.out.println(fecha);\n \n }\n else if(contadorlinea == 1)\n {\n String event_number = linea.split(\";\")[1].trim();\n numero_eventos = Integer.parseInt(event_number);\n }\n else if(contadorlinea > 2)\n {\n //apartir de la 3 linea sacamos la informacion de amarre\n String [] lineaEvento = linea.split(\";\");\n String stringmacPlcTu = lineaEvento[0].trim();\n String hora = lineaEvento[1].trim().replace(\"/\", \":\");\n String intero = lineaEvento[2].trim();\n System.out.println(intero);\n int estadoAmarre =Integer.parseInt(intero);\n String fecha_hora = fecha + \" \"+ hora;\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\"); \n Date fechaHora = formatter.parse(fecha_hora); \n \n PlcTu macPlcTu = ejbPlcTuFacade.getPorMac(stringmacPlcTu);\n \n if (macPlcTu != null)\n {\n Producto productoPlcTu = macPlcTu.getIdProducto();\n if(productoPlcTu != null)\n {\n \n Trafo trafoPlcTu = productoPlcTu.getIdTrafo();\n if(trafoPlcTu != null)\n {\n String idtrafoPlcTu = trafoPlcTu.getIdTrafo();\n if(idtrafoPlcTu.equals(idtrafoPlcMms))\n {\n EventosAmarre eventoAmarre = new EventosAmarre();\n eventoAmarre.setEstadoAmarre(estadoAmarre);\n eventoAmarre.setFechaHora(fechaHora);\n eventoAmarre.setIdPlcMms(macPlcMms);\n eventoAmarre.setMacPlcTu(macPlcTu);\n eventoAmarre.setIdNotificacion(notificacion);\n EventosConsumo eventoConsumo = new EventosConsumo();\n eventoConsumo.setMacPlcMms(macPlcMms);\n eventoConsumo.setIdNotificacion(notificacion);\n eventoConsumo.setFechaHora(fechaHora);\n eventoConsumo.setMacPlcTu(macPlcTu); \n if(estadoAmarre == 1)\n {\n Float energia = Float.parseFloat(lineaEvento[3].trim());\n Float potencia = Float.parseFloat(lineaEvento[4].trim());\n Float voltaje = Float.parseFloat(lineaEvento[5].trim());\n Float corriente = Float.parseFloat(lineaEvento[6].trim());\n eventoConsumo.setEnergia(energia);\n eventoConsumo.setPotencia(potencia);\n eventoConsumo.setVoltaje(voltaje);\n eventoConsumo.setCorriente(corriente); \n } \n listaEventosAmarre.add(eventoAmarre);\n listaEventosConsumo.add(eventoConsumo);\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El PlcTu de la linea \" + (contadorlinea+1)+\" del archivo que inicialmente estaba vinculado al Trafo \"+ idtrafoPlcTu+ \" actualmente reporta vinculación al Trafo \"+idtrafoPlcMms+\". Se sugiere revisión.\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El producto asociado al PlcTu de la linea \" + (contadorlinea+1)+\" del archivo no tieno un trafo asciado\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El PlcTu de la linea \" + (contadorlinea+1)+\" del archivo no tieno un producto asciado\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"Id del TU de la linea \" + (contadorlinea+1)+\" del archivo no esta registrado\";\n contadorlinea = -100;\n }\n } \n contadorlinea ++;\n linea =br.readLine();\n } \n \n File f = new File(directorioamover);\n \n if (!f.exists())\n { \n f.mkdirs();// si el archivo destino no existe lo creamos\n } \n \n if(archivoProcesadoCorrectamente)\n {\n if(listaEventosAmarre.size()>0)\n {\n //movemos el archivo ya procesado a la ruta destino correspondiente\n \n if (listaEventosAmarre.size() == numero_eventos) {\n File fil = new File(directorioamover + \"/\" + file.getName());\n if (fil.exists()) {\n Files.delete(Paths.get(file.getPath()));\n } else {\n ejbNotificacionFacade.create(notificacion);\n for (int i = 0; i < listaEventosAmarre.size(); i++) {\n ejbEventosAmarreFacade.create(listaEventosAmarre.get(i));\n ejbEventosConsumoFacade.create(listaEventosConsumo.get(i));\n }\n\n Files.move(Paths.get(file.getPath()), Paths.get(directorioamover + \"/\" + file.getName()));\n }\n\n }\n else\n {\n motivo = \"El número de eventos esperado en el archivo es: \"+numero_eventos+\" y el número de eventos que contiene el archivo es : \"+ listaEventosAmarre.size();\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n else\n {\n motivo = \"El archivo no contiene eventos de consumo y amarre\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n else\n { \n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n catch(IOException | NumberFormatException | ParseException | java.lang.ArrayIndexOutOfBoundsException e ) \n {\n \n System.out.print(\"exception: \"+e.getMessage());\n \n motivo =\"el archivo tiene un problema\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n //e.printStackTrace();\n }\n finally{\n \n try{ \n if( null != fr ){ \n \n fr.close(); \n } \n }catch (Exception e2){ \n }\n }\n \n }", "title": "" }, { "docid": "61fc49d4c0b320bf5b4983d037260ddb", "score": "0.6350977", "text": "public void leeArchivo() throws IOException{\n \tBufferedReader fileIn;\n try{ //Abro el larchivo o, si no existe, lo creo\n \t\tfileIn = new BufferedReader(new FileReader(nombreArchivo));\n \t} catch (FileNotFoundException e){\n \t\tFile filArchivo = new File(nombreArchivo);\n \t\tPrintWriter fileOut = new PrintWriter(filArchivo);\n \t\tfileOut.println(\"\");\n \t\tfileOut.close();\n \t\tfileIn = new BufferedReader(new FileReader(nombreArchivo));\n \t}\n \tString sDato = fileIn.readLine();\n int iDato;\n \tif (!sDato.equals(\"\")){\n \t\t\n // establece el score y las vidas\n iDato=Integer.parseInt(sDato);\n iScore=iDato;\n iDato=Integer.parseInt(fileIn.readLine()); \n iVidas=iDato;\n iDato=Integer.parseInt(fileIn.readLine()); \n iDireccion=iDato;\n iDato=Integer.parseInt(fileIn.readLine()); \n iPausa=iDato;\n // establece x y y de basMalo\n iDato=Integer.parseInt(fileIn.readLine()); \n basMalo.setX(iDato);\n iDato=Integer.parseInt(fileIn.readLine()); \n basMalo.setY(iDato);\n \n // los fantasmas\n iDato=Integer.parseInt(fileIn.readLine());\n iTotalFantasmitas=iDato;\n \n lklFantasmas.clear();\n for(int iI = 0; iI < iTotalFantasmitas ; iI++) {\n \n int iPosX=Integer.parseInt(fileIn.readLine());\n int iPosY=Integer.parseInt(fileIn.readLine());\n Base basFantasma = new Base(iPosX, iPosY,\n iWidth / iMAXANCHO, iHeight / iMAXALTO,imgFantasmita);\n \n lklFantasmas.add(basFantasma);\n }\n // los Juanitos\n iDato=Integer.parseInt(fileIn.readLine());\n iTotalJuanitos=iDato;\n \n lklJuanitos.clear();\n for(int iI = 0; iI < iTotalJuanitos ; iI++) {\n \n int iPosX=Integer.parseInt(fileIn.readLine());\n int iPosY=Integer.parseInt(fileIn.readLine());\n \n Base basJuanito = new Base(iPosX, iPosY,\n iWidth / iMAXANCHO, iHeight / iMAXALTO,imgJuanito);\n\n lklJuanitos.add(basJuanito);\n }\n \n fileIn.close();\n \n \t\t\n \t}\n \n \n }", "title": "" }, { "docid": "10a58acb08f7d4f3f9680c3f86075d72", "score": "0.6299499", "text": "public void leerArchivo2(){\n \tString linea = \"\";\n \tList <String> datosDeArchivo = new ArrayList<>();\n \ttry {\n\t\t\twhile ((linea=br.readLine())!= null) {\n\t\t\t\t\n\t\t\t\tdatosDeArchivo.add(linea);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \t //que elimine la primera linea\n \tdatosDeArchivo.remove(0);\n \t\n \tfor( String i : datosDeArchivo) {\n \t\tprocesarCadena(i);\n \t}\n }", "title": "" }, { "docid": "cf32b43aa2f18945c803be1d53a12bb5", "score": "0.62803453", "text": "private File generarArchivoSIFI(String rutaArchivosSIFI,\n\t\t\t\t\t\t\t\t\tProcesoConversionArchivos procesoConversionArchivos,\n\t\t\t\t\t\t\t\t\tArchivoRecaudoOriginalPorConvertir archivoRecaudoOriginal,\n\t\t\t\t\t\t\t\t\tArchivoRecaudoGeneradoSIFI archivoRecaudoSIFI,\n\t\t\t\t\t\t\t\t\tList<DetalleArchivoRecaudoGeneradoSIFI> detallesSIFI,\n\t\t\t\t\t\t\t\t\tStringBuffer mensajeErrorOut) {\n\t\tFile fileSIFI = null;\n\t\t\n\t\t\n\t\tString filename = archivoRecaudoOriginal.getAror_url();\n\t\tFile fileBSC = new File(filename);\n\t\tString[][] registroEncabezado = null;\n\t\t\n\t\tBoolean hayRegistros = false;\n\t\tif (fileBSC != null) {\n\t\t\tInteger[] longitudes = new Integer[] { 81, 13, 18, 5, 8};\n\t\t\tregistroEncabezado = LectorArchivoPlanoUtils.leerArchivo(\n\t\t\t\t\tfileBSC.getAbsolutePath(), longitudes);\n\t\t\t\n\t\t\tif (registroEncabezado == null || registroEncabezado.length < 1) {\n\t\t\t\thayRegistros = false;\n\t\t\t\n\t\t\t}else {\n\t\t\t\thayRegistros = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tString fechaArchivo;\n\t\tString cuentaBancaria;\n\t\tString titulo;\n\t\tint totalRegistros =0;\n\t\tdouble valorTotal =0;\n\n\t\tString encabezado = null;\n\t\tList<String> listRegistros = new ArrayList<String>();\n\t\t\n\t\t\t\t\n\t\tif (hayRegistros) {\n\t\t\t\n\t\t\ttitulo = registroEncabezado[0][0];\n\t\t\tcuentaBancaria = registroEncabezado[0][1];\n\t\t\tfechaArchivo = registroEncabezado[0][4];\n\t\t\t\n\t\t\t//Con base en los detallesSIFI se calcula el valor total de recaudo y la cantidad\n\t\t\tfor (DetalleArchivoRecaudoGeneradoSIFI detalleSIFI : detallesSIFI) {\n\t\t\t\t\n\t\t\t\ttotalRegistros++;\n\t\t\t\t\n\t\t\t\tBigDecimal valor = getValorMoneda(detalleSIFI.getDarge_vtot());\n\t\t\t\tdouble valorRecaudo = getRound2Decimals(valor.doubleValue());\n\t\t\t\t\n\t\t\t\tvalorTotal = valorTotal+valorRecaudo;\n\t\t\t\t\n\t\t\t\tString registro = \"2\"+\n\t\t\t\t\t\t\t\t String.format(\"%8s\",detalleSIFI.getDarge_freca())+\n\t\t\t\t\t\t\t\t String.format(\"%05d\",Integer.parseInt(detalleSIFI.getDarge_ofic()))+\n\t\t\t\t\t\t\t\t String.format(\"%-24s\",detalleSIFI.getDarge_referencia())+\n\t\t\t\t\t\t\t\t String.format(\"%-30s\",detalleSIFI.getDarge_aportante())+\n\t\t\t\t\t\t\t\t String.format(\"%16s\",detalleSIFI.getDarge_vefe())+\n\t\t\t\t\t\t\t\t String.format(\"%16s\",detalleSIFI.getDarge_vche())+\n\t\t\t\t\t\t\t\t String.format(\"%16s\",detalleSIFI.getDarge_vtot())+\n\t\t\t\t\t\t\t\t String.format(\"%3s\",detalleSIFI.getDarge_cons_bsc_1())+\n\t\t\t\t\t\t\t\t String.format(\"%4s\",detalleSIFI.getDarge_tipo_reca())+\n\t\t\t\t\t\t\t\t String.format(\"%-10s\",detalleSIFI.getDarge_comp())+\n\t\t\t\t\t\t\t\t String.format(\"%9s\",detalleSIFI.getDarge_cons_bsc_2());\n\t\t\t\tlistRegistros.add(registro);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Se construye el encabezado\n\t\t\tencabezado = \tString.format(\"%-81s\",titulo)+\n\t\t\t\t\t\t\tString.format(\"%13s\",cuentaBancaria)+\n\t\t\t\t\t\t\tString.format(\"%018.2f\", valorTotal).replace(',', '.')+\n\t\t\t\t\t\t\tString.format(\"%05d\",totalRegistros)+\n\t\t\t\t\t\t\tString.format(\"%8s\",fechaArchivo);\n\t\t\t\n\t\t\t//Se actualiza la cantidad de registros\n\t\t\tarchivoRecaudoSIFI.setArge_registros(new Long(totalRegistros+1));\n\t\t\t\n\t\t}else{\n\t\t\tarchivoRecaudoSIFI.setArge_registros(new Long(0));\n\t\t}\n\t\t\t\n\t\t//Se crea la carpeta general donde se colocaron los archivo\n\t\tFile folder = new File(rutaArchivosSIFI);\n\t\tif(!folder.exists()){\n\t\t \tfolder.mkdirs();\n\t\t}\n\t\t\t\n\t\t\t\n\t\tFileWriter fichero = null;\n\t PrintWriter printerWriter = null;\n\t try{\n fichero = new FileWriter(archivoRecaudoSIFI.getArge_url());\n printerWriter = new PrintWriter(fichero);\n \n if(hayRegistros){\n\t printerWriter.println(encabezado);\n\t for (String string : listRegistros) {\n\t \t printerWriter.println(string);\n\t }\n }\n \n } catch (Exception e) {\n \tmensajeErrorOut.append(\"No se puede generar archivo:\"+archivoRecaudoSIFI.getArge_nombre()+\". \"+e.getMessage());\n e.printStackTrace();\n } finally {\n try {\n\t \n\t if ( fichero != null){\n\t fichero.close();\n\t }\n\t \n } catch (Exception e2) {\n \t \n \t mensajeErrorOut.append(\"No se puede generar archivo:\"+archivoRecaudoSIFI.getArge_nombre()+\". \"+e2.getMessage());\n e2.printStackTrace();\n }\n }\n\t\t\n //Se verifica si el archivo existe\n File file = new File(archivoRecaudoSIFI.getArge_url());\n \n if(file.exists()){\n \t fileSIFI = file;\n }\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\n\t\t\n\t\treturn fileSIFI;\n\t\t\t\t\n\t}", "title": "" }, { "docid": "aaa7cd49ed7654a9b52dd5619f6150cf", "score": "0.62758374", "text": "public void cargoArchivo(){\n\t\ttry {\n\t\t\tpropiedades.load(new FileInputStream(ruta));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "47214d3ad95236c2f2fc7f8359247cb6", "score": "0.62316525", "text": "public void lecturaArchivo (boolean leerArchivo){\n if (leerArchivo)\n System.out.println(\"Archivo abierto con éxito\");\n else\n System.out.println(\"Verifique el espacio de parqueos e ingreselo correctamente\");\n }", "title": "" }, { "docid": "cf63d095e55fb1a8193af69452a72e8f", "score": "0.6199074", "text": "private void procesarArchivo_PlcMms_PlcMc(File file , PlcMms macPlcMms)\n {\n String idMms = file.getName().split(\"_\")[1];//obtenemos el id del dispositivo maestro \n String directorioamover = RUTAFTPDIRMMAESTROS + idMms;//el nombre de la carpeta final de destino\n //es el id del maestro que envio el archivo\n \n List<EventosAmarreMc> listaEventosAmarreMc = new ArrayList();\n List<EventosConsumoMc> listaEventosConsumoMc = new ArrayList();\n boolean archivoProcesadoCorrectamente = true;\n String motivo = \"\";\n \n Notificacion notificacion = new Notificacion();\n notificacion.setRevisadoNotificacion(0);\n notificacion.setRutaarchivoNotificacion(directorioamover+\"/\"+file.getName());\n notificacion.setFechaNotificacion(new Date());\n notificacion.setTipoEvento(2);\n \n \n int contadorlinea = 0;\n FileReader fr = null;\n BufferedReader br;\n try { \n fr = new FileReader (file);\n br = new BufferedReader(fr);\n \n String fecha=\"\";\n int numero_eventos =0;\n PlcMc plcMc = null;\n String linea=br.readLine();\n String idtrafoPlcMms = macPlcMms.getIdTrafo().getIdTrafo();\n \n while(linea!= null && !linea.equals(\" @;;;;;;\") && contadorlinea >=0)//con convencion el @ indica el final del archivo\n { \n if(contadorlinea == 0)\n {\n // de la primera linea sacamos la fecha\n fecha= linea.split(\";\")[1];\n fecha =fecha.replace(\"/\", \"-\");\n System.out.println(fecha);\n \n }\n else if(contadorlinea == 1)\n {\n String event_number = linea.split(\";\")[1].trim();\n numero_eventos = Integer.parseInt(event_number);\n }\n else if(contadorlinea == 2)\n {\n String mac_Plc_mc = linea.split(\";\")[1];\n plcMc = ejbPlcMcFacade.findByMacPlcMc(mac_Plc_mc);\n \n if(plcMc == null)\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"Id del MC de la linea \" + (contadorlinea+1)+\" del archivo no esta registrado\";\n contadorlinea = -100;\n }\n }\n else if(contadorlinea > 3)\n {\n //apartir de la 3 linea sacamos la informacion de amarre\n String [] lineaEvento = linea.split(\";\");\n String stringIdmedidor = lineaEvento[0].trim();\n String hora = lineaEvento[1].trim().replace(\"/\", \":\");\n String intero = lineaEvento[2].trim();\n System.out.println(intero);\n int estadoAmarre =Integer.parseInt(intero);\n String fecha_hora = fecha + \" \"+ hora;\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\"); \n Date fechaHora = formatter.parse(fecha_hora); \n Medidor medidor = ejbMedidorFacade.buscarMedidorPorId(stringIdmedidor); \n if (medidor != null)\n { \n \n Producto productoMedidor = medidor.getIdProducto();\n if(productoMedidor != null)\n {\n Trafo trafoMedidor = productoMedidor.getIdTrafo();\n if(trafoMedidor != null)\n {\n String idTrafoMedidor = trafoMedidor.getIdTrafo();\n if(idTrafoMedidor.equals(idtrafoPlcMms))\n {\n EventosAmarreMc eventosAmarreMc = new EventosAmarreMc();\n eventosAmarreMc.setEstadoAmarre(estadoAmarre); \n eventosAmarreMc.setFechaHora(fechaHora);\n eventosAmarreMc.setMacPlcMms(macPlcMms);\n eventosAmarreMc.setMacPlcMc(plcMc);\n eventosAmarreMc.setIdMedidor(medidor);\n eventosAmarreMc.setIdNotificacion(notificacion);\n EventosConsumoMc eventoConsumoMc = new EventosConsumoMc();\n eventoConsumoMc.setMacPlcMms(macPlcMms);\n eventoConsumoMc.setIdNotificacion(notificacion);\n eventoConsumoMc.setFechaHora(fechaHora);\n eventoConsumoMc.setIdMedidor(medidor);\n eventoConsumoMc.setMacPlcMc(plcMc); \n if(estadoAmarre == 1)\n {\n Float energia = Float.parseFloat(lineaEvento[3].trim());\n Float potencia = Float.parseFloat(lineaEvento[4].trim());\n Float voltaje = Float.parseFloat(lineaEvento[5].trim());\n Float corriente = Float.parseFloat(lineaEvento[6].trim());\n eventoConsumoMc.setEnergia(energia);\n eventoConsumoMc.setPotencia(potencia);\n eventoConsumoMc.setVoltaje(voltaje);\n eventoConsumoMc.setCorriente(corriente);\n\n } \n listaEventosAmarreMc.add(eventosAmarreMc);\n listaEventosConsumoMc.add(eventoConsumoMc);\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El Meidor de la linea \" + (contadorlinea+1)+\" del archivo que inicialmente estaba vinculado al Trafo \"+ idTrafoMedidor+ \" actualmente reporta vinculación al Trafo \"+idtrafoPlcMms+\". Se sugiere revisión.\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El producto asociado al Medidor de la linea \" + (contadorlinea+1)+\" del archivo no tieno un trafo asciado\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"El Medidor de la linea \" + (contadorlinea+1)+\" del archivo no tieno un producto asciado\";\n contadorlinea = -100;\n }\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"Id del Medidor de la linea \" + (contadorlinea+1)+\" del archivo no esta registrado\";\n contadorlinea = -100;\n }\n } \n contadorlinea ++;\n linea=br.readLine();\n } \n \n File f = new File(directorioamover);\n \n if (!f.exists())\n { \n f.mkdirs();// si el archivo destino no existe lo creamos\n } \n \n if(archivoProcesadoCorrectamente)\n {\n if(listaEventosAmarreMc.size()>0)\n {\n //movemos el archivo ya procesado a la ruta destino correspondiente\n \n if (listaEventosAmarreMc.size() == numero_eventos) {\n File fil = new File(directorioamover + \"/\" + file.getName());\n if (fil.exists()) {\n Files.delete(Paths.get(file.getPath()));\n } else {\n ejbNotificacionFacade.create(notificacion);\n for (int i = 0; i < listaEventosAmarreMc.size(); i++) {\n ejbEventosAmarreMcFacade.create(listaEventosAmarreMc.get(i));\n ejbEventosConsumoMcFacade.create(listaEventosConsumoMc.get(i));\n }\n\n Files.move(Paths.get(file.getPath()), Paths.get(directorioamover + \"/\" + file.getName()));\n }\n\n }\n else\n {\n motivo = \"El número de eventos esperado en el archivo es: \"+numero_eventos+\" y el número de eventos que contiene el archivo es : \"+ listaEventosAmarreMc.size();\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n else\n {\n motivo = \"MC no respondio : El archivo no contiene eventos de consumo y amarre\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n }\n else\n { \n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n }\n catch(Exception e) \n {\n System.out.print(\"exception: \"+e.getMessage());\n \n motivo =\"el archivo tiene un problema\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n //e.printStackTrace();\n }\n finally{\n \n try{ \n if( null != fr ){ \n \n fr.close(); \n } \n }catch (Exception e2){ \n }\n }\n \n }", "title": "" }, { "docid": "ea8bb6d2ec33f5e23309cf4ca9e7c938", "score": "0.6183133", "text": "public static void Archivo(String fecha, String hora, int tiempo, int pulsaciones, int pulsacionest) {\r\n //creacion del documento\r\n String espacio = \" \"\r\n + \" \"\r\n + \" \"\r\n + \" \";\r\n try {\r\n //Crear un objeto File se encarga de crear o abrir acceso a un archivo que se especifica en su constructor\r\n File archivo = new File(ruta);\r\n\r\n //Crear objeto FileWriter que sera el que nos ayude a escribir sobre archivo\r\n FileWriter escribir = new FileWriter(archivo, true);\r\n\r\n //Escribimos en el archivo con el metodo write \r\n escribir.write(blue + \"La hora es:\" + hora + espacio + espacio + \"El tiempo que ha transcurrido es:\" + tiempo + \"minutos\" + espacio + espacio + \"La fecha es:\" + fecha + espacio + espacio + \" Sus pulsaciones cada 15 segundos son:\" + pulsaciones + espacio + espacio + \" Sus pulsaciones totales son:\" + pulsacionest);\r\n\r\n //Cerramos la conexion\r\n escribir.close();\r\n } //Si existe un problema al escribir cae aqui\r\n catch (IOException e) {\r\n System.out.println(red + \"Error al escribir\" + e);\r\n }\r\n /*\r\n //leer archivo\r\n //Leer lo que esta dentro del texto\r\n //Creamos un String que va a contener todo el texto del archivo\r\n String texto = \"\";\r\n try {\r\n //Creamos un archivo FileReader que obtiene lo que tenga el archivo\r\n FileReader lector = new FileReader(ruta);\r\n\r\n //El contenido de lector se guarda en un BufferedReader\r\n BufferedReader contenido = new BufferedReader(lector);\r\n\r\n //Con el siguiente ciclo extraemos todo el contenido del objeto \"contenido\" y lo mostramos\r\n while ((texto = contenido.readLine()) != null) {\r\n System.out.println(texto);\r\n }\r\n } //Si se causa un error al leer cae aqui\r\n catch (Exception e) {\r\n System.out.println(red + \"Error al leer\" + e);\r\n }\r\n */\r\n }", "title": "" }, { "docid": "51e3370c71a05f3014a8d23124537319", "score": "0.61548024", "text": "private void procesarArchivo(File file)\n {\n boolean elnombredelArchivoEstabien = true;\n String motivo = \"\";\n PlcMms plcMms = null;\n if(!evalualarExtencionArchivoCSV(file.getName()))\n {\n elnombredelArchivoEstabien = false;\n motivo = \"La extension de archivo no es csv\";\n }\n else\n {\n if(!evaluarNombreFormatoCorrecto(file.getName()))\n {\n elnombredelArchivoEstabien = false;\n motivo = \"El nombre del archivo no tiene el formato correcto\";\n }\n else\n {\n if(!evaluarTipoDeArchivo(file.getName()))\n {\n elnombredelArchivoEstabien = false;\n motivo = \"Tipo de archivo Desconocido\";\n }\n else\n {\n String idMms = file.getName().split(\"_\")[1];//obtenemos el id del dispositivo maestro \n plcMms = ejbPlcMmsFacade.findByIdPlcMms(idMms);\n if(plcMms == null)\n {\n elnombredelArchivoEstabien = false;\n motivo = \"Id del MMS no registrado\";\n }\n else\n {\n Trafo trafoMms = plcMms.getIdTrafo();\n if(trafoMms == null)\n {\n elnombredelArchivoEstabien = false;\n motivo = \"El MMS no esta asociado a un trafo\";\n }\n }\n }\n }\n }\n \n if (elnombredelArchivoEstabien) \n {\n String tipofilesp = file.getName().split(\"_\")[0];\n System.out.print(tipofilesp);\n switch (tipofilesp) \n {\n case \"01\":\n // si el archivo es tipo 1 corresponde a un archivo\n //mms - tu\n procesarArchivo_PlcMms_PlcTu(file,plcMms);\n break;\n\n case \"02\":\n //procesar archivo tipo 2\n\n procesarArchivo_PlcMms_PlcMc(file,plcMms);\n\n break;\n\n case \"03\":\n //procesar archivo tipo3\n procesarArchivo_PlcMms_Macromedidor(file,plcMms);\n break;\n \n default:\n break;\n }\n }\n else\n {\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n }", "title": "" }, { "docid": "c33e5a9d560daa599fecf89f857a0dfb", "score": "0.61045873", "text": "public void leerArchivo() throws IOException {\n\r\n\t\tString cadena;\r\n\t\tFileReader f = new FileReader(System.getProperty(\"user.dir\") + \"/data.txt\");\r\n\t\tBufferedReader b = new BufferedReader(f);\r\n\t\t// Se lee cada linea del Archivo mientras sea diferente de nulo\r\n\t\twhile ((cadena = b.readLine()) != null) {\r\n\t\t\t// Se almacena en la variable vectorDatos los datos separados del archivo por ,\r\n\t\t\tString[] vectorDatos = cadena.split(\",\");\r\n\r\n\t\t\tthis.userName = vectorDatos[0];\r\n\t\t\tthis.Password = vectorDatos[1];\r\n\t\t\tthis.Horas = vectorDatos[2];\r\n\t\t\t// loginpage.iniciarSesion(vectorDatos[0],vectorDatos[1]);\r\n\t\t}\r\n\r\n\t\tb.close();\r\n\t\tf.close();\r\n\r\n\t\t// ----Lectura de datos desde archivos planos----\r\n\r\n\t}", "title": "" }, { "docid": "d91fda3ad44700997c263d600c9c54b8", "score": "0.5981549", "text": "InterfacesEstructurasJDE generarArchivoJDEF0411(VistaRecibidoNoFacturadoDTO recibidoNoFacturadoDTO) throws SICException;", "title": "" }, { "docid": "7e68a333f3e7e295fcf1745a87d91d07", "score": "0.59483826", "text": "@Override\r\n\tpublic void cargar_archivo(Calendario dato) {\n\t}", "title": "" }, { "docid": "1989cf9dae9614e829a2d2ed08e9b716", "score": "0.59424496", "text": "public boolean enviarArchivo(String nombre,interfazServicioRmi sr){\n File f = new File(this.directorioDescarga+\"/\"+nombre);\n if(f.exists() && f.isFile() ){\n \n byte[] buffer = new byte[(int)f.length()];\n try {\n BufferedInputStream input = new BufferedInputStream(new FileInputStream(f));\n try {\n input.read(buffer,0,buffer.length);\n input.close();\n } catch (IOException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n boolean enviado = sr.recibirFichero(buffer, nombre);\n if(enviado){\n System.out.println(\"Archivo \"+nombre+\" enviado.\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Archivo \"+nombre+\" enviado.\");\n \n }\n else{\n System.out.println(\"Archivo \"+nombre+\" no pudo ser enviado.\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Archivo \"+nombre+\" no pudo ser enviado.\");\n }\n return enviado;\n } catch (RemoteException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\n }\n return false;\n \n }", "title": "" }, { "docid": "f50115d828a89e74de8fe899def265dc", "score": "0.5920948", "text": "public void igualarArrayArchivos()\r\n {\r\n arrayMatricula=archivos.leerInformacionCompleta();\r\n }", "title": "" }, { "docid": "fc5b954070efbc9dad2f29956b1a987b", "score": "0.5888175", "text": "public void solicitarArchivo(String nombre ,interfazServicioRmi sr ) {\n byte [] buffer = null;\n try {\n buffer = sr.solicitarFichero(nombre);\n } catch (RemoteException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n if(buffer != null){\n File file = new File(this.directorioDescarga+\"/\"+nombre);\n try {\n BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(file));\n try {\n output.write(buffer,0,buffer.length);\n output.flush();\n output.close();\n System.out.println(\"Archivo \"+nombre+\" Creado\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Archivo \"+nombre+\" Creado\");\n } catch (IOException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n else{\n System.out.println(\"No se encontro el archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se encontro el archivo \"+nombre);\n }\n \n }", "title": "" }, { "docid": "507b780ddf21b0b9447820c6ab7cf7da", "score": "0.5882217", "text": "public void rastrearArchivos(String nArchivo){\n \n String ip = ma.busArch(nArchivo);\n interfazServicioRmi sr;\n //System.out.println(ip+ \" \"+nArchivo); \n try{\n sr = (interfazServicioRmi)\n Naming.lookup( \"rmi://\"+ip+\":\"+puerto+\"/Servicio\");\n byte[] ficherp = sr.solicitarFichero(nArchivo);\n //System.out.println(\">>>>>> \"+ficherp);\n this.crearArchivoSolicitado(ficherp,nArchivo);\n }\n catch (MalformedURLException murle ) {\n System.out.println ();\n System.out.println (\n \"MalformedURLException\");\n System.out.println ( murle ); }\n catch (RemoteException re) {\n System.out.println ();\n System.out.println ( \"RemoteException\");\n System.out.println (re); }\n catch (NotBoundException nbe) {\n System.out.println ();\n System.out.println (\"NotBoundException\");\n System.out.println (nbe);}\n catch (java.lang.ArithmeticException ae) {\n System.out.println ();\n System.out.println (\"java.lang.Arithmetic Exception\");\n System.out.println (ae);} \n }", "title": "" }, { "docid": "7ee8bfb519b1f191fd74e970f3456a80", "score": "0.5880932", "text": "public void LeerArchivo(){\n /**\n * Declaracio de varaibles, asi como la instanciacion\n * de objetos(delete, f_salida)\n */\n String f_entrada = \"entrada.txt\";\n Borrar delete = new Borrar();\n File f_salida = new File(\"salida.txt\");\n String linea = null;\n String[] datos = null;\n /**\n * Declaracion de la lista de estudiantes\n */\n ArrayList<EstudiantesNombre> estudiantes = new ArrayList<>();\n EstudiantesNombre estudiante = null;\n try {\n /**\n * Instanciacion del objeto br de la clase BufferedReader\n * @method BufferedReader() contructor de la clase BufferedReader\n * @param objeto recibe como una nueva instanciacion de la clase\n * FileReader\n * @method FileReader() constructor de la clase FileReader\n * @param f_entrada contiene la ruta del archivo de entrada para su lectura\n */\n BufferedReader br = new BufferedReader(new FileReader(f_entrada));\n /**\n * Ciclo while que permite leer todas las lineas del archivo\n * de entrada\n */\n while ((linea = br.readLine()) != null) {\n /**\n * Cada linea se separa por un espacio en blanco\n */\n datos = linea.split(\"\\\\|\");\n /**\n * Creacion del objeto estudiante\n * @method EstudiantesNombre constructor de la clase EstudiantesNombre\n * @param datos \n * \n */\n estudiante = new EstudiantesNombre(datos[0],datos[1],datos[2],datos[3]);\n // agregamos el estudiante a la lista de estudiantes\n estudiantes.add(estudiante);\n }\n br.close();//Se cierra el archivo de lectura\n /**\n * Utilizando el metodo sort de la API Collections de Java\n * @method sort() metodo que ordena a los estudiantes\n * @param estudiantes listado de los estudiantes\n */\n Collections.sort(estudiantes);\n // imprimir archivo ordenado\n System.out.println(\"REGISTROS ORDENADOS POR NOMBRE:\"); /**\n * Objeto delete\n * @method BorrarFile() permite borrar el archivo de salida\n */\n delete.BorrarFile();\n /**\n * Objeto escribir \n * @method FileWriter() permite la escritura en el archivo\n * @param f_salida contiene la ruta del archivo de salida\n * @param true determina la forma de escritura en el archivo\n */\n FileWriter escribir = new FileWriter(f_salida, true);\n /**\n * Ciclo Foreach para recorrer el listado\n * y obtener los parametros de los estudiantes y \n * escribirlo en el archivo de f_salida\n */\n for(EstudiantesNombre e:estudiantes){\n\n escribir.write(e.getCarne()+\"|\");\n escribir.write(e.getNombre()+\"|\");\n escribir.write(e.getApellido()+\"|\"); \n escribir.write(e.getCarrera()+\"\\r\\n\");\n System.out.print(e);\n \n }\n escribir.close();//Cerrado del archivo de f_salida\n System.out.println(\"ARCHIVO: DATOS REGISTRADOS EXITOSAMENTE\");\n } catch (IOException e) {\n System.out.println(e);\n }\n }", "title": "" }, { "docid": "7107e080dd54d1129ebbbe56bcf7b938", "score": "0.58604187", "text": "private void verificarArchivo(String[] archivos){\n boolean existe=false;\n for (int i = 0; i < archivos.length; i++){\n if(NOMBRE_ARCHIVO.equals(archivos[i])){\n //archivo existe\n Toast.makeText(getApplicationContext(), \"El archivo existe\", Toast.LENGTH_SHORT).show();\n existe=true;\n }\n }\n if(!existe){\n //el archivo no existe\n try{\n FileOutputStream fileOutputStream=openFileOutput(NOMBRE_ARCHIVO,MODE_APPEND);\n OutputStreamWriter outputStreamWriter= new OutputStreamWriter(fileOutputStream);\n Toast.makeText(getApplicationContext(), \"Archivo creado con exito\", Toast.LENGTH_SHORT).show();\n\n }catch(Exception ex){\n Toast.makeText(getApplicationContext(), ex.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n }", "title": "" }, { "docid": "b5230fe45e0bfd402826e58b36ef761d", "score": "0.5832555", "text": "public static void generoArchivo(){\n\t\tFichero fichero = new Fichero();\n\t\tfichero.cargoArchivo();\n\t}", "title": "" }, { "docid": "f1e54865a21c8fd1e7b7e09d55a2830b", "score": "0.5769922", "text": "public static void main(String args[]) throws IOException {\n String destinationPath = args[1];\n\n\n// INPUT\n// Path structuresPath = Paths.get(\"/Users/arl3cchino/Documents/HumMod-hummod-standalone-106f109/StructureDuplicateTris\");\n Path structuresPath = Paths.get(args[0]);\n\n\n //preparo la struttura in cui accoglierò le coppie <modello, contenitore> per gestire gli import\n Map<String, String> container_Map = new HashMap<>();\n //preparo la struttura per iterare sulle chiavi e sui valori\n Set<Map.Entry<String, String>> st = container_Map.entrySet();\n\n try (Stream<Path> walk = Files.walk(Paths.get(structuresPath.toString()))) {\n\n List<String> DESfiles = walk.map(x -> x.toString()).filter(f -> f.endsWith(\"DES\")).collect(Collectors.toList());\n\n DESfiles.forEach(file -> {\n //System.out.println(file); // è il percorso intero di ciascun file DES\n// String[] fileName = file.split(\"/\");\n String[] fileName = file.split(System.getProperty(\"file.separator\"));\n String module = ModelicaModuleFormat(fileName[fileName.length - 1]);\n String container = ModelicaModuleFormat(fileName[fileName.length - 2]);\n //System.out.println(String.format(\"%s è contenuto in: %s\", module, container));\n container_Map.put(module, container);\n\n });\n\n }\n\n\n// NON DOVREBBE SERVIRE PIU''\n// Path dirPath = Paths.get(\"/Users/arl3cchino/Documents/HumMod-hummod-standalone-106f109/StructureDuplicateTris/\");\n\n\n //PRIMA MI RICREO LA STRUTTURA DELLE CARTELLE PARI A QUELLA DI HUMOD\n //FATTO\n cloneFolder(structuresPath.toString(), destinationPath);\n\n\n// try (Stream<Path> walkDirectories = Files.walk(Paths.get(dirPath.toString()))) {\n try (Stream<Path> walkDirectories = Files.walk(Paths.get(structuresPath.toString()))) {\n\n List<String> directories = walkDirectories.filter(Files::isDirectory).map(x -> x.toString()).collect(Collectors.toList());\n\n directories.remove(0); //il primo file è la root: la rimuovo\n\n directories.forEach(directory -> {\n\n //cattura anche le sottocartelle\n\n /*\n - creo le liste per: VARIABLES, CONSTANTS, PARAMETERS, EQUATIONS, INITIAL EQUATIONS\n - creo un file \".mo\" in cui scrivere tutti i dati raccolti nelle sottocartelle\n */\n\n\n String[] pathDirectory;\n pathDirectory = directory.split(System.getProperty(\"file.separator\"));\n\n\n\n String nameOFADirectory = ModelicaModuleFormat(pathDirectory[pathDirectory.length - 1]); //sfrutto il nome della directory anche per creare il file OFA stesso\n //System.out.println(nameOFADirectory); // la traduzione del nome dell'OFA va a buon fine\n\n //System.out.println(directory);\n //QUESTO SI PUO' AUTOMATIZZARE\n\n\n// RIDIRIGO TEMPORANEAMENTE L'OUTPUT\n// String newPath = directory.replace(\"/Users/arl3cchino/Documents/HumMod-hummod-standalone-106f109/StructureDuplicateTris/\", \"/Users/arl3cchino/IdeaProjects/XmlModelica/traduzioneStrutturaNew/\");\n String newPath = directory.replace(structuresPath + System.getProperty(\"file.separator\"), destinationPath + System.getProperty(\"file.separator\") );\n\n //System.out.println(newPath);\n //System.out.println(newPath);\n\n //questo lo posso fare perché sul mio percorso non ho cartelle con \"-\", altrimenti devo modificare solo l'ultima parte del Path\n newPath = ModelicaModuleFormat(newPath);\n\n\n try {\n\n\n// QUI RICORDO CHE IL NOME DI CIASCUN \".mo\" DEV'ESSERE SEGUITO DA UN SUFFISO \"_mod\". ex: \"Bone_Size_mod.mo\"\n// FACCIO QUESTO PERCHE' I NOMI DELLE CLASSI CHE IMPORTO POSSONO SOVRAPPORSI CON I NOMI DELLE VARIABILI PRESENTI NELLA CLASSE IN CUI IMPORTO\n // gli OFA vengono creati nella posizione giusta\n FileWriter fwOFA = new FileWriter(newPath + System.getProperty(\"file.separator\") + nameOFADirectory + \"_mod\" + \".mo\");\n fwOFA.write(String.format(\"model %s_mod\\n\", nameOFADirectory));\n fwOFA.write(\"\\nimport Physiolibrary;\\n\");\n fwOFA.write(\"import Physiomodel;\\n\");\n\n //fwOFA.close(); per ora non lo chiudo\n\n // VERIFICO CHE LE CARTELLE CAMBINO ITERAZIONE DOPO ITERAZIONE - CHECKED\n //System.out.println(String.format(\"sono nell cartella: %s\", directory.toString()));\n\n//\n List<String> Instances = new ArrayList<>();\n List<String> Import = new ArrayList<>();\n\n\n Map<String, String> MapIstanze = new HashMap<>();\n\n\n Map<String, List<String>> MapVariabili = new HashMap<>();\n Map<String, List<String>> MapCostanti = new HashMap<>();\n Map<String, List<String>> MapParametri = new HashMap<>();\n\n Map<String, List<String>> MapConditional = new HashMap<>();\n\n Map<String, String> MapCurve = new HashMap<>();\n Map<String, List<String>> MapInterpolation = new HashMap<>();\n\n Map<String, String> MapEquazioniSemplici = new HashMap<>();\n Map<String, String> MapEquazioniDifferenziali = new HashMap<>();\n Map<String, String> MapEquazioniIniziali = new HashMap<>();\n Map<String, List<String>> MapWhiteNoises = new HashMap<>();\n\n\n\n // qui ora devo iterare su tutti i file della sottocartella\n try (Stream<Path> walkFilesDES = Files.walk(Paths.get(directory))) {\n\n List<String> DESfiles = walkFilesDES.map(x -> x.toString()).filter(f -> f.endsWith(\"DES\")).collect(Collectors.toList());\n\n DESfiles.forEach(file -> {\n\n //I FILE DES VENGONO STAMPATI TUTTI - CHECKED\n //System.out.println(file);\n// QUI STO PRENDENDO IL NOME DEL FILE CHE STO PER PARSARE: IN QUESTO MODO QUANDO SCRIVERO' LE\n// VAR/PARAM/CONST ALL'INTERNO DELL'OFA, POTRO' INDICARE LA LORO PROVENIENZA\n\n// String[] fileName2Arr = file.split(\"/\");\n String[] fileName2Arr = file.split(System.getProperty(\"file.separator\"));\n String fileNameDES = ModelicaModuleFormat(fileName2Arr[fileName2Arr.length - 1]);\n\n //INIZIA QUI IL PARSING DEL FILE DES\n\n\n try {\n\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(file);\n document.normalizeDocument();\n NodeList nodeList = document.getElementsByTagName(\"*\");\n\n for (int i = 0; i < nodeList.getLength(); i++) {\n Node node = nodeList.item(i);\n\n //System.out.println(i);\n if (node.getNodeName().equals(\"parm\")) {\n handleParameter(MapParametri, node, nodeList, i, fileNameDES);\n } else if (node.getNodeName().equals(\"constant\")) {\n handleConstant(MapCostanti, node, nodeList, i, fileNameDES);\n } else if (node.getNodeName().equals(\"timerval\")) {\n handleTimerVar(MapVariabili, node, nodeList, i, fileNameDES);\n } else if (node.getNodeName().equals(\"whitenoise\")) {\n handleWhiteNoise(MapWhiteNoises, node, nodeList, i, fileNameDES);\n } else if (node.getNodeName().equals(\"def\")) {\n handleDefinition(MapVariabili, MapParametri, MapCostanti, MapIstanze, MapEquazioniSemplici, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory, Import);\n } else if (node.getNodeName().equals(\"diffeq\")) {\n handleDiffeq(MapEquazioniDifferenziali, MapEquazioniIniziali, MapParametri, MapCostanti, MapIstanze, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory);\n } else if (node.getNodeName().equals(\"conditional\")) {\n handleConditional(MapConditional, MapVariabili, MapIstanze, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory);\n } else if (node.getNodeName().equals(\"curve\")) {\n handleCurve(MapCurve, node, nodeList, i, fileNameDES, container_Map, nameOFADirectory);\n }\n\n\n// QUI INIZIA LA PARTE DELLA GESTIONE DEI BLOCCHI\n\n\n// QUI FINISCE LA PARTE DELLA GESTIONE DEI BLOCCHI\n\n\n }\n\n\n } catch (ParserConfigurationException | SAXException | IOException e) {\n e.printStackTrace();\n }\n\n\n// QUESTA PARTE NON CREDO SIA VERA - UNCHECKED\n\n// // di default una struttura non ha equazioni differenziali: questo rende tutte le variabili \"parametri\"\n// Boolean hasDiffeq = false;\n//\n// for (int j =0; j <nodeList.getLength(); j++) {\n// Node nodo = nodeList.item(j);\n// String name = nodo.getNodeName();\n// //System.out.println(name);\n// if (name.equals(\"diffeq\")) { //se ne ha, setto a true la variabile\n// hasDiffeq = true;\n// }\n// }\n\n\n });\n//\n\n\n }\n\n // QUI SCRIVO DENTRO ALL'OFA TUTTO QUELLO CHE HO RACCOLTO\n\n List<String> CleanImport = new ArrayList<>(Import.stream().distinct().collect(Collectors.toList()));\n\n for (int i=0; i <= CleanImport.size()-1; i++) {\n fwOFA.write(String.format(\"import %s;\", CleanImport.get(i)));\n }\n\n //int numParams = MapParametri.size();\n //int numConsts = MapCostanti.size();\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n for (Map.Entry<String, String> entry : MapIstanze.entrySet()) {\n\n String OFAname = entry.getKey();\n String instanceName = entry.getValue();\n\n\n\n String toWrite = String.format(\"%s_mod %s;\\n\", OFAname, instanceName);\n\n fwOFA.write(toWrite);\n\n }\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n\n\n for (Map.Entry<String, List<String>> entry : MapCostanti.entrySet()) {\n\n String constName = entry.getKey();\n String nameDesModule = entry.getValue().get(0); // al primo indice metto il nome del modulo des\n String constVal = entry.getValue().get(1); // al secondo indice metto il valore\n String type = ModelicaInferType(constName, constVal);\n\n String toWrite = String.format(\"constant %s %s_%s = %s;\\n\", type, nameDesModule, constName, constVal);\n\n fwOFA.write(toWrite);\n\n\n\n }\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n for (Map.Entry<String, List<String>> entry : MapParametri.entrySet()) {\n\n String paramName = entry.getKey();\n String nameDesModule = entry.getValue().get(0);\n String paramVal = entry.getValue().get(1);\n String type = ModelicaInferType(paramName, paramVal);\n\n String toWrite = String.format(\"parameter %s %s_%s = %s;\\n\", type, nameDesModule, paramName, paramVal);\n\n fwOFA.write(toWrite);\n\n\n }\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n for (Map.Entry<String, List<String>> entry : MapVariabili.entrySet()) {\n\n String varName = entry.getKey();\n //String type = entry.getValue().get(0); //è il tipo\n String DESfile = entry.getValue().get(0); //è il nome del DES file\n String type = ModelicaInferType(varName);//, varVal); Lo \"calcolo\" prima\n\n\n String toWrite = null;\n// if (varVal.equals(\"\")){\n//\n// toWrite = String.format(\"%s %s_%s ;\\n\", type, nameDesModule, varName);\n//\n// } else {\n//\n// toWrite = String.format(\"%s %s_%s = %s;\\n\", type, nameDesModule, varName, varVal);\n//\n// }\n\n toWrite = String.format(\"%s %s_%s ;\\n\", type, DESfile, varName);\n\n fwOFA.write(toWrite);\n\n\n }\n\n\n// AGGIUNGO LE MATRICI PER LE CURVE:\n if (!MapCurve.isEmpty()) {\n\n for (Map.Entry<String, String> entry : MapCurve.entrySet()) {\n\n String varName = entry.getKey();\n String matrix = entry.getValue();\n String type = ModelicaInferType(varName);\n\n String toWrite = String.format(\"%s %sPoints[:,2] = %s;\\n\", type, varName, matrix);\n\n fwOFA.write(toWrite);\n\n\n }\n\n }\n\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n// SE PRESENTI, QUI SCRIVO LE PARTE DEGLI \"ALGORITHM\" (I BLOCCHI \"CONDITIONAL\" DEI FILE DES)\n\n if (!MapConditional.isEmpty()) {\n\n for (Map.Entry<String, List<String>> entry : MapConditional.entrySet()) {\n\n String varName = entry.getKey();\n String nameDesModule = entry.getValue().get(0);\n String testString = entry.getValue().get(1); // è l' if-test da eseguire\n String trueString = entry.getValue().get(2); // è il valore da assegnare alla variabile se il test ritorna True\n String falseString = entry.getValue().get(3); // è il valore da assegnare alla variabile se il test ritorna False\n\n String type = ModelicaInferType(varName);\n\n varName = nameDesModule + \"_\" + varName;\n\n\n// NELLA SEZIONE \"ALGORITMO\"...\n String toWriteAL = String.format(\"algorithm\\n if ( %s )\\n then %s := %s; \\nelse %s := %s;\\nend if;\\n\", testString, varName, trueString, varName, falseString);\n\n\n// ... O UNA SEMPLICE IF EXPRESSION ?\n //String toWriteIE = String.format(\"%s %s = if ( %s ) then %s else %s\", type, varName, testString, trueString, falseString);\n\n fwOFA.write(toWriteAL);\n\n\n }\n }\n\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n// PRIMA DI SCRIVERE LE CONDIZIONI INIZIALI NELL'OFA INSERISCO LA STRINGA \"initial equation\"\n fwOFA.write(\"initial equation\\n\");\n\n\n for (Map.Entry<String, String> entry : MapEquazioniIniziali.entrySet()) {\n\n String integralName = entry.getKey();\n String initialValue = entry.getValue();\n\n\n String toWrite = String.format(\"%s = %s;\\n\", integralName, initialValue);\n\n fwOFA.write(toWrite);\n\n\n }\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n\n\n\n\n// PRIMA DI SCRIVERE LE EQUAZIONI DIFFERENZIALI NELL'OFA INSERISCO LA STRINGA \"equation\"\n fwOFA.write(\"equation\\n\");\n\n\n for (Map.Entry<String, String> entry : MapEquazioniDifferenziali.entrySet()) {\n\n String integralName = entry.getKey();\n String dervName = entry.getValue();\n\n\n String toWrite = String.format(\"der(%s) = %s;\\n\", integralName, dervName);\n\n fwOFA.write(toWrite);\n\n\n }\n\n\n\n// AGGIUNGO UN PO' DI FORMATTAZIONE AL TESTO FINALE\n fwOFA.write(\"\\n\");\n\n\n\n for (Map.Entry<String, String> entry : MapEquazioniSemplici.entrySet()) {\n\n String varName = entry.getKey();\n String varValue = entry.getValue();\n\n\n String toWrite = String.format(\"%s = %s;\\n\", varName, varValue);\n\n fwOFA.write(toWrite);\n\n\n }\n\n\n\n\n\n\n\n\n\n fwOFA.write(String.format(\"\\nend %s_mod;\", nameOFADirectory));\n fwOFA.close();\n\n\n } catch (Exception e) {\n System.out.println(e);\n }\n\n\n //System.out.println(dirPath.toString() + \"/\" + pathDirectory[pathDirectory.length-1]);\n\n\n// try (Stream<Path> walkFiles = Files.walk(Paths.get(dirPath.toString() + pathDirectory[pathDirectory.length-1] ))) {\n//\n// List<String> DESfiles = walkFiles.map(x -> x.toString()).filter(f -> f.endsWith(\"DES\")).collect(Collectors.toList());\n//\n// DESfiles.forEach( file -> {\n//\n// System.out.println(file);\n//\n//\n// });\n//\n//\n//\n//\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n\n });\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "59fe0fa0b9034602e33ebcbe554d7034", "score": "0.5750422", "text": "private void procesarArchivo_PlcMms_Macromedidor(File file, PlcMms macPlcMms)\n {\n String idMms = file.getName().split(\"_\")[1];//obtenemos el id del dispositivo maestro \n String directorioamover = RUTAFTPDIRMMAESTROS + idMms;//el nombre de la carpeta final de destino\n \n List<EventosAmarreMacro> listaEventosAmarre = new ArrayList();\n List<EventosConsumoMacro> listaEventosConsumo = new ArrayList();\n boolean archivoProcesadoCorrectamente = true;\n String motivo = \"\";\n //es el id del maestro que envio el archivo\n Notificacion notificacion = new Notificacion();\n notificacion.setRevisadoNotificacion(0);\n notificacion.setRutaarchivoNotificacion(directorioamover+\"/\"+file.getName());\n notificacion.setFechaNotificacion(new Date());\n notificacion.setTipoEvento(3); \n \n \n FileReader fr = null;\n int contadorlinea = 0;\n BufferedReader br;\n try { \n fr = new FileReader (file);\n br = new BufferedReader(fr);\n \n int numero_eventos = 0;\n \n String fecha=\"\";\n String linea =br.readLine();\n while(linea != null && !linea.equals(\" @;;;;;;\") && contadorlinea >=0)//con convencion el @ indica el final del archivo\n { \n if(contadorlinea == 0)\n {\n // de la primera linea sacamos la fecha\n fecha= linea.split(\";\")[1];\n fecha =fecha.replace(\"/\", \"-\");\n System.out.println(fecha);\n \n }\n else if(contadorlinea == 1)\n {\n numero_eventos = 1;\n }\n else if(contadorlinea > 2)\n {\n //apartir de la 3 linea sacamos la informacion de amarre\n String [] lineaEvento = linea.split(\";\");\n String stringIdMacro = lineaEvento[0].trim();\n String hora = lineaEvento[1].trim().replace(\"/\", \":\");\n String intero = lineaEvento[2].trim();\n System.out.println(intero);\n int estadoAmarre =Integer.parseInt(intero);\n String fecha_hora = fecha + \" \"+ hora;\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy HH:mm:ss\"); \n Date fechaHora = formatter.parse(fecha_hora); \n \n Macro idMacro = ejbMacroFacade.findById(stringIdMacro);\n \n if (idMacro != null)\n {\n EventosAmarreMacro eventoAmarre = new EventosAmarreMacro();\n eventoAmarre.setEstadoAmarre(estadoAmarre);\n eventoAmarre.setFechaHora(fechaHora);\n eventoAmarre.setMacPlcMms(macPlcMms);\n eventoAmarre.setIdMacro(idMacro);\n eventoAmarre.setIdNotificacion(notificacion);\n EventosConsumoMacro eventoConsumo = new EventosConsumoMacro();\n eventoConsumo.setMacPlcMms(macPlcMms);\n eventoConsumo.setIdNotificacion(notificacion);\n eventoConsumo.setFechaHora(fechaHora);\n eventoConsumo.setIdMacro(idMacro); \n if(estadoAmarre == 1)\n {\n Float energia = Float.parseFloat(lineaEvento[3].trim());\n Float potencia = Float.parseFloat(lineaEvento[4].trim());\n Float voltaje = Float.parseFloat(lineaEvento[5].trim());\n Float corriente = Float.parseFloat(lineaEvento[6].trim());\n eventoConsumo.setEnergia(energia);\n eventoConsumo.setPotencia(potencia);\n eventoConsumo.setVoltaje(voltaje);\n eventoConsumo.setCorriente(corriente); \n } \n listaEventosAmarre.add(eventoAmarre);\n listaEventosConsumo.add(eventoConsumo);\n }\n else\n {\n archivoProcesadoCorrectamente = false;\n motivo =\"Id del Macro de la linea \" + (contadorlinea+1)+\" del archivo no esta registrado\";\n contadorlinea = -100;\n }\n \n \n } \n contadorlinea ++;\n linea =br.readLine();\n } \n \n File f = new File(directorioamover);\n \n if (!f.exists())\n { \n f.mkdirs();// si el archivo destino no existe lo creamos\n } \n \n if(archivoProcesadoCorrectamente)\n {\n if(listaEventosAmarre.size()>0)\n {\n //movemos el archivo ya procesado a la ruta destino correspondiente\n \n if (listaEventosAmarre.size() == numero_eventos) {\n File fil = new File(directorioamover + \"/\" + file.getName());\n if (fil.exists()) {\n Files.delete(Paths.get(file.getPath()));\n } else {\n ejbNotificacionFacade.create(notificacion);\n for (int i = 0; i < listaEventosAmarre.size(); i++) {\n ejbEventosAmarreMacroFacade.create(listaEventosAmarre.get(i));\n ejbEventosConsumoMacroFacade.create(listaEventosConsumo.get(i));\n }\n\n Files.move(Paths.get(file.getPath()), Paths.get(directorioamover + \"/\" + file.getName()));\n }\n\n }\n else\n {\n motivo = \"El número de eventos esperado en el archivo es: \"+numero_eventos+\" y el número de eventos que contiene el archivo es : \"+ listaEventosAmarre.size();\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n else\n {\n motivo = \"El archivo no contiene eventos de consumo y amarre\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n else\n { \n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n }\n \n \n \n }\n catch(IOException | NumberFormatException | ParseException | java.lang.ArrayIndexOutOfBoundsException e) \n {\n \n System.out.print(\"exception: \"+e.getMessage());\n \n motivo =\"el archivo tiene un problema\";\n createNotificacionArchivoConFalla_MoverPendientes(file, motivo);\n //e.printStackTrace();\n }\n finally{\n \n try{ \n if( null != fr ){ \n \n fr.close(); \n } \n }catch (Exception e2){ \n }\n }\n \n }", "title": "" }, { "docid": "bfe7dca17f7532dfab102a4acec3a194", "score": "0.57261044", "text": "void crearArchivo(String nombreArchivo) throws AccesoDatosException;", "title": "" }, { "docid": "dd6de4cd7a8ef1a0d95f21d0010db9ff", "score": "0.57089806", "text": "static void archivoplano() {\n String nombrearc = (JOptionPane.showInputDialog(null, \"Introduzca el nombre del archivo\",\"\", JOptionPane.QUESTION_MESSAGE));\n\n String nombreArchivo = \"D://\" + nombrearc + \".txt\"; // Aqui se le asigna el nombre y \n FileWriter fw = null; // la extension al archivo \n try {\n fw = new FileWriter(nombreArchivo);\n BufferedWriter bw = new BufferedWriter(fw);\n PrintWriter salArch = new PrintWriter(bw);\n\n //Escribo algo en el archivo\n String info = (JOptionPane.showInputDialog(null, \"Ingrese datos a el archivo\",\"\", JOptionPane.QUESTION_MESSAGE));\n salArch.print(\"---Inicio del archivo------\");\n salArch.println();\n salArch.print(\"\"+info);\n salArch.println();\n salArch.print(\"------Fin del archivo------\");\n salArch.println();\n salArch.close();\n } catch (IOException ex) {\n }\n }", "title": "" }, { "docid": "3b9b8b6d28513147f3fc3334eaa5aacc", "score": "0.5708011", "text": "public void abrir_actualizador()\r\n {\r\n try \r\n {\r\n abrir_archivo(\"Updater.jar\");\r\n } catch (Exception e) \r\n {\r\n lc.write(\"Ha ocurrido un error al intentar abrir el actualizador\", \"MWCON\", e);\r\n }\r\n \r\n }", "title": "" }, { "docid": "a59d6445ba7049af33671584b065604d", "score": "0.56984913", "text": "private List<Arquivo> getArquivos() {\n\t\tList<Arquivo> retorno = new ArrayList<Arquivo>();\n\t\t\n\t\t\n\t\tArquivo registro = new Arquivo();\n\t\tCalendar dia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.JANUARY);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 1);\n\t\t\n\t\tregistro.setId((long) 1);\n\t\tregistro.setNomeArquivo(\"Arquivo.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(20.0);\n\t\tregistro.setTipo(\"Remessa\");\n\t\tregistro.setValor(new BigDecimal(2000.0));\n\t\tretorno.add(registro);\n\t\t\n\t\tregistro = new Arquivo();\n\t\tdia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.MARCH);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 2);\n\n\t\tregistro.setId((long) 2);\n\t\tregistro.setNomeArquivo(\"Arquivo2.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(25.0);\n\t\tregistro.setTipo(\"Remessa\");\n\t\tregistro.setValor(new BigDecimal(12000.0));\n\t\tretorno.add(registro);\n\n\t\tregistro = new Arquivo();\n\t\tdia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.APRIL);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 2);\n\n\t\tregistro.setId((long) 3);\n\t\tregistro.setNomeArquivo(\"Arquivo3.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(30.0);\n\t\tregistro.setTipo(\"Retorno\");\n\t\tregistro.setValor(new BigDecimal(12000.0));\n\t\tretorno.add(registro);\n\t\t\n\t\tregistro = new Arquivo();\n\t\tdia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.JULY);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 2);\n\n\t\tregistro.setId((long) 4);\n\t\tregistro.setNomeArquivo(\"Arquivo4.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(25.0);\n\t\tregistro.setTipo(\"Retorno\");\n\t\tregistro.setValor(new BigDecimal(13000.0));\n\t\tretorno.add(registro);\n\n\t\tregistro = new Arquivo();\n\t\tdia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.AUGUST);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 2);\n\n\t\tregistro.setId((long) 5);\n\t\tregistro.setNomeArquivo(\"Arquivo5.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(25.0);\n\t\tregistro.setTipo(\"Retorno\");\n\t\tregistro.setValor(new BigDecimal(12000.0));\n\t\tretorno.add(registro);\n\n\t\tregistro = new Arquivo();\n\t\tdia = Calendar.getInstance();\n\t\tdia.set(Calendar.YEAR, 2020);\n\t\tdia.set(Calendar.MONTH, Calendar.MARCH);\n\t\tdia.set(Calendar.DAY_OF_MONTH, 2);\n\n\t\tregistro.setId((long) 6);\n\t\tregistro.setNomeArquivo(\"Arquivo6.doc\");\n\t\tregistro.setData(new Date(dia.getTimeInMillis()));\n\t\tregistro.setQuantidade(25.0);\n\t\tregistro.setTipo(\"Remessa\");\n\t\tregistro.setValor(new BigDecimal(12000.0));\n\t\tretorno.add(registro);\n\n\t\t\n\t\t\n\t\treturn retorno;\n\t}", "title": "" }, { "docid": "5b7810ea37e6222086b8fdb25b418cbd", "score": "0.56749725", "text": "public void exportarABinario(String ruta) throws IOException{\r\n //Copiado de vindios.\r\n //Copiado de vindios.\r\n FileOutputStream flujoLectura;\r\n ObjectOutputStream Oos;\r\n try{\r\n \r\n //Abro stream, crea el fichero si no existe\r\n flujoLectura=new FileOutputStream(ruta, true);\r\n //Escribimos en el fichero un String y un caracter 97 (a)\r\n Oos = new ObjectOutputStream(flujoLectura);\r\n Oos.writeObject(this);\r\n \r\n Oos.flush();\r\n //Abro el stream, el fichero debe existir\r\n \r\n //Leemos el fichero y lo mostramos por pantalla\r\n \r\n \r\n }catch(IOException e){\r\n System.out.println(\"Error E/S: \"+e);\r\n }\r\n \r\n\r\n \r\n//String[]Cadenas=String split (\"\\\\|\")\r\n \r\n \r\n }", "title": "" }, { "docid": "fb5b403955ef8255a539bea0e833e61f", "score": "0.56690437", "text": "public void grabaArchivo() throws IOException{\n \n \tPrintWriter fileOut = new PrintWriter(new FileWriter(nombreArchivo));\n fileOut.println(\"\" + iScore);\n fileOut.println(\"\" + iVidas);\n fileOut.println(\"\" + iDireccion);\n fileOut.println(\"\" + iPausa);\n fileOut.println(\"\" + basMalo.getX());\n fileOut.println(\"\" + basMalo.getY());\n fileOut.println(\"\" + iTotalFantasmitas);\n \n for(Base basFantasmita:lklFantasmas) {\n \n fileOut.println(\"\" + basFantasmita.getX());\n fileOut.println(\"\" + basFantasmita.getY());\n }\n fileOut.println(\"\" + iTotalJuanitos);\n for(Base basJuanito:lklJuanitos) {\n \n fileOut.println(\"\" + basJuanito.getX());\n fileOut.println(\"\" + basJuanito.getY());\n }\n \n \n \tfileOut.close();\t\n \n \n }", "title": "" }, { "docid": "f6d186b172ec19e72a933db875e289b7", "score": "0.56506807", "text": "protected void capturarArquivo() {\n\t\tString nomeArquivo = (String) tableArquivos.getValueAt(tableArquivos.getSelectedRow(), 0);\r\n\t\tString IP = (String) tableArquivos.getValueAt(tableArquivos.getSelectedRow(), 3);\r\n\t\tint porta = (int) tableArquivos.getValueAt(tableArquivos.getSelectedRow(), 4);\r\n\t\t\r\n\t\t//Crio um Arquivo\r\n\t\tArquivo arquivo = new Arquivo();\r\n\t\tarquivo.setNome(nomeArquivo);\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\tregistry = LocateRegistry.getRegistry(IP, porta);\r\n\t\t\tIServer clienteServidor = (IServer) registry.lookup(IServer.NOME_SERVICO);\r\n\t\t\tclienteServidor.registrarCliente(cliente);\r\n\t\t\t\r\n\t\t\tbyte[] baixarArquivo = clienteServidor.baixarArquivo(arquivo);\r\n\t\t\tescreverArquivo(new File(\"C:\\\\JShare\\\\Downloads\\\\\"+arquivo.getNome()), baixarArquivo);\t\r\n\t\t\t\r\n\t\t} catch (RemoteException e) {\r\n\t\t\tSystem.err.println(\"Erro ao iniciar download do arquivo.\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NotBoundException e) {\r\n\t\t\tSystem.err.println(\"Erro ao iniciar download do arquivo.\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "64174db77a3fdb26376921043e951708", "score": "0.56384563", "text": "public void seleccionaArchivo() {\n\t\tJFileChooser fc = new JFileChooser();\n\t\trespuesta = fc.showOpenDialog(fc);\n\t\tarchivoElegido = fc.getSelectedFile();\n\t\tarchivoOrigen = archivoElegido.getName();\n\t\truta = archivoElegido.getParent()+File.separator;//\"/\";\n\t\tif (respuesta == JFileChooser.APPROVE_OPTION) { \n\t\t\tt2.setText(archivoOrigen);\n\t\t}\n\t}", "title": "" }, { "docid": "8768c7d3d312403a8cc5f146f42e99b9", "score": "0.5635275", "text": "public abstract String getNombreArchivo(String ruta);", "title": "" }, { "docid": "8034883ea55d0b547e717e98b6b43327", "score": "0.56348795", "text": "public void abrirArchivo() {\n try {\n entrada = new Scanner(new File(\"datos2.txt\"));\n } // fin de try\n catch (FileNotFoundException fileNotFoundException) {\n System.err.println(\"Error al abrir el archivo.\");\n System.exit(1);\n } // fin de catch\n }", "title": "" }, { "docid": "8300590fcfb0e63a68fb0c22228cba96", "score": "0.56166834", "text": "public void importarArchivos(String ruta) {\n\t\tFachada fac = new Fachada();\n\t\tfac.importarArchivo(ruta);\n\t}", "title": "" }, { "docid": "4be0b74bf033d1f81cbd15c2341e0916", "score": "0.5600877", "text": "public void run(){\n\t\tFile fbTxt = new File (\"./fbserver.txt\");\r\n\t\tif (fbTxt.exists()==true){\r\n\t\t\tfbTxt.delete();\r\n\t\t}\r\n\t\tFile histo = new File (\"./historique.txt\");\r\n\t\tlong tailleHisto = histo.length();\r\n\t\tSystem.out.println(\"taille histo :\" + tailleHisto/1024 +\" Ko\");\r\n\t\tif (tailleHisto>=1000000){// le fichier est superieur à 1Mo (1Million d'octet)\r\n\t\t\toperation.setText(\"archivage de l'historique\");\r\n\t\t\tSystem.out.println(\"taille histo :\" + (tailleHisto/1024)/1024 +\" Mo\");\r\n\t\t\ttry {\r\n\t\t\t\tString Date = RecupDate.dateEtHeure();\r\n\t\t\t\tFile archive = new File (\"./archive\");\r\n\t\t\t\tif (archive.exists()==false){\r\n\t\t\t\t\tarchive.mkdirs();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tString nomDuFichierGzip = \"./archive/historique_\"+Date+\".txt.gzip\";\r\n\t\t\t\t\r\n\t\t\t\tString CheminHisto = \"./historique.txt\";\r\n\t\t\t\t\r\n\t\t\t\tboolean succes = OutilsZip.gzip(CheminHisto,nomDuFichierGzip);\r\n\t\t\t\tif (succes==true){\r\n\t\t\t\t\t//on a reussi a archiver l'historique, on efface le .txt\r\n\t\t\t\t\thisto.delete();\r\n\t\t\t\t}\r\n\t\t\t\tif (succes==false){\r\n\t\t\t\t\t//on a pas reussi a archiver, on continu avec le meme fichier\r\n\t\t\t\t}\r\n\t\t\t} catch (FileNotFoundException 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 \r\n\t\ttry {\r\n\t\t\tHistorique.ecrire (\"------------ Lancement du logiciel ------------\");\r\n\t\t} catch (IOException e2) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\t\t\r\n\t\t//on verifie la version de java installé:\r\n\t\tString version = System.getProperty(\"java.vm.version\");\r\n\t\ttry {\r\n\t\t\tHistorique.ecrire (\"Version de JVM installé: \" + version);\r\n\t\t} catch (IOException e2) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//on verifie que les drivers my sql sont installé\r\n\t\ttry {\r\n\t\t\tHistorique.ecrire (\"Verification de la presence de firebird\");\r\n\t\t} catch (IOException e2) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\toperation.setText(\"Verification de la presence de firebird\");\r\n\t\t//VariableEnvironement.VarEnvSystemTotal();\r\n\t\tString ProgramFilesdir = VariableEnvironement.VarEnvSystem(\"ProgramFiles\");\r\n\t\tFile fbServer = new File (ProgramFilesdir+\"\\\\Firebird\\\\Firebird_2_0\\\\bin\\\\fbserver.exe\");\r\n\t\t\r\n\t\tif (fbServer.exists()==true){\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"FireBird installés\");\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (fbServer.exists()==false){//le driver odbc n'est pas installé, on l'installe\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"Firebird n'est pas installés\");\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\toperation.setText(\"installation des drivers SQL\");\r\n\t\t\t\r\n\t\t\tString repTravail = GestionRepertoire.RecupRepTravail();\r\n\t\t\t\r\n\t\t\tString cheminDriverInstall = \"\\\"\"+repTravail+\"\\\\Database\\\\Firebird-2.0.3.12981-1-Win32.exe\\\"\";\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"installation de Firebird à partir de \" + cheminDriverInstall);\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//on affiche la progression dans la progressBar\r\n\t\t\tprogress.setValue(25);\r\n\t\t\tprogress.setString(25+\" %\");\r\n\t\t\tRuntime r = Runtime.getRuntime();\r\n\t\t\tProcess p = null;\r\n\t\t\ttry {\r\n\t\t\t\tp = r.exec(\"cmd /c\" + cheminDriverInstall + \"/silent\");\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\ttry {\r\n\t\t\t\tp.waitFor();\r\n\t\t\t} catch (InterruptedException 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\toperation.setText(\"Installation de Firebird Ok\");\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"Installation de Firebird terminée\");\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\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\tfinal String urlversion = \"http://downloads.sourceforge.net/project/carnetclient/setup/version.ini\";\r\n\t\t\tfinal String urlsetup = \"http://downloads.sourceforge.net/project/carnetclient/setup/setupCarnetClient.exe\";\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * {@inheritDoc}\r\n\t\t\t\t\t */\r\n\t\t\t\t\t@Override public void run() {\r\n\t\t\t\t\t\tThread_VerifMajEnLigne majOnline = new Thread_VerifMajEnLigne (urlversion,urlsetup,progress,operation,messageAFairePasser);\r\n\t\t\t\t\t\tmajOnline.start();\r\n\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\t}) ;\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\te.printStackTrace();\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\t\r\n\t\t\t\r\n\t\t//On verifie que le server est bien lancé.\r\n\t\toperation.setText(\"Verification du lancement de firebird\");\t\r\n\t\ttry {\r\n\t\t\tHistorique.ecrire (\"Verification du lancement de firebird\");\r\n\t\t} catch (IOException e2) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tString repTravail = GestionRepertoire.RecupRepTravail();\r\n\t\tString cmdVerifFBServer = String.format(\"cmd /c tasklist.exe /FI \\\"IMAGENAME eq fbserver.exe\\\" /fo list > fbserver.txt\");\r\n\t\t\t\r\n\t\t//on affiche la progression dans la progressBar\r\n\t\tprogress.setValue(35);\r\n\t\tprogress.setString(35+\" %\");\r\n\t\tRuntime r = Runtime.getRuntime();\r\n\t\tProcess p = null;\r\n\t\ttry {\r\n\t\t\tp = r.exec(cmdVerifFBServer);\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\ttry {\r\n\t\t\tp.waitFor();\r\n\t\t} catch (InterruptedException 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\tboolean fbTourne = ReadFile.FindOccurInFile(repTravail+\"\\\\fbserver.txt\", \"fbserver.exe\");\r\n\t\tif (fbTourne==true){\r\n\t\t\toperation.setText(\"Firebird est lancé\");\r\n\t\t\tFile fbTexte = new File (GestionRepertoire.RecupRepTravail()+\"\\\\fbserver.txt\");\r\n\t\t\t\r\n\t\t\tfbTexte.deleteOnExit();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"Firebird est lancé\");\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif (fbTourne==false){\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"Firebird ne tourne pas, on le lance manuellement\");\r\n\t\t\t} catch (IOException e2) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\r\n\t\t\t//on lance le service firebird\r\n\t\t\tRuntime r1 = Runtime.getRuntime();\r\n\t\t\tProcess p1 = null;\r\n\t\t\ttry {\r\n\t\t\t\tp1 = r1.exec(\"cmd.exe /c net start FirebirdGuardianDefaultInstance\");\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\ttry {\r\n\t\t\t\tp1.waitFor();\r\n\t\t\t} catch (InterruptedException 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//on a fini de lancer firebird, on verifie qu'il soit bien lancé\r\n\t\t\tRuntime r2 = Runtime.getRuntime();\r\n\t\t\tProcess p2 = null;\r\n\t\t String cmdVerifFBServer1 = String.format(\"cmd /c tasklist.exe /FI \\\"IMAGENAME eq fbserver.exe\\\" /fo list > fbserver.txt\");\r\n\r\n\t\t\ttry {\r\n\t\t\t\tp2 = r2.exec(cmdVerifFBServer1);\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\ttry {\r\n\t\t\t\tp2.waitFor();\r\n\t\t\t} catch (InterruptedException 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\tfbTourne = ReadFile.FindOccurInFile(repTravail+\"\\\\fbserver.txt\", \"fbserver.exe\");\r\n\t\t\tif (fbTourne==false){//il y a vraiment un pb avec firebird, conseil de contacter le support\r\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Impossible de lancer le moteur de la base de donnée \\n\\r\" +\r\n\t\t\t\t\t\t\"veuillez contacter le developpeur\",\r\n\t\t\t\t\t\t\"Erreur SQL\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tHistorique.ecrire (\"Impossible de lancer le moteur de la base de donnée \\n\\r\" +\r\n\t\t\t\t\t\t\"veuillez contacter le developpeur\");\r\n\t\t\t\t} catch (IOException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tFile fbTexte = new File (GestionRepertoire.RecupRepTravail()+\"\\\\fbserver.txt\");\r\n\t\t\t\tboolean succesDelete = fbTexte.delete();\r\n\t\t\t\tif (succesDelete==false){\r\n\t\t\t\t\tfbTexte.deleteOnExit();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t boolean result = false;\r\n\t\ttry {\r\n\t\t\tresult = ControleConnexion.getControleConnexion();\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\ttry {\r\n\t\t\t\tHistorique.ecrire (\"Message d'erreur: \"+e);\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t//e1.printStackTrace();\r\n\t\t\t}\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\tif (result==true){\r\n\t\t\t\tprogress.setValue(100);\r\n\t\t\t\tprogress.setString(100+\" %\");\r\n\t\t\t\toperation.setText(\"ConnexionReussie\");\r\n\t\t\t\t//animation.stop();\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tFEN_Princ laFenetreMenu = new FEN_Princ();\r\n\t\t\t\tlaFenetreMenu.setVisible(true);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tHistorique.ecrire (\"ConnexionReussie\");\r\n\t\t\t\t} catch (IOException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t//e2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (result==false){//on est pas arrivé a se connecter a la base de donnée mysql, on essaye de se connecter a la base firebird\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Impossible de se connecter a la base\",\r\n\t\t\t\t\t\t\"Erreur\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t//animation.stop();\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tFEN_Princ laFenetreMenu = new FEN_Princ();\r\n\t\t\t\tlaFenetreMenu.setVisible(true);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tHistorique.ecrire (\"Impossible de se connecter a la base\");\r\n\t\t\t\t} catch (IOException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "ba0a7e70ce85c6a13437e67de5e7da6f", "score": "0.5600429", "text": "public void escribirDatosBBDD() throws RemoteException {\n\t\n\tFile usu_borrar = new File (\"Usuarios.dat\");\n\tFile pro_borrar = new File (\"Productos.dat\");\n\tFile ped_borrar = new File (\"Pedidos.dat\"); //Borramos los .dat anteriores para guardar todos los datos con las modificaciones que se \n\tusu_borrar.delete(); //hayan hecho durante la sesión(con ObjectOutputStream sobreescribir genera un problema de cabeceras)\n\tpro_borrar.delete();\n\tped_borrar.delete();\n\t\n\n \t\n\t\n\ttry {\n\tObjectOutputStream usu_salida = new ObjectOutputStream(new FileOutputStream(\"Usuarios.dat\"));\n\tObjectOutputStream pro_salida = new ObjectOutputStream(new FileOutputStream(\"Productos.dat\")); //Volvemos a crear los .dat para guardar \n\tObjectOutputStream ped_salida = new ObjectOutputStream(new FileOutputStream(\"Pedidos.dat\")); //nuestras listas de objetos\n\n\tusu_salida.writeObject(Usuarios); //Escribimos las listas en los .dat\n\tpro_salida.writeObject(Productos);\n\tped_salida.writeObject(Pedidos);\n\n\tusu_salida.close();\n\tpro_salida.close();\n\tped_salida.close();\n\t}catch(Exception e){\n\t\tSystem.out.println(e);\n\t}\t\n\n\t}", "title": "" }, { "docid": "2f5f590c089bd56d696fab4ddd0463ed", "score": "0.5592119", "text": "public void AbrirArchivo() {\n try { \n salida = new Formatter(\"data/ListaNombres.csv\"); \n } \n catch (SecurityException securityException) { \n System.err.println(\"No puede escribir en este archivo - Sin acceso. \"); \n System.exit(1);\n } \n catch (FileNotFoundException filesNotFoundException) { \n System.err.println(\"Error al crear el archivo.\");\n System.exit(1);\n } \n }", "title": "" }, { "docid": "9ecfa6f44376d161bc1aa7d826ae9244", "score": "0.5588552", "text": "private List<String> getDatosArchivoAntiguo(String ruta_destino, String nombre_archivo) {\n List<String> datos = new ArrayList<>();\n FileReader fd = null;\n BufferedReader bf = null;\n String ruta, line;\n File f;\n\n try {\n ruta = ruta_destino + \"\\\\\" + nombre_archivo;\n if (getExisteArchivo(ruta)) {\n f = new File(ruta);\n\n fd = new FileReader(f);\n bf = new BufferedReader(fd);\n\n while ((line = bf.readLine()) != null) {\n datos.add(line);\n }\n }\n\n } catch (FileNotFoundException ex) {\n Logger.getLogger(ManagerDiasGenerados.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(ManagerDiasGenerados.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n try {\n fd.close();\n bf.close();\n } catch (IOException ex) {\n Logger.getLogger(ManagerDiasGenerados.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return datos;\n }", "title": "" }, { "docid": "ddf9170f61dea31fccbfed98cfe99414", "score": "0.55869144", "text": "public void procesarArchivo(File archivo) throws IOException {\n\n\t\tFileReader fr = new FileReader(archivo);\n\t\tBufferedReader br = new BufferedReader(fr);\n\t\tString linea;\n\t\tSystem.out.println(\"La hora de inicio es\" + hour + \" : \" + \" : \" + minutes + \" : \" + seconds);\n\t\twhile ((linea = br.readLine()) != null) {\n\n\t\t\tLineaArchivo ln2 = convertirString(linea);\n\t\t\tlr.save(ln2);\n\t\t\t// saltar proxima linea\n\t\t\tlinea = linea + 1;\n\t\t}\n\t\tbr.close();\n\t\tSystem.out.println(\"La hora de finalizacion es \" + hour + \" : \" + \" : \" + minutes + \" : \" + seconds);\n\t}", "title": "" }, { "docid": "3c48079bdf67a499129c4683aeebac8b", "score": "0.5583652", "text": "private void calcularruta(T objeto){\n\t\tString Onom = objeto.getClass().getSimpleName();\n\t\tif(Onom.equals(\"Partida_Hidato\")){\n\t\t\t Partida_Hidato P = (Partida_Hidato) objeto;\n\t\t\t String ID = String.valueOf(P.get_ID());\n\t\t\t String Player = P.getUsuario().consultar_nombre();\n\t\t\t ruta = \"..\"+ barras + \"DATOS\" + barras +\"Partidas\"+barras +Player;\n\t\t\t archivo = barras + ID + \".bin\";\n\t\t}\n\t\telse if(Onom.equals(\"Jugador\")){\n\t\t\tJugador J = (Jugador) objeto;\n\t\t\truta = \"..\"+ barras + \"DATOS\" + barras +\"Jugadors\";\n\t\t\tarchivo = barras+J.consultar_nombre()+ \".bin\";\n\t\t}\n\t\telse if(Onom.equals(\"Ranking\")){\n\t\t\tRanking R = (Ranking) objeto;\n\t\t\truta =\"..\"+ barras + \"DATOS\" + barras +\"Rankings\";\n\t\t\tarchivo= barras+R.getID()+\".bin\";\n\t\t}\n\t\telse if(Onom.equals(\"Estadisticas\")){\n\t\t\tEstadisticas E = (Estadisticas) objeto;\n\t\t\truta = \"..\"+ barras + \"DATOS\" + barras +\"Estadisticas\";\n\t\t\tarchivo = barras+E.getName()+\".bin\";\n\t\t}\n\t\telse if(Onom.equals(\"Tablero\")){\n\t\t\tTablero T = (Tablero) objeto;\n\t\t\truta =\"..\"+ barras + \"DATOS\" + barras +\"Tableros\";\n\t\t\tString Tnom = String.valueOf(T.get_id());\n\t\t\tarchivo= barras+Tnom+\".bin\";\n\t\t}\n\t}", "title": "" }, { "docid": "eeba41317e4f6eb0b47b596485326582", "score": "0.55819094", "text": "public void escreverHistoricosParaFicheiroBin() throws FileNotFoundException , IOException{\n String filename = \"Historicos.bin\";\n \n File f = new File(filename);\n \n FileOutputStream fos = new FileOutputStream(f);\n ObjectOutputStream oos = new ObjectOutputStream (fos);\n \n \n for(Integer k : this.distribuicoes.keys()){\n for(Integer p : this.distribuicoes.get(k).getZona_habit().keys()){\n for(Integer l : this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().keys()){\n for(Integer t : this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().get(l).getEquipamentos().keys()){\n for(Date h : this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().get(l).getEquipamentos().get(t).getHistoricos().keys() ){\n oos.writeObject(this.distribuicoes.get(k).getZona_habit().get(p).getHabitacoes().get(l).getEquipamentos().get(t).getHistoricos().get(h));\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "a9f5c58634e5db0d4aca0fca842d7f90", "score": "0.55669296", "text": "public List<String> obtenerListadoDeNombresDeArchivosEnUnaCarpeta(String ruta){\n\t\tList<String> listaNombresArchivos = new ArrayList<String>();\n\t\tFile archivos = new File(ruta);\n\t\tFile[] ficheros = archivos.listFiles();\n\t\tfor (File file : ficheros) {\n\t\t\tlistaNombresArchivos.add(file.getPath());\n\t\t}\n\t\treturn listaNombresArchivos;\n\t}", "title": "" }, { "docid": "149dcea35c21bcff504e5f9cc995155e", "score": "0.55666625", "text": "public void listarArchivos(interfazServicioRmi sr){\n System.out.println(\"Listando Archivos:\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Listando Archivos: \");\n \n try {\n String [] lista = sr.listarFicheros();\n if(lista!=null){\n for(int i =0;i<lista.length;i++){\n System.out.println(lista[i]);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(lista[i]);\n }\n }\n \n } catch (RemoteException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "title": "" }, { "docid": "2dddd13de7b747a803301dc3987f9b98", "score": "0.5563452", "text": "private void createNotificacionArchivoConFalla_MoverPendientes(File file,String motivo)\n {\n try\n {\n String directorioamover = RUTAFTPDIRPENDIENTES;\n Notificacion notificacion = new Notificacion();\n notificacion.setRevisadoNotificacion(0);\n notificacion.setRutaarchivoNotificacion(directorioamover+\"/\"+file.getName());\n notificacion.setFechaNotificacion(new Date());\n notificacion.setTipoEvento(-1);\n notificacion.setMotivo(motivo);\n //movemos el archivo ya procesado a la ruta destino correspondiente\n \n File f = new File(directorioamover+\"/\"+file.getName());\n if(f.exists())\n {\n Files.delete(Paths.get(file.getPath()));\n }\n else\n {\n Files.move(Paths.get(file.getPath()),Paths.get(directorioamover+\"/\"+file.getName()) ); \n ejbNotificacionFacade.create(notificacion); \n }\n \n \n }\n catch(Exception e) \n { \n e.printStackTrace();\n }\n \n }", "title": "" }, { "docid": "5e96dd6c53ec860fe024e65812deab67", "score": "0.5526092", "text": "private File mostrarArchivador(FileFilter filtro) {\n JFileChooser selectorArchivo = new JFileChooser();\n selectorArchivo.setDialogTitle(\"Selecciona una ubicacion para guardar\");\n selectorArchivo.setFileFilter(filtro);\n int eleccion = selectorArchivo.showSaveDialog(this);\n \n if (eleccion == JFileChooser.APPROVE_OPTION) {\n return selectorArchivo.getSelectedFile();\n }\n return null;\n }", "title": "" }, { "docid": "36704a8d948b8e1ace8b9a6f98092ced", "score": "0.5521706", "text": "ArrayList<GrafoM> fromArchive(String nome){\n\t\n\t\tString[] sv ;\n\t\tString linha;\n\t\tArrayList<GrafoM> listaGrafos = new ArrayList<>();\t\n\n\t\ttry {\n\t\tFileReader arquivo = new FileReader(nome);\n\t\tBufferedReader ler = new BufferedReader(arquivo);\n\t\tint i,j;\n\t\t\n\t\tlinha = ler.readLine();\n\t\tSystem.out.println(linha);\n\t\twhile (linha != null) {\n\n\t\t\t//primeira linha diz se grafo ou digrafo\n\t\t\tif (linha.equals(\"1\")) {\n\t\t\t\tdirecionado = true;\n\t\t\t}\n\t\t\t//segunda linha fornece o numero de vertices\n\t\t\tlinha = ler.readLine();\n\t\t\tSystem.out.println(linha);\n\n\t\t\tnum_vertices = Integer.parseInt(linha);\n\n\t\t\tGrafoM g1;\n\t\t\tif (direcionado){\n\t\t\t\t//cria um novo grafo\n\t\t\t\t g1 = new GrafoM(num_vertices,true);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t g1 = new GrafoM(num_vertices,false);\n\t\t\t}\n\t\t\tlistaGrafos.add(g1.clone(g1));\n\t\t\tfor (i = 0; i < this.num_vertices; i++) {\n\t\t\t\tlinha = ler.readLine();\n\t\t\t\tSystem.out.println(linha);\n\t\t\t\t//System.out.println(linha + \" Ler uma linha \");\n\t\t\t\tj = 0;\n\t\t\t\tsv = linha.split(\",\");\n\t\t\t\t//System.out.println(Arrays.toString(sv));\n\t\t\t\twhile (j < num_vertices) {\n\t\t\t\t\t//System.out.println(\"i: \" + i + \" \" + sv[j]);\n\t\t\t\t\tint bit = Integer.parseInt(sv[j]);\n\t\t\t\t\tif(bit > 0){\n\t\t\t\t\t\tg1.inserirAresta(i,j);\n\t\t\t\t\t\tSystem.out.println(\"(\"+i+\",\"+j+\")\");\n\n\t\t\t\t\t\t//\tSystem.out.println(\"Adicionarei a aresta(\"+i+\",\"+j+\")\");\n\t\t\t\t\t}\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\tlinha = ler.readLine();\n\n\t\t}\n\t\t } catch (java.io.FileNotFoundException e) {\n\t\t\t System.out.println(\"ERRO.Nao foi possivel abrir o arquivo para leitura\");\n\t\t\t pause();\n\n\t\t\t System.out.println(\"(Pressione 0 para voltar e abrir outro arquivo)\");\n\t\t\t pause();\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\treturn listaGrafos;\n\t}", "title": "" }, { "docid": "4e0b744f3bff82540b05da4e7233d516", "score": "0.5518063", "text": "public Archivo()\n {\n this.archivoSiguiente = null;\n }", "title": "" }, { "docid": "038374c172a81ebd87d7da5721a533af", "score": "0.54974115", "text": "public void intUpdate(){\n File file = new File(\"./temp/\");\n file.mkdir();\n \n \n try {\n Statement st = conn.createStatement();\n \n ResultSet rs = st.executeQuery(\"SELECT ser_servidor_id, ser_nombre, ser_url FROM ser_servidor WHERE ser_estado='1';\");\n ArrayList<String[]> xml_files = new ArrayList<>();\n \n while(rs.next()){\n if(!silence)\n System.out.print(ansi().fg(Ansi.Color.YELLOW).a(\"\\t[\" + rs.getString(\"ser_nombre\") + \"]\").fg(Ansi.Color.DEFAULT).a(\" - Descargando desde: \" + rs.getString(\"ser_url\")).reset());\n \n try {\n URL url = new URL(\"http://200.74.119.116\" + \"/repo.xml\");\n String nombre = \"./temp/\" + Utils.uniqid(\"\", true) + \".xml\";\n \n ReadableByteChannel rbc = Channels.newChannel(url.openStream());\n FileOutputStream fos = new FileOutputStream(nombre);\n fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);\n \n xml_files.add(new String[]{rs.getString(\"ser_servidor_id\"), nombre});\n \n if(!silence)\n System.out.println(ansi().fg(Ansi.Color.GREEN).a(\"\\t[OK]\").reset());\n fos.close();\n rbc.close();\n } catch (MalformedURLException ex) {\n if(!silence)\n System.err.println(\"\\tPor alguna razón la URL del repositorio está mal formada\\n\" + ex);\n } catch (IOException ex) {\n if(!silence)\n System.err.println(\"\\tOcurrió un error inesperado al obtener la data del repositorio\\n\\t\" + ex);\n }\n }\n \n if(!silence)\n System.out.println(\"\\tSe inicia la lectura de los repositorios remotos y match con los repositorios locales\");\n for(int i = 0; i < xml_files.size(); i++){\n File f = new File(xml_files.get(i)[1]);\n \n Document document = null;\n try { \n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = dbf.newDocumentBuilder();\n document = documentBuilder.parse(f);\n } catch (ParserConfigurationException ex) {\n Logger.getLogger(XML_Parse.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SAXException ex) {\n\n } catch (IOException ex) {\n\n }\n \n document.getDocumentElement().normalize();\n \n Element element = document.getDocumentElement();\n \n NodeList nodos = element.getChildNodes();\n for(int x = 0; x < nodos.getLength(); x++){\n if(nodos.item(x).getNodeType() == (Node.ELEMENT_NODE)){\n Element e = (Element) nodos.item(x);\n \n if(e.getNodeName().equalsIgnoreCase(\"paquete\")){\n // Agrega si no existe, actualiza si existe\n \n String id = e.getAttribute(\"id\");\n String nombre = e.getAttribute(\"name\");\n String desc = e.hasAttribute(\"desc\") ? e.getAttribute(\"desc\") : \"\";\n String version = e.getAttribute(\"version\");\n String version_str = e.getAttribute(\"version_str\");\n String url = e.getAttribute(\"url\");\n String date = e.getAttribute(\"date\");\n \n String sql = \"INSERT OR REPLACE INTO `paq_paquete` (`paq_paquete_id`, `paq_ser_servidor_id`, `paq_nombre`, `paq_descripcion`, `paq_version`, `paq_version_str`, `paq_url`, `paq_fecha_version`)\"\n + \"VALUES ('\" + id + \"' , '\" + xml_files.get(i)[0] + \"', '\" + nombre + \"', '\" + desc + \"', '\" + version + \"', '\" + version_str + \"', '\" + url + \"', '\" + date + \"');\";\n \n st.execute(sql);\n }\n }\n }\n f.delete();\n }\n } catch (SQLException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "d4ca0fd790f4dbc12997f5f84de978c2", "score": "0.5494673", "text": "VistaBien darBajaBien (VistaBien vistaBien) throws SeguridadesException;", "title": "" }, { "docid": "fd31d61b0271aaddc4d4a1aa08995dfc", "score": "0.5490811", "text": "public static void main(String[] args) {\n\t\tint contador=0;\r\n\t\tint datos_entrada[]= new int[32988];\r\n\t\ttry{\r\n\t\t\r\n\t\t\tFileInputStream archivo_lectura=new FileInputStream(\"C:/Users/DAM119_Vespertino/Desktop/programacion texto/foto.jpg\");\r\n\t\tboolean final_ar=false;\r\n\t\t\twhile(!final_ar){\r\n\t\t\t\tint byte_entrada=archivo_lectura.read();\r\n\t\t\t\tif(byte_entrada!=-1)\r\n\t\t\t\t\tdatos_entrada[contador]=byte_entrada;\r\n\t\t\t\telse\r\n\t\t\t\t//if(byte_entrada==-1)\r\n\t\t\t\tfinal_ar=true;\r\n\t\t\t\t//System.out.println(byte_entrada);\r\n\t\t\t\tSystem.out.println(datos_entrada[contador]);\r\n\t\t\t\tcontador++;\r\n\t\t\t}\r\n\t\t\tarchivo_lectura.close();\r\n\t\t}catch(IOException e){\r\n\t\t\tSystem.out.println(\"Error el acceder a la imagen\");\r\n\t\t}\r\n\t\tSystem.out.println(contador);\r\n\t\tcrea_fichero(datos_entrada);\r\n\t}", "title": "" }, { "docid": "d1923cee6396454ab35df5b809fa8acd", "score": "0.54895633", "text": "static String buscararchivo() {\n String url = \"\";\n JFileChooser fc = new JFileChooser();\n //Mostrar la ventana para abrir archivo y recoger la respuesta\n //En el parámetro del showOpenDialog se indica la ventana\n // al que estará asociado. Con el valor this se asocia a la\n // ventana que la abre.\n int respuesta = fc.showOpenDialog(null);\n //Comprobar si se ha pulsado Aceptar\n if (respuesta == 0) {\n //Crear un objeto File con el archivo elegido\n File archivoElegido = fc.getSelectedFile();\n //Mostrar la ruta y el nombre del archvivo por consola\n System.out.println(archivoElegido.getAbsolutePath());\n url = archivoElegido.getAbsolutePath();\n }\n return (url);\n }", "title": "" }, { "docid": "2d959378567dab1713e69e797a8bf2ad", "score": "0.54833406", "text": "private void setArchivo(String ruta_pdf, String nombre_pdf, String ruta_destino, String nombre_archivo_destino){\n boolean sobreescribir = false;\n diferencias = new ArrayList<>();\n List<String> archivo_antiguo = this.getDatosArchivoAntiguo(ruta_destino, nombre_archivo_destino);\n lpdfd = new TratarPdfDiasGenerados(ruta_pdf, nombre_pdf);\n List<String> dias_leidos = lpdfd.getDiasLeidosPdf();\n \n //si no hay datos antiguos no se indica nada en el string\n if(!archivo_antiguo.isEmpty()){\n diferencias = getCompararDatos(archivo_antiguo, dias_leidos); \n }\n \n super.writeFile(ruta_destino, nombre_archivo_destino, dias_leidos, sobreescribir);\n }", "title": "" }, { "docid": "e9945b460c51cf285340ed8731203f77", "score": "0.548252", "text": "private void abrirArchivo()\n {\n // mostrar cuadro de diálogo para que el usuario pueda seleccionar el archivo\n JFileChooser selectorArchivo = new JFileChooser();\n selectorArchivo.setFileSelectionMode( JFileChooser.FILES_ONLY );\n \n int resultado = selectorArchivo.showOpenDialog( this );\n \n // si el usuario hizo clic en el botón Cancelar del cuadro de diálogo, regresar\n if ( resultado == JFileChooser.CANCEL_OPTION )\n return;\n \n // obtener el archivo seleccionado\n File nombreArchivo = selectorArchivo.getSelectedFile();\n \n // mostrar error si el nombre de archivo es incorrecto\n if ( nombreArchivo == null || nombreArchivo.getName().equals( \"\" ) )\n JOptionPane.showMessageDialog( this, \"Nombre de archivo incorrecto\",\n \"Nombre de archivo incorrecto\", JOptionPane.ERROR_MESSAGE );\n \n else {\n \n // abrir el archivo\n try {\n salida = new RandomAccessFile( nombreArchivo, \"rw\" );\n \n }\n \n // procesar excepción que puede ocurrir al abrir el archivo\n catch ( IOException excepcionES ) {\n JOptionPane.showMessageDialog( this, \"El archivo no existe\",\n \"Nombre de archivo incorrecto\", JOptionPane.ERROR_MESSAGE );\n } \n \n } // fin de instrucción else\n \n }", "title": "" }, { "docid": "aa39cab860e362dd2842be6cc28c67c2", "score": "0.547371", "text": "public Vector eventos() throws Exception {\n\t\t/*\n\t\t * inicializamos el vector a devolver\n\t\t */\n\t\tVector v_Eventos = new Vector();\n\t\t/*\n\t\t * reseteamos el rete\n\t\t */\n\t\trete.reset();\n\t\t/*\n\t\t * limpiamos el rete\n\t\t */\n\t\trete.clear();\n\t\trete.executeCommand(\"(batch \\\"\" + archivo + \"\\\")\");\n\t\t/*\n\t\t * aserta las cartas que hay en la mesa para decidir con cuales atacar\n\t\t */\n\t\tVector v_MesaPC = (((partida.getMesa()).getJugador2()).getVectorCriaturas());\n\t\tfor (int i = 0; i < v_MesaPC.size(); i++) {\n\t\t\t/*\n\t\t\t * comparamos con null para evitar errores\n\t\t\t */\n\t\t\tif ((CACarta) v_MesaPC.elementAt(i) != null) {\n\t\t\t\trete.executeCommand(\"(assert \" + ((CACarta) v_MesaPC.elementAt(i)).dame_clips(\"jugador2\") + \")\");\n\t\t\t}\n\t\t}\n /*\n * aserta las cartas que hay en la mesa del jugador humano para \n *optimizar las cartas con las que atacar.Ademas en caso de las \n *inteligencias avanzadas sera necesario añadir una serie de hechos \n *auxiliares para tomar las mejores decisiones\n\t\t */\n\t\t if ((partida.getNivelInteligencia()== 1)|(partida.getNivelInteligencia()== 2)){\n\t\t \t\t// hecho que lleva el contador de ataques (atacar)\n \t\trete.executeCommand(\"(assert(contadorAtaques(contador 0)))\");\n \t\t\t// hecho que lleva la posible solución (trivial) (atacar)\n \t\trete.executeCommand(\"(assert(posibleSolucion(cartasQueAtacan 0)(resultado 0)))\");\n \t\t\t// mantiene el acumulador de los posibles resultados (atacar)\n \t\trete.executeCommand(\"(assert(acumulador(resultado 0)))\");\n \t\t//ahora asertamos las cartas del oponente humano\n Vector v_MesaPersona = (((partida.getMesa()).getJugador1()).getVectorCriaturas());\n for (int i = 0; i < v_MesaPersona.size(); i++) {\n /*\n * comparamos con null para evitar errores\n */\n if ((CACarta) v_MesaPersona.elementAt(i) != null) {\n \t//System.out.println(\"(assert \" + ((CACarta) v_MesaPersona.elementAt(i)).dame_clips(\"jugador1\") + \")\");\n \trete.executeCommand(\"(assert \" + ((CACarta) v_MesaPersona.elementAt(i)).dame_clips(\"jugador1\") + \")\");\n }\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * aserta el numero de cartas con las que puede atacar(numero de cartas en la mesa)\n\t\t */\n\t\trete.executeCommand(\"(assert( numerocartas (ncartas \" + (((partida.getMesa()).getJugador2()).getVectorCriaturas()).size() + \")))\");\n\t\t/*\n\t\t * aserta el hecho iniciar_ataque\n\t\t */\n\t\trete.executeCommand(\"(assert( intentar_ataque ))\");\n\t\t/*\n\t\t * hechos antes del run\n\t\t */\n\t\tVector v_string1 = new Vector();\n\t\tVector v_string2 = new Vector();\n\t\tjava.util.Iterator iterador1;\n\t\titerador1 = rete.listFacts();\n\t\twhile (iterador1.hasNext()) {\n\t\t\tString s1 = iterador1.next().toString();\n\t\t\tif (s1.startsWith(\"(MAIN::carta\")){\n\t\t\t\tv_string1.addElement(s1);\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * hechos despues del run\n\t\t */\n\t\trete.run();\n\t\tjava.util.Iterator iterador2;\n\t\titerador2 = rete.listFacts();\n\t\twhile (iterador2.hasNext()) {\n\t\t\tString s2 = iterador2.next().toString();\n\t\t\tif (s2.startsWith(\"(MAIN::carta\")){\n\t\t\t\tv_string2.addElement(s2);\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * actualizamos cartas\n\t\t */\n\t\t/*\n\t\t * empiezan en 0 estas pq ya no hay \"initial fact\"\n\t\t */\n\t\tint i = 0;\n\t\t/*\n\t\t * los dos ultimos elementos de este String son correspondientes al\n\t\t * cambio en el numero de cartas y el aserto de \"intentar ataque\" y\n\t\t * estos no deben enviar eventos de ningun tipo\n\t\t */\n\t\twhile (i < v_string1.size()) {\n\t\t\tString s1 = (String) v_string1.elementAt(i);\n\t\t\tString s2 = (String) v_string2.elementAt(i);\n\t\t\t/*\n\t\t\t * ponemos las cartas que atacaran,la carta debe girarse si ha\n\t\t\t * habido un cambio en su texto\n\t\t\t */\n\t\t\tif (!(s1.equals(s2))) {\n\t\t\t\t/*\n\t\t\t\t * añadimos un evento de ataque con el codigo de la carta y con\n\t\t\t\t * su posicion en el vector\n\t\t\t\t */\n\t\t\t\t/*\n\t\t\t\t * OBS HAY QUE MANDAR EL INDICE DEL VECTOR COMO UN STRING!!\n\t\t\t\t */\n\t\t\t\tEventoAtaque evento = new EventoAtaque(((CACarta) (v_MesaPC.elementAt(i))).getCodigo(), String.valueOf(i));\n\t\t\t\t//System.out.println(\"Lanza el evento de ataque: \"+((CACarta) (v_MesaPC.elementAt(i))).getCodigo()+\" \"+String.valueOf(i));\n\t\t\t\tv_Eventos.addElement(evento);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn v_Eventos;\n\t}", "title": "" }, { "docid": "d11e1fdf33810bcc10c55fcd6668bad7", "score": "0.54635847", "text": "public void escreveArquivo(){\n\t\t try{\n FileOutputStream arqGravCliente =new FileOutputStream(\"cliente.dat\");\n\n //Responsavel por inserir os objetos\n ObjectOutputStream objGravarCliente = new ObjectOutputStream(arqGravCliente);\n\n //Grava o objeto cliente no arquivo\n objGravarCliente.writeObject(vetorclientes);\n objGravarCliente.flush();\n objGravarCliente.close();\n arqGravCliente.flush();\n arqGravCliente.close();\n System.out.println(\"Objeto gravado com sucesso!\");\n\t\t}\n catch( Exception e ){\n\n e.printStackTrace( );\n\n }\n //peça\n \n try{\n FileOutputStream arqGravPeca =new FileOutputStream(\"peca.dat\");\n\n //Responsavel por inserir os objetos\n ObjectOutputStream objGravarPeca = new ObjectOutputStream(arqGravPeca);\n\n //Grava o objeto cliente no arquivo\n objGravarPeca.writeObject(vetorpeca);\n objGravarPeca.flush();\n objGravarPeca.close();\n arqGravPeca.flush();\n arqGravPeca.close();\n System.out.println(\"Objeto gravado com sucesso!\");\n\t\t}\n catch( Exception e ){\n\n e.printStackTrace( );\n\n }\n \n //servico\n \n try{\n FileOutputStream arqGravServico =new FileOutputStream(\"servico.dat\");\n\n //Responsavel por inserir os objetos\n ObjectOutputStream objGravarServico = new ObjectOutputStream(arqGravServico);\n\n //Grava o objeto cliente no arquivo\n objGravarServico.writeObject(vetorservico);\n objGravarServico.flush();\n objGravarServico.close();\n arqGravServico.flush();\n arqGravServico.close();\n System.out.println(\"Objeto gravado com sucesso!\");\n\t\t}\n catch( Exception e ){\n\n e.printStackTrace( );\n\n }\n \n //Ordem servico\n \n try{\n FileOutputStream arqGravOS =new FileOutputStream(\"OS.dat\");\n\n //Responsavel por inserir os objetos\n ObjectOutputStream objGravarOS = new ObjectOutputStream(arqGravOS);\n\n //Grava o objeto cliente no arquivo\n objGravarOS.writeObject(vetorOS);\n objGravarOS.flush();\n objGravarOS.close();\n arqGravOS.flush();\n arqGravOS.close();\n System.out.println(\"Objeto gravado com sucesso!\");\n\t\t}\n catch( Exception e ){\n\n e.printStackTrace( );\n\n }\n \n\t}", "title": "" }, { "docid": "4428fb90ded30a7252a2525539819e7c", "score": "0.543486", "text": "public void compresser(String adresseFichierFinal, boolean verbeux){\n\t\tlong temps=-System.currentTimeMillis();\n\t\tif(verbeux){\n\t\t\tSystem.out.println(\"-------- COMPRESSION--------\");\n\t\t\tSystem.out.println(\"De : \"+_depart);\n\t\t\tSystem.out.println(\"Vers : \"+adresseFichierFinal);\n\t\t\tSystem.out.println(\"Methode : Dictionnaire\");\n\t\t}\n\t\ttry{\n\t\t\tif(verbeux)System.out.print(\">> Dictionnaire... \");\n\t\t\tdictionnaire=new HashMap<List<Byte>,String>();\n\t\t\tlisteMotsPresents=new ArrayList<List<Byte>>();\n\t\t\ttexteMotParMot=new ArrayList<List<Byte>>();\n\t\t\t\n\t\t\tDataInputStream fluxLecture=new DataInputStream(new BufferedInputStream(new FileInputStream(_depart)));\n\t\t\t\n\t\t\t// le Set sert à obtenir rapidement tous les mots (plus rapide que le .put des maps) :\n\t\t\tSet<List<Byte>> SetMotsPresents=new HashSet<List<Byte>>();\n\t\t\t\n\t\t\t// puis on separe les mots en mettant à jour SetMotsPresents et texteMotParMot :\n\t\t\tList<Byte> bytesDepuisEspace=new ArrayList<Byte>();\n\t\t\tbyte byteLu=0;\n\t\t\twhile((byteLu=(byte)fluxLecture.read())!=-1){\n\t\t\t\tif(byteLu==' '){\n\t\t\t\t\tSetMotsPresents.add(bytesDepuisEspace);\n\t\t\t\t\ttexteMotParMot.add(bytesDepuisEspace);\n\t\t\t\t\tbytesDepuisEspace=new ArrayList<Byte>();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tbytesDepuisEspace.add(byteLu);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// pour le dernier mot :\n\t\t\tSetMotsPresents.add(bytesDepuisEspace);\n\t\t\ttexteMotParMot.add(bytesDepuisEspace);\n\t\t\t\n\t\t\tfluxLecture.close();\n\t\t\tif(verbeux)System.out.println(\"OK (\"+SetMotsPresents.size()+\")\");\n\t\t\t\n\t\t\t// on calcule le nombre de bit pour coder les index :\n\t\t\tif(verbeux)System.out.print(\">> Poid des index... \");\n\t\t\tnbBit=1;\n\t\t\twhile(SetMotsPresents.size()>Math.pow(2, nbBit))nbBit++;\n\t\t\tif(verbeux)System.out.println(\"OK (\"+nbBit+\")\");\n\t\t\t\n\t\t\t// on ordonne les mots de Set avec listeMotsPresents et on met à jour le dictionnaire\n\t\t\tif(verbeux)System.out.print(\">> Indexation... \");\n\t\t\tlisteMotsPresents=new ArrayList<List<Byte>>(SetMotsPresents);\n\t\t\tint i=0;\n\t\t\tfor(List<Byte> l:listeMotsPresents){\n\t\t\t\tdictionnaire.put(l,int2bin(i,nbBit));// int2bin renvoie une String de '0' et de '1' correspondant au texte\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif(verbeux)System.out.println(\"OK\");\n\t\t\t\n\t\t\tif(verbeux)System.out.print(\">> Encodage... \");\n\t\t\tDataOutputStream fluxEcriture=new DataOutputStream(new BufferedOutputStream(new FileOutputStream(adresseFichierFinal)));\n\t\t\t\n\t\t\t// on ajoute au debut du fichier :\n\t\t\tfluxEcriture.writeInt(listeMotsPresents.size());// le nombre de mots du dictionnaire\n\t\t\tfluxEcriture.writeInt(nbBit);// la taille des index \n\t\t\tfluxEcriture.writeInt(texteMotParMot.size());// le nombre de mots du texte\n\t\t\t\n\t\t\t// on ecrit la taille de chaque mot sur 16 bit\n\t\t\t// (pas de séparateur entre les mots dans le fichier compressé)\n\t\t\tfor(List<Byte> mot:listeMotsPresents)\n\t\t\t\tfluxEcriture.writeShort(mot.size());\n\t\t\t\n\t\t\t// puis on écrit tous les mots du dictionnaire\n\t\t\tbyte[][] dictionnaireByteArray=new byte[listeMotsPresents.size()][];\n\t\t\tfor(int j=0;j<listeMotsPresents.size();j++){\n\t\t\t\tdictionnaireByteArray[j]=new byte[listeMotsPresents.get(j).size()];\n\t\t\t\t// dans certains cas, on obtient une erreur si on ecrit tous les bits à la fois :\n\t\t\t\tfor(int k=0;k<listeMotsPresents.get(j).size();k++){\n\t\t\t\t\tdictionnaireByteArray[j][k]=listeMotsPresents.get(j).get(k);\n\t\t\t\t\tfluxEcriture.writeByte(dictionnaireByteArray[j][k]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//on ecrit les index dans une chaîne :\n\t\t\tStringBuffer chaîneAEcrire=new StringBuffer();\n\t\t\tfor(List<Byte> l:texteMotParMot){\n\t\t\t\tchaîneAEcrire.append(dictionnaire.get(l));\n\t\t\t}\n\t\t\t\n\t\t\t// on separe la chaîne en strings de '0' et de '1' de taille 8 et on ecrit le nombre correspondant\n\t\t\tbyte[] donneesI=new byte[(texteMotParMot.size()*nbBit)/8+1];\n\t\t\tfor(int j=0;j<donneesI.length-1;j++){\n\t\t\t\tdonneesI[j]=string2Byte(chaîneAEcrire.substring(j*8, j*8+8));\n\t\t\t}\n\t\t\t// le dernier caractère :\n\t\t\tdonneesI[donneesI.length-1]=string2Byte(chaîneAEcrire.substring(donneesI.length*8-8));\n\t\t\tfor(byte b:donneesI)\n\t\t\t\tfluxEcriture.writeByte(b);\n\t\t\t\n\t\t\tfluxEcriture.close();\n\t\t\tSystem.out.println(\"OK\");\n\t\t\ttemps+=System.currentTimeMillis();\n\t\t\tSystem.out.println(\"Fin de la compression en \"+temps+\" ms\");\n\t\t\tCSP.tauxComp(_depart, adresseFichierFinal);\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "title": "" }, { "docid": "6e460a9fd261e37756b59c260cb99edf", "score": "0.5432149", "text": "public static void main(String[] args) {\n\r\n\t\tString pathname = (\"Z:\" + File.separator + \"Dropbox\" + File.separator + \"LMG\" + File.separator + \"Cursos\"\r\n\t\t\t\t+ File.separator + \"2016 - Java\" + File.separator + \"_Plantillas\");\r\n\t\tFile ruta = new File(pathname);\r\n\r\n\t\tSystem.out.println(\"Ruta absoluta: \" + ruta.getAbsolutePath());\r\n\r\n\t\tString[] nombres_archivos = ruta.list();\r\n\r\n\t\tfor (String string : nombres_archivos) {\r\n\t\t\tSystem.out.println(string);\r\n\r\n\t\t\tFile f = new File(ruta.getAbsolutePath(), string);\r\n\t\t\tif (f.isDirectory()) {\r\n\t\t\t\tString archivos_subcarpeta[] = f.list();\r\n\t\t\t\tfor (String string2 : archivos_subcarpeta) {\r\n\t\t\t\t\tSystem.out.println(\"\\\\--\" + string2);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "852319af6206a90042ec87c2a117784f", "score": "0.5429672", "text": "private void borrarArchivo(String ls_ruta) throws Throwable{\n\t\tString ruta, cadenaAEnviar;\n\t\t\n\t\tHashtable params = new Hashtable();\n\t\t//params.put(\"cadena\",cadenaAEnviar);\n\t\tparams.put(\"ruta\", ls_ruta);\n\t\t\n\t\t\n\t\ttry {\n\t\t\tHttpMultipartRequest http = new HttpMultipartRequest(ls_servidor + \"/deleteFile.php\", params, \"upload_field\",\"\", \"text/plain\", new String(\"\").getBytes());\n\t\t\tbyte[] response=http.send();\n\t\t\t//new String (response); Esta es la respuesta del servidor\n\t\t\t\n\t\t\tif (!new String(response).trim().equals(\"0\")){\n\t\t\t\tthrow new Throwable(new String(response));\n\t\t\t} \n\t\t\t\n\t\t\t//Enviamos las fotos que tenemos pendientes\n\t\t\t//enviaFotosWifi();\n\t\t\t\n\t\t\t}catch(Throwable e){\n\t\t\t\tthrow e;\n\t\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4b8c21264d78728317e9644ffc702198", "score": "0.54242116", "text": "public static void main(String[] args) {\n\t\t\n\t\ttry(FileOutputStream fos = new FileOutputStream(\"data.ser\");\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\t\tFileOutputStream fos2 = new FileOutputStream(\"archiwum.zip\");\n\t\t\t\tZipOutputStream zos = new ZipOutputStream(fos2);\n\t\t\t\tFileInputStream fis = new FileInputStream(\"data.ser\")\n\t\t\t\t){\n\t\t\t\toos.writeObject(new Czlowiek(args[0], args[1], LocalDate.parse(args[2])));\n\t\t\t\tZipEntry ze = new ZipEntry(\"data.ser\");\n\t\t\t\tzos.putNextEntry(ze);\n\t\t\t\tint bs = 1024, c;\n\t\t\t\tbyte[] buff = new byte[bs];\n\t\t\t\twhile((c = fis.read(buff, 0, bs))>-1) {\n\t\t\t\t\tzos.write(buff, 0, c);\n\t\t\t\t}\n\t\t\t\tzos.closeEntry();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "1cce40eaa41a25e9851511ca0fa86915", "score": "0.5422358", "text": "public void leerDatosBBDD() throws RemoteException {\n\t\n\tFile archivo_usuario = new File(\"Usuarios.dat\");\n\tFile archivo_producto = new File(\"Productos.dat\");\t //Abrimos los ficheros .dat (BBDD) donde tenemos guardados los datos\n\tFile archivo_pedido = new File(\"Pedidos.dat\");\n\t\t\t\t\n\tif (archivo_usuario.length()!=0){\n\t\ttry{\n\t\tObjectInputStream usu_entrada = new ObjectInputStream(new FileInputStream(\"Usuarios.dat\")); //Leemos todos los .dat y los guardamos \n\t\tUsuarios = (List <Usuario>) usu_entrada.readObject(); //en listas de objetos, pero solo si no están vacíos\n\t\tusu_entrada.close(); \n\t}catch(Exception e){\n\t\tSystem.out.println(e);\n\t}\t\n\t}\n\tif (archivo_producto.length()!=0){\n\t\ttry{\n\t\tObjectInputStream pro_entrada = new ObjectInputStream(new FileInputStream(\"Productos.dat\"));\n\t\tProductos = (List <Producto>) pro_entrada.readObject();\n\t\tpro_entrada.close();\n\t}catch(Exception e){\n\t\tSystem.out.println(e);\n\t}\t\n\t}\n\tif (archivo_pedido.length()!=0){\n\t\ttry{\n\t\tObjectInputStream ped_entrada = new ObjectInputStream(new FileInputStream(\"Pedidos.dat\"));\n\t\tPedidos = (List <Pedido>) ped_entrada.readObject();\n\t\tped_entrada.close(); \n\t}catch(Exception e){\n\t\tSystem.out.println(e);\n\t}\t\n\t}\t\n\t}", "title": "" }, { "docid": "f751c3db297a83bee8fbaf2be93ccbc6", "score": "0.54163426", "text": "public void ejecutar() throws IOException {\n\t\t\n\t\tSystem.out.println(\"Seleccionado \\\"\" + id_Sitio_Destino + \"\\\" como sitio DESTINO\");\t\n\t\tConvierteLesson.codigoConversion = cadenaRandom(3);\n\t\tSystem.out.println(\"Nombre de la carpeta recursos: Export\" + ConvierteLesson.codigoConversion + \"1\");\n\t\tFile temp = new File(ruta + \"CONVERTIDO\");\n\t\ttemp.mkdir();\n\t\tif (temp.exists()) System.out.println(\"Se ha creado el directorio \" + ruta +\"temporal\");\n\t\tString rutaTemp = ruta + \"CONVERTIDO\"+File.separator;//\";\n\t\tFile destino = new File(rutaTemp + archivoOrigen);\n\t\tarchivoElegido.renameTo(destino);\n\t\tProcesaArchivos c = new ProcesaArchivos();\n\t\tZip zip = new Zip(rutaTemp);\n\t\tzip.extraer(rutaTemp, archivoOrigen);\n\n\t\t\n\t\tc.listaArchivosHTML(rutaTemp);\n\t\tc.moverArchivos(rutaTemp, archivoElegido);\n\t\tc.transformaXML(rutaTemp);\n\t\tc.borrarArchivos(rutaTemp);\n\t\tzip.generateFileList(new File(rutaTemp));\n\t\tzip.zipIt(ruta+\"XXX_\"+archivoOrigen+\"_CONVERTIDO_LESSONS_XXX.zip\");\n\t\tzip.borrarCarpeta(ruta+\"CONVERTIDO\");\n\t\tconversionRealizada();\n\t\t\n\t}", "title": "" }, { "docid": "80423a64ab7c14e215f1c267d69eb1b7", "score": "0.54040825", "text": "private static void ejercicio2() {\n\t\tSystem.out.println(\"Introduce nombre de fichero o carpeta\");\n\t\tString nombre = t.nextLine();\n\t\t\n\t\t//Creamos objeto File para acceder a su información\n\t\tFile fichero = new File(nombre);\n\t\t\n\t\t//comprobamos si existe\n\t\tif(fichero.exists()) {\n\t\t\t//Comprobamos si es carpeta o fichero\n\t\t\tif(fichero.isDirectory()) {\n\t\t\t\tSystem.out.println(\"Carpeta\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Fichero\");\n\t\t\t}\n\t\t\t\n\t\t\t//Mostramos fecha\n\t\t\t//Crear un formato de fecha\n\t\t\tSimpleDateFormat formato = new SimpleDateFormat(\"dd/MM/yyyy hh:mm:ss\");\n\t\t\tString fecha = formato.format(new Date(fichero.lastModified()));\n\t\t\t\n\t\t\tSystem.out.println(\"Fecha última modificación:\"+ fecha);\n\t\t\t\n\t\t\t//Mostramos el tamaño\n\t\t\tSystem.out.println(\"Tamaño:\"+fichero.length());\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"El nombre no existe\");\n\t\t}\n\t}", "title": "" }, { "docid": "b06856c85d1ac795eadb51da9406a6f0", "score": "0.54005337", "text": "public boolean subirArchivo(String rutaArchivoLocal, String rutaDbx){\n try{\n if(this.cliente != null){\n //Ahora intentamos subir un archivos...\n File archivoASubir = new File(rutaArchivoLocal);\n\n if(!archivoASubir.exists()){\n Bitacora log = new Bitacora();\n log.registarEnBitacora(\"errores.txt\", \"errores.txt\", \"El archivo a subir no existe.\", Bitacora.WARNING);\n return false;\n }\n\n FileInputStream inputStream = new FileInputStream(archivoASubir);\n String url = \"\";\n\n try {\n DbxEntry.File uploadedFile = cliente.uploadFile(rutaDbx, DbxWriteMode.force(), archivoASubir.length(), inputStream);\n //System.out.println(\"Archivo subido: \" + uploadedFile.toString());\n } finally {\n inputStream.close();\n }\n \n return true;\n }\n }\n catch(IOException e){\n Bitacora log = new Bitacora();\n log.registarEnBitacora(\"errores.txt\", \"errores.txt\", e.getMessage() + \": No se pudo abrir el archivo para subir a Dropbox\", Bitacora.SEVERE);\n return false;\n }\n catch(DbxException f){\n Bitacora log = new Bitacora();\n log.registarEnBitacora(\"errores.txt\", \"errores.txt\", f.getMessage() + \": No se pudo subir el archivo a Dropbox\", Bitacora.SEVERE);\n return false;\n }\n return false;\n }", "title": "" }, { "docid": "89c3f00a6c3138837e0492d269805301", "score": "0.5398965", "text": "public static void GuardarArchivo() {\n\t\ttry {\r\n\t\t\tFileWriter doc = new FileWriter (\"src\\\\Entregable3_SalvaBlanquer\\\\Tareas\");\r\n\t\t\tPrintWriter pw = new PrintWriter (doc);\r\n\t\t\tfor (int i = 0; i < autoincremental; i++) {\r\n\t\t\t\tString Guardado = ArrayTareas[i].getTitulo()+ ArrayTareas[i].getFechayHora()+ ArrayTareas[i].getEstado();\r\n\t\t\t\tpw.println(Guardado);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tpw.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(\"No hay archivo\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7659c194c3f7b058491b573f34fbbd68", "score": "0.5398436", "text": "public HashMap<K,V> leerArchivo(){\n\t\ttry {\n\t\t\tentrada = new ObjectInputStream(new FileInputStream(rutaDelArchivo));\n\t\t\tretornoHashMap = (HashMap<K, V>) entrada.readObject();\n\t\t}catch(EOFException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}catch (FileNotFoundException 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\t\t\te.printStackTrace();\n\t\t}catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\ttry {\n\t\t\t\tentrada.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}\n\t\treturn retornoHashMap;\n\t}", "title": "" }, { "docid": "094ab0bbfb41ef0580b2003cdf580331", "score": "0.53829867", "text": "public String obtenerCabeceraBackup();", "title": "" }, { "docid": "809e849fdab923fccaf716398a78335a", "score": "0.5368607", "text": "public void lerDistribuicoesBin() throws FileNotFoundException, IOException, ClassNotFoundException{\n String filename = \"Distribuicoes.bin\";\n File f = new File(filename);\n FileInputStream fis = new FileInputStream(f);\n ObjectInputStream ois = new ObjectInputStream(fis);\n \n while(ois.available()> 0){\n DistribuicaoEletrica dist = (DistribuicaoEletrica)ois.readObject();\n \n this.distribuicoes.put(dist.getDist_id(), dist);\n }\n \n }", "title": "" }, { "docid": "fe3846647d069d001e1ee9adb6dd3780", "score": "0.5362118", "text": "private void calcularDemoras(String id, int hora, List<Auto> copiaColaDesabolladura,\n\t\t\tList<Auto> copiaColaPintura, List<Auto> copiaColaArmado,\n\t\t\tList<Auto> copiaColaPulido) {\n\n\t\t//copiar estado del sistema\n\t\tList<Trabajador> copiaDesabolladores = new ArrayList<Trabajador>();\n\t\tList<Trabajador> copiaPintores = new ArrayList<Trabajador>();\n\t\tList<Trabajador> copiaMecanicos = new ArrayList<Trabajador>();\n\n\t\tfor (int i = 0; i < desabolladores.size(); i++) {\n\t\t\tcopiaDesabolladores.add(Clone(desabolladores.get(i)));\n\t\t}\n\n\t\tfor (int i = 0; i < pintores.size(); i++) {\n\t\t\tcopiaPintores.add(Clone(pintores.get(i)));\n\t\t}\n\n\t\tfor (int i = 0; i < mecanicos.size(); i++) {\n\t\t\tcopiaMecanicos.add(Clone(mecanicos.get(i)));\n\t\t}\n\n\t\t// ya está la nueva situacion a simular para que no se cambie la\n\t\t// original (instancias nuevas)\n\n\t\tboolean seguir = true;\n\n\t\twhile (seguir) {\n\n\t\t\t// revisamos la situacion de cada trabajador\n\n\t\t\t// desabolladores...\n\t\t\tfor (Trabajador t : copiaDesabolladores) {\n\t\t\t\t// si esta desocupado, le tratamos de asignar trabajo\n\n\t\t\t\tif (t.ocupado(hora) == false) {\n\t\t\t\t\tif (copiaColaDesabolladura.size() != 0) {\n\t\t\t\t\t\tt.asignarTrabajo(copiaColaDesabolladura.get(0), hora,\n\t\t\t\t\t\t\t\tetapa.desabolladura);\n\t\t\t\t\t\tt.trabajoActual.llegadaDesabolladura = hora;\n\t\t\t\t\t\tcopiaColaDesabolladura.remove(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// si esta ocupado, pero es su ultimo dia de trabajo, tiene que\n\t\t\t\t// mover su trabajo a la siguiente cola del proceso\n\t\t\t\tif (hora + 1 < 365 * 2 * 8)\n\t\t\t\t\tif (t.ocupado(hora) == true && t.ocupado(hora + 1) == false) {\n\t\t\t\t\t\t// agregamos el trabajo a la siguiente cola del proceso\n\t\t\t\t\t\tt.trabajoActual.salidaDesabolladura = hora;\n\t\t\t\t\t\tt.trabajoActual.setEtapa(null);\n\n\t\t\t\t\t\tcopiaColaPintura.add(t.getTrabajoActual());\n\n\t\t\t\t\t\t// le quitamos al trabajador ese trabajo\n\t\t\t\t\t\tt.setTrabajoActual(null);\n\t\t\t\t\t}\n\t\t\t}\n\n\t\t\t// pintores...\n\t\t\tfor (Trabajador t : copiaPintores) {\n\t\t\t\t// si esta desocupado, le tratamos de asignar trabajo\n\t\t\t\tif (t.ocupado(hora) == false) {\n\t\t\t\t\tif (copiaColaPintura.size() != 0) {\n\t\t\t\t\t\tt.asignarTrabajo(copiaColaPintura.get(0), hora,\n\t\t\t\t\t\t\t\tetapa.pintura);\n\t\t\t\t\t\tt.trabajoActual.llegadaPintura = hora;\n\t\t\t\t\t\tcopiaColaPintura.remove(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// si esta ocupado, pero es su ultimo dia de trabajo, tiene que\n\t\t\t\t// mover su trabajo a la siguiente cola del proceso\n\t\t\t\tif (hora + 1 < 365 * 2 * 8)\n\t\t\t\t\tif (t.ocupado(hora) == true && t.ocupado(hora + 1) == false) {\n\t\t\t\t\t\t// agregamos el trabajo a la siguiente cola del proceso\n\t\t\t\t\t\tt.trabajoActual.salidaPintura = hora;\n\t\t\t\t\t\tt.trabajoActual.setEtapa(null);\n\n\t\t\t\t\t\tcopiaColaArmado.add(t.getTrabajoActual());\n\t\t\t\t\t\t\n\t\t\t\t\t\t// le quitamos al trabajador ese trabajo\n\t\t\t\t\t\tt.setTrabajoActual(null);\n\t\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// mecanicos...\n\t\t\tfor (Trabajador t : copiaMecanicos) {\n\t\t\t\t// si esta desocupado, le tratamos de asignar trabajo\n\t\t\t\tif (t.ocupado(hora) == false) {\n\t\t\t\t\t\n\t\t\t\t\tif (copiaColaPulido.size() != 0) {\n\t\t\t\t\t\tt.asignarTrabajo(copiaColaPulido.get(0), hora,\n\t\t\t\t\t\t\t\tetapa.pulido);\n\t\t\t\t\t\tt.trabajoActual.llegadaPulido = hora;\n\t\t\t\t\t\tcopiaColaPulido.remove(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (copiaColaArmado.size() != 0) \n\t\t\t\t\t{\n\t\t\t\t\t\tt.asignarTrabajo(copiaColaArmado.get(0), hora,\n\t\t\t\t\t\t\t\tetapa.armado);\n\t\t\t\t\t\tt.trabajoActual.llegadaArmado = hora;\n\t\t\t\t\t\tcopiaColaArmado.remove(0);\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\t// si esta ocupado, pero es su ultimo dia de trabajo, tiene que\n\t\t\t\t// mover su trabajo a la siguiente cola del proceso\n\t\t\t\tif (hora + 1 < 365 * 2 * 8)\n\t\t\t\t\tif (t.ocupado(hora) == true && t.ocupado(hora + 1) == false) {\n\t\t\t\t\t\t// agregamos el trabajo a la siguiente cola del proceso\n\t\t\t\t\t\t// si era la etapa armado\n\t\t\t\t\t\tif (t.getTrabajoActual().getEtapa() == etapa.armado) {\n\t\t\t\t\t\t\tt.trabajoActual.salidaArmado = hora;\n\t\t\t\t\t\t\tt.trabajoActual.setEtapa(null);\n\t\t\t\t\t\t\tcopiaColaPulido.add(t.getTrabajoActual());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// si era la etapa final...\n\t\t\t\t\t\tif (t.getTrabajoActual().getEtapa() == etapa.pulido) {\n\t\t\t\t\t\t\tif(id.equals(t.getTrabajoActual().OT))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tsalidasEsperadas[iteracion]=hora;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tt.getTrabajoActual().salidaPulido = hora;\n\t\t\t\t\t\t\tdemoras[iteracion]+= \n\t\t\t\t\t\t\tt.getTrabajoActual().salidaPulido-t.getTrabajoActual().tiempoAutorizacion;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// le quitamos al trabajador ese trabajo\n\t\t\t\t\t\tt.setTrabajoActual(null);\n\n\t\t\t\t\t}\n\t\t\t}\n\t\t\thora++;\n\t\t\t/*seguir = false;\n\n\t\t\t// si no queda ningun vehículo en el sistema se para\n\t\t\tfor (int k = 0; k < copiaDesabolladores.size(); k++) {\n\t\t\t\tAuto aRevisar = copiaDesabolladores.get(k).trabajoActual;\n\t\t\t\tif (aRevisar != null) {\n\t\t\t\t\tseguir = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (!seguir) {\n\t\t\t\tfor (int k = 0; k < copiaPintores.size(); k++) {\n\t\t\t\t\tAuto aRevisar = copiaPintores.get(k).trabajoActual;\n\t\t\t\t\tif (aRevisar != null) {\n\t\t\t\t\t\tseguir = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!seguir) {\n\t\t\t\tfor (int k = 0; k < copiaMecanicos.size(); k++) {\n\t\t\t\t\tAuto aRevisar = copiaMecanicos.get(k).trabajoActual;\n\t\t\t\t\tif (aRevisar != null) {\n\t\t\t\t\t\tseguir = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (copiaColaPintura.size() != 0\n\t\t\t\t\t|| copiaColaDesabolladura.size() != 0\n\t\t\t\t\t|| copiaColaPulido.size() != 0\n\t\t\t\t\t|| copiaColaArmado.size() != 0)\n\t\t\t\tseguir = true;\n\t\t\t\t*/\n\t\t\tif(hora==365*8*2-1)\n\t\t\t\tseguir=false;\n\t\t}\n\n\t}", "title": "" }, { "docid": "2b8eef9ac01ac815b99f9e5da8c8a894", "score": "0.5362037", "text": "public static String leerArchivo(String ruta){\r\n Path archivo = Paths.get(ruta);\r\n String texto = \"\";\r\n try {\r\n texto = new String(Files.readAllBytes(archivo));\r\n return texto;\r\n } catch (IOException e) {\r\n \r\n texto=\"El archivo no fue encontrado\";\r\n return texto;\r\n }\r\n }", "title": "" }, { "docid": "ff105936f43ace57836c6ace20ff1b0f", "score": "0.5358433", "text": "public String obtenerNombreArchivoBackup();", "title": "" }, { "docid": "989b1a8e67098db5787f9bdc7767ffdd", "score": "0.53520644", "text": "public String Archivo2String() {\r\n\t\tString salidaString;\r\n\t\tsalidaString = \"Nombre Archivo : \" +getNombre()+\r\n\t\t\"\\nFecha de creación : \" + getFechaCreacion() +\r\n\t\t\"\\nÚltima fecha de modifcación : \" + getFechaUltimaModificacion() +\r\n\t\t\"\\nContenido : \\n\";\r\n\t\tif (getContenidoString().equals(\"\")) {\r\n\t\t\tsalidaString = salidaString + \"Sin Contenido\\n\";\r\n\t\t}else {\r\n\t\t\tsalidaString = salidaString + getContenidoString() +\"\\n\"; \r\n\t\t}\r\n\t\treturn salidaString;\r\n\t}", "title": "" }, { "docid": "7f73fe0d7406ae52245f5a5a692761a7", "score": "0.53500855", "text": "public void cargarArchivo(){\n File archivo = null;\n FileReader lector = null;\n BufferedReader lectorLinea = null;\n \n File file_ = new File(\"Camiones.txt\"); \n String fileName = file_.getAbsolutePath();\n \n try { // Se abre el archivo de camiones\n archivo = new File (fileName);\n lector = new FileReader(archivo);\n lectorLinea = new BufferedReader(lector);\n \n String linea;\n String delimitadoresPalabras = \",\"; // Variable utilizada para separar los valores en el archivo por cada linea\n String[] palabrasSeparadas;\n while( ( linea = lectorLinea.readLine() ) != null){ // Se lee cada linea del archivo\n palabrasSeparadas = linea.split(delimitadoresPalabras); \n \n int tNumeroCamion = Integer.parseInt(palabrasSeparadas[0]); // Variables temporales para casting \n int tPlaca = Integer.parseInt(palabrasSeparadas[1]);\n int tCampos = Integer.parseInt(palabrasSeparadas[2]);\n double tCapacidadQ = Double.parseDouble(palabrasSeparadas[3]);\n double tCapacidadKg = Double.parseDouble(palabrasSeparadas[4]);\n double tCapacidad = Double.parseDouble(palabrasSeparadas[5]);\n //int tEntregaNoDisponible = Integer.parseInt(palabrasSeparadas[7]); \n agregarCamion(tNumeroCamion, tPlaca, tCampos, tCapacidadQ, tCapacidadKg, tCapacidad, palabrasSeparadas[6]); // Se crea el camion en la lista de camiones\n }\n }\n catch(Exception e){\n e.printStackTrace();\n }finally{ \n try{ \n if( null != lector ){ \n lector.close(); \n } \n }catch (Exception e2){ \n e2.printStackTrace();\n }\n } \n }", "title": "" }, { "docid": "45f73426dbb03f5bb726e9b0f7e22975", "score": "0.5330074", "text": "public String leerArchivo(File archivo) throws IOException {\n\t\t FileReader fr;\n\t\t BufferedReader br;\n\t\t String linea=\"\";\n\t\t String siguientelinea=\"\";\n\t\t try {\n\t\t\tfr = new FileReader (archivo);\n\t\t\tbr = new BufferedReader(fr);\n\t while((siguientelinea=br.readLine())!=null) {\n\t \t linea = linea + siguientelinea;\n\t }\n\t \n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn linea;\n\t}", "title": "" }, { "docid": "3407d7aec0bb0b228f2184f05aa8ec38", "score": "0.53234667", "text": "public void install(Map<String, String> data){\n File file = new File(\"./include/\");\n file.mkdir();\n \n \n System.out.println(\"Se instalará el paquete \" + data.get(\"nombre\") + \" v\" + data.get(\"version_str\"));\n System.out.println(\"\\t- Se descargará el paquete del servidor `\" + data.get(\"servidor_nombre\") + \"` (\" + data.get(\"servidor_url\") + \")\");\n System.out.println(\"\\t\" + ansi().fg(Ansi.Color.YELLOW).a(\"[Descargando Paquete] \").fg(Ansi.Color.DEFAULT).a(\"Se inicia la descarga desde el servidor de repositorios . . .\").reset());\n \n URL url = null;\n File f = null;\n try {\n url = new URL(data.get(\"servidor_url\") + data.get(\"url\"));\n f = new File(url.getFile());\n String nombre = \"./include/\" + f.getName();\n\n ReadableByteChannel rbc = Channels.newChannel(url.openStream());\n FileOutputStream fos = new FileOutputStream(nombre);\n fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);\n fos.close();\n rbc.close();\n } catch (MalformedURLException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n System.out.println(\"\\t\" + ansi().fg(Ansi.Color.YELLOW).a(\"[Instalando Paquete] \").fg(Ansi.Color.DEFAULT).a(\"UltraDBScript instalará el paquete descargado . . .\").reset());\n \n \n byte[] buffer = new byte[1024];\n try {\n ZipInputStream zip = new ZipInputStream(new FileInputStream(\"./include/\" + f.getName()));\n ZipEntry zentry = zip.getNextEntry();\n while(zentry != null){\n File newFile = new File(\"include/\" + zentry.getName());\n \n if(zentry.isDirectory())\n new File(newFile.getAbsolutePath()).mkdirs();\n else{\n FileOutputStream fos = new FileOutputStream(newFile.getAbsolutePath());\n int len;\n while((len = zip.read(buffer)) > 0){\n fos.write(buffer, 0, len);\n }\n fos.close();\n }\n zentry = zip.getNextEntry();\n }\n zip.closeEntry();\n zip.close();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n new File(\"./include/\" + f.getName()).delete();\n \n System.out.println(\"\\t\" + ansi().fg(Ansi.Color.YELLOW).a(\"[Actualizando Base de Datos] \").fg(Ansi.Color.DEFAULT).a(\"Se inicia la actualización de base de datos\").reset());\n \n String sql = \"INSERT OR REPLACE INTO `pai_paquete_instalado` (`pai_paquete_instalado_id`, `pai_paq_paquete_id`, `pai_paq_version`, `pai_paq_version_str`, `pai_paq_fecha_version`)\\n\"\n + \"VALUES ('\" + data.get(\"paquete_id\") + \"', '\" + data.get(\"paquete_id\") + \"', '\" + data.get(\"version\") + \"', '\" + data.get(\"version_str\") + \"', '\" + data.get(\"fecha\") + \"');\";\n \n try {\n Statement st = conn.createStatement();\n st.execute(sql);\n } catch (SQLException ex) {\n Logger.getLogger(Update.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "title": "" }, { "docid": "76693f7b4cedb5fd04e2138ff17d3494", "score": "0.5322803", "text": "private boolean crearArchivoSolicitado(byte [] buffer, String nombre){\n if(buffer != null){\n //File file = new File(directorioDescarga+\"/\"+nombre);\n File file = new File(Config.dirDes+\"/\"+nombre);\n if(!file.isDirectory()){\n BufferedOutputStream output = null;\n try {\n output = new BufferedOutputStream(new FileOutputStream(file));\n } catch (FileNotFoundException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n output.write(buffer,0,buffer.length);\n output.flush();\n output.close();\n System.out.println(\"Archivo \"+nombre+\" Creado\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Archivo \"+nombre+\" Creado\");\n return true;\n } catch (IOException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n else{\n System.out.println(\"No se creo el archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se creo el archivo \"+ nombre);\n \n }\n\n }\n else{\n System.out.println(\"No se creo el archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se creo el archivo \"+ nombre);\n }\n return false;\n \n }", "title": "" }, { "docid": "37181d06e6ed3d12bc8a8b03579ae288", "score": "0.53221786", "text": "public Alasaca(){\n\t\thandle = Gdx.files.local(\"archivo.bin\");\n\t\t\n\t\t//leer();\n\t}", "title": "" }, { "docid": "7aed4bcafed8a5e5f9adec9fd34d85ff", "score": "0.5310447", "text": "boolean eliminarArchivo(TipoArchivo tipoArchivo, String nombreUnico);", "title": "" }, { "docid": "37d187f9a3032ddb30ebae5afae6363b", "score": "0.5309248", "text": "private void listarDirectoriosArchivosRec(File dir) {\n\t}", "title": "" }, { "docid": "ee367a7fcb3d392c2379d07ac7bff015", "score": "0.5303888", "text": "Boolean seCumple(Fichero fichero);", "title": "" }, { "docid": "a67ed7e1d479b9c02dcea24d2da517fb", "score": "0.5299893", "text": "private boolean crearArchivoSolicitado(byte [] buffer, String nombre){\n if(buffer != null){\n //File file = new File(directorioDescarga+\"/\"+nombre);\n File file = new File(\"../\"+nombre);\n if(!file.isDirectory()){\n BufferedOutputStream output = null;\n try {\n output = new BufferedOutputStream(new FileOutputStream(file));\n } catch (FileNotFoundException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n output.write(buffer,0,buffer.length);\n output.flush();\n output.close();\n System.out.println(\"Archivo \"+nombre+\" Creado\");\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"Archivo \"+nombre+\" Creado\"); \n return true;\n } catch (IOException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n else{\n System.out.println(\"No se creo el archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se creo el archivo \"+nombre); \n }\n\n }\n else{\n System.out.println(\"No se creo el archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se creo el archivo \"+nombre); \n }\n return false;\n \n }", "title": "" }, { "docid": "2ab7f3068b2dcbc939f95e1d622cb96d", "score": "0.5298301", "text": "private void ejecutar(interfazServicioRmi sr,String nombre,String ipCliente,\n int numTransac){\n //File f = new File(this.directorioDescarga+\"/\"+nombre);\n File f = new File(\"../\"+nombre);\n if(f.exists() && f.isFile() ){\n \n byte[] buffer = new byte[(int)f.length()];\n try {\n BufferedInputStream input = new BufferedInputStream(new FileInputStream(f));\n try {\n input.read(buffer,0,buffer.length);\n input.close();\n } catch (IOException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n //SERVIDOR\n byte[] arch = sr.ejecutar(buffer, nombre,ipCliente,numTransac);\n //Si hay una respuesta\n if(arch != null){\n //Crea el archivo de respuesta en el cliente\n crearArchivoSolicitado(arch, nombreClase(nombre));\n }\n /*if(enviado){\n System.out.println(\"Archivo \"+nombre+\" enviado.\");\n }\n else{\n System.out.println(\"Archivo \"+nombre+\" no pudo ser enviado.\");\n }\n return enviado;*/\n } catch (RemoteException ex) {\n Logger.getLogger(Cliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(serviciosRmi.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\n }\n else{\n System.out.println(\"No se encontro archivo \"+nombre);\n sejuelaluzinterfaz.SeJueLaLuzInterfazView.agregarLog(\"No se encontro archivo \"+ nombre);\n \n }\n // return false;\n }", "title": "" }, { "docid": "49af3ef762f4e0cc43c307a7e8e282c7", "score": "0.5296728", "text": "private void eliminarArchivo() {\n File archivo, archivoSdcard = null;\n\n String direccionExterna = \"sdcard/lectura.csv\";\n String direccionSdcard = \"sdcard/sdcard/lectura.csv\";\n String direccionInterna = \"/data/data/com.example.wmiltos.inveglobal_droid/files/lectura.txt\";\n try{\n archivo = new File(direccionExterna);\n archivoSdcard = new File(direccionSdcard);\n //eliminamos ambos archivos de las dos ubicaciones\n boolean estatus = archivo.delete();\n boolean estatus2 = archivoSdcard.delete();\n if (!estatus && estatus2) {\n Toast.makeText(getApplicationContext(), \"No se encotro documento\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(getApplicationContext(), \"Documento eliminado exitosamente\", Toast.LENGTH_SHORT).show();\n }\n }catch(Exception e){\n System.out.println(e);\n }\n }", "title": "" }, { "docid": "6c8763bb984923d1a0924ce014533d4a", "score": "0.5278892", "text": "public void atualizaArquivo( ) {\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tFileInputStream arquivo = null;\r\n\t\t\tInputStreamReader lerArquivo = null;\r\n\t\t\tBufferedReader convertArquivo = null;\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t\r\n\t\t\t\tarquivo = new FileInputStream(\"cadastro_Produto.txt\");\r\n\t\t\t\tlerArquivo = new InputStreamReader(arquivo);\r\n\t\t\t\tconvertArquivo = new BufferedReader(lerArquivo);\r\n\t\t\t\t\r\n\t\t\t\twhile(convertArquivo.ready()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString linha = convertArquivo.readLine();\r\n\t\t\t\t\tString[] infoproduto = linha.split(\";\");\r\n\t\t\t\t\tSystem.out.println(\"\\r\\n\");\r\n\t\t\t\t\tSystem.out.println(\"Id: \"+infoproduto[0]);\r\n\t\t\t\t\tSystem.out.println(\"Nome: \"+infoproduto[1]);\r\n\t\t\t\t\tSystem.out.println(\"Preco: \"+infoproduto[2]);\r\n\t\t\t\t\tSystem.out.println(\"Quantidade: \"+infoproduto[3]);\r\n\t\t\t\t\tSystem.out.println(\"\\r\\n\");\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t}catch(IOException e) {\r\n\t\t\t\tSystem.out.println(\"Não foi possível listar todos produto! \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "c996c47eba3e3a700268e54e7f183965", "score": "0.5277551", "text": "public void agregarArchivo(String nArch){\n modeArchivos.addElement(nArch);\n }", "title": "" }, { "docid": "956d8ad414781c4ae7a1379213c3632b", "score": "0.52770776", "text": "private byte[] leerArchivoDeLlavePrivada(){\t\t\r\n\t\tFileSystemResource resource = new FileSystemResource(getCertificado().getPrivateKeyPath());\r\n\t\t/*File keyFile = resource.getFile();\r\n\t\tSystem.out.println(\"Encode key size: \" + keyFile.length());\r\n\t\t*/\r\n\t\tFileInputStream keyfis;\r\n\t\ttry {\r\n\t\t\tkeyfis = new FileInputStream(resource.getFile());\r\n\t\t\tbyte[] encodedPrivateKey = new byte[keyfis.available()];\r\n\t\t\tkeyfis.read(encodedPrivateKey);\r\n\t\t\tkeyfis.close();\r\n\t\t\treturn encodedPrivateKey;\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Error tratando de leer la llave privada: \"+ExceptionUtils.getRootCauseMessage(e),ExceptionUtils.getRootCause(e));\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2c430cf3e498a0a7412ca1cd2f05aecf", "score": "0.52716434", "text": "public void verificaExistencia(){\n\t\ttry{\n\t\t\tif(caminho.toFile().exists()==false){\t//verifica se o arquivo de texto não existe\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Verificamos que as perguntas não foram sorteadas, tente novamente assim\\n que elas forem sorteadas pelo computador central, obrigado pela colaboração.\");\n\t\t\t\tSystem.out.println(\"O arquivo com as perguntas sorteadas não existe\");\n\t\t\t}\n\t\t\telse if(caminho.toFile().exists()==true){\t//Se o arquivo de texto existir, será deletado e criado um novo\n\t\t\t\t//JOptionPane.showMessageDialog(null, \"Arquivo existente, sorteando suas perguntas\");\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "ae77481871732794cd84031ff97a890c", "score": "0.52695984", "text": "public List<String> obtenerLineasArchivo(String ruta , String nombre) throws IOException{\n\t\tList<String>obtenerLineaArchivo = new ArrayList<>();\n\t\tFile archivo = new File(ruta,nombre);\n\t\tFileReader fr;\n\t\t BufferedReader br;\n\t\t String siguientelinea=\"\";\n\t\t if (ruta.equals(nombre)) {\n\t\t\ttry {\n\t\t\t\tfr = new FileReader (archivo);\n\t\t\t\tbr = new BufferedReader(fr);\n\t\t while((siguientelinea=br.readLine())!=null) {\n\t\t \t\n\t\t \tobtenerLineaArchivo.add(siguientelinea);\n\t\t }\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else {\n\t\t\ttry {\n\t\t\t\tfr = new FileReader (nombre);\n\t\t\t\tbr = new BufferedReader(fr);\n\t\t\t\tint con=0;\n\t \n\t\t while((siguientelinea=br.readLine())!=null) {\n\t\t \tcon++;\n\t\t \tobtenerLineaArchivo.add(siguientelinea);\n\t\t }\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn obtenerLineaArchivo;\n\t}", "title": "" }, { "docid": "d2f52abe85adda012c49dc2bb68611ae", "score": "0.52693546", "text": "private void abrirArchivo()\n {\n JFileChooser selectorArchivo = new JFileChooser();\n selectorArchivo.setFileSelectionMode( JFileChooser.FILES_ONLY );\n\n int resultado = selectorArchivo.showOpenDialog( this );\n \n if ( resultado == JFileChooser.CANCEL_OPTION )\n return;\n\n // obtener el archivo seleccionado\n File nombreArchivo = selectorArchivo.getSelectedFile();\n\n // mostrar error si el nombre de archivo es incorrecto\n if ( nombreArchivo == null || nombreArchivo.getName().equals( \"\" ) )\n JOptionPane.showMessageDialog( this, \"Nombre de archivo incorrecto\", \n \"Nombre de archivo incorrecto\", JOptionPane.ERROR_MESSAGE );\n\n else {\n\n // abrir el archivo\n try {\n entrada = new RandomAccessFile( nombreArchivo, \"r\" );\n botonSiguiente.setEnabled( true );\n botonAbrir.setEnabled( false );\n }\n \n // atrapar excepci�n que puede ocurrir al abrir el archivo\n catch ( IOException ioException ) {\n JOptionPane.showMessageDialog( this, \"El archivo no existe\", \n \"Nombre de archivo incorrecto\", JOptionPane.ERROR_MESSAGE );\n }\n }\n }", "title": "" }, { "docid": "4dbefcfb033e29dc9edb303802d89d79", "score": "0.5259389", "text": "String getArch();", "title": "" }, { "docid": "586e0d35bfe7308d1cf9bee662795846", "score": "0.5253547", "text": "public void lerZonasHabitacaoBin() throws FileNotFoundException, IOException, ClassNotFoundException, ImpossivelEmprestimoDePotenciaException{\n \n String filename = \"ZonasHabitacao.bin\";\n File f = new File(filename);\n FileInputStream fis = new FileInputStream(f);\n ObjectInputStream ois = new ObjectInputStream(fis);\n \n while(ois.available()> 0){\n ZonaHabitacao zh = (ZonaHabitacao)ois.readObject();\n \n this.distribuicoes.get(zh.getZona_id()).adicionarZona(zh);\n }\n }", "title": "" }, { "docid": "41021747462ee8f526bbe99f5d940855", "score": "0.52534384", "text": "@Override\n public void run(String... args) throws Exception {\n MarcaTarjeta visa;\n MarcaTarjeta nara;\n MarcaTarjeta amex;\n\n Tarjeta tarjetaVisa;\n Tarjeta tarjetaNara;\n Tarjeta tarjetaAmex;\n\n Operacion compra;\n\n visa = new Visa(NombreMarca.VISA);\n LocalDate vencimientoVisa = LocalDate.of(2027,8,13);\n nara = new Nara(NombreMarca.NARA);\n LocalDate vencimientoNara = LocalDate.of(2023,8,13);\n amex = new Amex(NombreMarca.AMEX);\n LocalDate vencimientoAmex = LocalDate.of(2025,8,13);\n\n tarjetaVisa = new Tarjeta(visa,432100000,\"Juan\",\"Doe\",vencimientoVisa);\n tarjetaNara = new Tarjeta(nara,432199999,\"Pepe\",\"Gomez\",vencimientoNara);\n tarjetaAmex = new Tarjeta(amex, 432177777,\"Ana\",\"Perez\",vencimientoAmex);\n\n compra = new Operacion(tarjetaNara, LocalDate.now(), 700.00);\n\n //los persistimos en la Base de Datos...\n repositorioMarcaTarjetas.save(visa);\n repositorioMarcaTarjetas.save(nara);\n repositorioMarcaTarjetas.save(amex);\n\n repositorioTarjetas.save(tarjetaVisa);\n repositorioTarjetas.save(tarjetaNara);\n repositorioTarjetas.save(tarjetaAmex);\n\n repositorioOperaciones.save(compra);\n\n System.out.println(\"Iniciando Aplicacion...\");\n System.out.println(\"Cantidad de tarjetas en sistema: \" + repositorioTarjetas.count());\n System.out.println(\"Cantidad de marcas en sistema: \" + repositorioMarcaTarjetas.count());\n\n //Realizamos los casos de prueba especificados en el punto 1...\n System.out.println(\"Obteniendo toda la informacion sobre una tarjeta: \"\n + tarjetaVisa.obtenerDatos());\n\n System.out.println(\"Compra por $\" + compra.getMonto() + \" es valida: \"\n + compra.esValida());\n\n System.out.println(\"Tarjeta Amex con vencimiento: \" + tarjetaAmex.getFechaVencimiento().toString()\n + \" es valida: \" + tarjetaAmex.esValida());\n\n System.out.println(\"Tarjeta Amex y Tarjeta Visa son iguales: \"\n + tarjetaAmex.equals(tarjetaVisa));\n\n System.out.println(\"Calculamos Tasa para AMEX con importe de $200.00: \"\n + Operacion.calcularTasa(amex, 200.00, LocalDate.now()));\n\n }", "title": "" }, { "docid": "fd3acc166231d7042fe7c0a8c4c9aeff", "score": "0.5249597", "text": "private void gravaArquivoemDisco() \n {\n /*\n File arquivoDisco = new File();\n StringBuffer conteudodetodoarquivo = new StringBuffer();\n for (int x = 0; x < arquivoHTTP.size(); x++) \n {\n conteudodetodoarquivo.append(arquivoHTTP.get(x) + \"\\r\\n\");\n }\n //arquivoDisco.Write(new File(NomeArquivo) + \"_novo.txt\", conteudodetodoarquivo.toString());\n arquivoDisco.Write(new File(NomeArquivo).getName(), conteudodetodoarquivo.toString());*/\n }", "title": "" }, { "docid": "50819c4b643a378760478593ff868349", "score": "0.52380586", "text": "static public Vector<Nodo> expandirMovimientosSopa(Nodo nodo) {\r\n Estado estadoPadre = nodo.getEstado();\r\n Sopa sopaPadre = estadoPadre.getSopa();\r\n Vector<Nodo> hijos = new Vector<Nodo>();\r\n \r\n // Verficar si es posible extraer fichas de la sopa.\r\n if(!sopaPadre.estaVacio()) {\r\n Tablero tableroPadre = estadoPadre.getTablero(); \r\n Comportamiento comportamientoHijos = comportamientoHijos(nodo);\r\n Vector<Ficha> fichasSopaPadre = sopaPadre.getFichas();\r\n Vector<PosicionTablero> posicionesInsertar = null; \r\n\r\n Estado nuevoEstado = null;\r\n Sopa sopaAux = null;\r\n GrupoFichas manoJugadorAux = null;\r\n Tablero tableroAux = null;\r\n\r\n // Recorrer la sopa del estado padre en busca de una ficha que permita\r\n // realizar un movimiento\r\n for(int i=0; i<fichasSopaPadre.size(); i++) {\r\n // Se encontro una ficha en la sopa que es posible insertar en el tablero.\r\n if(!(posicionesInsertar = tableroPadre.posicionInsertar(fichasSopaPadre.elementAt(i))).isEmpty()) {\r\n for(PosicionTablero posicion: posicionesInsertar) {\r\n nuevoEstado = new Estado(estadoPadre);\r\n nuevoEstado.setAccionOrigen(AccionEstado.SacarFichaSopaInsertarTablero);\r\n nuevoEstado.incrTurno();\r\n tableroAux = nuevoEstado.getTablero();\r\n sopaAux = nuevoEstado.getSopa();\r\n manoJugadorAux = nodo.getComportamiento() == Comportamiento.Maximizar? nuevoEstado.getManoJugador1(): nuevoEstado.getManoJugador2();\r\n\r\n // Insertar las ficha sacadas anteriormente de la sopa a la mano del jugador\r\n // Insertar la ultima ficha sacada al tablero\r\n manoJugadorAux.getFichas().addAll(fichasSopaPadre.subList(0, i));\r\n tableroAux.insertar(posicion, fichasSopaPadre.elementAt(i));\r\n for(int j=0; j<=i; j++) sopaAux.getFichas().remove(0);\r\n\r\n hijos.add(new Nodo(nuevoEstado, comportamientoHijos, nodo.getBeta(), nodo.getAlfa()));\r\n }\r\n\r\n break;\r\n }\r\n }\r\n\r\n /**\r\n * Verificar si se encontro una ficha en la sopa que fuera\r\n * posible insertar en el tablero. En caso de no encontrarse\r\n * el nuevo estado es aquel en donde el jugador actual se come \r\n * todas las piezas de la sopa y no inserta nada al tablero finalmente\r\n * pasando su turno.\r\n */\r\n if(hijos.isEmpty()) {\r\n nuevoEstado = new Estado(estadoPadre);\r\n nuevoEstado.setAccionOrigen(AccionEstado.SacarFichaSopaPasarTurno);\r\n nuevoEstado.incrTurno();\r\n sopaAux = nuevoEstado.getSopa();\r\n manoJugadorAux = nodo.getComportamiento() == Comportamiento.Maximizar? nuevoEstado.getManoJugador1(): nuevoEstado.getManoJugador1();\r\n \r\n // Todas las fichas de la sopa ahora son del jugador\r\n manoJugadorAux.getFichas().addAll(sopaAux.getFichas());\r\n sopaAux.getFichas().clear();\r\n\r\n hijos.add(new Nodo(nuevoEstado, comportamientoHijos, nodo.getBeta(), nodo.getAlfa()));\r\n }\r\n }\r\n\r\n return hijos;\r\n }", "title": "" }, { "docid": "812aa085d4d03f699f91bcb585970c93", "score": "0.5231999", "text": "public void ejemplo_File() {\r\n\r\n\t\t// URL ficheros_externos=new URL(\"\");\r\n\t\t// REPRESENTACION DE UN FICHERO\r\n\t\tFile fichero = new File(\"ruta absoluta - nombre fichero\");\r\n\t\t// REPRESENTACION DE UN DIRECTORIO\r\n\t\tFile directorio = new File(\"ruta directorio\");\r\n\r\n\t\t// ***** METODOS PARA DIRECTORIOS\r\n\t\t// INFORMACION DE ESPACIO\r\n\t\tlong espacio_totalunidad = directorio.getTotalSpace();\r\n\t\tlong espacio_libre = directorio.getFreeSpace();\r\n\t\tlong espacio_usuado = directorio.getUsableSpace();\r\n\t\t// INFORMACION DE CONTENIDO DEL DIRECTORIO\r\n\t\tString[] tabla_contenido = directorio.list();\r\n\t\tFile tabla_conte[] = directorio.listFiles();\r\n\t\t// CREACION DE DIRECTORIO/OS\r\n\t\tboolean correcto = directorio.mkdir();\r\n\t\tcorrecto = directorio.mkdirs();\r\n\r\n\t\t// **** METODOS PARA FICHEROS Y DIRECTORIOS\r\n\t\t// RUTA ABSOLUTA\r\n\t\tString ruta = directorio.getAbsolutePath();\r\n\t\t// EXISTENCIA DEL RECURSO\r\n\t\tboolean existe = fichero.exists();\r\n\t\t// TIPO DE RECURSO\r\n\t\tboolean directorio_tipo = directorio.isDirectory();\r\n\t\tboolean fichero_tipo = fichero.isFile();\r\n\t\t// BORRADO DEL RECURSO\r\n\t\tboolean borrado = directorio.delete();\r\n\t\tdirectorio.deleteOnExit();\r\n\t\t// INFORMACION DE LAS UNIDADES DISPONIBLES DEL SISTEMA OPERATIVO\r\n\t\tFile tabla_unidades[] = File.listRoots();\r\n\r\n\t\t// ***** METODOS PARA FICHEROS\r\n\t\t// INFORMACION DE PERMISOS DEL FICHERO\r\n\t\tboolean opcion = fichero.canRead();\r\n\t\topcion = fichero.canWrite();\r\n\t\topcion = fichero.canExecute();\r\n\t\topcion = fichero.isHidden();\r\n\t\t// CAMBIO DE PERMISOS DEL FICHERO\r\n\t\topcion = fichero.setReadable(true);\r\n\t\topcion = fichero.setWritable(true);\r\n\t\topcion = fichero.setExecutable(true);\r\n\t\topcion = fichero.setReadOnly();\r\n\t\t// CREACION DEL FICHERO\r\n\t\ttry {\r\n\t\t\topcion = fichero.createNewFile();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// ERROR EN LA CREACION DEL FICHERO\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "88777790dc1de1e44e28d1aaf01bf80e", "score": "0.52268964", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n ImprovedFile improvedFile0 = new ImprovedFile(\"PzeXomeyA:Ft^\", \"PzeXomeyA:Ft^\");\n ArchiveScanner archiveScanner0 = new ArchiveScanner(improvedFile0);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"PzeXomeyA:Ft^\";\n Vector<Object> vector0 = new Vector<Object>();\n archiveScanner0.filesIncluded = vector0;\n archiveScanner0.includes = stringArray0;\n archiveScanner0.addDefaultExcludes();\n try { \n archiveScanner0.processArchive(improvedFile0, \"PzeXomeyA:Ft^\");\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Error trying to list archive, /home/ubuntu/termite/projects/78_caloriecount/PzeXomeyA:Ft^/PzeXomeyA:Ft^\n //\n verifyException(\"com.lts.io.archive.AbstractNestedArchive\", e);\n }\n }", "title": "" }, { "docid": "e8678037e0db4fb8e7adaa14ac70d85c", "score": "0.5223159", "text": "protected void ProveriRezultat()\n\t{\n\t\t\n\t\t\n\t\tString m[] = najbolji_rezultat.split(\":\", 2); // razdvoji string na dva dela kad naidjes na \":\"\n\t\t\n\t\tif(rezultat > Integer.parseInt(m[1])) // uzmi drugi deo tj broj u ovom slucaju\n\t\t{\n\t\t\t// nek korisnik unese svoje ime i postavi svoj rezultat\n\t\t\tImageIcon icon = new ImageIcon(getClass().getClassLoader().getResource(\"slikaOptionPane.png\"));\n\t\t\tString ime = (String) JOptionPane.showInputDialog(null,\"Unesite vase ime?\",\"NAJBOLJI REZULTAT\",JOptionPane.INFORMATION_MESSAGE,icon,null,\"\");\n\t\t\t\n\t\t\tnajbolji_rezultat = ime + \":\" + rezultat;\n\t\t}\n\t\t\n\t\t// kreiranja fajla Rezultat.dat, ukoliko ne postoji\n\t\tFile file_rez = new File(\"Rezultat.dat\");\n\t\tif(!file_rez.exists()) { // ako Rezultat.dat ( fajl ) ne postoji \n\t\t\ttry {\n\t\t\t\tfile_rez.createNewFile(); // kreiraj Rezultat.dat ( fajl )\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//upis najboljeg rezultata u fajl\n\t\tFileWriter fupis = null;\n\t\tBufferedWriter bupis = null;\n\t\ttry {\n\t\t\tfupis = new FileWriter(\"Rezultat.dat\");\n\t\t\tbupis = new BufferedWriter(fupis);\n\t\t\tbupis.write(this.najbolji_rezultat);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.getStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif(bupis != null)\n\t\t\t\t\tbupis.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.getStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "335fa5d8c8e253aa2c87251e9ba631d8", "score": "0.522181", "text": "public void setARCHIVE_DATE(Date ARCHIVE_DATE) {\r\n this.ARCHIVE_DATE = ARCHIVE_DATE;\r\n }", "title": "" }, { "docid": "3ef9c13bef2458929627001f1fc6c63b", "score": "0.5216873", "text": "private void validarArchivo()\r\n/* 132: */ throws IOException\r\n/* 133: */ {\r\n/* 134:132 */ List<Producto> productoList = new ArrayList();\r\n/* 135:133 */ BufferedReader entrada = null;\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:135 */ File f = new File(this.txtArchivoProductos.getText());\r\n/* 139:136 */ entrada = new BufferedReader(new FileReader(f));\r\n/* 140:137 */ if ((f.exists()) && (f.length() > 0L))\r\n/* 141: */ {\r\n/* 142:139 */ int i = 1;\r\n/* 143: */ String lineaClave;\r\n/* 144:140 */ while ((lineaClave = entrada.readLine()) != null)\r\n/* 145: */ {\r\n/* 146:141 */ String[] prod = lineaClave.split(\",\");\r\n/* 147:142 */ if (obtenerProducto(prod, i) != null) {\r\n/* 148:143 */ productoList.add(obtenerProducto(prod, i));\r\n/* 149: */ }\r\n/* 150:145 */ i++;\r\n/* 151: */ }\r\n/* 152: */ }\r\n/* 153:148 */ if ((this.mensajes != null) && (!this.mensajes.isEmpty())) {\r\n/* 154:149 */ presentarMensajesErrorArchivo();\r\n/* 155: */ } else {\r\n/* 156:151 */ guardarProducto(productoList);\r\n/* 157: */ }\r\n/* 158: */ }\r\n/* 159: */ catch (FileNotFoundException ex)\r\n/* 160: */ {\r\n/* 161:154 */ Logger.getLogger(CargaMasivaProductos.class.getName()).log(Level.SEVERE, null, ex);\r\n/* 162: */ }\r\n/* 163: */ finally\r\n/* 164: */ {\r\n/* 165:156 */ if (entrada != null) {\r\n/* 166:157 */ entrada.close();\r\n/* 167: */ }\r\n/* 168: */ }\r\n/* 169: */ }", "title": "" }, { "docid": "403fcc43c7426519799e03c8d1d206a7", "score": "0.5216681", "text": "public void abrirArchivo(){\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n fileChooser.showOpenDialog(viewBlocV1);\n File archivo = fileChooser.getSelectedFile();\n if ((archivo == null) || (archivo.getName().equals(\" \"))){\n JOptionPane.showMessageDialog(viewBlocV1, \"Archivo inválido\");\n }\n else\n path = archivo.getAbsolutePath();\n }", "title": "" }, { "docid": "d7529c4289f4f8125a4bf156ca1ec2f3", "score": "0.52129954", "text": "public static byte[] sobrecruzamientoBinario (byte[] cromosoma1, byte[] cromosoma2, String tipoCruce) throws Exception{\n\n byte[] nuevoCromosoma = new byte[cromosoma1.length];\n int longitud = cromosoma1.length;\n\n if (tipoCruce==sobrecruzamientoPartirMitad){\n int mitadCromosoma = cromosoma1.length/2;\n double aleatorio1,aleatorio2,aleatorio3; //para elegir las partes que se copian al azar\n aleatorio1 = Math.random();\n aleatorio2 = Math.random();\n aleatorio3 = Math.random();\n\n if (aleatorio1 < 0.5){ //primero ponemos el 1 y luego el 2\n\t if (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma1\n\t System.arraycopy(cromosoma1,0,nuevoCromosoma,0,mitadCromosoma);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\n\t System.arraycopy(cromosoma2,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }else{ //usamos la segunda mitad del cromosoma2\n\t System.arraycopy(cromosoma2,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t System.arraycopy(cromosoma1,mitadCromosoma,nuevoCromosoma,0,mitadCromosoma);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\n\t System.arraycopy(cromosoma2,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }else{ //usamos la segunda mitad del cromosoma2\n\t System.arraycopy(cromosoma2,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }\n\t }\n }else{ //primero ponemos el 2 y luego el 1\n\tif (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma2\n\t System.arraycopy(cromosoma2,0,nuevoCromosoma,0,mitadCromosoma);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\n\t System.arraycopy(cromosoma1,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t System.arraycopy(cromosoma1,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }\n\t}else{ //usamos la segunda mitad del cromosoma2\n\t System.arraycopy(cromosoma2,mitadCromosoma,nuevoCromosoma,0,mitadCromosoma);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\n\t System.arraycopy(cromosoma1,0,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t System.arraycopy(cromosoma1,mitadCromosoma,nuevoCromosoma,mitadCromosoma,mitadCromosoma);\n\t }\n\t}\n }\n }else if (tipoCruce==sobrecruzamientoSeleccionGen){\n for (int i =0; i < longitud; i++){\n\tif (cromosoma1[i] == cromosoma2[i]){\n\t nuevoCromosoma[i] = cromosoma1[i];\n\t}else{\n\t if (Math.random() < 0.5){\n\t nuevoCromosoma[i] =cromosoma1[i];\n\t }else{\n\t nuevoCromosoma[i] =cromosoma2[i];\n\t }\n\t}\n }\n\n }else if (tipoCruce==sobrecruzamientoPartirAleatio){\n\t int corte = Math.round((float)Math.random()*cromosoma1.length);\n\t double aleatorio1,aleatorio2,aleatorio3; //para elegir las partes que se copian al azar\n\t aleatorio1 = Math.random();\n\t aleatorio2 = Math.random();\n\t aleatorio3 = Math.random();\n\n\t if (aleatorio1 < 0.5){ //primero ponemos el 1 y luego el 2\n\t if (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma1\n\t System.arraycopy(cromosoma1,0,nuevoCromosoma,0,corte);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\n\t\t System.arraycopy(cromosoma2,0,nuevoCromosoma,corte,cromosoma2.length - corte);\n\t }else{ //usamos la segunda mitad del cromosoma2\n\t\t System.arraycopy(cromosoma2,corte,nuevoCromosoma,corte,cromosoma2.length -corte);\n\t }\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t System.arraycopy(cromosoma1,corte,nuevoCromosoma,0,cromosoma1.length - corte);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma2\n\t\t System.arraycopy(cromosoma2,0,nuevoCromosoma,cromosoma2.length -corte,corte);\n\t }else{ //usamos la segunda mitad del cromosoma2\n\t\t System.arraycopy(cromosoma2,cromosoma1.length-corte,nuevoCromosoma,cromosoma2.length -corte,corte);\n\t }\n\t }\n\t }else{ //primero ponemos el 2 y luego el 1\n\t if (aleatorio2 < 0.5){ //usamos la primera mitad del cromosoma2\n\t System.arraycopy(cromosoma2,0,nuevoCromosoma,0,corte);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\n\t\t System.arraycopy(cromosoma1,0,nuevoCromosoma,corte,cromosoma1.length - corte);\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t\t System.arraycopy(cromosoma1,corte,nuevoCromosoma,corte,cromosoma1.length -corte);\n\t\t }\n\t }else{ //usamos la segunda mitad del cromosoma2\n\t System.arraycopy(cromosoma2,corte,nuevoCromosoma,0,cromosoma2.length - corte);\n\t if (aleatorio3 < 0.5){ //usamos la primera mitad del cromosoma1\n\t\t System.arraycopy(cromosoma1,0,nuevoCromosoma,cromosoma1.length -corte,corte);\n\t }else{ //usamos la segunda mitad del cromosoma1\n\t\t System.arraycopy(cromosoma1,cromosoma1.length-corte,nuevoCromosoma,cromosoma1.length -corte,corte);\n\t }\n\t }\n }\n }else{\n throw new Exception(\"Tipo de sobrecruzamiento no soportado \"+tipoCruce);\n }\n return nuevoCromosoma;\n }", "title": "" }, { "docid": "a7914f7bfdc22b61cba2afc967058bca", "score": "0.5210565", "text": "public static void main(String[] args) {\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\r\n\t\tFile file = new File(\"C:\\\\Users\\\\hztp\\\\Desktop\\\\SM-G7108V_CHC-G7108VZMUANI2_20150530.rar\");\r\n\t\t\r\n\t\t//file = new File(\"E:\\\\Software\\\\X16-60997VS2010UltimTrialCHS.iso\");\r\n\t\tString v = MD5Filter.getMd5MappedByFile(file);\r\n\t\t\r\n\t\tSystem.out.println(\"delete result:\" + file.delete());\r\n\t\t\r\n\t\tSystem.out.println(v);\r\n\t\tSystem.out.println(\"Cost Time:\" + (System.currentTimeMillis() - startTime));\r\n\t\t\r\n\t\t\r\n\t}", "title": "" } ]
d44e6c48116bb6d22b59a147be0edd82
MozuClient mozuClient=UpdateProductHandlingFeeRuleClient(dataViewMode, rule, profilecode, id, responseFields); client.setBaseAddress(url); client.executeRequest(); HandlingFeeRule handlingFeeRule = client.Result();
[ { "docid": "5e861c39a7dee632f9341ea4aec13614", "score": "0.7687488", "text": "public static MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule> updateProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode, String id, String responseFields) throws Exception\r\n\t{\r\n\t\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.updateProductHandlingFeeRuleUrl(id, profilecode, responseFields);\r\n\t\tString verb = \"PUT\";\r\n\t\tClass<?> clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule.class;\r\n\t\tMozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule> mozuClient = (MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule>) MozuClientFactory.getInstance(clz);\r\n\t\tmozuClient.setVerb(verb);\r\n\t\tmozuClient.setResourceUrl(url);\r\n\t\tmozuClient.setBody(rule);\r\n\t\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\r\n\t\treturn mozuClient;\r\n\r\n\t}", "title": "" } ]
[ { "docid": "24816b9bf885e82a0639cf0d174f3f19", "score": "0.7277167", "text": "public static MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule> updateProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode, String id) throws Exception\r\n\t{\r\n\t\treturn updateProductHandlingFeeRuleClient(dataViewMode, rule, profilecode, id, null);\r\n\t}", "title": "" }, { "docid": "fc6cbd07773d1fd1b88ac23fab8ba112", "score": "0.70270705", "text": "public static MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule> getProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String id, String responseFields) throws Exception\r\n\t{\r\n\t\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.getProductHandlingFeeRuleUrl(id, profilecode, responseFields);\r\n\t\tString verb = \"GET\";\r\n\t\tClass<?> clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule.class;\r\n\t\tMozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule> mozuClient = (MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule>) MozuClientFactory.getInstance(clz);\r\n\t\tmozuClient.setVerb(verb);\r\n\t\tmozuClient.setResourceUrl(url);\r\n\t\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\r\n\t\treturn mozuClient;\r\n\r\n\t}", "title": "" }, { "docid": "11ae160769c4944f211367423c864958", "score": "0.65632796", "text": "public static MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule> createProductHandlingFeeRuleClient(com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode, String responseFields) throws Exception\r\n\t{\r\n\t\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.createProductHandlingFeeRuleUrl(profilecode, responseFields);\r\n\t\tString verb = \"POST\";\r\n\t\tClass<?> clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule.class;\r\n\t\tMozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule> mozuClient = (MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule>) MozuClientFactory.getInstance(clz);\r\n\t\tmozuClient.setVerb(verb);\r\n\t\tmozuClient.setResourceUrl(url);\r\n\t\tmozuClient.setBody(rule);\r\n\t\treturn mozuClient;\r\n\r\n\t}", "title": "" }, { "docid": "065ae59a1d0b9069d05f3d524c1d68a0", "score": "0.65084165", "text": "public static MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule> getProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String id) throws Exception\r\n\t{\r\n\t\treturn getProductHandlingFeeRuleClient(dataViewMode, profilecode, id, null);\r\n\t}", "title": "" }, { "docid": "ae5850c8167aa5c202309ecc6aa5e3b9", "score": "0.64636886", "text": "public static MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRuleCollection> getProductHandlingFeeRulesClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String responseFields) throws Exception\r\n\t{\r\n\t\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.getProductHandlingFeeRulesUrl(profilecode, responseFields);\r\n\t\tString verb = \"GET\";\r\n\t\tClass<?> clz = com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRuleCollection.class;\r\n\t\tMozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRuleCollection> mozuClient = (MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRuleCollection>) MozuClientFactory.getInstance(clz);\r\n\t\tmozuClient.setVerb(verb);\r\n\t\tmozuClient.setResourceUrl(url);\r\n\t\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\r\n\t\treturn mozuClient;\r\n\r\n\t}", "title": "" }, { "docid": "4d2e9729b783b550f564357f921b1551", "score": "0.63562435", "text": "public static MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule> createProductHandlingFeeRuleClient(com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRule rule, String profilecode) throws Exception\r\n\t{\r\n\t\treturn createProductHandlingFeeRuleClient( rule, profilecode, null);\r\n\t}", "title": "" }, { "docid": "6d752dc0a424be7d6ba85b23713ec624", "score": "0.620056", "text": "public com.action.service.PriceActionServiceImplStub.UpdateBourseResponse updateBourse(\n\n com.action.service.PriceActionServiceImplStub.UpdateBourse updateBourse8)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"urn:updateBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n updateBourse8,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"updateBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"updateBourse\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.UpdateBourseResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.UpdateBourseResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "a109ae9cc31b9fe9feea38d360f752e6", "score": "0.59930825", "text": "public static MozuClient<com.mozu.api.contracts.shippingadmin.profile.HandlingFeeRuleCollection> getProductHandlingFeeRulesClient(com.mozu.api.DataViewMode dataViewMode, String profilecode) throws Exception\r\n\t{\r\n\t\treturn getProductHandlingFeeRulesClient(dataViewMode, profilecode, null);\r\n\t}", "title": "" }, { "docid": "b5da6ddc387d13779743ca8a703f7041", "score": "0.5963703", "text": "public static MozuClient deleteProductHandlingFeeRuleClient(com.mozu.api.DataViewMode dataViewMode, String profilecode, String id) throws Exception\r\n\t{\r\n\t\tMozuUrl url = com.mozu.api.urls.commerce.shipping.admin.profiles.ProductHandlingFeeRulesUrl.deleteProductHandlingFeeRuleUrl(id, profilecode);\r\n\t\tString verb = \"DELETE\";\r\n\t\t\t\tMozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance();\r\n\t\tmozuClient.setVerb(verb);\r\n\t\tmozuClient.setResourceUrl(url);\r\n\t\tmozuClient.addHeader(Headers.X_VOL_DATAVIEW_MODE ,dataViewMode.toString());\r\n\t\treturn mozuClient;\r\n\r\n\t}", "title": "" }, { "docid": "f36ee0ad95fce17d89f224e31c8d5070", "score": "0.58293986", "text": "public com.action.service.PriceActionServiceImplStub.IsValidAdminResponse isValidAdmin(\n\n com.action.service.PriceActionServiceImplStub.IsValidAdmin isValidAdmin22)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[11].getName());\n _operationClient.getOptions().setAction(\"urn:isValidAdmin\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n isValidAdmin22,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"isValidAdmin\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"isValidAdmin\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.IsValidAdminResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.IsValidAdminResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "2309f7023bf5905995a50829f295f1b3", "score": "0.58215165", "text": "public com.action.service.PriceActionServiceImplStub.AddBourseResponse addBourse(\n\n com.action.service.PriceActionServiceImplStub.AddBourse addBourse16)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\n _operationClient.getOptions().setAction(\"urn:addBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n addBourse16,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"addBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"addBourse\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.AddBourseResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.AddBourseResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "af0e795ca8c754c3c546692f8a523900", "score": "0.5764718", "text": "public void startupdateBourse(\n\n com.action.service.PriceActionServiceImplStub.UpdateBourse updateBourse8,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"urn:updateBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n updateBourse8,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"updateBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"updateBourse\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.UpdateBourseResponse.class);\n callback.receiveResultupdateBourse(\n (com.action.service.PriceActionServiceImplStub.UpdateBourseResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorupdateBourse(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateBourse(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateBourse(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateBourse(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorupdateBourse(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorupdateBourse(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[4].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[4].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "e1ae8704beb4cd53d29f93e1a5e266e5", "score": "0.5700585", "text": "public com.action.service.PriceActionServiceImplStub.UpdateActionResponse updateAction(\n\n com.action.service.PriceActionServiceImplStub.UpdateAction updateAction30)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[15].getName());\n _operationClient.getOptions().setAction(\"urn:updateAction\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n updateAction30,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"updateAction\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"updateAction\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.UpdateActionResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.UpdateActionResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "11e1d06057c830a1b5070377b5c1622a", "score": "0.55654055", "text": "public int updatePriceForAProduct() {\n\n ValidationResult validationResult = null;\n\n try {\n\n ConfigurationReader configurationReader = new ConfigurationReader();\n String fileName = \"UpdatePrice.config\";\n PriceItem priceItem = new PriceItem();\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \"offerType\")));\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \"price\")));\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \"price\"));\n priceItem.setPriceCode(configurationReader.getValue(fileName,\"priceCode\"));\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\"priceEndDate\"));\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\"priceStartDate\"));\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \"priceType\")));\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasPrice\")));\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasWasPrice\")));\n\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\"eventUID\")));\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \"itemTag\"));\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \"messageType\")));\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \"priceDescription\"));\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\")));\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\"));\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \"productCode\"));\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \"productTypeCode\"));\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \"sourceIPAddress\"));\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \"srcSystem\"));\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \"statusCode\"));\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \"userID\"));\n priceChangeRequestItem.setPriceItem(priceItem);\n\n OfferDetailItem offerDetailItem = new OfferDetailItem();\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\"offerDetailName\"));\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\"offerDetailValue\"));\n\n\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\n offerDetailItems[0] = offerDetailItem;\n\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\n priceChangeRequestItems[0] = priceChangeRequestItem;\n\n //EpisysPortHandle.getEpisysPort();\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\n\n RETURN_VALUE = validationResult.getStatusCode();\n statusMessage = validationResult.getStatusMessage();\n\n\n } catch (java.rmi.RemoteException ex) {\n ex.printStackTrace();\n System.out.println(\"Exception in Update Price for a Product \"+ex.getMessage());\n }\n return RETURN_VALUE;\n }", "title": "" }, { "docid": "8fa9e37a04257b16c2c19904b00c26a5", "score": "0.55650806", "text": "@Test\n public static void installmentGoldAmountOptions() throws Exception {\n try\n\n {\n httpClient = HttpClients.createDefault();\n HttpGet getRequest = new HttpGet(\"http://staging-b2b.emasdigi.com/api/vendor/v1/option/goldinstallment\");\n getRequest.addHeader(\"content-type\", \"application/json\");\n getRequest.addHeader(\"api-key\", \"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\");\n getRequest.addHeader(\"User-Agent\", \"vendor-id:7\");\n JSONObject object = new JSONObject();\n String message;\n message = object.toString();\n //getRequest.setEntity(new StringEntity(message, \"UTF8\"));\n HttpResponse response = httpClient.execute(getRequest);\n System.out.println(response);\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != 200) {\n throw new RuntimeException(\"Failed with HTTP error code : \" + statusCode);\n }\n System.out.println(statusCode);\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\n String output;\n\n } finally\n\n {\n httpClient.close();\n //Important: Close the connect\n // httpClient.getConnectionManager().shutdown();\n }\n }", "title": "" }, { "docid": "54a68f49f5ce870d5ecd483b1b70f665", "score": "0.5556889", "text": "@Override\n\tpublic void invoke() {\n\t\t\n\t\t\n\t\tthis.boInstance = BusinessObjectDispatcher.read(this.boKey, false);\n\t\t COTSFieldDataAndMD<?> numeroPiece =this.boInstance.getFieldAndMDForPath(\"dossierPrestationExterieure/nin\");\n\t\t BusinessObjectInstance boInstanceObj = createFormBOInstance(this.getFormType(), \"CALCPOINTS-\" + getSystemDateTime().toString());\n\t\t List<DetailCotisation> pointsCotistaionRGeneral=getAllElementsRG(numeroPiece.getValue().toString());\n\t\t List<DetailCotisation> pointsCotistaionRCadre=getAllElementsRC(numeroPiece.getValue().toString());\n\t\t int nbreTotalPointsRG=formCreatorRG(pointsCotistaionRGeneral, boInstanceObj);\n\t\t int nbreTotalPointsRC=formCreatorRC(pointsCotistaionRCadre, boInstanceObj);\n\t\t \n\t\t COTSFieldDataAndMD<?> totalPointsRG =boInstanceObj.getFieldAndMDForPath(\"calculPointCarriere/totalPointsRG/asCurrent\");\n\t\t totalPointsRG.setXMLValue(new BigDecimal(nbreTotalPointsRG).toString()); \n\t\t COTSFieldDataAndMD<?> totalPointsRCC =boInstanceObj.getFieldAndMDForPath(\"calculPointCarriere/totalPointsRCC/asCurrent\");\n\t\t totalPointsRCC.setXMLValue(new BigDecimal(nbreTotalPointsRC).toString()); \n\t\t COTSFieldDataAndMD<?> totalPoints =boInstanceObj.getFieldAndMDForPath(\"calculPointCarriere/totalPoints/asCurrent\");\n\t\t totalPoints.setXMLValue(new BigDecimal(nbreTotalPointsRG+nbreTotalPointsRC).toString()); \n\t\t \n\t\t boInstanceObj=BusinessObjectDispatcher.add(boInstanceObj);\n\t\t COTSFieldDataAndMD<?> cots = this.boInstance.getFieldAndMDForPath(\"carriere/form\");\n\t\t cots.setXMLValue(boInstanceObj.getFieldAndMDForPath(\"taxFormId\").getXMLValue());\n\t\t log.info(\"taxFormId \" +boInstanceObj.getFieldAndMDForPath(\"taxFormId\").getXMLValue()); \n\t\t BusinessObjectDispatcher.update(this.boInstance);\n\t\t \n\t\t \n\t\t \n\n\t}", "title": "" }, { "docid": "16037dafd8abd62af53dda1b09611939", "score": "0.55519617", "text": "public com.action.service.PriceActionServiceImplStub.GetBourseResponse getBourse(\n\n com.action.service.PriceActionServiceImplStub.GetBourse getBourse18)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\n _operationClient.getOptions().setAction(\"urn:getBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBourse18,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourse\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetBourseResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetBourseResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "34832295c9152430c5b765858a452e20", "score": "0.55124235", "text": "public com.action.service.PriceActionServiceImplStub.GetAdminResponse getAdmin(\n\n com.action.service.PriceActionServiceImplStub.GetAdmin getAdmin14)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\n _operationClient.getOptions().setAction(\"urn:getAdmin\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getAdmin14,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getAdmin\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getAdmin\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetAdminResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetAdminResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "cc840786e8c3cad8b6f55783f82024a0", "score": "0.5502558", "text": "public com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse getActiveBourses(\n\n com.action.service.PriceActionServiceImplStub.GetActiveBourses getActiveBourses12)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());\n _operationClient.getOptions().setAction(\"urn:getActiveBourses\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActiveBourses12,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveBourses\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveBourses\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "add1dc8211d4d2a8413cc95829631c64", "score": "0.54457676", "text": "public static void main(String[] args) throws AxisFault, MalformedURLException {\n\r\n\t\t\r\n\t\tlistener = new EventListenerImpl();\r\n \r\n \teDispatcher = new EventDispatcher();\r\n \t\r\n \truleEngine = new AccRuleImpl();\r\n \t\r\n \tsharedArtifactManager = new SharedArtifactManager();\r\n \t\r\n \tlistener.setSharedArtifactManager(sharedArtifactManager);\r\n \t\r\n \tlistener.setRuleEngine(ruleEngine);\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t//SharedArtifactClientManager should create and set RuleEnigne and Process controller here\r\n \t\r\n \teDispatcher.addEventListener(listener);\r\n \t\r\n \teDispatcher.setSharedArtifactManager(sharedArtifactManager);\r\n \t\r\n\t\t\r\n\t\t\r\n \tOMFactory fac = OMAbstractFactory.getOMFactory();\r\n \t\r\n \t\r\n \t//payload\r\n \t\r\n \tOMNamespace omNs = fac.createOMNamespace(\"http://test.purchase\", \"\");\r\n \tOMElement method = fac.createOMElement(\"makePurchase\", omNs);\r\n\t\tOMElement customername = fac.createOMElement(\"customername\", omNs);\r\n\t\tOMElement customeraddress = fac.createOMElement(\"customeraddress\", omNs);\r\n\t\tcustomername.setText(\"john smith\");\r\n\t\tcustomeraddress.setText(\"1/24 Belmont ave\");\r\n\t\tmethod.addChild(customername);\r\n\t\tmethod.addChild(customeraddress);\r\n\t\t\r\n\t\tURL url = new URL(\"http://localhost:8000/axis2/services/PurchaseService?wsdl\");\t\r\n\t\t\r\n\t\tQName serviceName = new QName(\"http://test.purchase\", \"PurchaseService\");\r\n\t\t\r\n\t\tQName operationName = new QName(\"http://test.purchase\", \"makePurchase\");\r\n\t\t\r\n\t\tServiceClient client = new ServiceClient(null, url, serviceName,\"PurchaseServiceHttpSoap11Endpoint\");\r\n\t\t\r\n\t\tSystem.out.println(client.sendReceive(operationName, method));\r\n\t\r\n\t\r\n\t\r\n\t//\teDispatcher.eventReceived(method, method);\r\n\t\t\r\n\t\t//\tMessageEvent me = new MessageEvent(testController.class, method);\r\n\t\t\r\n\t\t//\tSystem.out.println(me.getValueFromPart(\"customername\"));\r\n \t\r\n\t\t\r\n\t//\truleEngine.executeRules(Message, sharedArtifactmanager);\r\n\t\t\r\n\t \tOMNamespace omNs1 = fac.createOMNamespace(\"http://online.test\", \"\");\r\n\t\tOMElement method1 = fac.createOMElement(\"purchaseOrder\", omNs1);\r\n\t\tOMElement item = fac.createOMElement(\"item\", omNs1);\r\n\t\tOMElement quantity = fac.createOMElement(\"quantity\", omNs1);\r\n\t\titem.setText(\"Iphone5\");\r\n\t\tquantity.setText(\"1\");\r\n\t\tmethod1.addChild(item);\r\n\t\tmethod1.addChild(quantity); \r\n\t\t\r\n\t\teDispatcher.eventReceived(method1, method1);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2673177cde5b9ad1a59ac870b90a0e70", "score": "0.5419974", "text": "public com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse getBoursesById(\n\n com.action.service.PriceActionServiceImplStub.GetBoursesById getBoursesById26)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[13].getName());\n _operationClient.getOptions().setAction(\"urn:getBoursesById\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBoursesById26,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBoursesById\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBoursesById\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "f882a54730b986c5f3ec3f6c6b5efb23", "score": "0.54156053", "text": "public void updateBizUnit() {\n\n\t\tbizUnit = bizUnitSB.findByPk(rfqHeader.getBizUnit());\n\t\t// WebQuote 2.2 enhancement : fields changes.\n\t\t// rfqHeader.setBmtChecked(false);\n\t\trfqHeader.setDesignInCat(null);\n\t\trfqHeader.setEnquirySegment(null);\n\n\t\t// for issue 709 . Season confirm with user . if the region switch,\n\t\t// don't clear the customer field of header.\n\t\t// rfqHeader.setSoldToCustomerNumber(null);\n\t\t// rfqHeader.setSoldToCustomerName(null);\n\t\t// rfqHeader.setChineseSoldToCustomerName(null);\n\t\t// rfqHeader.setCustomerType(null);\n\t\t// rfqHeader.setShipToCustomerNumber(null);\n\t\t// rfqHeader.setShipToCustomerName(null);\n\t\t// rfqHeader.setEndCustomerNumber(null);\n\t\t// rfqHeader.setEndCustomerName(null);\n\t\trfqHeader.setProjectName(null);\n\t\trfqHeader.setApplication(null);\n\t\trfqHeader.setDesignLocation(null);\n\t\trfqHeader.setMpSchedule(null);\n\t\trfqHeader.setPpSchedule(null);\n\t\trfqHeader.setYourReference(null);\n\t\trfqHeader.setCopyToCs(null);\n\t\trfqHeader.setCopyToCsName(null);\n\t\trfqHeader.setRemarks(null);\n\t\trfqHeader.setLoa(false);\n\t\t// WebQuote 2.2 enhancement : fields changes.\n\t\t// rfqHeader.setOrderOnHand(false);\n\t\t// rfqHeader.setBom(false);\n\n\t\tif (isSalesRole == true) {\n\n\t\t} else {\n\t\t\trfqHeader.setSalesEmployeeNumber(null);\n\t\t\trfqHeader.setSalesEmployeeName(null);\n\t\t}\n\n\t\trfqHeader.setQuoteType(null);\n\t\trfqHeader.setFormAttachments(null);\n\n\t\t//Bryan Start\n\t\t//List<Manufacturer> manufacturers = MfrCacheManager.getMfrListByBizUnit(bizUnit.getName());\n\t\tList<Manufacturer> manufacturers = cacheUtil.getMfrListByBizUnit(bizUnit.getName());\n\t\t//Bryan End\n\t\tList<String> mfrCodes = new ArrayList<String>();\n\t\tif (manufacturers != null) {\n\t\t\tfor (Manufacturer manufacturer : manufacturers)\n\t\t\t\tmfrCodes.add(manufacturer.getName());\n\t\t}\n\t\tmfrSelectList = QuoteUtil.createFilterOptions(mfrCodes.toArray(new String[mfrCodes.size()]),\n\t\t\t\tmfrCodes.toArray(new String[mfrCodes.size()]), false, false);\n\n\t\tmfrSearchSelectList = QuoteUtil.createFilterOptions(mfrCodes.toArray(new String[mfrCodes.size()]),\n\t\t\t\tmfrCodes.toArray(new String[mfrCodes.size()]), false, true);\n\n\t\tupdateExchangeCurrencyInfoByBu(bizUnit);\n\n\t\tresetRfqSubmissionForSwitch();\n\t\tupdateSalesOrg();\n\n\t\tthis.isShowDLink=ComponetConfigService.showByRegion(\"rfqSubmission\", \"dLinkCheckBox\", Arrays.asList(bizUnit.getName()));\n\n\n\t\t\n\t\t\n\t\t// logger.log(Level.INFO, \"PERFORMANCE END - updateBizUnit()\");\n\t}", "title": "" }, { "docid": "0da1c921e0eb02650a3975c6b1d60cb7", "score": "0.53799593", "text": "nc.itf.crd.webservice.izyhtwebservice.FeePlanDataDocument.FeePlanData getFeePlanData();", "title": "" }, { "docid": "e8cad561abff77a7cc1c09db7d5b5d43", "score": "0.5368132", "text": "private Map<String, Object> callAddOrgCheckAccountsService(CheckAccountDetailsType chkAccDetail, String partnerOrgid, String partnerEntityId,\r\n \t\tValidateEnrollmentRespVO validateEnrollmentRespVO, String requestId,String apiMsgId) throws GeneralSecurityException, SSEApplicationException {\r\n logger.info(apiMsgId,\"SmartServiceEngine\", \"Manage Enrollment API\", \"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService: starts\",\r\n \"Before invoking AddOrganiztionInfo service\", AmexLogger.Result.success, \"\");\r\n Map<String, Object> map = new HashMap<String, Object>();\r\n final long startTimeStamp = System.currentTimeMillis();\r\n boolean isError = false;\r\n try {\r\n AddOrgAccountsServiceExt addOrgAccountsService = new AddOrgAccountsServiceExt();\r\n IOrganizationAccountService proxy = addOrgAccountsService.getOrganizationAccountServicePort();\r\n BindingProvider bindingProvider = (BindingProvider) proxy;\r\n bindingProvider.getBinding().getHandlerChain().add(new SOAPOperationsLoggingHandler());\r\n Map<String, Object> requestContext = bindingProvider.getRequestContext();\r\n requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,EnvironmentPropertiesUtil.getProperty(ApiConstants.BIP_ACC_SOAP_SERVICE_URL));\r\n requestContext.put(ApiConstants.REQUEST_TIMEOUT, EnvironmentPropertiesUtil.getProperty(ApiConstants.BIP_REQUEST_TIMEOUT_VALUE));\r\n logger.info(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \"Calling addOrganizationAccounts BIP service\",AmexLogger.Result.success,\"\", \"BIP_SOAP_Endpoint_URL\",EnvironmentPropertiesUtil.getProperty(ApiConstants.BIP_ACC_SOAP_SERVICE_URL));\r\n AddOrgCheckAccountsServiceClient client = new AddOrgCheckAccountsServiceClient();\r\n ResponseType response = client.buildResponseType();\r\n final Holder<ResponseType> responseHolder = new Holder<ResponseType>(response);\r\n\r\n RequestType reqType = client.buildRequestType(chkAccDetail, partnerOrgid, partnerEntityId, validateEnrollmentRespVO, requestId);\r\n AddOrganizationAccountsType addOrgAccountsType = client.buildAddOrganizationAccountsType(reqType);\r\n final Holder<AddOrganizationAccountsType> requestHolder = new Holder<AddOrganizationAccountsType>(addOrgAccountsType);\r\n proxy.addOrganizationAccounts(reqType, requestHolder, responseHolder);// Call the addOrganizationAccounts soap service\r\n ResponseType respType = responseHolder.value;\r\n if (null == respType) {\r\n logger.error(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: addOrganizationCheckAccounts\",\r\n \"After invoking addOrganizationAccounts service\",AmexLogger.Result.failure, \"Null response from addOrganizationAccounts API\", \"\");\r\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\r\n throw new SSEApplicationException(\"Null response from addOrganizationAccounts API\",ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD,\r\n EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD));\r\n }\r\n logger.info(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \"After calling addOrganizationAccounts BIP service\",AmexLogger.Result.success, \"\", \"responseCode\",responseHolder.value.getStatus().getRespCd());\r\n map.put(ApiConstants.RESPONSE_DETAILS, respType);\r\n\r\n } catch (AddOrganizationAccountsFaultMsg ex) {\r\n isError = true;\r\n FaultType faultType = ex.getFaultInfo().getFault();\r\n String faultDetail = faultType.getFaultDetail();\r\n String faultCode = faultType.getFaultCode();\r\n String sseRespCode = null;\r\n String sseRespDesc = null;\r\n if (faultCode != null) {// Error response from AddOrgAccounts SOAP API\r\n sseRespCode = EnvironmentPropertiesUtil.getProperty(faultCode);//Get the corresponding SSE response code and response desc from Properties files\r\n if (sseRespCode != null) {\r\n sseRespDesc = EnvironmentPropertiesUtil.getProperty(sseRespCode);\r\n } else {\r\n if (faultDetail.indexOf(\" \") > 0) {//Get the response description from FaultDetail element in soap fault\r\n faultDetail = faultDetail.substring(faultDetail.indexOf(\" \") + 1);\r\n }\r\n sseRespCode = ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD;\r\n sseRespDesc = EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD) + \": \" + faultDetail;\r\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\r\n }\r\n } else {\r\n sseRespCode = ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD;\r\n sseRespDesc = EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD);\r\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\r\n }\r\n logger.error(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \"SOAP Fault Error occured during addOrganizationAccounts service call\",AmexLogger.Result.failure, faultDetail, ex, \"fault-Actor\",\r\n faultType.getFaultActor(), \"fault-Code\", faultCode,\"fault-String\", faultType.getFaultString(), \"fault-Detail\",\r\n faultDetail, \"SSEResponseCode\", sseRespCode,\"SSEResponseDesc\", sseRespDesc, \"ErrorMsg\", ex.getMessage());\r\n throw new SSEApplicationException(\"SOAP Fault Error occured during addOrganizationAccounts service call\",sseRespCode, sseRespDesc, ex);\r\n } catch (SSEApplicationException ex) {\r\n isError = true;\r\n throw ex;\r\n } catch (WebServiceException exception) {\r\n \tisError = true;\r\n \t\r\n \tlogger.error(apiMsgId, \"SmartServiceEngine\", \"Manage Enrollment API\", \"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \t\t\t\"Exception occured during addOrganizationAccounts service call\", AmexLogger.Result.failure, exception.getMessage(), exception);\r\n \tif(exception.getMessage().contains(\"java.net.SocketTimeoutException\")){\r\n \t\tlogger.error(tivoliMonitoring.logStatement(TivoliMonitoring.BIP_TIMEOUT_ERR_CD, TivoliMonitoring.BIP_TIMEOUT_ERR_MSG, apiMsgId));\r\n \t\tthrow new SSEApplicationException(\"Exception occured during addOrganizationAccounts service call\", ApiErrorConstants.BIP_TIMEOUT_SSEAPIEN901,\r\n \t\t\t\tEnvironmentPropertiesUtil.getProperty(ApiErrorConstants.BIP_TIMEOUT_SSEAPIEN901),exception);\r\n \t}else{\r\n \t\tlogger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\r\n \t\tthrow new SSEApplicationException(\"Exception occured during addOrganizationAccounts service call\", ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD,\r\n \t\t\t\tEnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD),exception);\r\n \t}\r\n\t\t}catch (Exception ex) {\r\n logger.error(tivoliMonitoring.logStatement(TivoliMonitoring.ADD_ORG_ACCNT_ERR_CD, TivoliMonitoring.ADD_ORG_ACCNT_ERR_MSG, apiMsgId));\r\n isError = true;\r\n logger.error(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \"Exception occured during addOrganizationAccounts service call\", AmexLogger.Result.failure, ex.getMessage(), ex);\r\n throw new SSEApplicationException(\"Exception occured during addOrganizationAccounts service call\",ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD,\r\n EnvironmentPropertiesUtil.getProperty(ApiErrorConstants.ENROLL_INTERNAL_SERVER_ERR_CD), ex);\r\n } finally {\r\n final long endTimeStamp = System.currentTimeMillis();\r\n logger.info(apiMsgId,\"SmartServiceEngine\",\"Manage Enrollment API\",\"AddOrgCheckAccountsRequestHelper: callAddOrgCheckAccountsService\",\r\n \"After calling addOrganizationAccounts BIP service\", AmexLogger.Result.success, \"\",\r\n \"total_Time_Taken_By_addOrganizationAccounts_Service\",(endTimeStamp-startTimeStamp)+ \" milliseconds(\"+(endTimeStamp-startTimeStamp)/1000.00+\" seconds)\");\r\n ThreadLocalManager.getRequestStatistics().put(\"AddOrganizationAccountsService\", (isError?\"F:\":\"S:\")+(endTimeStamp-startTimeStamp) +\" ms\");\r\n }\r\n return map;\r\n }", "title": "" }, { "docid": "74d833103df76b9405e354ef1e8d662a", "score": "0.5342754", "text": "public void startaddBourse(\n\n com.action.service.PriceActionServiceImplStub.AddBourse addBourse16,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\n _operationClient.getOptions().setAction(\"urn:addBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n addBourse16,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"addBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"addBourse\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.AddBourseResponse.class);\n callback.receiveResultaddBourse(\n (com.action.service.PriceActionServiceImplStub.AddBourseResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErroraddBourse(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErroraddBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErroraddBourse(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErroraddBourse(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErroraddBourse(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErroraddBourse(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErroraddBourse(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[8].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[8].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "adead80b38fbcd0245409ce65a2ac763", "score": "0.52975106", "text": "public com.action.service.PriceActionServiceImplStub.GetActionResponse getAction(\n\n com.action.service.PriceActionServiceImplStub.GetAction getAction6)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions().setAction(\"urn:getAction\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getAction6,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getAction\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getAction\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActionResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActionResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "1cdb9afe3147a56052716839f94ef137", "score": "0.5294598", "text": "@Test\n public static void installmentGoldTenumreOptions() throws Exception {\n try\n\n {\n httpClient = HttpClients.createDefault();\n HttpGet getRequest = new HttpGet(\"http://staging-b2b.emasdigi.com/api/vendor/v1/option/tenure\");\n getRequest.addHeader(\"content-type\", \"application/json\");\n getRequest.addHeader(\"api-key\", \"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\");\n getRequest.addHeader(\"User-Agent\", \"vendor-id:7\");\n JSONObject object = new JSONObject();\n String message;\n message = object.toString();\n //getRequest.setEntity(new StringEntity(message, \"UTF8\"));\n HttpResponse response = httpClient.execute(getRequest);\n System.out.println(response);\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != 200) {\n throw new RuntimeException(\"Failed with HTTP error code : \" + statusCode);\n }\n System.out.println(statusCode);\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\n String output;\n\n } finally\n\n {\n httpClient.close();\n //Important: Close the connect\n // httpClient.getConnectionManager().shutdown();\n }\n }", "title": "" }, { "docid": "e7ec1e662875bc4fa29240b5a0531e22", "score": "0.52849007", "text": "public com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse getActionsByBourse(\n\n com.action.service.PriceActionServiceImplStub.GetActionsByBourse getActionsByBourse24)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[12].getName());\n _operationClient.getOptions().setAction(\"urn:getActionsByBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActionsByBourse24,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionsByBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionsByBourse\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "16df594750ee41b9b1e7d02fef7d37e1", "score": "0.5280441", "text": "public void startisValidAdmin(\n\n com.action.service.PriceActionServiceImplStub.IsValidAdmin isValidAdmin22,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[11].getName());\n _operationClient.getOptions().setAction(\"urn:isValidAdmin\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n isValidAdmin22,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"isValidAdmin\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"isValidAdmin\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.IsValidAdminResponse.class);\n callback.receiveResultisValidAdmin(\n (com.action.service.PriceActionServiceImplStub.IsValidAdminResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorisValidAdmin(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"isValidAdmin\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorisValidAdmin(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorisValidAdmin(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorisValidAdmin(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorisValidAdmin(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorisValidAdmin(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorisValidAdmin(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[11].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[11].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "bfc8df93325e41e95eae73b35a288bfc", "score": "0.52594775", "text": "public com.action.service.PriceActionServiceImplStub.GetBoursesResponse getBourses(\n\n com.action.service.PriceActionServiceImplStub.GetBourses getBourses10)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"urn:getBourses\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBourses10,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourses\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourses\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetBoursesResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetBoursesResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "420e92d59c529f6604b39a099b39599e", "score": "0.5250523", "text": "public int createPriceForAProduct() {\n\n ValidationResult validationResult = null;\n\n try {\n\n ConfigurationReader configurationReader = new ConfigurationReader();\n String fileName = \"CreatePrice.config\";\n PriceItem priceItem = new PriceItem();\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \"offerType\")));\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \"price\")));\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \"price\"));\n //System.out.println(Float.parseFloat(configurationReader.getValue(fileName, \"price\"))+\" price in method\");\n priceItem.setPriceCode(configurationReader.getValue(fileName,\"priceCode\"));\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\"priceEndDate\"));\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\"priceStartDate\"));\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \"priceType\")));\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasPrice\")));\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasWasPrice\")));\n\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\"eventUID\")));\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \"itemTag\"));\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \"messageType\")));\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \"priceDescription\"));\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\")));\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\"));\n //System.out.println(Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\")));\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \"productCode\"));\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \"productTypeCode\"));\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \"sourceIPAddress\"));\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \"srcSystem\"));\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \"statusCode\"));\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \"userID\"));\n priceChangeRequestItem.setPriceItem(priceItem);\n\n OfferDetailItem offerDetailItem = new OfferDetailItem();\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\"offerDetailName\"));\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\"offerDetailValue\"));\n\n\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\n offerDetailItems[0] = offerDetailItem;\n\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\n priceChangeRequestItems[0] = priceChangeRequestItem;\n\n //EpisysPortHandle.getEpisysPort();\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\n\n // old// validationResult = service.managePrice(priceChangeRequestItems);\n RETURN_VALUE = validationResult.getStatusCode();\n statusMessage = validationResult.getStatusMessage();\n\n //System.out.println(\"RETURN_VALUE: \" + RETURN_VALUE);\n //System.out.println(\"statusMessage: \" + statusMessage);\n\n\n } catch (java.rmi.RemoteException ex) {\n ex.printStackTrace();\n System.out.println(\"Exception in Create Price for a Product \"+ex.getMessage());\n }\n return RETURN_VALUE;\n }", "title": "" }, { "docid": "b64be8f7f92ac261a644ab93c1e0478b", "score": "0.52338314", "text": "public com.action.service.PriceActionServiceImplStub.DeleteBourseResponse deleteBourse(\n\n com.action.service.PriceActionServiceImplStub.DeleteBourse deleteBourse2)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"urn:deleteBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n deleteBourse2,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"deleteBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"deleteBourse\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.DeleteBourseResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.DeleteBourseResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "633ccdd4440a99cc38e0362ceeffe784", "score": "0.52265567", "text": "public Shipping3VO update(Shipping3VO vo) throws Exception;", "title": "" }, { "docid": "5eb1ba6ace104e1f7bfec96d8f2dcd79", "score": "0.52240676", "text": "public smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT QueryHeadendMastershipDetailsOut(\n\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipRequest_MT queryHeadendMastershipRequest_MT0)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://sap.com/xi/WebService/soap1.1\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n queryHeadendMastershipRequest_MT0,\n optimizeContent(new javax.xml.namespace.QName(\"urn:britishgas.co.uk:Trilliant:SmartMeterProcessing\",\n \"QueryHeadendMastershipDetailsOut\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \tlogger.error(Logger.EVENT_UNSPECIFIED, \"SAP PI Look up - request:: \" + env);\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n logger.error(Logger.EVENT_UNSPECIFIED, \"SAP PI Look up - response:: \" + _returnEnv); \n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "title": "" }, { "docid": "757a4946a27ab085d19b1eecff19b5db", "score": "0.52137727", "text": "public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse getStudentPEDataFromEGN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHE getStudentPEDataFromEGN_AdminRHE6)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentPEDataFromEGN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentPEDataFromEGN_AdminRHE6,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromEGN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromEGN_AdminRHE\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "aee759910d7009b935c98cd7a3ec80d6", "score": "0.52095747", "text": "public void startgetAdmin(\n\n com.action.service.PriceActionServiceImplStub.GetAdmin getAdmin14,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\n _operationClient.getOptions().setAction(\"urn:getAdmin\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getAdmin14,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getAdmin\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getAdmin\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetAdminResponse.class);\n callback.receiveResultgetAdmin(\n (com.action.service.PriceActionServiceImplStub.GetAdminResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetAdmin(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAdmin\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAdmin(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAdmin(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAdmin(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAdmin(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetAdmin(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetAdmin(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[7].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[7].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "ea9a88784ad62d65f0179fd1fba8a5bf", "score": "0.520537", "text": "public void startupdateAction(\n\n com.action.service.PriceActionServiceImplStub.UpdateAction updateAction30,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[15].getName());\n _operationClient.getOptions().setAction(\"urn:updateAction\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n updateAction30,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"updateAction\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"updateAction\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.UpdateActionResponse.class);\n callback.receiveResultupdateAction(\n (com.action.service.PriceActionServiceImplStub.UpdateActionResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorupdateAction(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"updateAction\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateAction(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorupdateAction(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateAction(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorupdateAction(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorupdateAction(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorupdateAction(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[15].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[15].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "4c436c3be019755ea3151970a6c1d9cd", "score": "0.5169026", "text": "@Override\n protected Update run(Object data) throws Exception {\n return (Update) HttpUtils.doRequest(service.createUpdateRequest()).result;\n }", "title": "" }, { "docid": "5c6fe3a0df6b0e5ca223c224e1ba532f", "score": "0.5153545", "text": "public double get_LE_Book_Premium(String LE_LOI,String LE_turnover){\n\t\n\t\n\tdouble book_premium=0.0,LOI_rate_multiplier=0.0;\n\ttry{\n\t\tString key = \"LE_BLC\",NetNetRate=null,_40_Cent_of_actual_turnover=null;\n\t\tint turnOver = Integer.parseInt(LE_turnover.replaceAll(\",\",\"\"));\n\t\tboolean isContractDisputes=false,isConstructionContractDisputes=false;\n\t\tPLEL_Rater = OR.getORProperties();\n\t\n\t\tisContractDisputes = driver.findElement(By.xpath(\"//*[contains(@name,'lea_contract_')]\")).isSelected();\n\t\tisConstructionContractDisputes = driver.findElement(By.xpath(\"//*[contains(@name,'lea_const_contract_')]\")).isSelected();\n\t\t\n\t\tif(isContractDisputes && isConstructionContractDisputes){\n\t\t\tkey = key + \"_CD_CCD\";\n\t\t}else if(isContractDisputes){\n\t\t\tkey = key + \"_CD\";\n\t\t}\n\t\t\n\t\t_40_Cent_of_actual_turnover = k.GetDropDownSelectedValue(\"COB_LE_Contract_Represent\");\n\t\t\n\t\tif(isConstructionContractDisputes && LE_LOI.equals(\"500,000\")){ //Referral Rule - 4\n\t\t\tbook_premium = 0.0;\n\t\t}else if(_40_Cent_of_actual_turnover.equalsIgnoreCase(\"Yes\")){ //Referral Rule - 6\n\t\t\tbook_premium = 0.0;\n\t\t}else if(turnOver > 25000000){ //Referral Rule - 1\n\t\t\tbook_premium = 0.0;\n\t\t}else{\n\t\t\t\n\t\t\tLOI_rate_multiplier = get_LOI_rate_multiplier(LE_LOI);\n\t\t\tNetNetRate = get_LE_NetNetRate(key,turnOver);\n\t\t\n\t\t\tbook_premium = Double.parseDouble(NetNetRate) * LOI_rate_multiplier;\n\t\t}\n\t\n\t}catch(Throwable t){\n\t\tSystem.out.println(\"Error while calculating LE Book Premium - \"+t);\n\t}\n\t\n\treturn book_premium;\n\t\n}", "title": "" }, { "docid": "3f446a27537acb3a54120485d645172c", "score": "0.5149093", "text": "public com.action.service.PriceActionServiceImplStub.AddActionResponse addAction(\n\n com.action.service.PriceActionServiceImplStub.AddAction addAction32)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[16].getName());\n _operationClient.getOptions().setAction(\"urn:addAction\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n addAction32,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"addAction\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"addAction\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.AddActionResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.AddActionResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addAction\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addAction\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"addAction\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "51267d76cc281939d137d38e0c8840bd", "score": "0.5146506", "text": "public int upsertPriceForAProduct() {\n\n ValidationResult validationResult = null;\n\n try {\n\n ConfigurationReader configurationReader = new ConfigurationReader();\n String fileName = \"UpsertPrice.config\";\n PriceItem priceItem = new PriceItem();\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \"offerType\")));\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \"price\")));\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \"price\"));\n\n priceItem.setPriceCode(configurationReader.getValue(fileName,\"priceCode\"));\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\"priceEndDate\"));\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\"priceStartDate\"));\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \"priceType\")));\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasPrice\")));\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasWasPrice\")));\n\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\"eventUID\")));\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \"itemTag\"));\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \"messageType\")));\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \"priceDescription\"));\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\")));\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\"));\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \"productCode\"));\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \"productTypeCode\"));\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \"sourceIPAddress\"));\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \"srcSystem\"));\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \"statusCode\"));\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \"userID\"));\n priceChangeRequestItem.setPriceItem(priceItem);\n\n OfferDetailItem offerDetailItem = new OfferDetailItem();\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\"offerDetailName\"));\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\"offerDetailValue\"));\n\n\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\n offerDetailItems[0] = offerDetailItem;\n\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\n priceChangeRequestItems[0] = priceChangeRequestItem;\n\n //EpisysPortHandle.getEpisysPort();\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\n\n RETURN_VALUE = validationResult.getStatusCode();\n statusMessage = validationResult.getStatusMessage();\n\n } catch (Exception ex) {\n ex.printStackTrace();\n System.out.println(\"Exception in Upsert Price for a Product \"+ex.getMessage());\n }\n return RETURN_VALUE;\n }", "title": "" }, { "docid": "d55c9178e3ac6f53c79fbc0f6d2c5629", "score": "0.51386297", "text": "@Test\n public static void calculateTheGoldPrice() throws Exception {\n\n try\n\n {\n httpClient = HttpClients.createDefault();\n HttpGet getRequest = new HttpGet(\"http://staging-b2b.emasdigi.com/api/vendor/v1/products/gold?action=sell&type=gram&amount=14.97&currency=IDR\");\n getRequest.addHeader(\"content-type\", \"application/json\");\n getRequest.addHeader(\"api-key\", \"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\");\n getRequest.addHeader(\"User-Agent\", \"vendor-id:7\");\n JSONObject object = new JSONObject();\n String message;\n message = object.toString();\n //getRequest.setEntity(new StringEntity(message, \"UTF8\"));\n HttpResponse response = httpClient.execute(getRequest);\n System.out.println(response);\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != 200) {\n throw new RuntimeException(\"Failed with HTTP error code : \" + statusCode);\n }\n System.out.println(statusCode);\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\n String output;\n\n } finally\n\n {\n httpClient.close();\n //Important: Close the connect\n // httpClient.getConnectionManager().shutdown();\n }\n }", "title": "" }, { "docid": "64de91954fd85e6918102df297f2525e", "score": "0.5106871", "text": "public void startgetBourse(\n\n com.action.service.PriceActionServiceImplStub.GetBourse getBourse18,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\n _operationClient.getOptions().setAction(\"urn:getBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBourse18,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourse\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetBourseResponse.class);\n callback.receiveResultgetBourse(\n (com.action.service.PriceActionServiceImplStub.GetBourseResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetBourse(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourse(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourse(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourse(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetBourse(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetBourse(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[9].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[9].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "a063b054c3c7cc00a8c0087318f79ac8", "score": "0.51049125", "text": "public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse getStudentPEDataFromLIN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHE getStudentPEDataFromLIN_AdminRHE10)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentPEDataFromLIN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentPEDataFromLIN_AdminRHE10,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromLIN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromLIN_AdminRHE\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "58ab3c37715109e38618b2ef941c6dd5", "score": "0.50942343", "text": "public void verifyAbletoseealltehdetailsaddedinPostingforminPreviewpage() throws Exception {\n\t\tCreateStockTradusProPage createStockObj = new CreateStockTradusProPage(driver);\n\t\t/*LoginTradusPROPage loginPage = new LoginTradusPROPage(driver);\n\t\tloginPage.setAccountEmailAndPassword(\"automation.testing.sunfra@gmail.com\", \"tradus123\");\n\t\tjsClick(driver, loginPage.LoginButton);\n\t\texplicitWaitFortheElementTobeVisible(driver, loginPage.overviewPageVerificationElement);\n\t\tjsClick(driver, createStockObj.myStockOptioninSiderBar);\n\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.createMyStockOptioninSiderBar);\n\t\tjsClick(driver, createStockObj.createMyStockOptioninSiderBar);*/\n\t\tloadUrl(driver, \"https://pro.tradus.com/lms/ads/create\");\n\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.postingFormVerificationElement);\n\t\twaitTill(1000);\n\t\tclick(createStockObj.priceTypeFieldPostingForm);\n\t\twaitTill(1000);\n\t\tactionClick(driver, createStockObj.priceTypeasFixed);\n\t\twaitTill(1000);\n\t\tif (!getText(createStockObj.currencyFieldAutofillValue).equalsIgnoreCase(\"EUR\")) {\n\t\t\tclick(createStockObj.currencyTypeFieldPostingForm);\n\t\t\twaitTill(1000);\n\t\t\tactionClick(driver, createStockObj.currencyTypeasEuro);\n\t\t}\n\t\tsendKeys(createStockObj.netPriceFieldPostingForm, \"10000\");\n\t\twaitTill(1000);\n\t\tscrollToElement(driver, createStockObj.vehicleMakeFieldPostingForm);\n\t\twaitTill(2000);\n\t\tclick(createStockObj.vehicleTypeFieldPostingForm);\n\t\tactionClick(driver, createStockObj.vehicleTypeasSpareParts);\n\t\twaitTill(3000);\n\t\tclick(createStockObj.vehicleCategoryFieldPostingForm);\n\t\tactionClick(driver, createStockObj.vehicleCategoryasTires);\n\t\twaitTill(3000);\n\t\tclick(createStockObj.vehicleMakeFieldPostingForm);\n\t\tactionClick(driver, createStockObj.vehicleMakeasJCB);\n\t\twaitTill(2000);\n\t\tclick(createStockObj.vehicleModelFieldPostingForm);\n\t\tclick(createStockObj.vehicleModelasHydradig);\n\t\t// actionClick(driver,createStockObj.vehicleModelasHydradig);\n\t\twaitTill(2000);\n\t\tclick(createStockObj.vehicleVersionFieldPostingForm);\n\t\tactionClick(driver, createStockObj.vehicleVersionas110);\n\t\twaitTill(1000);\n\t\tsendKeys(createStockObj.netWeightAreainPostingForm, \"100\");\n\t\tsendKeys(createStockObj.grossWeightAreainPostingForm, \"110\");\n\t\tsendKeys(createStockObj.heightAreainPostingForm, \"3\");\n\t\tsendKeys(createStockObj.widthAreainPostingForm, \"2\");\n\t\tsendKeys(createStockObj.lenghtAreainPostingForm, \"2.5\");\n\t\twaitTill(1000);\n\t\t//sendKeys(createStockObj.fitsToFollowingMachineAreainPostingForm, \"All\");\n\t\tsendKeys(createStockObj.sellerReferenceAreainPostingForm, \"100200300\");\n\t\tsendKeys(createStockObj.constructionYearAreainPostingForm, \"2018\");\n\t\tsendKeys(createStockObj.mileageAreainPostingForm, \"1150\");\n\t\tsendKeys(createStockObj.hoursRunAreainPostingForm, \"360\");\n\t\twaitTill(1000);\n\t\tclick(createStockObj.constructionMonthinPostingForm);\n\t\tclick(createStockObj.makeMonthasDecember);\n\t\twaitTill(2000);\n\t\tclick(createStockObj.conditioninPostingForm);\n\t\tclick(createStockObj.conditionasSemiNew);\n\t\twaitTill(2000);\n\t\tsendKeys(createStockObj.VINAreainPostingForm, \"987987654654\");\n\t\tsendKeys(createStockObj.descriptionAreainPostingForm, \"Test Ad Test Ad Test Ad\");\n\t\twaitTill(3000);\n\t\tjsClick(driver, createStockObj.previewYourAdButtonInPostingForm);\n\t\twaitTill(6000);\n\t\tAssert.assertTrue(\n\t\t\t\tgetText(createStockObj.makeModelVersioninPreviewpage).trim().equalsIgnoreCase(\"Jcb Hydradig 110\"),\n\t\t\t\t\"Make model version are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.subCategoryinPreviewpage).trim().equalsIgnoreCase(\"Tires\"),\n\t\t\t\t\"Category and subcategory are not same in preview page\");\n\t\tString priceinPreview = getText(createStockObj.netPriceinPreviewpage).replaceAll(\"[^a-zA-Z0-9]\", \"\").trim();\n\t\tAssert.assertTrue(priceinPreview.equalsIgnoreCase(\"10000\"), \"Net price is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.yearinPreviewpage).equalsIgnoreCase(\"2018\"),\n\t\t\t\t\"Manufacturing year is not same in preview page\");\n\t\tString mileageinPreview = getText(createStockObj.mileageinPreviewpage).replace(\"km\", \"\").trim();\n\t\tAssert.assertTrue(mileageinPreview.equalsIgnoreCase(\"1150\"), \"Mileage is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.netWeightinPreviewpage).equalsIgnoreCase(\"100\"),\n\t\t\t\t\"net weight is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.grossWeightinPreviewpage).equalsIgnoreCase(\"110\"),\n\t\t\t\t\"gross weight is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.heightinPreviewpage).equalsIgnoreCase(\"3\"),\n\t\t\t\t\"Height is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.widthinPreviewpage).equalsIgnoreCase(\"2\"),\n\t\t\t\t\"Width is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.lengthinPreviewpage).equalsIgnoreCase(\"2.5\"),\n\t\t\t\t\"Length is not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.fitsToFollowingMachinesinPreviewpage).equalsIgnoreCase(\"All\"),\n\t\t\t\t\"FitsToFollowingMachines data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.sellersRefinPreviewpage).equalsIgnoreCase(\"100200300\"),\n\t\t\t\t\"Seller ref data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.constructionMonthinPreviewpage).equalsIgnoreCase(\"12\"),\n\t\t\t\t\"Construction month data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.hoursRuninPreviewpage).equalsIgnoreCase(\"360\"),\n\t\t\t\t\"Hours run data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.conditioninPreviewpage).equalsIgnoreCase(\"Semi-new\"),\n\t\t\t\t\"Condition data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.vininPreviewpage).equalsIgnoreCase(\"987987654654\"),\n\t\t\t\t\"VIN data are not same in preview page\");\n\t\tAssert.assertTrue(getText(createStockObj.descriptioninPreviewpage).equalsIgnoreCase(\"Test Ad Test Ad Test Ad\"),\n\t\t\t\t\"Construction month data are not same in preview page\");\n\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.postYourAdButtonInPreviewPage);\n\t\tjsClick(driver, createStockObj.postYourAdButtonInPreviewPage);\n\t\texplicitWaitFortheElementTobeVisible(driver, createStockObj.successToastInPostingForm);\n\t\tAssert.assertTrue(getText(createStockObj.successToastInPostingForm).contains(\"ad was posted\"), \n\t\t\t\t\"Success toast not displayed after inserting an ad\");\n\n\t}", "title": "" }, { "docid": "6be36efb31b364c76f779489970617fb", "score": "0.5090938", "text": "public void startgetActiveBourses(\n\n com.action.service.PriceActionServiceImplStub.GetActiveBourses getActiveBourses12,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());\n _operationClient.getOptions().setAction(\"urn:getActiveBourses\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActiveBourses12,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveBourses\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveBourses\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse.class);\n callback.receiveResultgetActiveBourses(\n (com.action.service.PriceActionServiceImplStub.GetActiveBoursesResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetActiveBourses(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveBourses\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActiveBourses(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActiveBourses(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActiveBourses(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActiveBourses(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetActiveBourses(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetActiveBourses(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[6].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[6].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "5bf9aa549f80ee6b13168fe75225296f", "score": "0.5082621", "text": "nc.itf.crd.webservice.izyhtwebservice.FeePlanDataDocument.FeePlanData addNewFeePlanData();", "title": "" }, { "docid": "65de387f65bcc969b984dce3a9990727", "score": "0.5060201", "text": "public static String ncpiWSCall(AadhaarStatusRequest req, String url) throws Exception \r\n {\r\n \t String UWResponse_xml = \"\";\r\n \r\n String serviceEndPoint = \"https://nach.npci.org.in/CMAadhaar/AadhaarStatusService\";\r\n// String serviceEndPoint = url;\r\n System.out.println(\"URL-----\"+serviceEndPoint);\r\n System.out.println(\"url come from FORM \"+url);\r\n String envelope = \"<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:aad='http://aadhaar.npci.org/'>\"\r\n + \"<soapenv:Header/>\"\r\n + \"<soapenv:Body>\"\r\n + \"<aad:getAadhaarStatus>\"\r\n + \"<arg0>\"\r\n + \"<aadhaarNumber>\" + req.getAadhaarNumber() + \"</aadhaarNumber>\"\r\n + \"<mobileNumber>\" + req.getMobileNumber() + \"</mobileNumber>\"\r\n + \"<requestNumber>\" + req.getRequestNumber() + \"</requestNumber>\"\r\n + \"<requestedDateTimeStamp>\" + req.getRequestedDateTimeStamp() + \"</requestedDateTimeStamp>\"\r\n + \"</arg0>\"\r\n + \"</aad:getAadhaarStatus>\"\r\n + \"</soapenv:Body>\"\r\n + \"</soapenv:Envelope>\";\r\n \r\n WSCall cf = new WSCall();\r\n UWResponse_xml = cf.invoke(url, envelope, \"null\"); \r\n \r\n return UWResponse_xml;\r\n }", "title": "" }, { "docid": "6d0bb0e193c31b0341e1bb4aa68db37e", "score": "0.504981", "text": "@Test\n public void testUpdateToChecked() throws Exception {\n System.out.println(\"updateToChecked\");\n long id = 0L;\n BOMEndpoint instance = new BOMEndpoint();\n Response expResult = null;\n Response result = instance.updateToChecked(id);\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 }", "title": "" }, { "docid": "b0a7351e8e0603603bdbb8dd20b88863", "score": "0.50388765", "text": "float getReturnFee();", "title": "" }, { "docid": "ca5e607ea96fb7b10ee2f72d3e6b2346", "score": "0.50332505", "text": "@RequestMapping(value = \"/setConvenienceFee\", method = RequestMethod.GET)\n public String setConvenienceFee(@ModelAttribute(\"ConvenienceFee\") ConvenienceFee convenienceFee, ModelMap model,\n HttpServletRequest request) {\n try {\n HttpSession session = request.getSession(false);\n Merchant merchant=null;\n if(session!=null)\n merchant = (Merchant) session.getAttribute(\"merchant\");\n if (merchant != null) {\n List<Address> addresses = merchantService.findAddressByMerchantId(merchant.getId());\n if (!addresses.isEmpty()) {\n Address address = addresses.get(0);\n \n String address1= \"\";\n if(address.getAddress1()!=null){\n \taddress1=address.getAddress1();\n };\n String address2= \"\";\n if(address.getAddress2()!=null){\n \taddress2=address.getAddress2();\n };\n String address3= \"\";\n if(address.getAddress3()!=null){\n \taddress3=address.getAddress3();\n };\n model.addAttribute(\"address\",\n \t\taddress1 + \" \" + address2 + \" \" + address3\n + \" \" + address.getCity() + \" \" + address.getCountry() + \"-\"\n + address.getZip());\n model.addAttribute(\"id\", address.getId());\n }\n } else {\n return \"redirect:https://www.foodkonnekt.com\";\n }\n } catch (Exception e) {\n if (e != null) {\n MailSendUtil.sendExceptionByMail(e);\n\n e.printStackTrace();\n return \"redirect:https://www.foodkonnekt.com\";\n }\n }\n return \"setConvenienceFee\";\n }", "title": "" }, { "docid": "8fa7beaa207b7a734d3047a0d200fdd0", "score": "0.5028248", "text": "public void startgetBoursesById(\n\n com.action.service.PriceActionServiceImplStub.GetBoursesById getBoursesById26,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[13].getName());\n _operationClient.getOptions().setAction(\"urn:getBoursesById\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBoursesById26,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBoursesById\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBoursesById\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse.class);\n callback.receiveResultgetBoursesById(\n (com.action.service.PriceActionServiceImplStub.GetBoursesByIdResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetBoursesById(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBoursesById\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBoursesById(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBoursesById(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBoursesById(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBoursesById(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetBoursesById(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetBoursesById(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[13].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[13].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "69319914b9d0960a3b89e14d7bb37639", "score": "0.50275284", "text": "public com.action.service.PriceActionServiceImplStub.GetActionsResponse getActions(\n\n com.action.service.PriceActionServiceImplStub.GetActions getActions4)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"urn:getActions\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActions4,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActions\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActions\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActionsResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActionsResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActions\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActions\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActions\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "8739601aab137f336c8be7faba08964c", "score": "0.5006095", "text": "public ActionForward execute(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response) throws HibernateException {\r\n\t\tFpForm fpForm = (FpForm) form;// TODO Auto-generated method stub\r\n\t\t\r\n\t\tRequirementBusiness rb = new RequirementBusiness();//业务层函数,对数据组进行增删改查等操作\r\n\t\t \r\n\t\t\r\n\t\t/*将id为dataGroupId的实体bean查找出来*/\r\n\t\tInteger productId = new Integer(fpForm.getProductId());\r\n\t\tString s = fpForm.getFpc();\r\n\t\tString count;\r\n\t\tint i;\r\n\t\tfor (i = 0; i < s.length(); i ++)\r\n\t\t\tif(s.charAt(i) == '.') break;\r\n\t\tcount = s.substring(0,i - 1);\r\n\t\tIfpugProduct fp = (IfpugProduct)rb.getProductById(productId);\r\n\t if(s.charAt(i + 1) >= '5') fp.setUfpCount(Integer.parseInt((count) + 1));\r\n\t else fp.setUfpCount(Integer.parseInt((count)));\r\n \r\n\t boolean result = rb.updateProduct(fp);\r\n\t\tif(result==true){\r\n\t\t return mapping.findForward(\"success\");\r\n\t\t}else{\r\n\t\t return mapping.findForward(\"failure\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "417cc60d090501856503aa3834f0b96d", "score": "0.49879253", "text": "public int deletePriceForAProduct() {\n\n ValidationResult validationResult = null;\n\n try {\n\n ConfigurationReader configurationReader = new ConfigurationReader();\n String fileName = \"DeletePrice.config\";\n PriceItem priceItem = new PriceItem();\n priceItem.setOfferType(Integer.parseInt(configurationReader.getValue(fileName, \"offerType\")));\n priceItem.setPrice(Float.parseFloat(configurationReader.getValue(fileName, \"price\")));\n this.price = Float.parseFloat(configurationReader.getValue(fileName, \"price\"));\n priceItem.setPriceCode(configurationReader.getValue(fileName,\"priceCode\"));\n priceItem.setPriceEndDate(configurationReader.getValue(fileName,\"priceEndDate\"));\n priceItem.setPriceStartDate(configurationReader.getValue(fileName,\"priceStartDate\"));\n priceItem.setPriceType(Integer.parseInt(configurationReader.getValue(fileName, \"priceType\")));\n priceItem.setWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasPrice\")));\n priceItem.setWasWasPrice(Float.parseFloat(configurationReader.getValue(fileName, \"wasWasPrice\")));\n\n PriceChangeRequestItem priceChangeRequestItem = new PriceChangeRequestItem();\n priceChangeRequestItem.setEventUID(Integer.parseInt(configurationReader.getValue(fileName,\"eventUID\")));\n priceChangeRequestItem.setItemTag(configurationReader.getValue(fileName, \"itemTag\"));\n priceChangeRequestItem.setMessageType(Integer.parseInt(configurationReader.getValue(fileName, \"messageType\")));\n priceChangeRequestItem.setPriceDescription(configurationReader.getValue(fileName, \"priceDescription\"));\n priceChangeRequestItem.setPriceUID(Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\")));\n this.priceUID = Integer.parseInt(configurationReader.getValue(fileName, \"priceUID\"));\n priceChangeRequestItem.setProductCode(configurationReader.getValue(fileName, \"productCode\"));\n priceChangeRequestItem.setProductTypeCode(configurationReader.getValue(fileName, \"productTypeCode\"));\n priceChangeRequestItem.setSourceIPAddress(configurationReader.getValue(fileName, \"sourceIPAddress\"));\n priceChangeRequestItem.setSrcSystem(configurationReader.getValue(fileName, \"srcSystem\"));\n priceChangeRequestItem.setStatusCode(configurationReader.getValue(fileName, \"statusCode\"));\n priceChangeRequestItem.setUserID(configurationReader.getValue(fileName, \"userID\"));\n priceChangeRequestItem.setPriceItem(priceItem);\n\n OfferDetailItem offerDetailItem = new OfferDetailItem();\n offerDetailItem.setOfferDetailName(configurationReader.getValue(fileName,\"offerDetailName\"));\n offerDetailItem.setOfferDetailValue(configurationReader.getValue(fileName,\"offerDetailValue\"));\n\n\n OfferDetailItem[] offerDetailItems = new OfferDetailItem[1];\n offerDetailItems[0] = offerDetailItem;\n\n PriceChangeRequestItem[] priceChangeRequestItems = new PriceChangeRequestItem[1];\n priceChangeRequestItems[0] = priceChangeRequestItem;\n\n //EpisysPortHandle.getEpisysPort();\n validationResult = EpisysPortHandle.getEpisysService().managePrice(priceChangeRequestItems);\n\n // old// validationResult = service.managePrice(priceChangeRequestItems);\n RETURN_VALUE = validationResult.getStatusCode();\n statusMessage = validationResult.getStatusMessage();\n\n //System.out.println(\"RETURN_VALUE in Del method: \" + RETURN_VALUE);\n //System.out.println(\"statusMessage in Del method: \" + statusMessage);\n\n } catch (java.rmi.RemoteException ex) {\n ex.printStackTrace();\n System.out.println(\"Exception in Delete Price for a Product \"+ex.getMessage());\n }\n return RETURN_VALUE;\n }", "title": "" }, { "docid": "a36cc5640dbbf25ecf7453d322f82b45", "score": "0.4984547", "text": "@Test\n public void testGenerateQuotation(){\n //Initialise object of the auldfellas service class\n AFQService afqService = new AFQService() ;\n Quotation auldfellasQuotation = afqService.generateQuotation(clientInfo);\n Assert.assertNotNull(auldfellasQuotation);\n }", "title": "" }, { "docid": "6a5f0c1b3eff119a9f7791740936d258", "score": "0.49735382", "text": "@Test\n public void testUpdateToUnchecked() throws Exception {\n System.out.println(\"updateToUnchecked\");\n long id = 0L;\n BOMEndpoint instance = new BOMEndpoint();\n Response expResult = null;\n Response result = instance.updateToUnchecked(id);\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 }", "title": "" }, { "docid": "2359d288f1a5f6d4a7c3b345f4b548dd", "score": "0.49660125", "text": "public com.action.service.PriceActionServiceImplStub.GetActiveActionsResponse getActiveActions(\n\n com.action.service.PriceActionServiceImplStub.GetActiveActions getActiveActions28)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[14].getName());\n _operationClient.getOptions().setAction(\"urn:getActiveActions\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActiveActions28,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveActions\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActiveActions\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActiveActionsResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActiveActionsResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveActions\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveActions\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActiveActions\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "81243b3d9c129bde32f704f64a5319a8", "score": "0.4965499", "text": "public void startQueryHeadendMastershipDetailsOut(\n\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipRequest_MT queryHeadendMastershipRequest_MT0,\n\n final smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://sap.com/xi/WebService/soap1.1\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n queryHeadendMastershipRequest_MT0,\n optimizeContent(new javax.xml.namespace.QName(\"urn:britishgas.co.uk:Trilliant:SmartMeterProcessing\",\n \"QueryHeadendMastershipDetailsOut\")));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultQueryHeadendMastershipDetailsOut(\n (smartmeterprocessing.trilliant.uk.co.britishgas.QueryHeadendMastershipDetailsOutServiceStub.QueryHeadendMastershipResponse_MT)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorQueryHeadendMastershipDetailsOut(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(faultElt.getQName())){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Exception ex=\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(java.lang.Exception) exceptionClass.newInstance();\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorQueryHeadendMastershipDetailsOut(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorQueryHeadendMastershipDetailsOut(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorQueryHeadendMastershipDetailsOut(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorQueryHeadendMastershipDetailsOut(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[0].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "e01962584504bef6246d473e425ce40b", "score": "0.495758", "text": "@Test\n public static void goldPrice() throws Exception {\n\n try\n\n {\n httpClient = HttpClients.createDefault();\n HttpGet getRequest = new HttpGet(\"http://staging-b2b.emasdigi.com/api/vendor/v1/products/gold/prices\");\n getRequest.addHeader(\"content-type\", \"application/json\");\n getRequest.addHeader(\"api-key\", \"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\");\n getRequest.addHeader(\"User-Agent\", \"vendor-id:7\");\n JSONObject object = new JSONObject();\n String message;\n message = object.toString();\n //getRequest.setEntity(new StringEntity(message, \"UTF8\"));\n HttpResponse response = httpClient.execute(getRequest);\n System.out.println(response);\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != 200) {\n throw new RuntimeException(\"Failed with HTTP error code : \" + statusCode);\n }\n System.out.println(statusCode);\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\n String output;\n\n } finally\n\n {\n httpClient.close();\n //Important: Close the connect\n // httpClient.getConnectionManager().shutdown();\n }\n }", "title": "" }, { "docid": "8d150eac2839072a8aeb4e0f5140d6d1", "score": "0.4956232", "text": "public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHEResponse getStudentDataFromLIN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHE getStudentDataFromLIN_AdminRHE4)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentDataFromLIN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentDataFromLIN_AdminRHE4,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromLIN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromLIN_AdminRHE\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromLIN_AdminRHEResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromLIN_AdminRHE\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromLIN_AdminRHE\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromLIN_AdminRHE\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "03c57f35bd5a4d71eebe5bdeecdac0e8", "score": "0.4947618", "text": "public void startgetActionsByBourse(\n\n com.action.service.PriceActionServiceImplStub.GetActionsByBourse getActionsByBourse24,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[12].getName());\n _operationClient.getOptions().setAction(\"urn:getActionsByBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActionsByBourse24,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionsByBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionsByBourse\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse.class);\n callback.receiveResultgetActionsByBourse(\n (com.action.service.PriceActionServiceImplStub.GetActionsByBourseResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetActionsByBourse(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionsByBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActionsByBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetActionsByBourse(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActionsByBourse(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetActionsByBourse(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetActionsByBourse(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetActionsByBourse(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[12].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[12].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "c005c2984c48b4ea574bfdfde36a28a0", "score": "0.4945926", "text": "public void calculatePreferredPrice(SurveyItem objSurveyItem) throws Exception;", "title": "" }, { "docid": "7497ae86bfc967e6093e537cb936a75f", "score": "0.4942869", "text": "public static UpdateBourseResponse parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n UpdateBourseResponse object =\n new UpdateBourseResponse();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"updateBourseResponse\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (UpdateBourseResponse)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"http://service.action.com\",\"return\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n throw new org.apache.axis2.databinding.ADBException(\"The element: \"+\"return\" +\" cannot be null\");\n }\n \n\n java.lang.String content = reader.getElementText();\n \n object.set_return(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content));\n \n reader.next();\n \n } // End of if for expected property start element\n \n else{\n // 1 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // 2 - A start element we are not expecting indicates a trailing invalid property\n \n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }", "title": "" }, { "docid": "99496f1dc0a9a7d0938ae83de09420a8", "score": "0.49336398", "text": "public ResultMessage update(SalaryPolicyVO vo) throws RemoteException {\n\t\tmanageVOPO.addLog(LogType.DECISION_SALARYPOLICY);\n\t\tif (salaryPolicyDataService != null) {\n\t\t\tResultMessage rmsg = check(vo);\n\t\t\tif (check(vo) == ResultMessage.VALID) {\n\t\t\t\tSalaryPolicyPO po = manageVOPO.voToPO(vo);\n\t\t\t\ttry {\n\t\t\t\t\trmsg = salaryPolicyDataService.update(po);\n\t\t\t\t\tResultMessage.postCheck(ResultMessage.SUCCESS, rmsg);\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\tSystem.out.println(\"class文件未找到\");\n\t\t\t\t\treturn ResultMessage.FAILED;\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\tSystem.out.println(\"读写文件出错\");\n\t\t\t\t\treturn ResultMessage.IOFAILED;\n\t\t\t\t}\n\t\t\t\treturn rmsg;\n\t\t\t} else {\n\t\t\t\treturn check(vo);\n\t\t\t}\n\t\t} else {\n\t\t\treturn ResultMessage.FAILED;\n\t\t}\n\t}", "title": "" }, { "docid": "ea03ab61dd6bbab45634b4d6eba66c3e", "score": "0.4932123", "text": "public void startprocessShipAccept(\n\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipAcceptRequest shipAcceptRequest5,com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.UPSSecurity uPSSecurity6,\n \n\n final com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"http://onlinetools.ups.com/webservices/ShipBinding/v1.0\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n shipAcceptRequest5,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipAccept\")), new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipAccept\"));\n \n // add the soap_headers only if they are not null\n if (uPSSecurity6!=null){\n \n org.apache.axiom.om.OMElement omElementuPSSecurity6 = toOM(uPSSecurity6, optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\", \"processShipAccept\")));\n addHeader(omElementuPSSecurity6,env);\n \n }\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipAcceptResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultprocessShipAccept(\n (com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipAcceptResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorprocessShipAccept(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipAccept\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipAccept\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipAccept\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.ups.www.wsdl.xoltws.ship.v1_0.ShipAcceptErrorMessage){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorprocessShipAccept((com.ups.www.wsdl.xoltws.ship.v1_0.ShipAcceptErrorMessage)ex);\n\t\t\t\t\t\t\t\t\t\t\t return;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipAccept(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipAccept(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipAccept(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipAccept(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipAccept(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorprocessShipAccept(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[1].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "42a93af27297c675c302c438a928b179", "score": "0.49251217", "text": "@Override\n public PolicyCover retrieve(final Long policyNumber, final String version, final String showAgreementLines) {\n return new PolicyCover();\n\n\n// private void getAnnualPremiumOfAllCoverLines(final PolicyCover policyCover) {\n// final BigDecimal annualPremium = policyCover.getCoverLines().stream()\n// .filter(coverLine -> coverLine.getCancelCode() == 0)\n// .map(CoverLine::getTariffPrice)\n// .reduce(BigDecimal.ZERO, BigDecimal::add);\n//\n// policyCover.setAnnualPremium(annualPremium);\n// }\n\n// private void activeAgreementLines(final String showAgreementLines, final PolicyCover policyCover) {\n// if (showAgreementLines.equalsIgnoreCase(ACTIVE_ONLY)) {\n// policyCover.getCoverLines().removeIf((CoverLine coverLine) -> coverLine.getCancelCode() != 0);\n// }\n// }\n\n// private PolicyCover getPolicyCover(final Long policyNumber, final String version) {\n// final Request request = new Request()\n// .signature(new Signature().functionName(oracleGatewayConfig.getRetrieveFunctionName()))\n// .payloadIn(JsonMapper.toJson(new PolicyNumberRequest().policyNo(policyNumber).version(version)));\n//\n// final OracleGatewayResponse response = oracleGatewayAPI.sendRequest(request);\n//\n// final PolicyCover policyCover = fromJson(extractPayload(response), PolicyCover.class);\n//\n// if (isEmpty(policyCover.getCoverLines())) {\n// throw new OracleGatewayException(ORACLE_GATEWAY_EXCEPTION.getCode(), ORACLE_GATEWAY_EXCEPTION.getMessage());\n// }\n\n// return new PolicyCover();\n }", "title": "" }, { "docid": "2a9b38b6a6e5c5ba334708edf41faa2f", "score": "0.49187085", "text": "public String getZouponsDeals(String storeId,String user_id,String offset, String action_flag, String dealcard_id, String sellpirce, String count_per_week) {\r\n\t\ttry {\r\n\t\t\tmHttpClient = new DefaultHttpClient();\r\n\t\t\tmHttpPost = new HttpPost(new StringBuilder().append(URL).append(GET_ZOUPONS_DEALS).toString());\r\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\r\n\t\t\tlist.clear();\r\n\t\t\tlist.add(new BasicNameValuePair(\"storeid\", storeId));\r\n\t\t\tlist.add(new BasicNameValuePair(\"employeeid\", user_id));\r\n\t\t\tlist.add(new BasicNameValuePair(\"offset\",offset));\t\r\n\t\t\tlist.add(new BasicNameValuePair(\"limit\", \"20\"));\r\n\t\t\tlist.add(new BasicNameValuePair(\"action\", action_flag));\r\n\t\t\tif(action_flag.equalsIgnoreCase(\"update\")){\r\n\t\t\t\tlist.add(new BasicNameValuePair(\"dealcard_id\",dealcard_id));\t\r\n\t\t\t\tlist.add(new BasicNameValuePair(\"per_week\", count_per_week));\r\n\t\t\t\tlist.add(new BasicNameValuePair(\"sell_price\", sellpirce));\t\r\n\t\t\t}else if(action_flag.equalsIgnoreCase(\"inactivate\")){\r\n\t\t\t\tlist.add(new BasicNameValuePair(\"dealcard_id\",dealcard_id));\r\n\t\t\t}\r\n\t\t\tlist.add(new BasicNameValuePair(\"app_token\", mTokenId));\r\n\t\t\tmHttpPost.setEntity(new UrlEncodedFormEntity(list));\r\n\t\t\tmResponse=mHttpClient.execute(mHttpPost);\r\n\t\t\tmEntity=mResponse.getEntity();\r\n\t\t\tif(mEntity != null){\r\n\t\t\t\tString content = EntityUtils.toString(mEntity);\r\n\t\t\t\tmReturnValue=content;\r\n\t\t\t} else {\r\n\t\t\t\tmReturnValue=\"noresponse\";\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tmReturnValue = \"failure\";\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//Log.i(\"response\", mReturnValue);\r\n\t\treturn mReturnValue;\r\n\t}", "title": "" }, { "docid": "51534975184f056e39060fd01a348d27", "score": "0.49183577", "text": "public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHEResponse getStudentDataFromEGN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHE getStudentDataFromEGN_AdminRHE2)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentDataFromEGN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentDataFromEGN_AdminRHE2,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRHE\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRHEResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRHE\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRHE\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRHE\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "863c25dc91a7b5e3855633bb1af12b98", "score": "0.49158892", "text": "@SuppressWarnings(\"unchecked\")\r\n\tprotected String doIt () throws Exception\r\n\t{\r\n\t\tMLocator locator = MLocator.get(getCtx(), p_M_Locator_ID);\r\n\t\tMWMInOutBound outbound = new MWMInOutBound(getCtx(), 0 , get_TrxName());\r\n\t\t\r\n\t\toutbound.setShipDate(p_ShipDate);\r\n\t\toutbound.setPickDate(p_PickDate);\r\n\t\tif(p_POReference != null)\r\n\t\t{\t\r\n\t\t\toutbound.setPOReference(p_POReference);\r\n\t\t}\t\r\n\t\t\r\n\t\tif(p_DeliveryRule != null)\r\n\t\t{\t\r\n\t\t\toutbound.setDeliveryRule(p_DeliveryRule);\r\n\t\t}\t\r\n\t\t\r\n\t\tif(p_C_DocType_ID > 0)\r\n\t\t{\t\r\n\t\t\toutbound.setC_DocType_ID(p_C_DocType_ID);\r\n\t\t}\t\r\n\t\telse\r\n\t\t{\t\r\n\t\t\tint C_DocType_ID=MDocType.getDocType(MDocType.DOCBASETYPE_WarehouseManagementOrder);\r\n\t\t\tif( C_DocType_ID <= 0)\r\n\t\t\t{\r\n\t\t\t\tthrow new DocTypeNotFoundException(MDocType.DOCBASETYPE_WarehouseManagementOrder, \"\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\t\r\n\t\t\t\toutbound.setC_DocType_ID(C_DocType_ID);\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t\r\n\t\tif(p_DocAction != null)\r\n\t\t\toutbound.setDocAction(p_DocAction);\r\n\t\telse\r\n\t\t\toutbound.setDocAction(MWMInOutBound.ACTION_Prepare);\r\n\t\t\r\n\t\toutbound.setDocStatus(MWMInOutBound.DOCSTATUS_Drafted);\r\n\t\toutbound.setM_Warehouse_ID(locator.getM_Warehouse_ID());\r\n\t\toutbound.setIsSOTrx(true);\r\n\t\toutbound.saveEx();\r\n\t\tint seq = 10;\r\n\t\tString whereClause = \"EXISTS (SELECT T_Selection_ID FROM T_Selection WHERE T_Selection.AD_PInstance_ID=? AND T_Selection.T_Selection_ID=C_OrderLine.C_OrderLine_ID)\";\t\t\r\n\t\tCollection <MOrderLine> olines = new Query(getCtx(), I_C_OrderLine.Table_Name, whereClause, get_TrxName())\r\n\t\t\t\t\t\t\t\t\t\t.setClient_ID()\r\n\t\t\t\t\t\t\t\t\t\t.setParameters(new Object[]{getAD_PInstance_ID()\t})\r\n\t\t\t\t\t\t\t\t\t\t.list();\r\n\t\tfor (MOrderLine oline : olines)\r\n\t\t{\r\n\t\t\t\tMWMInOutBoundLine boundline = new MWMInOutBoundLine(outbound);\r\n\t\t\t\tboundline.setLine(seq);\r\n\t\t\t\tboundline.setM_Product_ID(oline.getM_Product_ID());\r\n\t\t\t\tboundline.setM_AttributeSetInstance_ID(oline.getM_AttributeSetInstance_ID());\r\n\t\t\t\tboundline.setMovementQty(oline.getQtyOrdered().subtract(oline.getQtyDelivered()));\r\n\t\t\t\tboundline.setC_UOM_ID(oline.getC_UOM_ID());\r\n\t\t\t\tboundline.setDescription(oline.getDescription());\r\n\t\t\t\tboundline.setC_OrderLine_ID(oline.getC_OrderLine_ID());\r\n\t\t\t\tboundline.setPickDate(outbound.getPickDate());\r\n\t\t\t\tboundline.setShipDate(outbound.getShipDate());\r\n\t\t\t\tboundline.saveEx();\r\n\t\t\t\tseq ++;\r\n\t\t}\r\n\t\treturn \"@DocumentNo@ \" + outbound.getDocumentNo();\r\n\t}", "title": "" }, { "docid": "09a08423baead2372ce9769a07a75ae8", "score": "0.49141085", "text": "@Test\n public void updateFieldSchemaTest6() throws EEAException {\n\n DataFlowVO dataflowVO = new DataFlowVO();\n dataflowVO.setStatus(TypeStatusEnum.DESIGN);\n Mockito.when(dataflowControllerZuul.getMetabaseById(Mockito.anyLong())).thenReturn(dataflowVO);\n Mockito.when(datasetService.getDataFlowIdById(Mockito.anyLong())).thenReturn(1L);\n\n Mockito.when(securityContext.getAuthentication()).thenReturn(authentication);\n Mockito.when(authentication.getName()).thenReturn(\"datacustodian\");\n Mockito.when(dataschemaService.getDatasetSchemaId(Mockito.any())).thenThrow(EEAException.class);\n FieldSchemaVO fieldSchemaVO = new FieldSchemaVO();\n fieldSchemaVO.setName(\"fieldName\");\n try {\n dataSchemaControllerImpl.updateFieldSchema(1L, fieldSchemaVO);\n } catch (ResponseStatusException e) {\n assertEquals(HttpStatus.BAD_REQUEST, e.getStatus());\n }\n }", "title": "" }, { "docid": "d3abe5c79b134a2eff5c4ef39ed5a49a", "score": "0.4909074", "text": "@Test(description = \"Implements A.1.4 DGIWG Transactional CSW - Update (Requirement 18)\", dependsOnMethods = \"issueGetRecords_EnsureInsert\")\n public void issueUpdateOperation() {\n this.requestDocument = requestCreator.createUpdateRequest();\n this.response = this.cswClient.submitPostRequest( transactionUrl, this.requestDocument );\n assertStatusCode( this.response.getStatus(), 200 );\n assertXmlContentType( this.response.getHeaders() );\n this.responseDocument = this.response.getEntity( Document.class );\n\n assertQualifiedName( responseDocument, CSW, \"TransactionResponse\" );\n assertSchemaValid( cswValidator, new DOMSource( this.responseDocument ) );\n\n int totalUpdated = parseTotalUpdated();\n assertTrue( totalUpdated == 1, \"Expected totalUpdated 1 but was \" + totalUpdated );\n }", "title": "" }, { "docid": "f6a6c4765fbc17f67e61de298337d052", "score": "0.4904902", "text": "public void startgetStudentPEDataFromEGN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHE getStudentPEDataFromEGN_AdminRHE6,\r\n\r\n final net.is_bg.mon.wsclient.stub.WsnacidCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException{\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentPEDataFromEGN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env=null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentPEDataFromEGN_AdminRHE6,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromEGN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromEGN_AdminRHE\"));\r\n \r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n \r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n \r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultgetStudentPEDataFromEGN_AdminRHE(\r\n (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromEGN_AdminRHEResponse)object);\r\n \r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\r\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\r\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"))){\r\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\r\n\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromEGN_AdminRHE\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n }\r\n\t\t\t\t\t\t\t\t\t } else {\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(f);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(error);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorgetStudentPEDataFromEGN_AdminRHE(axisFault);\r\n }\r\n }\r\n });\r\n \r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[3].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n\r\n }", "title": "" }, { "docid": "72e27d1ec6743fce1b6d565ea80b9718", "score": "0.48948017", "text": "@WebResult(name = \"RelayEnbPnpConfigUpdateResult\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n @RequestWrapper(localName = \"RelayEnbPnpConfigUpdate\", targetNamespace = \"http://Airspan.Netspan.WebServices\", className = \"Netspan.NBI_15_5.Lte.RelayEnbPnpConfigUpdate\")\n @WebMethod(operationName = \"RelayEnbPnpConfigUpdate\", action = \"http://Airspan.Netspan.WebServices/RelayEnbPnpConfigUpdate\")\n @ResponseWrapper(localName = \"RelayEnbPnpConfigUpdateResponse\", targetNamespace = \"http://Airspan.Netspan.WebServices\", className = \"Netspan.NBI_15_5.Lte.RelayEnbPnpConfigUpdateResponse\")\n public Netspan.NBI_15_5.Lte.NodeActionResult relayEnbPnpConfigUpdate(\n @WebParam(name = \"NodeName\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n java.lang.String nodeName,\n @WebParam(name = \"NodeDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.NodeProperty nodeDetail,\n @WebParam(name = \"PnpDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.AuPnpDetailWs pnpDetail,\n @WebParam(name = \"RelaySnmpDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.SnmpDetailWs relaySnmpDetail,\n @WebParam(name = \"EnbSnmpDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.SnmpDetailWs enbSnmpDetail,\n @WebParam(name = \"RelayDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.AuRelayDetails relayDetail,\n @WebParam(name = \"EnbDetail\", targetNamespace = \"http://Airspan.Netspan.WebServices\")\n Netspan.NBI_15_5.Lte.AuEnbDetailWs enbDetail,\n @WebParam(name = \"Credentials\", targetNamespace = \"http://Airspan.Netspan.WebServices\", header = true)\n Credentials credentials\n );", "title": "" }, { "docid": "ecf76a46811a0970b4f0d0cfd6e2edf7", "score": "0.4888456", "text": "@Test(priority=25,groups={\"P0\",\"InvoiceNumbserSettingsTest\"},description=\"To verify Edit Frontdesk Payment Receipt Number on the page.\")\n\tpublic void HMS9180() throws Throwable\n\t{\n\t\ttry\n\t\t{\n\t\tAdminHome AH=AL.adminlogin(\"12903\",\"barkha.kapoor52@gmail.com\",\"86bc0493\");\n\n\t\t//AdminHome AH=AL.adminlogin_12485();\n\t\tInvoiceNumberSettingsLP INS=AH.fn_NavigateInvNumSettingPage();\n\t\tString a=GenericClass.GetCurrentWindowID();\n\t\tsTestCaseName=Thread.currentThread().getStackTrace()[1].getMethodName();\n\n\t ExcelUtil.setExcelFile(Constant.Path_TestData1+Constant.File_InvoiceNumberSettings,Constant.Sheet_InvoiceNumberSettings);\n\n\t\tiTestCaseRow = ExcelUtil.getRowContains(sTestCaseName,Constant.Col_TestCaseName);\n\t\t\n\t\tEditPRInvoiceNumber EPRI= INS.fn_clkPREditLnk();\n\t\tGenericClass.windowHandle(a);\n\t\tEPRI.fn_editFDPrefix(iTestCaseRow);\n\t\tGenericClass.Switch_Parent_Window(a);\n\t\tINS.fn_verifyEditedPRPrefix(iTestCaseRow);\n\t\tRoomsLandingPage RLP=AH.fn_NavigateRooms();\n\t\tAddRoomsPage ARP= RLP.ClickOnAddRoomLink();\n\t\tString rtype= ARP.fn_addRoomName(1);\t\n\t\tConfirmLoginPage CLP= AH.ClickOnFrontdeskLink();\n \t\tGenericClass.fn_SwitchToWindow_Title(\"Frontdesk\");\n \t\tCashCounterPage CCP=CLP.fn_ClickCountinueWithTrail_BT();\n \t\tFrontdeskLandingPage FLP=CCP.fn_ClickContinueButton();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_ClickCancelButton();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_clickCurrentLnk();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_createFDReserv(rtype,\"3\",\"3\");\n \t\tFLP.fn_fillAddQuickResrvDetails(iTestCaseRow);\n \t String ID=FLP.fn_getReservId();\n \t FLP.fn_clkClose();\n \t\t/*GenericClass.driver.navigate().refresh();\n \t Thread.sleep(12000);\n \t FLP.fn_AutoNightAudit1();*/\n \t Thread.sleep(10000);\n \t ReservationSearchResultLandingPage RSLP= FLP.fn_SearchReservationID(ID.trim());\n \t ViewDetailsPage VDP= RSLP.fn_ClickOnSearchedRecord();\n\t\tAccountStatementLandingPage ASP=VDP.fn_ClickOnPayment_BT();\n\t\tASP.fn_clkPayNow(iTestCaseRow);\n\t\tASP.fn_verifyPREditedInvoice(iTestCaseRow);\n\t\t\n\t\t\n\t\tSystem.out.println(\"HMS-9180 Executed\");\n\t\t\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{ GenericClass.getscreenshot(Thread.currentThread().getStackTrace()[1].getMethodName());\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t\tthrow e;\n\t\t}\n\t}", "title": "" }, { "docid": "491707da7258179356325f5852ea4ecc", "score": "0.48844165", "text": "@Test\n public void updateFieldSchemaTest4() throws EEAException {\n\n DataFlowVO dataflowVO = new DataFlowVO();\n dataflowVO.setStatus(TypeStatusEnum.DESIGN);\n Mockito.when(dataflowControllerZuul.getMetabaseById(Mockito.anyLong())).thenReturn(dataflowVO);\n Mockito.when(datasetService.getDataFlowIdById(Mockito.anyLong())).thenReturn(1L);\n\n Mockito.when(securityContext.getAuthentication()).thenReturn(authentication);\n Mockito.when(authentication.getName()).thenReturn(\"user\");\n\n FieldSchemaVO fieldSchemaVO = new FieldSchemaVO();\n fieldSchemaVO.setRequired(true);\n fieldSchemaVO.setId(\"fieldSchemaId\");\n fieldSchemaVO.setName(\"fieldName\");\n Mockito.when(dataschemaService.getDatasetSchemaId(Mockito.any())).thenReturn(\"datasetSchemaId\");\n Mockito.when(dataschemaService.updateFieldSchema(Mockito.any(), Mockito.any(), Mockito.any(),\n Mockito.anyBoolean())).thenReturn(null);\n Mockito.when(dataschemaService.checkPkAllowUpdate(Mockito.any(), Mockito.any()))\n .thenReturn(true);\n dataSchemaControllerImpl.updateFieldSchema(1L, fieldSchemaVO);\n Mockito.verify(rulesControllerZuul, times(0)).createAutomaticRule(Mockito.any(), Mockito.any(),\n Mockito.any(), Mockito.any(), Mockito.any(), Mockito.anyBoolean());\n }", "title": "" }, { "docid": "6c306dde8bd66cab33acd3cdcd3c52c2", "score": "0.48833004", "text": "public vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusResponseE getPushMessageDeliveryStatus(\r\n\r\n vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusE getPushMessageDeliveryStatus0)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n \r\n ,vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.PolicyException\r\n ,vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.ServiceException{\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\r\n _operationClient.getOptions().setAction(\"\\\"\\\"\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getPushMessageDeliveryStatus0,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www.csapi.org/wsdl/parlayx/wap_push/send/v1_0/interface\",\r\n \"getPushMessageDeliveryStatus\")));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusResponseE.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.SendPushMessageServiceStub.GetPushMessageDeliveryStatusResponseE)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.Exception ex=\r\n (java.lang.Exception) exceptionClass.newInstance();\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n if (ex instanceof vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.PolicyException){\r\n throw (vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.PolicyException)ex;\r\n }\r\n \r\n if (ex instanceof vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.ServiceException){\r\n throw (vms.org.csapi.www.wsdl.parlayx.wap_push.send.v1_0.service.ServiceException)ex;\r\n }\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }", "title": "" }, { "docid": "7f0811a5ade33da8337e42d16d4e9e22", "score": "0.48795936", "text": "public Object approve_dealInfo(Map<String,String> map,HttpServletRequest httpServletRequest){\n IWorkflowAppService appService = WorkflowServiceFactory.getWorkflowAppService();\n\n String errorMsg=\"提交失败,请刷新页面后重新提交!\";\n\n String claimrole = StringUtil.safeToString(map.get(\"claimRole\"), \"\");\n String renlingremark = StringUtil.safeToString(map.get(\"renlingremark\"), \"\");\n\n int productid=NumberTool.safeToInteger(map.get(\"productid\"), -1);\n int wfExampleOwnerId = NumberTool.safeToInteger(map.get(\"exampleownerid\"), 0);\n String dealType= StringUtil.safeToString(map.get(\"dealType\"), \"\");\n String approveopinion= StringUtil.safeToString(map.get(\"approveopinion\"), \"\");\n int typnum=0;\n\n IPLMBasicInfo entity=PLMServiceFactory.getPLMBasicInfoService().getBasicInfoById(productid+\"\");\n if(entity==null) {\n return errorMsg;\n }\n\n if(!renlingremark.equals(\"\")){\n entity.setClaimRole(NumberTool.safeToInteger(claimrole,0));\n entity.setClaimRemark(renlingremark);\n entity.setClaimUserId(NumberTool.safeToInteger(RequestContext.getCurrentUser().getOrgId(), -1));\n entity.setClaimStatus(2004);\n entity.setClaimTime(new Date());\n PLMServiceFactory.getPLMBasicInfoService().saveInfo(entity);\n }\n //IPLMBasicInfo basicInfo=basicInfoService.getBasicInfoById(entity.getName());\n\n //if(basicInfo==null){\n // return errorMsg;\n //}\n\n if(dealType.equals(\"\")){\n return errorMsg;\n }\n\n Map ownermap = new HashMap();\n Map processMap = new HashMap();\n Map paramap = new HashMap();\n ownermap.put(\"approveopinion\", map.get(\"approveopinion\"));\n\n //判断处理类型\n if(dealType.equals(\"pass\")){//通过\n ownermap.put(\"condition\", WorkflowStepCondition.WF_STEP_PASS.getEnumItemValue());\n ownermap.put(\"approveopinion\", approveopinion);\n typnum=1;\n }else if(dealType.equals(\"abolish\")){//驳回\n ownermap.put(\"condition\", WorkflowStepCondition.WF_STEP_REJECT.getEnumItemValue());\n ownermap.put(\"approveopinion\", \"驳回修改\");\n typnum=2;\n }else if(dealType.equals(\"resubmit\")){//驳回提交\n ownermap.put(\"condition\", WorkflowStepCondition.WF_STEP_SUBMIT.getEnumItemValue());\n ownermap.put(\"approveopinion\", \"提交审批\");\n typnum=3;\n }\n paramap.put(\"dealtype\", typnum);\n IWorkflowExampleStepOwner exampleOwner = appService.loadExampleStepOwner(wfExampleOwnerId);\n //paramap.put(\"productname\", entity.getProductName());\n processMap.put(\"ownermap\", ownermap);\n processMap.put(\"paramap\", paramap);\n processMap.put(\"exampleid\", exampleOwner.getExampleId());\n processMap.put(\"examplestepid\", exampleOwner.getExampleStepId());\n processMap.put(\"exampleownerid\", wfExampleOwnerId);\n WorkflowServiceFactory.getWorkflowSupportService().subProcessStep(processMap);\n\n\n return \"ok\";\n }", "title": "" }, { "docid": "813c16ab5e489efb9442446b20ec1dd4", "score": "0.4877497", "text": "private static void getFine() {\n\t\tnew PayFineUI(new PayFineControl()).run();\t\t\r\n\t}", "title": "" }, { "docid": "3256a25edea6732d2508920f39f19c4d", "score": "0.48654917", "text": "public void startdeleteBourse(\n\n com.action.service.PriceActionServiceImplStub.DeleteBourse deleteBourse2,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"urn:deleteBourse\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n deleteBourse2,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"deleteBourse\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"deleteBourse\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.DeleteBourseResponse.class);\n callback.receiveResultdeleteBourse(\n (com.action.service.PriceActionServiceImplStub.DeleteBourseResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrordeleteBourse(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"deleteBourse\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordeleteBourse(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordeleteBourse(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordeleteBourse(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrordeleteBourse(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrordeleteBourse(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrordeleteBourse(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[1].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "f9bd62163c6f8ee6056bf707d1e6a659", "score": "0.48596466", "text": "public String umbVerification(String planType, String category) {\n\n\t\tUMBLoginLogoutFuncs UMBLogin = new UMBLoginLogoutFuncs(driver);\n\t\tUMBUSSDFuncs ussdFuncs = new UMBUSSDFuncs(driver);\n\t\tString responseMessage = null;\n\t\tString\tfinalBalance = null;\n\t\ttry {\n\n\n\t\t\tif(planType.equalsIgnoreCase(\"PREPAID\")) \n\t\t\t{\n\t\t\t\t/*FOR ALL PREPAID OPERATIONS*/\n\t\t\t\tApplicationUtil.getUMBDetails(planType, \"BalanceCheck\");\n\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\tlogger.info(responseMessage); \n\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\tUMBLogin.logoutUMB();\n\t\t\t}\t\t\n\t\t\tif(category.equalsIgnoreCase(\"PLAN\")) {\n\t\t\t\tif(planType.equalsIgnoreCase(\"PREPAID\")) {\n\t\t\t\t\tApplicationUtil.getUMBDetails(planType, \"RatePlan Check\");\n\t\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\t\tlogger.info(responseMessage); \n\t\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\t\tUMBLogin.logoutUMB();\n\t\t\t\t}\n\t\t\t\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\"PLAN_NAME\") + \" %BalCheck\");\n\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\tlogger.info(responseMessage); \n\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\tUMBLogin.logoutUMB();\n\n\t\t\t}else if(category.equalsIgnoreCase(\"BUNDLE\"))\t{\n\t\t\t\tif(planType.equalsIgnoreCase(\"PREPAID\")) {\n\t\t\t\t\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\"BUNDLE_NAME\") + \" BalCheck\");\n\t\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\t\tresponseMessage = MainUtil.editUMBActualMessage(responseMessage, \"BalCheck\");\n\t\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\t\tlogger.info(responseMessage); \n\t\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\t\tussdFuncs.ResetUMBScreen();\n\n\t\t\t\t\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\"BUNDLE_NAME\") + \" GlobalBalCheck\");\n\t\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\t\tresponseMessage = MainUtil.editUMBActualMessage(responseMessage, \"GlobalBalCheck\");\n\t\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\t\tlogger.info(responseMessage); \n\t\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \t\n\t\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\t\tUMBLogin.logoutUMB();\n\t\t\t\t} else {\n\t\t\t\t\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\"BUNDLE_NAME\") + \" BalCheck\");\n\t\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\t\tlogger.info(responseMessage); \n\t\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\t\tUMBLogin.logoutUMB();\n\t\t\t\t}\n\n\n\t\t\t}else if(category.equalsIgnoreCase(\"CREDITTRANSFER\"))\t{\n\t\t\t\tApplicationUtil.getUMBDetails(planType, MainUtil.dictionary.get(\"CATEGORY\") + \" BalCheck\");\n\t\t\t\tUMBLogin.loginUMB();\n\t\t\t\tresponseMessage = ussdFuncs.DialForPurchase();\n\t\t\t\tMainUtil.compareInString(responseMessage,MainUtil.dictionary.get(\"USSD_MESSAGE\"), \"Verify the USSD response message\", driver);\n\t\t\t\tlogger.info(responseMessage); \n\t\t\t\tlogger.info(MainUtil.dictionary.get(\"USSD_MESSAGE\")); \n\t\t\t\tussdFuncs.ResetUMBScreen();\n\t\t\t\tUMBLogin.logoutUMB();\n\n\t\t\t}\n\n\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlogger.error(\"Exception occured while verifying UMB :\" + e);\n\t\t}\n\n\t\treturn finalBalance;\n\t}", "title": "" }, { "docid": "3d9a67f8f62e296ae665900ba26af501", "score": "0.48552418", "text": "public void startgetBourses(\n\n com.action.service.PriceActionServiceImplStub.GetBourses getBourses10,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"urn:getBourses\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getBourses10,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourses\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getBourses\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetBoursesResponse.class);\n callback.receiveResultgetBourses(\n (com.action.service.PriceActionServiceImplStub.GetBoursesResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetBourses(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getBourses\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourses(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetBourses(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourses(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetBourses(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetBourses(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetBourses(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[5].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[5].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "2c2d5a5c1ac2dc4c1d17d1fb2f135f61", "score": "0.4852722", "text": "public void receiveResultupdate_mygood(\n momo.jaja.Submit_goodsStub.Update_mygoodResponse result\n ) {\n }", "title": "" }, { "docid": "00e6d2187003fe05db0ec9e838049781", "score": "0.4852708", "text": "public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDResponse getStudentDataFromEGN_AdminRD(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRD getStudentDataFromEGN_AdminRD0)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentDataFromEGN_AdminRD\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentDataFromEGN_AdminRD0,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRD\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRD\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRD\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRD\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRD\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3a5f26513e88d73d7f70cc0330549b96", "score": "0.4844589", "text": "public net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDCResponse getStudentDataFromEGN_AdminRDC(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDC getStudentDataFromEGN_AdminRDC8)\r\n \r\n\r\n throws java.rmi.RemoteException\r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n try{\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentDataFromEGN_AdminRDC\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n // create a message context\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentDataFromEGN_AdminRDC8,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRDC\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentDataFromEGN_AdminRDC\"));\r\n \r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // set the message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n //execute the operation client\r\n _operationClient.execute(true);\r\n\r\n \r\n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\r\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\r\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\r\n \r\n \r\n java.lang.Object object = fromOM(\r\n _returnEnv.getBody().getFirstElement() ,\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDCResponse.class,\r\n getEnvelopeNamespaces(_returnEnv));\r\n\r\n \r\n return (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentDataFromEGN_AdminRDCResponse)object;\r\n \r\n }catch(org.apache.axis2.AxisFault f){\r\n\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n if (faultElt!=null){\r\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRDC\"))){\r\n //make the fault by reflection\r\n try{\r\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRDC\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentDataFromEGN_AdminRDC\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[]{messageClass});\r\n m.invoke(ex,new java.lang.Object[]{messageObject});\r\n \r\n\r\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\r\n }catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n }else{\r\n throw f;\r\n }\r\n } finally {\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "030761d2c2a913a3b8fe8a80198a6c4c", "score": "0.48240125", "text": "public void startprocessShipment(\n\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipmentRequest shipmentRequest2,com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.UPSSecurity uPSSecurity3,\n \n\n final com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://onlinetools.ups.com/webservices/ShipBinding/v1.0\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n shipmentRequest2,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipment\")), new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipment\"));\n \n // add the soap_headers only if they are not null\n if (uPSSecurity3!=null){\n \n org.apache.axiom.om.OMElement omElementuPSSecurity3 = toOM(uPSSecurity3, optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\", \"processShipment\")));\n addHeader(omElementuPSSecurity3,env);\n \n }\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipmentResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultprocessShipment(\n (com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipmentResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorprocessShipment(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipment\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipment\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipment\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.ups.www.wsdl.xoltws.ship.v1_0.ShipmentErrorMessage){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorprocessShipment((com.ups.www.wsdl.xoltws.ship.v1_0.ShipmentErrorMessage)ex);\n\t\t\t\t\t\t\t\t\t\t\t return;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipment(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipment(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipment(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipment(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipment(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorprocessShipment(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[0].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "6b11301756d9d63df193eaac424e9f94", "score": "0.4817598", "text": "@Test(priority=29,groups={\"P0\",\"InvoiceNumbserSettingsTest\"},description=\"To verify Edit Frontdesk Payment Receipt Number page with numeric in Prefix field.\")\n\tpublic void HMS9187() throws Throwable\n\t{\n\t\ttry\n\t\t{\n\t\tAdminHome AH=AL.adminlogin(\"12903\",\"barkha.kapoor52@gmail.com\",\"86bc0493\");\n\n\t\t//AdminHome AH=AL.adminlogin_12485();\n\t\tInvoiceNumberSettingsLP INS=AH.fn_NavigateInvNumSettingPage();\n\t\tString a=GenericClass.GetCurrentWindowID();\n\t\tsTestCaseName=Thread.currentThread().getStackTrace()[1].getMethodName();\n\n\t ExcelUtil.setExcelFile(Constant.Path_TestData1+Constant.File_InvoiceNumberSettings,Constant.Sheet_InvoiceNumberSettings);\n\n\t\tiTestCaseRow = ExcelUtil.getRowContains(sTestCaseName,Constant.Col_TestCaseName);\n\t\t\t\t\n\t\tEditPRInvoiceNumber EPRI= INS.fn_clkPREditLnk();\n\t\tGenericClass.windowHandle(a);\n\t\tEPRI.fn_editFDPrefix(iTestCaseRow);\n\t\tGenericClass.Switch_Parent_Window(a);\n\t\tINS.fn_verifyEditedPRPrefix(iTestCaseRow);\n\t\tRoomsLandingPage RLP=AH.fn_NavigateRooms();\n\t\tAddRoomsPage ARP= RLP.ClickOnAddRoomLink();\n\t\tString rtype= ARP.fn_addRoomName(1);\t\n\t\tConfirmLoginPage CLP= AH.ClickOnFrontdeskLink();\n \t\tGenericClass.fn_SwitchToWindow_Title(\"Frontdesk\");\n \t\tCashCounterPage CCP=CLP.fn_ClickCountinueWithTrail_BT();\n \t\tFrontdeskLandingPage FLP=CCP.fn_ClickContinueButton();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_ClickCancelButton();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_clickCurrentLnk();\n \t\tThread.sleep(4000);\n \t\tFLP.fn_createFDReserv(rtype,\"3\",\"3\");\n \t\tFLP.fn_fillAddQuickResrvDetails(iTestCaseRow);\n \t String ID=FLP.fn_getReservId();\n \t FLP.fn_clkClose();\n \t\t/*GenericClass.driver.navigate().refresh();\n \t Thread.sleep(12000);\n \t FLP.fn_AutoNightAudit1();*/\n \t Thread.sleep(10000);\n \t ReservationSearchResultLandingPage RSLP= FLP.fn_SearchReservationID(ID.trim());\n \t ViewDetailsPage VDP= RSLP.fn_ClickOnSearchedRecord();\n\t\tAccountStatementLandingPage ASP=VDP.fn_ClickOnPayment_BT();\n\t\tASP.fn_clkPayNow(iTestCaseRow);\n\t\tASP.fn_verifyPREditedInvoice(iTestCaseRow);\n\t\t\n\t\tSystem.out.println(\"HMS-9187 Executed\");\n\t\t\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t}\n\t\tcatch(Throwable e)\n\t\t{ GenericClass.getscreenshot(Thread.currentThread().getStackTrace()[1].getMethodName());\n\t\tExcelUtil.CloseAllExcelReferences();\n\t\t\tthrow e;\n\t\t}\n\t}", "title": "" }, { "docid": "ee9bfe9e4ea50740a6568404b86b9052", "score": "0.4817421", "text": "public void startgetAction(\n\n com.action.service.PriceActionServiceImplStub.GetAction getAction6,\n\n final com.action.service.PriceActionServiceImplCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions().setAction(\"urn:getAction\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getAction6,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getAction\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getAction\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.action.service.PriceActionServiceImplStub.GetActionResponse.class);\n callback.receiveResultgetAction(\n (com.action.service.PriceActionServiceImplStub.GetActionResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetAction(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getAction\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAction(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetAction(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAction(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetAction(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetAction(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetAction(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[3].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "7609c1039bb0f24d174a5c86e1a1ad6e", "score": "0.4802256", "text": "public void calculateShipFee(Order order) {\n }", "title": "" }, { "docid": "8db486f38f6ce26a22782370c82ec014", "score": "0.4798453", "text": "public com.action.service.PriceActionServiceImplStub.GetActionHistoryResponse getActionHistory(\n\n com.action.service.PriceActionServiceImplStub.GetActionHistory getActionHistory20)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[10].getName());\n _operationClient.getOptions().setAction(\"urn:getActionHistory\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getActionHistory20,\n optimizeContent(new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionHistory\")),\n new javax.xml.namespace.QName(\"http://service.action.com\", \"getActionHistory\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.action.service.PriceActionServiceImplStub.GetActionHistoryResponse.class);\n\n \n return (com.action.service.PriceActionServiceImplStub.GetActionHistoryResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionHistory\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionHistory\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getActionHistory\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "title": "" }, { "docid": "1ecd52d28fe0857fcd2f28f4518223cb", "score": "0.4794109", "text": "public void setPaymentRule (String PaymentRule);", "title": "" }, { "docid": "0f41d27d80de52661f874270ac9ed7da", "score": "0.47931358", "text": "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.action.service.PriceActionServiceImplStub.UpdateBourse param, boolean optimizeContent, javax.xml.namespace.QName elementQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.action.service.PriceActionServiceImplStub.UpdateBourse.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "title": "" }, { "docid": "2366a21d92d5516edb8ec35161f62fa3", "score": "0.4792253", "text": "public computingservice.client.ComputingServiceServiceStub.InvokeResponse invoke(\n\n computingservice.client.ComputingServiceServiceStub.InvokeRequest invokeRequest)\n \n\n throws java.rmi.RemoteException\n \n \n ,computingservice.client.ComputingServiceException{\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://computingservice.component/ComputingService/invokeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n invokeRequest,\n optimizeContent(new javax.xml.namespace.QName(\"http://computingservice.component/\",\n \"invoke\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n computingservice.client.ComputingServiceServiceStub.InvokeResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (computingservice.client.ComputingServiceServiceStub.InvokeResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n if (ex instanceof computingservice.client.ComputingServiceException){\n throw (computingservice.client.ComputingServiceException)ex;\n }\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "title": "" }, { "docid": "68a93b3c7cebb8bdfd46ec4a492e506e", "score": "0.47896782", "text": "public void startprocessShipConfirm(\n\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipConfirmRequest shipConfirmRequest8,com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.UPSSecurity uPSSecurity9,\n \n\n final com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\n _operationClient.getOptions().setAction(\"http://onlinetools.ups.com/webservices/ShipBinding/v1.0\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n shipConfirmRequest8,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipConfirm\")), new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\",\n \"processShipConfirm\"));\n \n // add the soap_headers only if they are not null\n if (uPSSecurity9!=null){\n \n org.apache.axiom.om.OMElement omElementuPSSecurity9 = toOM(uPSSecurity9, optimizeContent(new javax.xml.namespace.QName(\"http://www.ups.com/WSDL/XOLTWS/Ship/v1.0\", \"processShipConfirm\")));\n addHeader(omElementuPSSecurity9,env);\n \n }\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipConfirmResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultprocessShipConfirm(\n (com.ups.www.wsdl.xoltws.ship.v1_0.ShipServiceStub.ShipConfirmResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorprocessShipConfirm(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipConfirm\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipConfirm\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"ProcessShipConfirm\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (ex instanceof com.ups.www.wsdl.xoltws.ship.v1_0.ShipConfirmErrorMessage){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcallback.receiveErrorprocessShipConfirm((com.ups.www.wsdl.xoltws.ship.v1_0.ShipConfirmErrorMessage)ex);\n\t\t\t\t\t\t\t\t\t\t\t return;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipConfirm(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorprocessShipConfirm(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipConfirm(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipConfirm(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorprocessShipConfirm(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorprocessShipConfirm(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[2].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[2].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "title": "" }, { "docid": "606c2c6d887f4ea162819daec5f005fd", "score": "0.47879174", "text": "public void startgetStudentPEDataFromLIN_AdminRHE(\r\n\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHE getStudentPEDataFromLIN_AdminRHE10,\r\n\r\n final net.is_bg.mon.wsclient.stub.WsnacidCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException{\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\r\n _operationClient.getOptions().setAction(\"http://www2.mon.bg/nacid/getStudentPEDataFromLIN_AdminRHE\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env=null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getStudentPEDataFromLIN_AdminRHE10,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromLIN_AdminRHE\")), new javax.xml.namespace.QName(\"http://www2.mon.bg/nacid\",\r\n \"getStudentPEDataFromLIN_AdminRHE\"));\r\n \r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n \r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n \r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultgetStudentPEDataFromLIN_AdminRHE(\r\n (net.is_bg.mon.wsclient.stub.WsnacidStub.GetStudentPEDataFromLIN_AdminRHEResponse)object);\r\n \r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\r\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\r\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"))){\r\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\r\n\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getStudentPEDataFromLIN_AdminRHE\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n }\r\n\t\t\t\t\t\t\t\t\t } else {\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(f);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(error);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorgetStudentPEDataFromLIN_AdminRHE(axisFault);\r\n }\r\n }\r\n });\r\n \r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if ( _operations[5].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[5].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n\r\n }", "title": "" }, { "docid": "a816d3c515924fe56c8803f9cd421c1e", "score": "0.4782958", "text": "@Test\n public void calculateFine() {\n OleCalendarServiceImpl oleCalendarService = new OleCalendarServiceImpl();\n Mockito.when(mockParameterResolverInstance.getParameter(OLEConstants\n .APPL_ID_OLE, OLEConstants.DLVR_NMSPC, OLEConstants.DLVR_CMPNT, OLEConstants.FINE_FLAG)).thenReturn(CALENDAR_FLAG);\n HashMap cg = new HashMap();\n cg.put(OLEConstants.CALENDER_ID, \"100\");\n HashMap calendarGroup = new HashMap();\n calendarGroup.put(OLEConstants.CALENDER_ID, \"100\");\n oleCalendarService.setParameterValueResolver(mockParameterResolverInstance);\n oleCalendarService.setBusinessObjectService(businessObjectService);\n Mockito.when(businessObjectService.findMatching(OleCalendar.class, cg)).thenReturn(getOleCalendarsWithHolidaysEachExceptionDaysAndPeriodsTrue());\n Mockito.when(businessObjectService.findMatching(OleCalendarGroup.class, calendarGroup)).thenReturn(getCalendarGroup());\n Float fine = oleCalendarService.calculateFine(CIR_ID, getTimeStamp(DUE_DATE), getTimeStamp(CURR_DATE), FINE_AMOUNT);\n assertNotNull(fine);\n assertEquals(320.0f,fine,0.0f);\n\n }", "title": "" }, { "docid": "ed93802b0add7098c96e693ea8985acd", "score": "0.47787684", "text": "@Test\n public void changeLeadCertificateTest() {\n\n// lead = leadService.getByNickName(\"red\");\n// assertEquals(\"None\", lead.getLeadCertificates());\n }", "title": "" }, { "docid": "47dcbe4ecbdf543335a2b0b1aea7f1ed", "score": "0.47632015", "text": "@SuppressWarnings(\"deprecation\")\n\t@Test\n public void testUpdate(){\n \tFestivity newFestivity = new Festivity();\n \tnewFestivity.setId(2L);\n \tnewFestivity.setName(\"testNameService\");\n \tnewFestivity.setPlace(\"testPlaceService\");\n \tnewFestivity.setStartDate(new Date(\"02/16/2016\"));\n \tnewFestivity.setEndDate(new Date(\"02/17/2016\"));\n \tfestivityController.updateFestivity(newFestivity);\n \t@SuppressWarnings(\"unchecked\")\n\t\tResponseEntity<FestivityDateStringPojo> responseEntity = \n\t\t\t(ResponseEntity<FestivityDateStringPojo>)festivityController.getFestivityByid(2L);\n \tassertEquals(\"testNameService\", responseEntity.getBody().getName());\n }", "title": "" }, { "docid": "e9c94b2a6d04c76aa2d3a2cc478b0c76", "score": "0.47612664", "text": "@Test\n public static void kycOption2() throws Exception {\n try\n\n {\n httpClient = HttpClients.createDefault();\n HttpGet getRequest = new HttpGet(\"http://staging-b2b.emasdigi.com/api/vendor/v1/option/kyc2\");\n getRequest.addHeader(\"content-type\", \"application/json\");\n getRequest.addHeader(\"api-key\", \"GaPWnbVwMKI5j7s7fEQtaF5S2Voe5Ix\");\n getRequest.addHeader(\"User-Agent\", \"vendor-id:7\");\n JSONObject object = new JSONObject();\n String message;\n message = object.toString();\n //getRequest.setEntity(new StringEntity(message, \"UTF8\"));\n HttpResponse response = httpClient.execute(getRequest);\n System.out.println(response);\n int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != 200) {\n throw new RuntimeException(\"Failed with HTTP error code : \" + statusCode);\n }\n System.out.println(statusCode);\n BufferedReader br = new BufferedReader(new InputStreamReader((response.getEntity().getContent())));\n String output;\n\n } finally\n\n {\n httpClient.close();\n //Important: Close the connect\n // httpClient.getConnectionManager().shutdown();\n }\n }", "title": "" }, { "docid": "9852f6b835326b081edb1de84349afd1", "score": "0.47585914", "text": "UdrRule update(UdrRule rule, User user);", "title": "" } ]
d128e9435452e9ec08c6c62939ec3073
If specified, the tap filter will be configured via a static configuration that cannot be changed. .envoy.config.tap.v3.TapConfig static_config = 2;
[ { "docid": "cd315026ba2e5fffa80e8ed9956454ec", "score": "0.64902323", "text": "@java.lang.Override\n public io.envoyproxy.envoy.config.tap.v3.TapConfig getStaticConfig() {\n if (staticConfigBuilder_ == null) {\n if (configTypeCase_ == 2) {\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\n }\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n } else {\n if (configTypeCase_ == 2) {\n return staticConfigBuilder_.getMessage();\n }\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n }\n }", "title": "" } ]
[ { "docid": "4a954e2dbb2c1e49af5513b0b9d61374", "score": "0.6975074", "text": "@java.lang.Override\n public io.envoyproxy.envoy.config.tap.v3.TapConfig getStaticConfig() {\n if (configTypeCase_ == 2) {\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\n }\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n }", "title": "" }, { "docid": "ada9e8175d14e4458c7380fbbfb42de5", "score": "0.6564773", "text": "@java.lang.Override\n public io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder getStaticConfigOrBuilder() {\n if (configTypeCase_ == 2) {\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\n }\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n }", "title": "" }, { "docid": "5b7796ac293d352443ca6e352ed72daf", "score": "0.6552201", "text": "public Builder setStaticConfig(io.envoyproxy.envoy.config.tap.v3.TapConfig value) {\n if (staticConfigBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n configType_ = value;\n onChanged();\n } else {\n staticConfigBuilder_.setMessage(value);\n }\n configTypeCase_ = 2;\n return this;\n }", "title": "" }, { "docid": "e894aec054afe2960e2c139d01af0221", "score": "0.6157971", "text": "@java.lang.Override\n public io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder getStaticConfigOrBuilder() {\n if ((configTypeCase_ == 2) && (staticConfigBuilder_ != null)) {\n return staticConfigBuilder_.getMessageOrBuilder();\n } else {\n if (configTypeCase_ == 2) {\n return (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_;\n }\n return io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "93ec325bce20fec0ed72f8f0cf84fffd", "score": "0.60060996", "text": "public io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder getStaticConfigBuilder() {\n return getStaticConfigFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "df934459a4670c85a8bbbcbcb8f20478", "score": "0.5671537", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n io.envoyproxy.envoy.config.tap.v3.TapConfig, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder, io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder> \n getStaticConfigFieldBuilder() {\n if (staticConfigBuilder_ == null) {\n if (!(configTypeCase_ == 2)) {\n configType_ = io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance();\n }\n staticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.envoyproxy.envoy.config.tap.v3.TapConfig, io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder, io.envoyproxy.envoy.config.tap.v3.TapConfigOrBuilder>(\n (io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_,\n getParentForChildren(),\n isClean());\n configType_ = null;\n }\n configTypeCase_ = 2;\n onChanged();;\n return staticConfigBuilder_;\n }", "title": "" }, { "docid": "e17017dedb19fdc450642f89fe1d7e22", "score": "0.5636176", "text": "public Builder mergeStaticConfig(io.envoyproxy.envoy.config.tap.v3.TapConfig value) {\n if (staticConfigBuilder_ == null) {\n if (configTypeCase_ == 2 &&\n configType_ != io.envoyproxy.envoy.config.tap.v3.TapConfig.getDefaultInstance()) {\n configType_ = io.envoyproxy.envoy.config.tap.v3.TapConfig.newBuilder((io.envoyproxy.envoy.config.tap.v3.TapConfig) configType_)\n .mergeFrom(value).buildPartial();\n } else {\n configType_ = value;\n }\n onChanged();\n } else {\n if (configTypeCase_ == 2) {\n staticConfigBuilder_.mergeFrom(value);\n }\n staticConfigBuilder_.setMessage(value);\n }\n configTypeCase_ = 2;\n return this;\n }", "title": "" }, { "docid": "049f78c77683a41281f166e89cc36729", "score": "0.5295536", "text": "@java.lang.Override\n public boolean hasStaticConfig() {\n return configTypeCase_ == 2;\n }", "title": "" }, { "docid": "ef5a0ef3421cf759fee288b2051ab0e3", "score": "0.528688", "text": "@java.lang.Override\n public boolean hasStaticConfig() {\n return configTypeCase_ == 2;\n }", "title": "" }, { "docid": "b517a549ea8d3587e279feef4a69f34e", "score": "0.51459306", "text": "public Builder setStaticConfig(\n io.envoyproxy.envoy.config.tap.v3.TapConfig.Builder builderForValue) {\n if (staticConfigBuilder_ == null) {\n configType_ = builderForValue.build();\n onChanged();\n } else {\n staticConfigBuilder_.setMessage(builderForValue.build());\n }\n configTypeCase_ = 2;\n return this;\n }", "title": "" }, { "docid": "1d4cd2e252d337f3f120c6a6b2925e9e", "score": "0.48185945", "text": "private void _configureInstrumentation(InstrumentationConfig config){\n\t\tallFilters = new CompositeFilter(this,_sCurrentMmiFacade);\r\n\r\n\t\t// for each filter:\r\n\t\t// - create filter\r\n\t\t// - add to the composite filter\r\n\t\t// - \r\n\r\n\t\t/// interaction filters\r\n\r\n\t\tif (config.appTiming){\r\n\t\t\tappTimingFilter = new AppTimingFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(appTimingFilter);\r\n\t\t\tLog.i(TAG,\"Enabling appTimingFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.keyInput){\r\n\t\t\tkeyInputFilter = new KeyInputFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(keyInputFilter);\r\n\t\t\tLog.i(TAG,\"Enabling keyInputFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.navigationInput){\r\n\t\t\tnavigationInputFilter = new NavigationInputFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(navigationInputFilter);\r\n\t\t\tLog.i(TAG,\"Enabling navigationInputFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.motionInput){\r\n\t\t\tmotionInputFilter = new MotionInputFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(motionInputFilter);\r\n\t\t\tLog.i(TAG,\"Enabling motionInputFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.speechInput){\r\n\t\t\tspeechInputFilter = new SpeechInputFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(speechInputFilter);\r\n\t\t\tLog.i(TAG,\"Enabling speechInputFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.viewChanges){\r\n\t\t\tviewChangesFilter = new ViewChangesFilter(this,_sCurrentMmiFacade);\r\n\t\t\tallFilters.addSubFilter(viewChangesFilter);\r\n\t\t\tLog.i(TAG,\"Enabling viewChangesFilter.\");\r\n\t\t}\r\n\r\n\t\t/// context filters\r\n\t\t\r\n\r\n\t\tif (config.physicalEnvironment){\r\n\t\t\tcontextPhysicalFilter = \r\n\t\t\t\t\tnew ContextPhysicalFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextPhysicalFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextPhysicalFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.user){\r\n\t\t\tcontextUserFilter = \r\n\t\t\t\t\tnew ContextUserFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextUserFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextUserFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.socialContext){\r\n\t\t\tcontextSocialFilter = \r\n\t\t\t\t\tnew ContextSocialFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextSocialFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextSocialFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.locationTime){\r\n\t\t\tcontextLocationTimeFilter = \r\n\t\t\t\t\tnew ContextLocationTimeFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextLocationTimeFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextLocationTimeFilter.\");\r\n\t\t}\r\n\r\n\t\tif (config.device){\r\n\t\t\tcontextDeviceFilter = \r\n\t\t\t\t\tnew ContextDeviceFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextDeviceFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextDeviceFilter.\");\r\n\t\t}\r\n\t\t\r\n\t\tif (config.communication){\r\n\t\t\tcontextCommunicationFilter = \r\n\t\t\t\t\tnew ContextCommunicationFilter(this,_sCurrentMmiFacade,config);\r\n\t\t\tallFilters.addSubFilter(contextCommunicationFilter);\r\n\t\t\tLog.i(TAG,\"Enabling contextCommunicationFilter.\");\r\n\t\t}\r\n\r\n\r\n\t\t/// create child filter\r\n\t\t\r\n\t\tnewChildFilter = new NewChildFilter(this,_sCurrentMmiFacade,allFilters);\r\n\t\t//also add this filter to the composite one\r\n\t\tallFilters.addSubFilter(newChildFilter);\r\n\t\tLog.i(TAG,\"Enabling newChildFilter.\");\r\n\t}", "title": "" }, { "docid": "6606efe737f3557bb606da9866cfbd22", "score": "0.47722486", "text": "public void init(FilterConfig config);", "title": "" }, { "docid": "b08addc83a24772a386ac0e37d3ec222", "score": "0.4760074", "text": "@Override\n public void init(FilterConfig config) {\n this.filterConfig = config;\n }", "title": "" }, { "docid": "9f6a023f0205c23d40b3c03a8ed9d43c", "score": "0.47125402", "text": "@Override\n public void init(FilterConfig inFilterConfig) {\n }", "title": "" }, { "docid": "cd2a2cc8f5f01e3205ab2c3dc49445b4", "score": "0.46928838", "text": "public void init(FilterConfig filterConfig) {\n System.out.println(\"BlockingFilter init!\");\n }", "title": "" }, { "docid": "2366d5b93177162fcd36337a6f7bba7b", "score": "0.46487892", "text": "public void init(FilterConfig filterConfig) {\n\n }", "title": "" }, { "docid": "e0da59ebd7fd08d29cd99972d3b470b8", "score": "0.46230465", "text": "@Test\n \tpublic void staticInit1Test() {\n \t\tInfoflow infoflow = initInfoflow();\n \t\tList<String> epoints = new ArrayList<String>();\n \t\tepoints.add(\"<soot.jimple.infoflow.test.StaticTestCode: void staticInitTest()>\");\n \t\tinfoflow.computeInfoflow(path, epoints, sources, sinks);\n \t\tcheckInfoflow(infoflow, 1);\n \t}", "title": "" }, { "docid": "861faba3a5ae2c4064734e1bb8e182e8", "score": "0.4601101", "text": "public void init(FilterConfig filterConfig) { \r\n }", "title": "" }, { "docid": "ff1dea4afbd5a0b9e978a58b36531a27", "score": "0.45999265", "text": "public void setStaticConfiguration(ReferenceLineStaticDataConfiguration staticConfiguration) {\n this.staticConfiguration = staticConfiguration;\n }", "title": "" }, { "docid": "d4a635d6d70b1fd677e105cf8ba8eb1d", "score": "0.45866257", "text": "void updateStatic(Attribute attribute,Object substance,FilterSpec appliedFilter);", "title": "" }, { "docid": "90813c29a80297da5151be6064d6547e", "score": "0.4563794", "text": "public void setStatic() {\n this.changeToStatic = true;\n }", "title": "" }, { "docid": "20c4fb4430869f7f97571c6043cd0dbb", "score": "0.4527976", "text": "@Override\n public void init(FilterConfig filterConfig) {\n\n }", "title": "" }, { "docid": "eb7e6ea1429e076cac9be21d059ac606", "score": "0.45193842", "text": "@Override\n public void init(FilterConfig config) throws ServletException {\n SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());\n this.config = config;\n config.getServletContext().log(\"Initializing MetricsFilter\");\n }", "title": "" }, { "docid": "d4117de7d3b9a03324e521065da8c73b", "score": "0.44845518", "text": "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n checkIfNullProperty(Config.CADI_KEYFILE, convertSpringToPath(keyFile));\n checkIfNullProperty(Config.CADI_LOGLEVEL, cadiLoglevel);\n checkIfNullProperty(Config.CADI_LATITUDE, cadiLatitude);\n checkIfNullProperty(Config.CADI_LONGITUDE, cadiLongitude);\n\n checkIfNullProperty(Config.AAF_LOCATE_URL, aafLocateUrl);\n checkIfNullProperty(Config.AAF_OAUTH2_TOKEN_URL, oauthTokenUrl);\n checkIfNullProperty(Config.AAF_OAUTH2_INTROSPECT_URL, oauthIntrospectUrl);\n\n checkIfNullProperty(Config.AAF_ENV, aafEnv);\n checkIfNullProperty(Config.AAF_URL, aafUrl);\n checkIfNullProperty(Config.CADI_X509_ISSUERS, cadiX509Issuers);\n checkIfNullProperty(Config.CADI_KEYSTORE, convertSpringToPath(keyStore));\n checkIfNullProperty(Config.CADI_TRUSTSTORE, convertSpringToPath(trustStore));\n checkIfNullProperty(Config.CADI_ALIAS, alias);\n checkIfNullProperty(Config.CADI_KEYSTORE_PASSWORD, keyStorePass);\n checkIfNullProperty(Config.CADI_TRUSTSTORE_PASSWORD, trustStorePass);\n\n super.init(filterConfig);\n }", "title": "" }, { "docid": "d2d73f20fdea59ddcbf63fa94757185b", "score": "0.44766393", "text": "@Override\n public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n\n }", "title": "" }, { "docid": "8cb7a105883220607914ba6366053f32", "score": "0.4467966", "text": "@Override\n\tpublic void init(FilterConfig arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "03a4cb99685554dd52b89370ac6e147f", "score": "0.4459061", "text": "@Override\n\tpublic void init(FilterConfig filterConfigure) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "e7f8f5930a4a39146893157a45cdb9ed", "score": "0.4379208", "text": "@Override\n public void sinkConfInit( FlowProcess<? extends Configuration> flowProcess, Tap<Configuration, RecordReader, OutputCollector> tap, Configuration conf )\n {\n if( flowProcess.getProperty( \"default\" ) != null )\n throw new RuntimeException( \"default should be null\" );\n\n super.sinkConfInit( flowProcess, tap, conf );\n }", "title": "" }, { "docid": "7d0a11ac589e773a0fa12e765925fb13", "score": "0.43708277", "text": "public Builder setUseStaticBalancedLabelSampler(boolean value) {\n bitField1_ |= 0x00000001;\n useStaticBalancedLabelSampler_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e365708631f0c0ba1f53ac643d3c1f0e", "score": "0.43622118", "text": "@Override\r\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tlogger.debug(\"\");\r\n\t\tsetServletContext(config.getServletContext());\r\n\t}", "title": "" }, { "docid": "a4c11c5f47a6acd0411e33f6f6deb0ff", "score": "0.43608412", "text": "@Override\n\tpublic void init(FilterConfig conf) throws ServletException {\n\t\t\n\t}", "title": "" }, { "docid": "0e9c26b7e8e3679b6e3ea0e656a58718", "score": "0.4357095", "text": "public void init(FilterConfig filterConfig) throws ServletException {\n\t\tString servletPatternParam = filterConfig.getInitParameter(\"servlet-pattern\");\n\t\tif(null != servletPatternParam) {\n\t\t\tservletPattern = Pattern.compile(servletPatternParam);\n\t\t}\n\t}", "title": "" }, { "docid": "56d5fe47874ddbb41c89a2e79f86821f", "score": "0.4352695", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n this.filterConfig = filterConfig;\n\t}", "title": "" }, { "docid": "bebf29965893159696e0a89268cb26fb", "score": "0.43472782", "text": "@BeforeClass\n public static void setup() {\n final List<Filter> filters = new ArrayList<>();\n filters.add((requestSpec, responseSpec, ctx) -> {\n final Response next = ctx.next(requestSpec, responseSpec);\n LOGGER.info(\"{}: {} -> {}\", requestSpec.getMethod(), requestSpec.getURI(), next.getStatusCode());\n return next;\n });\n RestAssured.filters(filters);\n }", "title": "" }, { "docid": "b97858ec8ad062a273597cfd681d1222", "score": "0.43394965", "text": "public HandlerSetup filterConfig() {if(handler != null) handler.setLevel(Level.CONFIG); return this;}", "title": "" }, { "docid": "b36ce6e50f6ef7076b9db602ed384eff", "score": "0.43303326", "text": "public void init(FilterConfig config) throws ServletException {\n }", "title": "" }, { "docid": "f3c7d13f94e99c1b42a6599395d6c768", "score": "0.43247178", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\tconfig = arg0;\n\t}", "title": "" }, { "docid": "b1bd570a58273113ba5c78323cb6bfca", "score": "0.43237433", "text": "public static void configure( Config config ) {\n targetCf = config.getTargetCf();\n growthRate = config.getCacheServerGrowthRate();\n }", "title": "" }, { "docid": "5a063ed9ecf0abb16c37781f8463fb2d", "score": "0.43205085", "text": "@Override\r\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tredirectURL = filterConfig.getInitParameter(\"redirectURL\");\r\n\t\tsessionKey = filterConfig.getInitParameter(\"checkSessionKey\");\r\n\t\tString notCheckURLListStr = filterConfig.getInitParameter(\"notCheckURLList\");\r\n\r\n\t\tif (notCheckURLListStr != null) {\r\n\t\t\tStringTokenizer st = new StringTokenizer(notCheckURLListStr, \";\");\r\n\t\t\tnotCheckURLList.clear();\r\n\t\t\twhile (st.hasMoreTokens()) {\r\n\t\t\t\tnotCheckURLList.add(st.nextToken());\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.definedInit(filterConfig);\r\n\t}", "title": "" }, { "docid": "dd2ec415d17f60b12c95da4b82a0d3d0", "score": "0.43162227", "text": "@java.lang.Override\n public boolean hasUseStaticBalancedLabelSampler() {\n return ((bitField1_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "7e56099e37d9fa74f463b65231d55ecc", "score": "0.4314457", "text": "public void init(FilterConfig filterConfig) { \n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n if (debug) { \n log(\"ApplicationConfigurationFilter: Initializing filter\");\n }\n }\n }", "title": "" }, { "docid": "6bc950d9334ea0481b237045f768eb62", "score": "0.43128368", "text": "@java.lang.Override\n public boolean hasUseStaticBalancedLabelSampler() {\n return ((bitField1_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "9a061dbed21bd7aa9a5286c50ea360fc", "score": "0.43080378", "text": "@Override\n public void sourceConfInit( FlowProcess<? extends Configuration> flowProcess, Tap<Configuration, RecordReader, OutputCollector> tap, Configuration conf )\n {\n if( flowProcess.getProperty( \"default\" ) != null )\n throw new RuntimeException( \"default should be null\" );\n\n super.sourceConfInit( flowProcess, tap, conf );\n }", "title": "" }, { "docid": "d093bee7b3796395669645b25b80ef10", "score": "0.4297695", "text": "public void setFilterConfig(FilterConfig filterConfig) {\r\n this.filterConfig = filterConfig;\r\n }", "title": "" }, { "docid": "d093bee7b3796395669645b25b80ef10", "score": "0.4297695", "text": "public void setFilterConfig(FilterConfig filterConfig) {\r\n this.filterConfig = filterConfig;\r\n }", "title": "" }, { "docid": "6721dc1fb11fc4c06aee9d85aa6390d6", "score": "0.4295268", "text": "AnyReceiveEventConfiguration createAnyReceiveEventConfiguration();", "title": "" }, { "docid": "6247851490c05b4141c3b583acef22ba", "score": "0.42928934", "text": "public void setTraffic(String traffic) {\n this.traffic = traffic;\n }", "title": "" }, { "docid": "a2d3d358545cba53e6517a4f9f911bb2", "score": "0.4290321", "text": "public Builder clearStaticConfig() {\n if (staticConfigBuilder_ == null) {\n if (configTypeCase_ == 2) {\n configTypeCase_ = 0;\n configType_ = null;\n onChanged();\n }\n } else {\n if (configTypeCase_ == 2) {\n configTypeCase_ = 0;\n configType_ = null;\n }\n staticConfigBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "f299220292a0d6a7cbccacbaa8f3e86f", "score": "0.42894143", "text": "public void init(FilterConfig config) throws ServletException {\n\n }", "title": "" }, { "docid": "3c1816e263951b9d917e935a0998eb8f", "score": "0.42762437", "text": "@Override\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\tSystem.out.println(\"in first filter init()\");\n\t}", "title": "" }, { "docid": "0e9126c76ee5044962b133a846c4c31a", "score": "0.4273899", "text": "public void init(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n if (filterConfig != null) {\n if (debug) {\n log(\"GeoShield: Initializing filter\");\n }\n }\n }", "title": "" }, { "docid": "32cbc584b1048761189dd77a6b92e9ce", "score": "0.42622882", "text": "public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "title": "" }, { "docid": "32cbc584b1048761189dd77a6b92e9ce", "score": "0.42622882", "text": "public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "title": "" }, { "docid": "32cbc584b1048761189dd77a6b92e9ce", "score": "0.42622882", "text": "public void setFilterConfig(FilterConfig filterConfig) {\n this.filterConfig = filterConfig;\n }", "title": "" }, { "docid": "f17c03db3016d6cf7fac99e78c84c15b", "score": "0.42598516", "text": "@Ignore\n public void testConfigRequestFilter() throws IOException {\n ClientConfig config = new ClientConfig();\n config.register(RequestFilter.class);\n Client client = ClientBuilder.newClient(config);\n WebTarget target = client.target(getBaseURI());\n Response response = target.path(\"restaurant\").request()\n .accept(MediaType.APPLICATION_JSON).get(Response.class);\n if (response.getStatus() != 200) {\n fail(\"status problem for request \" + response.getStatus());\n }\n\n InputStream jsonStringResponse = response.readEntity(InputStream.class);\n \n ObjectMapper mapper = new ObjectMapper();\n JsonNode restaurants = mapper.readTree(jsonStringResponse);\n \n //restaurants.\n LOG.debug(\"restaurants: \"+restaurants.toString()) ;\n assertTrue(restaurants.size() >5);\n assertTrue(RequestFilter.gotHit);\n RequestFilter.gotHit = false;\n\n }", "title": "" }, { "docid": "3f8172679ecf98ace6bf4df2c848e63f", "score": "0.42383376", "text": "public void setStaticWeaveInfo(StaticWeaveInfo staticWeaveInfo) {\n\t\tthis.staticWeaveInfo = staticWeaveInfo;\n\t}", "title": "" }, { "docid": "f836e324a9f171ec7f5113fada9bf445", "score": "0.42266172", "text": "@Override\n public void init(final FilterConfig filterConfig) throws ServletException {\n log.info(\"Initializing filter :{}\", this);\n }", "title": "" }, { "docid": "4bb6c91eef375f2da6c074ac1a4c73e0", "score": "0.42255715", "text": "public static void registerStaticEventListeners() {\n TeakEvent.addEventListener(event -> {\n if (event.eventType.equals(DeepLinksReadyEvent.Type)) {\n final TeakConfiguration teakConfiguration = TeakConfiguration.get();\n HashMap<String, Object> payload = new HashMap<>();\n payload.put(\"id\", teakConfiguration.appConfiguration.appId);\n payload.put(\"deep_link_routes\", DeepLink.getRouteNamesAndDescriptions());\n\n final String locale = Locale.getDefault().toString();\n payload.put(\"locale\", locale);\n\n Request.submit(\"gocarrot.com\", \"/games/\" + teakConfiguration.appConfiguration.appId + \"/settings.json\", payload, Session.NullSession,\n (responseCode, responseBody) -> {\n try {\n final JSONObject response = new JSONObject((responseBody == null || responseBody.trim().isEmpty()) ? \"{}\" : responseBody);\n\n class ResponseHelper {\n final JSONObject json;\n private ResponseHelper(JSONObject json) {\n this.json = json;\n }\n private String nullInsteadOfEmpty(String input) {\n if (input != null && !input.trim().isEmpty()) {\n return input;\n }\n return null;\n }\n private String strOrNull(String key) {\n return nullInsteadOfEmpty(this.json.isNull(key) ? null : this.json.getString(key));\n }\n private boolean boolOrFalse(String key) {\n return this.json.optBoolean(key, false);\n }\n private JSONObject jsonOrNull(String key) {\n return this.json.has(key) ? this.json.getJSONObject(key) : null;\n }\n }\n final ResponseHelper helper = new ResponseHelper(response);\n\n final JSONObject availableCategories = helper.jsonOrNull(\"available_categories\");\n final ArrayList<Teak.Channel.Category> categories = new ArrayList<>();\n if (availableCategories != null) {\n final Iterator<String> keys = availableCategories.keys();\n while (keys.hasNext()) {\n final String key = keys.next();\n final JSONObject categoryJson = availableCategories.getJSONObject(key);\n final ResponseHelper categoryJsonHelper = new ResponseHelper(categoryJson);\n categories.add(new Teak.Channel.Category(\n key,\n categoryJson.getString(\"name\"),\n categoryJsonHelper.strOrNull(\"description\"),\n categoryJsonHelper.strOrNull(\"sound\"),\n categoryJson.optBoolean(\"show_badge\", false)));\n }\n }\n\n // Future-Ezri: This looks ugly, the reason we aren't moving it into the constructor itself is\n // so that it can be easily mocked for the functional tests.\n final RemoteConfiguration configuration = new RemoteConfiguration(teakConfiguration.appConfiguration,\n response.isNull(\"auth\") ? RemoteConfiguration.defaultHostname : response.getString(\"auth\"),\n helper.strOrNull(\"sdk_sentry_dsn\"),\n helper.strOrNull(\"app_sentry_dsn\"),\n helper.strOrNull(\"gcm_sender_id\"),\n helper.strOrNull(\"firebase_app_id\"),\n helper.boolOrFalse(\"ignore_default_firebase_configuration\"),\n helper.boolOrFalse(\"enhanced_integration_checks\"),\n helper.jsonOrNull(\"endpoint_configurations\"),\n helper.jsonOrNull(\"dynamic_parameters\"),\n response.optInt(\"heartbeat_interval\", 60),\n categories,\n false);\n\n Teak.log.i(\"configuration.remote\", configuration.toHash());\n TeakEvent.postEvent(new RemoteConfigurationEvent(configuration));\n } catch (Exception e) {\n Teak.log.exception(e);\n }\n });\n } else if (event.eventType.equals(RemoteConfigurationEvent.Type)) {\n RemoteConfiguration.activeRemoteConfiguration = ((RemoteConfigurationEvent) event).remoteConfiguration;\n }\n });\n }", "title": "" }, { "docid": "2343ee5bb19dce13e97caceb8cf1e9e0", "score": "0.42231315", "text": "@Override\n\tpublic void doConfigureTrail(String config) {\n\t\tif (MString.isEmpty(config)) config = ThreadMapperConfig.MAP_LABEL;\n\t\tset(config);\n\t}", "title": "" }, { "docid": "095f10c9611601b3975befc746364242", "score": "0.42108965", "text": "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "title": "" }, { "docid": "aee08346db8f9b4cf14772afc0de548a", "score": "0.42099345", "text": "public Builder setUseStaticShapes(boolean value) {\n bitField1_ |= 0x00000002;\n useStaticShapes_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fc8a4abbbb2ac3512fd0079dcfa178ee", "score": "0.42080915", "text": "@Test\r\n\tpublic void testGetConfigs() throws Exception {\r\n\t\tgiven(mockedStaplerRequest.getParameter(\"filter\")).willReturn(null);\r\n\t\tassertEquals(0, createSut().getConfigs().size());\r\n\t\tgiven(mockedStaplerRequest.getParameter(\"filter\")).willReturn(\"system\");\r\n\t\tassertEquals(0, createSut().getConfigs().size());\r\n\t\tgiven(mockedStaplerRequest.getParameter(\"filter\")).willReturn(\"all\");\r\n\t\tassertEquals(0, createSut().getConfigs().size());\r\n\t\tgiven(mockedStaplerRequest.getParameter(\"filter\")).willReturn(\"other\");\r\n\t\tassertEquals(0, createSut().getConfigs().size());\r\n\t}", "title": "" }, { "docid": "6126e628252a131e2a61a2003f99afd7", "score": "0.420479", "text": "public void init(FilterConfig fConfig) throws ServletException {\n }", "title": "" }, { "docid": "0948a5fd1729e8d2c691061ddc0dd1e0", "score": "0.42020336", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t\tString param = filterConfig.getInitParameter(\"count\");\n\t\tcount = Integer.valueOf(param);\n\t\t\n\t}", "title": "" }, { "docid": "bcb353bd76bd4bc74f1d6738809fb47d", "score": "0.41994375", "text": "public void init(final FilterConfig filterConfig) throws ServletException {\n log.trace(\"Entering init\");\n // Do nothing.\n log.trace(\"Leaving init\");\n }", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.41990525", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.41990525", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.41990525", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.41990525", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.41990525", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.41990525", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.41990525", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "dea75848332ed92530229f9b07f009fb", "score": "0.41990525", "text": "public void init(FilterConfig fConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "0b9ff7b9ce6ab681c75744aff535ec32", "score": "0.41932186", "text": "protected void onBeforeRun(int action, JsonElement config) {\n \n }", "title": "" }, { "docid": "6ad0ff1d4779dc3a4af8711ec9e46679", "score": "0.41837364", "text": "public void setDevStatic(Integer devStatic) {\n this.devStatic = devStatic;\n }", "title": "" }, { "docid": "d4a08a5d7df149221ecf0f3bdfb2a7b0", "score": "0.41690305", "text": "private void setUpFilters()\n {\n for( int i = 0; i < FILTER_METHODS.length; i++ )\n {\n String methodName = FILTER_METHODS[i];\n\n StringBuffer constraint = new StringBuffer(200);\n constraint.append('\\'').append(FILTER_SUBSTRING_CAP).append(\"'~ \");\n constraint.append(\"$.\").append(methodName).append(\".message.tag\").append(\" or \");\n constraint.append('\\'').append(FILTER_SUBSTRING_LOW).append(\"'~ \");\n constraint.append(\"$.\").append(methodName).append(\".message.tag\").append(\" and \");\n constraint.append(\"$.\").append(methodName).append(\".message.messageId > 0\");\n\n filters.add(new FilterUtility(methodName, constraint.toString(), getCentralLoggingInterfaceRepId(), true));\n }\n }", "title": "" }, { "docid": "4ae38289cc13be13862dec21f1cb2d84", "score": "0.41656804", "text": "@Override\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tString urls = config.getInitParameter(\"avoid-urls\");\n\t\tStringTokenizer token = new StringTokenizer(urls, \",\");\n\n\t\turlList = new ArrayList<String>();\n\n\t\twhile (token.hasMoreTokens()) {\n\t\t\turlList.add(token.nextToken());\n\n\t\t}\n\t\tSystem.out.println(urlList);\n\t}", "title": "" }, { "docid": "76672bc233ae1524ab16ec910722b4fd", "score": "0.41591683", "text": "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n \n }", "title": "" }, { "docid": "6ab09e1fdd3623904dfc7d8c24ba3af9", "score": "0.41578314", "text": "public void setTrafficIntensity(String value);", "title": "" }, { "docid": "13fd2d80842a6570006e9fb9e4470f27", "score": "0.41559172", "text": "@Override\r\n\tpublic void init(FilterConfig arg0) throws ServletException {\n\t\tSystem.out.println(\"init-----FirstFilter\");\r\n\t}", "title": "" }, { "docid": "6eb83f29c74dcd6b311f20ecaba0605e", "score": "0.41405657", "text": "@Override\n\tprotected void initFilters() {\n\t}", "title": "" }, { "docid": "5b7578d9d0e1981123900dfa333f556a", "score": "0.41374075", "text": "public void setStatic(boolean aValue) { _static = aValue; }", "title": "" }, { "docid": "deb05b39ff7f1c32d78fe25b73738844", "score": "0.41354162", "text": "public interface FilterableConfig {\n /**\n * Get operations used to filter items.\n *\n * @return Filter operation\n */\n Operation[] getFilters();\n}", "title": "" }, { "docid": "cca8ccd31a1630f240b0642021c42e0a", "score": "0.4130926", "text": "private void configureLogging() {\n if (enableTracingDebug) {\n initalisationParams.put(ResourceConfig.PROPERTY_CONTAINER_REQUEST_FILTERS, \"com.sun.jersey.api.container.filter.LoggingFilter\");\n initalisationParams.put(ResourceConfig.PROPERTY_CONTAINER_RESPONSE_FILTERS, \"com.sun.jersey.api.container.filter.LoggingFilter\");\n initalisationParams.put(ResourceConfig.FEATURE_TRACE, \"true\");\n }\n }", "title": "" }, { "docid": "2a0b70bcdd9604a2472560926db38ce2", "score": "0.41291818", "text": "TapRequestFlag(int flag) {\n this.flag = flag;\n }", "title": "" }, { "docid": "775589e86acb759f4e83f266805ae7e2", "score": "0.41154394", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\t}", "title": "" }, { "docid": "feec463cbae2313d3da8616d8b000047", "score": "0.4114191", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "title": "" }, { "docid": "feec463cbae2313d3da8616d8b000047", "score": "0.4114191", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "title": "" }, { "docid": "feec463cbae2313d3da8616d8b000047", "score": "0.4114191", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "title": "" }, { "docid": "feec463cbae2313d3da8616d8b000047", "score": "0.4114191", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "title": "" }, { "docid": "feec463cbae2313d3da8616d8b000047", "score": "0.4114191", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "title": "" }, { "docid": "feec463cbae2313d3da8616d8b000047", "score": "0.4114191", "text": "@Override\n\tpublic void init(FilterConfig filterConfig) throws ServletException {\n\n\t}", "title": "" }, { "docid": "4ac28d9429fd784ac384e1f927264e6a", "score": "0.41039506", "text": "@Override\r\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tString noAuthorized=config.getInitParameter(\"noAuthorized\");\r\n\t\tloginUrl=config.getInitParameter(\"loginUrl\");\r\n\t\tif(StringUtils.isNotBlank(noAuthorized)){\r\n\t\t\tString[] noAuthorizeds=noAuthorized.split(\",\");\r\n\t\t\tnoAuthorizedUrls=Arrays.asList(noAuthorizeds);\r\n\t\t\t\r\n\t\t}\r\n\t\tredisTemplate = (RedisTemplate<String, String>) SpringContextUtil.getBean(\"redisTemplate\");\r\n\t\tsessionRepository = (RedisOperationsSessionRepository) SpringContextUtil.getBean(\"sessionRepository\");\r\n\t\tauthenticationDtoServiceCustomer = (AuthenticationDtoServiceCustomer)SpringContextUtil.getBean(\"authenticationDtoServiceCustomer\");\r\n\t}", "title": "" }, { "docid": "14a56982ca81f7e3f4840b7ebb4488a7", "score": "0.41033554", "text": "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "title": "" }, { "docid": "14a56982ca81f7e3f4840b7ebb4488a7", "score": "0.41033554", "text": "@Override\n public void init(FilterConfig filterConfig) throws ServletException {\n }", "title": "" }, { "docid": "ce9bd3f11446c69afd3cfb22a6ae6f1b", "score": "0.41003942", "text": "@Override\n\tprotected void initFilters() {\n\t\t\n\t}", "title": "" }, { "docid": "89af4d7b46cd05976257551639db25d6", "score": "0.4095916", "text": "@Bean\n\tpublic Sampler defaultSampler(){\n\n\t\treturn Sampler.ALWAYS_SAMPLE;\n\t}", "title": "" }, { "docid": "4b17cb0fc5683ba8b16b86a85e5a1cd1", "score": "0.40914094", "text": "@Override\n public void onStartup(ServletContext servletContext) throws ServletException {\n String realPath = new File(\"src/main/resources/static\").getAbsolutePath();\n String exportPath = \"file://\" + realPath + \"\\\\export\";\n String importPath = \"file://\" + realPath + \"\\\\import\";\n\n servletContext.setInitParameter(\"export-path\", exportPath);\n servletContext.setInitParameter(\"import-path\", importPath);\n servletContext.setInitParameter(\"monitor-cycle-time\", \"3\");\n servletContext.setInitParameter(\"file-storage-time\", \"1\");\n servletContext.setInitParameter(\"numFmt-lang\", \"ko\");\n }", "title": "" }, { "docid": "bcd75fd8f42d4a1eebfd68e001c5464a", "score": "0.40895715", "text": "@Override\n\tpublic void init(FilterConfig config) throws ServletException {\n\t\tSystem.out.println(\"创建过滤器对象\");\n\n\t\tencoding = config.getInitParameter(\"encoding\");\n\t\tcontentType = config.getInitParameter(\"contentType\");\n\n\t}", "title": "" }, { "docid": "cbc51cb4b98f63c33ba66b73276156a6", "score": "0.40831375", "text": "public void init(FilterConfig filterConfig) throws ServletException {\n\t\t\n\t}", "title": "" } ]
89a8b6f4180ddd6522a410c235f57d90
Set property with browser driver name and path of the driver For Chrome Browser
[ { "docid": "6496baf3556c457e864da2cfd37a1dd7", "score": "0.0", "text": "public static void woot() {\n System.setProperty(\"webdriver.chrome.driver\", \"Lib\\\\BrowserDriver\\\\chromedriver.exe\");\n myDriver = new ChromeDriver();\n //Navigate to URL\n myDriver.get(\"https://www.amazon.com/\");\n //Select woot on click\n myDriver.findElement(By.xpath(\"//*[@id=\\\"navFooter\\\"]/div[4]/table/tbody/tr[9]/td[11]/a\")).click();\n }", "title": "" } ]
[ { "docid": "866dea83c6c4205b219891392aba913f", "score": "0.83386093", "text": "private static void setDriverProperty(){\n PropertiesFile properties = new PropertiesFile(Dictionary.PropertiesPath.DEFAULT);\n String osName = System.getProperty(\"os.name\").toLowerCase();\n String driverPath = \"\";\n if (osName.contains(Dictionary.OSName.WINDOWS)) {\n driverPath = properties.getProperty(\"windows.driver.path\");\n } else if (osName.contains(Dictionary.OSName.LINUX_1) || osName.contains(Dictionary.OSName.LINUX_2)) {\n driverPath = properties.getProperty(\"linux.driver.path\");\n } else if (osName.contains(Dictionary.OSName.MAC_OSX)) {\n driverPath = properties.getProperty(\"mac.driver.path\");\n } else {\n Report.reportFail(String.format(\"Driver not found for current OS: %s\", osName));\n }\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\n }", "title": "" }, { "docid": "12cad60db818360d5d1410d3de6a5614", "score": "0.7426255", "text": "@BeforeMethod\n\tpublic void browserSetUp() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\Chinmay\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\tInvokeBrowserSettings invoke = new InvokeBrowserSettings();\n\t\tdriver = invoke.invokeBrowser(\"chrome\", Constant.URL);\n\t}", "title": "" }, { "docid": "bb3a96845d927f0048454685b5ec35d3", "score": "0.7341116", "text": "public void openChromeBrowser() {\n\t\tString chromePath = prop.getValue(\"path.chrome\");\n\t\tString chromeDriverPath = prop.getValue(\"web.driver.chrome\");\n\n\t\tSystem.setProperty(chromeDriverPath, chromePath);\n\t\tdriver = new ChromeDriver();\n\t}", "title": "" }, { "docid": "1a7d945678a78046790fc9f476c12eff", "score": "0.7313534", "text": "public final void setDriver(String browser) {\n if(browser == null || browser.isEmpty()){\n browser = Global_VARS.BROWSER;\n Log.info(\"Setting default browser\");\n }\n switch (browser){\n case \"firefox\" :\n Log.info(\"Initializing firefox browser. \");\n System.setProperty(Global_VARS.FIREFOX_DRIVER_NAME, Global_VARS.DRIVER_PATH + Global_VARS.FIREFOX_DRIVER_EXE);\n driver.set(new FirefoxDriver());\n OptionsManager.getFirefoxOptions();\n break;\n case \"chrome\" :\n Log.info(\"Initializing chrome browser. \");\n System.setProperty(Global_VARS.CHROME_DRIVER_NAME, Global_VARS.DRIVER_PATH + Global_VARS.CHROME_DRIVER_EXE);\n driver.set(new ChromeDriver());\n OptionsManager.getChromeOptions();\n break;\n\n }\n getDriver().manage().window().maximize();\n getDriver().manage().timeouts().implicitlyWait(Global_VARS.IMPLICIT_TIMEOUT, TimeUnit.SECONDS);\n }", "title": "" }, { "docid": "a3b59d474785f25ff074902a297336eb", "score": "0.7313276", "text": "public WebDriver IntializeChromeDriver() throws IOException {\n String OS = System.getProperty(\"os.name\").toLowerCase();\n //prop = new Properties();\n //FileInputStream fl = new FileInputStream(System.getProperty(\"user.dir\") + \"/src/main/java/com/resources/data.properties\");\n //prop.load(fl);\n String browserName = getProp().getProperty(\"browser\");\n\n if (OS.contains(\"mac\") && browserName.equals(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\") + \"/chromedrivers/chromedriver\");\n driver = new ChromeDriver();\n } else {\n System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\") + \"/chromedrivers/chromedriver.exe\");\n driver = new ChromeDriver();\n }\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n return driver;\n\n }", "title": "" }, { "docid": "cb6fa295ce0520f89c553db88b35b219", "score": "0.73067737", "text": "@BeforeTest\r\n public void SetUp() throws InterruptedException, IOException {\n String exePath = \"C:\\\\Appium Jars and Drivers\\\\Selenium\\\\chromedriver.exe\";\r\n System.setProperty(\"webdriver.chrome.driver\",exePath);\r\n}", "title": "" }, { "docid": "3f85b85d97128efcbbfcb55bf5812276", "score": "0.70589167", "text": "public static void SetDriver()\r\n\t{\n\t\tDesiredCapabilities cap = new DesiredCapabilities();\r\n\t\t//cap.setBrowserName(System.getenv(\"browserName\"));\r\n\t\tcap.setBrowserName(\"chrome\");\r\n//\t\ttdl.set(new FirefoxDriver());\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//tdl.set(new RemoteWebDriver(new URL(System.getenv(\"hubURL\")), cap));\r\n\t\t\tSystem.out.println(\"************ Creating instace\");\r\n\t\t\ttdl.set(new RemoteWebDriver(new URL(\"http://localhost:4444/wd/hub\"), cap));\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"!!!!!!!!!!! Unable to create driver object\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttdl.get().manage().timeouts().implicitlyWait(0, TimeUnit.SECONDS);\r\n\t\tWebDriverFactory.getDriver().get(\"http://192.168.0.108/orangehrm-3.3.1\");\r\n\t\tWebDriverFactory.getDriver().manage().window().maximize();\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "0d1b4bc721c74fa123012a1b7a0c6d0c", "score": "0.70346725", "text": "public static void systemPropeties(){\n// System.setProperty(\"webdriver.chrome.driver\",\"/Users/akumarn/Documents/chromedriver/chromedriver\");\n //System.setProperty(\"webdriver.ie.driver\",\"C:\\\\IEDriverForSelenium\\\\IEDriverServer.exe\");\n \n }", "title": "" }, { "docid": "bffb0ffcfd7ea255685b38c21bb98e0a", "score": "0.70023185", "text": "@Test(priority = 1)\r\n\tpublic void SetearDriver() throws IOException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\webdriver\\\\chromedriver.exe\"); // Para Chrome\r\n\t\tdriver = new ChromeDriver(); // para Chrome\r\n\t\tdriver.manage().window().maximize();\r\n\t\tString url = \"https://www.spotify.com/cl/\";\r\n\t\tdriver.get(url);\t\t\r\n\t}", "title": "" }, { "docid": "71ef92e35f6e09c5cb13515de5217faa", "score": "0.6940972", "text": "@BeforeAll\n static void preparations() {\n System.setProperty(\"webdriver.chrome.driver\", \"D:\\\\[IDEA]\\\\Projects\\\\mySeleniumCode\\\\drivers\\\\chromedriver.exe\");\n }", "title": "" }, { "docid": "50d3e956c2d25e92e698a0e27f1c24a7", "score": "0.6915502", "text": "private void setDriver(String browserType)\n\t{\n\t\tSystem.out.println(\"Browser value is ::\"+ browserType);\n\t\tswitch(browserType)\n\t\t{\n\t\t\tcase \"chrome\":\n\t\t\t\tdriver = ChromeBrowser.init();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.error(\"browser : \"+browserType+\" is invalid, Launching Firefox as browser of choice..\");\n\t\t\t\tdriver = FirefoxGeckoBrowser.init();\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "db46c6a1798d0cfa98920a6c869089b1", "score": "0.6875575", "text": "public WebDriver getChromedriver() {\n\t\t\tFile file = new File(\"Libraries//chromedriver\");\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", file.getAbsolutePath());\n\t\t\treturn new ChromeDriver();\n\t\t}", "title": "" }, { "docid": "ffc04e95a8e6e39b5a57cf749d07a6a7", "score": "0.68467784", "text": "public void setDriver(WebDriver driver) \n {\n this.driver = driver;\n }", "title": "" }, { "docid": "9fd1485746333b54f23c2858650da9ec", "score": "0.68067795", "text": "protected static void setDriverValue() {\n\t\tbrowserConf.set(DefaultBrowserConf.get());\n\t\tDriverFactory df = new DriverFactory(DefaultBrowserConf.get());\n\t\tdriver.set(df.intializeDriver());\n\t}", "title": "" }, { "docid": "dc3840f5c05922051f270ff7b47ae77c", "score": "0.677068", "text": "public interface DriverSwitchBrowser {\n\n\n File chr= new File(\"src\\\\test\\\\java\\\\Selenium\\\\resources\\\\properties\\\\Chrome.properties\");\n File fF=new File(\"src\\\\test\\\\java\\\\Selenium\\\\resources\\\\properties\\\\FireFox.properties\");\n String chrome = chr.getAbsolutePath();\n String fireFox = fF.getAbsolutePath();\n}", "title": "" }, { "docid": "cac1240ee12274bd48f9a0a9f25e6d0f", "score": "0.6752683", "text": "public static void initWebDriver() {\n String DRIVER = SystemUtils.IS_OS_WINDOWS ? \"chromedriver.exe\" : \"chromedriver-mac\";\n System.setProperty(\"webdriver.chrome.driver\", DRIVER);\n WebDriver driver = new ChromeDriver();\n RunEnvironment.setWebDriver(driver);\n }", "title": "" }, { "docid": "7a0a3aad4996992ef7babc8d62a8a769", "score": "0.6713314", "text": "public void Launch_browser()\r\n\t{\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", drivers_path+\"chromedriver.exe\");\r\n\t\t driver=new ChromeDriver();\r\n\t\t driver.manage().window().maximize();\r\n\t}", "title": "" }, { "docid": "b41de1d0651c8e33a960e24ee0d0e264", "score": "0.66903454", "text": "public String GetCromePath()\n {\n return Pro.getProperty(\"ChromeDriver\");\n }", "title": "" }, { "docid": "a4bc5e4ed925b0d43240f73eb04e8324", "score": "0.6667776", "text": "public static void Chromebrowser(String browser) throws Exception \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", Constant.ChromeDriver);\r\n\t\t// create chrome instance\r\n\t\tConstant.driver = new ChromeDriver(Chrome_Profile());\r\n\t\tConstant.driver.manage().window().maximize();\r\n\t\tBrowserLaunchValue =2;\r\n\t}", "title": "" }, { "docid": "2b5df69a68f6b1679a5962eeae37ed9f", "score": "0.6649944", "text": "private void setEnvironmentParameter() {\n\t\t//Initialize driver\n\t String os = System.getProperty(\"os.name\", \"generic\").toLowerCase(Locale.ENGLISH);\n\t String osArch = System.getProperty(\"os.arch\");\n\n\t if (os.indexOf(\"win\") >= 0 && (osArch.indexOf(\"amd64\")>=0 || osArch.indexOf(\"x86\")>=0)) {\n\t\t\tdirectories.put(CHRONE_DRIVER, directories.get(RESOURCES) + \"/drivers/chromedriver.exe\");\n\t\t\tdirectories.put(IE_DRIVER, directories.get(RESOURCES) + \"/drivers/IEDriverServer_32.exe\");\n\t\t\tdirectories.put(GECKO_DRIVER, directories.get(RESOURCES) + \"/drivers/geckodriver.exe\");\n\t }else {\n\t\t\tdirectories.put(CHRONE_DRIVER, directories.get(RESOURCES) + \"/drivers/chromedriver\");\n\t\t\tdirectories.put(GECKO_DRIVER, directories.get(RESOURCES) + \"/drivers/geckodriver\");\n\t }\n\t}", "title": "" }, { "docid": "6bb27014482cef2a77d81f92c056b13f", "score": "0.6628361", "text": "public BrowserWebDriver(String browser){\t\t\n\t\t\n\t\tswitch(browser.toLowerCase()) {\n\t\t\n\t\tcase \"htmlunit\": \n\t\tcase \"headless\": {\n\t\t\t\n\t\t\tthis.driver = new HtmlUnitDriver(); // true = js enabled\n\t\t\t\n\t\t\t((HtmlUnitDriver) driver).setJavascriptEnabled(true); // enable js\t\t\t\n\n\t\t\tbreak;\n\t\t}\n\t\tcase \"chrome\": {\n\t\t\t/**\n\t\t\t * Optional, if not specified, WebDriver will search your path for chromedriver.exe\n\t\t\t * This file must be first down loaded and extracted\n\t\t\t */\n\t\t\t\n\t\t\t// System.setProperty(\"webdriver.chrome.driver\", \"C:/Users/afarah/Desktop/SeleniumChromeDriver/chromedriver_win32/chromedriver.exe\");\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:/SeleniumDriverServers/chromedriver_win32/chromedriver.exe\");\n\n\t\t\tthis.driver = new ChromeDriver();\n\t\t\t\n\t\t\t\n\t\t\tCapabilities caps = ((RemoteWebDriver) driver).getCapabilities();\n\t\t\tbrowserName = caps.getBrowserName();\n\t\t\tbrowserVersion = caps.getVersion();\n\t\t\tjsEnabled = caps.isJavascriptEnabled();\n\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\tcase \"internetexplorer\": \n\t\tcase \"ie\": {\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", \"C:/SeleniumDriverServers/IEDriverServer_Win32_2.46.0/IEDriverServer.exe\");\n\t\t\t//System.setProperty(\"webdriver.ie.driver\", \"C:/SeleniumDriverServers/IEDriverServer_x64_2.46.0/IEDriverServer.exe\");\n\n\t\t\tthis.driver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\t}\n\t\tcase \"firefox\": \n\t\tcase \"ff\": {\n\t\t\t\n\n\t\t\tthis.driver = new FirefoxDriver();\t\n\t\t\t\n\t\t\t/**\n\t\t\t * the following lines no longer needed, Selenium2.46 resolved\n\t\t\t * the \"FF stopped working...\" pop-up alert\n\t\t\t */\n\t\t\t\n\t\t\t//WebDriverWait wait = new WebDriverWait(this.driver, 5);\n\t //wait.until(ExpectedConditions.alertIsPresent());\n\t\t\t//Alert alert = this.driver.switchTo().alert(); // get rid off \"ff stopped working\" alert\n\t\t\t//alert.dismiss();\n\t\t\t\n\t\t\tCapabilities caps = ((RemoteWebDriver) driver).getCapabilities();\n\t\t\tbrowserName = caps.getBrowserName();\n\t\t\tbrowserVersion = caps.getVersion();\n\t\t\tjsEnabled = caps.isJavascriptEnabled();\n\t\t\t\n\t \n\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\tdefault: {\n\t\t\tthis.driver = new HtmlUnitDriver();\n\t\t\tlog.info(\"Opening browser: \" + browser);\n\t\t\tbreak;\n\t\t}\n\t\t}\n\t\tthis.driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tthis.driver.manage().window().maximize();\n\t\t\n\n\t\tlog.info(\"Opened browser: \" + browser);\t\n\t\tlog.info(browserName + \" version: \" + browserVersion + \", Java Script Enabled = \" + jsEnabled);\n\n\t\n\t\n\t}", "title": "" }, { "docid": "8d15f5b1b3c3a3d790fb8cb861a80c58", "score": "0.65773267", "text": "public static WebDriver getDriver() {\n System.setProperty(\"webdriver.chrome.driver\", \"src/main/resources/chromedriver\");\n\n //setting the chrome options before defining the driver\n ChromeOptions options = new ChromeOptions();\n //set the driver to be maximized\n options.addArguments(\"start-maximized\");\n //set the driver to be incognito mode(private)\n options.addArguments(\"incognito\");\n //run the driver in headless mode\n //options.addArguments(\"headless\");\n\n //defining the web driver that you will be using\n WebDriver driver = new ChromeDriver(options); //options variable should be passed here\n return driver;\n }", "title": "" }, { "docid": "5d54a987488a47d2167cc3adb31ce3a5", "score": "0.65616137", "text": "@BeforeEach\n public void setup(){\n ClassLoader classLoader = new BrowserTest().getClass().getClassLoader();\n String os = System.getProperty(\"os.name\").toLowerCase();\n if((os.indexOf(\"win\") >= 0)){\n System.setProperty(\"webdriver.chrome.driver\", classLoader.getResource(\"drivers/windows/chromedriver.exe\").getPath());\n }else if(os.indexOf(\"mac\") >= 0){\n System.setProperty(\"webdriver.chrome.driver\", classLoader.getResource(\"drivers/mac/chromedriver\").getPath());\n }else if(os.indexOf(\"nix\") >= 0 || os.indexOf(\"nux\") >= 0 || os.indexOf(\"aix\") > 0 ){\n System.setProperty(\"webdriver.chrome.driver\", classLoader.getResource(\"drivers/linux/chromedriver\").getPath());\n }\n chrome = new ChromeDriver();\n wait = new WebDriverWait(chrome, Duration.ofSeconds(10));\n }", "title": "" }, { "docid": "18bf6ae49c65f8e6c06443598af768cb", "score": "0.6540958", "text": "@Before\n public void setUp() {\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver.exe\");\n driver = new ChromeDriver();\n }", "title": "" }, { "docid": "dd18761f8e48f218f8dc30aeced4c9b8", "score": "0.6521929", "text": "public static WebDriver getDriver(String browser, Logger log) throws MalformedURLException {\n\t\tWebDriver driver;\n\t\tlog.info(\"Starting \" + browser + \" driver\");\n\t\t\n\t\tswitch (browser.trim()) {\n\t\tcase \"firefox\":\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", getFirefoxDriverPath());\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t\n\t\tcase \"chrome\":\n\t\t\t\n\t\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\t\t//chromePrefs.put(\"download.default_directory\", downloadFilepath);\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t\tDesiredCapabilities cap = DesiredCapabilities.chrome();\n\t\t\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcap.setCapability(ChromeOptions.CAPABILITY, options);\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", getChromeDriverPath());\n\t\t\tdriver = new ChromeDriver();\n\t\t\tbreak;\t\n\t\t\t\n\t\tcase \"edge\":\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\", DATA_FOLDER_PATH+File.separator+\"MicrosoftWebDriver.exe\");\n\t\t\tdriver = new EdgeDriver();\n\t\t\t driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\tbreak;\t\n\t\tcase \"headless\":\n\t\t\t\n\t\t\t//==============\n\t\t\t\n\t\t\tHashMap<String, Object> chromePrefs1 = new HashMap<String, Object>();\n\t\t\tchromePrefs1.put(\"profile.default_content_settings.popups\", 0);\n\t\t\t//chromePrefs1.put(\"download.default_directory\", downloadFilepath);\n\t\t\tChromeOptions options1 = new ChromeOptions();\n\t\t\toptions1.setExperimentalOption(\"prefs\", chromePrefs1);\n\t\t\tDesiredCapabilities cap1 = DesiredCapabilities.chrome();\n\t\t\tcap1.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcap1.setCapability(ChromeOptions.CAPABILITY, options1);\n\t\t\t//WebDriver driver = new ChromeDriver(cap);\n\t\t\t//==================\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", getChromeDriverPath());\n\t\t\t//ChromeOptions options = new ChromeOptions();\n\t options1.addArguments(\"headless\",\"disable-gpu\",\"no-sandbox\",\"--window-size=1325x744\");\n\t driver = new ChromeDriver(options1);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"firefox_headless\":\n\t\t\tFirefoxBinary firefoxBinary = new FirefoxBinary();\n\t\t firefoxBinary.addCommandLineOptions(\"--headless\");\n\t\t System.setProperty(\"webdriver.gecko.driver\", DATA_FOLDER_PATH+File.separator+\"geckodriver.exe\");\n\t\t FirefoxOptions firefoxOptions = new FirefoxOptions();\n\t\t firefoxOptions.setBinary(firefoxBinary);\n\t\t driver = new FirefoxDriver(firefoxOptions);\n\t\t driver.manage().window().maximize();\n\t\tbreak;\n\t\n\t\t\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", getChromeDriverPath());\n\t\t\tdriver = new ChromeDriver();\n\t\t\tbreak;\n\t\t}\n\t\t//driver.manage().window().maximize();\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "d3880e7068a7a5349250f564b3c5fcda", "score": "0.650994", "text": "@Given(\"^the user launched the chrome browser$\")\n\tpublic void the_user_launched_the_chrome_browser() {\n\tString browser = \"chrome\";\n\t\tif(browser.equalsIgnoreCase(\"chrome\"))\n\t\t{\n\t System.setProperty(\"webdriver.chrome.driver\", \"Drivers\\\\chromedriver.exe\");\n\t driver=new ChromeDriver();\n\t driver.manage().window().maximize();//To maximize the window\n\t}\n\t\telse if(browser.equalsIgnoreCase(\"firefox\"))//To launch firefox browser\n\t\t{\n\t System.setProperty(\"webdriver.gecko.driver\", \"Drivers\\\\geckodriver.exe\");\n\t driver=new firefoxDriver();\n\t driver.manage().window().maximize();//To maximize the window\n\t\t}\n\t\t}", "title": "" }, { "docid": "d883ea2d6be61a4c4aa53e3ddf910cda", "score": "0.6498139", "text": "private WebDriver createWebDriver() {\n try {\n\n String browser = PropertyFileUtils.getConfig().getProperty(\"browser\");\n String host = System.getProperty(\"seleniumHubHost\");\n\n\n switch (browser) {\n case \"CHROME\":\n //WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"disable-infobars\");\n options.addArguments(\"--no-sandbox\");\n options.addArguments(\"--privileged\");\n options.addArguments(\"--start-maximized\");\n\n LoggingPreferences logs = new LoggingPreferences();\n logs.enable(LogType.BROWSER, Level.ALL);\n options.setCapability(CapabilityType.LOGGING_PREFS, logs);\n Map<String, Object> prefs = new HashMap<String, Object>();\n prefs.put(\"credentials_enable_service\", false);\n prefs.put(\"profile.password_manager_enabled\", false);\n options.setExperimentalOption(\"prefs\", prefs);\n\n DesiredCapabilities capability = DesiredCapabilities.chrome();\n capability.setCapability(ChromeOptions.CAPABILITY, options);\n capability.setBrowserName(\"chrome\");\n try {\n //String pathtoHub = \"http://localhost:4444/wd/hub\";\n //host = \"0.0.0.0\";\n driver = new RemoteWebDriver(new URL(\n \"http://\" + host + \":4444/wd/hub\"), capability);\n } catch (MalformedURLException e) {\n Reporter.log(e.toString(), true);\n }\n\n break;\n\n case \"Firefox\":\n\t FirefoxOptions optionsf = new FirefoxOptions();\n //optionsf.addArguments(\"disable-infobars\");\n //optionsf.addArguments(\"--no-sandbox\");\n //optionsf.addArguments(\"--privileged\");\n optionsf.addArguments(\"--start-maximized\");\n\n LoggingPreferences logsf = new LoggingPreferences();\n logsf.enable(LogType.BROWSER, Level.ALL);\n optionsf.setCapability(CapabilityType.LOGGING_PREFS, logsf);\n Map<String, Object> prefsf = new HashMap<String, Object>();\n //prefsf.put(\"credentials_enable_service\", false);\n //prefsf.put(\"profile.password_manager_enabled\", false);\n //optionsf.setExperimentalOption(\"prefs\", prefsf);\n\n DesiredCapabilities capabilityf = DesiredCapabilities.firefox();\n capabilityf.setCapability(ChromeOptions.CAPABILITY, optionsf);\n capabilityf.setBrowserName(\"firefox\");\n try {\n //String pathtoHub = \"http://localhost:4444/wd/hub\";\n //host = \"0.0.0.0\";\n driver = new RemoteWebDriver(new URL(\n \"http://\" + host + \":4444/wd/hub\"), capabilityf);\n } catch (MalformedURLException e) {\n Reporter.log(e.toString(), true);\n }\n\n break;\n\n\n case \"IE\":\n InternetExplorerOptions ieOptions\n = new InternetExplorerOptions();\n ieOptions.setCapability(\n InternetExplorerDriver\n .INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n ieOptions.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);\n ieOptions.setCapability(\"requireWindowFocus\", true);\n driver = new InternetExplorerDriver(ieOptions);\n break;\n\n case \"Opera\":\n driver = new OperaDriver();\n break;\n\n case \"Safari\":\n driver = new SafariDriver();\n break;\n default:\n break;\n\n }\n\n return driver;\n } catch (Exception ex) {\n Reporter.log(\"- Not able to retrieve web driver.\\n\" + ex, true);\n return null;\n }\n }", "title": "" }, { "docid": "67a75467d09f31b147374fb81a57b8b6", "score": "0.6480191", "text": "@Given(\"User launch chrome browser\")\n public void user_launch_chrome_browser() {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n loginPage = new LoginPage(driver);\n\n }", "title": "" }, { "docid": "adceba789dea8e34488257e6c38613b6", "score": "0.6461159", "text": "public static void initDriverManager(){\n setDriverProperty();\n driver = new ChromeDriver();\n Wait.initWait(driver);\n }", "title": "" }, { "docid": "ab90dd8237d9e09544fce58417aa2685", "score": "0.643726", "text": "@Override\n\tpublic ChromeDriver getDriver() {\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "b3d1027a3f9a8aa08d07c83761d481f3", "score": "0.64239705", "text": "public static void setupBrowser(String browsername, String url) {\n if (browsername.equalsIgnoreCase(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", \"src/main/resources/chromedriver.exe\");\n driver = new ChromeDriver();\n driver.get(url);\n } else {\n System.setProperty(\"webdriver.geckodriver.driver\", \"src/main/resources/geckodriver.exe\");\n driver = new FirefoxDriver();\n driver.get(url);\n }\n }", "title": "" }, { "docid": "7dcb527f8383c32ad18dfaf8ee061f59", "score": "0.64223784", "text": "public WebDriver browsersetups() {\n\t\t\n\t\n\n\t\tif (prop.getProperty(\"browser\").equals(\"chrome\")) {\n\t\t\t\n\t\t\tlogger.info(\"Chrome browser is started..\");\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",base_path + \"/src/main/resources/drivers/chromedriver.exe\");\n\n\t\t\tdriver = new ChromeDriver();\n\n\t\t} else if (prop.getProperty(\"browser\").equals(\"firefox\")) {\n\n\t\t\tlogger.info(\"Firefox browser is started..\");\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",base_path + \"/src/main/resources/drivers/geckodriver.exe\");\n\n\t\t\tdriver = new FirefoxDriver();\n\n\t\t}\n\t\telse if(prop.getProperty(\"browser\").equals(\"Edge\"))\n\t\t{\n\t\t\tlogger.info(\"Microsoft Edge browser is started..\");\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\",base_path + \"/src/main/resources/drivers/msedgedriver.exe\");\n\n\t\t\tdriver = new EdgeDriver();\n\t\t}\n\t\t\n\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\tdriver.get(prop.getProperty(\"url\"));\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "ad02a7c1d69b4987bb94088367320e72", "score": "0.63905597", "text": "@Before\n\tpublic void chromeDriverConnection() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./src/test/resources/chromedriver/chromedriver.exe\");\n\t\tthis.driver = new ChromeDriver();\n\t\tthis.driver.manage().window().maximize();\n\n\t}", "title": "" }, { "docid": "9e4eb7f777a467fae663c46d92f5ac38", "score": "0.63544035", "text": "@BeforeSuite\n public static void main(String[] args) {\n System.setProperty(\"webdriver.chrome.driver\", Utils.CHROME_DRIVER_LOCATION);\n }", "title": "" }, { "docid": "ffaf79ccac0145baa241dc636fefc817", "score": "0.63530415", "text": "@BeforeTest\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//TestNG before test method will run before all\r\n\tpublic static void setUPTest() { \t\t\t\t\t\t\t\t\t\t\t\t//Setup method that is setting up the chrome driver\t%%%\r\n\t\t\r\n\t\tPropertiesFile.getProperties();\t\t\t\t\t\t\t\t\t\t\t\t//Will call the getProperties function in PropertiesFile class to get the browser that is configured\t%%%\r\n\t\t\r\n\t\tif (browserName.equalsIgnoreCase(\"chrome\")) {\t\t\t\t\t\t\t\t//If parameter in \"config.properties\" is chrome will run this\r\n\t\t\t\r\n\t\t\tWebDriverManager.chromedriver().setup();\t\t\t\t\t\t\t\t//Initializing the webdriver for chrome\r\n\t\t\tdriver = new ChromeDriver();\t\t\t\t\t\t\t\t\t\t\t//Setting driver to chrome\r\n\t\t}\r\n\t\telse if (browserName.equalsIgnoreCase(\"firefox\")) {\t\t\t\t\t\t\t//If parameter in \"config.properties\" is firefox will run this\r\n\t\t\tWebDriverManager.firefoxdriver().setup();\t\t\t\t\t\t\t\t//Initializing the webdriver for firefox\r\n\t\t\tdriver = new FirefoxDriver();\t\t\t\t\t\t\t\t\t\t\t//Setting driver to firefox\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "1f682117a299db67e8d32236f3f387eb", "score": "0.63515383", "text": "@BeforeMethod\n\tpublic void beforemethod() throws InterruptedException {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"D:\\\\selnm\\\\chromedriver.exe\"); \n\t\t//Create an object of webdriver\n\t\tdriver = new ChromeDriver();\n\n\t}", "title": "" }, { "docid": "f5eca26c501ab05859fc8ad799145ce8", "score": "0.6346139", "text": "@SuppressWarnings(\"deprecation\")\n\t@BeforeClass\n\t@Parameters(value = {\"browser\"})\n\tpublic void initDriver(String browser) {\n\t\ttry {\n//\t\t\tProperties propConfig = CommonUtils.getValFromResource();\n//\t\t\tString browser= CommonUtils.getPropertiesValue(\"browser\", propConfig);\n\t\t\tSystem.out.println(\"browser is \"+browser);\n\t\t\tDesiredCapabilities cap;\n\t\t\tcap = new DesiredCapabilities();\n\t\t\tcap.setJavascriptEnabled(true);\n\t\t\t\n\t\t\tif(!(browser.equals(\"null\")))\n\t\t\t{\n\t\t\t\tswitch(browser)\n\t\t\t\t{\n\t\t\t\tcase \"chrome\": \n\t\t\t\t\tClass<? extends WebDriver> driverClass = ChromeDriver.class;\n\t\t\t\t\tChromeDriverManager.getInstance(driverClass).setup(); \n\t\t\t\t\tdriver = new ChromeDriver(cap);\n\t\t\t\t\tdriver.manage().window().maximize();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ie\":\n\t\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", System.getProperty(\"user.dir\")+\"\\\\jars\\\\IEDriverServer.exe\"); \t\t\t\t\n\t\t\t\t\tcap.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);\n\t\t\t\t\tcap.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);\n\t\t\t\t\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\t\tdriver = new InternetExplorerDriver(cap);\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"firefox\":\n\t\t\t\t\t System.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"user.dir\")+\"\\\\jars\\\\geckodriver.exe\");\n\t\t\t\t\t driver = new FirefoxDriver(cap);\t\t\t\t \n\t\t\t\t\tbreak;\n\t\t\t\tdefault: \n\t\t\t\t\tSystem.out.println(\"Please provide valid browser\");\n\t\t\t\t}\n\t\t\t\n\t\t\t\tdriver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "fc8637b3ccb2713413d3251c2021688d", "score": "0.6341118", "text": "@Parameters({\"browser\"})\n\t@BeforeTest\n\tpublic void launchChromeBrowser(String browser){\n\t\tif(browser.equalsIgnoreCase(\"chrome\")){\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver.exe\");\n\t\t\tdriver=new ChromeDriver();\n\t\t}\n\t\telse if(browser.equalsIgnoreCase(\"ff\")){\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"./drivers/geckodriver_32.exe\");\n\t\t\tdriver=new FirefoxDriver();\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"http://www.gmail.com/\");\n\t}", "title": "" }, { "docid": "16f7465cde6a90c3b8768e9cded95085", "score": "0.6332099", "text": "@Override\r\n\tprotected void createDriver() {\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.addArguments(\"--incognito\");\r\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\r\n\t\tdriver = new ChromeDriver(capabilities);\r\n\r\n\t}", "title": "" }, { "docid": "3f9b13d7c208d8ef976d3fd2907d10af", "score": "0.63233143", "text": "public void selectBrowser() {\n if (SAUCE_LAB) {\n System.out.println(\"Running in SauceLab...... with browser \" + browser);\n\n if (browser.equalsIgnoreCase(\"Chrome\")) {\n DesiredCapabilities caps = DesiredCapabilities.chrome();\n caps.setCapability(\"platform\", \"Windows 7\");\n caps.setCapability(\"version\", \"67.0\");\n\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else if (browser.equalsIgnoreCase(\"IE\")) {\n DesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n caps.setCapability(\"platform\", \"Windows 10\");\n caps.setCapability(\"version\", \"11\");\n\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else if (browser.equalsIgnoreCase(\"FireFox\")) {\n DesiredCapabilities caps = DesiredCapabilities.firefox();\n caps.setCapability(\"platform\", \"Windows 7\");\n caps.setCapability(\"version\", \"56\");\n caps.setCapability(\"name\", \"Testing on Firefox 56\");\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else if (browser.equalsIgnoreCase(\"Safari\")) {\n DesiredCapabilities caps = DesiredCapabilities.safari();\n caps.setCapability(\"platform\", \"OS X 10.10\");\n caps.setCapability(\"version\", \"8.0\");\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else if (browser.equalsIgnoreCase(\"edge\")) {\n DesiredCapabilities caps = DesiredCapabilities.edge();\n caps.setCapability(\"platform\", \"Windows 10\");\n caps.setCapability(\"version\", \"16.16299\");\n try {\n driver = new RemoteWebDriver(new URL(URL), caps);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n } else {\n System.out.println(\"Wrong browser name or empty: \" + browser);\n }\n }\n // if sauce lab is false\n\n else {\n if (browser.equalsIgnoreCase(\"Chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", \"src\\\\test\\\\Resourses\\\\BrowserDirectory\\\\chromedriver.exe\");\n driver = new ChromeDriver();\n } else if (browser.equalsIgnoreCase(\"IE\")) {\n System.setProperty(\"webdriver.ie.driver\", \"src\\\\test\\\\Resourses\\\\BrowserDirectory\\\\IEDriverServer.exe\");\n driver = new InternetExplorerDriver();\n } else if (browser.equalsIgnoreCase(\"Firefox\")) {\n System.setProperty(\"webdriver.gecko.driver\", \"src\\\\test\\\\Resourses\\\\BrowserDirectory\\\\geckodriver.exe\");\n driver = new FirefoxDriver();\n } else {\n System.out.print(\"Wrong Browser\" + browser);\n }\n }\n }", "title": "" }, { "docid": "6779002a15bb51a55ee04df813344761", "score": "0.6313394", "text": "@BeforeTest\n public void setupDriver() {\n Configuration.baseUrl = \"https://www.linkedin.com\";\n Configuration.browser = CustomWebDriverProvider.class.getName();\n Configuration.startMaximized = true;\n ChromeDriverManager.getInstance().setup();\n }", "title": "" }, { "docid": "2d7d677288bc3fab774596a311db0c19", "score": "0.6296152", "text": "public static void Initialization() {\n\tString Browser = prop.getProperty(\"Browser\");\n\tif(Browser.equalsIgnoreCase(\"chrome\")) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+ \"\\\\src\\\\main\\\\resources\\\\chromedriver.exe\");\n\t//Opening Chrome in Incognito Mode\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--Incognito\");\n\t\tdriver = new ChromeDriver(options);\n\t}\n\t\n\tdriver.get(prop.getProperty(\"URL\"));\n\tdriver.manage().window().maximize();\n\t\n}", "title": "" }, { "docid": "1daf7246a1d7bb1bfbc69be177a40c67", "score": "0.6288255", "text": "public static WebDriver openWebDriver(String browserType) {\n\t\tString path = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(path); \n\t\tif (browserType.equalsIgnoreCase(\"firefox\")) {\n\t System.setProperty(\"webdriver.chrome.driver\", path+\"\\\\resources\\\\geckodriver.exe\");\n\t return new FirefoxDriver();\n\t\t}\n\t\telse if (browserType.equalsIgnoreCase(\"IE\")) {\n\t System.setProperty(\"webdriver.chrome.driver\", path+\"\\\\resources\\\\IEDriveServer.exe\");\n\t return new InternetExplorerDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path+\"\\\\resources\\\\chromedriver.exe\");\n\t return new ChromeDriver();\n\t\t}\t\t\t\t\n\t}", "title": "" }, { "docid": "02f0738bdcdafaa31504adfb34b8c903", "score": "0.6285449", "text": "public static void setupDriver(String browserName) {\n\t\tif(browserName.equalsIgnoreCase(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\")+ File.separator + \"Drivers\"+ File.separator + \"chromedriver\");\n\t\t\tdriver= new ChromeDriver();\n\t\t\t\n\t\t}else if (browserName.equalsIgnoreCase(\"Firefox\")) {\n System.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"user.dir\") + File.separator + \"drivers\" + File.separator + \"geckodriver\");\n driver = new FirefoxDriver();\n } else {\n System.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\") + File.separator + \"drivers\" + File.separator + \"chromedriver\");\n driver = new ChromeDriver();\n }\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().pageLoadTimeout(TestUtils.page_load_timeout, TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().implicitlyWait(TestUtils.implicit_wait,TimeUnit.SECONDS);\n\t\tdriver.get(prop.getProperty(\"url\"));\n\t}", "title": "" }, { "docid": "3efbbb48c0fe96015ba79c47a6874bfe", "score": "0.6282597", "text": "@Before\n\tpublic void setup() throws IOException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", conf.getPropValues(\"driver_path\"));\n\t\t \n\t}", "title": "" }, { "docid": "26a4a41a028eab539091adc4f295ec69", "score": "0.62751997", "text": "public String pathChrome() {\n\t\treturn StringUtils.hasText(pathChrome) || System.getProperty(INSPECT_OS) == null ? pathChrome : SetupUtil.inspectOsForDriverPath(Browser.CHROME);\n\t}", "title": "" }, { "docid": "733ff3256ccce2c81c3bd3254685cba7", "score": "0.6265174", "text": "public void setDriver(java.lang.String _driver)\n {\n driver = _driver;\n }", "title": "" }, { "docid": "ab6e2e985e9c624f2300dd666a5e464b", "score": "0.62557256", "text": "protected WebDriver local_createDriver(String string) \n\t{\n\t\t\n\t\tWebDriver browser = null;\n\n\t\t//Setting up exeDriver path\n\t\tString relativePath = \"C:/ApplicationCentre/ExeDriver//\";\n\t\t\n\t\tswitch (string) \n\t\t{\n\t\t//This option is to run headless chrome\n\t\tcase \"CHROME_HEADLESS\":\n\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"headless\");\n\t\t\toptions.addArguments(\"window-size=1680x900\");\n\t\t\toptions.addArguments(\"disable-infobars\");\n\t\t\toptions.addArguments(\"--start-maximized\");\n\t\t\tMap<String, Object> prefs = new HashMap<String, Object>();\n\t\t\tprefs.put(\"credentials_enable_service\", false);\n\t\t\tprefs.put(\"profile.password_manager_enabled\", false);\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\toParameters.SetParameters(\"downloadFilepath\", \"C:/ApplicationCentre/Downloads\");\n\t\t\toParameters.SetParameters(\"SUPPORTINGFILE_PATH\", \"C:/ApplicationCentre/SupportingFiles/\");\n\t\t\toParameters.SetParameters(\"AUTOIT_FILES_PATH\", \"C:/ApplicationCentre/AutoIt/\");\n\t\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\t\tchromePrefs.put(\"download.default_directory\", oParameters.GetParameters(\"downloadFilepath\"));\n\t\t\toptions.setExperimentalOption(\"prefs\", chromePrefs);\n\n\t\t\tDesiredCapabilities cap = DesiredCapabilities.chrome();\n\t\t\tcap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcap.setCapability(ChromeOptions.CAPABILITY, options);\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", relativePath + \"chromedriver.exe\");\n\t\t\tbrowser = new ChromeDriver(cap);\n\t\t\tbreak;\n\n\t\t//This option is to run normal chrome\t\n\t\tcase \"CHROME\":\n\t\t\t\n\t\t\tChromeOptions cOptions = new ChromeOptions();\n\t\t\tcOptions.addArguments(\"disable-infobars\");\n\t\t\tcOptions.addArguments(\"--start-maximized\");\n\t\t\tcOptions.addArguments(\"disable-gpu\");\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> prefs1 = new HashMap<String, Object>();\n\t\t\tprefs1.put(\"credentials_enable_service\", false);\n\t\t\tprefs1.put(\"profile.password_manager_enabled\", false);\n\t\t\tcOptions.setExperimentalOption(\"prefs\", prefs1);\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", relativePath + \"chromedriver.exe\");\n\t\t\toParameters.SetParameters(\"downloadFilepath\", \"C:/ApplicationCentre/Downloads\");\n\t\t\tHashMap<String, Object> chromePrefs1 = new HashMap<String, Object>();\n\t\t\tchromePrefs1.put(\"profile.default_content_settings.popups\", 0);\n\t\t\tchromePrefs1.put(\"download.default_directory\", oParameters.GetParameters(\"downloadFilepath\"));\n\t\t\toParameters.SetParameters(\"SUPPORTINGFILE_PATH\", \"C:/ApplicationCentre/SupportingFiles/\");\n\t\t\toParameters.SetParameters(\"AUTOIT_FILES_PATH\", \"C:/ApplicationCentre/AutoIt/\");\n\t\t\tcOptions.setExperimentalOption(\"prefs\", chromePrefs1);\n\t\t\t\n\t\t\tDesiredCapabilities cap1 = DesiredCapabilities.chrome();\n\t\t\tcap1.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcap1.setCapability(ChromeOptions.CAPABILITY, cOptions);\n\t\t\tcap1.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR,UnexpectedAlertBehaviour.IGNORE);\n\t\t\tbrowser = new ChromeDriver(cap1);\n\t\t\tbreak;\n\n\t\tcase \"IE\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", relativePath + \"IEDriverServer.exe\");\n\t\t\tbrowser = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"FIREFOX\":\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", relativePath + \"geckodriver.exe\");\n\t\t\tbrowser = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tbrowser.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\treturn browser;\n\t}", "title": "" }, { "docid": "a3cf81cfefdb33c74dffb5cf266c412e", "score": "0.6229221", "text": "public static WebDriver getBrowser(String browserName) {\n\t\tWebDriver driver = null;\n \n\t\tswitch (browserName) {\n\t\tcase \"Firefox\":\n\t\t\tdriver = drivers.get(\"Firefox\");\n\t\t\tif (driver == null) {\n\t\t\t\t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Users\\\\Mike\\\\WebDriver\\\\geckodriver.exe\");\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t\tdrivers.put(\"Firefox\", driver);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\t\n\t\tcase \"IE\":\n\t\t\tdriver = drivers.get(\"IE\");\n\t\t\tif (driver == null) {\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\",\"C:\\\\Users\\\\Mike\\\\WebDriver\\\\IEDriverServer.exe\");\n\t\t\t\tdriver = new InternetExplorerDriver();\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t\tdrivers.put(\"IE\", driver);\n\t\t\t\t\n\t\t\t}\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\t\t\n\t\tcase \"Chrome\":\n\t\t\tdriver = drivers.get(\"Chrome\");\n\t\t\tif (driver == null) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\Mike\\\\WebDriver\\\\chromedriver.exe\");\n\t\t\t\t\n\t\t\t\tMap<String, Object> prefs = new HashMap<String, Object>();\t\t\t\t\n\t\t \tprefs.put(\"download.prompt_for_download\", false);\n\t\t \tprefs.put(\"credentials_enable_service\", false);\t\n\t\t \tprefs.put(\"password_manager_enabled\", false);\n\t\t\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t\t\tchromeOptions.addArguments(\"chrome.switches\",\"--disable-extensions\");\n\t\t \tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\t \tchromeOptions.addArguments(\"--disable-notifications\");\n\t\t \tchromeOptions.addArguments(\"disable-infobars\");\n\t\t \tchromeOptions.addArguments(\"--start-maximized\");\n\t\t \tchromeOptions.setExperimentalOption(\"prefs\", prefs);\n\t\t \tchromeOptions.addArguments(\"--test-type\");\n\t\t \tdriver = new ChromeDriver(chromeOptions);\t\n\t\t \tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t \tdrivers.put(\"Chrome\", driver);\t\t\t\n\t\t\t}\t\t\t\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "1793028287e69530f43e5e72bb5e0895", "score": "0.6228955", "text": "@BeforeClass\n\t@Parameters({\"browser\"})\n\tpublic void classSetup(@Optional(\"chrome\") String browser) throws Exception {\n\t\tSystem.out.println(\"Current browser: \" + browser);\n\t\t\n\t\t// create the driver instance for the current thread\n\t\tDriverFactory.setDriver(browser, Boolean.parseBoolean(prop.getProperty(\"HEADLESS\")));\n\t\t\n\t\t// retrieve the driver instance for the current thread\n\t\tdriver = DriverFactory.getDriver();\n\t\t\n\t\t// configure the driver\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().pageLoadTimeout(Long.parseLong(System.getProperty(\"page.load.timeout\")), TimeUnit.SECONDS);\n\t\t\n\t\t// open AUT\n\t\tdriver.get(PageInfo.LOGIN_PAGE_URL);\n\t}", "title": "" }, { "docid": "384f629051ec1cbb9ddd0ea8221a8da4", "score": "0.6215222", "text": "public static void main(String[] args) {\n\t\t\n\t\tSystem.setProperty(\"Webdriver.chrome.driver\", \"C:\\\\Users\\\\tenzi\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t\n\tWebdriver driver = new ChromeDriver();\n\t\n\t\n\t\n\t}", "title": "" }, { "docid": "338a1d308c0dae5f7993ee81f031b7fe", "score": "0.62151456", "text": "@BeforeMethod\r\n\tpublic void StartApp() throws IOException {\r\n\t\tFileInputStream fis = new FileInputStream(\"D:\\\\Eclipse_workspace\\\\PageObjectModel\\\\src\\\\test\\\\resources\\\\facebookEng.properties\");\r\n\t\t prop = new Properties();\r\n\t\tprop.load(fis);\r\n\t\tString user = prop.getProperty(\"user\");\r\n\t\tString pass = prop.getProperty(\"pass\");\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n\t\tdriver.get(prop.getProperty(\"URL\"));\r\n\r\n}", "title": "" }, { "docid": "799b2cd4e0800059cfe3cf3f2e60d587", "score": "0.6207617", "text": "@BeforeEach\n void setup() {\n\n setWebDriver(testDriver.getDriver());\n /*\n End of workaround\n */\n\n /*\n Exist issue with set capabilities by default method.\n Issue link: https://github.com/codeborne/selenide/issues/676\n Configuration.browser = getBrowserName();\n Configuration.remote = DataReader.getPropertyValueByKey(\"host\");\n MutableCapabilities options = getOptions();\n Configuration.browserCapabilities = new DesiredCapabilities();\n Configuration.browserCapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n */\n }", "title": "" }, { "docid": "58f2e6d9bec51f26f44abcc491051a82", "score": "0.6197603", "text": "@Parameters(\"browserType\")\r\n\t@BeforeMethod\r\n\tpublic void loginsetup(String browser){\r\n//\tif(browsertype.equalsIgnoreCase(\"firefox\")){\r\n//\t\t\tdriver1 = new FirefoxDriver();\r\n//\t\t}else if (browsertype.equalsIgnoreCase(\"chrome\")){\r\n//\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"/Users/anandmahajan/Desktop/chromedriver\");\r\n//\t\t\tdriver1=new ChromeDriver();\r\n//\t\t}\r\n\t\telements.browserSetup(browser);\r\n\t\tlog.info(\"Browser setup successfull\");\r\n }", "title": "" }, { "docid": "5e915381906537d61154cf7c36b40d55", "score": "0.6178549", "text": "public SeleniumWebDriver(Browsers browser) {\n\t\t\tswitch (browser) { // check our browser\n\t\t\tcase Firefox: {\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase Chrome: {\n\t\t\t\tdriver = getChromedriver();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase InternetExplorer: {\n\t\t\t\tdriver = getIEdriver();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase Safari: {\n\t\t\t\tdriver = new SafariDriver();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// if our browser is not listed, throw an error\n\t\t\tdefault: {\n\t\t\t\tSystem.out.println(\"Required browser is not found\");\n\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Run browser\");\n\t\t}", "title": "" }, { "docid": "5040d60acd2c93d8a2653bec155a4a59", "score": "0.6172765", "text": "static public WebDriver initializeBrowser(BrowserNames bname, String url ) {\n\t\tswitch (bname) {\r\n\t\tcase Chrome:\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"I:\\\\Software\\\\selenium\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\t\tdriver = new ChromeDriver();\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tdriver.get(url);\r\n\t\treturn driver;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2dd2f806ddbe6c9b106549da7dcdd8b9", "score": "0.6153414", "text": "private WebDriver getDriver() {\n\t\tif (this.browser == \"chrome\") {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"resources/chromedriver\");\n\t\t\tthis.driver = new ChromeDriver();\n\t\t} else if (this.browser == \"firefox\") {\n\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"resources/geckodriver\");\n\t\t\tthis.driver = new FirefoxDriver();\n\t\t} else {\n\t\t\tSystem.out.println(\"No driver for browser: \" + browser);\n\t\t}\n\n\t\treturn this.driver;\n\t}", "title": "" }, { "docid": "59e6d51af84cd9f619c0dea1d45ced9e", "score": "0.6145459", "text": "@SuppressWarnings(\"static-access\")\n\tpublic void startBrowser() {\n\t\tif (browser.equalsIgnoreCase(\"ie\")) {\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\",\n\t\t\t\t\t\"ChromeDriverServer/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t} else if (browser.equalsIgnoreCase(\"firefox\")\n\t\t\t\t|| browser.equalsIgnoreCase(\"ff\")) {\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tSystem.out.println(\"host is=\"\n\t\t\t\t\t+ YamlReader.getYamlValue(\"seleniumserverhost\"));\n\n\t\t\tif (YamlReader.getYamlValue(\"seleniumserver\").contains(\"local\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\t\"ChromeDriverServer/chromedriver.exe\");\n\t\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\t\toptions.addArguments(\"--disable-extensions\");\n\t\t\t\toptions.addArguments(\"test-type\");\n\t\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n\t\t\t\tdriver = new ChromeDriver(capabilities);\n\t\t\t}\n\t\t\tif (YamlReader.getYamlValue(\"seleniumserver\").contains(\"remote\")) {\n\t\t\t\tSystem.out.println(\"value is=\"\n\t\t\t\t\t\t+ YamlReader.getYamlValue(\"seleniumserverhost\"));\n\t\t\t\ttry {\n\t\t\t\t\tdriver = new RemoteWebDriver(new URL(\n\t\t\t\t\t\t\tYamlReader.getYamlValue(\"seleniumserverhost\")),\n\t\t\t\t\t\t\tcapabilities.chrome());\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdriver.manage()\n\t\t\t\t.timeouts()\n\t\t\t\t.implicitlyWait(\n\t\t\t\t\t\tInteger.parseInt(YamlReader.getData(\"timeOut\")),\n\t\t\t\t\t\tTimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().deleteAllCookies();\n\t\t_initObjects();\n\t}", "title": "" }, { "docid": "63c2ebec8361c08183a710bc12d98775", "score": "0.6144473", "text": "public static WebDriver getChromeDriver(String locale)\r\n\t{\r\n\t\tString chromedriver = System.getProperty(\"user.dir\")\r\n\t\t\t\t+\"\\\\resources\\\\webdriver\\\\chromedriver.exe\";\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromedriver);\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\toptions.addArguments(\"--lang=\" + locale);\r\n\t\toptions.addArguments(\"--start-maximized\");\r\n\t\toptions.addArguments(\"test-type\");\r\n\t\tChromeDriver driver = new ChromeDriver(options);\r\n\t\treturn driver;\r\n\t}", "title": "" }, { "docid": "0a31b2623b394c9d6dd08c4c7b09473b", "score": "0.6142264", "text": "public WebDriver init_driver(String browserName) {\n\n\t\tSystem.out.println(\"browser name is \" + browserName);\n\n\t\tswitch (browserName.toLowerCase()) {\n\t\tcase \"chrome\":\n\t\t\tWebDriverManager.chromedriver().operatingSystem(OperatingSystem.LINUX).setup();\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tdriver = new ChromeDriver();\n\t\t\tbreak;\n\n\t\tcase \"firefox\":\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t\t\n\t\t\t\n//\t\tcase \"edge\":\n//\t\t\tSystem.setProperty(\"webdriver.edge.driver\", System.getProperty(\"user.dir\") + \"/Drivers/msedgedriver\");\n//\t\t\tdriver = new EdgeDriver();\n\n\n\t\tdefault:\n\t\t\tSystem.out.println(\"Please pass the correct browser : \" + browserName);\n\t\t\tbreak;\n\n\t\t}\n\t\treturn driver;\n\t}", "title": "" }, { "docid": "2616ed531d91c1fc25fb43a347710017", "score": "0.61259514", "text": "@BeforeTest\n public void invokeBrowser() {\n\t driver = new FirefoxDriver();\n\t }", "title": "" }, { "docid": "bb59cc71a1d8232787b536f64d20b451", "score": "0.61197203", "text": "public void setDriver(String driver)\r\n {\r\n this.driver = driver;\r\n }", "title": "" }, { "docid": "60796487c070f6be8b4870141a2dfeba", "score": "0.6116837", "text": "public ChromeDriver ConfigureDriver() {\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\t// Step 0-02: Launch the Chrome browser\r\n\t\tChromeDriver driver = new ChromeDriver();\r\n\t\t// Step 0-03: Load the URL\r\n\t\tdriver.get(\"http://leaftaps.com/opentaps/control/main\");\r\n\t\t// Step 0-04: Maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t// Step 0-05: waits for 10 secs if the element is not in the DOM\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}", "title": "" }, { "docid": "317b0e849c59c7aa556f56da798fbca8", "score": "0.6115438", "text": "public static void main(String[] args) {\n\t\tDesiredCapabilities ch = DesiredCapabilities.chrome();\r\n\t\t//ch.acceptInsecureCerts();\r\n\t\tch.setCapability(CapabilityType.ACCEPT_INSECURE_CERTS, true);\r\n\t\tch.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\r\n\t\t\r\n\t\t//Belongs to my local browser\r\n\t\tChromeOptions c = new ChromeOptions();\r\n\t\tc.merge(ch); //matching with local browser\r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\r\n\t\t\t\t\"C:\\\\Users\\\\Hurmik\\\\Documents\\\\selenium dependencies\\\\drivers\\\\chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver(c);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0cd938beec07903a9e00e2f221825897", "score": "0.6105835", "text": "public void setBrowserAndVersion(DesiredCapabilities capability, String browserName, String browserVersion) {\n\n if (CHROME.equals(browserName)) {\n capability.setBrowserName(browserName);\n capability = DesiredCapabilities.chrome();\n System.setProperty(\"webdriver.chrome.driver\", \"c:\\\\tools\\\\chromedriver.exe\");\n//TODO asLIST!\n capability.setCapability(\"chrome.switches\", Arrays.asList(\"--ignore-certificate-errors\"));\n capability.setCapability(CapabilityType.SUPPORTS_APPLICATION_CACHE, true);\n } else if (FIREFOX.equals(browserName)) {\n capability.setBrowserName(browserName);\n capability = DesiredCapabilities.firefox();\n capability.setCapability(CapabilityType.TAKES_SCREENSHOT, true);\n capability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n } else if (INTERNET_EXPLORER.equals(browserName)) {\n\n //TODO\n /**\n *need to debug\n */\n capability.setBrowserName(browserName);\n capability = DesiredCapabilities.internetExplorer();\n capability.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\n capability.setCapability(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, true);\n capability.setCapability(\"requireWindowFocus\", true);\n capability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n capability.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n capability.setCapability(\"browserstack.ie.enablePopups\", false);\n System.setProperty(\"webdriver.ie.driver\", \"C:\\\\tools\\\\IEDriverServer.exe\");\n } else if (SAFARI.equals(browserName)) {\n //TODO\n /**\n *need to debug\n */\n capability.setBrowserName(browserName);\n capability = DesiredCapabilities.safari();\n capability.setCapability(\"safari.cleanSession\", true);\n capability.setCapability(CapabilityType.TAKES_SCREENSHOT, true);\n capability.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\n\n //TODO\n /**\n * Most likely PHANTOMJS does not work!\n * Need debug!\n */\n } else if (PHANTOMJS.equals(browserName)) {\n capability.setBrowserName(browserName);\n //File phantomjs = Phanbedder.unpack();\n //capability.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY, phantomjs.getAbsolutePath());\n capability = DesiredCapabilities.phantomjs();\n capability.setCapability(\"takesScreenshot\", true);\n capability.setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS, new String[]{\n \"--webdriver-loglevel=NONE\"\n });\n }\n\n if (browserVersion != null) {\n capability.setVersion(browserVersion);\n } else {\n capability.setPlatform(Platform.ANY);\n }\n\n }", "title": "" }, { "docid": "7ce24a397d764db96ccf5f1b4adb6705", "score": "0.61010444", "text": "@BeforeTest\n\tpublic void setUp() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \".//drivers//chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(baseUrl);\n\n\t}", "title": "" }, { "docid": "94c96cded0284be162c2ae4bb0cfb358", "score": "0.6095758", "text": "public static void main(String[] args) {\n\n WebDriverManager.chromedriver().setup();\n\n\n WebDriver driver = new ChromeDriver();\n\n\n driver.navigate().to(\"http://google.com\");\n\n\n\n\n\n }", "title": "" }, { "docid": "d2efef30dcc8579ae87e6d5f8aae60e2", "score": "0.6077952", "text": "@Given(\"^User is entering Google\\\\.com$\")\r\n public void user_is_entering_Google_com() throws Throwable {\n\r\n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\admin\\\\IdeaProjects\\\\LAOProjects\\\\driver\\\\1\\\\chromedriver.exe\");\r\n driver = new ChromeDriver();\r\n driver.get(\"https://www.google.com/\");\r\n }", "title": "" }, { "docid": "ce5d8accbd9ffdcc889860fa584619a7", "score": "0.6064728", "text": "@BeforeMethod\n\tpublic void setup(){\n\t\tdriver=BrowseFactory.startbrowser(\"chrome\");\n\t\tdriver.manage().timeouts().implicitlyWait(15,TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.get(\"http://www.sword-activerisk.com/\");\n\t}", "title": "" }, { "docid": "b8a4e661db7941502d7f29b838709540", "score": "0.60593486", "text": "public void launchbrowser() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\SN262736\\\\eclipse-workspace\\\\jvm\\\\src\\\\main\\\\java\\\\Utilities\\\\Broswers\\\\chromedriver.exe\");\r\n\t driver = new ChromeDriver();\r\n\t driver.get(\"https://www.amazon.com/\");\r\n\t}", "title": "" }, { "docid": "e84d673218c268814d162dcc03cf23f9", "score": "0.6046069", "text": "@Given(\"^LAUNCHING the browser$\")\n\tpublic void launching_the_browser10() {\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"Drivers\\\\chromedriver.exe\");\n\tdriver=new ChromeDriver();\n\tdriver.manage().window().maximize();\n\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\t}", "title": "" }, { "docid": "aa442956a9f3ba7b7a489e7bd99b57fc", "score": "0.6041535", "text": "public static void launchBrowser() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", properties.getProperty(\"driverPath\"));\r\n\t\t\tdriver = new ChromeDriver();\r\n\r\n\t\t\tdriver.manage().window().maximize();\r\n\t\t\t//navigating the browser to given URL\r\n\t\t\tdriver.get(properties.getProperty(\"url\"));\r\n\t\t\t// using implicit wait for browser to navigate if any loading issues\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\r\n\r\n\t\t}", "title": "" }, { "docid": "75babcfd7624e74c88239f461675e8d5", "score": "0.60361975", "text": "@BeforeClass\r\n public static void openBrowser() throws MalformedURLException {\r\n\r\n DesiredCapabilities caps = DesiredCapabilities.chrome();\r\n /*caps.setCapability(\"platform\", \"Windows XP\");\r\n caps.setCapability(\"version\", \"43.0\");*/\r\n driver = new RemoteWebDriver(new URL(URL), caps);\r\n\r\n port = System.getenv(\"PORT\");\r\n if (port == null) {\r\n port = \"4567\";\r\n }\r\n baseUrl = \"http://localhost:\" + port;\r\n }", "title": "" }, { "docid": "349ed703126d869ab32e57ac05dd7ac8", "score": "0.60239124", "text": "@BeforeMethod\n public void initWebDriver() {\n driver = WebDriverFactory.getWebDriver(CURRENT_BROWSER);\n }", "title": "" }, { "docid": "f4bed758f6dbac884392d2fe272d45a1", "score": "0.60211587", "text": "public final WebDriver setDriver(final WebDriver driver) {\n\t\tthis.driver = driver;\n\t\treturn this.driver;\n\t}", "title": "" }, { "docid": "7ec0f9078cd8c890db0c8fce4f27ab5b", "score": "0.60163903", "text": "@BeforeEach\n\tvoid setUp() {\n\t\t// Setup the System path to the Selenium Chrome Binary file\n\t\t// Use System.getProperty(\"user.dir\") to get the system path for the project.\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"user.dir\") + \"/webdrivers/mac/chromedriver\");\n\n\t\t// Instantiate WebDriver to use ChromeDriver.\n\t\twebDriver = new ChromeDriver();\n\t}", "title": "" }, { "docid": "a1290e4218c24e5e5a610d99b2d0aa44", "score": "0.6011626", "text": "public Browser(WebDriver driver){\n\t\t_driver = driver;\n\t}", "title": "" }, { "docid": "676682d506cb6113f0d1269dad43c39c", "score": "0.6000645", "text": "@BeforeTest\n\t public void setup(){\n\t ChromeDriver driver= new ChromeDriver();\n\t //System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\20321574387\\\\Documents\\\\Automation\\\\chromedriver_win32 (1)\\\\chromedriver.exe\");\n\t driver.get(\"http://http://computer-database.herokuapp.com/computers\");\n\n\t }", "title": "" }, { "docid": "d134414d9142b06e263595b10471ae02", "score": "0.5997677", "text": "@SuppressWarnings(\"deprecation\")\r\n\tpublic static void initiateDriver() {\r\n\r\n\t\ttry {\r\n\r\n\t\t\tif (!strBrowser.isEmpty() && !strBrowser.equals(null)) {\r\n\r\n\t\t\t\t// checking the type of browser\r\n\t\t\t\tif (strBrowser.equalsIgnoreCase(\"Chrome\")) {\r\n\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", strChromeDriverPath);\r\n\t\t\t\t\tBaseClass.wbDriver = new ChromeDriver();\r\n\r\n\t\t\t\t} else if (strBrowser.equalsIgnoreCase(\"Firefox\")) {\r\n\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", strGeckoDriverPath);\r\n\t\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\r\n\t\t\t\t\tcapabilities.setCapability(\"marionette\", true);\r\n\t\t\t\t\tBaseClass.wbDriver = new FirefoxDriver(capabilities);\r\n\r\n\t\t\t\t} else if (strBrowser.equalsIgnoreCase(\"IE\")) {\r\n\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", strIEDriverPath);\r\n\t\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\r\n\t\t\t\t\t// capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\r\n\t\t\t\t\tcapabilities.setCapability(\"requireWindowFocus\", true);\r\n\t\t\t\t\tcapabilities.setCapability(\"ignoreZoomSetting\", true);\r\n\t\t\t\t\tBaseClass.wbDriver = new InternetExplorerDriver(capabilities);\r\n\r\n\t\t\t\t} else if (strBrowser.equalsIgnoreCase(\"EDGE\")) {\r\n\r\n\t\t\t\t\tSystem.setProperty(\"webdriver.edge.driver\", strEdgeDriverPath);\r\n\t\t\t\t\tBaseClass.wbDriver = new EdgeDriver();\r\n\r\n\t\t\t\t} else if (strBrowser.equalsIgnoreCase(\"HtmlUnit\")) {\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * DesiredCapabilities caps = new DesiredCapabilities();\r\n\t\t\t\t\t * caps.setJavascriptEnabled(true); // not really needed: JS enabled by default\r\n\t\t\t\t\t * caps.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY,\r\n\t\t\t\t\t * \"C:/phantomjs.exe\"); \r\n\t\t\t\t\t * WebDriver driver = new PhantomJSDriver(caps);\r\n\t\t\t\t\t */\r\n\t\t\t}\r\n\r\n\t\t\t\tdriver = new EventFiringWebDriver(BaseClass.wbDriver);\r\n\t\t\t\t// putting an implicit wait after every Action or Event\r\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\r\n\t\t\t\t// opening the browser\r\n\t\t\t\tLogFactory.info(\"opening the browser....\");\r\n\t\t\t\tdriver.navigate().to(BaseClass.URL);\r\n\t\t\t\tBaseClass.endImpersonateURL = BaseClass.URL+\"/wps/myportal/dpath/!ut/p/a1/04_SD9OPyvLKK_bOryzXNQ7Uj9SPMrQ0MLbQj8zJ1y_IcVQEAE4wkcg!/\";\r\n\t\t\t\tdriver.manage().window().maximize();\r\n\t\t\t\tdriver.manage().deleteAllCookies();\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tLogFactory.info(\"Invalid Browser\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3fa7aa9115cac13e4c8634431ba54be3", "score": "0.59947205", "text": "@BeforeClass\n public static void driverSetup() {\n\n if (System.getProperty(\"webdriver.chrome.driver\") == null) {\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_PATH);\n }\n if (System.getProperty(\"webdriver.gecko.driver\") == null) {\n System.setProperty(\"webdriver.gecko.driver\", FIREFOX_DRIVER_PATH);\n }\n if (System.getProperty(\"webdriver.edge.driver\") == null) {\n System.setProperty(\"webdriver.edge.driver\", EDGE_DRIVER_PATH);\n }\n driver = new ChromeDriver();\n }", "title": "" }, { "docid": "bf5e19b83e1ea924a8456b17f650a0de", "score": "0.5984639", "text": "@BeforeClass\n public void init() {\n\n System.setProperty(\"webdriver.chrome.driver\", \"<path>\");\n \n// webDriver = new FirefoxDriver(ffProfile);\n\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"start-maximized\");\n\n webDriver = new ChromeDriver(options);\n }", "title": "" }, { "docid": "a4e7d4788f54601e70f82287eecde339", "score": "0.5976582", "text": "public static void main(String[] args) {\n DesiredCapabilities chromeCaps = DesiredCapabilities.chrome();\n // chromeCaps.setBrowserName(\"chrome\");\n\n RemoteWebDriver chrome;\n try {\n chrome = new RemoteWebDriver(new URL(\"http://140.134.26.76:38101/wd/hub\"), chromeCaps);\n chrome.get(\"https://www.google.com\");\n System.out.println(chrome.getTitle());\n chrome.quit();\n \n } catch (MalformedURLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "329da3cbd897f213e4883659e0a3fc88", "score": "0.5970062", "text": "public WebDriver getBackendDriver() {\n WebDriver driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(11, TimeUnit.SECONDS);\n loginPage.openLoginPage(driver, \"backend\");\n loginPage.enterUsername(\"admin\");\n loginPage.enterPassword(\"admin\");\n loginPage.submitForm();\n driverList.add(driver);\n return driver;\n }", "title": "" }, { "docid": "aef0b1a15b313d12e20164beab73b9f4", "score": "0.5968233", "text": "@Given(\"^Lauchbrowser$\")\n\tpublic void lauchbrowser() throws Throwable {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\sivasankar\\\\Desktop\\\\Project\\\\Sample\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"http://demo.guru99.com/V1/index.php\");\n\t \n\t}", "title": "" }, { "docid": "866b2221bdfdeeda049cbeddf2dd07c9", "score": "0.59640837", "text": "@Before\r\n\tpublic void setUp()\r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./lib/chromedriver.exe\");\r\n\t\tdriver = new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t}", "title": "" }, { "docid": "e2400684cf671a570b19f1e42a96158b", "score": "0.59638774", "text": "@Before\n\tpublic void setup() {\n\t\tdriver= utilities.DriverFactory.get(\"chrome\");\n\t\tdriver.get(url);\n\t\t\n\t}", "title": "" }, { "docid": "4a78a5f6cd4c261cdadbe278af716dc8", "score": "0.5961335", "text": "@Before//Before run All Feature file.\n public void openBrowser() {\n browserManager.setUpBrowser();//call Method of BrowserManager class\n }", "title": "" }, { "docid": "e535fa0e14211f341d0a632cdc936e4b", "score": "0.59578246", "text": "public static WebDriver getWebDriver(String browser,String seleniumHost, String seleniumPort) throws IOException {\r\n\t \t\tswitch (BrowserType.valueOf(browser)) {\r\n\t \t\tcase FIREFOX:\r\n\t \t\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n\t \t\t\tFirefoxProfile fireFoxProfile;\r\n\t \t\t\tif(seleniumHost.contains(\"localchost\")){ \r\n\t \t fireFoxProfile = new FirefoxProfile(); \r\n\t \t \tdriver=new FirefoxDriver(fireFoxProfile);\r\n\t \t\t\t}else{\r\n\t \t\t\t// if a matching driver cannot be located\r\n\t \t\t\tURL url=new URL(\"http\",seleniumHost,Integer.parseInt(seleniumPort),\"/wd/hub\");\r\n\t \t\t\tcapabilities.setBrowserName(browser);\r\n\t \t\t\tdriver = new RemoteWebDriver(url,capabilities);\r\n\t \t\t\t} \r\n\t \t\t\treturn driver;\r\n\t \t\t\t\r\n\t \t\tcase IE:\r\n\t \t\t\tDesiredCapabilities ieCapabilities = DesiredCapabilities\r\n\t \t\t\t\t\t.internetExplorer();\r\n\t \t\t\tieCapabilities.setCapability(\"nativeEvents\", false);\r\n\t \t\t\tieCapabilities.setCapability(\"requireWindowFocus\", true);\r\n\t \t\t\tieCapabilities\r\n\t \t\t\t\t\t.setCapability(\r\n\t \t\t\t\t\t\t\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\r\n\t \t\t\t\t\t\t\ttrue);\r\n\t \t\t\tieCapabilities.setCapability(\"enableElementCacheCleanup\", true);\r\n\t \t\t\tFile file = new File(new java.io.File(\".\").getCanonicalPath()\r\n\t \t\t\t\t\t+ IE_FILE_PATH);\r\n\t \t\t\tSystem.setProperty(\"webdriver.ie.driver\", file.getAbsolutePath());\r\n\t \t\t\treturn new InternetExplorerDriver(ieCapabilities);\r\n\t \t\tcase SAFARI:\r\n\t \t\t\tDesiredCapabilities safariCapabilities = DesiredCapabilities\r\n\t \t\t\t\t\t.safari();\r\n//\t \t\t\tsafariCapabilities.setCapability(\r\n//\t \t\t\t\t\tSafariDriver.CLEAN_SESSION_CAPABILITY, true);\r\n\t \t\t\treturn new SafariDriver(safariCapabilities);\r\n\t \t\tcase CHROME:\r\n\t \t\t\tDesiredCapabilities chromeCapabilities = DesiredCapabilities\r\n\t \t\t\t\t\t.chrome();\r\n\t \t\t\t\r\n\t \t\t\tSystem.setProperty(\"webdriver.chrome.driver\",CHROME_FILE_PATH);\r\n\t \t\t\treturn new ChromeDriver(chromeCapabilities);\r\n\t \t\tdefault:\r\n\t \t\t\tthrow new RuntimeException(\"Browser type unsupported\");\r\n\t \t\t}\r\n\t \t}", "title": "" }, { "docid": "e8b8512236f920fff824d4384d6022de", "score": "0.59574693", "text": "public void initiateDriver(String browserType) \n\t{\t\t\n\t\tlog.info(\"Browser name present in config file :\" + browserType);\t\t \t\t\t\t\n\t\tlog.info(\"-----------------STARTED RUNNING SELENIUM TESTS ON LOCAL MACHINE------------------\");\n\t\tsetDriver(browserType);\t\n\t\t\n\t}", "title": "" }, { "docid": "7b25d4486145909cb4741a835799d048", "score": "0.5952534", "text": "public WebDriver initilize_driver() {\n\t\t\n\t\tString browser=\"chrome\";\n\t\tif(browser.equals(\"chrome\")){\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver=new ChromeDriver();\n\t }\n\t\telse if(browser.equals(\"ff\")) {\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver=new FirefoxDriver();\n\t\t}\n\tdriver.manage().window().fullscreen();\n\tdriver.manage().deleteAllCookies();\n\tdriver.manage().timeouts().pageLoadTimeout(20, TimeUnit.SECONDS);\n\tdriver.get(\"https://login.salesforce.com/\");\n\ttry {\n\t\tThread.sleep(3000);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\treturn driver;\n\t}", "title": "" }, { "docid": "0f338bb1a459b121297ba977649f31e0", "score": "0.5950666", "text": "public static WebDriver setBrowser(String Browser) throws IOException, InterruptedException{\n\t\t\n\t\tif(Browser.equalsIgnoreCase(\"Chrome\"))\n\t\t{\t\n\t\t\tdriver = new ChromeDriver();\n\t\t\t\n\t\t} else if (Browser.equalsIgnoreCase(\"Firefox\"))\n\t\t{\n\t\t\t\n\t\t\tdriver = new FirefoxDriver();\n\t\t\t\n\t\t} \n\n\t\telse if (Browser.equalsIgnoreCase(\"IE\"))\n\t\t{\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t}\n\t\t\n\t\tLandingPage landingPage = new LandingPage(driver);\n\t\tlandingPage.navigateToWebSite();\n\t\treturn driver;\n\t\t\n\t}", "title": "" }, { "docid": "94c06b606b1190c1270bcc9e0ee4c312", "score": "0.5941726", "text": "private void setup()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(!Files.isDirectory(WEBDRIVER_ROOT_DIRECTORY))\r\n\t\t\t{\r\n\t\t\t\tFiles.createDirectory(WEBDRIVER_ROOT_DIRECTORY);\r\n\t\t\t}\r\n\t\t\tif(!Files.exists(FIREFOX_WEBDRIVER_PATH))\r\n\t\t\t{\r\n\t\t\t\tFiles.write(FIREFOX_WEBDRIVER_PATH, getClass().getResourceAsStream(FIREFOX_DRIVER).readAllBytes());\r\n\t\t\t}\r\n\t\t\tif(!Files.exists(CHROME_WEBDRIVER_PATH))\r\n\t\t\t{\r\n\t\t\t\tFiles.write(CHROME_WEBDRIVER_PATH, getClass().getResourceAsStream(CHROME_DRIVER).readAllBytes());\r\n\t\t\t}\r\n\t\t\tif(!Files.exists(OPERA_WEBDRIVER_PATH))\r\n\t\t\t{\r\n\t\t\t\tFiles.write(OPERA_WEBDRIVER_PATH, getClass().getResourceAsStream(OPERA_DRIVER).readAllBytes());\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IOException | SecurityException e)\r\n\t\t{\r\n\t\t\talert(\"Error installing WebDrivers. Please check folder permissions.\", Alert.AlertType.ERROR);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", FIREFOX_WEBDRIVER_PATH.toString());\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", CHROME_WEBDRIVER_PATH.toString());\r\n\t\t\tSystem.setProperty(\"webdriver.opera.driver\", OPERA_WEBDRIVER_PATH.toString());\r\n\t\t}\r\n\t\tcatch(SecurityException e)\r\n\t\t{\r\n\t\t\talert(\"Error installing WebDrivers. Please check your system property permissions.\", Alert.AlertType.ERROR);\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1e7c28af77e688e28fff1e6d22465dd6", "score": "0.5936856", "text": "public void setDriver(String value) {\n setAttributeInternal(DRIVER, value);\n }", "title": "" }, { "docid": "6bd7a7e6d4a1ea03e75e53a417797c4e", "score": "0.59360653", "text": "public WebDriver getFrontendDriver() {\n WebDriver driver = new ChromeDriver();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n loginPage.openLoginPage(driver, \"frontend\");\n loginPage.enterUsername(\"demo\");\n loginPage.enterPassword(\"demo\");\n loginPage.submitForm();\n driverList.add(driver);\n return driver;\n }", "title": "" }, { "docid": "5c8ac44e49ca121cb24a0c747660d94f", "score": "0.5935755", "text": "@BeforeTest\n\t@Parameters(\"browser\")\n\tpublic void setBaseURL(String browser) throws InterruptedException, IOException {\n\t\tif (browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tSystem.out.println(\"your test cases are running in chrome browser\");\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"D:/chromedriver_win32/webdriverchrome/chromedriver.exe\");\n\t\t\t/*---opening the chrome browser----*/\n\t\t\tdriver = new ChromeDriver();\n\t\t\t/*---maximizing the browser window---*/\n\t\t\tdriver.manage().window().maximize();\n\t\t\tdriver.manage().deleteAllCookies();\n\t\t\tThread.sleep(2000);\n\t\t\t/*---Entering the store url in browser window---*/\n\t\t\tSystem.out.println(\"navigating to EQA1 store page!!!!\");\n\t\t\tString baseURL = \"http://store.qa7.netzero.net/?cf=sp\";\n\t\t\tdriver.navigate().to(baseURL);\n\n\t\t}\n\t}", "title": "" }, { "docid": "4aa758d64c5801e9a7cd120eb393699f", "score": "0.59093106", "text": "@BeforeTest\n\tpublic void before()throws InterruptedException{\n\t\tdriver=Drivers.getDriver(\"chrome\");\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "3c6044bb5ed241dd9927925e699d66af", "score": "0.58936894", "text": "@BeforeMethod\r\n\tpublic void start() {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"D:\\\\Automation_Environment\\\\ChromeIE_Drivers\\\\geckodriver.exe\");\r\n\t\twd = new FirefoxDriver();\r\n\t\t// --------To launch chrome browser\r\n\t\t// System.setProperty(\"webdriver.chrome.driver\",\r\n\t\t// \"D:\\\\Automation_Environment\\\\ChromeIE_Drivers\\\\chromedriver.exe\");\r\n\t\t// wd = new ChromeDriver();\r\n\t\t// --------To launch IE browser\r\n\t\t// System.setProperty(\"webdriver.ie.driver\",\r\n\t\t// \"D:\\\\Automation_Environment\\\\ChromeIE_Drivers\\\\IEDriverServer.exe\");\r\n\t\t// wd = new InternetExplorerDriver();\r\n\t}", "title": "" }, { "docid": "6ebe5b79dcd90cbef39b0c86ab2462d5", "score": "0.5888955", "text": "public static void main(){\n\t//Change the Path to chrome driver in local machine\n\tFile file = new File(\"C:\\\\Users\\\\Kiranmai.adams\\\\Downloads\\\\STATravelTest\\\\WebDrivers\\\\chromedriver.exe\");\n\tSystem.setProperty(\"webdriver.chrome.driver\", file.getAbsolutePath());\n\tstaTravelDriver = new ChromeDriver();\n\tstaTravelDriver.manage().window().maximize();\n\t\n\t}", "title": "" }, { "docid": "7af4058df167a53816cd090c04d24d77", "score": "0.5888431", "text": "public void readCapabilities() {\n\n driverName = getProperty(\"DRIVER_NAME\").toLowerCase();\n url = getProperty(\"WEB_URL\");\n\n launchingBrowser = driverName.equalsIgnoreCase(\"chrome\") ? BROWSER.CHROME : BROWSER.FIREFOX;\n }", "title": "" }, { "docid": "d935145a5d889259eee7c34ace2c5af3", "score": "0.5882248", "text": "public static void choserChromeDriver() {\n\t\tLogger.getLogger(\"org.openqa.selenium.remote\").setLevel(Level.OFF);\n\t\tChromeOptions options = new ChromeOptions();\n\t\tSystem.setProperty(\"webdriver.chrome.silentOutput\", \"true\");\n\t\toptions.addArguments(\"window-size=900,850\");\n\t\tdriver = new ChromeDriver(options);\n\t\tdriver.manage().window().setPosition(new Point(600, 10));\n\t}", "title": "" }, { "docid": "759604df717207428dfa52bff5f30442", "score": "0.58818495", "text": "public WebDriver getWebDriver() {\n\t\tString browserName = System.getProperty(\"browser_name\");\n\t\tlogger.info(\"Driver To Be Instantiated :\" + browserName);\n\t\tif (browserName.equalsIgnoreCase(\"FIREFOX\")) {\n\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"geckodriver\"));\n\t\t\n\t\t\tFirefoxOptions options = new FirefoxOptions();\n\t\t\t//options.addPreference(\"browser.privatebrowsing.autostart\", true);\n\t\t\toptions.addPreference(\"extensions.allowPrivateBrowsingByDefault\", true);\n\t\t\twebDriver = new FirefoxDriver(options);\n\t\t} else if (browserName.equalsIgnoreCase(\"CHROME\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", System.getProperty(\"chromedriver\"));\n\t\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t\twebDriver = new ChromeDriver(chromeOptions);\n\t\t} else if (browserName.equalsIgnoreCase(\"IE\")) {\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", System.getProperty(\"iedriver\"));\n\t\t\tDesiredCapabilities capabilities= DesiredCapabilities.internetExplorer();\n\t\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n\t\t\twebDriver = new InternetExplorerDriver();\n\t\t}else if(browserName.equalsIgnoreCase(\"edge\")) {\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\", System.getProperty(\"edgedriver\"));\n\t\t\twebDriver = new EdgeDriver();\n\t\t}\n\t\twebDriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\twebDriver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);\n\t\twebDriver.manage().window().maximize();\n\t\tlogger.info(\"Web Driver instantiated \");\n\t\treturn webDriver;\n\t}", "title": "" } ]
5bbc550fc09bb29a183d83345af16f66
handle for every card this player is dealt. kaiser state is DEAL Default impl does nothing.
[ { "docid": "b8d57804d7e1ff92ac5205c5a47b4293", "score": "0.67858016", "text": "public void onDealtCard(Kaiser k, Card c) {\r\n }", "title": "" } ]
[ { "docid": "c2772172352f13f3d595c57e6472b4db", "score": "0.6715749", "text": "public void deal()\r\n\t{\t\t\t\r\n\t\tif(cardsDealt)\r\n\t\t{//if cards are still in the game the dealer needs to clear them\r\n\t\t\tclear();\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tPlayer currentPlayer = user;//the dealer starts with the user\r\n\t\t\t\t\r\n\t\tfor(int i = 0; i < PLAYERS * CARDS_IN_A_HAND; i++)\r\n\t\t{//the dealer will deal a hand to each player\r\n\t\t\tCard newCard = theDeck.draw();//the dealer draws a new card from the deck\t\t\t\r\n\t\t\t\r\n\t\t\tcurrentPlayer.cardFromDealer(newCard);//the dealer gives that card to the player they are focusing on\r\n\t\t\t\r\n\t\t\tcurrentPlayer = currentPlayer.getOpponent();//and then moves on to the other player\r\n\t\t}\t\t\r\n\t\t\r\n\t\tcardsDealt = true;//now the cards have been dealt\r\n\t\t\r\n\t\tuser.flipCards();//the user's cards are flipped face up\r\n\t}", "title": "" }, { "docid": "71821ddc56ef3a93fea59b1d0fd3fa6a", "score": "0.6711904", "text": "public void deal() {\n\t\tfor (int i = 0; i < INIT_DEAL; i++) {\n\t\t\t\n\t\t\tif (getPlayer().getInGame() == false) {\n\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tplayers[i].addToHand(deck[deckIndex]);\n\t\t\tdeckIndex++;\n\t\t}\n\t\t\n\t\t/* Deal second card to each player. */\n\t\tfor (int i = 0; i < INIT_DEAL; i++) {\n\t\t\t\n\t\t\tplayers[i].addToHand(deck[deckIndex]);\n\t\t\tdeckIndex++;\n\t\t}\n\t\t\n\t\t/* Deal to dealer. */\n\t\t\n\t\tdealer.addToHand(deck[deckIndex]);\n\t\tdeckIndex++;\n\t\tdealer.addToHand(deck[deckIndex]);\n\t\tdeckIndex++;\n\t\t\n\t}", "title": "" }, { "docid": "90c51f9828f704bb9f2b9c142270a0af", "score": "0.6547566", "text": "public void dealPlayerCards(Player player) {\n \toutput.println(\"DEALING START \");\n// \tfor (int i = 0; i < 4; i++) {\n// \t\tif (player.player_num != player_num) {\n// \t\t\tplayer = player.next;\n// \t\t}\n// \t}\n\t \tfor (int i = 0; i < player.hand.size(); i++) {\n\t \t\toutput.println(\"CARD \" + player.hand.get(i));\n\t \t}\n \toutput.println(\"DEALING COMPLETE\");\n }", "title": "" }, { "docid": "73b16b2125ca325547cc5ed8ddfca63c", "score": "0.6360625", "text": "@Override\n\tpublic void dealCards(List<Hand> hands) {\n\n\t}", "title": "" }, { "docid": "821bb7aab43c592d658b9995f315fb59", "score": "0.63350827", "text": "public void deal() {\n\t\tgameEnd = false;\n\t\tfor (int i = 0; i < players.size(); i++)\n\t\t\tplayers.get(i).clearHand();\n\t\tdealerHand.clear();\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tif (deck.getCard(i).getVal() == shuffleMark)\n\t\t\t\tshuffleFlag = true;\n\t\t}\n\t\t\n\t\tif (shuffleFlag) {\n\t\t\tshuffle();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tfor (int j = 0; j < players.size(); j++)\n\t\t\t\tplayers.get(j).drawCard(deck.toBottom());\n\t\t\tdealerHand.add(deck.toBottom());\n\t\t}\n\t}", "title": "" }, { "docid": "33cb712f0ecde153ac69a6e01d1af528", "score": "0.6254597", "text": "public Card dealCard() { \n\t\treturn cards.remove( 0 );\n\t}", "title": "" }, { "docid": "2a8978b04f18c2b697ae1d94994dd4bb", "score": "0.6203637", "text": "public void deal() {\n for (int i = 0; i < 5; i++) { // Deal 5 cards one at a time to each player\n for (int k = 0; k < numPlayers; k++) {\n players.get(k).addCard(deck.draw());\n }\n }\n }", "title": "" }, { "docid": "e1409a41c58a6a7674189632e5a5dd4c", "score": "0.61851895", "text": "void deal(int noCards);", "title": "" }, { "docid": "f15d96000a34c6adf5348650f179dec7", "score": "0.6176955", "text": "private void dealDeck() {\n\t\tint index = 0;\n\t\twhile (index < deck.size()) {\n\t\t\tfor (Player pla:playerInstances) {\n\t\t\t\tif (index < deck.size()) {\n\t\t\t\t\tpla.dealCard(deck.get(index));\n\t\t\t\t\tindex++;\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "45bbd35b72dcf41b99cc8628d9d93493", "score": "0.6136904", "text": "private void dealCards() {\r\n\t\tint count = 0;\r\n\t\tint numPlayers = model.getNumPlayers();\r\n\t\twhile(count<numPlayers){\r\n\t\t\t//deal to a single player\r\n\t\t\tmodel.dealCards();\r\n\t\t\tcount++;\r\n\t\t\tmodel.nextPlayer();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4c0dfa965893c6d950cccfec40a200c2", "score": "0.6134894", "text": "public Card dealCard() \n\t{\n\t\t// determine whether Cards remain to be dealt\n\t\tif (currentCard < deck.length)\n\t\t\treturn deck[currentCard++]; \n\t\telse \n\t\t\treturn null; \n\t\t\n\t}", "title": "" }, { "docid": "36e7e32a102ae1458569c1ed224b8845", "score": "0.6120138", "text": "public Card deal()\n\t{\n\t\treturn deal(1).get(0);\n\t}", "title": "" }, { "docid": "96435ec6ce16038cf941a9a25232e33b", "score": "0.60768175", "text": "private void dealCard()\n\t{\n\t\tif(deck.isEmpty()){\n\t\t\tnewShuffledDeck();\n\t\t}\n\t\tplayerCards.add(deck.returnFirstCard());\n\t}", "title": "" }, { "docid": "8554d7a050169e363bb9eceb264c2f94", "score": "0.6072545", "text": "private void dealCards(final int cardCount) {\n \n \t\tfor (final Player hand : Player.getOrderedList()) {\n \t\t\t// for all players\n \t\t\tfor (int j = 0; j < cardCount; j++) {\n \t\t\t\t// deal amount of cards\n \t\t\t\tfinal Card card = deck.remove(0);\n \t\t\t\t// player can get original card object because Card is immutable\n \t\t\t\tgetPlayerInstance(hand).takeCard(card);\n \t\t\t\tdata.setDealtCard(hand, card);\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "25d149578a5b6d878c7e09faa3ad752c", "score": "0.60677624", "text": "public void dealCards() {\n \n \t\tif (deck == null) {\n \t\t\t// Skat game has no cards, yet\n \t\t\tdeck = new CardDeck();\n \t\t\tlog.debug(\"shuffling...\"); //$NON-NLS-1$\n \n \t\t\tdeck.shuffle();\n \t\t\tlog.debug(deck.toString());\n \t\t}\n \n \t\tdoSleep(maxSleep);\n \n \t\tlog.debug(\"dealing...\"); //$NON-NLS-1$\n \n \t\t// deal three rounds of cards\n \t\t// deal three cards\n \t\tdealCards(3);\n \t\t// and put two cards into the skat\n \t\tdata.setDealtSkatCards(deck.remove(0), deck.remove(0));\n \t\t// deal four cards\n \t\tdealCards(4);\n \t\t// deal three cards\n \t\tdealCards(3);\n \n \t\t// show cards in the view\n \t\tfinal Map<Player, CardList> dealtCards = data.getDealtCards();\n \t\tfor (final Player currPlayer : Player.getOrderedList()) {\n \n \t\t\tview.addCards(tableName, currPlayer, dealtCards.get(currPlayer));\n \t\t}\n \n \t\tdoSleep(maxSleep);\n \n \t\tlog.debug(\"Fore hand: \" + data.getPlayerCards(Player.FOREHAND)); //$NON-NLS-1$\n \t\tlog.debug(\"Middle hand: \" //$NON-NLS-1$\n \t\t\t\t+ data.getPlayerCards(Player.MIDDLEHAND));\n\t\tlog.debug(\"Rear hand: \" + data.getPlayerCards(Player.REARHAND)); //$NON-NLS-1$\n \t\tlog.debug(\"Skat: \" + data.getSkat()); //$NON-NLS-1$\n \t}", "title": "" }, { "docid": "178e627a929b7a78c1e361b4db169362", "score": "0.6060168", "text": "public void deal(Player p){\n\t\tSystem.out.println(\"dealing...\");\n\t\t\tcardDelt= deck.dealCard();\n\t\t\t//cardDelt.showCard();\n\t\t\tp.setHand(cardDelt);\n\t}", "title": "" }, { "docid": "02735129225749f5a8af8468590aaf15", "score": "0.60508204", "text": "public void deal()\n {\n \t// rotate current player order such that dealer is first\n \taPlayers = rotate(aPlayers, aDealer);\n \t\n \t// initialize deck\n \tDeck lDeck = new Deck();\n \tlDeck.shuffle();\n \t\n \t// distribute the cards\n for(APlayer p: aPlayers)\n {\n for(int i = 0; i < CARDSINHAND; i++)\n {\n p.addCardToHand(lDeck.draw());\n }\n }\n \n // make the widow with remaining cards\n aWidow = new Hand();\n while(lDeck.size() > 0)\n {\n aWidow.add(lDeck.draw());\n }\n notifyObservers(new Notification(\"game.engine\", this, getNotificationSequenceNumber(), State.newDeal.toString())); \n \n // update playing order so that player to dealer's left starts bidding\n aPlayers = rotate(aPlayers, aPlayers[1]);\n }", "title": "" }, { "docid": "07c9a750483ae386871259a71f1a476f", "score": "0.60305786", "text": "public Card dealCard() {\n\t\treturn deck.remove(0);\n\t}", "title": "" }, { "docid": "6c1e2dc63168b553ea5f30a6aa10bab2", "score": "0.60198367", "text": "private void dealCards() {\r\n\t\tint playerNumber;\r\n\t\tCard card;\r\n\t\t\r\n\t\tfor(int i = 0; i < 51; ++i) {\r\n\t\t\tplayerNumber = i % 3;\r\n\t\t\tcard = deck.pop();\r\n\t\t\tsendCardToPlayer(players[playerNumber], playerNumber, card);\r\n\t\t\tplayers[playerNumber].hand.recieveCard(card.getSuit(), card.getNum());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "88a1490902a1625dc129fed40d2ae56f", "score": "0.6018212", "text": "public void deal() {\n\t\tdeck.shuffle();\n\t\tfor (int i = 0; i < 26; i++) {\n\t\t\thands[0].put(deck.deal());\n\t\t\thands[1].put(deck.deal());\n\t\t}\n\t}", "title": "" }, { "docid": "0e4129bea9170a90ceb2453d1fca2913", "score": "0.60070217", "text": "public Card deal()\n {\n if (positionD == 51)\n positionD = -1;\n\n //Moves the position of the card being dealt down one position\n positionD++;\n\n //Subrtract 1 because dealStart starts at -1 (due to arrays being less than one)\n numCardsInDeck = 52 - positionD - 1;\n\n // if (numCardsInDeck == 0)\n // System.out.println(\"There are no cards left in the deck.\");\n\n //Return the card at the position\n return deck[positionD];\n }", "title": "" }, { "docid": "7f2baba86fb5f39706d8cc3bf472dd78", "score": "0.5989257", "text": "void deal();", "title": "" }, { "docid": "54596d4a536bcd54f78acea5c7261524", "score": "0.59712315", "text": "private void dealerChoise(){\n\t\tfor(int i = 0; i < Player.size(); i++){\n\t\t\tif(!Player.get(i).bustStatus()){\n\t\t\t\twhile(comp.makeChoise()){\n\t\t\t\t\tcomp.addCardToHand(gameDeck.dealCard());\n\t\t\t\t\tprintCardsDealer(comp);\n\t\t\t\t\tif(this.checkBust(comp)){\n\t\t\t\t\t\tSystem.out.println(\"DEALER BUST!\");\n\t\t\t\t\t\tcomp.bust();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1ba076d4032eb097eb2ef2aca8c01712", "score": "0.5963329", "text": "public Card deal(){\r\n return deck.pop();\r\n }", "title": "" }, { "docid": "8ed639c715cd541188078f9aef458d40", "score": "0.59322006", "text": "public void dealCards() {\n System.out.println(\"Dealing Cards to your players\");\n try {\n Thread.sleep(4000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n for (Player player : playerList) {\n player.hit(deck.deal());\n player.hit(deck.deal());\n player.getAction();\n }\n //printing the players after dealing the card\n }", "title": "" }, { "docid": "18b17ba1209a83af126f2408f8912ecc", "score": "0.58489704", "text": "public void initialDeal() {\r\n\t\tSystem.out.println(\"\\n ------------------------ \\n\");\r\n\t\tSystem.out.println(\"Dealing Cards... \\n\");\r\n\t\t\r\n\t\t// initialize (i.e. clear) the player and dealer hands\r\n\t\tif (playerHand.size() != 0) {\r\n\t\t\tplayerHand.clearHand();\r\n\t\t}\r\n\t\t\r\n\t\tif (dealerHand.size() != 0) {\r\n\t\t\tdealerHand.clearHand();\r\n\t\t}\r\n\t\t\r\n\t\t// first to the player:\r\n\t\tplayerHand.addAtEnd(deck.deal());\r\n\t\tplayerHand.addAtEnd(deck.deal());\r\n\t\tSystem.out.println(\"\\t PLAYER HAND:\");\r\n\t\tSystem.out.println(playerHand.toString());\r\n\t\t\r\n\t\t// then to the dealer:\r\n\t\tSystem.out.println(\"\\t DEALER HAND:\");\r\n\t\tdealerHand.addAtEnd(deck.deal());\r\n\t\tdealerHand.addAtEnd(deck.deal());\r\n\t\t//System.out.println(dealerHand.toString());\r\n\t\tSystem.out.print(\"Exposed Card = \");\r\n\t\tSystem.out.println(dealerHand.get(0));\r\n\r\n\r\n\t}", "title": "" }, { "docid": "7aa7ed78560a4e8b731ef31d40daffc9", "score": "0.5815022", "text": "public void dealCards() {\r\n\t\tint peopleIter = 0;\r\n\t\twhile (deck.size() > 0) {\r\n\t\t\tpeople.get(peopleIter).addToHand(deck.get(deck.size()-1));\r\n\t\t\tdeck.remove(deck.size()-1);\r\n\t\t\tif (peopleIter+1 > people.size()-1) {\r\n\t\t\t\tpeopleIter = 0;\r\n\t\t\t} else {\r\n\t\t\t\tpeopleIter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "58fceb36973a15fb59797eb15ec59fae", "score": "0.5791005", "text": "public PokerHand deal() {\n\t\treturn new PokerHand(dealCards());\n\t}", "title": "" }, { "docid": "a7b292f01b3eca0f2014a4bd51a5a267", "score": "0.57894295", "text": "@Override\r\n\t\t\t\t\tpublic void onSwipe(Card card) {\n\t\t\t\t\t\tdeleteId = ((CartCard) card).getBookId();\r\n\t\t\t\t\t\tDelThread delThread = new DelThread();\r\n\t\t\t\t\t\tdelThread.start();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "5d3f597e0d287a6064936b2efc9c6061", "score": "0.57648003", "text": "public void deal(){\n playerCard=new ArrayList<>();\n dealerCard=new ArrayList<>();\n playerCard.add(deck.remove(0));\n dealerCard.add(deck.remove(0));\n playerCard.add(deck.remove(0));\n dealerCard.add(deck.remove(0));\n }", "title": "" }, { "docid": "45dc83ae63cb87dc4c14120f04780542", "score": "0.5755642", "text": "public Card deal() {\n\t\tif(deck.size() < 1) return null;\n\t\treturn deck.remove(0);\n\t}", "title": "" }, { "docid": "1ff402b7c3c4149106d045e021d42097", "score": "0.5736539", "text": "public void deal(Player first){\n\t\tfor (int i = 0; i < 2; i++){\n\t\t\tPlayer current = first;\n\t\t\twhile(current != null){\n\t\t\t\tif (current.ante){\n\t\t\t\t\tcurrent.getCard(deck.pop());\n\t\t\t\t}\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t\t\tDealer.dealCard(dealer);\n\t\t}\n\t\tsetTopCard();\n\t}", "title": "" }, { "docid": "0110f27391ac2ef07d1ca4b7a0f3864d", "score": "0.57284826", "text": "public Cards(){\n\t\t//local variables\n\t\t/** */\n\t\tint i = 0, j = 0, index = 0;//i is the player index, j is the card index (only 3 per player), index is for indexing the haves array\n\t\tint haves[] = new int[21];//keeps track of which cards have been dealt already\n\t\tboolean done = false;//loop control variable\n\t\tint card = generator.nextInt(21) + 1;//the current card to be dealt\n\t\tint secret[] = new int[3];\n\t\t\n\t\t//int secret1 = , secret2 = generator.nextInt(9) + 1, secret3 = generator.nextInt(6) + 1;\n\t\tsecret[0] = generator.nextInt(6) + 1;\n\t\tsecret[1] = generator.nextInt(9) + 1 + 6;\n\t\tsecret[2] = generator.nextInt(6) + 1 + 6 + 9;\n\t\n\t\t//while all the cards have yet to be dealt\n\t\twhile(!done){\n\t\t\tfor(int k = 0; k < haves.length-3; k++)//traverse already dealt cards\n\t\t\t\tif(haves[k] == card || secret[k%3] == card)//if we have seen it\n\t\t\t\t\tbreak;//move on, stop looking\n\t\t\t\telse if(k == haves.length-4){//we haven't seen it (traversed the array)\n\t\t\t\t\thaves[index] = card;//add it to what we have seen\n\t\t\t\t\tindex++;//increment index\n\t\t\t\t}\n\t\t\t\tif(index == haves.length-3)//if we have seen all the cards\n\t\t\t\t\tdone = true;//finish dealing cards\n\t\t\t\tcard = generator.nextInt(21) + 1;//get the next card to deal\n\t\t\t}\n\t\thaves[18] = secret[0];\n\t\thaves[19] = secret[1];\n\t\thaves[20] = secret[2];\n\t\t//translate integer card values to String card values and give to players\n\t\tfor(int k = 0; k < haves.length; k++){//traverse the haves array\n\t\t\tswitch(haves[k]){//switch from integer value to String value\n\t\t\t\tcase 1:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[0]; // Wrench\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[1]; // Pipe\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[2]; // Revolver\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[3]; // Rope\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[4]; // Knife\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tDeck[i][j] = Utilities.weaponNames[5]; // Candlestick\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[0]; // Kitchen\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[1]; // Ballroom\n\t\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[2]; // Observatory\n\t\t\t\t\tbreak;\n\t\t\t\tcase 10:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[3]; // Dining Room\n\t\t\t\t\tbreak;\n\t\t\t\tcase 11:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[4]; // Billiard Room\n\t\t\t\t\tbreak;\n\t\t\t\tcase 12:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[5]; // Library\n\t\t\t\t\tbreak;\n\t\t\t\tcase 13:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[6]; // Lounge\n\t\t\t\t\tbreak;\n\t\t\t\tcase 14:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[7]; // Hall\n\t\t\t\t\tbreak;\n\t\t\t\tcase 15:\n\t\t\t\t\tDeck[i][j] = Utilities.roomNames[8]; // Study\n\t\t\t\t\tbreak;\n\t\t\t\tcase 16:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[0]; // Miss Scarlet\n\t\t\t\t\tbreak;\n\t\t\t\tcase 17:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[1]; // Professor Plum\n\t\t\t\t\tbreak;\n\t\t\t\tcase 18:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[2]; // Mrs. Peacock\n\t\t\t\t\tbreak;\n\t\t\t\tcase 19:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[3]; // Mr. Green\n\t\t\t\t\tbreak;\n\t\t\t\tcase 20:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[4]; // Miss White\n\t\t\t\t\tbreak;\n\t\t\t\tcase 21:\n\t\t\t\t\tDeck[i][j] = Utilities.pieceNames[5]; // Colonel Mustard\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tj++;//increase the card #\n\t\t\tif(j == 3){//if a player has 3 cards\n\t\t\t\ti++;//next player gets cards now\n\t\t\t\tj = 0;//that player has no cards\n\t\t\t}\n\t\t}//end for loop\n\t}", "title": "" }, { "docid": "8b6a7f0c6f5f833cd45d2bbc4f069490", "score": "0.57247514", "text": "void onCardDeleted();", "title": "" }, { "docid": "a9f84996a905b1c967050b959fbd9ea4", "score": "0.5717128", "text": "public Card deal(){\r\n\t\tCard delt = new_deck.remove(topCard);\r\n\t\tpile.add(delt);\r\n\t\treturn delt;\r\n\t}", "title": "" }, { "docid": "89bbea188b957e8eff758ac7ae6b33da", "score": "0.57055044", "text": "public void dealCards(){\n\t\t\twhile (!deck.isEmpty())\n\t\t\t{\n\t\t\t\tfor (int i = 1; i < 8 ; i++) {\n\t\t\t\t\tfor (int j = 1; j <= 4; j++) \n\t\t\t\t\t\tgetTableau(j).add(deck.deal());}\n\t\t\t\tfor (int i = 1; i < 7; i++) {\n\t\t\t\t\tfor (int j = 5; j <= 8; j++) \n\t\t\t\t\t\tgetTableau(j).add(deck.deal());}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "f2c0a50f636d96829526f3e67f83d133", "score": "0.5698682", "text": "public void deal()\n {\n\n for(int i=1; i<8; i++)\n {\n for(int j=0; j<i; j++)\n {\n Card x=piles[i-1].push(stock.pop());\n if(j+1==i)\n {\n x.turnUp();\n }\n }\n }\n }", "title": "" }, { "docid": "0b5da0c8fed7f8fcb8dbf1a8ea37e2a3", "score": "0.5668375", "text": "public void deal3Cards(CardPlayer player);", "title": "" }, { "docid": "6f70a32dc83c19dfe863cbab273f8619", "score": "0.5667635", "text": "public void processDirectDebits() {\n\t\tfor(Payee payee : directDebits) {\n\t\t}\n\t}", "title": "" }, { "docid": "898a4ec181bc64b468ea753206bcffcb", "score": "0.5654659", "text": "@StreamListener(target = Sink.INPUT, condition = \"headers['micro'] == 8\")\n\tpublic void delCard(@RequestBody Card card) {\n\t\tList<Task> tasks = service.findByCardId(card.getcId());\n\t\tfor(Task t : tasks) {\n\t\t\tservice.deleteTask(t);\n\t\t}\n\t\tservice.deleteCard(card);\n\t}", "title": "" }, { "docid": "bf7b6605b25488e41b96abee29071522", "score": "0.5637488", "text": "@Override\n\tpublic Hand deal(int n) {\n Hand newPlayerHand = new ConcreteHand(n);\n for ( int i=0 ; i<n; i++)\n {\n\t newPlayerHand.addCard( deck.removeTopCard());\n\t \n\t \n }\n \n return newPlayerHand;\n\t}", "title": "" }, { "docid": "2f186bce53a30c47b33d49a21aa82cc0", "score": "0.5637075", "text": "public void deal(){\n\t\tdrawHole();\n\t\thit();\n\t\tif(handValue==11){\n\t\t\tBlackjack.showInsurance();\n\t\t} else {\n\t\t\tBlackjack.playerDeal();\n\t\t}\n\t\tvalueLabel.setText(\"Known Hand Value: \" + handValue);\n\t\tinfoPanel.setVisible(true);\n\t}", "title": "" }, { "docid": "f4bca0d329502b73e3f519fbe4af7aa1", "score": "0.563515", "text": "public void dealCard(Deck hand, int index) {\n \thand.addCard(cards.get(index));\n \tcards.remove(index);\n }", "title": "" }, { "docid": "832250ee9ecd5b96f21a8a1d0ade7438", "score": "0.5596883", "text": "private void dealHands() {\n for (Player next : players) {\n next.setHand(deck.deal(2)); \n }\n }", "title": "" }, { "docid": "162e450096f8700d0d53806be60d5b10", "score": "0.559365", "text": "private void dealCards() {\n for (int i = 0; i < 7; i++) {\n playerHand.addCard(drawPile.removeFirst());\n computerHand.addCard(drawPile.removeFirst());\n }\n }", "title": "" }, { "docid": "30fd0c78f0ac1981e0fa65bb2cf1cdb3", "score": "0.55855477", "text": "@Override\r\n\tpublic void delete(TP4piccard piccard) {\n\r\n\t}", "title": "" }, { "docid": "bec36ca2aa44557f11d286a66e6bfc00", "score": "0.5567769", "text": "private void dealCards(){\n int index = 0;\n boolean firstPass = true;\n while(index < Constants.EUKER_CARD_COUNT){\n int numCards = 2;\n if(!firstPass){\n numCards++;\n }\n for (Player player : players) {\n addCardsToPlayer(index, numCards, player);\n index += numCards;\n }\n firstPass = false;\n }\n }", "title": "" }, { "docid": "9949198951cc44ecba37caa0d8d5e5e3", "score": "0.55016375", "text": "public void dealCards(){\n \n Card one = new TrainCard(\"resources/images/trainCards/locomotive.jpg\",\"Locomotive\");\n \n P1.addToHand(one);\n P2.addToHand(new TrainCard(\"resources/images/trainCards/locomotive.jpg\",\"Locomotive\"));\n for(int i=0;i<7;i++){\n P1.addToHand(trainDeck.get(0));\n \n trainDeck.remove(0);\n \n P2.addToHand(trainDeck.get(0));\n \n trainDeck.remove(0);\n }\n updateTrack();\n \n view.updateDeckCounters(trainDeck.size(), ticketDeck.size());\n \n \n ArrayList<DestinationCard> dest = new ArrayList<DestinationCard>();\n for(int i=0; i<6;i++){\n dest.add(ticketDeck.get(i));\n \n \n }\n \n //add 5 to center\n for(int i=0;i<5;i++){\n moveToCenter(270+i*65, trainDeck.get(i).getImage());\n trainDeck.remove(trainDeck.get(0));\n }\n view.updateDeckCounters(trainDeck.size(), ticketDeck.size());\n //Deal tickets\n view.selectTickets(dest,\"Player 1\");\n \n dest.removeAll(dest);\n \n for(int i=6; i<12;i++){\n dest.add(ticketDeck.get(i));\n \n }\n \n view.selectTickets(dest,\"Player 2\");\n while(!view.botBoxClosed || !view.topBoxClosed)\n try {\n Thread.sleep(50);\n } catch (InterruptedException ex) {\n Logger.getLogger(Controller.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n \n Component[] topComp = view.topTicketHand.getComponents();\n Component[] botComp = view.botTicketHand.getComponents();\n \n \n \n view.updateScores();\n view.updateDeckCounters(trainDeck.size(), ticketDeck.size());\n }", "title": "" }, { "docid": "12a9a9c1eccebcc0cfce101cbc1f31e6", "score": "0.5482876", "text": "public void dealerTurn() {\n\t\tSystem.out.println(hand);\n\t\tboolean keepGoing = true;\n\t\twhile (keepGoing)\n\t\t\tif (hand.getHandValue() >= 17 && hand.getHandValue() < 22) {\n\t\t\t\tSystem.out.println(\"The dealer decides to stay\");\n\t\t\t\tkeepGoing = false;\n\t\t\t} else if (hand.getHandValue() < 17) {\n\t\t\t\tSystem.out.println(\"The dealer decides to hit\");\n\t\t\t\tdealToDealer();\n\t\t\t\tSystem.out.println(hand.getHandValue());\n\t\t\t} else {\n\t\t\t\tkeepGoing = false;\n\t\t\t}\n\t}", "title": "" }, { "docid": "27ed056a9531c24421011b63af70e808", "score": "0.54816914", "text": "public static void dealAllCards() {\r\n DeckOfCards myDeckOfCards = new DeckOfCards();\r\n myDeckOfCards.shuffle(); // place Cards in random order\r\n System.out.println(\"Dealing deck card by card\");\r\n System.out.println(\"====================================================================================\");\r\n\r\n // print all 52 Cards in the order in which they are dealt\r\n for (int i = 1; i <= 52; i++) {\r\n // deal and display a Card\r\n System.out.printf(\"%-19s\", myDeckOfCards.dealCard());\r\n\r\n if (i % 4 == 0) { // output a newline after every fourth card\r\n System.out.println();\r\n }\r\n }\r\n System.out.println();\r\n\r\n }", "title": "" }, { "docid": "66a6421813d2413f87fdec9f6482e4a6", "score": "0.5449481", "text": "public void discard(T card){\n discardedCards.add(card);\n }", "title": "" }, { "docid": "a7db18a7cb76df565fdb7c7b0520ecd0", "score": "0.54491115", "text": "private void deal() {\n\t\tdeck.shuffle();\n\t\tdeck.split(p1, p2);\n\t}", "title": "" }, { "docid": "1d475dceca9fa2659ec035d52438ba4e", "score": "0.54422545", "text": "protected void cardStolenIntoHand(PhysicalCard card) {\n }", "title": "" }, { "docid": "01f4e494f1ffd480f82cbd9fc4933e32", "score": "0.54394656", "text": "synchronized private void dealOutCards(boolean firstR) {\n\t\tif ( !firstR ) {\n\t\t\tfor (PokerPlayer player : this) {\n\t\t\t\tplayer.getNewCardsForHand();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ce72af2ddf6fc9a832f6f924c73bc117", "score": "0.5431534", "text": "public void testDealCard()\n\t{\n\t\tCard curCard = curDeck.dealCard();\n\t\tSystem.out.println(\"\\nDealt Card: \" + curCard.toString());\n\n\t\tif (curCard != null)\n\t\t{\n\t\t\tSystem.out.println(\"No error dealing card.\\n\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Error: dealing card failed!\\n\");\n\t\t}\n\t}", "title": "" }, { "docid": "f69a184076e8655f7836e089220caca8", "score": "0.54284054", "text": "@Override\n\tpublic void deal(Object obj) throws Exception {\n\n\t}", "title": "" }, { "docid": "938743b5d791eea83fce43c0907569dc", "score": "0.5424951", "text": "public static void dealCard(Player first){\n\t\tPlayer current = first;\n\t\tif (!current.getHand().isBusted()){\n\t\t\tcurrent.getCard(deck.pop());\n\t\tif (current.getHand().handValue > 21) System.out.println(\"BUST!\");\n\t\t}\n\t}", "title": "" }, { "docid": "a8407995adcb412f50889ede23d5f76b", "score": "0.54148597", "text": "@Override\n public void cardsDepleted() {\n clusterCard.setAdapter(adapter);\n }", "title": "" }, { "docid": "156e1b1a4a960ff0d87ca4f77cc2c745", "score": "0.5406397", "text": "public List deal(int num_cards) {\n SecureRandom random = new SecureRandom();\n List<Card> cards_dealt = new ArrayList<>();\n\n for (int i = 0; i < num_cards; i++) {\n Card aRandomCard = this.Deck.get(random.nextInt(this.getDeck().size()));\n cards_dealt.add(aRandomCard);\n this.Deck.remove(aRandomCard);\n }\n\n return cards_dealt;\n }", "title": "" }, { "docid": "b09eafd6b2cde97a02157c78c1a1d5ed", "score": "0.53903496", "text": "public desk () {\n for (unoCard.Color eachColor : unoCard.Color.values()) {\n for(unoCard.Number eachNumber : unoCard.Number.values()){\n unoCard eachCard = new unoCard(eachColor, eachNumber);\n thisTurn.add(eachCard);\n thisTurn.add(eachCard);\n }\n }\n Collections.shuffle(thisTurn); //shuffling the cards\n\n }", "title": "" }, { "docid": "0df2ed56bce5135b4dcafee71ec468c3", "score": "0.5382854", "text": "@Override\n protected final void cardsStolenIntoHand(Collection<PhysicalCard> cards) {\n if (cards.size() == 1) {\n cardStolenIntoHand(cards.iterator().next());\n }\n }", "title": "" }, { "docid": "668730b4fa47801082f4609f5b3af31f", "score": "0.5377499", "text": "public void dealCards(Dealer dealer, ArrayList<Player> players, Deck deck) {\n \t\n \t\n \t\n \tdealer.addCard(deck.drawCard());\n \t\n for(int i = 0; i < players.size(); i++) {\n \tPlayer curPlayer = players.get(i);\n \tif (curPlayer.getHand().getBet() > 0) {\n \t\tcurPlayer.addCard(deck.drawCard(), false);\t\n \t}\n }\n \n dealer.addCard(deck.drawCard());\n \n for(int i = 0; i < players.size(); i++) {\n \tPlayer curPlayer = players.get(i);\n \tif (curPlayer.getHand().getBet() > 0) {\n \t\tcurPlayer.addCard(deck.drawCard(), false);\t\n \t}\n }\n \n }", "title": "" }, { "docid": "b20866ed8f0fe8953ba468451ebaf75c", "score": "0.5374012", "text": "private void humanDealer()\n {\n window.message( \"It's your turn to be the dealer!\" );\n window.message( \"Your hand is:\\n\" + players[humanIndex].printHand()\n + \"\\nwith a value of \" + players[humanIndex].getHandValue() );\n cheat();\n window.message( \"As dealer, you have to hit until 17.\" );\n love.dealerStrategy( players[humanIndex], deck1 );\n }", "title": "" }, { "docid": "e6e77222deeb0644ef009871afac7325", "score": "0.53727597", "text": "@Override\n\tpublic void handleDELETE(CoapExchange exchange) {\n\t\tsuper.handleDELETE(exchange);\n\t}", "title": "" }, { "docid": "98729980241000f002bfe948d17fca51", "score": "0.53696823", "text": "private void dealCards(Player player, int numberOfCards){\n\t\tfor(int i = 0; i < numberOfCards; i++){\n\t\t\ttry{\n\t\t\t\tplayer.addCardToHand(gameDeck.dealCard());\n\t\t\t}\n\t\t\tcatch(NoSuchCardException e){\n\t\t\t\tSystem.out.println(\"No cards In deck, adding a new deck to the game! \");\n\t\t\t\t\tgameDeck.fill();\n\t\t\t\t\tgameDeck.shuffleCards();\n\t\t\t}\n\t}\n\t\t\n\t}", "title": "" }, { "docid": "bd85f1d77664acdd9840a5296b183af9", "score": "0.5367103", "text": "Hand()\n {\n updateCardArrays();\n }", "title": "" }, { "docid": "fdd43745508931fc66b7597cd5393b63", "score": "0.5366485", "text": "@Override\n\tpublic boolean performDebit(Card card) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ba0e665d27d090244a4e370fa3705641", "score": "0.5361659", "text": "public abstract void deinvite(ConquerPlayer player);", "title": "" }, { "docid": "f76eac2d924d747f2ba7eac0b6880edb", "score": "0.5361006", "text": "public Hand deal(int n);", "title": "" }, { "docid": "a8e31175d763ad28618af3601d51cd4d", "score": "0.5357575", "text": "private void dealerPlays() {\r\n\t\tdealerHand.add(hiddenCard);\r\n\r\n\t\tboolean flag = false;\r\n\r\n\t\twhile (!flag) {\r\n\t\t\tint val = getValue(dealerHand);\r\n\t\t\tif (val < 17) {\r\n\t\t\t\tdealerHand.add(deal());\r\n\t\t\t\tif (dealerHand.get(dealerHand.size() - 1).getValue() == -1) {\r\n\t\t\t\t\tisSoft = true;\r\n\t\t\t\t}\r\n\t\t\t} else if (val == 17 && isSoft) {\r\n\t\t\t\tdealerHand.add(deal());\r\n\t\t\t} else {\r\n\t\t\t\t// stand\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcalculateWin();\r\n\t}", "title": "" }, { "docid": "e36f6193efe814853c9ed2ca15a82017", "score": "0.5346901", "text": "public abstract void disband();", "title": "" }, { "docid": "e36f6193efe814853c9ed2ca15a82017", "score": "0.5346901", "text": "public abstract void disband();", "title": "" }, { "docid": "cada894394fa7fff452978bded904935", "score": "0.53232867", "text": "@Override\n\tpublic void useCard() {\n\t\t\n\t}", "title": "" }, { "docid": "876172f37857549f564819ffa4d17f4c", "score": "0.53224456", "text": "public void dealCards() {\n totalNumberOfCards = 0;\n //for each deck, deal cards to the players until the deck is empty\n for (Deck deck : decks) {\n deck.shuffle();\n while (deck.isNotEmpty())\n for (CardPlayer player : getPlayers().values()) {\n player.addCard(deck.dealCard());\n totalNumberOfCards++;\n }\n }\n }", "title": "" }, { "docid": "aaa581ef27df0d2ace05093f60e38c81", "score": "0.53173", "text": "@Override\n public void deleteCard(CardEntriesEntity card) {\n Log.v(LOG_TAG, this.getClass().getName() + \" | deleteCard | delete card: \"+card);\n repository.deleteCard(card);\n }", "title": "" }, { "docid": "f03782d0dc5e4ee882239ede3dced20c", "score": "0.5312188", "text": "public BlackjackCard dealCard() {\n if(cards.size() == 0 ){\n createShoe();\n }\n return cards.remove(0);\n }", "title": "" }, { "docid": "3b4e423e9983e8157777ca2535c2e5c1", "score": "0.5302518", "text": "public void dealTest()\n {\n System.out.println(\"\\f\");\n Deck d=new Deck();\n d.shuffle();\n PokerHand p=d.dealHand(7);\n System.out.println(p);\n }", "title": "" }, { "docid": "c635639255343984d111cccb264964df", "score": "0.5298391", "text": "public void exitSingleHandMode() {\n }", "title": "" }, { "docid": "b6e630d50a30286f00ca65bafbe0f24a", "score": "0.5286243", "text": "@Override\n\tpublic void handleDelivery(String consumerTag, Envelope envelope, AMQP.BasicProperties properties, byte[] body)\n\t\tthrows IOException {\n\t currentJob = DrillJob.NONE; // Transition to DrillJob.NONE state to\n\t\t\t\t\t// end digging cycle\n\t updateMotors(); // Ends digging cycle\n\t}", "title": "" }, { "docid": "f9497093316868a2a52d8e88dd23e6e5", "score": "0.5282008", "text": "public void stopDuel() {\n }", "title": "" }, { "docid": "fc058518faa9217c44df345c939fa0ed", "score": "0.52681184", "text": "public void cardOut() {\n\t\tisCardIn = false;\n\t}", "title": "" }, { "docid": "d78a749e95e13dbdd3af75a3712f3b0e", "score": "0.5261597", "text": "public void turnDownAll() {\n for (int i = 0; i < deck.size(); i++) {\n getCard(i).turnFaceDown();\n }\n }", "title": "" }, { "docid": "923083b294d08d01110343110bb7a959", "score": "0.5248647", "text": "public void handle(ActionEvent ae) {\n\t\t\t\tplayer.removeDoorCards(selectedDoorCards);\n\t\t\t\tplayer.removeTreasureCards(selectedTreasureCards);\n\t\t\t\tupdateAll();\n\t\t\t}", "title": "" }, { "docid": "85c60a5d21aeb785ef029fff59401618", "score": "0.52475595", "text": "public void dealHands(Player player) {\n\t\thand.add(dealCard());\n\t\thand.add(dealCard());\n\t\tplayer.getHand().add(dealCard());\n\t\tplayer.getHand().add(dealCard());\n\t}", "title": "" }, { "docid": "2bca9cf5687f5e5c13e16a9c0ebb950a", "score": "0.52386266", "text": "@Override\n public void discard(T card) {\n if (card == null) {\n throw new NullPointerException(\"Card cannot be null\");\n }\n discarded.add(card);\n }", "title": "" }, { "docid": "6726f95c3ab06a32e2689e3f2f9bafb0", "score": "0.5238065", "text": "private void cardsDown() {\r\n\t\tfor(int ind = 0; ind < selected.length; ind++) {\r\n\t\t\tselected[ind] = false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7b358599b8abfbb4b8012b8ee20bc183", "score": "0.52231354", "text": "@Override\n\tpublic void onDeadCardsModificadas(String stringCartas) {\n\t\t\n\t}", "title": "" }, { "docid": "26f14501d79b5b2ee95def4e436dc684", "score": "0.5221547", "text": "private static void dealCard(Deck deck, Hand hand) {\n if (deck.isEmpty()) { // If all the cards have been dealt from the deck\n deck.reset(); // return all the cards to the deck,\n deck.shuffle(); // and shuffle them.\n }\n\n hand.addCard(deck.dealCard()); // Deal a card from the deck, and add it to the hand.\n }", "title": "" }, { "docid": "5b1a1cedea1cdcaa14ff54a584e1596c", "score": "0.5216135", "text": "@Override\n public void finishBLE() {\n try {\n _btGatt.disconnect();\n } catch (Exception e) {\n System.out.println(e.toString());\n }\n _btAdapter = null;\n }", "title": "" }, { "docid": "4e500c017d3f029c5039ef012d816a95", "score": "0.5208787", "text": "private static void deal() {\n\t\tshuffle();\n\t\tint k = 0;\n\t\tString str = \"y\";\n\t\tint userCardCount = 0;\n\t\tint dealerCardCount = 0;\n\n\t\tCard[] userTmpArr = new Card[10];\n\n\t\tSystem.out.println(\"\\n\" + userName + \" :\"); // user's turn to play\n\t\tSystem.out.print(deck[k].toString() + \"\\t\"); // user starts with two cards\n\t\t// in their hand\n\t\tuserTmpArr[k] = deck[k]; // stores the cards in the user's hand to an array\n\t\tuserCardCount += deck[k++].getcardNo();\n\t\tSystem.out.print(deck[k].toString() + \"\\t\");\n\t\tuserTmpArr[k] = deck[k];\n\t\tuserCardCount += deck[k++].getcardNo();\n\t\tSystem.out.println(\"Total: \" + userCardCount);\n\n\t\tif (userCardCount > 21) {\n\t\t\tSystem.out.println(\"BUSTED!\");\n\n\t\t} else if (userCardCount == 21) {\n\t\t\tSystem.out.println(\"BLACK JACK!\");\n\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"If you want to continue, enter (y/Y): \"); // user\n\t\t\t// continues till they decide to stop or if they go bust or black jack\n\t\t\tstr = scn.nextLine();\n\t\t\twhile (str.equals(\"y\") || str.equals(\"Y\")) {\n\t\t\t\tuserTmpArr[k] = deck[k];\n\n\t\t\t\tfor (int i = 0; i <= k; i++) {\n\t\t\t\t\tSystem.out.print(userTmpArr[i].toString() + \"\\t\"); // prints the\n\t\t\t\t\t// user's hand each time\n\t\t\t\t}\n\t\t\t\tuserCardCount += deck[k++].getcardNo();\n\t\t\t\tSystem.out.println(\"Total: \" + userCardCount);\n\n\t\t\t\tif (userCardCount > 21) {\n\t\t\t\t\tSystem.out.println(\"BUSTED!\");\n\t\t\t\t\tuserCardCount = 0;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (userCardCount == 21) {\n\t\t\t\t\tSystem.out.println(\"IT'S A BLACK JACK!\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Do you want to continue(y/Y)?: \");\n\t\t\t\tstr = scn.nextLine();\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Dealer:\"); // dealer's turn to play\n\t\twhile (true) {\n\t\t\tif (dealerCardCount >= 17 && dealerCardCount < 21) { // stops the in\n\t\t\t\t// flow of cards after the count reaches 17\n\t\t\t\tSystem.out.println(\"Total: \" + dealerCardCount);\n\t\t\t\tbreak;\n\t\t\t} else if (dealerCardCount > 21) {\n\t\t\t\tSystem.out.println(\"Total: \" + dealerCardCount);\n\t\t\t\tSystem.out.println(\"BUSTED!\");\n\t\t\t\tdealerCardCount = 0;\n\t\t\t\tbreak;\n\t\t\t} else if (dealerCardCount == 21) {\n\t\t\t\tSystem.out.println(\"Total: \" + dealerCardCount);\n\t\t\t\tSystem.out.println(\"IT'S A BLACK JACK!\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.print(deck[k].toString() + \"\\t\");\n\t\t\t\tdealerCardCount += deck[k++].getcardNo();\n\t\t\t}\n\t\t}\n\n\t\tif (userCardCount > dealerCardCount) { // determining the winner based on\n\t\t\t// the addition of the cards in both hands\n\t\t\tSystem.out.println(\"YOU ARE THE WINNER!\");\n\t\t\tuserWinCount++;\n\t\t\tSystem.out.println(\n\t\t\t\t\tuserName + \"=\" + userWinCount + \"\\tDealer=\" + dealerWinCount);\n\n\t\t} else if (userCardCount == dealerCardCount) {\n\t\t\tSystem.out.println(\"IT'S A TIE!\");\n\t\t\tSystem.out.println(\n\t\t\t\t\tuserName + \"=\" + userWinCount + \"\\tDealer=\" + dealerWinCount);\n\t\t} else {\n\t\t\tSystem.out.println(\"YOU LOST! BETTER LUCK NEXT TIME\");\n\t\t\tdealerWinCount++;\n\t\t\tSystem.out.println(\n\t\t\t\t\tuserName + \"=\" + userWinCount + \"\\tDealer=\" + dealerWinCount);\n\t\t}\n\t}", "title": "" }, { "docid": "0c25c32ab76ff364f5f10fae69172321", "score": "0.5204037", "text": "public boolean acknowledgeCardAbility(Card card){\n if(card.isNoble){\n switch(card.getId()){\n\n //add noble from deck to end of card line after collecting this noble\n case \"Capt_Guard\":\n gameState.actionCardPlayed = true;\n dealNoble();\n gameState.actionCardPlayed = false;\n break;\n//\n// case \"Count\":\n// //needs to go in special calculate points\n// if(gameState.playerTurn == 0){\n// p0Count = true;\n// }\n// else{\n// p1Count = true;\n// }\n// break;\n//\n// case \"Countess\":\n// //need to go in calculate points statement\n// if(gameState.playerTurn == 0){\n// p0Countess = true;\n// }\n// else{\n// p1Countess = true;\n// }\n// break;\n//\n// case \"Fast_Noble\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// getNoble(gameState.p0Field);\n// }\n// else{\n// getNoble(gameState.p1Field);\n// }\n// gameState.actionCardPlayed = false;\n//\n// break;\n//\n// case \"General\":\n// gameState.actionCardPlayed = true;\n//\n// dealNoble();\n//\n// gameState.actionCardPlayed = false;\n//\n// break;\n//\n// //user selects a card in their action card and the click\n// //gets the location and then it uses the location to discard the card\n// case \"Innocent\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// discardActionCard(gameState.p0Field, loc);\n// }\n// else{\n// discardActionCard(gameState.p1Field, loc);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Lady\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// dealActionCard(gameState.p0Field);\n// }\n// else{\n// dealActionCard(gameState.p1Field);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Lady_Waiting\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// dealActionCard(gameState.p0Field);\n// }\n// else{\n// dealActionCard(gameState.p1Field);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Lord\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// dealActionCard(gameState.p0Field);\n// }\n// else{\n// dealActionCard(gameState.p1Field);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Spy\":\n// gameState.actionCardPlayed = true;\n// //need to add method and checks\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Palace_Guard1\":\n// //ability is in calculate point method\n// if(gameState.playerTurn == 0){\n// p0PalaceGuard++;\n// }\n// else{\n// p1PalaceGuard++;\n// }\n// break;\n//\n// case \"Palace_Guard2\":\n// //ability is in calculate point method\n// if(gameState.playerTurn == 0){\n// p0PalaceGuard++;\n// }\n// else{\n// p1PalaceGuard++;\n// }\n// break;\n//\n// case \"Palace_Guard3\":\n// //ability is in calculate point method\n// if(gameState.playerTurn == 0){\n// p0PalaceGuard++;\n// }\n// else{\n// p1PalaceGuard++;\n// }\n// break;\n//\n// case \"Palace_Guard4\":\n// //ability is in calculate point method\n// if(gameState.playerTurn == 0){\n// p0PalaceGuard++;\n// }\n// else{\n// p1PalaceGuard++;\n// }\n// break;\n//\n// case \"Palace_Guard5\":\n// //ability is in calculate point method\n// if(gameState.playerTurn == 0){\n// p0PalaceGuard++;\n// }\n// else{\n// p1PalaceGuard++;\n// }\n// break;\n//\n// case \"Rival1\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// gameState.p0Field.add(gameState.deckNoble.get(0));\n// gameState.deckNoble.remove(0);\n// }\n// else{\n// gameState.p1Field.add(gameState.deckNoble.get(0));\n// gameState.deckNoble.remove(0);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Rival2\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// gameState.p0Field.add(gameState.deckNoble.get(0));\n// gameState.deckNoble.remove(0);\n// }\n// else{\n// gameState.p1Field.add(gameState.deckNoble.get(0));\n// gameState.deckNoble.remove(0);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Robespierre\":\n// gameState.actionCardPlayed = true;\n// discardRemainingNobles();\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Clown\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// placeClown(gameState.p1Field, gameState.p0Field.get(gameState.p0Field.size()-1));\n// gameState.p0Field.remove(gameState.p0Field.size()-1);\n// }\n// else{\n// placeClown(gameState.p0Field, gameState.p1Field.get(gameState.p1Field.size()-1));\n// gameState.p1Field.remove(gameState.p1Field.size()-1);\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Tragic_Figure\":\n// //action is in calculate points method\n// break;\n//\n//\n }\n }\n else{\n switch(card.getId()){\n//\n// // put noble at front of line into other players field\n// case \"After_You\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n//\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// getNoble(gameState.p1Field);\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"After_You\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// getNoble(gameState.p0Field);\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"After_You\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble at front of line to end of line\n// case \"Bribed\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// moveNoble(0, gameState.nobleLine.size()-1);\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Bribed\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Bribed\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// case \"Callous\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Callous\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Callous\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //card goes to field and is used for the pointer counter\n// case \"Church_Support\":\n// gameState.actionCardPlayed = true;\n//\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Church_Support\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Church_Support\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n//\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //moves one green card to a different spot in the line\n// //gets the locations from the onclick, so i cant implement this\n// case \"Civic_Pride\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(gameState.nobleLine.get(loc1).cardColor.equals(\"Green\")) {\n// moveNoble(loc1, loc2);\n// }\n//\n//\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Civic_Pride\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Civic_Pride\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //increases point values in field. Will be calculated in a points method\n// case \"Civic_Support\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Civic_Support\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Civic_Support\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //lets players swap nobles (cant swap same noble)\n// //need locations that both players choose using onclick\n// case \"Clerical_Error\":\n// gameState.actionCardPlayed = true;\n// //will write method later\n//\n//\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Clerical_Error\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Clerical_Error\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //discard any noble in nobleline and replace it with card in Ndeck\n// case \"Clothing_Swap\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// gameState.deckDiscard.add(gameState.nobleLine.get(touchloc));\n// gameState.nobleLine.remove(touchLoc);\n// gameState.nobleLine.add(touchloc, gameState.deckNoble.get(0));\n// gameState.deckNoble.remove(0);\n// gameState.actionCardPlayed = false;\n//\n//\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Clothing_Swap\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Clothing_Swap\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// break;\n//\n// //shuffles noble line right before other player draws a noble\n// case \"Confusion\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(gameState.playerTurn == 0){\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Confusion\")){\n// this.shuffle1 = true;\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Confusion\")){\n// this.shuffle0 = true;\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //lets user collect additional noble from noble line\n// case \"Double_Feature1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// getNoble(gameState.p0Hand);\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Double_Feature1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// getNoble(gameState.p1Hand);\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Double_Feature1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //lets user collect additional noble from noble line\n// case \"Double_Feature2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// getNoble(gameState.p0Hand);\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Double_Feature2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// getNoble(gameState.p1Hand);\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Double_Feature2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n// //discard two nobleline cards and then shuffle the nobleline deck\n// case \"Escape\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0) {\n// int rand1 = (int) (Math.random() * gameState.nobleLine.size());\n// gameState.deckDiscard.add(gameState.nobleLine.get(rand1));\n// gameState.nobleLine.remove(rand1);\n//\n// int rand2 = (int) (Math.random() * gameState.nobleLine.size());\n// gameState.deckDiscard.add(gameState.nobleLine.get(rand2));\n// gameState.nobleLine.remove(rand2);\n// Collections.shuffle(gameState.nobleLine);\n//\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Escape\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Escape\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //add 3 nobles from noble deck to noble line\n// case \"Extra_Cart1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// for(int i = 0; i < 3; i++){\n// dealNoble();\n// }\n//\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Extra_Cart1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Extra_Cart1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //add 3 nobles from noble deck to noble line\n// case \"Extra_Cart2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// for(int i = 0; i < 3; i++){\n// dealNoble();\n// }/\n//\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Extra_Cart2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Extra_Cart2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble up to 3 card positions back\n// //locs from onclick\n// case \"Fainting\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(newPos - origPos > 3){\n// gameState.nobleLine.add(newPost, gameState.nobleLine.get(origPost));\n// gameState.nobleLine.remove(origPost);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Fainting\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Fainting\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //discard any noble in line\n// //needs onclick to select the noble\n// case \"Fled\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// gameState.nobleLine.remove(cardPos);\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Fled\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Fled\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //randomly removes action card from other player\n// case \"Forced_Break\":\n// gameState.actionCardPlayed = true;\n//\n// int rand = 0;\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Forced_Break\")){\n// if(!gameState.p1Hand.isEmpty()) {\n// rand = (int) (Math.random() * gameState.p1Hand.size());\n// gameState.deckDiscard.add(gameState.p1Hand.get(rand));\n// gameState.p1Hand.remove(rand);\n// }\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Forced_Break\")){\n// if(!gameState.p0Hand.isEmpty()) {\n// rand = (int) (Math.random() * gameState.p0Hand.size());\n// gameState.deckDiscard.add(gameState.p0Hand.get(rand));\n// gameState.p0Hand.remove(rand);\n// }\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //put card in field and draw an actioncard when you get purple noble\n// case \"Foreign_Support\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Foreign_Support\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// FS0 = true;\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Foreign_Support\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// FS0 = true;\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //grabs the first palace guard in noble line and puts it at position 0\n// case \"Forward_March\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n//\n// //going through line to find the first palace guard. Putting in discard\n// //so then I could get the card when readding it.\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\n// if(gameState.nobleLine.get(k).getId().contains(\"Palace_Guard\")){\n// gameState.deckDiscard.add(0,gameState.nobleLine.get(k));\n// gameState.nobleLine.remove(k);\n// gameState.nobleLine.add(0, gameState.deckDiscard.get(0));\n// gameState.deckDiscard.remove(0);\n// k = gameState.nobleLine.size();\n// }\n// }\n//\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Forward_March\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Forward_March\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //card is in field and worth 2 points\n// //actiond one in points method\n// case \"Fountain\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Fountain\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Fountain\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble backwards up to 2 spaces\n// case \"Friend_Queen1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(newLoc - oldLoc < 3){\n// moveNoble(oldLoc, newLoc);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Friend_Queen1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Friend_Queen1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card 2 spaces back\n// case \"Friend_Queen2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(newLoc - oldLoc < 3){\n// moveNoble(oldLoc, newLoc);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Friend_Queen2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Friend_Queen2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble up to two spaces\n// case \"Idiot1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(oldLoc - newLoc < 3 && oldLoc - newLoc >=0){\n// moveNoble(oldLoc, newLoc);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Idiot1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Idiot1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card up to 2 spaces\n// case \"Idiot2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(oldLoc - newLoc < 3 && oldLoc - newLoc >=0){\n// moveNoble(oldLoc, newLoc);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Idiot2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Idiot2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble exactly four spaces\n// //need onclick location of card they choose\n// case \"Ignoble1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(oldLoc - 4 >= 0){\n// moveNoble(oldLoc, oldLoc-4);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Ignoble1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Ignoble1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble exactly four spaces\n// //need onclick location of card they choose\n// case \"Ignoble2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(oldLoc - 4 >= 0){\n// moveNoble(oldLoc, oldLoc-4);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Ignoble2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Ignoble2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //makes all gray cards in user field worth 1 point\n// //implemented more in point method\n// case \"Indifferent\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Indifferent\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Indifferent\")){\n// gameState.p0Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //other player discards two action cards\n// //uses onclick for user choice\n// case \"Infighting\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Infighting\")){\n// for(int k = 0; k < 2; k ++) {\n// if(gameState.p1Hand.size() != 0) {\n// discardActionCard(gameState.p1Hand, userLoc);\n// }\n// }\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Infighting\")){\n// for(int k = 0; k < 2; k ++) {\n// if(gameState.p0Hand.size() != 0) {\n// discardActionCard(gameState.p0Hand, userLoc);\n// }\n// }\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //trade user hands\n// case \"Info_Exchange\":\n// gameState.actionCardPlayed = true;\n// tradeHands(gameState.p0Hand, gameState.p1Hand);\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Info_Exchange\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Info_Exchange\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move nearest blue noble to front of line\n// case \"Lack_Faith\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\n// if(gameState.nobleLine.get(k).cardColor.equals(\"Blue\")){\n// moveNoble(k, 0);\n// }\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Lack_Faith\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Lack_Faith\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //look at enemy player hand and discard one card\n// //cannot do as of right now\n// case \"Lack_Support\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Lack_Support\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Lack_Support\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n//\n// //look at top three cards of noble deck and add one to nobleLine\n// case \"Late_Arrival\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Late_Arrival\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// topThreeCards(gameState.p0Field);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Late_Arrival\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// topThreeCards(gameState.p1Field);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //if marie is in line, move her to front\n// case \"Let_Cake\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\n// if(gameState.nobleLine.get(k).id.equals(\"Antoinette\")){\n// moveNoble(k, 0);\n// }\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Let_Cake\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Let_Cake\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move purple noble up to 2 spaces ahead\n// //needs onclick\n// case \"Majesty\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(gameState.nobleLine.get(userLoc).cardColor.equals(\"Purple\")){\n// if(userLoc - newLoc < 3){\n// moveNoble(userLoc, newLoc);\n// }\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Majesty\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Majesty\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //put all noble cards in noble line back in noble deck, shuffle noble deck\n// //and redeal the same amount of noble cards that used to be in line\n// case \"Mass_Confusion\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// int var = gameState.nobleLine.size();\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\n// gameState.deckNoble.add(gameState.nobleLine.get(k));\n// gameState.nobleLine.remove(k);\n// }\n// shuffleDecks();\n// for(int l = 0; l < var; l++){\n// dealNoble();\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Mass_Confusion\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Mass_Confusion\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move red card up to two spaces forward\n// case \"Military_Might\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(gameState.nobleLine.get(userLoc).cardColor.equals(\"Red\")){\n// if(userLoc - newLoc < 3){\n// moveNoble(userLoc, newLoc);\n// }\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Military_Might\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Military_Might\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //if this card is in your field, then you get +1 points for all red cards you have\n// //is implemented in point method\n// case \"Military_Support\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Military_Support\")){\n// gameState.p0Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Military_Support\")){\n// gameState.p1Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //randomly shuffle first 5 nobles in line\n// case \"Milling1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// rearrangeFives();\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Milling1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Milling1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //randomly shuffle first five nobles in line\n// case \"Milling2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// rearrangeFives();\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Milling2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Milling2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //other player places their last collected noble back in noble line\n// case \"Missed\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// boolean notFound = true;\n// int length;\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Missed\")){\n// length = gameState.p1Field.size()-1;\n// while(notFound){\n// if(gameState.p1Field.get(length).isNoble){\n// gameState.nobleLine.add(gameState.p1Field.get(length));\n// gameState.p1Field.remove(length);\n// notFound = false;\n// }\n// length--;\n// }\n//\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Missed\")){\n// length = gameState.p0Field.size()-1\n// while(notFound){\n// if(gameState.p0Field.get(length).isNoble){\n// gameState.nobleLine.add(gameState.p0Field.get(length));\n// gameState.p0Field.remove(length);\n// notFound = false;\n// }\n// length--;\n// }\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //removes random noble from enemy player noble field\n// case \"Missing_Heads\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Missing_Heads\")){\n// gameState.p1Field.remove((int)(Math.random()*gameState.p1Field.size()));\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Missing_Heads\")){\n// gameState.p0Field.remove((int)(Math.random()*gameState.p0Field.size()));\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //user rearranges the first four nobles however they want\n// case \"Opinionated\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(gameState.nobleLine.size() > 3) {\n// moveNoble(0, newLoc);\n// moveNoble(1, newLoc);\n// moveNoble(2, newLoc);\n// moveNoble(3, newLoc);\n// }\n// else{\n// for(int k = 0; k < gameState.nobleLine.size(); k++){\n// moveNoble(k, newLoc);\n// }\n// }\n//\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Opinionated\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Opinionated\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //get 3 action cards and skip collect noble phase\n// case \"Political_Influence1\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Political_Influence1\")){\n// dealActionCard(gameState.p0Hand);\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Political_Influence1\")){\n// dealActionCard(gameState.p1Hand);\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.turnPhase++;\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //get 3 action cards and skip noble draw phase\n// case \"Political_Influence2\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Political_Influence2\")){\n// dealActionCard(gameState.p0Hand);\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Political_Influence2\")){\n// dealActionCard(gameState.p1Hand);\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.turnPhase++;\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move anynoble in line to front\n// //requires on click\n// case \"Public_Demand\":\n// gameState.actionCardPlayed = true;\n// moveNoble(userLoc, 0);\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Public_Demand\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Public_Demand\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card exactly 2 spaces in line\n// //need on click listener\n// case \"Pushed1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(userLoc - 2 >=0){\n// moveNoble(userLoc, userLoc-2);\n// }\n// else{\n// moveNoble(userLoc, 0);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Pushed1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Pushed1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card exactly 2 spaces in line\n// //need on click listener\n// case \"Pushed2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(userLoc - 2 >=0){\n// moveNoble(userLoc, userLoc-2);\n// }\n// else{\n// moveNoble(userLoc, 0);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Pushed2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Pushed2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //put players action cards back in action deck, shuffle action deck and give each player 5 cards\n// case \"Rain_Delay\":\n// gameState.actionCardPlayed = true;\n//\n// while(!gameState.p0Hand.isEmpty()){\n// gameState.deckAction.add(gameState.p0Hand.get(0));\n// gameState.p0Hand.remove(0);\n// }\n// while(!gameState.p1Hand.isEmpty()){\n// gameState.deckAction.add(gameState.p1Hand.get(0));\n// gameState.p1Hand.remove(0);\n// }\n// shuffleDecks();\n// for(int k = 0; k < 5; k++){\n// dealActionCard(gameState.p0Hand);\n// dealActionCard(gameState.p1Hand);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Rain_Delay\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Rain_Delay\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //put action card in discard pile into your hand\n// //need onclick\n// case \"Rat_Break\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Rat_Break\")){\n// if(!gameState.deckDiscard.get(userLoc).isNoble) {\n// gameState.p0Hand.add(gameState.deckDiscard.get(userLoc));\n// gameState.deckDiscard.remove(userLoc);\n// }\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Rat_Break\")){\n// if(!gameState.deckDiscard.get(userLoc).isNoble) {\n// gameState.p1Hand.add(gameState.deckDiscard.get(userLoc));\n// gameState.deckDiscard.remove(userLoc);\n// }\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //other player cant play action on their next turn\n// case \"Rush_Job\":\n// gameState.actionCardPlayed = true;\n// noAction = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Rush_Job\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Rush_Job\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //day ends after player finishes turn, discards all noble line\n// case \"Scarlet\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// scarletInPlay = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Scarlet\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Scarlet\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move one noble card one spot forward\n// case \"Stumble1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(userLoc != 0){\n// moveNoble(userLoc, userLoc -1);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Stumble1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Stumble1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move one noble card one spot forward\n// case \"Stumble2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(userLoc != 0){\n// moveNoble(userLoc, userLoc -1);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Stumble2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Stumble2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n //reverse nobleline order\n case \"Long_Walk\":\n if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n break;\n }\n gameState.actionCardPlayed = true;\n reverseLineOrder();\n if(gameState.playerTurn == 0){\n for(int i = 0; i < gameState.p0Hand.size(); i++){\n if(gameState.p0Hand.get(i).getId().equals(\"Long_Walk\")){\n gameState.deckDiscard.add(gameState.p0Hand.get(i));\n gameState.p0Hand.remove(i);\n }\n }\n }\n else{\n for(int i = 0; i < gameState.p1Hand.size(); i++){\n if(gameState.p1Hand.get(i).getId().equals(\"Long_Walk\")){\n gameState.deckDiscard.add(gameState.p1Hand.get(i));\n gameState.p1Hand.remove(i);\n }\n }\n\n }\n gameState.actionCardPlayed = false;\n break;\n//\n// //move noble forward exactly 3 places\n// case \"Better_Thing\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// if(userLoc - 3 >=0){\n// moveNoble(userLoc, userLoc-3);\n// }\n// else{\n// moveNoble(userLoc, 0);\n// }\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Better_Thing\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Better_Thing\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n//\n// //add card to other player field, it is worth -2\n// //will be done in point method\n// case \"Tough_Crowd\":\n//\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Tough_Crowd\")){\n// gameState.p1Field.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Tough_Crowd\")){\n// gameState.p0Field.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card back one spot let user play another action\n// //i have no idea how to let the user play another action\n// case \"Trip1\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// gameState.turnPhase --;\n//\n// if(userLoc != gameState.nobleLine.size()-1){\n// moveNoble(userLoc, userLoc +1);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Trip1\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Trip1\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move noble card back one spot let user play another action\n// //i have no idea how to let the user play another action\n// case \"Trip2\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n// gameState.turnPhase --;\n//\n// if(userLoc != gameState.nobleLine.size()-1){\n// moveNoble(userLoc, userLoc +1);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Trip2\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Trip2\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //put any action card in player field into discard\n// //need onclick user loc\n// case \"Twist_Fate\":\n// gameState.actionCardPlayed = true;\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Twist_Fate\")){\n// if(!gameState.p1Field.get(userLoc).isNoble){\n// gameState.deckDiscard.add(gameState.p1Field.get(userLoc));\n// gameState.p1Field.remove(userLoc);\n// }\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Twist_Fate\")){\n// if(!gameState.p0Field.get(userLoc).isNoble){\n// gameState.deckDiscard.add(gameState.p0Field.get(userLoc));\n// gameState.p0Field.remove(userLoc);\n// }\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n// //move any noble up to 3 spaces forward\n// //need onclick user loc and the new location\n// case \"Was_Name\":\n// if(gameState.p1Field.contains(card.id.equals(\"Callous\")) || gameState.p0Field.contains(card.id.equals(\"Callous\")) ){\n// break;\n// }\n// gameState.actionCardPlayed = true;\n//\n// if(userLoc - newLoc >=0){\n// moveNoble(userLoc, newLoc);\n// }\n// else{\n// moveNoble(userLoc, 0);\n// }\n//\n// if(gameState.playerTurn == 0){\n// for(int i = 0; i < gameState.p0Hand.size(); i++){\n// if(gameState.p0Hand.get(i).getId().equals(\"Was_Name\")){\n// gameState.deckDiscard.add(gameState.p0Hand.get(i));\n// gameState.p0Hand.remove(i);\n// }\n// }\n// }\n// else{\n// for(int i = 0; i < gameState.p1Hand.size(); i++){\n// if(gameState.p1Hand.get(i).getId().equals(\"Was_Name\")){\n// gameState.deckDiscard.add(gameState.p1Hand.get(i));\n// gameState.p1Hand.remove(i);\n// }\n// }\n//\n// }\n// gameState.actionCardPlayed = false;\n// break;\n//\n }\n }\n return false;\n }", "title": "" }, { "docid": "e67a910992917f396fa3ce31a83e227c", "score": "0.51961094", "text": "@Override\n\tpublic void debit() {\n\t\tSystem.out.println(\"Debit function\");\n\t}", "title": "" }, { "docid": "f48f9fbbe105afa9df5d66ccf31d95df", "score": "0.5183619", "text": "public ArrayList<Card> getDealerHand() {\r\n\t\treturn dealerHand;\r\n\t}", "title": "" }, { "docid": "65333950b78e8f4d3323b20aa9eab027", "score": "0.51792556", "text": "@Override\n\tpublic void onUseDestructPotion() {\n\t\t\n\t}", "title": "" }, { "docid": "9ca498494d23e624098e5d16e944594b", "score": "0.5170851", "text": "void discardLeaderCard(ArrayList<LeaderCard> cards);", "title": "" }, { "docid": "0386f70455b5511722fe92ef1db01ded", "score": "0.5160833", "text": "private void setDealer() {\n\n\t\t//Clear being the dealer from everyone else\n\t\tfor (Player p : players) {\n\t\t\tp.setDealer(false);\n\t\t}\n\n\t\t//Make the last player in the list the dealer\n\t\tplayers.getLast().setDealer(true);\n\t}", "title": "" }, { "docid": "73e27f0f13100994b753e8289146feb2", "score": "0.51589817", "text": "public void discard(){\n\t\tint rand1, cardsDiscarded=0;\n\t\t//Cycles through the hand and decides whether to discard the card or not\n\t\tfor(int x=HandOfCards.HANDSIZE-1;x<0;x--){\n\t\t\t//The max number of cards that can be returned is 3\n\t\t\tif(cardsDiscarded==3){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\trand1=rand.nextInt(100);\n\t\t\tif(Hand.getDiscardProbability(x)==0){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//If the discard probability is greater than a random number between 0-100 then discard the card\n\t\t\telse if(Hand.getDiscardProbability(x)>rand1){\n\t\t\t\tDeck.returnCard(Hand.removeCard(x));\n\t\t\t\tif(cardsDiscarded<3){\n\t\t\t\t\tcardsDiscarded++;\n\t\t\t\t}\n\t\t\t\t//Replace the cards that were discarded\n\t\t\t\tHand.replaceDiscarded();\n\t\t\t}\n\t\t}\n\t\t//Resort the Hand\n\t\tHand.sort();\n\t\tupdatePercentages();\n\t}", "title": "" }, { "docid": "528bdb84c5a725b3b903edb51d999030", "score": "0.51531297", "text": "@Override\r\n\tpublic void dealOther(Object obj) {\n\t\t\r\n\t}", "title": "" }, { "docid": "dbfc432939b2a9a28d32ab0352e799fa", "score": "0.51404345", "text": "public static void dismissMerchant(Creature dismisser, long target) {\n/* */ try {\n/* 76 */ Creature trader = Creatures.getInstance().getCreature(target);\n/* 77 */ if (trader != null) {\n/* */ \n/* 79 */ if (!trader.isTrading()) {\n/* */ \n/* 81 */ Server.getInstance().broadCastAction(trader\n/* 82 */ .getName() + \" grunts, packs \" + trader.getHisHerItsString() + \" things and is off.\", trader, 5);\n/* */ \n/* 84 */ if (dismisser != null) {\n/* */ \n/* 86 */ dismisser.getCommunicator().sendNormalServerMessage(\"You dismiss \" + trader\n/* 87 */ .getName() + \" from \" + trader.getHisHerItsString() + \" post.\");\n/* 88 */ logger.log(Level.INFO, dismisser.getName() + \" dismisses trader \" + trader.getName() + \" with WurmID: \" + target);\n/* */ }\n/* */ else {\n/* */ \n/* 92 */ logger.log(Level.INFO, \"Merchant \" + trader.getName() + \" with WurmID: \" + target + \" dismissed by timeout\");\n/* */ } \n/* */ \n/* 95 */ Item[] items = Items.getAllItems();\n/* */ \n/* 97 */ for (int x = 0; x < items.length; x++) {\n/* */ \n/* 99 */ if (items[x].getTemplateId() == 300)\n/* */ {\n/* 101 */ if (items[x].getData() == target) {\n/* */ \n/* 103 */ items[x].setData(-1, -1);\n/* */ break;\n/* */ } \n/* */ }\n/* */ } \n/* 108 */ Shop shop = Economy.getEconomy().getShop(trader);\n/* 109 */ if (shop != null) {\n/* */ \n/* */ \n/* */ try {\n/* 113 */ Item backPack = ItemFactory.createItem(1, 10.0F + Server.rand\n/* 114 */ .nextFloat() * 10.0F, trader.getName());\n/* 115 */ backPack.setDescription(\"Due to poor business I have moved on. Thank you for your time. \" + trader\n/* 116 */ .getName());\n/* */ \n/* */ \n/* */ \n/* 120 */ ArrayList<Item> largeItems = new ArrayList<>();\n/* 121 */ for (Item realItem : trader.getInventory().getAllItems(false)) {\n/* */ \n/* 123 */ if (realItem.getTemplate() != null && !realItem.getTemplate().isComponentItem() && \n/* 124 */ !backPack.insertItem(realItem, false)) {\n/* 125 */ largeItems.add(realItem);\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 130 */ WurmMail mail = new WurmMail((byte)0, backPack.getWurmId(), shop.getOwnerId(), shop.getOwnerId(), 0L, System.currentTimeMillis() + 60000L, System.currentTimeMillis() + (Servers.isThisATestServer() ? 3600000L : 14515200000L), Servers.localServer.id, false, false);\n/* */ \n/* 132 */ WurmMail.addWurmMail(mail);\n/* 133 */ mail.createInDatabase();\n/* 134 */ backPack.putInVoid();\n/* 135 */ backPack.setMailed(true);\n/* 136 */ backPack.setMailTimes((byte)(backPack.getMailTimes() + 1));\n/* */ \n/* 138 */ for (Item i : largeItems)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 143 */ WurmMail largeMail = new WurmMail((byte)0, i.getWurmId(), shop.getOwnerId(), shop.getOwnerId(), 0L, System.currentTimeMillis() + 60000L, System.currentTimeMillis() + (Servers.isThisATestServer() ? 3600000L : 14515200000L), Servers.localServer.id, false, false);\n/* */ \n/* 145 */ WurmMail.addWurmMail(largeMail);\n/* 146 */ largeMail.createInDatabase();\n/* 147 */ i.putInVoid();\n/* 148 */ i.setMailed(true);\n/* 149 */ i.setMailTimes((byte)(i.getMailTimes() + 1));\n/* */ }\n/* */ \n/* 152 */ } catch (Exception e) {\n/* */ \n/* 154 */ logger.log(Level.WARNING, e.getMessage() + \" \" + trader.getName() + \" at \" + trader\n/* 155 */ .getTileX() + \", \" + trader.getTileY(), e);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 172 */ logger.log(Level.WARNING, \"No shop when dismissing trader \" + trader\n/* 173 */ .getName() + \" \" + trader.getWurmId());\n/* 174 */ } trader.destroy();\n/* */ }\n/* 176 */ else if (dismisser != null) {\n/* 177 */ dismisser.getCommunicator().sendNormalServerMessage(trader.getName() + \" is trading. Try later.\");\n/* */ } \n/* 179 */ } else if (dismisser != null) {\n/* 180 */ dismisser.getCommunicator().sendNormalServerMessage(\"An error occured on the server while dismissing the trader.\");\n/* */ }\n/* */ \n/* 183 */ } catch (NoSuchCreatureException nsc) {\n/* */ \n/* 185 */ if (dismisser != null) {\n/* 186 */ dismisser.getCommunicator().sendNormalServerMessage(\"The merchant can not be dismissed now.\");\n/* */ }\n/* */ } \n/* */ }", "title": "" }, { "docid": "8d56fded244f0a6ce094df72ca007aef", "score": "0.5137352", "text": "@Override\n\tpublic void handleDown(GameRemote remote) {\n\t\t\n\t}", "title": "" } ]
717404ecee71b2da9942449a0d8bdd29
The algorithm is the following : If the pixel has no neighbors( i.e in a binary image: all neighbors are 0s ) assign a new label to it If the pixel has one neighbor take it's label If the pixel has more than one neighbor take one of the labels and mark the labels as similar
[ { "docid": "11ff1b6a1a8810bb89985a0fe4893881", "score": "0.62521523", "text": "public int findClustersLabels(int x,int y,int width)\n {\n int w,nw,n,ne;\n if(y == 0)\n {\n if(x == 0)\n {\n label++;\n clustersMembers[x][y] = label;\n labels[label] = Integer.MIN_VALUE;\n }\n else\n {\n if(clustersMembers[x-1][y] == 0)\n {\n label++;\n clustersMembers[x][y] = label;\n labels[label] = Integer.MIN_VALUE;\n }\n else\n clustersMembers[x][y] = clustersMembers[x-1][y];\n }\n }\n else\n {\n n = clustersMembers[x][y-1] ;\n if( x+1 == width )\n ne = 0;\n else\n ne = clustersMembers[x+1][y-1] ;\n if(x != 0)\n {\n nw = clustersMembers[x-1][y-1] ;\n w = clustersMembers[x-1][y] ;\n if( (w == 0) && (nw == 0) && (n==0) && (ne==0) )\n {\n label++;\n clustersMembers[x][y] = label;\n labels[label] = Integer.MIN_VALUE;\n }\n else\n {\n if (w != 0)\n {\n clustersMembers[x][y] = w;\n if(nw != 0)\n {\n if( nw != w )\n labels[nw] = w;\n if( (n==0) && (ne!=0) && (nw != ne) && (labels[nw] != ne) )\n labels[ne] = nw;\n }\n else\n {\n if(n != 0)\n {\n if( w != n)\n labels[n] = w;\n }\n else\n if( (ne != 0) && (ne != w) && (labels[w] != ne) )\n labels[ne] = w;\n }\n }\n else\n {\n if (nw != 0)\n {\n clustersMembers[x][y] = nw;\n if( (n==0) && (ne!=0) && (ne !=nw) && (labels[nw] != ne) )\n labels[ne] = nw;\n }\n else\n if (n != 0)\n clustersMembers[x][y] = n;\n else\n if (ne != 0)\n clustersMembers[x][y] = ne;\n }\n }\n }\n else\n {\n if( (n==0) && (ne==0) )\n {\n label++;\n clustersMembers[x][y] = label;\n labels[label] = Integer.MIN_VALUE;\n }\n else\n {\n if( n != 0)\n clustersMembers[x][y] = n;\n else\n clustersMembers[x][y] = ne;\n }\n }\n }\n labels[label+1] = Integer.MAX_VALUE; //a flag that shows where the array ends\n return label;\n }", "title": "" } ]
[ { "docid": "4de19150bf9d052f6ececc552a310af8", "score": "0.7354132", "text": "private int EnforceLabelConnectivity(\n int[] labels, // input label that needs to be corrected to remove stray labels\n int width,\n int height,\n int[] nlabels,// new labels\n int numlabels,// the number of labels changes in the end if segments are removed\n int K) // The number of superpixel desired by the user \n \t{\n int sz = width * height;\n for (int i=0; i<sz; i++) {\n nlabels[i] = -1;\n }\n\n int SUPSZ = sz / K;\n //------------------\n // labeling\n //------------------\n int lab = 0;\n int i = 0;\n int adjlabel = 0;//adjacent label\n int[] xvec = new int[sz];//worst case size\n int[] yvec = new int[sz];//worst case size\n int[] count = new int[1];\n {\n for (int h = 0; h < height; h++) {\n for (int w = 0; w < width; w++) {\n if (nlabels[i] < 0) {\n nlabels[i] = lab;\n //-------------------------------------------------------\n // Quickly find an adjacent label for use later if needed\n //-------------------------------------------------------\n {\n for (int n = 0; n < 4; n++) {\n int x = w + dx4[n];\n int y = h + dy4[n];\n if ((x >= 0 && x < width) && (y >= 0 && y < height)) {\n int nindex = y * width + x;\n if (nlabels[nindex] >= 0) {\n adjlabel = nlabels[nindex];\n }\n }\n }\n }\n xvec[0] = w;\n yvec[0] = h;\n\n count[0] = 1;\n \n List<Integer> h_stack = new ArrayList<Integer>();\n List<Integer> w_stack = new ArrayList<Integer>();\n h_stack.add(h);\n w_stack.add(w);\n\n int s, x, y, h1, w1, ind;\n while(!h_stack.isEmpty()) {\n s = h_stack.size()-1;\n h1 = h_stack.remove(s);\n w1 = w_stack.remove(s);\n for (int i1=0; i1<4; i1++) {\n y = h1 + dy4[i1];\n x = w1 + dx4[i1];\n if ((y < height && y >= 0) && (x < width && x >= 0)) {\n ind = y * width + x;\n if (nlabels[ind] < 0 && labels[ind] == labels[h1 * width + w1]) {\n xvec[count[0]] = x;\n yvec[count[0]] = y;\n count[0]++;\n nlabels[ind] = lab;\n h_stack.add(y);\n w_stack.add(x);\n }\n }\n }\n }\n\n //-------------------------------------------------------\n // If segment size is less then a limit, assign an\n // adjacent label found before, and decrement label count.\n //-------------------------------------------------------\n if (count[0] <= (SUPSZ >> 2)) {\n for (int c = 0; c < count[0]; c++) {\n int ind1 = yvec[c] * width + xvec[c];\n nlabels[ind1] = adjlabel;\n }\n lab--;\n }\n lab++;\n }\n i++;\n }\n }\n }\n numlabels = lab;\n return numlabels;\n }", "title": "" }, { "docid": "c26eaa417d5e51545b2268e9154def64", "score": "0.67515767", "text": "public int[][] labeling(int[][] image, int w, int h, boolean zeroAsBg) {\r\n int[][] rst = new int[w][h];\r\n int[] parent = new int[MAX_LABELS];\r\n int[] labels = new int[MAX_LABELS];\r\n // region label starts from 1;\r\n // this is required as union-find data structure\r\n int next_region = 1;\r\n for (int y = 0; y < h; ++y) {\r\n for (int x = 0; x < w; ++x) {\r\n if (image[x][y] == 0 && zeroAsBg) {\r\n continue;\r\n }\r\n int k = 0;\r\n boolean connected = false;\r\n // if connected to the left\r\n if (x > 0 && image[x - 1][y] == image[x][y]) {\r\n k = rst[x - 1][y];\r\n connected = true;\r\n }\r\n // if connected to the up\r\n if (y > 0 && image[x][y - 1] == image[x][y]\r\n && (connected = false || image[x][y - 1] < k)) {\r\n k = rst[x][y - 1];\r\n connected = true;\r\n }\r\n if (!connected) {\r\n k = next_region;\r\n next_region++;\r\n }\r\n\r\n if (k >= MAX_LABELS) {\r\n System.err.println(\"maximum number of labels reached. \"\r\n + \"increase MAX_LABELS and recompile.\");\r\n System.exit(1);\r\n }\r\n rst[x][y] = k;\r\n // if connected, but with different label, then do union\r\n if (x > 0 && image[x - 1][y] == image[x][y] && rst[x - 1][y] != k) {\r\n uf_union(k, rst[x - 1][y], parent);\r\n }\r\n if (y > 0 && image[x][y - 1] == image[x][y] && rst[x][y - 1] != k) {\r\n uf_union(k, rst[x][y - 1], parent);\r\n }\r\n }\r\n }\r\n\r\n // Begin the second pass. Assign the new labels\r\n // if 0 is reserved for background, then the first available label is 1\r\n next_label = 1;\r\n for (int i = 0; i < w; i++) {\r\n for (int j = 0; j < h; j++) {\r\n if (image[i][j] != 0 || !zeroAsBg) {\r\n rst[i][j] = uf_find(rst[i][j], parent, labels);\r\n // The labels are from 1, if label 0 should be considered, then\r\n // all the label should minus 1\r\n if (!zeroAsBg) {\r\n rst[i][j]--;\r\n }\r\n }\r\n }\r\n }\r\n next_label--; // next_label records the max label\r\n if (!zeroAsBg) {\r\n next_label--;\r\n }\r\n\r\n// System.out.println(next_label + \" regions\");\r\n return rst;\r\n }", "title": "" }, { "docid": "998ade8786c898afe97f5c9153284ed0", "score": "0.6739798", "text": "private static boolean isSimplePoint(byte[] neighbors) \n\t\t{\n\t\t// copy neighbors for labeling\n\t\tint cube[] = new int[26];\n\t\tint i = 0;\n\t\tfor( i = 0; i < 13; i++ ) // i = 0..12 -> cube[0..12]\n\t\t\tcube[i] = neighbors[i];\n\t\t// i != 13 : ignore center pixel when counting (see [Lee94])\n\t\tfor( i = 14; i < 27; i++ ) // i = 14..26 -> cube[13..25]\n\t\t\tcube[i-1] = neighbors[i];\n\t\t// set initial label\n\t\tint label = 2;\n\t\t// for all points in the neighborhood\n\t\tfor( i = 0; i < 26; i++ )\n\t\t\t{\n\t\t\tif( cube[i]==1 ) // voxel has not been labeled yet\n\t\t\t\t{\n\t\t\t\t// start recursion with any octant that contains the point i\n\t\t\t\tswitch( i )\n\t\t\t\t{\n\t\t\t\tcase 0:\n\t\t\t\tcase 1:\n\t\t\t\tcase 3:\n\t\t\t\tcase 4:\n\t\t\t\tcase 9:\n\t\t\t\tcase 10:\n\t\t\t\tcase 12:\n\t\t\t\toctreeLabeling(1, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tcase 5:\n\t\t\t\tcase 11:\n\t\t\t\tcase 13:\n\t\t\t\toctreeLabeling(2, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\tcase 7:\n\t\t\t\tcase 14:\n\t\t\t\tcase 15:\n\t\t\t\toctreeLabeling(3, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\tcase 16:\n\t\t\t\toctreeLabeling(4, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 17:\n\t\t\t\tcase 18:\n\t\t\t\tcase 20:\n\t\t\t\tcase 21:\n\t\t\t\toctreeLabeling(5, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 19:\n\t\t\t\tcase 22:\n\t\t\t\toctreeLabeling(6, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 23:\n\t\t\t\tcase 24:\n\t\t\t\toctreeLabeling(7, label, cube );\n\t\t\t\tbreak;\n\t\t\t\tcase 25:\n\t\t\t\toctreeLabeling(8, label, cube );\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tlabel++;\n\t\t\t\tif( label-2 >= 2 )\n\t\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t//return label-2; in [Lee94] if the number of connected components would be needed\n\t\treturn true;\n\t\t}", "title": "" }, { "docid": "e97d2f0c5499bb89986f5b0e8d6d5d53", "score": "0.64220494", "text": "private void pruneLabels() {\n\t\tncomponents = -1;\n\n\t\tfor (UnionFindSL r : regions.values()) {\n\t\t\tUnionFindSL root = (UnionFindSL)r.findRoot();\n\n\t\t\t// If the root hasn't been relabelled yet then assign one to it\n\t\t\tif (root.newLabel == -1) {\n\t\t\t\troot.newLabel = ++ncomponents;\n\t\t\t}\n\t\t\t// Although this component may have been merged it's label still\n\t\t\t// needs to be set because labeim still has the unmerged labels\n\t\t\tr.newLabel = root.newLabel;\n\t\t}\n\n\t\tfor (int z = 1; z <= size[2]; ++z) {\n\t\t\tImageProcessor sliceIn = labelIms.getProcessor(z);\n\t\t\tShortProcessor sliceOut = new ShortProcessor(size[0], size[1]);\n\n\t\t\tfor (int y = 0; y < size[1]; ++y) {\n\t\t\t\tfor (int x = 0; x < size[0]; ++x) {\n\t\t\t\t\tint label = sliceIn.get(x, y);\n\t\t\t\t\tif (label != 0) {\n\t\t\t\t\t\tSliceLabel sl = new SliceLabel(z, label);\n\t\t\t\t\t\tassert regions.containsKey(sl);\n\t\t\t\t\t\tsliceOut.set(x, y, regions.get(sl).newLabel);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\trelabelStack.addSlice(sliceOut);\n\t\t}\n\t}", "title": "" }, { "docid": "fa4644f68818ab51e11f0ba9817cb825", "score": "0.63776344", "text": "private void pruneLabels() {\n\t\tncomponents = -1;\n\n\t\tfor (UnionFindL r : regions) {\n\t\t\tUnionFindL root = (UnionFindL)r.findRoot();\n\n\t\t\t// If the root hasn't been relabelled yet then assign one to it\n\t\t\tif (root.newLabel == -1) {\n\t\t\t\troot.newLabel = ++ncomponents;\n\t\t\t}\n\t\t\t// Although this component may have been merged it's label still\n\t\t\t// needs to be set because labeim still has the unmerged labels\n\t\t\tr.newLabel = root.newLabel;\n\t\t}\n\n\t\tfor (int y = 0; y < labelim.getHeight(); ++y) {\n\t\t\tfor (int x = 0; x < labelim.getWidth(); ++x) {\n\t\t\t\tlabelim.set(x, y, regions.get(labelim.get(x, y)).newLabel);\n\t\t\t}\n\t\t}\n\n\t\t//for (int y = 0; y < labelim.getHeight(); ++y) {\n\t\t//\tint[] data = new int[labelim.getWidth()];\n\t\t//\tlabelim.getRow(0, y, data, labelim.getWidth());\n\t\t//\tIJ.log(java.util.Arrays.toString(data));\n\t\t//}\n\t}", "title": "" }, { "docid": "511a92238d29b040566c2c0a728aabaf", "score": "0.62955254", "text": "public int[][] compactLabeling(int[][] image, int w, int h, boolean zeroAsBg) {\r\n //label first\r\n int[][] label = labeling(image, w, h, zeroAsBg);\r\n int[] stat = new int[next_label + 1];\r\n for (int i = 0; i < w; i++) {\r\n for (int j = 0; j < h; j++) {\r\n if (label[i][j] > next_label) {\r\n System.err.println(\"bigger label than next_label found!\");\r\n }\r\n stat[label[i][j]]++;\r\n }\r\n }\r\n\r\n stat[0] = 0; // label 0 will be mapped to 0\r\n // whether 0 is background or not\r\n int k = 1;\r\n for (int i = 1; i < stat.length; i++) {\r\n if (stat[i] != 0) {\r\n stat[i] = k++;\r\n }\r\n }\r\n\r\n// System.out.println(\"From \" + next_label + \" to \" + (k - 1) + \" regions\");\r\n next_label = k - 1;\r\n for (int i = 0; i < w; i++) {\r\n for (int j = 0; j < h; j++) {\r\n label[i][j] = stat[label[i][j]];\r\n }\r\n }\r\n return label;\r\n }", "title": "" }, { "docid": "30f2b779bd267ed29727b9207eedf5c0", "score": "0.61643624", "text": "public int containsLabel(Neighbor nei) {\n\t\tint i = this.neighborhood.indexOfLabel(nei);\n\t\tif (i > -1) {\n\t\t}\n\t\treturn i;\n\t}", "title": "" }, { "docid": "340113eb17372d43ae4cda4162f60bf0", "score": "0.5937709", "text": "public void createLabels(){\n buildWeightPathGraph();\n\n //find maximum branching\n\n DWGraphUtil.findMaxBranching(pg,branch);\n\n\n newbranch = new PathTreeGraph(branch.numVertices());\n transform(branch,newbranch);\n\n buildEquGraph();\n\n PathTreeGraphUtil.pre_post_labeling(newbranch);\n\n //create labels for every vertex\n ArrayList<Integer> reverse_topo_sort = new ArrayList<>();\n PathTreeGraphUtil.topological_sort(newbranch, reverse_topo_sort);\n\n ArrayList<Integer> path;\n int order = g.num_vertices();\n int first_order=1;\n boolean[] visited = new boolean[order];\n Collections.reverse(reverse_topo_sort);\n ArrayList<Integer> topo_sort = reverse_topo_sort;\n MutableInt orderMutable = new MutableInt(order);\n MutableInt first_orderMutable = new MutableInt(first_order);\n for(int rit:topo_sort) {\n path = pathMap.get(rit);\n for (int lit : path) {\n if (!visited[lit])\n pathDFS(lit, orderMutable, first_orderMutable, visited);\n }\n }\n\n //update label vecotr\n int gsize = g.num_vertices();\n for(int i=0;i<gsize;i++){\n labels[i][0] = newbranch.getNode(g.getNode(i).path_id).pre_order;\n labels[i][1] = newbranch.getNode(g.getNode(i).path_id).post_order;\n labels[i][2] = g.getNode(i).dfs_order;\n //System.out.println(String.valueOf(labels[i][0])+','+ String.valueOf(labels[i][1])+','+ String.valueOf(labels[i][2]));\n }\n\n //handling edges not covered\n ArrayList<Integer> el;\n int pre1,post1,pre2,post2;\n\n for(int vit:grts){\n el = g.outEdges(vit);\n pre1 = labels[vit][0];\n post1 = labels[vit][1];\n for(int eit:el){\n //int size1=0,size2=0,size3=0;\n //size1=out_uncover[vit].size();\n insertSet(out_uncover[vit],out_uncover[eit]);\n //size2=out_uncover[vit].size();\n /*\n if(vit==12676) {\n System.out.print(eit);\n System.out.print(\":\");\n System.out.print(size1);\n System.out.print(\",\");\n System.out.print(size2);\n System.out.print(\",\");\n System.out.println(size3);\n }*/\n if(labels[vit][2]<=labels[eit][2]&&labels[eit][0] >= pre1&&labels[eit][1]<=post1)\n continue;\n TreeSet<Integer> temp = new TreeSet<>();\n temp.add(eit);\n insertSet(out_uncover[vit], temp);\n //size3=out_uncover[vit].size();\n\n }\n }\n\n\n /*\n for(int i=0;i<out_uncover.length;i++){\n if(out_uncover[i].size()!=0){\n System.out.println(String.valueOf(i)+\",\"+String.valueOf(out_uncover[i].size()));\n }\n }\n\n */\n\n\n\n\n }", "title": "" }, { "docid": "b6eb8fd0657699655f9c35d3ff7fb1bc", "score": "0.5875271", "text": "SparseRealMatrix getLabelAnnotations();", "title": "" }, { "docid": "75fe601fe564ea3d851210c9e03cde87", "score": "0.58228135", "text": "private void setInitialLabelsAndMatching () {\n\t\tArrays.fill(this.lj, 0);\t// Initialize lj to all 0\n\t\t/*\n\t\t * Initialize li. Loop over all entries of the weight matrix and save the highest weight[i][j]\n\t\t * for a fixed i to li[i].\n\t\t */\n\t\tfor (int i=0; i<this.n; i++) {\n\t\t\tfor (int j=0; j<this.n; j++) {\n\t\t\t\tif (this.weight[i][j] > this.li[i]) {\n\t\t\t\t\tthis.li[i] = this.weight[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Initialize an empty matching, so the size and weight are 0\n\t\tthis.matching_size = 0;\n\t\tthis.matching_weight = 0;\n\t\t\n\t\t// There are no matched edges. Use -1 to represent an exposed vertex.\n\t\tArrays.fill(this.ij, -1);\n\t\tArrays.fill(this.ji, -1);\n\t}", "title": "" }, { "docid": "aa3bbb1a7381b10b9de586a9c0f8182c", "score": "0.57862526", "text": "private void findNeighbors() {\n\n for (int x = 0; x < height; x++) {\n for (int y = 0; y < width; y++) {\n if (x - 1 >= 0) {\n getCell(x , y).setNeighbor(Direction.UP, getCell(x - 1, y));\n }\n if (x + 1 < height) {\n getCell(x , y).setNeighbor(Direction.DOWN, getCell(x + 1, y));\n }\n if (y - 1 >= 0) {\n getCell(x , y).setNeighbor(Direction.LEFT, getCell(x, y - 1));\n }\n if (y + 1 < width) {\n getCell(x , y).setNeighbor(Direction.RIGHT, getCell(x, y + 1));\n }\n }\n }\n\n }", "title": "" }, { "docid": "676066431216ca694b433b803891a512", "score": "0.56920177", "text": "private int calcInLabel() {\r\n\t\t//find the next available input label\r\n\t\tfor(int i = 1;i < Integer.MAX_VALUE;i++){\r\n\t\t\tif(!labelTable.containsInLabel(i)){\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "title": "" }, { "docid": "93b6522eebf966ac4efd02294e7c0916", "score": "0.5672721", "text": "int relabel(Instruction i) {\n int index = 0;\n while (i != null) {\n i.label = index;\n index = i.nextOffset(index);\n i = i.next;\n }\n return index;\n }", "title": "" }, { "docid": "83aba1f53e422351ce931e6ef68b865c", "score": "0.56546366", "text": "private void determineLabel(Vertex<LongWritable, CDLabel, NullWritable> vertex, Iterable<Text> messages) {\n\n CDLabel cd = vertex.getValue();\n String oldLabel = cd.getLabelName().toString();\n\n // fill in the labelAggScoreMap and labelMaxScoreMap from the received messages (by EQ2 step 1)\n Map<String, CDLabelStatistics> labelStatsMap = groupLabelStatistics(messages);\n\n // choose label based on the gathered label info (by EQ2 step 2)\n String chosenLabel = chooseLabel(labelStatsMap);\n cd.setLabelName(new Text(chosenLabel));\n\n // update new label score by EQ3\n float updatedLabelScore = getChosenLabelScore(labelStatsMap, chosenLabel, oldLabel);\n cd.setLabelScore(updatedLabelScore);\n }", "title": "" }, { "docid": "02cfd032d9c93630c8ebf66b73e66b94", "score": "0.5536068", "text": "@Override\r\n public int getLabel() {\n return handle.getLabel().equals(targetLabel) ? 0 : 1;\r\n }", "title": "" }, { "docid": "4ff679d33acd9117ddce18cf01166d96", "score": "0.55033135", "text": "public void doNeighborCoupling(Pair id, String sourcePt, String destPt) {\r\n componentIterator it1 = components.cIterator();\r\n boolean id_found = false;\r\n int my_x = 0;\r\n int my_y = 0;\r\n // Find cell with this id\r\n while (it1.hasNext()) {\r\n Cell d1 = (Cell) it1.nextComponent();\r\n Pair myid = (Pair) d1.getId();\r\n if (myid.equals(id)) {\r\n id_found = true;\r\n Integer my_xint = (Integer) myid.getKey();\r\n Integer my_yint = (Integer) myid.getValue();\r\n my_x = my_xint.intValue();\r\n my_y = my_yint.intValue();\r\n break;\r\n }\r\n }\r\n // if cell with this id is found find its neighbors and do coupling\r\n if (id_found) {\r\n componentIterator it2 = components.cIterator();\r\n while (it2.hasNext()) {\r\n Cell d2 = (Cell) it2.nextComponent();\r\n Pair other_id = (Pair) d2.getId();\r\n Integer other_xint = (Integer) other_id.getKey();\r\n Integer other_yint = (Integer) other_id.getValue();\r\n int other_x = other_xint.intValue();\r\n int other_y = other_yint.intValue();\r\n\r\n // N Neighbor\r\n if (my_x == other_x && my_y == other_y - 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // NE Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y - 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // E Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // SE Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y + 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n }\r\n else if (my_x == other_x && my_y == other_y + 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // SW Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y + 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // W Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n } // NW Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y - 1) {\r\n addCoupling(d1, sourcePt, d2, destPt);\r\n }\r\n\r\n }\r\n } // End if\r\n\r\n }", "title": "" }, { "docid": "0972595e71aeb53b0465e98cd5366d22", "score": "0.5464284", "text": "private void excludeOnEdges(final ImagePlus imp, final int[][] particleLabels,\n\t\tfinal byte[][] workArray)\n\t{\n\t\tfinal int w = imp.getWidth();\n\t\tfinal int h = imp.getHeight();\n\t\tfinal int d = imp.getImageStackSize();\n\t\tfinal long[] particleSizes = getParticleSizes(particleLabels);\n\t\tfinal int nLabels = particleSizes.length;\n\t\tfinal int[] newLabel = new int[nLabels];\n\t\tfor (int i = 0; i < nLabels; i++)\n\t\t\tnewLabel[i] = i;\n\n\t\t// scan faces\n\t\t// top and bottom faces\n\t\tfor (int y = 0; y < h; y++) {\n\t\t\tfinal int index = y * w;\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\tfinal int pt = particleLabels[0][index + x];\n\t\t\t\tif (pt > 0) newLabel[pt] = 0;\n\t\t\t\tfinal int pb = particleLabels[d - 1][index + x];\n\t\t\t\tif (pb > 0) newLabel[pb] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// west and east faces\n\t\tfor (int z = 0; z < d; z++) {\n\t\t\tfor (int y = 0; y < h; y++) {\n\t\t\t\tfinal int pw = particleLabels[z][y * w];\n\t\t\t\tfinal int pe = particleLabels[z][y * w + w - 1];\n\t\t\t\tif (pw > 0) newLabel[pw] = 0;\n\t\t\t\tif (pe > 0) newLabel[pe] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// north and south faces\n\t\tfinal int lastRow = w * (h - 1);\n\t\tfor (int z = 0; z < d; z++) {\n\t\t\tfor (int x = 0; x < w; x++) {\n\t\t\t\tfinal int pn = particleLabels[z][x];\n\t\t\t\tfinal int ps = particleLabels[z][lastRow + x];\n\t\t\t\tif (pn > 0) newLabel[pn] = 0;\n\t\t\t\tif (ps > 0) newLabel[ps] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// replace labels\n\t\tfinal int wh = w * h;\n\t\tfor (int z = 0; z < d; z++) {\n\t\t\tfor (int i = 0; i < wh; i++) {\n\t\t\t\tfinal int p = particleLabels[z][i];\n\t\t\t\tfinal int nL = newLabel[p];\n\t\t\t\tif (nL == 0) {\n\t\t\t\t\tparticleLabels[z][i] = 0;\n\t\t\t\t\tworkArray[z][i] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "d6c6811a8f178b77eb58506923fd7a7d", "score": "0.54052114", "text": "public void patternSpectrum(GrayScaleImage label){\n\t\tint max = label.maxValue();\n\t\tSystem.out.println(\"indice X area dos indices\");\n\t\tfor(int i=0; i <= max; i++){\n\t\t\tSystem.out.print(label.countPixels(i) +\"\\t\");\n\t\t}\n\t\tSystem.out.println(\"\\nindice X quantidade de CC\");\n\t\t//indice X quantidade de CC\n\t\tint h[] = Labeling.countFlatzone(label, tree.getAdjacency());\n\t\tfor(int i=0; i < h.length; i++){\n\t\t\tSystem.out.print(h[i] +\"\\t\");\n\t\t}\n\t}", "title": "" }, { "docid": "9ab09c09ec7f12cd0ce7afa9de5183d0", "score": "0.539102", "text": "private void minimiseLabels(final int[][] particleLabels) {\n\t\tIJ.showStatus(\"Minimising labels...\");\n\t\tfinal int d = particleLabels.length;\n\t\tfinal long[] particleSizes = getParticleSizes(particleLabels);\n\t\tfinal int nLabels = particleSizes.length;\n\t\tfinal int[] newLabel = new int[nLabels];\n\t\tint minLabel = 0;\n\t\t// find the minimised labels\n\t\tfor (int i = 0; i < nLabels; i++) {\n\t\t\tif (particleSizes[i] > 0) {\n\t\t\t\tif (i == minLabel) {\n\t\t\t\t\tnewLabel[i] = i;\n\t\t\t\t\tminLabel++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tnewLabel[i] = minLabel;\n\t\t\t\tparticleSizes[minLabel] = particleSizes[i];\n\t\t\t\tparticleSizes[i] = 0;\n\t\t\t\tminLabel++;\n\t\t\t}\n\t\t}\n\t\t// now replace labels\n\t\tfinal int wh = particleLabels[0].length;\n\t\tfor (int z = 0; z < d; z++) {\n\t\t\tIJ.showStatus(\"Replacing with minimised labels...\");\n\t\t\tIJ.showProgress(z, d);\n\t\t\tfinal int[] slice = particleLabels[z];\n\t\t\tfor (int i = 0; i < wh; i++) {\n\t\t\t\tfinal int p = slice[i];\n\t\t\t\tif (p > 0) {\n\t\t\t\t\tslice[i] = newLabel[p];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e8d9fcf1993abb9697c8d7ba146041e4", "score": "0.53728217", "text": "String getLabelAt(int row, int column);", "title": "" }, { "docid": "a893bf8c5ec68336fefcb837625bc4c2", "score": "0.5366866", "text": "public void doNeighborToNeighborCoupling() {\r\n componentIterator it1 = components.cIterator();\r\n while (it1.hasNext()) {\r\n Cell d1 = (Cell) it1.nextComponent();\r\n Pair myid = (Pair) d1.getId();\r\n Integer my_xint = (Integer) myid.getKey();\r\n Integer my_yint = (Integer) myid.getValue();\r\n int my_x = my_xint.intValue();\r\n int my_y = my_yint.intValue();\r\n //System.out.println();\r\n //System.out.println(\"My cell id: \" + myid.toString());\r\n //System.out.println();\r\n componentIterator it2 = components.cIterator();\r\n while (it2.hasNext()) {\r\n Cell d2 = (Cell) it2.nextComponent();\r\n Pair other_id = (Pair) d2.getId();\r\n if (!other_id.equals(myid)) {\r\n Integer other_xint = (Integer) other_id.getKey();\r\n Integer other_yint = (Integer) other_id.getValue();\r\n int other_x = other_xint.intValue();\r\n int other_y = other_yint.intValue();\r\n //System.out.println(\"Other cell id: \" + other_id.toString());\r\n // N Neighbor\r\n if (my_x == other_x && my_y == other_y - 1) {\r\n addCoupling(d1, \"outS\", d2, \"inN\");\r\n } // NE Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y - 1) {\r\n addCoupling(d1, \"outSE\", d2, \"inNW\");\r\n } // E Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y) {\r\n addCoupling(d1, \"outE\", d2, \"inW\");\r\n //System.out.println(\"My East Neighbor id: \" + other_id.toString());\r\n } // SE Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y + 1) {\r\n addCoupling(d1, \"outNE\", d2, \"inSW\");\r\n } // S Neighbor\r\n else if (my_x == other_x && my_y == other_y + 1) {\r\n addCoupling(d1, \"outN\", d2, \"inS\");\r\n } // SW Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y + 1) {\r\n addCoupling(d1, \"outNW\", d2, \"inSE\");\r\n } // W Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y) {\r\n addCoupling(d1, \"outW\", d2, \"inE\");\r\n } // NW Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y - 1) {\r\n addCoupling(d1, \"outSW\", d2, \"inNE\");\r\n }\r\n } // end if\r\n } // End inner while loop\r\n } // End outer while loop\r\n }", "title": "" }, { "docid": "98d0a5d6577575a173d9d500a7961e6c", "score": "0.5355015", "text": "private void connectSlicePair(int i, int j) {\n\t\tImageProcessor labels1 = null;\n\t\tImageProcessor labels2 = null;\n\t\tif (i >= 1 && i <= size[2]) {\n\t\t\tlabels1 = labelIms.getProcessor(i);\n\t\t}\n\t\tif (j >= 1 && j <= size[2]) {\n\t\t\tlabels2 = labelIms.getProcessor(j);\n\t\t}\n\n\t\tfor (int y = 0; y < size[1]; ++y) {\n\t\t\tfor (int x = 0; x < size[0]; ++x) {\n\t\t\t\tint p = (labels1 != null) ? labels1.get(x, y) : 0;\n\t\t\t\tint q = (labels2 != null) ? labels2.get(x, y) : 0;\n\n\t\t\t\tif (p != 0) {\n\t\t\t\t\tSliceLabel kp = new SliceLabel(i, p);\n\t\t\t\t\tif (!fwdLabelMap.containsKey(kp)) {\n\t\t\t\t\t\tfwdLabelMap.put(kp, new TreeSet<Integer>());\n\t\t\t\t\t}\n\t\t\t\t\tif (q != 0) {\n\t\t\t\t\t\tfwdLabelMap.get(kp).add(q);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (q != 0) {\n\t\t\t\t\tSliceLabel kq = new SliceLabel(j, q);\n\t\t\t\t\tif (!bwdLabelMap.containsKey(kq)) {\n\t\t\t\t\t\tbwdLabelMap.put(kq, new TreeSet<Integer>());\n\t\t\t\t\t}\n\t\t\t\t\tif (p != 0) {\n\t\t\t\t\t\tbwdLabelMap.get(kq).add(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "156993453816d75310478da992b281bf", "score": "0.5332669", "text": "Integer getLabel();", "title": "" }, { "docid": "994b00ed1819132e1474f031c1957d43", "score": "0.5313246", "text": "public Paint labelPaint(final int node, final int labelInx) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "87b401b4132e8e29b3ff9e915f2cabe4", "score": "0.53031", "text": "private boolean createLabelMapping(LSRNIC nic, RESVMsg p,boolean isDest){\r\n\t\tNICLabelPair newPair;\r\n\t\tint inLabel,outLabel;\r\n\t\tint dest = p.getDest(), source = p.getSource();\r\n\t\tNICLabelPair outPair;\r\n\t\t\r\n\t\t/*first check if a mapping already exists*/\r\n\t\tif(labelTable.labelExists(dest, source)){\r\n\t\t\t/*check if the mapping was waiting for an LSP*/\r\n\t\t\toutPair = labelTable.getOutPair(source);\r\n\t\t\tif(outPair.getLabel() == NICLabelPair.LSP_PENDING){\r\n\t\t\t\toutPair.setLabel(p.getLabel());\r\n\t\t\t\tstatus(\"Releasing packet hold. Using label mapping {in:\" \r\n\t\t\t\t\t\t+ labelTable.getInLabel(dest, source) + \",out:\" + outPair.getLabel() + \"}\");\r\n\t\t\t\tsendWaitingPackets(p);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tinLabel = labelTable.getInLabel(dest, source);\r\n\t\t\toutLabel = labelTable.get(inLabel).getLabel();\r\n\t\t\tstatus(\"Using existing label mapping {in: \" + inLabel + \",out: \" + outLabel + \"}\");\r\n\t\t\tp.setLabel(inLabel);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tinLabel = calcInLabel();\r\n\t\t\r\n\t\toutLabel = p.getLabel();\r\n\t\t/*no further checks since John stated we son't need to worry about label contention.*/\r\n\t\tif(inLabel > 0){\r\n\t\t\tnewPair = new NICLabelPair(nic,outLabel);\r\n\t\t\tthis.labelTable.put(dest,source,inLabel, newPair);\r\n\t\t\tSystem.out.println(\"(Router \" + this.address + \"): Created label mapping {in:\" + inLabel + \r\n\t\t\t\t\t\",out:\" + outLabel + \"}\");\r\n\t\t\tp.setLabel(inLabel);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"(Router \" + this.address + \"): Couldn't create new label mapping.\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d67a278445ecaed24626fdab56816922", "score": "0.52920735", "text": "public void updateLabels(){\n\t\t\tfor (int i=0;i<outputList.size();i++){\n\t\t\t\tif (!outputList.get(i).isLabelSet()){\n\t\t\t\t\tif (indexLabel!=null){ //use indexed label\n\t\t\t\t\t\toutputList.get(i).setLabel(outputList.get(i).getIndexLabel(indexLabel));\n\t\t\t\t\t}else if (labels!=null&&i<labels.length)\n\t\t\t\t\t\toutputList.get(i).setLabel(labels[i]);\n\t\t\t\t\telse\n\t\t\t\t\t\toutputList.get(i).setLabel(null);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4ff296b6a5584e44a905e127bbe6fff1", "score": "0.52667683", "text": "private static HashSet<PairStrValues> getMixedLabels(String node, String neighbord){\n\t\tHashSet<PairStrValues> mixedLbl = new HashSet<>();\n\t\tfor(String lbl1 :GraphParameters.graph.vertex.get(node)){\n\t\t\tfor(String lbl2 :GraphParameters.graph.vertex.get(neighbord)){\n\t\t\t\tmixedLbl.add(new PairStrValues(lbl1, lbl2));\n\t\t\t}\n\t\t}\n\t\treturn mixedLbl;\n\t}", "title": "" }, { "docid": "3b81aefa52d8c77e301bf5331a18d196", "score": "0.52551186", "text": "private Instruction updateInstructionLabel(Instruction src, Collection<Label> srcActiveLabels, Collection<Label> srcPendingLabels)\n {\n if (src == null)\n return null;\n\n // non-targetable instructions don't have labels\n if (!src.isTargetableInstruction())\n return src;\n\n final int operandCount = src.getOperandCount();\n if (operandCount == 0)\n return src;\n\n Object[] newOperands = new Object[operandCount];\n for (int i = 0; i < operandCount; i++)\n {\n Object operand = src.getOperand(i);\n if (!(operand instanceof Label))\n {\n newOperands[i] = operand;\n continue;\n }\n\n Label srcLabel = (Label)operand;\n Label clonedLabel = (Label)(srcLabel).clone();\n newOperands[i] = clonedLabel;\n\n // Remove the src Label from the active or pending set, and add\n // in the new cloned Label into the set from whence in came.\n if (srcActiveLabels != null && srcActiveLabels.remove(srcLabel))\n activeLabels.add(clonedLabel);\n else if (srcPendingLabels != null && srcPendingLabels.remove(srcLabel))\n pendingLabels.add(clonedLabel);\n }\n\n if (operandCount == 1)\n return InstructionFactory.getInstruction(src.getOpcode(), newOperands[0]);\n else\n return InstructionFactory.getInstruction(src.getOpcode(), newOperands);\n }", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.52442986", "text": "boolean hasLabel();", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.52442986", "text": "boolean hasLabel();", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.52442986", "text": "boolean hasLabel();", "title": "" }, { "docid": "6e7a7735eede5ff0f0cd7afe2b8e4bb0", "score": "0.52442986", "text": "boolean hasLabel();", "title": "" }, { "docid": "f2949114efa3aa36ba1db29253e9e66d", "score": "0.52163255", "text": "public int labelComponents4() {\n\t\tint w = binim.getWidth();\n\t\tint h = binim.getHeight();\n\n\t\tfor (int y = 0; y < h; ++y) {\n\t\t\tfor (int x = 0; x < w; ++x) {\n\t\t\t\tboolean p = binim.get(x, y) != 0;\n\n\t\t\t\tif (p) {\n\t\t\t\t\t// Need to check west and north labels,\n\t\t\t\t\t// merge regions if necessary\n\t\t\t\t\tint lwest = getLabelWest(x, y);\n\t\t\t\t\tint lnorth = getLabelNorth(x, y);\n\n\t\t\t\t\tif (lwest != 0) {\n\t\t\t\t\t\tlabelim.set(x, y, lwest);\n\t\t\t\t\t\tif (lnorth > 0 && lnorth != lwest) {\n\t\t\t\t\t\t\tmergeRegions(lwest, lnorth);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (lnorth != 0) {\n\t\t\t\t\t\tlabelim.set(x, y, lnorth);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlabelim.set(x, y, newRegion());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tpruneLabels();\n\t\treturn ncomponents;\n\t}", "title": "" }, { "docid": "8cef1caa382daddbb3eb4c23fb1c3cba", "score": "0.52112323", "text": "public boolean atLeastOneLabel();", "title": "" }, { "docid": "1c250565955f9ee84b3e7cf81784b072", "score": "0.51860976", "text": "public static void oneEdgeMotifs(){\n\t\tString canCode = \"\";\n\t\tfor (String node: GraphParameters.graph.bgnodes){\n\t\t\tfor (String neighbord: GraphParameters.graph.getAllEdges(node, GraphParameters.graph)){\n\t\t\t\t//for a directed graph is finding only the outgoing edges, have to add condition for adding the incoming ones\t\t\t\t\n\t\t\t\tHashMap<Integer, String> match = new HashMap<>();\n\t\t\t\tmatch.put(1, node);\n\t\t\t\tmatch.put(2, neighbord);\n\t\t\t\tif (GraphParameters.singleLabel==1){\t\t\t\t\t\n\t\t\t\t\tDFScode<DFSedge> dfscode = new DFScode<>();\n\t\t\t\t\tdfscode.add(new DFSedge(1, GraphParameters.graph.vertexOneLabel.get(node), 2, GraphParameters.graph.vertexOneLabel.get(neighbord)));\n\t\t\t\t\tcanCode = getCanCode(dfscode);\n\t\t\t\t\tFSG.canCodeDFSCode.put(canCode, dfscode);\n\t\t\t\t\tFSG.codeDFSRep.put(canCode, dfscode);\n\t\t\t\t\tHashFuctions.updateHashHashSet(FSG.supportedNodes, canCode, match.get(1));\n\t\t\t\t\tFSG.root = AuxiliaryFunctions.addRootString(FSG.root, canCode, match);\n\t\t\t\t}else{\n\t\t\t\t\tfor (PairStrValues lbls: getMixedLabels(node,neighbord)){\n\t\t\t\t\t\tDFScode<DFSedge> dfscode = new DFScode<>();\n\t\t\t\t\t\tdfscode.add(new DFSedge(1, lbls.getFromlb(), 2, lbls.getTolb()));\n\t\t\t\t\t\tcanCode = getCanCode(dfscode);\n\t\t\t\t\t\tFSG.canCodeDFSCode.put(canCode, dfscode);\n\t\t\t\t\t\tFSG.codeDFSRep.put(canCode, dfscode);\n\t\t\t\t\t\tHashFuctions.updateHashHashSet(FSG.supportedNodes, canCode, match.get(1));\n\t\t\t\t\t\tFSG.root = AuxiliaryFunctions.addRootString(FSG.root, canCode, match);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (GraphParameters.undirected == 0){\n\t\t\t\tfor(String neighbord: GraphParameters.graph.getIncomingEdges(node, GraphParameters.graph)){\n\t\t\t\t\tHashMap<Integer, String> match = new HashMap<>();\n\t\t\t\t\tmatch.put(1, node);\n\t\t\t\t\tmatch.put(2, neighbord);\n\t\t\t\t\tif (GraphParameters.singleLabel==1){\t\t\t\t\t\n\t\t\t\t\t\tDFScode<DFSedge> dfscode = new DFScode<>();\n\t\t\t\t\t\tdfscode.add(new DFSedge(2, GraphParameters.graph.vertexOneLabel.get(neighbord),1, GraphParameters.graph.vertexOneLabel.get(node), false));\n\t\t\t\t\t\tcanCode = getCanCode(dfscode);\n\t\t\t\t\t\tFSG.canCodeDFSCode.put(canCode, dfscode);\n\t\t\t\t\t\tFSG.codeDFSRep.put(canCode, dfscode);\n\t\t\t\t\t\tHashFuctions.updateHashHashSet(FSG.supportedNodes, canCode, match.get(1));\n\t\t\t\t\t\tFSG.root = AuxiliaryFunctions.addRootString(FSG.root, canCode, match);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor (PairStrValues lbls: getMixedLabels(node,neighbord)){\n\t\t\t\t\t\t\tDFScode<DFSedge> dfscode = new DFScode<>();\n\t\t\t\t\t\t\tdfscode.add(new DFSedge(2, lbls.getTolb(), 1, lbls.getFromlb(), false));\n\t\t\t\t\t\t\tcanCode = getCanCode(dfscode);\n\t\t\t\t\t\t\tFSG.canCodeDFSCode.put(canCode, dfscode);\n\t\t\t\t\t\t\tFSG.codeDFSRep.put(canCode, dfscode);\n\t\t\t\t\t\t\tHashFuctions.updateHashHashSet(FSG.supportedNodes, canCode, match.get(1));\n\t\t\t\t\t\t\tFSG.root = AuxiliaryFunctions.addRootString(FSG.root, canCode, match);\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\tIterator<String> it2 = FSG.root.keySet().iterator();\n\t\twhile (it2.hasNext()){\n\t\t\tString strCode = it2.next();\n\t\t\tcalculateSupport(strCode, it2, 1);\n\t\t}\n\t}", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.51830184", "text": "int getLabelsCount();", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.51830184", "text": "int getLabelsCount();", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.51830184", "text": "int getLabelsCount();", "title": "" }, { "docid": "a5ba81d47e742bcec6303493f1c4414d", "score": "0.51830184", "text": "int getLabelsCount();", "title": "" }, { "docid": "01b317b86d8d5302676105cd0743e4f8", "score": "0.51750803", "text": "com.google.protobuf.ByteString\n getLabelBytes();", "title": "" }, { "docid": "169f47e24bcedcafd57dc5ef0f0fbfd6", "score": "0.5171846", "text": "int uf_find(int x, int[] parent, int[] label) {\r\n while (parent[x] > 0) {\r\n x = parent[x];\r\n }\r\n if (label[x] == 0) {\r\n label[x] = next_label++;\r\n }\r\n return label[x];\r\n }", "title": "" }, { "docid": "e2e2c7e256c120ed68f11976db9a3d9f", "score": "0.515091", "text": "double getLabel();", "title": "" }, { "docid": "2f46fc0f2bbb5cb4436a3aaa530ef757", "score": "0.5150276", "text": "public int relabelToFront() {\n return 0;\n }", "title": "" }, { "docid": "5249cae1909abf77522333e7c0571369", "score": "0.51459926", "text": "int DoSuperpixelSegmentation_ForGivenK(\n int[] ubuff,\n int width,\n int height,\n int[] klabels,\n int numlabels,\n int K,//required number of superpixels\n double m,//weight given to spatial distance\n boolean LAB_space) {\n\n //--------------------------------------------------\n m_width = width;\n m_height = height;\n int sz = m_width * m_height;\n //--------------------------------------------------\n //if(0 == klabels) klabels = new int[sz];\n for (int s = 0; s < sz; s++) {\n klabels[s] = -1;\n }\n //--------------------------------------------------\n \n if (LAB_space)//LAB\n {\n m_lvec = new double[sz];\n m_avec = new double[sz];\n m_bvec = new double[sz];\n DoRGBtoLABConversion(ubuff, m_lvec, m_avec, m_bvec);\n } else//RGB\n {\n m_lvec = new double[sz];\n m_avec = new double[sz];\n m_bvec = new double[sz];\n for (int i = 0; i < sz; i++) {\n m_lvec[i] = ubuff[i] >> 16 & 0xff;\n m_avec[i] = ubuff[i] >> 8 & 0xff;\n m_bvec[i] = ubuff[i] & 0xff;\n }\n }\n //--------------------------------------------------\n\n boolean perturbseeds = true;\n double[] edgemag = new double[sz];\n for (int i = 0; i < sz; i++) {\n edgemag[i] = 0;\n }\n if (perturbseeds) {\n DetectLabEdges(m_lvec, m_avec, m_bvec, m_width, m_height, edgemag);\n }\n\n int css = countSeedSize(K);\n double[] kseedsl = new double[css];\n double[] kseedsa = new double[css];\n double[] kseedsb = new double[css];\n double[] kseedsx = new double[css];\n double[] kseedsy = new double[css];\n\n GetLABXYSeeds_ForGivenStepSize(kseedsl, kseedsa, kseedsb, kseedsx, kseedsy, K, perturbseeds, edgemag);\n\n int STEP = (int) (Math.sqrt((double) (sz) / (double) (K)) + 2.0);//adding a small value in the even the STEP size is too small.\n PerformSuperpixelSLIC(kseedsl, kseedsa, kseedsb, kseedsx, kseedsy, klabels, STEP, edgemag, m);\n \n numlabels = kseedsl.length;\n\n int[] nlabels = new int[sz];\n for (int s = 0; s < sz; s++) {\n nlabels[s] = -1;\n }\n \n EnforceLabelConnectivity(klabels, m_width, m_height, nlabels, numlabels, K);\n System.arraycopy(nlabels, 0, klabels, 0, sz);\n \n return (numlabels);\n }", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5137655", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5137655", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5137655", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5137655", "text": "String getLabel();", "title": "" }, { "docid": "48f23f781bfdd4f5fc8a65d9eba43b08", "score": "0.5137655", "text": "String getLabel();", "title": "" }, { "docid": "dc4a2d8ed427d1fdcfc0530e5168948f", "score": "0.5136839", "text": "public void doNeighborToNeighborCoupling(String port) {\r\n componentIterator it1 = components.cIterator();\r\n while (it1.hasNext()) {\r\n Cell d1 = (Cell) it1.nextComponent();\r\n Pair myid = (Pair) d1.getId();\r\n Integer my_xint = (Integer) myid.getKey();\r\n Integer my_yint = (Integer) myid.getValue();\r\n int my_x = my_xint.intValue();\r\n int my_y = my_yint.intValue();\r\n //System.out.println();\r\n //System.out.println(\"My cell id: \" + myid.toString());\r\n //System.out.println();\r\n componentIterator it2 = components.cIterator();\r\n while (it2.hasNext()) {\r\n Cell d2 = (Cell) it2.nextComponent();\r\n Pair other_id = (Pair) d2.getId();\r\n if (!other_id.equals(myid)) {\r\n Integer other_xint = (Integer) other_id.getKey();\r\n Integer other_yint = (Integer) other_id.getValue();\r\n int other_x = other_xint.intValue();\r\n int other_y = other_yint.intValue();\r\n //System.out.println(\"Other cell id: \" + other_id.toString());\r\n // N Neighbor\r\n if (my_x == other_x && my_y == other_y - 1) {\r\n addCoupling(d1, port + \"outS\", d2, port + \"inN\");\r\n } // NE Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y - 1) {\r\n addCoupling(d1, port + \"outSE\", d2, port + \"inNW\");\r\n } // E Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y) {\r\n addCoupling(d1, port + \"outE\", d2, port + \"inW\");\r\n //System.out.println(\"My East Neighbor id: \" + other_id.toString());\r\n } // SE Neighbor\r\n else if (my_x == other_x - 1 && my_y == other_y + 1) {\r\n addCoupling(d1, port + \"outNE\", d2, port + \"inSW\");\r\n } // S Neighbor\r\n else if (my_x == other_x && my_y == other_y + 1) {\r\n addCoupling(d1, port + \"outN\", d2, port + \"inS\");\r\n } // SW Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y + 1) {\r\n addCoupling(d1, \"outNW\", d2, \"inSE\");\r\n } // W Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y) {\r\n addCoupling(d1, port + \"outW\", d2, port + \"inE\");\r\n } // NW Neighbor\r\n else if (my_x == other_x + 1 && my_y == other_y - 1) {\r\n addCoupling(d1, port + \"outSW\", d2, port + \"inNE\");\r\n }\r\n } // end if\r\n } // End inner while loop\r\n } // End outer while loop\r\n }", "title": "" }, { "docid": "1ee2c7bd2e2544f2da37bbf838346c85", "score": "0.5120638", "text": "public synchronized void updateImage() {\n\t\tif (alreadyDisplayed.size() == dannyImageArray.length) \n\t\t\talreadyDisplayed.clear();\n\n\t\tImageIcon randomDanny;\n\n\t\t//Search for unvisited image \t\t\n\t\tdo\n\t\t{\n\t\t\trandomDanny = dannyImageArray[randomDannyNum.nextInt(dannyImageArray.length)]; \t\t\t\n\t\t} while (alreadyDisplayed.contains(randomDanny));\n\n\t\t//add selected image\n\t\talreadyDisplayed.add(randomDanny);\n\t\timageLabel.setIcon(randomDanny);\n\t}", "title": "" }, { "docid": "e2f54457c724e7692607b3e72e0169be", "score": "0.5113432", "text": "public NearestNeighbor1()\r\n {\r\n \r\n }", "title": "" }, { "docid": "bd3ff1e76e3aa506de628c1a45ad2122", "score": "0.5113005", "text": "private void checkLabel(Label label) {\n\n }", "title": "" }, { "docid": "4bec814fe65b923d83b8857b9eb1557e", "score": "0.5105263", "text": "public void storeLabel(String label) {\n if (labels == null)\n labels = new ArrayList<>();\n\n if (!uniq.contains(label)) {\n uniq.add(label);\n labels.add(label);\n }\n }", "title": "" }, { "docid": "fe3d5e815296267e829119f82aea0cfd", "score": "0.509274", "text": "@Override\n public void updateLabels() {\n\t\tinitLabels();\n\t}", "title": "" }, { "docid": "2d8fa45f3e10558096f0977e8585ac39", "score": "0.5083727", "text": "Integer getObservedLabel();", "title": "" }, { "docid": "9577a028856d70172591479044699567", "score": "0.5064874", "text": "void calcNeighbour() {\n\t\tint cur ;\n\t\tfor (int r = 0; r < rows; r++) {\n\t\t\tfor (int c = 0; c < cols; c++) {\n\t\t\t\tcur = 0;\n\t\t\t\tif (r > 0 && c > 0 && count[r - 1][c - 1] == bombCode) {\n\t\t\t\t\tcur++;\n\t\t\t\t}\n\t\t\t\tif (r > 0 && count[r - 1][c ] == bombCode) {\n\t\t\t\t\tcur++;\n\t\t\t\t}\n\t\t\t\tif (r > 0 && c < cols - 1 && count[r - 1][c + 1] == bombCode) {\n\t\t\t\t\tcur++;\n\t\t\t\t}\n\t\t\t\tif (c > 0 && count[r ][c - 1] == bombCode) {\n\t\t\t\t\tcur++;\n\t\t\t\t}\n\t\t\t\t// if current position has bomb, do nothing\n\t\t\t\tif (count[r][c] == bombCode) {\n\t\t\t\t\tcontinue; \n\t\t\t\t}\n\t\t\t\tif (c < cols - 1 && count[r ][c + 1] == bombCode) {\n\t\t\t\t\tcur++;\n\t\t\t\t}\n\t\t\t\tif (r < rows - 1 && c > 0 && count[r + 1][c - 1] == bombCode) {\n\t\t\t\t\tcur++;\n\t\t\t\t}\n\t\t\t\tif (r < rows - 1 && count[r + 1][c] == bombCode) {\n\t\t\t\t\tcur++;\n\t\t\t\t}\n\t\t\t\tif (r < rows - 1 && c < cols - 1 && count[r + 1][c + 1] == bombCode) {\n\t\t\t\t\tcur++;\n\t\t\t\t}\n\t\t\t\tcount[r][c] = cur;\n//\t\t\t\tfields[r][c].setText(count[r][c] + \"\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a5b69657060e4b837fa7eaa00c7834a7", "score": "0.5062036", "text": "public static void cleanUpNearestNeighbor(String[][] m, boolean changeWater){\n\t\tfor(int i = 0; i<m.length; i++) {\n\t\t\tfor(int j = 0; j<m[0].length; j++) {\n\t\t\t\t\n\t\t\t\tif(!changeWater) {\n\t\t\t\t\t//don't change the water tiles\n\t\t\t\t\tif(m[i][j].equals(\"W\") || m[i][j].equals(\"12\")) {\n\t\t\t\t\t\tcontinue; \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//set is to keep track of any individual Strings without repeating\n\t\t\t\tSet<String> colorSet = new HashSet<String>();\n\t\t\t\t\n\t\t\t\t//ArrayList is to keep track of all \n\t\t\t\tArrayList<String> stringArr = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// itself -- used as a tiebreaker and to prevent a single\n\t\t\t\t// color from dominating the entire map\n\t\t\t\tString curString = m[i][j];\n\t\t\t\t\tstringArr.add(curString); \n\t\t\t\t\tcolorSet.add(curString);\n\t\t\t\t\n\t\t\t\t//up\n\t\t\t\tif(i!=0) {\n\t\t\t\t\tcurString = m[i-1][j];\n\t\t\t\t\tstringArr.add(curString); \n\t\t\t\t\tcolorSet.add(curString);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//down\n\t\t\t\tif(i != m.length-1) {\n\t\t\t\t\tcurString = m[i+1][j];\n\t\t\t\t\tstringArr.add(curString);\n\t\t\t\t\tcolorSet.add(curString);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//left\n\t\t\t\tif(j !=0) {\n\t\t\t\t\tcurString = m[i][j-1];\n\t\t\t\t\tstringArr.add(curString);\n\t\t\t\t\tcolorSet.add(curString);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//right\n\t\t\t\tif(j != m[0].length-1) {\n\t\t\t\t\tcurString = m[i][j+1];\n\t\t\t\t\tstringArr.add(curString);\n\t\t\t\t\tcolorSet.add(curString);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tint biggestElementLocation = 0;\n\t\t\t\tString[] colorSetArr = colorSet.toArray(new String[0]);\n\t\t\t\tint[] colorCounts = new int[colorSetArr.length];\n\t\t\t\t\n\t\t\t\t//fill an array with the amount of times each String shows up\n\t\t\t\tfor(int ii =0; ii<colorSetArr.length; ii++) {\n\t\t\t\t\tcolorCounts[ii] = getNumCountElements(colorSetArr[ii], stringArr);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//get the location of the String that shows up the most\n\t\t\t\tfor(int ii =0; ii<colorCounts.length; ii++) {\n\t\t\t\t\tif(colorCounts[ii] > colorCounts[biggestElementLocation]) {\n\t\t\t\t\t\tbiggestElementLocation = ii;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//go with the majority\n\t\t\t\tm[i][j] = colorSetArr[biggestElementLocation];\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "60cab373a0a52d49d69ad0bf7115321f", "score": "0.50601685", "text": "@Override\n public int hashCode() {\n return this.uniqueLabel;\n }", "title": "" }, { "docid": "acd68264248efa2345695351786269c0", "score": "0.50509024", "text": "com.google.protobuf.ByteString\n getLabelBytes();", "title": "" }, { "docid": "ee5e1d31365bcee206349c565a5147b3", "score": "0.5049544", "text": "Map<String, String> labels();", "title": "" }, { "docid": "d64205b7a7ed7477f523e11ee9164095", "score": "0.50493455", "text": "private void addPair (long mask, String label) {\n\t\tString value = taggingData.contains(mask) ? \"yes\" : \"no\";\n\t\tcol.addPair(label, value);\n\t}", "title": "" }, { "docid": "4d493baeee7ee8dd20ca3d9fc28afb1c", "score": "0.50488263", "text": "public static BipartiteGraph feasibleLabel()\n\n\t{\n\t\t//System.out.println(\"In feasibleLabel\");\n\t\tBipartiteGraph new_graph = new BipartiteGraph(graph.size,graph.maxWeight);\n\t\tfor (Vertice v: graph.xverts)\n\t\t{\n\t\t\t//System.out.println(v.getName()+\" \"+ v.getMaxEdgeWeight() + \" \"+ v.getMaxEdgeNeighbor());\n\t\t\tnew_graph.setLabel(v.getName(), v.getMaxEdgeWeight());\n\t\t\tnew_graph.addEdge(v.getName(),v.getMaxEdgeNeighbor().getName(),v.getMaxEdgeWeight());\n\t\t}\n\t\tfor (Vertice v: graph.yverts)\n\t\t{\n\t\t\tnew_graph.setLabel (v.getName(),0);\n\t\t}\n\t\treturn new_graph;\n\t}", "title": "" }, { "docid": "363720bd1856abcdecdd37358b4a57f7", "score": "0.50475913", "text": "public ImageStack getColouredLabels() {\n\t\tImageStack coloured = new ImageStack(size[0], size[1]);\n\t\tfor (int z = 1; z <= size[2]; ++z) {\n\t\t\tcoloured.addSlice(\n\t\t\t\tConnectedComponents.colourLabels(\n\t\t\t\t\t(ShortProcessor)relabelStack.getProcessor(z), ncomponents));\n\t\t}\n\t\treturn coloured;\n\t}", "title": "" }, { "docid": "26d6ede715d20f2636b2fa10803133c5", "score": "0.5036223", "text": "protected void findActiveLabels(LabelScoreArray di, int nodeId) {\n\t}", "title": "" }, { "docid": "2463c40ce47dc4a969b9c26b0c69f5b0", "score": "0.50274307", "text": "public static void HungarianAlgorithm()\n\t{\n\t\tSystem.out.println(\"In HungarianAlgorithm\");\n\t\tfeasible_labelled = feasibleLabel() ;//graph);\n\t\tSystem.out.println(\"=================Printing Feasibly labelled graph======================\");\n\t\tfeasible_labelled.printGraph();\n\t\tinitial_match = initial_match(feasible_labelled);\n\t\tSystem.out.println(\"=================Printing initial match graph======================\");\n\t\tinitial_match.printGraph();\n\t\t//LabelOriginalGraph\n\t\tfor (Vertice v: graph.xverts)\n\t\t{\n\t\t\tv.setLabel(v.getMaxEdgeWeight());\n\t\t\t//System.out.println(v.getLabel());\n\n\t\t}\n\t\tfor (Vertice v: graph.yverts)\n\t\t{\n\t\t\tv.setLabel (0);\n\t\t}\n\t\t//graph.printLabel();\n\t\tdoStep2(graph.size);\n\t}", "title": "" }, { "docid": "366cc1c4b5e98a3d11829d385cfc382a", "score": "0.50263315", "text": "public void findNeighbours(){\n\t\tfor(int i = 0; i < linkStateDatabase.size(); i++){\n\t\t\tfor(int j = 0; j<linkStateDatabase.size(); j++){\n\t\t\t\tif((linkStateDatabase.get(i)[1] == linkStateDatabase.get(j)[1])&&\n\t\t\t\t\t\t(linkStateDatabase.get(i)[0] != linkStateDatabase.get(j)[0])){\n\t\t\t\t\tint[] entry = new int[4];\n\t\t\t\t\tentry[0] = linkStateDatabase.get(j)[0];\n\t\t\t\t\tentry[1] = linkStateDatabase.get(i)[0];\n\t\t\t\t\tentry[2] = linkStateDatabase.get(i)[1];\n\t\t\t\t\tentry[3] = linkStateDatabase.get(i)[2];\n\t\t\t\t\tif(uniqueNeighbour(entry)){\n\t\t\t\t\t\tallNeighbours.add(entry);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//}\n\t}\n\n\n}", "title": "" }, { "docid": "cb760eacfda8919a3d9637d280140495", "score": "0.50223184", "text": "@Test\n\tvoid testHasLabel()\n\t{\n\t\tArrayList<Label> labels = new ArrayList<Label>();\n\t\tfor (int i = 1; i <= 4; i++)\n\t\t{\n\t\t\tLabel l = new Label(\"l\" + String.valueOf(i));\n\t\t\tlabels.add(l);\n\t\t\tc1.addLabel(l, c1Owner);\n\t\t}\n\t\t\n\t\t// Create another label that we'll never add to the list\n\t\t// for testing\n\t\tLabel foreignLabel = new Label(\"foreign label\");\n\t\tLabel temp;\n\t\t\n\t\t// Let's make sure that all of the labels that we added are actually\n\t\t// found in the list\n\t\tfor (Label l : labels)\n\t\t\tassertTrue(c1.hasLabel(l));\n\t\t\n\t\t// Let's make sure that a label not in the list shows as not being there\n\t\tassertFalse(c1.hasLabel(foreignLabel));\n\t\t\n\t\t// Let's remove a label and make sure that the label doesn't show as being there\n\t\tc1.removeLabel(labels.get(0), c1Owner);\n\t\ttemp = labels.get(0);\n\t\tlabels.remove(0); // Keep this list the same for testing\n\t\t\n\t\tassertFalse(c1.hasLabel(temp));\n\t}", "title": "" }, { "docid": "6f3fc320aff5a25f42c37c60ff78cb03", "score": "0.5020846", "text": "public ShortProcessor getLabelImage() {\n\t\treturn labelim;\n\t}", "title": "" }, { "docid": "ad4f1ba1475720421451561ae3ecbb63", "score": "0.50183004", "text": "static int labelIndexToHandIndex(int labelIndex)\n {\n for (int i = 0; i < buildCardGame.getHand(1).getNumOfCards(); i++)\n {\n if (humanLabels[labelIndex].getIcon() != null)\n {\n Icon boardIcon = humanLabels[labelIndex].getIcon();\n Icon handIcon = CardView.GUICard\n .getIcon(buildCardGame.getHand(1).inspectCard(i));\n if (boardIcon.toString().equals(handIcon.toString()))\n {\n return i;\n }\n }\n }\n\n return 0;\n }", "title": "" }, { "docid": "89e06279a482708cd434b8a96c339c90", "score": "0.5010068", "text": "public void labelLoad(byte [] labels, int offset) {\n\r\n\t\toutput = (int) (labels[offset]);\r\n\r\n\t\tfor (int i = 0; i < 10; i++) { // We then set the correct index in output[] to +1 if it corresponds to the ouput and -1 if not\r\n\t\t\tif (i == output) {\r\n\t\t\t\toutputs[i] = 1.0f;\r\n\t\t\t} else {\r\n\t\t\t\toutputs[i] = -1.0f;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f35600315c426c2e487e908be59bfe0e", "score": "0.5006239", "text": "@Override\n public void computeNextState(Cell[] neighbors)\n {\n \t// Here's where the fun stuff happens!\n \t// neighbors is an array of the adjacent cells, like this:\n \t// 0 1 2\n \t// 3 4 5\n \t// 6 7 8\n \t// Where 4 is the current cell.\n \t\n \t// Count the number of adjacent live cells on a cross (five)\n \tint count = 0;\n \tfor (int i = 1; i < 8; i += 2)\n \t{\n \t\tif (neighbors[i] == null) \n {\n continue;\n }\n \t\tif (neighbors[i].isState(1))\n {\n count++;\n }\n }\n // Count this cell too\n /* or not\n if (neighbors[4].isState(1)) \n {\n count++;\n }\n /* */\n // 374 in binary, LSD first\n int[] outputs = {0, 1, 1, 0, 1, 1, 1, 0, 1, 0};\n int targetInd = 2 * count + neighbors[4].getState();\n neighbors[4].setNextState(outputs[targetInd]);\n }", "title": "" }, { "docid": "fa37ca99f2e93999ded5bb45af8f148e", "score": "0.49999326", "text": "private static void octreeLabeling(int octant, int label, int[] cube) \n\t\t{\n\t\t// check if there are points in the octant with value 1\n\t\tif( octant==1 )\n\t\t\t{\n\t\t\t// set points in this octant to current label\n\t\t\t// and recursive labeling of adjacent octants\n\t\t\tif( cube[0] == 1 )\n\t\t\t\tcube[0] = label;\n\t\t\tif( cube[1] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[1] = label; \n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[3] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[3] = label; \n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[4] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[4] = label; \n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[9] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[9] = label; \n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[10] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[10] = label; \n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[12] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[12] = label; \n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\t}\n\t\t\t}\n\t\tif( octant==2 )\n\t\t\t{\n\t\t\tif( cube[1] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[1] = label;\n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[4] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[4] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[10] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[10] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[2] == 1 )\n\t\t\t\tcube[2] = label; \n\t\t\tif( cube[5] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[5] = label; \n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[11] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[11] = label; \n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[13] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[13] = label; \n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\t}\n\t\tif( octant==3 )\n\t\t\t{\n\t\t\tif( cube[3] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[3] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[4] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[4] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[12] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[12] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[6] == 1 )\n\t\t\t\tcube[6] = label; \n\t\t\tif( cube[7] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[7] = label; \n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[14] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[14] = label; \n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[15] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[15] = label; \n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\t}\n\t\tif( octant==4 )\n\t\t\t{\n\t\t\tif( cube[4] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[4] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[5] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[5] = label; \n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[13] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[13] = label; \n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[7] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[7] = label; \n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[15] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[15] = label; \n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[8] == 1 )\n\t\t\t\tcube[8] = label; \n\t\t\tif( cube[16] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[16] = label; \n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\t}\n\t\tif( octant==5 )\n\t\t\t{\n\t\t\tif( cube[9] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[9] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[10] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[10] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[12] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[12] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[17] == 1 )\n\t\t\t\tcube[17] = label; \n\t\t\tif( cube[18] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[18] = label; \n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[20] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[20] = label; \n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[21] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[21] = label; \n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\t}\n\t\tif( octant==6 )\n\t\t\t{\n\t\t\tif( cube[10] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[10] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[11] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[11] = label; \n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[13] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[13] = label; \n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[18] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[18] = label; \n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[21] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[21] = label; \n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[19] == 1 )\n\t\t\t\tcube[19] = label; \n\t\t\tif( cube[22] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[22] = label; \n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\t}\n\t\tif( octant==7 )\n\t\t\t{\n\t\t\tif( cube[12] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[12] = label; \n\t\t\t\toctreeLabeling( 1, label, cube);\n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[14] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[14] = label; \n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[15] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[15] = label; \n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[20] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[20] = label; \n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[21] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[21] = label; \n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[23] == 1 )\n\t\t\t\tcube[23] = label; \n\t\t\tif( cube[24] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[24] = label; \n\t\t\t\toctreeLabeling( 8, label, cube);\n\t\t\t\t}\n\t\t\t}\n\t\tif( octant==8 )\n\t\t\t{\n\t\t\tif( cube[13] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[13] = label; \n\t\t\t\toctreeLabeling( 2, label, cube);\n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[15] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[15] = label; \n\t\t\t\toctreeLabeling( 3, label, cube);\n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[16] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[16] = label; \n\t\t\t\toctreeLabeling( 4, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[21] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[21] = label; \n\t\t\t\toctreeLabeling( 5, label, cube);\n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[22] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[22] = label; \n\t\t\t\toctreeLabeling( 6, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[24] == 1 )\n\t\t\t\t{\n\t\t\t\tcube[24] = label; \n\t\t\t\toctreeLabeling( 7, label, cube);\n\t\t\t\t}\n\t\t\tif( cube[25] == 1 )\n\t\t\t\tcube[25] = label; \n\t\t\t}\n\t\n\t\t}", "title": "" }, { "docid": "eb03b720f7557c7bc60e88074e4c8b84", "score": "0.49997458", "text": "public static GrayU8 reconstructFlatZOne(String img_input, String img_output, Integer[] pixel, int LABEL_FZ) {\n\t\tBufferedImage buf_img_input = UtilImageIO.loadImage(img_input);\n\t\tBufferedImage buf_img_output = UtilImageIO.loadImage(img_output);\n\n\t\t// Converting from BufferedImage input image to BoofCV imgray8\n\t\tGrayU8 imgray8_input = ConvertBufferedImage.convertFromSingle(buf_img_input, null, GrayU8.class);\n\t\tGrayU8 imgray8_output = new GrayU8(imgray8_input.width, imgray8_input.height);\n\t\tSystem.out.println(\"width x length=\" + imgray8_input.width + \"x\" + imgray8_input.height);\n\t\t// set the value of LABEL_FZ to the value of the desired pixel\n\t\tLABEL_FZ = imgray8_input.get(pixel[0], pixel[1]);\n\n\t\tLABEL_NO_FZ = LABEL_FZ > (255 / 2) ? 0 : 255;\n\t\tSystem.out.println(\"LabelNo=\" + LABEL_NO_FZ + \" - LabelFZ=\" + LABEL_FZ);\n\t\tinitImageOutput(imgray8_output, LABEL_NO_FZ);\n\n\t\tSystem.out.println(\"value of FZ_Label=\" + LABEL_FZ);\n\t\timgray8_output.set(pixel[0], pixel[1], LABEL_FZ);\n\t\tQueue<Integer[]> queue = new LinkedList<Integer[]>();\n\t\tqueue.offer(pixel);\n\t\tInteger[] pixel2 = new Integer[2];\n\t\twhile (!queue.isEmpty()) {\n\t\t\tpixel2 = queue.poll();\n\t\t\t// System.out.println(\"queue.poll()=\"+pixel2[0]+\" x \"+pixel2[1]+\" -\n\t\t\t// value=\"+LABEL_FZ);\n\t\t\tfor (int x = pixel2[0] - 1; x <= pixel2[0] + 1; x++) {\n\t\t\t\tfor (int y = pixel2[1] - 1; y <= pixel2[1] + 1; y++) {\n\t\t\t\t\t// skip testing the flat zone pixel with itself\n\t\t\t\t\tif ((x == pixel2[0] && y == pixel2[1])\n\t\t\t\t\t\t\t|| (x > imgray8_input.width - 1 || y > imgray8_input.height - 1) || (x < 0 || y < 0))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif (imgray8_input.get(x, y) > 0)\n\t\t\t\t\t\tSystem.out.println(\"no 0 =\" + x + \" x \" + y + \" - value=\" + imgray8_input.get(x, y));\n\n\t\t\t\t\t/*\n\t\t\t\t\t * if the current pixel belongs to the flat zone and was not\n\t\t\t\t\t * treated yet, then set it properly in the ouput image and\n\t\t\t\t\t * add it to the queue\n\t\t\t\t\t */\n\t\t\t\t\t/*\n\t\t\t\t\t * System.out.println(\"get(x,y)=\"+imgray8_input.get(x, y)\n\t\t\t\t\t * +\" - get(pixel2[0], pixel2[1]\"+imgray8_input.get(pixel2[0\n\t\t\t\t\t * ], pixel2[1]) +\"exist: \"+(imgray8_output.get(x, y) !=\n\t\t\t\t\t * LABEL_FZ));\n\t\t\t\t\t */\n\t\t\t\t\tif (imgray8_input.get(x, y) == imgray8_input.get(pixel2[0], pixel2[1])\n\t\t\t\t\t\t\t&& imgray8_output.get(x, y) != LABEL_FZ) {\n\t\t\t\t\t\t// System.out.println(\"queue.offer()=\"+x+\" x \"+y + \" -\n\t\t\t\t\t\t// value=\"+imgray8_input.get(x, y));\n\n\t\t\t\t\t\timgray8_output.set(x, y, LABEL_FZ);\n\t\t\t\t\t\tqueue.offer(new Integer[] { x, y });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn imgray8_output;\n\t}", "title": "" }, { "docid": "baacc49d2f1b2e12e433059860afd00d", "score": "0.49941453", "text": "private void processNeighbor(int x, int y)\n {\n if (mz_coll[y][x] == 1 || mz_coll[y][x] == 0) // only if the selected cell is either in state 0 or 1\n {\n int next = randomGenerator.nextInt(4); // get a random neighbor\n\n if (count < 4) // if the number of neighbors processed so far is less than 4\n {\n switch (next) // depending on which neighbor was chosen\n {\n case 0: // north neighnor\n if (y - 1 >= 0) // north neighbor should be within the maze\n {\n if (mz_coll[y - 1][x] == 0) // if the neighbor is an unvisited cell\n {\n count = 0; // neighbors evaluated to 0\n check_count.clear(); // clear the list of neighbors sought\n maze[y][x][0] = 1; // open current cell into the neighbor\n maze[y - 1][x][2] = 1; // open neighbor into current cell\n mz_coll[y - 1][x] = 1; // make neighbor visited by changing state to 1\n } else // if it is a visited neighbor\n {\n if (!check_count.contains(next)) { // if this neighbor has not been seen so far in current iteration of current cell\n count++; // increase neighbor count by 1\n check_count.add(next); // add this neighbor to list of those that have been seen in current iteration of current cell\n }\n processNeighbor(x, y); // and call back this function with current cell\n }\n } else // if found a neighbor out of bounds of maze\n {\n if (!check_count.contains(next)) { // if this neighbor has not been seen so far in current iteration of current cell\n count++; // increase neighbor count by 1\n check_count.add(next); // add this neighbor to list of those that have been seen in current iteration of current cell\n }\n processNeighbor(x, y); // and call back this function with current cell\n }\n break;\n case 1: // east neighbor\n if (x + 1 < level) // east neighbor should be within the maze\n {\n if (mz_coll[y][x + 1] == 0) // if the neighbor is an unvisited cell\n {\n count = 0; // neighbors evaluated to 0\n check_count.clear(); // clear the list of neighbors sought\n maze[y][x][1] = 1; // open current cell into the neighbor\n maze[y][x + 1][3] = 1; // open neighbor into current cell\n mz_coll[y][x + 1] = 1; // make neighbor visited by changing state to 1\n } else // if it is a visited neighbor\n {\n if (!check_count.contains(next)) { // if this neighbor has not been seen so far in current iteration of current cell\n count++; // increase neighbor count by 1\n check_count.add(next); // add this neighbor to list of those that have been seen in current iteration of current cell\n }\n processNeighbor(x, y); // and call back this function with current cell\n }\n } else // if found a neighbor out of bounds of maze\n {\n if (!check_count.contains(next)) { // if this neighbor has not been seen so far in current iteration of current cell\n count++; // increase neighbor count by 1\n check_count.add(next); // add this neighbor to list of those that have been seen in current iteration of current cell\n }\n processNeighbor(x, y); // and call back this function with current cell\n }\n break;\n case 2: // south neighbor\n if (y + 1 < level) // south neighbor should be within the maze\n {\n if (mz_coll[y + 1][x] == 0) // if the neighbor is an unvisited cell\n {\n count = 0; // neighbors evaluated to 0\n check_count.clear(); // clear the list of neighbors sought\n maze[y][x][2] = 1; // open current cell into the neighbor\n maze[y + 1][x][0] = 1; // open neighbor into current cell\n mz_coll[y + 1][x] = 1; // make neighbor visited by changing state to 1\n } else // if it is a visited neighbor\n {\n if (!check_count.contains(next)) { // if this neighbor has not been seen so far in current iteration of current cell\n count++; // increase neighbor count by 1\n check_count.add(next); // add this neighbor to list of those that have been seen in current iteration of current cell\n }\n processNeighbor(x, y); // and call back this function with current cell\n }\n } else // if found a neighbor out of bounds of maze\n {\n if (!check_count.contains(next)) { // if this neighbor has not been seen so far in current iteration of current cell\n count++; // increase neighbor count by 1\n check_count.add(next); // add this neighbor to list of those that have been seen in current iteration of current cell\n }\n processNeighbor(x, y); // and call back this function with current cell\n }\n break;\n case 3: // west neighbor\n if (x - 1 >= 0) // west neighbor should be within the maze\n {\n if (mz_coll[y][x - 1] == 0) // if the neighbor is an unvisited cell\n {\n count = 0; // neighbors evaluated to 0\n check_count.clear(); // clear the list of neighbors sought\n maze[y][x][3] = 1; // open current cell into the neighbor\n maze[y][x - 1][1] = 1; // open neighbor into current cell\n mz_coll[y][x - 1] = 1; // make neighbor visited by changing state to 1\n } else // if it is a visited neighbor\n {\n if (!check_count.contains(next)) { // if this neighbor has not been seen so far in current iteration of current cell\n count++; // increase neighbor count by 1\n check_count.add(next); // add this neighbor to list of those that have been seen in current iteration of current cell\n }\n processNeighbor(x, y); // and call back this function with current cell\n }\n } else // if found a neighbor out of bounds of maze\n {\n if (!check_count.contains(next)) { // if this neighbor has not been seen so far in current iteration of current cell\n count++; // increase neighbor count by 1\n check_count.add(next); // add this neighbor to list of those that have been seen in current iteration of current cell\n }\n processNeighbor(x, y); // and call back this function with current cell\n }\n break;\n }\n } else // if all neighbors have been already seen\n {\n mz_coll[y][x] = 2; // convert the current cell into state 2\n mz_count++; // increment the count of cells in state 2 by one\n count = 0; // neighbors evaluated to 0\n check_count.clear(); // clear the list of neighbors sought\n }\n }\n }", "title": "" }, { "docid": "c6a61cbad04bd7954694dac3811cd923", "score": "0.49895546", "text": "public void underlying(){\n\n\n\t\tint n=graphOrder();\n\t\tboolean[][] adjMatrix = new boolean[n][n];\n\t\tList<Integer> list;\n\t\tint row=0;\n\t\tint column=0;\n\t\tHashMap<Integer,Integer> labels = new HashMap<Integer,Integer>();\n\t\tint index=0;\n\n\t\tfor (Integer i: nodeSet){\n\t\t\tlabels.put((Integer) index, (Integer)i);\n\t\t\tindex++;\n\t\t}\n\t\tfor (int i=0;i<n;i++){\n\t\t\tlist = data.get(labels.get((Integer)i));\n\t\t\tfor (int j=0; j<n; j++){\n\t\t\t\tadjMatrix[i][j]=(list.contains(labels.get((Integer)j)));\n\t\t\t}\n\t\t}\n\n\t\tfor (int i=0; i<n;i++){\n\t\t\tlist = data.get(labels.get(i));\n\t\t\tlist.clear();\n\t\t\tfor(int j=0; j<n; j++){\n\t\t\t\tif(adjMatrix[j][i] || adjMatrix[i][j])\n\t\t\t\t\taddEdge(i,j);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "76a494f594684197921b153a9a96d16a", "score": "0.49882358", "text": "protected int addLabel( String label )\n {\n Integer index = (Integer)labelMap.get( label );\n if( index != null )\n return( index.intValue() );\n\n int i = labels.size();\n labels.add( label );\n labelMap.put( label, new Integer( i ) );\n\n return( i );\n }", "title": "" }, { "docid": "c9305149b19d43eec3efa1ea80c56635", "score": "0.49845406", "text": "private void run() {\n\t\tint number = 0;\n\t\tfor (int t = 0; t < rounds; t++) {\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\t\t//count the number of alive neighbor cells\n\t\t\t\t\tnumber = getNeighbour(i, j);\n\t\t\t\t\t//if the number is odd, central cell is alive\n\t\t\t\t\tif (number % 2 == 1) {\n\t\t\t\t\t\tfield_new[i][j] = 1;\n\t\t\t\t\t} else// if even number, central cell is dead\n\t\t\t\t\t\tfield_new[i][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// update the old field\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\t\tfield_old[i][j] = field_new[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// redraw the image\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\t// if cell is alive, its color is black.\n\t\t\t\tif (field_old[i][j] == 1) {\n\t\t\t\t\tchangedImg.setRGB(j, i, Color.black.getRGB());\n\t\t\t\t} else//if cell is dead, its color is white\n\t\t\t\t\tchangedImg.setRGB(j, i, Color.white.getRGB());\n\t\t\t}\n\t\t}\n\t\t// draw the label\n\t\tdrawLabel.setIcon(new ImageIcon(changedImg));\n\t}", "title": "" }, { "docid": "eddacdd6fc65e300deda500582ed2d01", "score": "0.49795035", "text": "@Override\n\tpublic void neighborhoodChange() {\n\n\t}", "title": "" }, { "docid": "1d7ba5e49073c7d2994b6be2fff57643", "score": "0.49767095", "text": "public L getLabel(V vertex1, V vertex2) {\n\t\tL label = null;\n\t\tMap<V, L> neighbors = this.graph.get(vertex1);\n\t\tif (neighbors != null) {\n\t\t\t// vertex1 exist\n\t\t\tlabel = neighbors.get(vertex2);\n\t\t\t// if label == null then there isn't an edge between vertex1 and vertex2 does not exist\n\t\t}\n\t\treturn label;\n\t}", "title": "" }, { "docid": "7485332d540488c368cea6735f2a87e7", "score": "0.4970845", "text": "public void addClassLabel(String label) throws DataStructureException {\n\t\tif (data == null) { initNaiveBayesClassifier(); }\n\t\tif (data.getClassLabels().contains(label)) {\tthrow new DataStructureException(\"Label already exists (\\\"\" + label + \"\\\")\"); }\n\t\t\n\t\tdata.getClassLabels().add(label);\n\t\tdata.getPriorProbabilities().add(1d);\n\t\tfor (FeatureData feature : data.getFeatures()) {\n\t\t\tfor (StateData state : feature.getStates()) {\n\t\t\t\tstate.getConditionalProbabilities().add(1d);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1449d75eb64b6a09f31eafeb760467db", "score": "0.49607474", "text": "boolean hasObservedLabel();", "title": "" }, { "docid": "ce008f2497885064edb7231c6885b2fd", "score": "0.4957768", "text": "private void postCluster() {\n List<String> imagesNotClustered = new ArrayList<>();\n for(int i=0;i<vClusters.size();i++){\n int size=0;\n for(int j=0; j<vClusters.size();j++){\n if(Objects.equals(vClusters.get(i), vClusters.get(j))){\n size++;\n }\n }\n if(size==1){\n imagesNotClustered.add(vImages.get(i));\n }\n }\n int imagePosition, newClusterPosition;\n String imageWithMaxAffinity;\n for(String image:imagesNotClustered){\n imageWithMaxAffinity=getImageWithMaxAffinity(image);\n imagePosition=0;\n newClusterPosition=0;\n while(!vImages.get(imagePosition).equals(image)){\n imagePosition++;\n }\n if(imageWithMaxAffinity.equals(\"\")){\n vClusters.set(imagePosition,999);\n }else{\n while(!vImages.get(newClusterPosition).equals(imageWithMaxAffinity)){\n newClusterPosition++;\n }\n vClusters.set(imagePosition,vClusters.get(newClusterPosition));\n }\n }\n }", "title": "" }, { "docid": "c99fd57a43ad5fff8a787b98573e7e49", "score": "0.4952418", "text": "private void initLabels() {\n }", "title": "" }, { "docid": "8275d632cb54f38a00eb51cba77808a9", "score": "0.49514425", "text": "public void doThisCellsNeighborCouplings(int _xcoord, int _ycoord) {\r\n componentIterator it1 = components.cIterator();\r\n while (it1.hasNext()) {\r\n d1 = (Cell) it1.nextComponent();\r\n my_xcoord = d1.getXcoord();\r\n my_ycoord = d1.getYcoord();\r\n if (my_xcoord == _xcoord && my_ycoord == _ycoord) { // Found this Cell!\r\n break;\r\n }\r\n }\r\n //Couple this Cell to all default Cellspace ports\r\n doCellToCellspaceCouplings(d1);\r\n\r\n // Find this Cell's neighbors and couple them to this Cell\r\n componentIterator it2 = components.cIterator();\r\n while (it2.hasNext()) {\r\n Cell d2 = (Cell) it2.nextComponent();\r\n // Check if Cell d2 has all the neighbor couplings\r\n //if (!d2.isAllCoupled()) { //\r\n xcoord = d2.getXcoord();\r\n ycoord = d2.getYcoord();\r\n // N Neighbor\r\n if (my_xcoord == xcoord && my_ycoord == ycoord - 1) {\r\n addCoupling(d1, \"outS\", d2, \"inN\");\r\n } // NE Neighbor\r\n else if (my_xcoord == xcoord - 1 && my_ycoord == ycoord - 1) {\r\n addCoupling(d1, \"outSE\", d2, \"inNW\");\r\n } // E Neighbor\r\n else if (my_xcoord == xcoord - 1 && my_ycoord == ycoord) {\r\n addCoupling(d1, \"outE\", d2, \"inW\");\r\n } // SE Neighbor\r\n else if (my_xcoord == xcoord - 1 && my_ycoord == ycoord + 1) {\r\n addCoupling(d1, \"outNE\", d2, \"inSW\");\r\n } // S Neighbor\r\n else if (my_xcoord == xcoord && my_ycoord == ycoord + 1) {\r\n addCoupling(d1, \"outN\", d2, \"inS\");\r\n } // SW Neighbor\r\n else if (my_xcoord == xcoord + 1 && my_ycoord == ycoord + 1) {\r\n addCoupling(d1, \"outNW\", d2, \"inSE\");\r\n } // W Neighbor\r\n else if (my_xcoord == xcoord + 1 && my_ycoord == ycoord) {\r\n addCoupling(d1, \"outW\", d2, \"inE\");\r\n } // NW Neighbor\r\n else if (my_xcoord == xcoord + 1 && my_ycoord == ycoord - 1) {\r\n addCoupling(d1, \"outSW\", d2, \"inNE\");\r\n }\r\n //} // End out if isOld\r\n } // End while loop\r\n\r\n //Set that this Cell has all the couplings done\r\n d1.setCouplingsDone();\r\n\r\n }", "title": "" }, { "docid": "3cb68a0eb213b503d5b714840b70fa14", "score": "0.49465537", "text": "private int neighbors(int row, int col) {\n //TODO: Implement this method using the 'cells' array\n }", "title": "" }, { "docid": "ddc1cbd5664fc00261b9a9694d529cdd", "score": "0.4938394", "text": "private boolean labelCheck(String label) {\n \t\t\n \t\tif(label.charAt(0) == ';') {\n \t\t\t//String[] splitedLabel = label.split(\"[:;]\");\n \t\t\t//this.label = \"%\"+splitedLabel[2].trim();\n \t\t\t//this.label_line = label;\n \t\t\treturn true;\n \t\t}else{\n \t\t\tString[] splitedLabel = label.split(\":\");\n \t\t\t\n \t\t\tif(splitedLabel.length >= 2){\n \t\t\t\tthis.label = \"%\"+splitedLabel[0];\n\t\t\t\t//this.label_line = label;\n \t\t\t\treturn true;\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn false;\n \t}", "title": "" }, { "docid": "4bf94f2f356ca4fc8034782cc6ee9c15", "score": "0.49288508", "text": "private void handleEdges(){\n Person[][] copy = data;\n double a=0;\n double v = gen.nextDouble();\n for (int i = 1; i < copy[0].length-1; i++){\n if(!copy[0][i].infected()){\n if(copy[0][i-1].infected()){\n a++;\n }\n if(copy[1][i-1].infected()){\n a++;\n }\n if(copy[1][i].infected()){\n a++;\n }\n if(copy[1][i+1].infected()){\n a++;\n }\n if(copy[0][i].infected()){\n a++;\n }\n if(v>(a*c)){\n copy[0][copy.length-1].setInfected(true);\n }\n }\n }\n //top edge\n a=0;\n v = gen.nextDouble();\n for (int i = 1; i < copy.length-1; i++){\n if(!copy[i][0].infected()){\n if(copy[i-1][0].infected()){\n a++;\n }\n if(copy[i-1][0].infected()){\n a++;\n }\n if(copy[i][1].infected()){\n a++;\n }\n if(copy[i+1][1].infected()){\n a++;\n }\n if(copy[i+1][0].infected()){\n a++;\n }\n if(v>(a*c)){\n copy[i][0].setInfected(true);\n }\n }\n }\n //bottom edge\n a=0;\n v = gen.nextDouble();\n for (int i = 1; i < copy.length-1; i++){\n if(!copy[i][copy.length-1].infected()){\n if(copy[i-1][copy.length-1].infected()){\n a++;\n }\n if(copy[i-1][copy.length-2].infected()){\n a++;\n }\n if(copy[i][copy.length-2].infected()){\n a++;\n }\n if(copy[i+1][copy.length-2].infected()){\n a++;\n }\n if(copy[i+1][copy.length-1].infected()){\n a++;\n }\n if(v>(a*c)){\n copy[i][copy.length-1].setInfected(true);\n }\n }\n }\n //right edge\n a=0;\n v = gen.nextDouble();\n for (int i = 1; i < copy[0].length-1; i++){\n if(!copy[copy.length-1][i].infected()){\n if(copy[copy.length-1][i-1].infected()){\n a++;\n }\n if(copy[copy.length-2][i-1].infected()){\n a++;\n }\n if(copy[copy.length-2][i].infected()){\n a++;\n }\n if(copy[copy.length-2][i+1].infected()){\n a++;\n }\n if(copy[copy.length-1][i+1].infected()){\n a++;\n }\n if(v>(a*c)){\n copy[copy.length-1][i].setInfected(true);\n }\n }\n }\n data=copy;\n }", "title": "" }, { "docid": "4aafb4f02b0923ed9e4d07a71f896617", "score": "0.49287552", "text": "protected abstract void createLabels();", "title": "" }, { "docid": "700d9d4f5509ceb8c97c99077956ede9", "score": "0.49239665", "text": "int getNumLabels(int parentNode);", "title": "" }, { "docid": "41f1723f3494a54c1b101f74a04ef27e", "score": "0.49228787", "text": "private static void replaceLabel(final int[][] particleLabels, final int m,\n\t\tfinal int n, final int startZ, final int endZ)\n\t{\n\t\tfinal int s = particleLabels[0].length;\n\t\tfor (int z = startZ; z < endZ; z++) {\n\t\t\tfor (int i = 0; i < s; i++)\n\t\t\t\tif (particleLabels[z][i] == m) {\n\t\t\t\t\tparticleLabels[z][i] = n;\n\t\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2338d00a4c9cb0f6d4354243a2214f84", "score": "0.49201572", "text": "private void getNeighbors() {\n neighbors = new int[WIDTH][HEIGHT];\n for (int x = searchSize.getCoordinate().getX() + 1; x < searchSize.getBottomCoordinate().getX() - 1; x++) {\n for (int y = searchSize.getCoordinate().getY() + 1; y < searchSize.getBottomCoordinate().getY() - 1; y++) {\n List<Coordinate> adjCoordinates = new Coordinate(x, y).adjacentCoordinates();\n for (Coordinate coordinate : adjCoordinates) {\n neighbors[coordinate.getX()][coordinate.getY()] += map[x][y];\n }\n }\n }\n }", "title": "" }, { "docid": "63628d8d9a0ebef2aac749dc8693e4ea", "score": "0.4910584", "text": "java.lang.String getLabel();", "title": "" }, { "docid": "63628d8d9a0ebef2aac749dc8693e4ea", "score": "0.4910584", "text": "java.lang.String getLabel();", "title": "" }, { "docid": "b2bdb592d170c8d7f7b8c89e96b5c1f2", "score": "0.49086523", "text": "private static boolean getLabel(List<GroundAtom> expected, GroundAtom next, double threshold) {\n\t\tboolean label;\n\t\tint index = expected.indexOf(next);\n\t\tif (index == -1)\n\t\t\tlabel = false;\n\t\telse\n\t\t\tlabel = expected.get(index).getValue() > threshold;\n\t\t\n\t\treturn label;\n\t}", "title": "" }, { "docid": "3d3701a92122d5f19e5cb84c9e1f519d", "score": "0.4901448", "text": "public byte[][] getNeighbours( byte[] cv );", "title": "" }, { "docid": "c61600f30332a9b19e6931ac9d086905", "score": "0.48958284", "text": "public void removeEdge1Side(T srcLabel, T removedLabel) {\n \tif(!checkPersonInList(srcLabel)){\n \t\tSystem.out.println(\"The first person does not exist! Please add the person first!\");\n \t\treturn;\n \t}\n \t\n \tif(!checkPersonInList(removedLabel)){\n \t\tSystem.out.println(\"The last person does not exist! Please add the person first!\");\n \t\treturn;\n \t}\n \t \n \t// remove the edge in screLabel's friend list, one side only\n \tint index = map.get(srcLabel);\n \tfriends[index].deleteVertice(removedLabel);\n \t\n }", "title": "" }, { "docid": "68dc642c1afd3377735e54ba2bf9b163", "score": "0.48928657", "text": "@Override\n protected void process(int e) {\n LabelComponent labelComponent = mapLabel.get(e);\n if (labelComponent.offset_y == 0f) {\n SpriteComponent spriteComponent = mapSprite.get(e);\n labelComponent.offset_y = -spriteComponent.sprite.getHeight() / 1.5f ;\n }\n }", "title": "" }, { "docid": "c27bd58ebf598b5dd484c48af53ebf2a", "score": "0.48915255", "text": "public ConnectSlices(ImageStack labelIms) {\n\t\tthis.labelIms = labelIms;\n\t\tsize[0] = labelIms.getWidth();\n\t\tsize[1] = labelIms.getHeight();\n\t\tsize[2] = labelIms.getSize();\n\n\t\tfwdLabelMap = new TreeMap<SliceLabel, TreeSet<Integer>>();\n\t\tbwdLabelMap = new TreeMap<SliceLabel, TreeSet<Integer>>();\n\n\t\t// Add a dummy region with label 0 to account for background when\n\t\t// colouring\n\t\tregions = new TreeMap<SliceLabel, UnionFindSL>();\n\t\tSliceLabel sl = new SliceLabel(0, 0);\n\t\tregions.put(sl, new UnionFindSL(sl));\n\t\tncomponents = 0;\n\t}", "title": "" }, { "docid": "139d3eabf16737e8452ca5afe209f794", "score": "0.48867062", "text": "public static int compareLabelWithLabel(Label l1, Label l2)\r\n throws IOException,\r\n\t LabelUtilsException\r\n {\r\n String l1_s, l2_s; \r\n l1_s = l1.getLabel();\r\n l2_s = l2.getLabel();\r\n\t \r\n\t if(l1_s.compareTo( l2_s)>0)return 1;\r\n\t if (l1_s.compareTo( l2_s)<0)return -1;\r\n\t return 0;\t\r\n }", "title": "" } ]
d7fc4bd37f0793407a89cec9738038f4
/ / / / 482
[ { "docid": "acd4ad5e8d8f8fc9fa44e343f6624ed5", "score": "0.0", "text": "public SOAPMessage getSoapMessage() { return this.soapMessage; }", "title": "" } ]
[ { "docid": "8e014e254b3ae100c446a63d228a0bde", "score": "0.61704785", "text": "void mo52408pG();", "title": "" }, { "docid": "51832016ae28a6d9c6b018f74420d13e", "score": "0.5986455", "text": "C17688l mo52406pE();", "title": "" }, { "docid": "ace44ada706f0558713e5158ffcb335b", "score": "0.59796965", "text": "public int h() {\n/* 550 */ return 4;\n/* */ }", "title": "" }, { "docid": "e198c943812aef6f8a25eef9bb4e5b01", "score": "0.5965539", "text": "C8703s mo52404pC();", "title": "" }, { "docid": "ad734b431023d3b90bb06fdabccf68d3", "score": "0.58550745", "text": "public void mo73804g() {\n }", "title": "" }, { "docid": "64ec7a2b3114214660bc4ad75b5c6fff", "score": "0.5805534", "text": "public void m7448g() {\n }", "title": "" }, { "docid": "1f91dcc4e04fd06549a6930751533ed2", "score": "0.5768269", "text": "private com.tapjoy.internal.C2908bs m6628v() {\n /*\n r13 = this;\n int r0 = r13.m6631y()\n r1 = 34\n if (r0 == r1) goto L_0x01db\n r1 = 39\n if (r0 == r1) goto L_0x01d8\n r1 = 91\n if (r0 == r1) goto L_0x01ce\n r1 = 123(0x7b, float:1.72E-43)\n if (r0 == r1) goto L_0x01c4\n int r0 = r13.f6702f\n r1 = 1\n int r0 = r0 - r1\n r13.f6702f = r0\n java.lang.String r0 = r13.m6624c(r1)\n r13.f6709m = r0\n int r0 = r13.f6711o\n if (r0 == 0) goto L_0x01bd\n int r2 = r13.f6710n\n r3 = -1\n if (r2 == r3) goto L_0x01ad\n r3 = 85\n r4 = 117(0x75, float:1.64E-43)\n r5 = 76\n r6 = 108(0x6c, float:1.51E-43)\n r7 = 4\n if (r0 != r7) goto L_0x0079\n r0 = 110(0x6e, float:1.54E-43)\n char[] r8 = r13.f6701e\n char r9 = r8[r2]\n if (r0 == r9) goto L_0x0042\n r0 = 78\n char r2 = r8[r2]\n if (r0 != r2) goto L_0x0079\n L_0x0042:\n char[] r0 = r13.f6701e\n int r2 = r13.f6710n\n int r8 = r2 + 1\n char r8 = r0[r8]\n if (r4 == r8) goto L_0x0051\n int r2 = r2 + r1\n char r0 = r0[r2]\n if (r3 != r0) goto L_0x0079\n L_0x0051:\n char[] r0 = r13.f6701e\n int r2 = r13.f6710n\n int r8 = r2 + 2\n char r8 = r0[r8]\n if (r6 == r8) goto L_0x0061\n int r2 = r2 + 2\n char r0 = r0[r2]\n if (r5 != r0) goto L_0x0079\n L_0x0061:\n char[] r0 = r13.f6701e\n int r2 = r13.f6710n\n int r8 = r2 + 3\n char r8 = r0[r8]\n if (r6 == r8) goto L_0x0071\n int r2 = r2 + 3\n char r0 = r0[r2]\n if (r5 != r0) goto L_0x0079\n L_0x0071:\n java.lang.String r0 = \"null\"\n r13.f6709m = r0\n com.tapjoy.internal.bs r0 = com.tapjoy.internal.C2908bs.NULL\n goto L_0x01af\n L_0x0079:\n int r0 = r13.f6711o\n r2 = 69\n r8 = 101(0x65, float:1.42E-43)\n if (r0 != r7) goto L_0x00cc\n r0 = 116(0x74, float:1.63E-43)\n char[] r9 = r13.f6701e\n int r10 = r13.f6710n\n char r11 = r9[r10]\n if (r0 == r11) goto L_0x0091\n r0 = 84\n char r9 = r9[r10]\n if (r0 != r9) goto L_0x00cc\n L_0x0091:\n r0 = 114(0x72, float:1.6E-43)\n char[] r9 = r13.f6701e\n int r10 = r13.f6710n\n int r11 = r10 + 1\n char r11 = r9[r11]\n if (r0 == r11) goto L_0x00a4\n r0 = 82\n int r10 = r10 + r1\n char r9 = r9[r10]\n if (r0 != r9) goto L_0x00cc\n L_0x00a4:\n char[] r0 = r13.f6701e\n int r9 = r13.f6710n\n int r10 = r9 + 2\n char r10 = r0[r10]\n if (r4 == r10) goto L_0x00b4\n int r9 = r9 + 2\n char r0 = r0[r9]\n if (r3 != r0) goto L_0x00cc\n L_0x00b4:\n char[] r0 = r13.f6701e\n int r3 = r13.f6710n\n int r4 = r3 + 3\n char r4 = r0[r4]\n if (r8 == r4) goto L_0x00c4\n int r3 = r3 + 3\n char r0 = r0[r3]\n if (r2 != r0) goto L_0x00cc\n L_0x00c4:\n java.lang.String r0 = \"true\"\n r13.f6709m = r0\n com.tapjoy.internal.bs r0 = com.tapjoy.internal.C2908bs.BOOLEAN\n goto L_0x01af\n L_0x00cc:\n int r0 = r13.f6711o\n r3 = 5\n if (r0 != r3) goto L_0x012f\n r0 = 102(0x66, float:1.43E-43)\n char[] r3 = r13.f6701e\n int r4 = r13.f6710n\n char r9 = r3[r4]\n if (r0 == r9) goto L_0x00e1\n r0 = 70\n char r3 = r3[r4]\n if (r0 != r3) goto L_0x012f\n L_0x00e1:\n r0 = 97\n char[] r3 = r13.f6701e\n int r4 = r13.f6710n\n int r9 = r4 + 1\n char r9 = r3[r9]\n if (r0 == r9) goto L_0x00f4\n r0 = 65\n int r4 = r4 + r1\n char r3 = r3[r4]\n if (r0 != r3) goto L_0x012f\n L_0x00f4:\n char[] r0 = r13.f6701e\n int r3 = r13.f6710n\n int r4 = r3 + 2\n char r4 = r0[r4]\n if (r6 == r4) goto L_0x0104\n int r3 = r3 + 2\n char r0 = r0[r3]\n if (r5 != r0) goto L_0x012f\n L_0x0104:\n r0 = 115(0x73, float:1.61E-43)\n char[] r3 = r13.f6701e\n int r4 = r13.f6710n\n int r5 = r4 + 3\n char r5 = r3[r5]\n if (r0 == r5) goto L_0x0118\n r0 = 83\n int r4 = r4 + 3\n char r3 = r3[r4]\n if (r0 != r3) goto L_0x012f\n L_0x0118:\n char[] r0 = r13.f6701e\n int r3 = r13.f6710n\n int r4 = r3 + 4\n char r4 = r0[r4]\n if (r8 == r4) goto L_0x0127\n int r3 = r3 + r7\n char r0 = r0[r3]\n if (r2 != r0) goto L_0x012f\n L_0x0127:\n java.lang.String r0 = \"false\"\n r13.f6709m = r0\n com.tapjoy.internal.bs r0 = com.tapjoy.internal.C2908bs.BOOLEAN\n goto L_0x01af\n L_0x012f:\n com.tapjoy.internal.cj r0 = r13.f6698b\n char[] r3 = r13.f6701e\n int r4 = r13.f6710n\n int r5 = r13.f6711o\n java.lang.String r0 = r0.mo29915a(r3, r4, r5)\n r13.f6709m = r0\n char[] r0 = r13.f6701e\n int r3 = r13.f6710n\n int r4 = r13.f6711o\n char r5 = r0[r3]\n r6 = 45\n if (r5 != r6) goto L_0x0151\n int r5 = r3 + 1\n char r7 = r0[r5]\n r12 = r7\n r7 = r5\n r5 = r12\n goto L_0x0152\n L_0x0151:\n r7 = r3\n L_0x0152:\n r9 = 57\n r10 = 48\n if (r5 != r10) goto L_0x015c\n int r7 = r7 + r1\n char r5 = r0[r7]\n goto L_0x016e\n L_0x015c:\n r11 = 49\n if (r5 < r11) goto L_0x01aa\n if (r5 > r9) goto L_0x01aa\n int r7 = r7 + r1\n char r5 = r0[r7]\n L_0x0165:\n if (r5 < r10) goto L_0x016e\n if (r5 > r9) goto L_0x016e\n int r7 = r7 + 1\n char r5 = r0[r7]\n goto L_0x0165\n L_0x016e:\n r11 = 46\n if (r5 != r11) goto L_0x017f\n int r7 = r7 + 1\n char r5 = r0[r7]\n L_0x0176:\n if (r5 < r10) goto L_0x017f\n if (r5 > r9) goto L_0x017f\n int r7 = r7 + 1\n char r5 = r0[r7]\n goto L_0x0176\n L_0x017f:\n if (r5 == r8) goto L_0x0183\n if (r5 != r2) goto L_0x01a1\n L_0x0183:\n int r7 = r7 + 1\n char r2 = r0[r7]\n r5 = 43\n if (r2 == r5) goto L_0x018d\n if (r2 != r6) goto L_0x0191\n L_0x018d:\n int r7 = r7 + 1\n char r2 = r0[r7]\n L_0x0191:\n if (r2 < r10) goto L_0x01a7\n if (r2 > r9) goto L_0x01a7\n int r7 = r7 + r1\n char r1 = r0[r7]\n L_0x0198:\n if (r1 < r10) goto L_0x01a1\n if (r1 > r9) goto L_0x01a1\n int r7 = r7 + 1\n char r1 = r0[r7]\n goto L_0x0198\n L_0x01a1:\n int r3 = r3 + r4\n if (r7 != r3) goto L_0x01ad\n com.tapjoy.internal.bs r0 = com.tapjoy.internal.C2908bs.NUMBER\n goto L_0x01af\n L_0x01a7:\n com.tapjoy.internal.bs r0 = com.tapjoy.internal.C2908bs.STRING\n goto L_0x01af\n L_0x01aa:\n com.tapjoy.internal.bs r0 = com.tapjoy.internal.C2908bs.STRING\n goto L_0x01af\n L_0x01ad:\n com.tapjoy.internal.bs r0 = com.tapjoy.internal.C2908bs.STRING\n L_0x01af:\n r13.f6707k = r0\n com.tapjoy.internal.bs r0 = r13.f6707k\n com.tapjoy.internal.bs r1 = com.tapjoy.internal.C2908bs.STRING\n if (r0 != r1) goto L_0x01ba\n r13.m6632z()\n L_0x01ba:\n com.tapjoy.internal.bs r0 = r13.f6707k\n return r0\n L_0x01bd:\n java.lang.String r0 = \"Expected literal value\"\n java.io.IOException r0 = r13.m6625d(r0)\n throw r0\n L_0x01c4:\n com.tapjoy.internal.bq r0 = com.tapjoy.internal.C2906bq.EMPTY_OBJECT\n r13.m6619a(r0)\n com.tapjoy.internal.bs r0 = com.tapjoy.internal.C2908bs.BEGIN_OBJECT\n r13.f6707k = r0\n return r0\n L_0x01ce:\n com.tapjoy.internal.bq r0 = com.tapjoy.internal.C2906bq.EMPTY_ARRAY\n r13.m6619a(r0)\n com.tapjoy.internal.bs r0 = com.tapjoy.internal.C2908bs.BEGIN_ARRAY\n r13.f6707k = r0\n return r0\n L_0x01d8:\n r13.m6632z()\n L_0x01db:\n char r0 = (char) r0\n java.lang.String r0 = r13.m6618a(r0)\n r13.f6709m = r0\n com.tapjoy.internal.bs r0 = com.tapjoy.internal.C2908bs.STRING\n r13.f6707k = r0\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tapjoy.internal.C2903bo.m6628v():com.tapjoy.internal.bs\");\n }", "title": "" }, { "docid": "6375ea121db0fed42e12504d4f71482b", "score": "0.5753217", "text": "void mo37744b();", "title": "" }, { "docid": "31907bd3892e391898c096ff864f772a", "score": "0.57462597", "text": "void mo79270b();", "title": "" }, { "docid": "8657ffde558e0332e3605ff2324238a5", "score": "0.5734941", "text": "void mo8342n();", "title": "" }, { "docid": "22f2421f5b9cc11d1699c42857b4dfe9", "score": "0.5714873", "text": "protected void mo1582st() {\n }", "title": "" }, { "docid": "b096eae650ba80789eb6446d859169a3", "score": "0.569907", "text": "protected void mo1586sx() {\n }", "title": "" }, { "docid": "7ed5b8fcd7672a1d62dfc142ae10a6ac", "score": "0.5676626", "text": "C1796e mo9566c();", "title": "" }, { "docid": "5183b357ba59577c835c364f4b804b52", "score": "0.56714475", "text": "void mo8340l();", "title": "" }, { "docid": "e40aa2066245c978093ead3b937bd6ae", "score": "0.5607795", "text": "byte mo16520g();", "title": "" }, { "docid": "025fba7a0946dab896c7563be24142f3", "score": "0.560168", "text": "protected abstract void mo1584sv();", "title": "" }, { "docid": "b44be1e1b78bca3e0fe53ff4baa6e354", "score": "0.55838466", "text": "public void mo25878f() {\n }", "title": "" }, { "docid": "d855d352851c3176aae881d128b894b9", "score": "0.55837554", "text": "private java.lang.String m6624c(boolean r8) {\n /*\n r7 = this;\n r0 = -1\n r7.f6710n = r0\n r0 = 0\n r7.f6711o = r0\n r1 = 0\n r3 = r1\n L_0x0008:\n r2 = 0\n L_0x0009:\n int r4 = r7.f6702f\n int r5 = r4 + r2\n int r6 = r7.f6703g\n if (r5 >= r6) goto L_0x0054\n char[] r5 = r7.f6701e\n int r4 = r4 + r2\n char r4 = r5[r4]\n r5 = 9\n if (r4 == r5) goto L_0x0067\n r5 = 10\n if (r4 == r5) goto L_0x0067\n r5 = 12\n if (r4 == r5) goto L_0x0067\n r5 = 13\n if (r4 == r5) goto L_0x0067\n r5 = 32\n if (r4 == r5) goto L_0x0067\n r5 = 35\n if (r4 == r5) goto L_0x0050\n r5 = 44\n if (r4 == r5) goto L_0x0067\n r5 = 47\n if (r4 == r5) goto L_0x0050\n r5 = 61\n if (r4 == r5) goto L_0x0050\n r5 = 123(0x7b, float:1.72E-43)\n if (r4 == r5) goto L_0x0067\n r5 = 125(0x7d, float:1.75E-43)\n if (r4 == r5) goto L_0x0067\n r5 = 58\n if (r4 == r5) goto L_0x0067\n r5 = 59\n if (r4 == r5) goto L_0x0050\n switch(r4) {\n case 91: goto L_0x0067;\n case 92: goto L_0x0050;\n case 93: goto L_0x0067;\n default: goto L_0x004d;\n }\n L_0x004d:\n int r2 = r2 + 1\n goto L_0x0009\n L_0x0050:\n r7.m6632z()\n goto L_0x0067\n L_0x0054:\n char[] r4 = r7.f6701e\n int r4 = r4.length\n if (r2 >= r4) goto L_0x0069\n int r4 = r2 + 1\n boolean r4 = r7.m6621a(r4)\n if (r4 != 0) goto L_0x0009\n char[] r4 = r7.f6701e\n int r5 = r7.f6703g\n r4[r5] = r0\n L_0x0067:\n r0 = r2\n goto L_0x0088\n L_0x0069:\n if (r3 != 0) goto L_0x0070\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n r3.<init>()\n L_0x0070:\n char[] r4 = r7.f6701e\n int r5 = r7.f6702f\n r3.append(r4, r5, r2)\n int r4 = r7.f6711o\n int r4 = r4 + r2\n r7.f6711o = r4\n int r4 = r7.f6702f\n int r4 = r4 + r2\n r7.f6702f = r4\n r2 = 1\n boolean r2 = r7.m6621a(r2)\n if (r2 != 0) goto L_0x0008\n L_0x0088:\n if (r8 == 0) goto L_0x0091\n if (r3 != 0) goto L_0x0091\n int r8 = r7.f6702f\n r7.f6710n = r8\n goto L_0x00b0\n L_0x0091:\n boolean r8 = r7.f6712p\n if (r8 == 0) goto L_0x0098\n java.lang.String r1 = \"skipped!\"\n goto L_0x00b0\n L_0x0098:\n if (r3 != 0) goto L_0x00a5\n com.tapjoy.internal.cj r8 = r7.f6698b\n char[] r1 = r7.f6701e\n int r2 = r7.f6702f\n java.lang.String r1 = r8.mo29915a(r1, r2, r0)\n goto L_0x00b0\n L_0x00a5:\n char[] r8 = r7.f6701e\n int r1 = r7.f6702f\n r3.append(r8, r1, r0)\n java.lang.String r1 = r3.toString()\n L_0x00b0:\n int r8 = r7.f6711o\n int r8 = r8 + r0\n r7.f6711o = r8\n int r8 = r7.f6702f\n int r8 = r8 + r0\n r7.f6702f = r8\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tapjoy.internal.C2903bo.m6624c(boolean):java.lang.String\");\n }", "title": "" }, { "docid": "15546a1896f2c1fc7cd0c6753f17a556", "score": "0.5578556", "text": "C13408v1 mo34371b();", "title": "" }, { "docid": "7367c8001aa967c8a71a9a6ae3e5856d", "score": "0.55743754", "text": "void mo79281n();", "title": "" }, { "docid": "9f086e66b500f507e8a0e1dc562ed794", "score": "0.5565856", "text": "C1204bz mo12726o();", "title": "" }, { "docid": "f0de5d9d152f994069efa72a1b62b631", "score": "0.5561515", "text": "public abstract String mo83834d();", "title": "" }, { "docid": "0c98b89bd42a060bb33c552b9a92ff84", "score": "0.55487424", "text": "void mo10472b();", "title": "" }, { "docid": "a515511b222d6bc0bb02e8fe26e99fc8", "score": "0.5543176", "text": "public int method_5480() {\r\n return this.field_4809;\r\n }", "title": "" }, { "docid": "1df25be00726e65f6680af144fb28aa1", "score": "0.5519346", "text": "public void mo82308w_() {\n }", "title": "" }, { "docid": "a8d2319befdffc678ed386b91b4d6291", "score": "0.55022836", "text": "void mo66644i();", "title": "" }, { "docid": "4aedeb0b3b7c08f323a34384f5ef61f5", "score": "0.5500872", "text": "public void mo91927l() {\n }", "title": "" }, { "docid": "aab3f790113d2e47e71813b3380068a6", "score": "0.54954785", "text": "public abstract int mo24611r();", "title": "" }, { "docid": "457c76d6eeb38db7ed83edc7bafba771", "score": "0.5494081", "text": "private String e04(){\n\t\treturn null;\n\t}", "title": "" }, { "docid": "36a936ae2e6f307153075ec05ac0aa16", "score": "0.5488076", "text": "C13081b mo42081c();", "title": "" }, { "docid": "28c784fb81256a3d021a5cf112620287", "score": "0.54870945", "text": "@Test\n public void test43() throws Throwable {\n double double0 = MathUtils.round((-1844.0), 2268);\n double double1 = MathUtils.cosh(2268);\n double double2 = MathUtils.normalizeAngle(2268, 0.0);\n int int0 = MathUtils.hash((-1844.0));\n double double3 = MathUtils.nextAfter(0.0, (-1844.0));\n }", "title": "" }, { "docid": "5dede5ad49afc1a2e661d1ce39ab8df9", "score": "0.5486018", "text": "public int g() {\n/* 536 */ return 4;\n/* */ }", "title": "" }, { "docid": "ffa1da797597c8d3e8d30ca60b68c092", "score": "0.5483621", "text": "void mo59095b();", "title": "" }, { "docid": "e497d5535643e285dc37b4a1cbe39fee", "score": "0.5482403", "text": "C9436e mo23185a();", "title": "" }, { "docid": "2c55f714f28f06eb44d80a2826cdda58", "score": "0.54811156", "text": "C28130ac mo73816o();", "title": "" }, { "docid": "74ad423f630b96ca0209262f1ad877bb", "score": "0.5477484", "text": "C34318a mo87148b();", "title": "" }, { "docid": "e2d342bbaeabeb80e6d9fc851b97cb80", "score": "0.5475414", "text": "public void skystonePos4() {\n }", "title": "" }, { "docid": "1e9f1164923a8bd182644a477ced2d9a", "score": "0.5466053", "text": "public void mo6584w() {\n }", "title": "" }, { "docid": "afd9a150904b829098c3fc001705a225", "score": "0.54621726", "text": "private java.lang.String m6618a(char r7) {\n /*\n r6 = this;\n r0 = 0\n L_0x0001:\n int r1 = r6.f6702f\n L_0x0003:\n int r2 = r6.f6702f\n int r3 = r6.f6703g\n r4 = 1\n if (r2 >= r3) goto L_0x00bf\n char[] r3 = r6.f6701e\n int r5 = r2 + 1\n r6.f6702f = r5\n char r2 = r3[r2]\n if (r2 != r7) goto L_0x0034\n boolean r7 = r6.f6712p\n if (r7 == 0) goto L_0x001b\n java.lang.String r7 = \"skipped!\"\n return r7\n L_0x001b:\n if (r0 != 0) goto L_0x0028\n com.tapjoy.internal.cj r7 = r6.f6698b\n int r0 = r6.f6702f\n int r0 = r0 - r1\n int r0 = r0 - r4\n java.lang.String r7 = r7.mo29915a(r3, r1, r0)\n return r7\n L_0x0028:\n int r7 = r6.f6702f\n int r7 = r7 - r1\n int r7 = r7 - r4\n r0.append(r3, r1, r7)\n java.lang.String r7 = r0.toString()\n return r7\n L_0x0034:\n r3 = 92\n if (r2 != r3) goto L_0x0003\n if (r0 != 0) goto L_0x003f\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n L_0x003f:\n char[] r2 = r6.f6701e\n int r3 = r6.f6702f\n int r3 = r3 - r1\n int r3 = r3 - r4\n r0.append(r2, r1, r3)\n int r1 = r6.f6702f\n int r2 = r6.f6703g\n java.lang.String r3 = \"Unterminated escape sequence\"\n if (r1 != r2) goto L_0x005c\n boolean r1 = r6.m6621a(r4)\n if (r1 == 0) goto L_0x0057\n goto L_0x005c\n L_0x0057:\n java.io.IOException r7 = r6.m6625d(r3)\n throw r7\n L_0x005c:\n char[] r1 = r6.f6701e\n int r2 = r6.f6702f\n int r4 = r2 + 1\n r6.f6702f = r4\n char r1 = r1[r2]\n r2 = 98\n if (r1 == r2) goto L_0x00b6\n r2 = 102(0x66, float:1.43E-43)\n if (r1 == r2) goto L_0x00b3\n r2 = 110(0x6e, float:1.54E-43)\n if (r1 == r2) goto L_0x00b0\n r2 = 114(0x72, float:1.6E-43)\n if (r1 == r2) goto L_0x00ad\n r2 = 116(0x74, float:1.63E-43)\n if (r1 == r2) goto L_0x00aa\n r2 = 117(0x75, float:1.64E-43)\n if (r1 == r2) goto L_0x007f\n goto L_0x00b8\n L_0x007f:\n int r1 = r6.f6702f\n r2 = 4\n int r1 = r1 + r2\n int r4 = r6.f6703g\n if (r1 <= r4) goto L_0x0093\n boolean r1 = r6.m6621a(r2)\n if (r1 == 0) goto L_0x008e\n goto L_0x0093\n L_0x008e:\n java.io.IOException r7 = r6.m6625d(r3)\n throw r7\n L_0x0093:\n com.tapjoy.internal.cj r1 = r6.f6698b\n char[] r3 = r6.f6701e\n int r4 = r6.f6702f\n java.lang.String r1 = r1.mo29915a(r3, r4, r2)\n int r3 = r6.f6702f\n int r3 = r3 + r2\n r6.f6702f = r3\n r2 = 16\n int r1 = java.lang.Integer.parseInt(r1, r2)\n char r1 = (char) r1\n goto L_0x00b8\n L_0x00aa:\n r1 = 9\n goto L_0x00b8\n L_0x00ad:\n r1 = 13\n goto L_0x00b8\n L_0x00b0:\n r1 = 10\n goto L_0x00b8\n L_0x00b3:\n r1 = 12\n goto L_0x00b8\n L_0x00b6:\n r1 = 8\n L_0x00b8:\n r0.append(r1)\n int r1 = r6.f6702f\n goto L_0x0003\n L_0x00bf:\n if (r0 != 0) goto L_0x00c6\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n L_0x00c6:\n char[] r2 = r6.f6701e\n int r3 = r6.f6702f\n int r3 = r3 - r1\n r0.append(r2, r1, r3)\n boolean r1 = r6.m6621a(r4)\n if (r1 == 0) goto L_0x00d6\n goto L_0x0001\n L_0x00d6:\n java.lang.String r7 = \"Unterminated string\"\n java.io.IOException r7 = r6.m6625d(r7)\n throw r7\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tapjoy.internal.C2903bo.m6618a(char):java.lang.String\");\n }", "title": "" }, { "docid": "7304706b8aa111ee6858b565d824261a", "score": "0.54600066", "text": "public void mo13980b() {\n }", "title": "" }, { "docid": "9a7a20da9afb664f4c65fd32fbd810e8", "score": "0.54565495", "text": "C2619g mo9882g();", "title": "" }, { "docid": "32088917e0a780afd27ac01a0312f69e", "score": "0.54559255", "text": "void mo24368b();", "title": "" }, { "docid": "e8a92af3572e2191dedabbe31883d7fb", "score": "0.54480207", "text": "void mo64302a();", "title": "" }, { "docid": "3e96e13be516f809ee3d9c051a94c53f", "score": "0.5442059", "text": "protected abstract void mo6283a();", "title": "" }, { "docid": "b10e94b6220e20a899d357de3e6fed53", "score": "0.5438859", "text": "public void mo1158b(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0\n if (r9 == 0) goto L_0x008e\n int r1 = r9.length()\n if (r1 != 0) goto L_0x000b\n goto L_0x008e\n L_0x000b:\n r1 = -1\n int r2 = r9.length()\n r3 = 44\n int r3 = r9.indexOf(r3)\n r4 = 0\n r5 = 1\n if (r3 <= 0) goto L_0x0037\n int r6 = r2 + -1\n if (r3 >= r6) goto L_0x0037\n java.lang.String r6 = r9.substring(r4, r3)\n java.lang.String r7 = \"W\"\n boolean r7 = r6.equalsIgnoreCase(r7)\n if (r7 == 0) goto L_0x002c\n r1 = 0\n goto L_0x0035\n L_0x002c:\n java.lang.String r4 = \"H\"\n boolean r4 = r6.equalsIgnoreCase(r4)\n if (r4 == 0) goto L_0x0035\n r1 = 1\n L_0x0035:\n int r4 = r3 + 1\n L_0x0037:\n r3 = 58\n int r3 = r9.indexOf(r3)\n if (r3 < 0) goto L_0x0075\n int r2 = r2 - r5\n if (r3 >= r2) goto L_0x0075\n java.lang.String r2 = r9.substring(r4, r3)\n int r3 = r3 + r5\n java.lang.String r9 = r9.substring(r3)\n int r3 = r2.length()\n if (r3 <= 0) goto L_0x0084\n int r3 = r9.length()\n if (r3 <= 0) goto L_0x0084\n float r2 = java.lang.Float.parseFloat(r2) // Catch:{ NumberFormatException -> 0x0084 }\n float r9 = java.lang.Float.parseFloat(r9) // Catch:{ NumberFormatException -> 0x0084 }\n int r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r3 <= 0) goto L_0x0084\n int r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1))\n if (r3 <= 0) goto L_0x0084\n if (r1 != r5) goto L_0x006f\n float r9 = r9 / r2\n float r9 = java.lang.Math.abs(r9) // Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085\n L_0x006f:\n float r2 = r2 / r9\n float r9 = java.lang.Math.abs(r2) // Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085\n L_0x0075:\n java.lang.String r9 = r9.substring(r4)\n int r2 = r9.length()\n if (r2 <= 0) goto L_0x0084\n float r9 = java.lang.Float.parseFloat(r9) // Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085\n L_0x0084:\n r9 = 0\n L_0x0085:\n int r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1))\n if (r0 <= 0) goto L_0x008d\n r8.f913J = r9\n r8.f914K = r1\n L_0x008d:\n return\n L_0x008e:\n r8.f913J = r0\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.p042a.p043a.C0335h.mo1158b(java.lang.String):void\");\n }", "title": "" }, { "docid": "e76b20e311156faf2d280c053d61a91a", "score": "0.543788", "text": "public void mo22976d() {\n }", "title": "" }, { "docid": "5435e6114a178665529a9b6016baf988", "score": "0.5430801", "text": "private int[] m42754b(C9043a aVar) throws NotFoundException {\n int[] c = m42756c(aVar, m42755c(aVar), f24002g);\n this.f24005a = (c[1] - c[0]) / 4;\n m42751a(aVar, c[0]);\n return c;\n }", "title": "" }, { "docid": "94d2d2a7932a55e288317ad4677c1a5d", "score": "0.54292107", "text": "public void mo101128d() {\n }", "title": "" }, { "docid": "b959e4cf4149dfc38c92c00566bb1faf", "score": "0.5428311", "text": "private static java.lang.String $$c(int r7, int r8, short r9) {\n /*\n int r0 = f14419 // Catch:{ UnsupportedOperationException -> 0x00c0 }\n r1 = r0 & 107(0x6b, float:1.5E-43)\n r0 = r0 | 107(0x6b, float:1.5E-43)\n int r1 = r1 + r0\n int r0 = r1 % 128\n f14420 = r0 // Catch:{ ClassCastException -> 0x00be }\n int r1 = r1 % 2\n r0 = 8\n if (r1 != 0) goto L_0x0014\n r1 = 8\n goto L_0x0016\n L_0x0014:\n r1 = 82\n L_0x0016:\n if (r1 == r0) goto L_0x0028\n int r9 = -r9\n r0 = r9 ^ 921(0x399, float:1.29E-42)\n r9 = r9 & 921(0x399, float:1.29E-42)\n int r9 = r9 << 1\n int r0 = r0 + r9\n short[] r9 = f14417 // Catch:{ ArrayStoreException -> 0x0025 }\n r1 = 791(0x317, float:1.108E-42)\n goto L_0x002e\n L_0x0025:\n r7 = move-exception\n goto L_0x00c1\n L_0x0028:\n int r0 = 1255 - r9\n short[] r9 = f14417 // Catch:{ ClassCastException -> 0x00bc }\n r1 = 5586(0x15d2, float:7.828E-42)\n L_0x002e:\n int r2 = f14419\n int r2 = r2 + 87\n int r3 = r2 % 128\n f14420 = r3\n int r2 = r2 % 2\n int r8 = -r8\n r2 = r1 ^ r8\n r8 = r8 & r1\n int r8 = r8 << 1\n int r2 = r2 + r8\n int r7 = -r7\n r8 = r7 ^ 36\n r7 = r7 & 36\n int r7 = r7 << 1\n int r8 = r8 + r7\n char[] r7 = new char[r8]\n int r1 = f14419\n int r1 = r1 + 107\n int r3 = r1 % 128\n f14420 = r3\n int r1 = r1 % 2\n r1 = 0\n if (r9 != 0) goto L_0x0059\n r3 = 64\n goto L_0x005a\n L_0x0059:\n r3 = 0\n L_0x005a:\n if (r3 == 0) goto L_0x0070\n int r0 = f14420 // Catch:{ IllegalArgumentException -> 0x006e }\n int r0 = r0 + 11\n int r3 = r0 % 128\n f14419 = r3 // Catch:{ IllegalStateException -> 0x006c }\n int r0 = r0 % 2\n r3 = r7\n r0 = r9\n r1 = r2\n r7 = 0\n r9 = r8\n goto L_0x00ad\n L_0x006c:\n r7 = move-exception\n goto L_0x00c1\n L_0x006e:\n r7 = move-exception\n goto L_0x00c1\n L_0x0070:\n r6 = r9\n r9 = r8\n r8 = r0\n r0 = r6\n L_0x0074:\n r3 = r2 ^ 38\n r2 = r2 & 38\n int r2 = r2 << 1\n int r3 = r3 + r2\n int r3 = r3 + -36\n int r3 = r3 + -1\n r2 = r1 & 1\n r4 = r1 | 1\n int r2 = r2 + r4\n char r4 = (char) r8\n r7[r1] = r4\n if (r2 != r9) goto L_0x008f\n java.lang.String r8 = new java.lang.String\n r8.<init>(r7)\n return r8\n L_0x008f:\n short r1 = r0[r3]\n int r4 = f14419 // Catch:{ NumberFormatException -> 0x00ba }\n r5 = r4 ^ 97\n r4 = r4 & 97\n int r4 = r4 << 1\n int r5 = r5 + r4\n int r4 = r5 % 128\n f14420 = r4 // Catch:{ RuntimeException -> 0x00b8 }\n int r5 = r5 % 2\n r4 = 91\n if (r5 != 0) goto L_0x00a7\n r5 = 42\n goto L_0x00a9\n L_0x00a7:\n r5 = 91\n L_0x00a9:\n r6 = r3\n r3 = r7\n r7 = r2\n r2 = r6\n L_0x00ad:\n int r8 = r8 + r1\n r1 = r8 ^ -5\n r8 = r8 & -5\n int r8 = r8 << 1\n int r8 = r8 + r1\n r1 = r7\n r7 = r3\n goto L_0x0074\n L_0x00b8:\n r7 = move-exception\n goto L_0x00bf\n L_0x00ba:\n r7 = move-exception\n goto L_0x00bf\n L_0x00bc:\n r7 = move-exception\n goto L_0x00c1\n L_0x00be:\n r7 = move-exception\n L_0x00bf:\n throw r7\n L_0x00c0:\n r7 = move-exception\n L_0x00c1:\n throw r7\n */\n throw new UnsupportedOperationException(\"Method not decompiled: o.C3166.$$c(int, int, short):java.lang.String\");\n }", "title": "" }, { "docid": "dd6fae10a34dbf8f9f643f663c92cca1", "score": "0.5417575", "text": "public int mo3219b() {\n return 4;\n }", "title": "" }, { "docid": "d929d029212d228d2fb1334de0d84ca3", "score": "0.54157925", "text": "public void mo4701b() {\n }", "title": "" }, { "docid": "102acb3355523518e3cd637eef5e3ba1", "score": "0.54121274", "text": "C0719a mo12727p();", "title": "" }, { "docid": "0e2797e6622a27d3d4126eb3f4176bf8", "score": "0.5409814", "text": "public abstract int mo6169g();", "title": "" }, { "docid": "d2ff754314d05138759ba289988c3d11", "score": "0.5406607", "text": "public void mo6219h() {\n }", "title": "" }, { "docid": "02d7c9af1b6474e3f999da3fd0fe3a64", "score": "0.54061854", "text": "void mo123890b();", "title": "" }, { "docid": "677f434cde97ecb01dfcb3c598a29314", "score": "0.5403094", "text": "public abstract void mo7979d();", "title": "" }, { "docid": "da924aa064212da60e8999a770d43526", "score": "0.54019815", "text": "public abstract int mo37400d();", "title": "" }, { "docid": "9545f69d3b50d35575430558bbe504b8", "score": "0.54014534", "text": "void mo39601a();", "title": "" }, { "docid": "72776922382482751413e734da04f97a", "score": "0.54013044", "text": "void mo123865c();", "title": "" }, { "docid": "2e8154e85b20129a1ee0c7fa1e3456d5", "score": "0.5397635", "text": "int mo3642b();", "title": "" }, { "docid": "dacccc50809252d09fd91e068808c1a4", "score": "0.538765", "text": "public abstract int mo56106c();", "title": "" }, { "docid": "448ff7d11555ef3eac8be5b8abdd113d", "score": "0.53856695", "text": "private void mo83843i() {\n C32331a.m104891a(new C44856a().mo107294a(this.f84891d).mo107298b(this.f84894g).mo107297a(), this);\n }", "title": "" }, { "docid": "e5f351f7d85d85b8042afe969243607f", "score": "0.5373849", "text": "int mo28540b();", "title": "" }, { "docid": "d2261a0c6246c7919428de38567f7045", "score": "0.5372472", "text": "public int mo36g() {\n return 2;\n }", "title": "" }, { "docid": "d2261a0c6246c7919428de38567f7045", "score": "0.5372472", "text": "public int mo36g() {\n return 2;\n }", "title": "" }, { "docid": "df4767aea98145d57a6f16a8c3cee408", "score": "0.5370086", "text": "void mo49025m();", "title": "" }, { "docid": "297f7fe01b3c81a8f4b994b06f757430", "score": "0.5361126", "text": "void mo4416b();", "title": "" }, { "docid": "3dceae7d4e67cdcac6c61c418f52fa0a", "score": "0.53587717", "text": "void mo132568d();", "title": "" }, { "docid": "d2510eafdc906cd32eef5ceee6e6e50f", "score": "0.53521955", "text": "void mo27179b();", "title": "" }, { "docid": "d33d673d5f920c0fb3913232ccc39eb8", "score": "0.534687", "text": "public void mo7783w() {\n this.f6330k.mo36401a();\n }", "title": "" }, { "docid": "6c6afda8ed0b91f24644da4693c4e244", "score": "0.5336741", "text": "private int m107140d() {\n return mo85008c(7) + 0 + mo85008c(3) + mo85008c(2) + mo85008c(43) + mo85008c(6) + mo85008c(14) + mo85008c(13) + mo85008c(37);\n }", "title": "" }, { "docid": "49f761a4f9136d43c3d0ecca2b326025", "score": "0.5336476", "text": "void mo9881f();", "title": "" }, { "docid": "345b74ebc6b7cf0b8dc53240564d555c", "score": "0.5335051", "text": "protected void method_3848() {\r\n super.method_3848();\r\n this.field_3036.method_9497(16, new Byte((byte)0));\r\n this.field_3036.method_9497(17, new Byte((byte)0));\r\n this.field_3036.method_9497(18, new Byte((byte)0));\r\n }", "title": "" }, { "docid": "15bf085fc1a3660bc24378654bb52675", "score": "0.53344524", "text": "void mo4667T();", "title": "" }, { "docid": "766ddc8a6c1ab418cd716941ce134592", "score": "0.5327797", "text": "protected abstract void mo4168a();", "title": "" }, { "docid": "092e6019a84bfaebed78205cc80ab777", "score": "0.53257775", "text": "public static java.lang.String compactPath(java.lang.String r8) {\n /*\n r5 = 2;\n r1 = 0;\n if (r8 == 0) goto L_0x000a;\n L_0x0004:\n r0 = r8.length();\n if (r0 != 0) goto L_0x000b;\n L_0x000a:\n return r8;\n L_0x000b:\n r4 = r8.length();\n r0 = r1;\n r2 = r1;\n L_0x0011:\n if (r2 >= r4) goto L_0x0022;\n L_0x0013:\n r3 = r8.charAt(r2);\n switch(r3) {\n case 47: goto L_0x001e;\n case 63: goto L_0x000a;\n default: goto L_0x001a;\n };\n L_0x001a:\n r0 = r1;\n L_0x001b:\n r2 = r2 + 1;\n goto L_0x0011;\n L_0x001e:\n r0 = r0 + 1;\n if (r0 != r5) goto L_0x001b;\n L_0x0022:\n if (r0 < r5) goto L_0x000a;\n L_0x0024:\n r5 = new java.lang.StringBuffer;\n r3 = r8.length();\n r5.<init>(r3);\n r6 = r8.toCharArray();\n r5.append(r6, r1, r2);\n r3 = r2;\n r2 = r0;\n L_0x0036:\n if (r3 >= r4) goto L_0x004d;\n L_0x0038:\n r7 = r8.charAt(r3);\n switch(r7) {\n case 47: goto L_0x0052;\n case 63: goto L_0x0048;\n default: goto L_0x003f;\n };\n L_0x003f:\n r5.append(r7);\n r0 = r1;\n L_0x0043:\n r2 = r3 + 1;\n r3 = r2;\n r2 = r0;\n goto L_0x0036;\n L_0x0048:\n r0 = r4 - r3;\n r5.append(r6, r3, r0);\n L_0x004d:\n r8 = r5.toString();\n goto L_0x000a;\n L_0x0052:\n r0 = r2 + 1;\n if (r2 != 0) goto L_0x0043;\n L_0x0056:\n r5.append(r7);\n goto L_0x0043;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.mortbay.util.URIUtil.compactPath(java.lang.String):java.lang.String\");\n }", "title": "" }, { "docid": "aeb37c2d48e668d6ee5b2fb23b0d9296", "score": "0.53239185", "text": "int mo28483p() throws IOException;", "title": "" }, { "docid": "acccb37b98133667bb71cd54aca8f9c7", "score": "0.5323765", "text": "public void mo1107G() {\n }", "title": "" }, { "docid": "4df03530829af48acb1e71ea94c7c249", "score": "0.532346", "text": "public void duke390(){}", "title": "" }, { "docid": "90ec8bbca7d3372d42d786b3d4ec26cf", "score": "0.5322389", "text": "void m4508a();", "title": "" }, { "docid": "f41492068a2b023a63cb94f6e56499fb", "score": "0.5321446", "text": "public abstract int mo24603H();", "title": "" }, { "docid": "36da2a1b47c26a8c44a7117087980e18", "score": "0.5320839", "text": "int mo3394b();", "title": "" }, { "docid": "286baa5794d74bb9a6c0cb6e1c26d64d", "score": "0.5319842", "text": "void mo6793b();", "title": "" }, { "docid": "c507ddf925feab5a189c3906f6c30ef5", "score": "0.5315661", "text": "C32063h mo52405pD();", "title": "" }, { "docid": "9bc1aa28c1892bf17d6d38ff3217348d", "score": "0.5315465", "text": "public void m7450i() {\n }", "title": "" }, { "docid": "e72f16478a1206473a25cd137fcf3d58", "score": "0.5313585", "text": "void mo21887b();", "title": "" }, { "docid": "d3402869b2c1aa91c09f112b9b5ae86b", "score": "0.53129154", "text": "public void mo4703c() {\n }", "title": "" }, { "docid": "9a1f999c8654e3f152513b9a527189dc", "score": "0.5312667", "text": "public void mo74131h() {\n }", "title": "" }, { "docid": "8472bd4d233d0befd14dde74f0f5bc29", "score": "0.5312384", "text": "private String m25877c() {\n if (this.f21989c + 4 >= this.f21988b) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Unexpected end of DN: \");\n stringBuilder.append(this.f21987a);\n throw new IllegalStateException(stringBuilder.toString());\n }\n int i;\n this.f21990d = this.f21989c;\n this.f21989c++;\n while (this.f21989c != this.f21988b && this.f21993g[this.f21989c] != '+' && this.f21993g[this.f21989c] != ',') {\n byte[] bArr;\n int i2;\n int i3;\n if (this.f21993g[this.f21989c] == ';') {\n break;\n } else if (this.f21993g[this.f21989c] == ' ') {\n this.f21991e = this.f21989c;\n this.f21989c++;\n while (this.f21989c < this.f21988b && this.f21993g[this.f21989c] == ' ') {\n this.f21989c++;\n }\n i = this.f21991e - this.f21990d;\n if (i >= 5) {\n if ((i & 1) == 0) {\n bArr = new byte[(i / 2)];\n i2 = this.f21990d + 1;\n for (i3 = 0; i3 < bArr.length; i3++) {\n bArr[i3] = (byte) m25874a(i2);\n i2 += 2;\n }\n return new String(this.f21993g, this.f21990d, i);\n }\n }\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Unexpected end of DN: \");\n stringBuilder.append(this.f21987a);\n throw new IllegalStateException(stringBuilder.toString());\n } else {\n if (this.f21993g[this.f21989c] >= 'A' && this.f21993g[this.f21989c] <= 'F') {\n char[] cArr = this.f21993g;\n i3 = this.f21989c;\n cArr[i3] = (char) (cArr[i3] + 32);\n }\n this.f21989c++;\n }\n }\n this.f21991e = this.f21989c;\n i = this.f21991e - this.f21990d;\n if (i >= 5) {\n if ((i & 1) == 0) {\n bArr = new byte[(i / 2)];\n i2 = this.f21990d + 1;\n for (i3 = 0; i3 < bArr.length; i3++) {\n bArr[i3] = (byte) m25874a(i2);\n i2 += 2;\n }\n return new String(this.f21993g, this.f21990d, i);\n }\n }\n stringBuilder = new StringBuilder();\n stringBuilder.append(\"Unexpected end of DN: \");\n stringBuilder.append(this.f21987a);\n throw new IllegalStateException(stringBuilder.toString());\n }", "title": "" }, { "docid": "b840425ff42ba78cac2add1145c0f4df", "score": "0.5310226", "text": "private void m6856a(fr.pcsoft.wdjava.media.C0939a r11) {\n /*\n r10 = this;\n r9 = 0;\n r8 = 0;\n if (r11 == 0) goto L_0x00d3;\n L_0x0004:\n r0 = r11.m6831a();\t Catch:{ q -> 0x005e }\n if (r0 == 0) goto L_0x00d3;\n L_0x000a:\n r7 = r11.f2584c;\n r3 = r11.f2583b;\n r0 = r7.left;\t Catch:{ q -> 0x0060 }\n r1 = r7.width();\t Catch:{ q -> 0x0060 }\n r0 = r0 + r1;\n r1 = r3.m10571a();\t Catch:{ q -> 0x0060 }\n if (r0 > r1) goto L_0x0028;\n L_0x001b:\n r0 = r7.top;\t Catch:{ q -> 0x0062 }\n r1 = r7.height();\t Catch:{ q -> 0x0062 }\n r0 = r0 + r1;\n r1 = r3.m10572b();\t Catch:{ q -> 0x0062 }\n if (r0 <= r1) goto L_0x0035;\n L_0x0028:\n r0 = 0;\n r1 = 0;\n r2 = r3.m10571a();\t Catch:{ q -> 0x0062 }\n r4 = r3.m10572b();\t Catch:{ q -> 0x0062 }\n r7.set(r0, r1, r2, r4);\t Catch:{ q -> 0x0062 }\n L_0x0035:\n r0 = r11.f2585d;\n if (r0 == 0) goto L_0x00a2;\n L_0x0039:\n r0 = r11.f2582a;\n r0 = r0.length;\n r1 = new byte[r0];\n r0 = r8;\n L_0x003f:\n r2 = r3.f4667b;\n if (r0 >= r2) goto L_0x0069;\n L_0x0043:\n r2 = r8;\n L_0x0044:\n r4 = r3.f4666a;\t Catch:{ q -> 0x0064 }\n if (r2 >= r4) goto L_0x0066;\n L_0x0048:\n r4 = r3.f4667b;\t Catch:{ q -> 0x0064 }\n r4 = r4 * r2;\n r5 = r3.f4667b;\t Catch:{ q -> 0x0064 }\n r4 = r4 + r5;\n r4 = r4 - r0;\n r4 = r4 + -1;\n r5 = r11.f2582a;\t Catch:{ q -> 0x0064 }\n r6 = r3.f4666a;\t Catch:{ q -> 0x0064 }\n r6 = r6 * r0;\n r6 = r6 + r2;\n r5 = r5[r6];\t Catch:{ q -> 0x0064 }\n r1[r4] = r5;\t Catch:{ q -> 0x0064 }\n r2 = r2 + 1;\n goto L_0x0044;\n L_0x005e:\n r0 = move-exception;\n throw r0;\n L_0x0060:\n r0 = move-exception;\n throw r0;\t Catch:{ q -> 0x0062 }\n L_0x0062:\n r0 = move-exception;\n throw r0;\n L_0x0064:\n r0 = move-exception;\n throw r0;\n L_0x0066:\n r0 = r0 + 1;\n goto L_0x003f;\n L_0x0069:\n r0 = new a.a.a.ab;\n r2 = r3.f4667b;\n r3 = r3.f4666a;\n r4 = r7.top;\n r5 = r7.left;\n r6 = r7.height();\n r7 = r7.width();\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8);\n L_0x007e:\n if (r0 == 0) goto L_0x00d1;\n L_0x0080:\n r1 = new a.a.a.db;\n r2 = new a.a.a.g.j;\n r2.<init>(r0);\n r1.<init>(r2);\n r0 = r10.f2603a;\t Catch:{ q -> 0x00ba, all -> 0x00c2 }\n r0 = r0.m1272a(r1);\t Catch:{ q -> 0x00ba, all -> 0x00c2 }\n r1 = r10.f2603a;\n r1.mo9a();\n L_0x0095:\n if (r0 == 0) goto L_0x00c9;\n L_0x0097:\n r1 = r10.this$0;\n r2 = 3;\n r0 = android.os.Message.obtain(r1, r2, r0);\n L_0x009e:\n r0.sendToTarget();\n return;\n L_0x00a2:\n r0 = new a.a.a.ab;\n r1 = r11.f2582a;\n r2 = r3.f4666a;\n r3 = r3.f4667b;\n r4 = r7.left;\n r5 = r7.top;\n r6 = r7.width();\n r7 = r7.height();\n r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8);\n goto L_0x007e;\n L_0x00ba:\n r0 = move-exception;\n r0 = r10.f2603a;\n r0.mo9a();\n r0 = r9;\n goto L_0x0095;\n L_0x00c2:\n r0 = move-exception;\n r1 = r10.f2603a;\n r1.mo9a();\n throw r0;\n L_0x00c9:\n r0 = r10.this$0;\n r1 = 4;\n r0 = android.os.Message.obtain(r0, r1);\n goto L_0x009e;\n L_0x00d1:\n r0 = r9;\n goto L_0x0095;\n L_0x00d3:\n r0 = r9;\n goto L_0x007e;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.media.i.a(fr.pcsoft.wdjava.media.a):void\");\n }", "title": "" }, { "docid": "311e37e2f165dc4da11377838b790407", "score": "0.53074104", "text": "public static void i8xy4() {\n int Vx = (Main.opcode & 0x0F00) >> 8;\n int Vy = (Main.opcode & 0x00F0) >> 4;\n int result = Main.gprs[Vx] + Main.gprs[Vy];\n if (result > 255) {\n Main.gprs[15] = 1;\n } else {\n Main.gprs[15] = 0;\n }\n Main.gprs[Vx] = result & 0x00FF;\n }", "title": "" }, { "docid": "1616e1ce418b0fe27013ede96b1a144c", "score": "0.53032315", "text": "public boolean mo94e() {\n /*\n r9 = this;\n a9$a r0 = r9.f56b\n float r1 = r0.f75d\n float r2 = java.lang.Math.abs(r1)\n float r1 = r1 / r2\n int r1 = (int) r1\n float r0 = r0.f74c\n float r2 = java.lang.Math.abs(r0)\n float r0 = r0 / r2\n int r0 = (int) r0\n r2 = 1\n r3 = 0\n if (r1 == 0) goto L_0x0053\n r4 = r9\n c9 r4 = (p000.C0261c9) r4\n android.widget.ListView r4 = r4.f1351s\n int r5 = r4.getCount()\n if (r5 != 0) goto L_0x0023\n L_0x0021:\n r1 = 0\n goto L_0x0051\n L_0x0023:\n int r6 = r4.getChildCount()\n int r7 = r4.getFirstVisiblePosition()\n int r8 = r7 + r6\n if (r1 <= 0) goto L_0x0041\n if (r8 < r5) goto L_0x0050\n int r6 = r6 - r2\n android.view.View r1 = r4.getChildAt(r6)\n int r1 = r1.getBottom()\n int r4 = r4.getHeight()\n if (r1 > r4) goto L_0x0050\n goto L_0x0021\n L_0x0041:\n if (r1 >= 0) goto L_0x0021\n if (r7 > 0) goto L_0x0050\n android.view.View r1 = r4.getChildAt(r3)\n int r1 = r1.getTop()\n if (r1 < 0) goto L_0x0050\n goto L_0x0021\n L_0x0050:\n r1 = 1\n L_0x0051:\n if (r1 != 0) goto L_0x0054\n L_0x0053:\n r2 = 0\n L_0x0054:\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.C0013a9.mo94e():boolean\");\n }", "title": "" }, { "docid": "150bfeb71716b16d0e5b098037f45d0a", "score": "0.52965766", "text": "private byte resolveExplicitLevels() {\n/* 1380 */ byte b1 = 0;\n/* */ \n/* 1382 */ byte b2 = GetParaLevelAt(0);\n/* */ \n/* */ \n/* 1385 */ byte b4 = 0;\n/* */ \n/* */ \n/* 1388 */ byte b3 = directionFromFlags();\n/* */ \n/* */ \n/* */ \n/* 1392 */ if (b3 == 2 || this.paraCount != 1)\n/* */ {\n/* 1394 */ if (this.paraCount == 1 && (this.flags & MASK_EXPLICIT) == 0) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1400 */ for (b1 = 0; b1 < this.length; b1++) {\n/* 1401 */ this.levels[b1] = b2;\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 1408 */ byte b5 = b2;\n/* */ \n/* 1410 */ byte b6 = 0;\n/* */ \n/* 1412 */ byte[] arrayOfByte = new byte[61];\n/* 1413 */ byte b7 = 0;\n/* 1414 */ byte b8 = 0;\n/* */ \n/* */ \n/* 1417 */ this.flags = 0;\n/* */ \n/* 1419 */ for (b1 = 0; b1 < this.length; b1++) {\n/* 1420 */ byte b10, b9 = NoContextRTL(this.dirProps[b1]);\n/* 1421 */ switch (b9) {\n/* */ \n/* */ case 11:\n/* */ case 12:\n/* 1425 */ b10 = (byte)(b5 + 2 & 0x7E);\n/* 1426 */ if (b10 <= 61) {\n/* 1427 */ arrayOfByte[b6] = b5;\n/* 1428 */ b6 = (byte)(b6 + 1);\n/* 1429 */ b5 = b10;\n/* 1430 */ if (b9 == 12) {\n/* 1431 */ b5 = (byte)(b5 | 0xFFFFFF80);\n/* */ \n/* */ \n/* */ }\n/* */ \n/* */ }\n/* 1437 */ else if ((b5 & Byte.MAX_VALUE) == 61) {\n/* 1438 */ b8++;\n/* */ } else {\n/* 1440 */ b7++;\n/* */ } \n/* 1442 */ this.flags |= DirPropFlag((byte)18);\n/* */ break;\n/* */ \n/* */ case 14:\n/* */ case 15:\n/* 1447 */ b10 = (byte)((b5 & Byte.MAX_VALUE) + 1 | 0x1);\n/* 1448 */ if (b10 <= 61) {\n/* 1449 */ arrayOfByte[b6] = b5;\n/* 1450 */ b6 = (byte)(b6 + 1);\n/* 1451 */ b5 = b10;\n/* 1452 */ if (b9 == 15) {\n/* 1453 */ b5 = (byte)(b5 | 0xFFFFFF80);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 1460 */ b8++;\n/* */ } \n/* 1462 */ this.flags |= DirPropFlag((byte)18);\n/* */ break;\n/* */ \n/* */ \n/* */ case 16:\n/* 1467 */ if (b8 > 0) {\n/* 1468 */ b8--;\n/* 1469 */ } else if (b7 > 0 && (b5 & Byte.MAX_VALUE) != 61) {\n/* */ \n/* 1471 */ b7--;\n/* 1472 */ } else if (b6 > 0) {\n/* */ \n/* 1474 */ b6 = (byte)(b6 - 1);\n/* 1475 */ b5 = arrayOfByte[b6];\n/* */ } \n/* */ \n/* 1478 */ this.flags |= DirPropFlag((byte)18);\n/* */ break;\n/* */ case 7:\n/* 1481 */ b6 = 0;\n/* 1482 */ b7 = 0;\n/* 1483 */ b8 = 0;\n/* 1484 */ b2 = GetParaLevelAt(b1);\n/* 1485 */ if (b1 + 1 < this.length) {\n/* 1486 */ b5 = GetParaLevelAt(b1 + 1);\n/* 1487 */ if (this.text[b1] != '\\r' || this.text[b1 + 1] != '\\n') {\n/* 1488 */ this.paras[b4++] = b1 + 1;\n/* */ }\n/* */ } \n/* 1491 */ this.flags |= DirPropFlag((byte)7);\n/* */ break;\n/* */ \n/* */ \n/* */ case 18:\n/* 1496 */ this.flags |= DirPropFlag((byte)18);\n/* */ break;\n/* */ \n/* */ default:\n/* 1500 */ if (b2 != b5) {\n/* 1501 */ b2 = b5;\n/* 1502 */ if ((b2 & Byte.MIN_VALUE) != 0) {\n/* 1503 */ this.flags |= DirPropFlagO(b2) | DirPropFlagMultiRuns;\n/* */ } else {\n/* 1505 */ this.flags |= DirPropFlagE(b2) | DirPropFlagMultiRuns;\n/* */ } \n/* */ } \n/* 1508 */ if ((b2 & Byte.MIN_VALUE) == 0) {\n/* 1509 */ this.flags |= DirPropFlag(b9);\n/* */ }\n/* */ break;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1518 */ this.levels[b1] = b2;\n/* */ } \n/* 1520 */ if ((this.flags & MASK_EMBEDDING) != 0) {\n/* 1521 */ this.flags |= DirPropFlagLR(this.paraLevel);\n/* */ }\n/* 1523 */ if (this.orderParagraphsLTR && (this.flags & DirPropFlag((byte)7)) != 0) {\n/* 1524 */ this.flags |= DirPropFlag((byte)0);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1530 */ b3 = directionFromFlags();\n/* */ } \n/* */ }\n/* 1533 */ return b3;\n/* */ }", "title": "" }, { "docid": "874881935c134b0198c684a3c98f368f", "score": "0.5295332", "text": "String mo7048b();", "title": "" }, { "docid": "b2ff3e172b21f1f714a07432725addf1", "score": "0.5294308", "text": "@Test\n public void test54() throws Throwable {\n double double0 = MathUtils.cosh(0.0);\n long long0 = MathUtils.indicator(5040L);\n long long1 = MathUtils.subAndCheck(1L, 5040L);\n double double1 = MathUtils.binomialCoefficientLog(0, 0);\n long long2 = MathUtils.indicator(5040L);\n double double2 = MathUtils.normalizeAngle(1L, 0.0);\n double double3 = MathUtils.cosh((-1162.2637186));\n }", "title": "" }, { "docid": "1f8dc25ba346caee214669097f38b5b4", "score": "0.52923673", "text": "public abstract void mo5270b();", "title": "" }, { "docid": "64aed87d05d9fa7176b7c4a8f2033eca", "score": "0.5291322", "text": "@Test\n public void test33() throws Throwable {\n double double0 = MathUtils.normalizeAngle(0.0, (-1401.472));\n short short0 = MathUtils.sign((short)0);\n byte byte0 = MathUtils.indicator((byte) (-1));\n double double1 = MathUtils.sign((-1401.1503235010478));\n int int0 = MathUtils.hash(0.0);\n }", "title": "" }, { "docid": "c6c526e05117e91c26efaa3276a99a38", "score": "0.5290156", "text": "public abstract void mo13795m();", "title": "" }, { "docid": "95b5b8ac9f3b9fb9a15fc378ace87b5e", "score": "0.5285769", "text": "public void mo962b() {\n }", "title": "" }, { "docid": "dd29cdd6fb7f7ffe147dd071b55e124e", "score": "0.5284108", "text": "public abstract void mo7978c();", "title": "" }, { "docid": "e0336c4a65e6e48af0e2a30996955248", "score": "0.52789855", "text": "private static void slash(){\n attackData[0] = 5;\n attackData[1] = 30;\n attackData[2] = 28;\n attackData[3] = 0;\n attackData[4] = 0;\n attackData[5] = 0;\n attackData[6] = 0;\n\n }", "title": "" } ]
a59f59405798357544c62e43596f473e
Returns the distance between 2 locations in meters
[ { "docid": "dd28fa913ab1f08bd4bab06a19d694ce", "score": "0.7925686", "text": "public static double getDistance(LatLng first, LatLng second) {\n Location firstLocation = new Location(\"First Location\");\n firstLocation.setLatitude(first.latitude);\n firstLocation.setLongitude(first.longitude);\n Location secondLocation = new Location(\"Second Location\");\n secondLocation.setLongitude(second.longitude);\n secondLocation.setLatitude(second.latitude);\n return firstLocation.distanceTo(secondLocation);\n }", "title": "" } ]
[ { "docid": "6361a54324cb6085b4d04d2884506b97", "score": "0.8119285", "text": "public double calculateDistance(GeoCoordinate pos1, GeoCoordinate pos2);", "title": "" }, { "docid": "5647cee572896bbc9bbf416824fef0d2", "score": "0.75590986", "text": "public static double calculateDistance( Location locationOne, Location locationTwo )\n {\n double distance = Math.abs( Math.sqrt(\n ( locationOne.getLatitude() - locationTwo.getLatitude() ) * ( locationOne.getLatitude() - locationTwo\n .getLatitude() ) + ( locationOne.getLongitude() - locationTwo.getLongitude() ) * ( locationOne.getLongitude()\n - locationTwo.getLongitude() ) ) );\n return Math.round( distance * 100.0 ) / 100.0;\n }", "title": "" }, { "docid": "9f6b2f088cb4a3f1a16d4783588d7819", "score": "0.7533183", "text": "private float computeDistanceBetween(double lat1, double lng1, double lat2, double lng2) {\n float[] distance = new float[1];\n Location.distanceBetween(lat1, lng1, lat2, lng2, distance);\n return distance[0];\n }", "title": "" }, { "docid": "ad46b118de1bd9abe1f9d2756c2261fc", "score": "0.7511104", "text": "private double distance(double lat1, double lon1, double lat2, double lon2) {\n\t double theta = lon1 - lon2;\n\t double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\n\t dist = Math.acos(dist);\n\t dist = rad2deg(dist);\n\t dist = dist * 60 * 1.1515;\n\t return (dist);\n\t }", "title": "" }, { "docid": "77406947aab43648425fc5d8d6c92e11", "score": "0.7503813", "text": "public static double distance(double latitude1, double longitude1, double latitude2, double longitude2) {\n return Math.sqrt(distanceSq(latitude1, longitude1, latitude2, longitude2));\n }", "title": "" }, { "docid": "c96f3694c947ce10366dee8bb2500bd4", "score": "0.7503135", "text": "private int distance(Location a, Location b) {\n return Math.abs(a.x() - b.x()) + Math.abs(a.y() - b.y());\n }", "title": "" }, { "docid": "c96f3694c947ce10366dee8bb2500bd4", "score": "0.7503135", "text": "private int distance(Location a, Location b) {\n return Math.abs(a.x() - b.x()) + Math.abs(a.y() - b.y());\n }", "title": "" }, { "docid": "aca737fa5839edb67924ff7c2bb62734", "score": "0.7483869", "text": "public static double distanceBetweenTwoLocations(double latA, double lngA, double latB, double lngB) {\n\t\tLocation locationA = new Location(\"A\");\n\n\t locationA.setLatitude(latA);\n\t locationA.setLongitude(lngA);\n\n\t Location locationB = new Location(\"B\");\n\n\t locationB.setLatitude(latB);\n\t locationB.setLongitude(lngB);\n\n\t double distance = locationA.distanceTo(locationB);\n\n\t return distance;\n\t}", "title": "" }, { "docid": "54b81bc931f120034bb64b51d48bf1b2", "score": "0.74814993", "text": "private static double distance(double lat1, double lon1, double lat2, double lon2) {\n double theta = lon1 - lon2;\n double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\n dist = Math.acos(dist);\n dist = rad2deg(dist);\n dist = dist * 60 * 1.1515;\n dist = dist * 1.609344;\n return (dist);\n }", "title": "" }, { "docid": "b4baf294d1f6f79f340baf28f28a94c6", "score": "0.74508643", "text": "private double obtenerDistancia(LatLng pos1, LatLng pos2){\r\n return SphericalUtil.computeDistanceBetween(pos1,pos2);\r\n }", "title": "" }, { "docid": "1ad3e068dd927f0922c9438ca9ec0623", "score": "0.7449403", "text": "private double distance(double lat1, double lon1, double lat2, double lon2) {\n double theta = lon1 - lon2;\n double dist = Math.sin(deg2rad(lat1))\n * Math.sin(deg2rad(lat2))\n + Math.cos(deg2rad(lat1))\n * Math.cos(deg2rad(lat2))\n * Math.cos(deg2rad(theta));\n dist = Math.acos(dist);\n dist = rad2deg(dist);\n dist = dist * 60 * 1.1515;\n return (dist);\n }", "title": "" }, { "docid": "1ad3e068dd927f0922c9438ca9ec0623", "score": "0.7449403", "text": "private double distance(double lat1, double lon1, double lat2, double lon2) {\n double theta = lon1 - lon2;\n double dist = Math.sin(deg2rad(lat1))\n * Math.sin(deg2rad(lat2))\n + Math.cos(deg2rad(lat1))\n * Math.cos(deg2rad(lat2))\n * Math.cos(deg2rad(theta));\n dist = Math.acos(dist);\n dist = rad2deg(dist);\n dist = dist * 60 * 1.1515;\n return (dist);\n }", "title": "" }, { "docid": "9b7cbca2c0585adabfb7f3e81cf52a84", "score": "0.73892355", "text": "private Double distanceBetweenLocs(ParkLocation loc1, ParkLocation loc2) {\n\t\tDouble dX = loc1.getRow() - loc2.getRow();\n\t\tDouble dY = loc1.getColumn() - loc2.getColumn();\n\t\tDouble dist = Math.sqrt(dX * dX + dY * dY);\n\t\treturn dist;\n\t}", "title": "" }, { "docid": "a95a3e59775c66acdceee89fefdd5321", "score": "0.7373393", "text": "public static double distance(double lat1,\n double lat2, double lon1,\n double lon2)\n {\n lon1 = Math.toRadians(lon1);\n lon2 = Math.toRadians(lon2);\n lat1 = Math.toRadians(lat1);\n lat2 = Math.toRadians(lat2);\n\n // Haversine formula\n double dlon = lon2 - lon1;\n double dlat = lat2 - lat1;\n double a = Math.pow(Math.sin(dlat / 2), 2)\n + Math.cos(lat1) * Math.cos(lat2)\n * Math.pow(Math.sin(dlon / 2),2);\n\n double c = 2 * Math.asin(Math.sqrt(a));\n\n // Radius of earth in kilometers. Use 3956\n // for miles\n double r = 6371;\n\n // calculate the result\n return(c * r);\n }", "title": "" }, { "docid": "f06148e0055fbffde4e50bff7638afab", "score": "0.73592013", "text": "public static double computeDistanceBetween(@NonNull LatLng point1, @NonNull LatLng point2) {\n return computeAngleBetween(point1, point2) * 6371009.0D; // Earth's radius in meter\n }", "title": "" }, { "docid": "6cf12027cbe77aeead8376333a4cb0b5", "score": "0.73311985", "text": "private double calculateDistance(Location location, Location location1) {\n double phi0 = location.getLatitude()*Math.PI/180;\n double phi1 = location1.getLatitude()*Math.PI/180;\n double deltaPhi = (location.getLatitude() - location1.getLatitude())*Math.PI/180;\n double deltaLambda = (location.getLongitude() - location1.getLongitude())*Math.PI/180;\n double a = Math.sin(deltaPhi/2) * Math.sin(deltaPhi/2) +\n Math.cos(phi0) * Math.cos(phi1) * Math.sin(deltaLambda/2) * Math.sin(deltaLambda/2);\n double c = Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n return c;\n }", "title": "" }, { "docid": "4fae078df196f7ead5afb44165838b96", "score": "0.7326505", "text": "private double distance(double lat1, double lng1, double lat2, double lng2) {\n\n double earthRadius = 3958.75; // in miles, change to 6371 for kilometers\n\n double dLat = Math.toRadians(lat2-lat1);\n double dLng = Math.toRadians(lng2-lng1);\n\n double sindLat = Math.sin(dLat / 2);\n double sindLng = Math.sin(dLng / 2);\n\n double a = Math.pow(sindLat, 2) + Math.pow(sindLng, 2)\n * Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2));\n\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n\n double dist = earthRadius * c;\n\n return dist;\n }", "title": "" }, { "docid": "73109db6c0f48acd3ffd469f36d9fefc", "score": "0.73262006", "text": "public double distance(double lat1, double lon1, double lat2, double lon2) {\n double theta = lon1 - lon2;\n double dist = Math.sin(deg2rad(lat1))\n * Math.sin(deg2rad(lat2))\n + Math.cos(deg2rad(lat1))\n * Math.cos(deg2rad(lat2))\n * Math.cos(deg2rad(theta));\n dist = Math.acos(dist);\n dist = rad2deg(dist);\n dist = dist * 60 * 1.1515;\n return (dist);\n }", "title": "" }, { "docid": "dd9367f2f9e9547aaf0d4fb915018ec1", "score": "0.7314876", "text": "public static double distance(double lat1, double lat2, double lon1,\n\t double lon2) {\n\t \n\t final int R = 6371; // Radius of the earth\n\t \n\t Double latDistance = Math.toRadians(lat2 - lat1);\n\t Double lonDistance = Math.toRadians(lon2 - lon1);\n\t Double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2)\n\t + Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2))\n\t * Math.sin(lonDistance / 2) * Math.sin(lonDistance / 2);\n\t Double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\t double distance = R * c * 1000; // convert to meters\n\t \n\t //\t double height = el1 - el2;\n\t \n\t //\t distance = Math.pow(distance, 2) + Math.pow(height, 2);\n\t \n\t return distance;\n\t}", "title": "" }, { "docid": "e68985d375a60968ba92a53cfd7a7f67", "score": "0.73111933", "text": "public double getDistance (Coordinate other){\n double dx = toRadians(this.getLatitude()) - toRadians(other.getLatitude());\n double dy = toRadians(this.getLongitude()) - toRadians(other.getLongitude());\n return 2 * Math.asin(Math.sqrt(\n Math.sin(dx/2)*Math.sin(dx/2) +\n Math.cos(toRadians(this.getLatitude()))*Math.cos(toRadians(other.getLatitude()))*\n Math.sin(dy/2)*Math.sin(dy/2)));\n }", "title": "" }, { "docid": "76cf688be4d12ef1a27e36dd0352bac3", "score": "0.73062474", "text": "private static double distance(double lat1, double lon1, double lat2, double lon2, String unit) {\n double theta = lon1 - lon2;\n double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\n dist = Math.acos(dist);\n dist = rad2deg(dist);\n dist = dist * 60 * 1.1515;\n if (unit == \"K\") {\n dist = dist * 1.609344;\n } else if (unit == \"N\") {\n dist = dist * 0.8684;\n } // else is \"M\"\n\n return (dist);\n }", "title": "" }, { "docid": "e6ac23b62b2b00f1d6a0dce3a3b005be", "score": "0.7305992", "text": "public double distance(double lat1, double lat2, double lon1,\n double lon2) {\n\n final int R = 6371; // Radius of the earth\n\n double latDistance = Math.toRadians(lat2 - lat1);\n double lonDistance = Math.toRadians(lon2 - lon1);\n double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2)\n + Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2))\n * Math.sin(lonDistance / 2) * Math.sin(lonDistance / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double distance = R * c * 1000; // convert to meters\n\n //double height = el1 - el2;\n\n distance = Math.pow(distance, 2);// + Math.pow(height, 2);\n\n return Math.sqrt(distance);\n }", "title": "" }, { "docid": "8a4cb3f1e920dfc805dc514eb1fd05b5", "score": "0.7252047", "text": "public double calculateDistance(City city1, City city2) {\n double latitude1 = city1.getLatitude();\n double longitude1 = city1.getLongitude();\n double latitude2 = city2.getLatitude();\n double longitude2 = city2.getLongitude();\n // Had to look up these formulas on google obviously\n double longitudeDifference = longitude1 - longitude2;\n double distance = Math.sin(degreeToRadian(latitude1)) * Math.sin(degreeToRadian(latitude2)) + Math.cos(degreeToRadian(latitude1)) * Math.cos(degreeToRadian(latitude2)) * Math.cos(degreeToRadian(longitudeDifference));\n distance = Math.acos(distance);\n distance = radianToDegree(distance);\n distance = distance * 60 * 1.1515;\n return distance;\n }", "title": "" }, { "docid": "4fe3f68e034a11740f9c9e094626ac7f", "score": "0.7211222", "text": "public static double distFrom(double lat1, double lng1, double lat2, double lng2) { \n\t double earthRadius = 6371; \n\t double dLat = Math.toRadians(lat2-lat1); \n\t double dLng = Math.toRadians(lng2-lng1); \n\t double a = Math.sin(dLat/2) * Math.sin(dLat/2) + Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) * Math.sin(dLng/2) * Math.sin(dLng/2); \n\t double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); \n\t double dist = earthRadius * c; \n\t return dist*1000; \n }", "title": "" }, { "docid": "03de01d1151b86a83ffb742c6cb59857", "score": "0.7185531", "text": "private double distanceTo(GPSLocation otherLocation) {\n final int R = 6371; // Radius of the earth\n\n double lat1 = this.getLatitude();\n double lon1 = this.getLongitude();\n\n double lat2 = otherLocation.getLatitude();\n double lon2 = otherLocation.getLongitude();\n\n //Since we dont get elevations ignore it for now\n double el1 = 0;\n double el2 = 0;\n\n Double latDistance = Math.toRadians(lat2 - lat1);\n Double lonDistance = Math.toRadians(lon2 - lon1);\n Double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2)\n + Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2))\n * Math.sin(lonDistance / 2) * Math.sin(lonDistance / 2);\n Double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double distance = R * c * 1000; // convert to meters\n\n double height = el1 - el2;\n\n distance = Math.pow(distance, 2) + Math.pow(height, 2);\n\n return Math.sqrt(distance);\n }", "title": "" }, { "docid": "4d33621fcd06c002f6719e3a95dc21e9", "score": "0.7175947", "text": "float distanceTo(Context context, LatLng location);", "title": "" }, { "docid": "ae00f8d9bc24c400b2a20c10c22ee21f", "score": "0.71630967", "text": "public static double computeDistanceUsingGeoLoc(double lat1, double lon1,\n double lat2, double lon2) {\n double R = 6371000;\n double rad_phi1 = lat1 * 3.14 / 180;\n double rad_phi2 = lat2 * 3.14 / 180;\n double delta_phi = (lat2 - lat1) * 3.14 / 180;\n double delta_lambda = (lon2 - lon1) * 3.14 / 180;\n double a = Math.sin(delta_phi/2) * Math.sin(delta_phi/2) +\n Math.cos(rad_phi1) * Math.cos(rad_phi2) *\n Math.sin(delta_lambda/2) * Math.sin(delta_lambda/2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n return R * c;\n }", "title": "" }, { "docid": "a6ea1774b6fb7de505fe36f750ecac61", "score": "0.71454656", "text": "public static double calculateDistance(double lat1, double long1, double lat2, double long2) {\n if ((lat1 == lat2) && (long1 == long2)) {\n return 0;\n }\n double theta = long1 - long2;\n double dist = Math.sin(Math.toRadians(lat1)) * Math.sin(Math.toRadians(lat2)) + Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) * Math.cos(Math.toRadians(theta));\n dist = Math.acos(dist);\n dist = Math.toDegrees(dist);\n dist = dist * 60 * 1.1515;\n\n return (dist);\n }", "title": "" }, { "docid": "29aef0cd15882d0141c609e3e99e8a45", "score": "0.713832", "text": "public static double distance(double lat1, double lat2, double lon1, double lon2) {\n\n\t final int R = 6371; // Radius of the earth\n\n\t Double latDistance = deg2rad(lat2 - lat1);\n\t Double lonDistance = deg2rad(lon2 - lon1);\n\t Double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2)\n\t + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2))\n\t * Math.sin(lonDistance / 2) * Math.sin(lonDistance / 2);\n\t Double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\t double distance = R * c;\n\n\t distance = Math.pow(distance, 2);\n\t return Math.sqrt(distance);\n\t}", "title": "" }, { "docid": "4348ff0064333464afc6e36cd5eb5bee", "score": "0.7126027", "text": "public double calculateDistanceFromPosition(double lat1, double lat2, double long1, double long2){\n int radius = 6371; //earth radius\n double dlat = (lat1-lat2)*Math.PI/180; //delta lat\n double dlong = (long1-long2)*Math.PI/180; //delta long\n\n double calculation = Math.sin(dlat/2)*Math.sin(dlat/2) + //sin(delta latitude/2)^2\n Math.cos(lat1*Math.PI/180)*Math.cos(lat2*Math.PI/180)* //cos(latitude 1)*cos(latitude 2)\n Math.sin(dlong/2)*Math.sin(dlong/2); //sin(delta longitude/2)^2\n\n double distance = radius * 2 * Math.asin(Math.sqrt(calculation)); //the distance given in kilometers\n return distance;\n }", "title": "" }, { "docid": "3e0f3dd8560093589f72c2cf078c1d64", "score": "0.71186596", "text": "public static double distance(double lat1, double lon1, double lat2, double lon2, String unit) {\n double theta = lon1 - lon2;\n double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\n dist = Math.acos(dist);\n dist = rad2deg(dist);\n dist = dist * 60 * 1.1515;\n if (unit == \"K\") {\n dist = dist * 1.609344;\n } else if (unit == \"N\") {\n dist = dist * 0.8684;\n }\n return (dist);\n }", "title": "" }, { "docid": "6b01ad84e5ffa99f9dca7dde6c4bdd1d", "score": "0.71155584", "text": "private double getDistanceBetweenCoords(Waypoint w2, Waypoint w1) {\n if (w1 == null) return Double.NaN;\n double latW1 = toRadians(w1.getLatitude());\n double longW1 = toRadians(w1.getLongitude());\n double latW2 = toRadians(w2.getLatitude());\n double longW2 = toRadians(w2.getLongitude());\n double centralAngle = acos(sin(latW1) * sin(latW2) + cos(latW1) * cos(latW2) * cos(abs(longW1 - longW2)));\n return EARTH_RADIUS * centralAngle;\n }", "title": "" }, { "docid": "13e9a9b673626692853029eea6ba8745", "score": "0.7109839", "text": "public static double distance(double startLat, double startLong,\n double endLat, double endLong) \n {\n double dLat = Math.toRadians((endLat - startLat));\n double dLong = Math.toRadians((endLong - startLong));\n\n startLat = Math.toRadians(startLat);\n endLat = Math.toRadians(endLat);\n\n double a = haversin(dLat) + Math.cos(startLat) * Math.cos(endLat) * haversin(dLong);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\n return EARTH_RADIUS * c; // <-- d\n }", "title": "" }, { "docid": "17223caf6c63d674a69aea18ebd62be7", "score": "0.7089139", "text": "public static double distance(double lat1, double lon1, double lat2, double lon2, char unit) {\n\t\t\tdouble theta = lon1 - lon2;\n\t\t\tdouble dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\n\t\t\tdist = Math.acos(dist);\n\t\t\tdist = rad2deg(dist);\n\t\t\tdist = dist * 60 * 1.1515;\n\t\t\tif (unit == UNIT_KILOMETERS) {\n\t\t\t\tdist = dist * 1.609344;\n\t\t\t}\n\t\t\telse if (unit == UNIT_NAUTICAL_MILES) {\n\t\t\t\tdist = dist * 0.8684;\n\t\t\t}\n\t\t\treturn (dist);\n\t\t}", "title": "" }, { "docid": "a710f4f593cc9848570792ea8da3513c", "score": "0.7075399", "text": "public static double calculateDistance(double lat1, double lat2, double lon1, double lon2) {\n final int earthRadius = 6371;\n double latDistance = Math.toRadians(lat2 - lat1);\n double lonDistance = Math.toRadians(lon2 - lon1);\n double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2) + Math.cos(Math.toRadians(lat1))\n * Math.cos(Math.toRadians(lat2)) * Math.sin(lonDistance / 2) * Math.sin(lonDistance / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double distance = earthRadius * c * 1000;\n distance = Math.pow(distance, 2);\n return Math.sqrt(distance);\n }", "title": "" }, { "docid": "6c9f0782ef5bded7b5d7f6924558e4cf", "score": "0.7072219", "text": "public static float distFrom(double lat1, double lng1, double lat2, double lng2) {\n double earthRadius = 6371000; //meters\n double dLat = Math.toRadians(lat2-lat1);\n double dLng = Math.toRadians(lng2-lng1);\n double a = Math.sin(dLat/2) * Math.sin(dLat/2) +\n Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) *\n Math.sin(dLng/2) * Math.sin(dLng/2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n float dist = (float) (earthRadius * c);\n return dist;\n }", "title": "" }, { "docid": "e56868c531b23ad13d32a11f44a2003c", "score": "0.7028923", "text": "static Double dist(double long1, double lat1, double long2, double lat2) {\n\n Double earthRadiusKm = 6371.0;\n\n Double dLat = degreesToRadians(lat2 - lat1);\n Double dLon = degreesToRadians(long2 - long1);\n\n lat1 = degreesToRadians(lat1);\n lat2 = degreesToRadians(lat2);\n\n Double a = Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.sin(dLon / 2) * Math.sin(dLon / 2) * Math.cos(lat1) * Math.cos(lat2);\n Double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n return earthRadiusKm * c;\n }", "title": "" }, { "docid": "14deaab5b1ab3c2bc2037094ce5df45b", "score": "0.7026404", "text": "public static double getDistance(Coordinates coordinates1, Coordinates coordinates2) {\n\t\tdouble latitude1 = Math.toRadians(coordinates1.getLatitude());\n\t\tdouble longitude1 = Math.toRadians(coordinates1.getLongitude());\n\t\tdouble latitude2 = Math.toRadians(coordinates2.getLatitude());\n\t\tdouble longitude2 = Math.toRadians(coordinates2.getLongitude());\n\t\t\n\t\treturn 2 * HubConstants.EARTH_RADIUS\n\t\t\t\t* Math.asin(Math.sqrt(Math.pow(Math.sin(latitude2 - latitude1) / 2, 2)\n\t\t\t\t+ Math.cos(latitude1) * Math.cos(latitude2) * Math.pow(Math.sin(longitude2 - longitude1) / 2, 2)));\n\t}", "title": "" }, { "docid": "7bde1eae49c50b1be7d2b21634647722", "score": "0.70184183", "text": "private static double toGeoDistance(\n double lat1,\n double long1,\n double lat2,\n double long2) {\n // PI / 180\n double constant = 0.0174532925199432957692369076848861271344287188854172;\n double d_long = (long2 - long1) * constant;\n //double d_lat = (lat2 - lat1) * constant;\n Acos acos = new Acos();\n Sin sin = new Sin();\n double lat1Constant = lat1 * constant;\n double lat2Constant = lat2 * constant;\n double a = sin.value(lat1Constant)\n * sin.value(lat2Constant)\n + Math.cos(lat1Constant)\n * Math.cos(lat2Constant) * Math.cos(d_long);\n double c = acos.value(a);\n return c * 6372800; // meters\n }", "title": "" }, { "docid": "ec385ff0f7c6f4131fad6bdb33a3dc39", "score": "0.70049495", "text": "public static double distance(Coordinate source, Coordinate destination) {\n /*double startLat = source.getLatitude();\n double startLong =source.getLongitude();\n double endLat =destination.getLatitude();\n double endLong=destination.getLongitude();\n double dLat = Math.toRadians((endLat - startLat));\n double dLong = Math.toRadians((endLong - startLong));\n\n startLat = Math.toRadians(startLat);\n endLat = Math.toRadians(endLat);\n\n double a = haversin(dLat) + Math.cos(startLat) * Math.cos(endLat) * haversin(dLong);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\n return EARTH_RADIUS * c;*/ // <-- d\n\n return source.getMapBoxLatLng().distanceTo(destination.getMapBoxLatLng())/1000;\n }", "title": "" }, { "docid": "9c1d694f4a044c4f9dbc55f92c90f22a", "score": "0.7004692", "text": "public static double distFrom(double lat1, double lng1, double lat2, double lng2) \n\t{\n\t double earthRadius = 3958.75; // miles (or 6371.0 kilometers)\n\t double dLat = Math.toRadians(lat2-lat1);\n\t double dLng = Math.toRadians(lng2-lng1);\n\t double sindLat = Math.sin(dLat / 2);\n\t double sindLng = Math.sin(dLng / 2);\n\t double a = Math.pow(sindLat, 2) + Math.pow(sindLng, 2) * Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2));\n\t double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n\t double dist = earthRadius * c;\n\n\t return dist;\n\t}", "title": "" }, { "docid": "23f01e9170bd708050366315a3d4f686", "score": "0.699936", "text": "public static float CalcDistance(float latA, float longA,\r\n float latB, float longB) {\r\n float radA = AngleToRadian(latA);\r\n float radB = AngleToRadian(latB);\r\n float dLat = AngleToRadian(latB - latA);\r\n float dLong = AngleToRadian(longB - longA);\r\n double a = Math.sin(dLat / 2) * Math.sin(dLat / 2) +\r\n Math.cos(radA) * Math.cos(radB) *\r\n Math.sin(dLong / 2) * Math.sin(dLong / 2);\r\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\r\n float distance = (float) (EARTH_RADIUS * c);\r\n return distance;\r\n }", "title": "" }, { "docid": "d973e053fa66661e4ac293591e44992e", "score": "0.6996141", "text": "public static double distFrom(double lat1, double lng1, double lat2, double lng2) {\n\t\tdouble earthRadius = 6371000; //meters\n\t\tdouble dLat = Math.toRadians(lat2-lat1);\n\t\tdouble dLng = Math.toRadians(lng2-lng1);\n\t\tdouble a = Math.sin(dLat/2) * Math.sin(dLat/2) +\n\t\t\t\tMath.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) *\n\t\t\t\tMath.sin(dLng/2) * Math.sin(dLng/2);\n\t\tdouble c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n\t\tdouble dist = (double) (earthRadius * c);\n\t\treturn dist;\n\t}", "title": "" }, { "docid": "7bc685302a8938ab081efab0741eef4d", "score": "0.6990818", "text": "public double geoCalc(String location_1, String location_2) {\n\t\t// Format strings into respective x and y doubles\n\t\tString delims = \"[;]\";\n\t\tString[] loc1 = location_1.split(delims);\n\t\tString[] loc2 = location_2.split(delims);\n\n\t\t// Create 4 variables for x1, x2, y1, y2 for formula\n\t\tdouble x1 = Double.parseDouble(loc1[0]);\n\t\tdouble y1 = Double.parseDouble(loc1[1]);\n\t\tdouble x2 = Double.parseDouble(loc2[0]);\n\t\tdouble y2 = Double.parseDouble(loc2[1]);\n\n\t\t/*\n\t\t * Haversine formula: a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2) c =\n\t\t * 2 ⋅ asin( √a, √(1−a) ) d = R ⋅ c where φ is latitude, λ is longitude,\n\t\t * R is earth’s radius each degree on a great circle of Earth is 69.1105\n\t\t * miles note that angles need to be in radians to pass to trig\n\t\t * functions\n\t\t */\n\n\t\tdouble difference_x = Math.toRadians(x2 - x1);\n\t\tx1 = Math.toRadians(x1);\n\t\tx2 = Math.toRadians(x2);\n\t\tdouble difference_y = Math.toRadians(y2 - y1);\n\t\tdouble radius = 69.1105;\n\n\t\tdouble a = Math.pow(Math.sin((difference_x) / 2), 2) + Math.cos(x1)\n\t\t\t\t* Math.cos(x2) * Math.pow(Math.sin((difference_y) / 2), 2);\n\t\tdouble angle = 2 * Math.asin(Math.min(1, Math.sqrt(a)));\n\t\tangle = Math.toDegrees(angle);\n\t\tdouble distance = radius * angle;\n\t\t\n\t\treturn distance; // in feet;\n\t}", "title": "" }, { "docid": "6012ca5f603f8ff953a8c699eae371db", "score": "0.6986418", "text": "public static double distFrom(float lat1, float lng1, float lat2, float lng2) {\n double earthRadius = 6371;//km\n double dLat = Math.toRadians(lat2-lat1);\n double dLng = Math.toRadians(lng2-lng1);\n double a = Math.sin(dLat/2) * Math.sin(dLat/2) +\n Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) *\n Math.sin(dLng/2) * Math.sin(dLng/2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n double dist = earthRadius * c;\n\n return dist * 1000;\n }", "title": "" }, { "docid": "114ad4f320ba5cf72c2a2e579d92cad7", "score": "0.697682", "text": "public static double getDistanceFromPositions(Position station1,Position station2) {\r\n\t double dist;\r\n\r\n\t dist= Math.sqrt(Math.pow(station1.getXCoordinate()- station2.getXCoordinate(),2)\r\n\t +Math.pow(station1.getYCoordinate()-station2.getXCoordinate(),2)) ;\r\n\t \r\n\r\n\t return dist;\r\n\t }", "title": "" }, { "docid": "c4c2ad323fd1019578cd7ac7be5b6853", "score": "0.6961086", "text": "private static float calcDistance (float x1, float y1, float x2, float y2) {\n return (float) Math.sqrt(Math.pow(x2-x1, 2) + Math.pow(y2-y1, 2));\n }", "title": "" }, { "docid": "2bd6b727e32bec8fc15c31903abdff1b", "score": "0.6942944", "text": "public static final double distance(double lat1, double lon1, double lat2, double lon2, char unit) {\n double theta = lon1 - lon2;\n double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1))\n * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));\n dist = Math.acos(dist);\n dist = rad2deg(dist);\n dist = dist * 60 * 1.1515;\n\n if (unit == 'K') {\n dist = dist * 1.609344;\n } else if (unit == 'N') {\n dist = dist * 0.8684;\n }\n\n return (dist);\n }", "title": "" }, { "docid": "289991e2ccf487a6c70e83f616f653f9", "score": "0.69264567", "text": "double getDistance();", "title": "" }, { "docid": "b39ce27af556c0c67f139538e7e413ce", "score": "0.6911311", "text": "public Double getDistance(String fromLocation, String toLocation) {\n return graphMap.get(fromLocation, toLocation);\n }", "title": "" }, { "docid": "07de40fad6689208d896916691a87282", "score": "0.6887722", "text": "public static double latLngDistance (double lat_a, double lng_a, double lat_b, double lng_b )\n {\n /*Calculates the distance between two LatLngs*/\n\n double earthRadius = 3958.75;\n double latDiff = Math.toRadians(lat_b-lat_a);\n double lngDiff = Math.toRadians(lng_b-lng_a);\n double a = Math.sin(latDiff /2) * Math.sin(latDiff /2) +\n Math.cos(Math.toRadians(lat_a)) * Math.cos(Math.toRadians(lat_b)) *\n Math.sin(lngDiff /2) * Math.sin(lngDiff /2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n double distance = earthRadius * c;\n\n int meterConversion = 1609;\n\n return distance * meterConversion;\n }", "title": "" }, { "docid": "b7d4f2938d3be00a6bf1b03190e5d0b7", "score": "0.68759584", "text": "public static double getDistance(float x1, float y1, float x2, float y2)\n {\n // using long to avoid possible overflows when multiplying\n double dx = x2 - x1;\n double dy = y2 - y1;\n\n // return Math.hypot(x2 - x1, y2 - y1); // Extremely slow\n // return Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); // 20 times faster than hypot\n return Math.sqrt(dx * dx + dy * dy); // 10 times faster then previous line\n }", "title": "" }, { "docid": "b67f529eb3ccad12b8c73b9b71f2a81a", "score": "0.6873193", "text": "public double getDistance(Node node1, Node node2){\n\t\tdouble tempWeight = 0;\r\n\t\tdouble xDifference = 0;\r\n\t\tdouble yDifference = 0;\r\n\t\tdouble sum = 0;\r\n\t\t\r\n\t\tyDifference = Math.abs(node1.latitude - node2.latitude);\r\n\t\txDifference = Math.abs(node1.longitude - node2.longitude);\r\n\t\tsum = xDifference*xDifference + yDifference*yDifference;\r\n\t\ttempWeight = Math.sqrt(sum);\r\n\t\t\r\n\t\treturn tempWeight;\r\n\t}", "title": "" }, { "docid": "eadfba2f49c85204326a26da84f6d2e7", "score": "0.6869496", "text": "public static int distFromCurrentLocation(double lat2, double lng2) {\n\n int distanceKm = LOCATION_UNKNOWN;\n if(sLastLocation != null) {\n\n double lat1 = sLastLocation.getLatitude();\n double lng1 = sLastLocation.getLongitude();\n\n double earthRadius = 6371000; //metres\n double dLat = Math.toRadians(lat2 - lat1);\n double dLng = Math.toRadians(lng2 - lng1);\n double a = Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) *\n Math.sin(dLng / 2) * Math.sin(dLng / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n // Distance in metres\n float dist = (float) (earthRadius * c);\n distanceKm = (int) (dist / 1000);\n }\n return distanceKm;\n }", "title": "" }, { "docid": "2fb6916d5a9ae4f93ca5b6ccaa918f45", "score": "0.6868073", "text": "public static double distanceH(double lat1, double lon1, double lat2,\n\t\t\tdouble lon2) {\n\t\tdouble eRadius = (metric ? earthRadius : earthRadiusMiles);\n\t\tdouble dLat = Math.toRadians(lat2 - lat1);\n\t\tdouble dLon = Math.toRadians(lon2 - lon1);\n\t\tdouble a = Math.sin(dLat / 2) * Math.sin(dLat / 2)\n\t\t\t\t+ Math.cos(Math.toRadians(lat1))\n\t\t\t\t* Math.cos(Math.toRadians(lat2)) * Math.sin(dLon / 2)\n\t\t\t\t* Math.sin(dLon / 2);\n\t\tdouble c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\t\tdouble d = eRadius * c;\n\t\treturn d;\n\t}", "title": "" }, { "docid": "5ebd0cf22b65ddfcb175da9ba5243440", "score": "0.6865961", "text": "private double distance(double x1, double y1, double x2, double y2) {\n\t\treturn (int)Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n\t}", "title": "" }, { "docid": "79a8fe0bfdb54ae374a62635d75db1fa", "score": "0.68627596", "text": "public static double getDistance(int x1, int y1, int x2, int y2) {\n double result = sqrt(pow((x2 - x1), 2) + pow((y2 - y1), 2));\n return result;\n }", "title": "" }, { "docid": "dc701c59e79a3d00388caaa4ca040b31", "score": "0.68546504", "text": "public static double calculateDistance(int x1, int y1, int x2, int y2) {\n return Math.abs(x1 - x2) + Math.abs(y1 - y2);\n }", "title": "" }, { "docid": "f5e169998797cf258c191cccc07d46a0", "score": "0.6846725", "text": "public double getDistance();", "title": "" }, { "docid": "847cea5fa6c973c47b35508469e4bbcc", "score": "0.6824632", "text": "public float distanceLocation(double srcLat, double srcLon, double desLat, double desLon) {\n Location locationA = new Location(\"point A\");\n\n locationA.setLatitude(srcLat);\n locationA.setLongitude(srcLon);\n\n Location locationB = new Location(\"point B\");\n\n locationB.setLatitude(desLat);\n locationB.setLongitude(desLon);\n\n float distance = locationA.distanceTo(locationB);\n return distance;\n }", "title": "" }, { "docid": "b26708b2e1adc3a8c2baf35810fda7d5", "score": "0.6822889", "text": "public static double distance(double x1, double y1, double x2, double y2) {\n\n\treturn Math.sqrt(Math.pow(x1 - x2, 2.0) + Math.pow(y1 - y2, 2.0));\n }", "title": "" }, { "docid": "121902717616ab4dd8c1a5d07345a398", "score": "0.68226993", "text": "protected double calcDist(double x1, double x2, double y1, double y2) {\n double d = 0;\n\n try {\n d = (double) Math.sqrt( (double) ( ( (x2 - x1) * (x2 - x1)) +\n ( (y2 - y1) * (y2 - y1))));\n }\n catch (ArithmeticException e) {\n System.out.println(\n \"Arithmetic Exception in calculating distance in ShipmentLinkedList \" +\n e);\n }\n return d;\n }", "title": "" }, { "docid": "2e4a847582abd45403d1d550d025da2c", "score": "0.681873", "text": "public static double distanceBetween(double x1, double y1, double x2, double y2)\n\t{\n\t\treturn Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n\t}", "title": "" }, { "docid": "dff00c56a9d31f38e65dee4f7d99cc94", "score": "0.68136", "text": "public double distance() {\n\t\treturn Math.sqrt(Math.pow(p1.getX() - p2.getX(), 2) + Math.pow(p1.getY() - p2.getY(), 2));\n\t}", "title": "" }, { "docid": "f876a0cbdc0b2e8f6ac53e8d4b9ca3ac", "score": "0.6806594", "text": "private double getDistance(double latitude2, double longitude2, double latitude3, double longitude3) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1b9703ecdac730b9376f59daaf3eebe7", "score": "0.6792648", "text": "static void distanceBetweenTwoPointsOnEarth (double x1, double y1, double x2, double y2) {\n double r = 6371.01 ;\n double distance = r * Math.acos(Math.sin(x1) * Math.sin(x2) + Math.cos(x1) * Math.cos(x2) * Math.cos(y2 - y1));\n System.out.println(distance);\n }", "title": "" }, { "docid": "cb49333db0925e1b6f0195803d8a936f", "score": "0.6791456", "text": "static float distance (Coords p_Coords1, Coords p_Coords2){\n return 0;\n }", "title": "" }, { "docid": "0d079d4d8a1607eef261ddabc2cff26e", "score": "0.67848456", "text": "@Test\n public void testDistanceTo() {\n double lat1 = 20, lon1 = 30, lat2 = -45, lon2 = 32;\n\n float[] results = new float[1];\n Location.distanceBetween(lat1, lon1, lat2, lon2, results);\n float realDistance = results[0];\n\n GeoPoint gp1 = new GeoPoint(lat1, lon1);\n GeoPoint gp2 = new GeoPoint(lat2, lon2);\n\n assertEquals(realDistance, gp1.distanceTo(gp2), 0);\n }", "title": "" }, { "docid": "a244dc8daf6525dce3ba6b9b54b8c032", "score": "0.6777329", "text": "public double getDistance() {\n final int R = 6371; // Radius of the earth in Km\n Double latDistance = toRad(departureMarker.getPosition().latitude\n - destinationMarker.getPosition().latitude);\n Double lonDistance = toRad(departureMarker.getPosition().longitude\n - destinationMarker.getPosition().longitude);\n Double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2) +\n Math.cos(toRad(departureMarker.getPosition().latitude)) *\n Math.cos(toRad(destinationMarker.getPosition().latitude)) *\n Math.sin(lonDistance / 2) * Math.sin(lonDistance / 2);\n Double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n return R * c;\n }", "title": "" }, { "docid": "48cb2e1e5bad5464fc0ee2dcaba7b580", "score": "0.67770493", "text": "public static double getDistance(double x1, double y1, double x2, double y2) {\n return Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)); // Point2D.distance(x1, y1, x2, y2);\n }", "title": "" }, { "docid": "f7b9e93d0758a9b5300b3cf47cdfd5d1", "score": "0.6773827", "text": "private Double distanceBetweenOwners(Owner u1, Owner u2) {\n\t\tDouble dist = distanceBetweenLocs(u1.getLocation(), u2.getLocation());\n\t\treturn dist;\n\t}", "title": "" }, { "docid": "ab727be62a61516591da327905823407", "score": "0.6769978", "text": "public static double distance(double x1, double y1, double x2, double y2)\n\t{\n\t\treturn (Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1)));\n\t}", "title": "" }, { "docid": "39526c16631d78ba7ba5989cbfd83579", "score": "0.6756531", "text": "public double computeDistance(double startLat, double startLong, double endLat, double endLong, String unit) {\n\n\t\tdouble dLat = Math.toRadians((endLat - startLat));\n\t\tdouble dLong = Math.toRadians((endLong - startLong));\n\n\t\tstartLat = Math.toRadians(startLat);\n\t\tendLat = Math.toRadians(endLat);\n\n\t\tdouble a = haversin(dLat) + Math.cos(startLat) * Math.cos(endLat) * haversin(dLong);\n\t\tdouble c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\t\t\n\t\tif (DistanceAPIUtil.isRequestByKilometer(unit)){\n\t\t\treturn EARTH_RADIUS * c; \n\t\t}else{\n\t\t\treturn EARTH_RADIUS * c * 0.621371;\n\t\t}\n\t}", "title": "" }, { "docid": "6d5dc9270b759a59308687f19c77ffd3", "score": "0.67556137", "text": "int getDistance(String startingCity, String destinationCity);", "title": "" }, { "docid": "44ecab39909abf3d6c52a368c797e6c1", "score": "0.6749817", "text": "public static double distance(\n double x1, double y1, double x2, double y2) {\n return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n }", "title": "" }, { "docid": "71b3c25b172cb95c8eb332b43d33ae19", "score": "0.67480385", "text": "public static double distance(double x1, double y1, double x2, double y2) {\n double yDiff = Math.pow(y2 - y1,2);\n double xDiff = Math.pow(x2 - x1,2);\n double dist = Math.sqrt(xDiff + yDiff) ;\n System.out.println();\n return dist;\n }", "title": "" }, { "docid": "48131a144414ad3a7f20f4c50523c85e", "score": "0.67474127", "text": "public static double getDistanceMap(double lat1, double lon1, double lat2, double lon2){\n\t\tString dep, arr;\n\t\tdep = Double.toString(lat1)+\",\"+Double.toString(lon1);\n\t\tarr = Double.toString(lat2)+\",\"+Double.toString(lon2);\n\t\tString req = \"http://maps.googleapis.com/maps/api/distancematrix/xml?origins=\"+dep+\"&destinations=\"+arr+\"&mode=walk&language=fr-FR\";\n\t\tdouble res=0;\n\t\ttry {\n\t\t\tURL u = new URL(req);\n\t\t\ttry {\n\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(u.openStream()));\n\t\t\t\tString line;\n\n\t\t while ((line = reader.readLine()) != null) {\n\t\t if(line.contains(\"<distance>\")){\n\t\t \tline =reader.readLine();\n\t\t \tif(line.contains(\"<value>\")){\n\t\t \t\t\t\tString[]vals=line.split(\"<value>\");\n\t\t \t\t\t\tvals=vals[1].split(\"</value>\");\n\t\t \t\t\t\tres=Double.parseDouble(vals[0]);\n\t\t \t}\n\t\t }\n\t\t }\n\t\t reader.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (MalformedURLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "7c9abbb4f75152482d91a92f17ed0c3d", "score": "0.674589", "text": "public double get_distance(double[] neuron_1, double[] neuron_2) {\n\n return StrictMath.sqrt(euclidean(neuron_1, neuron_2));\n\n }", "title": "" }, { "docid": "401cd46cffc335a4cc57cba3d19b8cff", "score": "0.67338395", "text": "protected int getDistance(int x1, int y1, int x2, int y2) {\n \t\t//while this returns a double we don't need to deal with decimals for our purposes\n \t\tint distance = (int) Math.sqrt( Math.pow((x2 - x1), 2) + Math.pow( (y2-y1), 2));\n \n \t\treturn distance;\n \t}", "title": "" }, { "docid": "ccf5ad5cfd6bc20dbb6c56b5fb527e31", "score": "0.67156017", "text": "static public double calcDistance(GpsPoint start, GpsPoint end) {\n\t\tdouble distanceInM = GeoDesy.distanceCalculationGEODESY((float)start.getLatitude(), (float)start.getLongitude(),\n\t\t\t\t(float)end.getLatitude(), (float)end.getLongitude());\n\t\treturn distanceInM;\n\t}", "title": "" }, { "docid": "b83cf8c8b85b81e8047676d50a3305c5", "score": "0.6714715", "text": "public static double distanceInKilometers(double lat1, double lon1, double lat2, double lon2) {\r\n\r\n\t\tdouble lat1r = Math.toRadians(lat1);\r\n\t\tdouble lon1r = Math.toRadians(lon1);\r\n\t\tdouble lat2r = Math.toRadians(lat2);\r\n\t\tdouble lon2r = Math.toRadians(lon2);\r\n\r\n\t\tdouble sum1 = Math.sin(lat1r) * Math.sin(lat2r);\r\n\r\n\t\tdouble deltaLon = Math.abs(lon1r - lon2r);\r\n\t\tdouble sum2 = Math.cos(lat1r) * Math.cos(lat2r) * Math.cos(deltaLon);\r\n\r\n\t\tdouble centralAngle = Math.acos(sum1 + sum2);\r\n\r\n\t\t// Radius of Earth: 6378.1 kilometers\r\n\t\tdouble distance = centralAngle * 6378.1;\r\n\t\treturn distance;\r\n\t}", "title": "" }, { "docid": "62887e7cdeb2059f5ce988053fb8d8f4", "score": "0.671153", "text": "private Double distance(GpsPosition from, GpsPosition to) {\n\t\t\n\t\tfinal int R = 6371; // radius of the earth\n double longDist = Math.toRadians(to.getLongitude() - from.getLongitude());\n double latDist = Math.toRadians(to.getLatitude() - from.getLatitude());\n double a = Math.pow(Math.sin(latDist / 2), 2)\n + Math.cos(Math.toRadians(from.getLatitude())) * Math.cos(Math.toRadians(to.getLatitude()))\n * Math.pow(Math.sin(longDist /2), 2);\n double distance = R * 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\n // elevation is in meters so we need to divide by 1000 to convert to Kilometers\n double height = (from.getElevation() - to.getElevation()) / 1000;\n\n return Math.sqrt(Math.pow(distance, 2) + Math.pow(height, 2));\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "ae478afb7fb71306377e92e6a3c7e564", "score": "0.6711084", "text": "private double calculateDistance(CityHeuristic start, City end) {\n\t\treturn Math.sqrt(Math.pow(start.getLatitude() - end.getLatitude(), 2)\n\t\t\t\t+ Math.pow(start.getLongitude() - end.getLongitude(), 2));\n\t}", "title": "" }, { "docid": "b032750911a99a03f0d3cb260722a1b7", "score": "0.6710386", "text": "public double distanceTo(final Location otherNode) {\n return shortestPathTo(otherNode, new HashSet<>());\n }", "title": "" }, { "docid": "c25485fd294d151de53010e6d36028a1", "score": "0.670657", "text": "public static double computeDLat(double lat1, double lat2) {\n //same side of equator\n\n //plane sailing\n if (lat1 - lat2 == 0) {\n return 0;\n }\n\n //both northerly\n if (lat1 >= 0 & lat2 >= 0) {\n return -(lat1 - lat2) * 60;\n }\n //both southerly\n if (lat1 < 0 & lat2 < 0) {\n return -(lat1 - lat2) * 60;\n }\n\n //opposite sides of equator\n if (lat1 >= 0) {\n //heading south\n return -(Math.abs(lat1) + Math.abs(lat2));\n } else {\n //heading north\n return (Math.abs(lat1) + Math.abs(lat2));\n }\n }", "title": "" }, { "docid": "7b2161bbfb0cd9e31b27c0aa377c04a1", "score": "0.66966105", "text": "public static double distance (double x0, double y0, double x1, double y1){\n double dx = x1 - x0;\n double dy = y1 - y0;\n \n double temp = Math.pow(dx,2) + Math.pow(dy,2);\n \n \n return Math.sqrt(temp);\n\n \n }", "title": "" }, { "docid": "2f826c2857486150a044f7f70ec7e4a9", "score": "0.6684937", "text": "public static double localDistanceInKm(GeoPosition a, GeoPosition b){\n\t\tdouble distanceX = 111.3*(a.getLatitude()-b.getLatitude());\n\t\tdouble distanceY = 111.3*Math.cos(Math.toRadians((a.getLatitude()+b.getLatitude())/2))*(a.getLongitude()-b.getLongitude());\n\t\t\n\t\treturn Math.sqrt(Math.pow(distanceX, 2)+Math.pow(distanceY, 2));\n\t}", "title": "" }, { "docid": "d0e3848a046ef69cd2c8dc4c1dd64e99", "score": "0.6684736", "text": "public static double distanceSq(double latitude1, double longitude1, double latitude2, double longitude2) {\n latitude2 -= latitude1;\n longitude2 -= longitude1;\n return latitude2 * latitude2 + longitude2 * longitude2;\n }", "title": "" }, { "docid": "9dfef1cf6276df43df9daf03733cebeb", "score": "0.6665539", "text": "public static double distanceH(Point2D.Double location1,\n\t\t\tPoint2D.Double location2) {\n\t\treturn distanceH(location1.x, location1.y, location2.x, location2.y);\n\t}", "title": "" }, { "docid": "4f87f2ed848480a3d93d8cbd1bdb92f1", "score": "0.6664648", "text": "private double getDistance(double[] first, double[] second) {\n\t\tdouble distance = 0;\r\n\r\n\t\tswitch(distanceMeasure){\r\n\r\n\t\tcase ABS_RELATIVE:\r\n\t\t\tfor (int i = 0; i < this.numAttributes; i++) { \r\n\t\t\t\tdistance += Math.abs(first[i] - second[i]) / (maxTrain[i] - minTrain[i]);\r\n\t\t\t}\r\n\r\n\t\tcase EUCLIDIAN:\r\n\t\t\tfor (int i = 0; i < this.numAttributes; i++) { \r\n\t\t\t\tdistance += Math.pow(first[i] - second[i], 2);\r\n\t\t\t}\r\n\t\t\tdistance = Math.sqrt(distance);\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\r\n\t\treturn distance;\r\n\t}", "title": "" }, { "docid": "0d9627c449b2264a2080cfb31140b432", "score": "0.665747", "text": "public double distance(int x1, int x2, int y1, int y2){\n\t\tdouble value1 = Math.pow(x1 - x2, 2);\n\t\tdouble value2 = Math.pow(y1 - y2, 2);\n\t\tdouble dst = Math.sqrt(value1+value2);\n\t\treturn dst;\n\t}", "title": "" }, { "docid": "205088157eb41450e72de18b4c838d71", "score": "0.6649239", "text": "public static double distanceC(double lat1, double lon1, double lat2,\n\t\t\tdouble lon2) {\n\t\tdouble eRadius = (metric ? earthRadius : earthRadiusMiles);\n\t\tdouble d = Math.acos(Math.sin(Math.toRadians(lat1))\n\t\t\t\t* Math.sin(Math.toRadians(lat2))\n\t\t\t\t+ Math.cos(Math.toRadians(lat1))\n\t\t\t\t* Math.cos(Math.toRadians(lat2))\n\t\t\t\t* Math.cos(Math.toRadians(lon2 - lon1)))\n\t\t\t\t* eRadius;\n\t\treturn d;\n\t}", "title": "" }, { "docid": "03430429434a62270175742a03244803", "score": "0.66442275", "text": "private double distance(double point1, double point2)\n {\n return (Math.sqrt(Math.pow(point1 - point2, 2)));\n }", "title": "" }, { "docid": "553bb02b06419e8ff93047e62c214956", "score": "0.664389", "text": "public static double distance(int x0, int y0, int x1, int y1) {\r\n // TODO\r\n \tdouble d = Math.sqrt((Math.pow(x1-x0, 2)+Math.pow(y1-y0, 2)));\r\n return d;\r\n }", "title": "" }, { "docid": "7a3bdcb0452eda6bab7f5948b7d8169f", "score": "0.6639912", "text": "private int calculateDistanceBetween(int firstX, int firstY, int secondX, int secondY) {\n return Math.abs(firstX - secondX) + Math.abs(firstY - secondY);\n }", "title": "" }, { "docid": "74927b1e4a78399803fa98909c2b2f42", "score": "0.66069084", "text": "private void calculateDistances() {\n\t\tGridPoint firstLoc = null;\n\t\tGridPoint secondLoc = null;\n\t\tif (vehicle.isCar()) {\n\t\t\tfirstLoc = firstSpace.getLocation();\n\t\t\tsecondLoc = secondSpace.getLocation();\n\t\t} else {\n\t\t\tfirstLoc = grid.getLocation(firstStop);\n\t\t\tsecondLoc = grid.getLocation(secondStop);\n\t\t}\n\n\t\twalkingDistance = grid.getDistance(from, firstLoc) + grid.getDistance(to, secondLoc);\n\t\ttravelDistance = grid.getDistance(firstLoc, secondLoc);\n\t}", "title": "" }, { "docid": "0011d8670964a08bb985298fbecb3e8f", "score": "0.66037923", "text": "public static final int calculateDistance (Coordinate pos1, Coordinate pos2) {\n return Math.abs(pos1.getX() - pos2.getX()) + Math.abs(pos1.getY() - pos2.getY());\n }", "title": "" }, { "docid": "04b7ece5d34bf8fda0d82c977aa48680", "score": "0.65736806", "text": "private double calculateDistance(Position posOne, Position posTwo) {\n\n return Math.sqrt( ((posTwo.getX() - posOne.getX()) * (posTwo.getX() - posOne.getX())) +\n ((posTwo.getY() - posOne.getY())* (posTwo.getY() - posOne.getY())) );\n }", "title": "" }, { "docid": "815a6f64456ca1df4d7544a3ccf6d8c1", "score": "0.65716743", "text": "public double distance(MyPoint another) {\n\t int xDiff = this.x - another.x;\n\t int yDiff = this.y - another.y;\n\t return Math.sqrt(xDiff*xDiff + yDiff*yDiff);\n\t \n\t}", "title": "" }, { "docid": "cc677e93d358442586cc6f91c1f5d25b", "score": "0.65627325", "text": "private static double distance(\n double lat1, double lat2, double lon1, double lon2, double el1, double el2) {\n\n final int R = 6371; // Radius of the earth\n\n double latDistance = Math.toRadians(lat2 - lat1);\n double lonDistance = Math.toRadians(lon2 - lon1);\n double a =\n Math.sin(latDistance / 2) * Math.sin(latDistance / 2)\n + Math.cos(Math.toRadians(lat1))\n * Math.cos(Math.toRadians(lat2))\n * Math.sin(lonDistance / 2)\n * Math.sin(lonDistance / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double distance = R * c;\n\n double height = el1 - el2;\n\n distance = Math.pow(distance, 2) + Math.pow(height, 2);\n\n return Math.sqrt(distance);\n }", "title": "" } ]
0bc5aeb13bfbf1ac289ff3ae9b7cdc73
Helper function to check whether to abandon retries in ZooKeeper AsyncCallback functions
[ { "docid": "2f6076507ee05568bee2cefbd7b2002b", "score": "0.6671404", "text": "private boolean needAbandonRetries(int statusCode, String action) {\n if (statusCode == KeeperException.Code.SESSIONEXPIRED.intValue()) {\n LOG.error(\"ZK session expired. Master is expected to shut down. Abandoning retries for \"\n + \"action=\" + action);\n return true;\n }\n return false;\n }", "title": "" } ]
[ { "docid": "1b8319fb69a704e85679408e24d3f277", "score": "0.6252885", "text": "public boolean isRetry();", "title": "" }, { "docid": "14be586c24555d69fa5b6179fec601fe", "score": "0.6109242", "text": "@Override\n\t\tpublic boolean isRetry() { return false; }", "title": "" }, { "docid": "1036fdc9681321e347488b9403df85ed", "score": "0.58002836", "text": "@Override\n\t\tpublic boolean isRetry() { return true; }", "title": "" }, { "docid": "764abd820e52edf97ad0bbb23329d21e", "score": "0.57553566", "text": "private void sendCancelRpcCall(int numberRetries) {\n\t}", "title": "" }, { "docid": "03ce23520102ed876a100fe94a06ff51", "score": "0.5699401", "text": "public interface RetryCallback {\n void retry();\n}", "title": "" }, { "docid": "020575416c20fa7d7abdc7603d2e1b52", "score": "0.5659528", "text": "public boolean shouldRetryOnTimeout() {\r\n return configuration.shouldRetryOnTimeout();\r\n }", "title": "" }, { "docid": "b90a5a62129726e2d022748d1b564109", "score": "0.56273866", "text": "boolean allowRetry(int retry, long startTimeOfExecution);", "title": "" }, { "docid": "1cab967137e2a35b997d430b359ad089", "score": "0.5587468", "text": "@Override\r\n\tpublic void consumeNextAsyncInterrupt() {\r\n\t\tthis.hasFailedAccessAttempt = false;\r\n\t}", "title": "" }, { "docid": "7caf41858f562ddbffd50a01dbea1ce7", "score": "0.5564258", "text": "boolean doRetry() {\n synchronized (mHandler) {\n boolean doRetry = currentRetry < MAX_RETRIES;\n boolean futureSync = mHandler.hasMessages(0);\n\n if (doRetry && !futureSync) {\n currentRetry++;\n mHandler.postDelayed(getNewRunnable(), currentRetry * 15_000);\n }\n\n return mHandler.hasMessages(0);\n }\n }", "title": "" }, { "docid": "bcb9d4e55d2056c9391e5b2816b7546f", "score": "0.5533968", "text": "@Override\n\tpublic boolean retry(ITestResult result) \n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "475380c342eb6c2a728fcbc917f2c30c", "score": "0.5526354", "text": "public boolean needTryAgain() {\n boolean z = this.mRetryConnectCallAppAbilityCount < 6;\n this.mRetryConnectCallAppAbilityCount++;\n return z;\n }", "title": "" }, { "docid": "4c75cc2feebd90d5da2d1ccdd76a1109", "score": "0.5516872", "text": "protected boolean reallyCancel() throws Exception { return true; }", "title": "" }, { "docid": "8772f18059d61cc27e23f22bbf250f1b", "score": "0.5495268", "text": "boolean shouldRetry(Reply reply) {\n int numErrors = reply.getNumErrors();\n if (numErrors == 0) {\n return false;\n }\n for (int i = 0; i < numErrors; ++i) {\n if (!retryPolicy.canRetry(reply.getError(i).getCode())) {\n return false;\n }\n }\n synchronized (monitor) {\n return !destroyed;\n }\n }", "title": "" }, { "docid": "df372e2470ff65f9304a74ff2ac8c2d3", "score": "0.54726523", "text": "default boolean pollOnExecutionFailed() {\n return false;\n }", "title": "" }, { "docid": "3b169e0655012d66a202ea5a6d56bc7c", "score": "0.5446274", "text": "boolean hasMaximumBackoff();", "title": "" }, { "docid": "5790bbd14194dd363a1c80b25feee3df", "score": "0.543836", "text": "public void testHttpFailureRetries() {\n delayTestFinish(RUNASYNC_TIMEOUT);\n runAsync1(0);\n }", "title": "" }, { "docid": "19d8fa9f24a2bfff6b78bcc5bfa80a52", "score": "0.5433405", "text": "@Test\n public void testResetAndCanRetry() {\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n rc.reset();\n\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertTrue(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n assertFalse(rc.attempt());\n }", "title": "" }, { "docid": "760a2e2652d68ff114f9e311bc1aeae6", "score": "0.54319227", "text": "private static boolean isDone0(Object result)\r\n/* 74: */ {\r\n/* 75:110 */ return (result != null) && (result != UNCANCELLABLE);\r\n/* 76: */ }", "title": "" }, { "docid": "934480c7ddc8e5811bbe89191b56907e", "score": "0.5387663", "text": "private boolean shouldRetryGetMaster(int tries, Exception e) {\n if (tries == numRetries - 1) {\n // This was our last chance - don't bother sleeping\n LOG.info(\"getMaster attempt \" + tries + \" of \" + numRetries +\n \" failed; no more retrying.\", e);\n return false;\n }\n LOG.info(\"getMaster attempt \" + tries + \" of \" + numRetries +\n \" failed; retrying after sleep of \" +\n ConnectionUtils.getPauseTime(this.pause, tries), e);\n return true;\n }", "title": "" }, { "docid": "89c375cb058d93ead5a86b3fe3fda729", "score": "0.53650993", "text": "void doRetry();", "title": "" }, { "docid": "604871037700fe01c44bcf4ab2559721", "score": "0.53644073", "text": "synchronized boolean ignoreForRecovery() {\n return ignoreForRecovery;\n }", "title": "" }, { "docid": "0675c110e5c4aad306b51dd6af7233cb", "score": "0.53611636", "text": "boolean fail(int rc) {\n if (complete.compareAndSet(false, true)) {\n this.rc = rc;\n submitCallback(rc);\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "6a037ae2216ab02604d6ceef24389f45", "score": "0.5346183", "text": "public boolean isRetried ()\r\n {\r\n return hasFailed () && retried_;\r\n }", "title": "" }, { "docid": "d18a57fdf4fcd5bb080311dfce73a152", "score": "0.5338472", "text": "public abstract void isCancel(long ms);", "title": "" }, { "docid": "c9f44656b572802d70fc002f81510de5", "score": "0.53371006", "text": "public Boolean shouldAbandon() {\n return false;\n }", "title": "" }, { "docid": "09f32aa7eedd9ed8b1dd23c5e36367c5", "score": "0.5336952", "text": "@Override\r\n\tpublic boolean hasPendingAsyncInterrupt() {\r\n\t\treturn this.hasFailedAccessAttempt && this.tapeIo != null;\r\n\t}", "title": "" }, { "docid": "f05d437b27699ff921e78a7a9b0353a6", "score": "0.53256136", "text": "@Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n mqttOnline = false;\n }", "title": "" }, { "docid": "753d780075523031938e82f4b6e830e3", "score": "0.53217024", "text": "@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }", "title": "" }, { "docid": "a39a5d13639dbe09d5d9982642647e8f", "score": "0.52560914", "text": "public boolean isCancelled()\r\n/* 54: */ {\r\n/* 55: 92 */ return isCancelled0(this.result);\r\n/* 56: */ }", "title": "" }, { "docid": "bdbadf3eb90be6c99cb9716c5ccf1e76", "score": "0.5241612", "text": "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "title": "" }, { "docid": "bdbadf3eb90be6c99cb9716c5ccf1e76", "score": "0.5241612", "text": "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "title": "" }, { "docid": "bdbadf3eb90be6c99cb9716c5ccf1e76", "score": "0.5241612", "text": "@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }", "title": "" }, { "docid": "e40c9c70496b27c0a81a52a0119d3de9", "score": "0.5231654", "text": "private boolean checkRetryPolicy4Next() {\n\t\ttry {\n\t\t\tRetryPolicy policy = BackupService.getInstance().getRetryPolicy(CommonService.RETRY_BACKUP);\n\t\t\tNextScheduleEvent nextScheduleEvent = BackupService.getInstance().getNextScheduleEvent();\n\t\t\tif (nextScheduleEvent != null) {\n\t\t\t\tDate nextDate = nextScheduleEvent.getDate();\n\t\t\t\tjava.util.Calendar incomingBackup = getUTCNow();\n\t\t\t\tincomingBackup.setTimeInMillis(nextDate.getTime());\n\n\t\t\t\tjava.util.Calendar now = getUTCNow();\n\t\t\t\tnow.add(java.util.Calendar.MINUTE, policy.getNearToNextEvent());\n\n\t\t\t\tif (now.after(incomingBackup)) {\n\t\t\t\t\tlogger.debug(\"dealWithMissedBackup() - end with too near to next event\");\n\t\t\t\t\tString time = BackupConverterUtil.dateToString(nextDate);\n\t\t\t\t\tBackupService\n\t\t\t\t\t\t\t.getInstance()\n\t\t\t\t\t\t\t.getNativeFacade()\n\t\t\t\t\t\t\t.addLogActivity(\n\t\t\t\t\t\t\t\t\tConstants.AFRES_AFALOG_WARNING,\n\t\t\t\t\t\t\t\t\tConstants.AFRES_AFJWBS_JOB_RETRY,\n\t\t\t\t\t\t\t\t\tnew String[] {\n\t\t\t\t\t\t\t\t\t\t\tWebServiceMessages.getResource(Constants.RETRYPOLICY_FOR_MISSED_SKIPPED_NEXT, time,\n\t\t\t\t\t\t\t\t\t\t\t\t\tWebServiceMessages.getResource(Constants.RETRYPOLICY_FOR_MISSED)), \"\", \"\", \"\", \"\" });\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ServiceException e) {\n\t\t\tlogger.error(\"dealWithMissedBackup() - end\", e);\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4104e3c872b89b7ebadb6d25a3d435e1", "score": "0.519242", "text": "public boolean retry() {\n return tries++ < MAX_TRY;\n }", "title": "" }, { "docid": "57fd531d7582e00a8f6754281c448cdd", "score": "0.51609135", "text": "void onRetryAuthentication();", "title": "" }, { "docid": "a9ea1d0751e46615af0d67b6086c931d", "score": "0.5152825", "text": "public abstract long retryAfter();", "title": "" }, { "docid": "28937685560b9c600d16e83b2066b0ed", "score": "0.5152684", "text": "@Override\n protected boolean isResponseStatusToRetry(Response response)\n {\n return response.getStatus() / 4 != 100;\n }", "title": "" }, { "docid": "24fb5811bffebce5d0877e38a8a9fbdf", "score": "0.51381886", "text": "private void retry() {\n if (catalog == null) {\n if (--retries < 0) {\n inactive = true;\n pendingRequests.clear();\n log.error(\"Maximum retries exceeded while attempting to load catalog for endpoint \" + discoveryEndpoint\n + \".\\nThis service will be unavailabe.\");\n } else {\n try {\n sleep(RETRY_INTERVAL * 1000);\n _loadCatalog();\n } catch (InterruptedException e) {\n log.warn(\"Thread for loading CDS Hooks catalog for \" + discoveryEndpoint + \"has been interrupted\"\n + \".\\nThis service will be unavailable.\");\n }\n }\n }\n }", "title": "" }, { "docid": "cf521f8082fa58de2b327a3ef211eae0", "score": "0.5127618", "text": "@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}", "title": "" }, { "docid": "b1b2a5ea07cbd6a42cf2d100db1863a9", "score": "0.5117237", "text": "public boolean isIgnoreFailed()\n {\n return ignoreFailed;\n }", "title": "" }, { "docid": "55900c01364f82e26c2cda7b11195e21", "score": "0.51035035", "text": "@Override\n boolean isFailed() {\n return false;\n }", "title": "" }, { "docid": "a9f731aa9f6af6b796fa27437a5ba5b8", "score": "0.51026034", "text": "public boolean isAllowPartialRetryRequests() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "aa7ccecb65df7d0d6ff4a4e033cf36fc", "score": "0.5102131", "text": "public boolean willRetry() {\n return willRetry;\n }", "title": "" }, { "docid": "d15f399949d0d6719e6bd3a561bcdbc4", "score": "0.5093392", "text": "private void noAnswer() {\n\n\t\ttry {\n\t\t\tthis.timeoutTimer.cancel();\n\t\t} catch (IllegalStateException e) {\n\t\t\tSystem.out.println(\"Unable to cancel timer\");\n\t\t}\n\n\t\tthis.timeoutTimer = new Timer();\n\n\t\t// Plus one failed try\n\t\tthis.tries++;\n\n\t\t// too many tries => tell listeners\n\t\tif (this.tries >= new Integer(EPursuit.properties.getProperty(\"maxTries\"))) {\n\t\t\tthis.state=CallState.TIMEOUT;\n\t\t\tfor (CallListener listener : this.listeners) {\n\t\t\t\tlistener.callNotAnswered(this.destination, this.agi);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.state=CallState.RETRY;\n\t\t\t// schedule retry\n\t\t\tthis.timeoutTimer.schedule(new TimerTask() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif (!Call.this.success) {\n\t\t\t\t\t\tCall.this.makeCall();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}, new Long(EPursuit.properties.getProperty(\"retryTime\")));\n\t\t}\n\n\t}", "title": "" }, { "docid": "e0c2f2bbb4c5c522cb71753eb8b0823c", "score": "0.50895727", "text": "private static void checkTimeoutAndRetry() {\n while (true) {\n for (ServerAckWindow window : windowsMap.values()) {\n window.responseCollectorMap.entrySet().stream()\n .filter(entry -> window.timeout(entry.getValue()))\n .forEach(entry -> window.retry(entry.getKey(), entry.getValue()));\n }\n }\n }", "title": "" }, { "docid": "2dc85b6340c94a6dccc72dcaf2e1e204", "score": "0.507034", "text": "public void onTryFails(int currentRetryCount, Exception e) {}", "title": "" }, { "docid": "af9612feb3b14e5d313df1e41c31f1d5", "score": "0.5065185", "text": "@Override\n protected RetryConstraint shouldReRunOnThrowable(@NonNull Throwable throwable, int runCount, int maxRunCount) {\n return RetryConstraint.CANCEL;\n }", "title": "" }, { "docid": "6679171d89736e89639300f3286d6566", "score": "0.5045333", "text": "protected boolean ignoreFailure() {\n return ignoreFailure;\n }", "title": "" }, { "docid": "5e7c63840e1289efd19e92187be9da94", "score": "0.50390786", "text": "private boolean isRetryNeeded(int statusCode, HttpState state, HttpConnection conn) {\n switch (statusCode) {\n case HttpStatus.SC_UNAUTHORIZED:\n case HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED:\n LOG.debug(\"Authorization required\");\n if (doAuthentication) { //process authentication response\n //if the authentication is successful, return the statusCode\n //otherwise, drop through the switch and try again.\n if (processAuthenticationResponse(state, conn)) {\n return false;\n }\n } else { //let the client handle the authenticaiton\n return false;\n }\n break;\n\n case HttpStatus.SC_MOVED_TEMPORARILY:\n case HttpStatus.SC_MOVED_PERMANENTLY:\n case HttpStatus.SC_SEE_OTHER:\n case HttpStatus.SC_TEMPORARY_REDIRECT:\n LOG.debug(\"Redirect required\");\n\n if (!processRedirectResponse(conn)) {\n return false;\n }\n break;\n\n default:\n // neither an unauthorized nor a redirect response\n return false;\n } //end of switch\n\n return true;\n }", "title": "" }, { "docid": "199f435b5a9d4ddebc48fbf9e737918c", "score": "0.50362533", "text": "public boolean willNotBeResurrected() {\n return state == State.FRESH || state == State.ERROR;\n }", "title": "" }, { "docid": "7bec9adcf64f7aedb0dbe231e8b8fa1b", "score": "0.50318426", "text": "private static boolean isCancelled0(Object result)\r\n/* 59: */ {\r\n/* 60: 96 */ return ((result instanceof CauseHolder)) && ((((CauseHolder)result).cause instanceof CancellationException));\r\n/* 61: */ }", "title": "" }, { "docid": "f79e763d80dae5d2d5ded768674c19bb", "score": "0.503016", "text": "@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }", "title": "" }, { "docid": "44c4498b34bb9cc719ffe9e562476dc2", "score": "0.502761", "text": "@Test\n public void timeoutInactiveRequests() throws Exception {\n final Semaphore semaphore = new Semaphore(1);\n final int responseSize = 16;\n RpcHandler handler = new RpcHandler() {\n @Override\n public void receive(\n TransportClient client,\n ByteBuffer message,\n RpcResponseCallback callback) {\n try {\n semaphore.acquire();\n callback.onSuccess(ByteBuffer.allocate(responseSize));\n } catch (InterruptedException e) {\n // do nothing\n }\n }\n\n @Override\n public StreamManager getStreamManager() {\n return defaultManager;\n }\n };\n\n context = new TransportContext(conf, handler);\n server = context.createServer();\n clientFactory = context.createClientFactory();\n TransportClient client = clientFactory.createClient(TestUtils.getLocalHost(), server.getPort());\n\n // First completes quickly (semaphore starts at 1).\n TestCallback callback0 = new TestCallback();\n client.sendRpc(ByteBuffer.allocate(0), callback0);\n callback0.latch.await();\n assertEquals(responseSize, callback0.successLength);\n\n // Second times out after 10 seconds, with slack. Must be IOException.\n TestCallback callback1 = new TestCallback();\n client.sendRpc(ByteBuffer.allocate(0), callback1);\n callback1.latch.await(60, TimeUnit.SECONDS);\n assertNotNull(callback1.failure);\n assertTrue(callback1.failure instanceof IOException);\n\n semaphore.release();\n }", "title": "" }, { "docid": "1cbda90ea3ccebc53b44b8ac82067498", "score": "0.5019826", "text": "boolean isCancelled();", "title": "" }, { "docid": "98d08adcf13b55a6421a839bfe490291", "score": "0.49961394", "text": "@Override\n public void onRetry(int retryNo) {\n }", "title": "" }, { "docid": "3f92d4d23545bb3457a36b59562899a1", "score": "0.4982046", "text": "public void testCheckAndRestoreIfNeeded_failure()\n {\n // SETUP\n String host = \"localhost\";\n int port = 1234;\n String service = \"doesn'texist\";\n MockCacheEventLogger cacheEventLogger = new MockCacheEventLogger();\n\n RegistryKeepAliveRunner runner = new RegistryKeepAliveRunner( host, port, service );\n runner.setCacheEventLogger( cacheEventLogger );\n\n // DO WORK\n runner.checkAndRestoreIfNeeded();\n\n // VERIFY\n // 1 for the lookup, one for the rebind since the server isn't created yet\n assertEquals( \"error tally\", 2, cacheEventLogger.errorEventCalls );\n //System.out.println( cacheEventLogger.errorMessages );\n }", "title": "" }, { "docid": "57f09bebf59f95a1aac33889ef2d7054", "score": "0.496533", "text": "Mono<ShouldRetryResult> shouldRetry(Exception e);", "title": "" }, { "docid": "9f4028b3ac5d7c1384491d028773a084", "score": "0.49628168", "text": "public boolean isAbortable();", "title": "" }, { "docid": "938c8baf18568927fb1b209aa6ed3ca7", "score": "0.49503994", "text": "public void checkCancel() throws CancellationException;", "title": "" }, { "docid": "217c8595d5c19e82ddfd768c2af11a54", "score": "0.49382374", "text": "@Test\n public void testRetryCountNoRetries() {\n assertEquals(0, rc.getAttempts());\n }", "title": "" }, { "docid": "bc52754d11705f6e97c03e271d23b688", "score": "0.49287096", "text": "public void connectCallAppAbilityFail() {\n if (needTryAgain()) {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: retry.\", new Object[0]);\n if (this.mHandler == null) {\n this.mHandler = createHandler();\n }\n if (this.mHandler != null) {\n try {\n this.mHandler.sendEvent(InnerEvent.get(1000, 0, null), DELAYED_TIME_RETRY_CONNECT_INCALL_ABILITY, EventHandler.Priority.IMMEDIATE);\n } catch (IllegalArgumentException unused) {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: got IllegalArgumentException.\", new Object[0]);\n }\n }\n } else {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: reached max retry counts.\", new Object[0]);\n disconnectLiveCalls();\n this.mRetryConnectCallAppAbilityCount = 0;\n releaseResource();\n }\n }", "title": "" }, { "docid": "e1d429d5292e995dce762e0205fff8cf", "score": "0.4926903", "text": "public boolean isCancelled();", "title": "" }, { "docid": "e1d429d5292e995dce762e0205fff8cf", "score": "0.4926903", "text": "public boolean isCancelled();", "title": "" }, { "docid": "e1d429d5292e995dce762e0205fff8cf", "score": "0.4926903", "text": "public boolean isCancelled();", "title": "" }, { "docid": "fd02e2573e004c3c9af080820593dfa6", "score": "0.49231836", "text": "private void checkNoOldClusterstate(final SolrZkClient zkClient) throws InterruptedException {\n try {\n if (!zkClient.exists(ZkStateReader.UNSUPPORTED_CLUSTER_STATE, true)) {\n return;\n }\n final byte[] data =\n zkClient.getData(ZkStateReader.UNSUPPORTED_CLUSTER_STATE, null, null, true);\n\n if (Arrays.equals(\"{}\".getBytes(StandardCharsets.UTF_8), data)) {\n // Empty json. This log will only occur once.\n log.warn(\n \"{} no longer supported starting with Solr 9. Found empty file on Zookeeper, deleting it.\",\n ZkStateReader.UNSUPPORTED_CLUSTER_STATE);\n zkClient.delete(ZkStateReader.UNSUPPORTED_CLUSTER_STATE, -1, true);\n } else {\n // /clusterstate.json not empty: refuse to start but do not automatically delete. A bit of a\n // pain but user shouldn't have older collections at this stage anyway.\n String message =\n ZkStateReader.UNSUPPORTED_CLUSTER_STATE\n + \" no longer supported starting with Solr 9. \"\n + \"It is present and not empty. Cannot start Solr. Please first migrate collections to stateFormat=2 using an \"\n + \"older version of Solr or if you don't care about the data then delete the file from \"\n + \"Zookeeper using a command line tool, for example: bin/solr zk rm /clusterstate.json -z host:port\";\n log.error(message);\n throw new SolrException(SolrException.ErrorCode.INVALID_STATE, message);\n }\n } catch (KeeperException.NoNodeException e) {\n // N instances starting at the same time could attempt to delete the file, resulting in N-1\n // NoNodeExceptions.\n // If we get to this point, then it's OK to suppress the exception and continue assuming\n // success.\n log.debug(\n \"NoNodeException attempting to delete {}. Another instance must have deleted it already\",\n ZkStateReader.UNSUPPORTED_CLUSTER_STATE,\n e);\n } catch (KeeperException e) {\n // Convert checked exception to one acceptable by the caller (see also init() further down)\n log.error(\"\", e);\n throw new ZooKeeperException(SolrException.ErrorCode.SERVER_ERROR, \"\", e);\n }\n }", "title": "" }, { "docid": "dbb459fdd821f59fd7fdba372381b872", "score": "0.49181643", "text": "public boolean hasStopped(int attempts, long timeout, TimeUnit timeUnit) {\n try {\n HttpResponse httpResponse = sendRequest(request().withMethod(\"PUT\").withPath(calculatePath(\"status\")), true, false);\n if (httpResponse != null && httpResponse.getStatusCode() == HttpStatusCode.OK_200.code()) {\n if (attempts <= 0) {\n return false;\n } else {\n try {\n timeUnit.sleep(timeout);\n } catch (InterruptedException e) {\n // ignore interrupted exception\n }\n return hasStopped(attempts - 1, timeout, timeUnit);\n }\n } else {\n return true;\n }\n } catch (SocketConnectionException | IllegalStateException sce) {\n return true;\n }\n }", "title": "" }, { "docid": "1a900e6255a129adc3e55436953168b0", "score": "0.4914412", "text": "@Override\r\n public void onRetry(int retryNo) {\n }", "title": "" }, { "docid": "4a163dea36a7b9a7a595a5e8cd83b043", "score": "0.49061626", "text": "@Override\n public void onConnectFailed()\n {\n Log.e(\"Dudu_SDK\",\n \"获取NS 业务服务器失败...onConnectFailed ... reconnect()...5 seconds later ...\");\n reconnect();\n if (connectCallBack != null)\n connectCallBack.onConnectFailed();\n }", "title": "" }, { "docid": "9c2aa2ebcd18b7d1198c1929f2baba4a", "score": "0.49052227", "text": "public native void setDefaultRetryTimeout (long retryTimeout) throws IOException,IllegalArgumentException;", "title": "" }, { "docid": "d6da6b804965ba6e4d032682179f8360", "score": "0.49051204", "text": "public boolean zzasp() {\n this.f603zF--;\n if (this.f603zF > 0) {\n return false;\n }\n if (this.f603zF < 0) {\n Log.w(\"GoogleApiClientConnecting\", this.f600zA.f682yW.zzatb());\n Log.wtf(\"GoogleApiClientConnecting\", \"GoogleApiClient received too many callbacks for the given step. Clients may be in an unexpected state; GoogleApiClient will now disconnect.\", new Exception());\n zzf(new ConnectionResult(8, null));\n return false;\n } else if (this.f618zq == null) {\n return true;\n } else {\n this.f600zA.f674AB = this.f601zD;\n zzf(this.f618zq);\n return false;\n }\n }", "title": "" }, { "docid": "8ad1eba2ef063e643f7a54664b01a02a", "score": "0.48946717", "text": "public abstract void isASRRejection(long ms);", "title": "" }, { "docid": "80d7210bfb5df58881f7fa9cb540286b", "score": "0.48941097", "text": "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "9a93588964736e4a062ebd5bd1198bd1", "score": "0.4892805", "text": "private boolean isCallback(IMethodResult result)\n\t{\n\t\treturn (result != null && result.hasCallback());\n\t}", "title": "" }, { "docid": "d01ef7ef0345f281bb9c460dd0493953", "score": "0.48828724", "text": "public abstract void isTimeout(long ms);", "title": "" }, { "docid": "1664e9d7c33c079926044b493522b02d", "score": "0.4881171", "text": "private boolean mustTryConnection(int iteration) {\n\t\t\n\t\t//the goal is to not to retry so often when several attempts have been made\n\t\t//the first 3 attemps, will not retry (give time for the system to startup)\n\t\tif (iteration < ITERATIONS_WITHOUT_RETRIES) {\n\t\t\t//here it will enter with iteration 0..2\n\t\t\treturn false;\n\t\t}\n\t\tif (iteration < ITERATIONS_WITH_NORMAL_RATE) {\n\t\t\t//Here it will enter with iteration 3..40\n //Retry every 2 attempts.\n\t\t\t//in iteration 6, 8, 10, 12, 14\n\t\t\treturn iteration % STEPS_AT_NORMAL_RATE == 0;\n\t\t}\n\t\t//between 15 and 40 attempts, only retry every 10 steps\n\t\tif (iteration < ITERATIONS_WITH_MEDIUM_RATE) {\n\t\t\t//here it will enter with iteration 10, 20, 30\n\t\t\treturn iteration % STEPS_AT_MEDIUM_RATE == 0;\n\t\t}\n\t\t\n\t\t//after 40 attempts, retry every 100 * MIN_INTERVAL\n\t\treturn iteration % STEPS_AT_SLOW_RATE == 0;\n\t}", "title": "" }, { "docid": "551a6dadd803c2e1dcfc03725f8142f7", "score": "0.4880151", "text": "@Override\n public void onFailure(Call call, IOException e) {\n call.cancel();\n System.out.println(\"FAILED\"+ e.getMessage());\n }", "title": "" }, { "docid": "19b8bba8266c18849ebcc24754aa557f", "score": "0.48800793", "text": "boolean hasMinimumBackoff();", "title": "" }, { "docid": "13859173743768870ec5b24faa0f442e", "score": "0.4876373", "text": "@Test\n public void testDoNotRetryInFlightWork() throws Exception {\n CountDownLatch oneWorkerCreated = factory.getRunCountLatch(1);\n CountDownLatch twoWorkersCreated = factory.getRunCountLatch(2);\n LogFile logFile = tracker.open(\"foo\", \"/biz/baz/%s.log\", DateTime.now());\n manager.start(); //start manager first so it can register to receive notifications\n tracker.written(logFile);\n awaitLatch(oneWorkerCreated); //wait initial worker\n //sigh. This is a slow test because we have to wait for the retry job to get not get scheduled.\n if (twoWorkersCreated.await(2 * RETRY_INTERVAL_SECONDS, TimeUnit.SECONDS)) {\n fail(\"Retry was scheduled for in-flight task!\");\n }\n }", "title": "" }, { "docid": "f784a6d0270411b451d344ae9286f396", "score": "0.48635945", "text": "@Override\r\n public void onRetry(int retryNo) {\n }", "title": "" }, { "docid": "a9ea984a9a2520bc2fe9a2ec38e6f8c6", "score": "0.4862764", "text": "@Override\n public void onRetry ( int retryNo){\n }", "title": "" }, { "docid": "a9ea984a9a2520bc2fe9a2ec38e6f8c6", "score": "0.4862764", "text": "@Override\n public void onRetry ( int retryNo){\n }", "title": "" }, { "docid": "a9ea984a9a2520bc2fe9a2ec38e6f8c6", "score": "0.4862764", "text": "@Override\n public void onRetry ( int retryNo){\n }", "title": "" }, { "docid": "325264ba40e2bd0fc656bc7f735e01ce", "score": "0.48611304", "text": "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "f9f779a0248c34ef49eca795a715078c", "score": "0.48506424", "text": "public void testConnecitonFails() {\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tConnection c = new Connection(\"localhost\", 4444, this, this);\n\t\t\t// this connection should fail... wait for that:\n\t\t\tfor (int i=0; i<10; i++) {\n\t\t\t\t// if we have a result before our max-wait-time, break\n\t\t\t\tif (connectionStatus != null)\n\t\t\t\t\tbreak;\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\tassertTrue(connectionStatus != null && connectionStatus.booleanValue() == false);\n\t\t} catch (Exception e) {\n\t\t\tassertTrue(\"should not get an exception\", false);\n\t\t}\n\t}", "title": "" }, { "docid": "cf1d2dcfb4e4d31cb50c09389a932b6f", "score": "0.4849989", "text": "private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ i = 5000L;\n/* */ }\n/* */ \n/* 178 */ long j = System.currentTimeMillis();\n/* */ \n/* 180 */ if (j > this.timeLastActivityMs + i)\n/* */ {\n/* 182 */ terminate(new InterruptedException(\"Timeout \" + i));\n/* */ }\n/* */ } \n/* */ }", "title": "" }, { "docid": "4d7edab42f7bae81d58e40ca85161f0c", "score": "0.4849638", "text": "public _cls_cs_retries0() {\r\n}", "title": "" }, { "docid": "6790688ecc2ad8c0f11c54bafa86f248", "score": "0.48475444", "text": "public boolean retry(ITestResult result) {\n\t\tif (counter < retryMaxLimit) {\n\t\t\tcounter++;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "da019001e807b83dd80585150d6c95ed", "score": "0.48473477", "text": "private boolean queueFirstServerIfDown(List<URI> allServers) {\n if (allServers.size() < 2) {\n return false;\n }\n URI uri = allServers.get(0);\n HttpGet httpGet = new HttpGet(uri);\n\n RequestConfig config = RequestConfig.custom()\n .setConnectTimeout((int) PING_REQUEST_TIMEOUT.toMillis())\n .setConnectionRequestTimeout((int) PING_REQUEST_TIMEOUT.toMillis())\n .setSocketTimeout((int) PING_REQUEST_TIMEOUT.toMillis()).build();\n httpGet.setConfig(config);\n\n try (CloseableHttpResponse response = client.execute(httpGet)) {\n if (response.getStatusLine().getStatusCode() == 200) {\n return false;\n }\n\n } catch (IOException e) {\n // We ignore this, if server is restarting this might happen.\n }\n // Some error happened, move this server to the back. The other servers should be running.\n Collections.rotate(allServers, -1);\n return true;\n }", "title": "" }, { "docid": "a4371372bc69d872995d75bb307321bd", "score": "0.48404312", "text": "protected boolean closeSessionOnUnrecoverableError() {\n return false;\n }", "title": "" }, { "docid": "de1a6896af63a9b580b44c1cb74deb0d", "score": "0.4837732", "text": "private void checkRetries(final int counter) throws InterruptedException {\n\t\tif (counter > retries) {\n\t\t\tthrow new IllegalStateException(\"Remote server did not started correctly\");\n\t\t}\n\t\tThread.sleep(2000);\n\t}", "title": "" }, { "docid": "7b042e2d0da6072a0d365899efdad40a", "score": "0.4836346", "text": "@Override\n\t\t\tpublic void onFail() {\n\t\t\t\tcallBack.onCheckUpdate(-1, null); // 检查出错\n\t\t\t}", "title": "" }, { "docid": "50e504d140b75ab57caaa5a82e62396c", "score": "0.4833149", "text": "public boolean wasOkay();", "title": "" }, { "docid": "3f07cb39b15b3f54ff65df0f4fc92f9b", "score": "0.48314044", "text": "@Override public final boolean onExceptionalCompletion(Throwable ex, CountedCompleter caller ) {\n if( _nleft != null ) _nleft.cancel(true); _nleft = null;\n if( _nrite != null ) _nrite.cancel(true); _nrite = null;\n _left = null;\n _rite = null;\n return super.onExceptionalCompletion(ex, caller);\n }", "title": "" }, { "docid": "4ec78defbaef2624586918d16f19ca9a", "score": "0.48227543", "text": "public interface OnRetryListener {\n void onRetry();\n}", "title": "" }, { "docid": "72327eea0243ec62dc0f51ac978862de", "score": "0.4820114", "text": "@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tSC.say(\"服务器连接已中断,请重新登录!\");\n\t\t\t}", "title": "" }, { "docid": "6ab81f9317e41533f1f3b09dad85fb15", "score": "0.48187083", "text": "@Override\n public void onFailure(final Throwable t) {\n LOG.error(\"Failed to update cup status\", t);\n resetCupData();\n notifyCallback(false);\n }", "title": "" }, { "docid": "ed562315c63fdbf3008875086170b6ab", "score": "0.48122963", "text": "@Override\r\n public void onRetry(int retryNo) {\n }", "title": "" }, { "docid": "ed562315c63fdbf3008875086170b6ab", "score": "0.48122963", "text": "@Override\r\n public void onRetry(int retryNo) {\n }", "title": "" }, { "docid": "ed562315c63fdbf3008875086170b6ab", "score": "0.48122963", "text": "@Override\r\n public void onRetry(int retryNo) {\n }", "title": "" }, { "docid": "2b7f0817c2ae21eb7add1bb60152e81e", "score": "0.48081753", "text": "@Override\n public void onFailure(@NonNull Exception e) {\n resultCallback.onResultCallback(Result.retry());\n }", "title": "" } ]
87687bb5edaec1414452dd645e56606c
Method checks 13digit ISBN
[ { "docid": "05fb6fbfc3f17ed7a4d9dd979e0d56e0", "score": "0.8192909", "text": "private static boolean CheckISBN13 (String isbn) {\r\n int sum = 0;\r\n int nValue;\r\n\r\n for (int n = 0; n < 13; n++) {\r\n nValue = Integer.parseInt(isbn.substring(n, n+1));\r\n if (n % 2 == 0) {\r\n sum += nValue;\r\n } else {\r\n sum += nValue *3;\r\n }\r\n }\r\n return (sum % 10 == 0);\r\n }", "title": "" } ]
[ { "docid": "15a02944475d809683580b5615fb718f", "score": "0.80088913", "text": "private boolean isValidIsbn(){\r\n String textValue = txtISBN.getText();\r\n if (!FieldValidator.isEmpty(textValue) && FieldValidator.isNumericOnly(textValue) && textValue.length() == 13) \r\n return true; \r\n return false;\r\n }", "title": "" }, { "docid": "270d1e655568c21f29f07608a88cc614", "score": "0.7822208", "text": "private static boolean CheckISBN10 (String isbn) {\r\n int sum = 0;\r\n String nStr;\r\n\r\n for (int n=0; n < 10; n++) {\r\n nStr= isbn.substring(n, n+1);\r\n if (n < 9 || nStr != \"X\") {\r\n sum += Integer.parseInt(nStr) * (10-n);\r\n } else {\r\n sum += 10;\r\n }\r\n }\r\n return (sum % 11 == 0);\r\n }", "title": "" }, { "docid": "c34de6e3b3d0872adc766c2c942b7840", "score": "0.7299816", "text": "public boolean isValidISBN(String isbn) {\n isbn = isbn.replace(\"-\", \"\");\n int prefix = Integer.parseInt(isbn.substring(0,3));\n if (prefix != 978 && prefix != 979)\n return false;\n else {\n int sum = 0, currentMult = 1;\n for(int i = 0; i < isbn.length(); i++) {\n int val = Integer.parseInt(\"\" + isbn.charAt(i));\n sum += currentMult * val;\n currentMult = currentMult == 1 ? 3 : 1;\n }\n return sum % 10 == 0;\n }\n }", "title": "" }, { "docid": "e1a2aea6671f0c253f772a23a2972da1", "score": "0.7234989", "text": "public boolean isValidIsbn(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tString isbn = string.replaceAll(\"-\", \"\");\n\t\tint number = 0;\n\t\tif(isbn.length() != 10) {\n\t\t\treturn false;\n\t\t}\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tif(isbn.charAt(i) == 'X') {\n\t\t\t\tnumber += 10;\n\t\t\t}else if(Character.isDigit(isbn.charAt(i))) {\n\t\t\t\tnumber += ((Integer.parseInt(\"\" + isbn.charAt(i))) * (10 - i));\n\t\t\t}else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn number % 11 == 0;\n\t}", "title": "" }, { "docid": "ad918ffcf9669cb2c9984cc3b543446f", "score": "0.66777056", "text": "@Test\n public void calculateCheckDigitShouldCalculateLastDigitOfGivenIsbnNumber() {\n Isbn isbn = new Isbn();\n String validISBN = \"9780596809485\";\n // when\n String result = Isbn.calculateCheckDigit(validISBN);\n }", "title": "" }, { "docid": "0a6de7f9263ac49ec547c0ab6e241d89", "score": "0.6596154", "text": "public boolean vaisbn(String isbn) {\n\t\treturn bookBarcodeDao.vaisbn(isbn);\n\t}", "title": "" }, { "docid": "96a80173111379a0fe79045008c7b093", "score": "0.652927", "text": "public void setIsbn(int isbnn) {\tthis.isbn = isbnn; }", "title": "" }, { "docid": "7dd9ae7e1ac6aa33e0c5d58f6f2aafae", "score": "0.6459941", "text": "@Test(expected = InvalidIsbnException.class)\n public void shouldThrowExceptionWhenISBNContainsUnsupportedCharacters() {\n Isbn isbn = new Isbn();\n String isbnWithUnsupportedCharacter = \"01234%56@789012\";\n // when\n isbn.validateIsbn13(isbnWithUnsupportedCharacter);\n }", "title": "" }, { "docid": "ef49c4f608716185437380978d832f4a", "score": "0.64489454", "text": "public ISBNValidator() {\n validNums = new String[1500];\n invalidNums = new String[500];\n }", "title": "" }, { "docid": "7aaad95075f0602f8f41a79b0fd0cfd4", "score": "0.64354086", "text": "@Test\r\n public void testCorrectISBNFormat() {\r\n System.out.println(\"correctISBNFormat\");\r\n String isbn = \"\";\r\n boolean expResult = false;\r\n boolean result = Book.correctISBNFormat(isbn);\r\n assertEquals(expResult, result);\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 }", "title": "" }, { "docid": "24afa5cd66cf5473fd552552bbd345ad", "score": "0.63692", "text": "public String getISBN ()\r\n \r\n {\r\n \r\n return isbn;\r\n \r\n }", "title": "" }, { "docid": "e03c4d601b3d51654b5904846994ff60", "score": "0.6300407", "text": "public boolean vaisbn2(String isbn) {\n\t\treturn bookBarcodeDao.vaisbn2(isbn);\n\t}", "title": "" }, { "docid": "5a5cb3b2f083e6a7f37a252e2b4a10c5", "score": "0.62461984", "text": "@Test\r\n\tpublic void test_3_9() {\n\t\tin = new ByteArrayInputStream(\"013601267\".getBytes());\r\n\t\tout = new ByteArrayOutputStream();\r\n\t\tSystem.setIn(in);\r\n\t\tSystem.setOut(new PrintStream(out));\r\n\t\tMain.ex_3_9();\r\n\t\tassertEquals(\"Enter the first 9 ISBN digits: 0136012671\", out.toString().trim());\r\n\t\t\r\n\t\tin = new ByteArrayInputStream(\"013031997\".getBytes());\r\n\t\tout = new ByteArrayOutputStream();\r\n\t\tSystem.setIn(in);\r\n\t\tSystem.setOut(new PrintStream(out));\r\n\t\tMain.ex_3_9();\r\n\t\tassertEquals(\"Enter the first 9 ISBN digits: 013031997X\", out.toString().trim());\r\n\t}", "title": "" }, { "docid": "c459fd18d98ca55a2cc792655fd8ba01", "score": "0.6225646", "text": "public void setIsbn(String isbn) {\n this.isbn = isbn;\n }", "title": "" }, { "docid": "948dd505656ae0dd21fdb3939ac372e8", "score": "0.62154996", "text": "public void setISBN (String _isbn)\r\n \r\n {\r\n \r\n this.isbn = _isbn;\r\n \r\n }", "title": "" }, { "docid": "35fad2fd16a903e3529e751861217dba", "score": "0.6208631", "text": "public boolean isValidIsbn(String string) {\n\t\tboolean ans = bookNumberHelp(string);\n\t\t//System.out.println(string + \" -> \" + ans);\n\t\treturn ans;\n\t}", "title": "" }, { "docid": "ea97d7f9576aba852ec60cfc41165846", "score": "0.6165049", "text": "public static String calculateCheckDigit(final CharSequence input) throws ISBNException {\n if (null == input)\n return null;\n\n Matcher m = matcher(input, PATTERN_WITHOUT_CHECK_DIGIT);\n\n if (null != m.group(1))\n return String.valueOf(calculateCheckDigit13(normalize(m.group())));\n\n if (null != m.group(2))\n return String.valueOf(calculateCheckDigit10(normalize(m.group())));\n\n throw new RuntimeException(\"Unexpected exception\");\n }", "title": "" }, { "docid": "90bc0f655150e02a8a86a18b844a3997", "score": "0.6156382", "text": "public void setIsbn(String isbn) {\n\t\tthis.isbn=isbn;\r\n\t}", "title": "" }, { "docid": "6dc4bd4acb04f1e544b5362ce66d7aee", "score": "0.6141228", "text": "@Test\n\tpublic void GetbookByISBN(){\n\t\tBook book = BooksProxy.getInstance().getBookByISBN(\"9780684853505\");\n\t\t//System.out.println(book.toString());\n\t\tassertEquals(\"Book Title\", book.getTitle(),\"Bag of bones\");\n\t\tassertEquals(\"Book Edition\", book.getEdition(),\"\");\n\t\tassertEquals(\"Book Publisher\", book.getPublisher(),\"Scribner\");\n\t}", "title": "" }, { "docid": "a371125d9fb916f4dc1668f7067beaf9", "score": "0.6081414", "text": "public void setISBN(int value) {\n this.isbn = value;\n }", "title": "" }, { "docid": "086a32294ded123e244ba4206a450708", "score": "0.6065547", "text": "public void setIsbn(String isbn) {\n\t\tthis.isbn = isbn;\n\t}", "title": "" }, { "docid": "a76ca5b243cee52a8734286c06892244", "score": "0.6060692", "text": "public static boolean testShelfSrchISBN(){\n return false;//STUB\n }", "title": "" }, { "docid": "1afb13578f2618529ee6a781ee7b01c8", "score": "0.6053189", "text": "@Test(expected = InvalidIsbnException.class)\n public void shouldThrowExceptionWhenISBNContainsBothHyphensAndSpaces() {\n Isbn isbn = new Isbn();\n String isbnWithUnsupportedCharacter = \"01234-56 789012\";\n // when\n isbn.validateIsbn13(isbnWithUnsupportedCharacter);\n }", "title": "" }, { "docid": "6f8aaac8700e63230752298130b5d348", "score": "0.6017723", "text": "public static boolean isEanFormatValid(String ean){\n //isbn10 numbers\n if(ean.length()==10 && !ean.startsWith(\"978\")){\n //changed since ean10 don´t start with 978 so it should not be appended either.\n return true;\n }\n //isbn13 numbers\n else return ean.length() == 13 && ean.startsWith(\"978\");\n }", "title": "" }, { "docid": "10dfd9f7f18ef8ec64d8c5399c3f815d", "score": "0.6001029", "text": "public int getISBN() {\n return isbn;\n }", "title": "" }, { "docid": "d595e14a8f28b404d3e6c35e57c1c7c5", "score": "0.5994385", "text": "public String getISBN() {\n return isbn;\n }", "title": "" }, { "docid": "800a6df4f22e78c53434da8436824475", "score": "0.59724617", "text": "public void setISBN(java.lang.String ISBN) {\n this.ISBN = ISBN;\n }", "title": "" }, { "docid": "f8aab00a546886bd1eefc6ca75bbef4d", "score": "0.5879729", "text": "@Test\r\n public void testGetISBN() {\r\n ElectronicBook instance = new ElectronicBook(\"ISBN Test: \", new String[]{\"John Doe\", \"Jane Doe\"});\r\n String expectedResult = \"ISBN Test: \";\r\n String result = instance.getISBN();\r\n assertEquals(expectedResult, result);\r\n\r\n }", "title": "" }, { "docid": "025164b49966c5c9a21227c13d096fac", "score": "0.5825378", "text": "private boolean bookNumberHelp(String string) {\n\t\tint multiplier = 10;\n\t\tint total = 0;\n\t\t\n\t\tfor (char c : string.toCharArray()) {\n\t\t\tif (Character.isDigit(c)) {\n\t\t\t\ttotal += multiplier * ((int) c - '0'); // digit to correct int\n\t\t\t\tmultiplier--;\n\t\t\t\tif (multiplier < 2) { // handle check character differently\n\t\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (c != '-') { // if an invalid char\n\t\t\t\t// System.out.println(\" Failing on invalid char: \" + c);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// now take care of the last character\n\t\tint checkNum = 0;\n\t\tchar checkChar = string.charAt(string.length() - 1);\n\t\tif (checkChar == 'X' || checkChar == 'x') {\n\t\t\tcheckNum = 10;\n\t\t}\n\t\telse if (Character.isDigit(checkChar)) {\n\t\t\tcheckNum = checkChar - '0';\n\t\t}\n\t\telse { // not a digit or X\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\ttotal += checkNum;\n\t\t\n\t\treturn (total % 11) == 0;\n\t}", "title": "" }, { "docid": "5de4971bb009dd4876670f8fb87e2bd5", "score": "0.58129686", "text": "public static void validateISBN(String isbn, String fieldName)\n throws ISBNFormatError, FieldRequiredError, NumberFormatException, NegativeIntegerError {\n validateRequired(isbn, fieldName);\n validatePositive(isbn, fieldName);\n\n if (isbn.trim().length() != 10) {\n throw new ISBNFormatError(isbn, fieldName);\n }\n }", "title": "" }, { "docid": "bf65cb710f3ef802da71087edf81a52c", "score": "0.58120894", "text": "public boolean isValidIsbn(String string) {\n\t\t// TODO Write an implementation for this method declaration\n\n\t\tString noHyphens = String.join(\"\", string.split(\"-\"));\n\t\tint sum = 0;\n\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tCharacter c = noHyphens.charAt(i);\n\t\t\tif (Character.isDigit(c))\n\t\t\t\tsum += Character.getNumericValue(c) * (10 - i);\n\t\t\telse if ((i == 9) && (c == 'X'))\n\t\t\t\tsum += 10;\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn ((sum % 11) == 0);\n\t}", "title": "" }, { "docid": "e5430ac82e0f5db10e4c04ec9b17fa59", "score": "0.5670486", "text": "@Override\n\tpublic int checkStock(String isbn) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "83e69defebd958f4f61576f1c8fb7b82", "score": "0.5630518", "text": "public java.lang.String getISBN() {\n return ISBN;\n }", "title": "" }, { "docid": "ef854902c24417a9ff96a47ffebb7534", "score": "0.55933136", "text": "@Loggable\n public String generateNumber() {\n String issn = \"8-\" + Math.abs(new Random().nextInt());\n logger.info(\"Generated ISBN : \" + issn);\n return issn;\n }", "title": "" }, { "docid": "00657bc00ae732b434f98bdd1aefd9d5", "score": "0.5590839", "text": "public static boolean checkIban(String rib) {\n\t\tStringBuilder extendedIban = new StringBuilder();\n\t\t\n\t\trib = rib.substring(4) + rib.subSequence(0, 4);\n\t\t\n\t\tfor (char currentChar : rib.toCharArray()) {\n\t\t\t// Works on base 36\n\t\t\tint currentCharValue = Character.digit(currentChar, Character.MAX_RADIX);\n\t\t\t// Convert character to simple digit\n\t\t\textendedIban.append(currentCharValue);\n\t\t}\n\t\t\n\t\treturn new BigDecimal(extendedIban.toString()).remainder(new BigDecimal(97)).intValue() == 1;\n\t}", "title": "" }, { "docid": "0607a1c12eaa10d6ea2b11c7ca3edb44", "score": "0.5568117", "text": "public void addISBN(Integer ISBN) {\n WrittenBookISBN.add(ISBN);\n }", "title": "" }, { "docid": "fa84916f41b2bf60285d17affaa2d034", "score": "0.55557305", "text": "public String getIsbn() {\n return isbn;\n }", "title": "" }, { "docid": "6b912513ee10daa72b21be1bb6fc01fa", "score": "0.5546737", "text": "public String[] findBookByISBN(String isbn) {\n return null;\n }", "title": "" }, { "docid": "d4867187865f5dd596f6d0bbc20b7a1a", "score": "0.55282366", "text": "public boolean IDtester(String a){\n boolean t = true;\n if(a.length() < 8 || a.length() > 8){\n t = false;\n JOptionPane.showMessageDialog(null, \"Wrong Length Correct ID: Length of \"\n + \"8\");\n \n return t;\n }\n //changes entry into a char array to go through each element and determine \n //if it is a digit\n char[]Entry = a.toCharArray();\n for(int b = 0; b < Entry.length; b++ ){\n t = Character.isDigit(Entry[b]);\n if(t == false){\n JOptionPane.showMessageDialog(null, \"Correct ID only numeric input\");\n break;}\n }\n return t;\n }", "title": "" }, { "docid": "47f48c654a57a6af016a361191e46807", "score": "0.54848295", "text": "@Override\npublic Book validateBook(String title, String author, String isbn, double price) {\n\treturn null;\n}", "title": "" }, { "docid": "81ae1eb544a73c28e58a0f1c6a09b150", "score": "0.54646647", "text": "public String getIsbn() {\n\t\treturn isbn;\r\n\t}", "title": "" }, { "docid": "605e3703b83712eda1c50396033b4904", "score": "0.5460282", "text": "@Override\n\tpublic List<Book> searchBooksByISBN(String searchISBN) throws IOException, MongoException {\n List<Book> result = new ArrayList<>();\n MongoCollection<Document> coll = db.getCollection(\"book\");\n\n BasicDBObject query = new BasicDBObject();\n query.put(\"isbn\", searchISBN);\n FindIterable<Document> docs = coll.find(query);\n\n for(Document doc : docs) {\n Book book = makeBook(doc);\n result.add(book);\n }\n return result;\n }", "title": "" }, { "docid": "f78ee1796dd318621fb8a04edabd3725", "score": "0.54591256", "text": "public void setCodeIsbn(String codeIsbn) {\n\t\tthis.codeIsbn = codeIsbn;\n\t}", "title": "" }, { "docid": "fee9cc5ee3487abb0730439d7581d0b1", "score": "0.545599", "text": "public boolean isValidIBAN(String IBAN) {\n if (IBAN == null) return false;\n if (IBAN.length() != 13) return false;\n if (!IBAN.substring(0, 3).matches(\"[a-zA-Z]+\")) return false;\n if (!IBAN.substring(3, 13).matches(\"[0-9]+\")) return false;\n \n return true;\n }", "title": "" }, { "docid": "4e65f0ef17289e44494a7abce30a8f54", "score": "0.5425452", "text": "public static void checkPostal(String pc)\r\n {\r\n int i;\r\n counter=0;\r\n if(pc.length()>6 || pc.length()<6)\r\n {\r\n counter++;\r\n }\r\n for(i=0;i<pc.length();i=i+2)\r\n {\r\n if(!Character.isLetter(pc.charAt(i)))\r\n {\r\n counter++;\r\n }\r\n }\r\n for(i=1;i<pc.length();i=i+2)\r\n {\r\n if(!Character.isDigit(pc.charAt(i)))\r\n {\r\n counter++;\r\n }\r\n }\r\n \r\n if(counter>=1)\r\n {\r\n JOptionPane.showMessageDialog(null,\"Please enter valid six digit \"\r\n + \"long postal code\",\r\n \"Input Error message\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n }", "title": "" }, { "docid": "d2549c58f605ac242f030004ae71c1cb", "score": "0.53875256", "text": "@Override\n\tpublic String showBookTitleByisbn(String isbn) {\n\t\treturn dao.selectBookTitleByisbn(isbn);\n\t}", "title": "" }, { "docid": "be11b502c2a431bafd0a17ed6c43bd2f", "score": "0.5373759", "text": "public String getIsbn() {\n\t\treturn isbn;\n\t}", "title": "" }, { "docid": "1276a800c2e46cd1556a609aa7690b96", "score": "0.5349983", "text": "public static boolean isValidBSN(int bsn) {\n if (bsn >= BSN_RANGE_MIN_VALUE && bsn <= BSN_RANGE_MAX_VALUE) {\n int sum = -1 * (bsn % 10);\n int remainder = bsn / 10;\n for (int i = 2; i <= 9; i++) {\n sum += i * (remainder % 10);\n remainder /= 10;\n }\n return sum % 11 == 0;\n }\n return false;\n }", "title": "" }, { "docid": "cabf3d40a556a88e115b5b50b6037d2a", "score": "0.53452253", "text": "public String getIsbnNumber() {\n\t\t\treturn isbnNumber;\n\t\t}", "title": "" }, { "docid": "b4def55e8812a911c80e294fe23f529d", "score": "0.5336613", "text": "static boolean validatePin(String pin) {\n if(pin != null && (pin.length() == 4 || pin.length() == 6) ) {\r\n // Defining right REGEX\r\n Pattern ISNUMBER = Pattern.compile(\"[0-9]\");\r\n for(int i = 0; i < pin.length(); i++) {\r\n Character c = pin.charAt(i);\r\n Matcher matcher = ISNUMBER.matcher(c.toString());\r\n if(!matcher.find())\r\n return false;\r\n }\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "d8c18e337bf6000bbfb220a1bc542b87", "score": "0.5304509", "text": "private void searchBooks(String query) {\n if (query.equalsIgnoreCase(latestQuery)) {\n return;\n }\n boolean valid = true;\n //if it's an ISBN\n if (Utils.isInteger(query)) {\n if (query.length() == 13) {\n valid = Utils.isValidISBN13(query);\n }\n if (query.length() == 10) {\n valid = Utils.isValidISBN10(query);\n }\n }\n if(valid) {\n mErrorISBNInvalid.setVisibility(View.GONE);\n if (searchTask != null) {\n searchTask.cancel(true);\n }\n latestQuery = query;\n searchTask = new SearchTask();\n searchTask.setSearchListener(this);\n searchTask.execute(query);\n } else {\n mErrorISBNInvalid.setVisibility(View.VISIBLE);\n myVolumeList.clear();\n mRecyclerView.getAdapter().notifyDataSetChanged();\n }\n }", "title": "" }, { "docid": "787557745007bb8ed95105bb807da5bd", "score": "0.52906436", "text": "@Test\n public void checkBookExists_validBook_validBookTitle() throws QuotesifyException {\n String bookNumber = \"1\";\n Book bookToRate = RatingParser.checkBookExists(bookNumber);\n assertEquals(bookToRate.getTitle(), \"Harry Potter\");\n }", "title": "" }, { "docid": "f4291ab58fad9b7eddabeadc709db847", "score": "0.5285418", "text": "@Test\n\tpublic void passThePinCodeValidationItShouldReturnValidOrNotatAlphabet() {\n\t\tPincode code = new Pincode();\n\t\tassertFalse(code.validPinCode(\"A400088\")); // invalid\n\t\t// test case passed\n\t}", "title": "" }, { "docid": "d5ad7ea8d26adbbef1f712affa455b4d", "score": "0.52704775", "text": "@Test\n\tpublic void passThePinCodeValidationItShouldReturnValidOrNotatAlphabetatend() {\n\t\tPincode code = new Pincode();\n\t\tassertFalse(code.validPinCode(\"400088B-\")); // invalid\n\t\t// test case passed\n\t}", "title": "" }, { "docid": "9b7c10b576b1eac43e162c7aca206757", "score": "0.52637625", "text": "private String resolveFromIsbn(\r\n MetadataManager metadataMgr, String isbn, \r\n String date, String volume, String edition, \r\n String spage, String author, String atitle) {\r\n String url = null;\r\n Connection conn = null;\r\n try {\r\n conn = metadataMgr.newConnection();\r\n // strip punctuation\r\n isbn = isbn.replaceAll(\"[- ]\", \"\");\r\n \r\n StringBuilder query = new StringBuilder();\r\n ArrayList<String> args = new ArrayList<String>();\r\n buildAuxiliaryTableQuery(\r\n MetadataManager.ISBN_TABLE, MetadataManager.ISBN_FIELD,\r\n new String[] {isbn}, query, args);\r\n\r\n boolean hasBookSpec = \r\n \t(date != null) || (volume != null) || (edition != null); \r\n \r\n boolean hasArticleSpec = \r\n \t(spage != null) || (author != null) || (atitle != null);\r\n \r\n if (hasBookSpec) {\r\n // can specify an issue by a combination of date, volume and issue;\r\n // how these combine varies, so do the most liberal match possible\r\n // and filter based on multiple results\r\n query.append(\" and \");\r\n if (date != null) {\r\n // enables query \"2009\" to match \"2009-05-10\" in database\r\n query.append(MetadataManager.DATE_FIELD);\r\n query.append(\" like ? escape '\\\\'\");\r\n args.add(date.replace(\"\\\\\",\"\\\\\\\\\").replace(\"%\",\"\\\\%\") + \"%\");\r\n }\r\n \r\n if (volume != null) {\r\n if (date != null) {\r\n query.append(\" and \");\r\n }\r\n query.append(MetadataManager.VOLUME_FIELD);\r\n query.append(\" = ?\");\r\n args.add(volume);\r\n }\r\n\r\n if (edition != null) {\r\n if ((date != null) || (volume != null)) {\r\n \tquery.append(\" and \");\r\n }\r\n query.append(MetadataManager.EDITION_FIELD);\r\n query.append(\" = ?\");\r\n args.add(edition);\r\n }\r\n }\r\n\r\n // handle start page, author, and article title as\r\n // equivalent ways to specify an article within an issue\r\n if (hasArticleSpec) {\r\n // accept any of the three\r\n query.append(\" and ( \");\r\n \r\n if (spage != null) {\r\n query.append(MetadataManager.START_PAGE_FIELD);\r\n query.append(\" = ?\");\r\n args.add(spage);\r\n }\r\n if (atitle != null) {\r\n if (spage != null) {\r\n query.append(\" or \");\r\n }\r\n query.append(MetadataManager.ARTICLE_TITLE_FIELD);\r\n query.append(\" like ? escape '\\\\'\");\r\n args.add(atitle.replace(\"%\",\"\\\\%\") + \"%\");\r\n }\r\n if ( author != null) {\r\n if ((spage != null) || (atitle != null)) {\r\n query.append(\" or \");\r\n }\r\n // add the author query to the query\r\n addAuthorQuery(author, query, args);\r\n }\r\n \r\n query.append(\" )\");\r\n\r\n }\r\n \r\n url = resolveFromQuery(conn, query.toString(), args);\r\n \r\n } catch (SQLException ex) {\r\n log.error(\"Getting ISBN:\" + isbn, ex);\r\n \r\n } finally {\r\n MetadataManager.safeClose(conn);\r\n }\r\n return url;\r\n }", "title": "" }, { "docid": "eded6accc136e816ae62178c94968e8d", "score": "0.52580506", "text": "private boolean checkTitleDeedNumber(String titleDeedNumber) {\n/* 276 */ Connection connection = null;\n/* 277 */ PreparedStatement preparedStatement = null;\n/* 278 */ ResultSet resultSet = null;\n/* */ try {\n/* 280 */ connection = this.dataSource.getConnection();\n/* 281 */ preparedStatement = connection.prepareStatement(Queryconstants.checkTitleDeedNumber);\n/* */ \n/* 283 */ preparedStatement.setString(1, titleDeedNumber);\n/* */ \n/* 285 */ resultSet = preparedStatement.executeQuery();\n/* */ \n/* 287 */ if (resultSet.next()) {\n/* 288 */ return true;\n/* */ }\n/* 290 */ return false;\n/* */ }\n/* 292 */ catch (Exception ex) {\n/* 293 */ ex.printStackTrace();\n/* 294 */ return false;\n/* */ } finally {\n/* 296 */ DBOperations.DisposeSql(connection, preparedStatement, resultSet);\n/* */ } \n/* */ }", "title": "" }, { "docid": "34d554c246a28a300c703e35cee80cc5", "score": "0.52338296", "text": "private boolean isValidCNIC(String cnic) {\n // condition to check whether CNIC contains any alphabets and CNIC has length of 13\n \n if (Pattern.matches(\"[a-zA-Z]+\", cnic) == false && cnic.length() == 13) {\n return true;\n } else\n return false;\n }", "title": "" }, { "docid": "ab920c4324605404e42f211da9f8fcfb", "score": "0.5220233", "text": "public boolean checkin(long isbn) {\n for (LibraryBook libraryBook : library) // parse entire library\n if (libraryBook.getIsbn() == isbn) { // either return false if book is checked in or check the book out\n // and return true\n if (libraryBook.getHolder() == null)\n return false;\n libraryBook.checkIn();\n return true;\n }\n return false; // if the book wasn't found return false\n }", "title": "" }, { "docid": "2f5a4af2f861dc7f7aa860fd7c63c81f", "score": "0.5210564", "text": "public StrColumn getBookIdISBN() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"book_id_ISBN\", StrColumn::new) :\n getBinaryColumn(\"book_id_ISBN\"));\n }", "title": "" }, { "docid": "1eb042eab304fd5a0f5780eae136e202", "score": "0.52078336", "text": "public String resolveFromBici(String bici) throws ParseException {\r\n int i = bici.indexOf('(');\r\n if (i < 0) {\r\n // did not find end of date section\r\n throw new ParseException(\"Missing start of date section\", 0);\r\n }\r\n String isbn = bici.substring(0,i).replaceAll(\"-\", \"\");\r\n\r\n // match ISBN-10 or ISBN-13 with 0-9 or X checksum character\r\n if (!MetadataUtil.isISBN(isbn, false)) {\r\n // ISSB is 10 or 13 characters\r\n throw new ParseException(\"Malformed ISBN\", 0);\r\n }\r\n\r\n // skip over date section (1993)\r\n int j = bici.indexOf(')',i+1);\r\n if (j < 0) {\r\n // did not find end of date section\r\n throw new ParseException(\"Missing end of date section\", i+5);\r\n }\r\n String date = bici.substring(i+1, j);\r\n\r\n // get volume and issue between end of\r\n // date section and start of article section\r\n if (bici.charAt(j+1) != '(') {\r\n // did not find start of chapter section\r\n throw new ParseException(\"Missing start of chapter section\", j+1);\r\n }\r\n \r\n i = j+2; // advance to start of chapter\r\n j = bici.indexOf(')',i);\r\n if (j < 0) {\r\n // did not find end of chapter section\r\n throw new ParseException(\"Missing end of chapter section\", i);\r\n }\r\n \r\n // get chapter number delimiter\r\n int k = bici.indexOf(';', i);\r\n if ((k < 0) || (k >= j)) {\r\n // no chapter number delimiter before end of chapter section \r\n throw new ParseException(\"Missing chapter number delimiter\", i);\r\n }\r\n String chapter = bici.substring(i,k);\r\n \r\n // get end of chapter section\r\n i = k+1;\r\n k = bici.indexOf(';', i+1);\r\n if ((k < 0) || (k >= j)) {\r\n // no chapter abbreviation delimiter before end of chapter section\r\n throw new ParseException(\"Missing chapter abbreviation delimiter\", i);\r\n }\r\n \r\n // extract the start page\r\n String spage = bici.substring(k+1,j);\r\n if (spage.indexOf('-') > 0) {\r\n spage = spage.substring(0, spage.indexOf('-'));\r\n }\r\n \r\n // PJG: what about chapter number?\r\n // (isbn, date, volume, edition, spage, author, title) \r\n String url = resolveFromIsbn(isbn, date, null, null, spage, null, null);\r\n if ((url != null) && log.isDebug()) {\r\n Tdb tdb = ConfigManager.getCurrentConfig().getTdb();\r\n String bTitle = null;\r\n if (tdb != null) {\r\n TdbTitle title = tdb.getTdbTitleByIsbn(isbn);\r\n if (title != null) {\r\n bTitle = title.getName();\r\n }\r\n }\r\n if (log.isDebug3()) {\r\n String s = \"Located cachedURL \" + url +\r\n \" for ISBN \" + isbn +\r\n \", year: \" + date + \r\n \", chapter: \" + chapter +\r\n \", start page: \" + spage;\r\n if (bTitle != null) {\r\n s += \", book title \\\"\" + bTitle + \"\\\"\";\r\n }\r\n log.debug3(s);\r\n }\r\n }\r\n \r\n return url;\r\n \r\n }", "title": "" }, { "docid": "020ebe9d6f13d526c9e1f2a6ea1bdac6", "score": "0.5202302", "text": "public boolean checkin(long isbn) {\n\t\tLibraryBookGeneric<Type> tempBook = null;\n\t\tfor (LibraryBookGeneric<Type> element : library) {\n\t\t\tif (element.getIsbn() == isbn)\n\t\t\t\ttempBook = element;\n\t\t}\n\t\tif (tempBook == null)\n\t\t\treturn false;\n\t\tif (tempBook.getDueDate() == null)\n\t\t\treturn false;\n\t\telse {\n\t\t\ttempBook.checkIn();\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "497702ca08b8713638cff22661cbba8f", "score": "0.5185945", "text": "LibReturnCode returnBook(long isbn, long readerId, LocalDate returnDate);", "title": "" }, { "docid": "db1dd42bbc44668e9411b2429b66f7fe", "score": "0.5179153", "text": "public Book getBook(String isbn)\n {\n Connection conn = SQLiteJDBCDriverConnection.getInstance().conn;\n Book book = null;\n try {\n\n String sql = \"SELECT * FROM Book WHERE zsbn = '\" + isbn + \"'\";\n ResultSet res = conn.createStatement().executeQuery(sql);\n while (res.next()) {\n String zsbn = res.getString(\"zsbn\");\n String title = res.getString(\"title\");\n int maxCheckOutLength = res.getInt(\"maxCheckOutLength\");\n book = new Book(title,zsbn, maxCheckOutLength);\n break;\n }\n\n return book;\n\n } catch (SQLException e1) {\n System.out.println(\"Error creating or running statement: \" + e1.toString());\n try {\n conn.close();\n } catch (Exception e2) {\n }\n return null;\n }\n }", "title": "" }, { "docid": "2fed124da29c10a2cd7043eeac2e2dee", "score": "0.51789635", "text": "public static void checkLengthSIN(String len)\r\n {\r\n counter=0;\r\n int length = len.length();\r\n int i;\r\n if(length>9 || length<9)\r\n {\r\n counter++;\r\n }\r\n for(i=0;i<length;i++)\r\n {\r\n if(!Character.isDigit(len.charAt(i)))\r\n {\r\n counter++;\r\n }\r\n }\r\n \r\n if(counter>=1)\r\n {\r\n JOptionPane.showMessageDialog(null,\"Please enter valid 9 digit \"\r\n + \"SIN number\",\r\n \"Input Error message\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n \r\n }", "title": "" }, { "docid": "0d4605d032690e1316bd2e7bf9b512da", "score": "0.5176699", "text": "@Override\n public void onIsbnFound(final String isbn) {\n Log.d(TAG, \"onIsbnFound: \" + isbn);\n spinner.setVisibility(View.VISIBLE);\n autofillBookData(isbn);\n }", "title": "" }, { "docid": "1a175cd027f39ae29232a1362a65bcfd", "score": "0.5169881", "text": "@Test\n void reviewRutValidateTest(){\n int validCorrelativeNumber = 20351616;\n char validcheckDigit = '9';\n assertTrue(ReviewFile.reviewRutValidate(validCorrelativeNumber,validcheckDigit));\n int invalidCorrelativeNumber = 20979925;\n char invalidcheckDigit = '0';\n assertFalse(ReviewFile.reviewRutValidate(invalidCorrelativeNumber,invalidcheckDigit));\n }", "title": "" }, { "docid": "9b6e2c91b005e9b6179c65fa0dad15f7", "score": "0.51696366", "text": "public void setIsbnDelLibroTrasErrorPorTeclado() {\n\n\t\tSystem.out.println(\"Introduzca un nuevo ISBN valido: \");\n\t\tString nuevoISBN = teclado.nextLine();\n\t\tnuevoISBN.replaceAll(\" \", \"\");\n\t\tif (validarIsbn10(nuevoISBN) == true|| validarIsbn13(nuevoISBN)==true) {\n\t\t\tthis.isbnDelLibro = nuevoISBN;\n\t\t} else {\n\t\t\tSystem.out.println(\"ISBN no valido.\");\n\t\t\tsetIsbnDelLibroTrasErrorPorTeclado();\n\t\t}\n\n\t}", "title": "" }, { "docid": "df874fb3fc7700aecfc4c83b6de9650d", "score": "0.5158641", "text": "@Test\n\tvoid testBrailConverter13() {\n\t\t// arrange\n\t\tString test = \"ttt\";\n\n\t\t// act\n\t\tString actual = BrailConverter.answer(test);\n\t\tString expected = \"011110011110011110\";\n\t\t// assert\n\t\tassertEquals(expected, actual);\n\n\t}", "title": "" }, { "docid": "090ce2ac8c66f2590ff3c76cc827f200", "score": "0.5137318", "text": "boolean hasSrlCode();", "title": "" }, { "docid": "090ce2ac8c66f2590ff3c76cc827f200", "score": "0.5137318", "text": "boolean hasSrlCode();", "title": "" }, { "docid": "090ce2ac8c66f2590ff3c76cc827f200", "score": "0.5137318", "text": "boolean hasSrlCode();", "title": "" }, { "docid": "b0adba16426361aa6cdcf73e3f46587f", "score": "0.5121573", "text": "public boolean emprestarLivroV4(String isbn) {\n\t\tif(isbn == null || isbn.equals(\"\")) {\n\t\t\tSystem.out.println(\"ISBN inválido!\");\n\t\t\treturn false;\t\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < livros.length; i++) {\n\t\t\tif(livros[i] != null && livros[i].getIsbn().equals(isbn)) {\n\t\t\t\treturn (livros[i].emprestaExemplar());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1e65e5f85f74acf31085414c6be9197b", "score": "0.511841", "text": "private boolean postalCodeValidator(String postalCode) {\n return postalCode.matches(\"^[0-9]*$\") && postalCode.length() == 4;\n }", "title": "" }, { "docid": "53be2ce000ae94a437830dfca7a33b98", "score": "0.50991607", "text": "private static boolean isValidNum(String keyNum) {\n\t\ttry {\n\t\t\tInteger.parseInt(keyNum);\n\t\t}\n\t\tcatch (NumberFormatException nfe){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tint num = Integer.parseInt(keyNum);\n\t\t\n\t\treturn num > 9 &&\n\t\t\t\tnum < 100;\n\t}", "title": "" }, { "docid": "8c6a77bc2c6accc9aa8099093050f3c7", "score": "0.50718933", "text": "public static boolean removeNothingTest() {\r\n\t\tHashTableMap<String, Book> library = new HashTableMap<String, Book>();\r\n\r\n\t\ttry {\r\n\t\t\tDataWrangler.readInputFile(library, \"Book_data.csv\");\r\n\t\t} catch(Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t \r\n\t\tString isbn = \"1234567890\";\r\n\t\tif(library.remove(isbn)!= null)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "1ec31609556682d2156d622f4650d902", "score": "0.50674105", "text": "public boolean verifyUPC() {\r\n\t\tint ttl1 = 0;\r\n\t\tint ttl2 = 0;\r\n\t\t//add up all the odd numbers in the barcode (excluding the last number in the array(the check digit)) - so begin from barcode.length -2\r\n\t\t//create a second var x, that will keep track of which digit place in the barcode the loop is up to(it goes the opposite direction)\r\n\t\tfor (int i = barcode.length -2,x = 1; i >= 0; i--,x++){\r\n\t\t\t//if x is odd\r\n\t\t\tif(x % 2 != 0) {\r\n\t\t\t\tttl1 += barcode[i];\r\n\t\t\t\t//System.out.println(ttl1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//multiply the result by 3\r\n\t\tttl1 *= 3;\r\n\t\t//add the even digits\r\n\t\tfor (int i = barcode.length -2,x = 1; i >= 0; i--,x++){\r\n\t\t\t//if the element of the barcode is even\r\n\t\t\tif(x % 2 == 0) {\r\n\t\t\t\tttl2 += barcode[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//System.out.println(ttl2);\r\n\t\t//add the two results together\r\n\t\tint ttl = ttl1 + ttl2;\r\n\t\tint remainder = ttl % 10;\r\n\t\t//if the remainder is not equal to zero, subtract it from 10\r\n\t\tint check = 0;\r\n\t\tif(remainder != 0) {\r\n\t\t\tcheck = 10 - remainder;\r\n\t\t}\r\n\t\t//if check is equal to the last element in the array(first element in the barcode)\r\n\t\tif(check == barcode[barcode.length-1]) {\r\n\t\t\t//System.out.println(check);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "407984c1fe426a1f3a9e548aea1a817b", "score": "0.50585914", "text": "public static boolean validateCheckDigit(String trackingID) {\n // returns false if the trackingID isn't the correct length\n if (trackingID.length() != 15) {\n return false;\n } else {\n // else performs the checksum\n int sum = 0;\n\n // goes through each character of the trackingID that isn't a check digit\n for (int i = 0; i < 14; i++) {\n sum += trackingID.charAt(i);\n }\n\n // normalizes the value\n sum = (sum % 17) + 74;\n\n // returns whether the check digit matches the sum\n return sum == trackingID.charAt(14);\n }\n }", "title": "" }, { "docid": "681de9f37b45823dc63689976ad9eb11", "score": "0.50564414", "text": "public String getCodeIsbn() {\n\t\treturn this.codeIsbn;\n\t}", "title": "" }, { "docid": "2f033c73cae082256e50f112e17ccce1", "score": "0.5051566", "text": "Book(long isbn, String title, String author, double price)\n {\n this.isbn = isbn;\n this.title = title;\n this.author = author;\n this.price = price;\n }", "title": "" }, { "docid": "d660e501a56a250d87160d1b169ddff0", "score": "0.50432134", "text": "@Override\n public String toString() {\n return String.format(\"%s[isbn13=%s,isbn10=%s]\", getClass().getName(), isbn13, (null == isbn10 ? \"nonexistent\" : isbn10));\n }", "title": "" }, { "docid": "ff59639cb8570f033f8cf64adf613270", "score": "0.5042865", "text": "public String getbvIsbn() {\n return (String)ensureVariableManager().getVariableValue(\"bvIsbn\");\n }", "title": "" }, { "docid": "7539399cd6b9dd47969a9050a131616a", "score": "0.5030176", "text": "@Test\r\n public void testSetISBN() {\r\n ElectronicBook instance = new ElectronicBook(\"ISBN\", new String[]{\"Ioana\", \"Elena\"});\r\n String expectedISBN = \"new ISBN\";\r\n instance.setISBN(expectedISBN);\r\n String result = instance.getISBN();\r\n assertEquals(expectedISBN, result);\r\n\r\n }", "title": "" }, { "docid": "f97215459efdd6e92bcba35100060fd6", "score": "0.5004572", "text": "@Override\n public Book getByIsbn(String isbn) {\n if (isbn == null) {\n throw new NullPointerException(\"ISBN may not be null when querying by it!\");\n\t}\n\n\treturn getDatabase().stream()\n\t .filter(book -> isbn.equals(book.getIsbn()))\n\t .findFirst()\n\t .orElse(null);\n }", "title": "" }, { "docid": "86bd93867fcddf265a6d824a2ae27c62", "score": "0.49999356", "text": "@Override\n\tpublic boolean returnBook(int bid) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d7b810a9b97e11e9d09bfacf0d8aad7c", "score": "0.4985053", "text": "@Test\n\tvoid wardNumberValidationsTest() {\n\t\tint n = 7;\n\t\tassertEquals(true,i.validateWardNumber(n).length()>0);\n\t}", "title": "" }, { "docid": "06c54d27065eac349ce76465ae9c3189", "score": "0.49839723", "text": "public int hasWhatzit(String s) {\n int startsWithWhoozit = hasWhoozit(s);\n\n //if the strings starts with a whoozit then it's a good candidate for a blurb\n if (((startsWithWhoozit) >= 2) && ((startsWithWhoozit) <= 11)) {\n\n String cutOutWhoozit = s.substring(startsWithWhoozit);\n\n // if the string entered has the beginnings of a valid blurb (has whoozits)\n // then we'll check that the next sequence after the whoositz is a whatzit\n // Returns 0 if sequence ends with qz\n if (cutOutWhoozit.startsWith(\"qd\") || cutOutWhoozit.startsWith(\"qz\")) {\n String postValidSequence = cutOutWhoozit.substring(2);\n\n //System.out.println(\"sequence starts with whoozit andd may have whatzit\");\n if (postValidSequence.length() != 0) {\n if (hasWhoozit(postValidSequence) >= 2\n && hasWhoozit(postValidSequence) <= 11\n && hasWhoozit(postValidSequence) == postValidSequence.length()) {\n //System.out.println(\"has whatzit and is blurb\");\n\n return postValidSequence.length();\n } else {\n int potentiallyValid = hasWhatzit(postValidSequence);\n if (potentiallyValid == -1) {\n return invalid;\n } else {\n return potentiallyValid;\n }\n }\n } else {\n return invalid;\n }\n\n } else {\n return invalid;\n }\n\n } else if (s.startsWith(\"qd\") && s.startsWith(\"qz\")) {\n System.out.println(\"string s starts with qz/d\\nbut is not a blurb\");\n return 2;\n } else { // else return the invalid value\n return invalid;\n }\n }", "title": "" }, { "docid": "bc1dddeb83b6144b4c3e2b0d4fc01c31", "score": "0.49804604", "text": "public List getBookReview(String book_isbn);", "title": "" }, { "docid": "d514938f69b8670b9de01c8e40fa1d9d", "score": "0.49788493", "text": "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\t//aqui finalmente, no es tomando en cuenta la direccion de memoria, \n\t\t//sino q solo esta tomando en cuenta el ISBN\n\t\t//y finalmente esta devolviendo el valor del ISBN+31 como el valor de referencia\n\t\t//por tanto si 2 ISBN son iguales, pues entonces las memorias serán iguales\n\t\tresult = prime * result + ISBN; \n\t\treturn result;\n\t}", "title": "" }, { "docid": "5f6bcfbe978ef34f28f0557e1ba4abbf", "score": "0.4977224", "text": "private boolean isMangaHash(String input) {\n for (char c : input.toCharArray()) {\n if (!(Character.isDigit(c) || c == '-')) {\n return false;\n }\n }\n return input.contains(\"-\"); // In case it got the chapter number at the end\n }", "title": "" }, { "docid": "b10c6c7f2d3f8f443ade900f0912e736", "score": "0.49714035", "text": "@Override\n\tpublic int deleteBook(String isbn) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "3c8bbc572bd5ad0cf2a2dd8a46e65838", "score": "0.49702442", "text": "private static boolean uni_is_digit(int code)\n {\n\tif (code<'0') {return(false);}\n\tif (code>'9') {return(false);}\n\treturn(true);\n }", "title": "" }, { "docid": "3a6823b3868dce026bd3dbd3a868c579", "score": "0.49693504", "text": "public Book findBookByISBN(String ISBN) {\n for (Book book : bookList) {\n if (book.getIsbn().equals(ISBN)) {\n return book;\n }\n }\n return null;\n }", "title": "" }, { "docid": "96481e47b583f5c2a507aae97b6dd4a3", "score": "0.49635518", "text": "private static boolean isValidICN(int ICN)\n {\n if (ICN>100000 && ICN<999999) return true;\n else return false;\n }", "title": "" }, { "docid": "d9be522e8a75cef686ae2ce97d8bff46", "score": "0.4955081", "text": "public List<Integer> getBookCopiesOfBook(String isbn)\n {\n Connection conn = SQLiteJDBCDriverConnection.getInstance().conn;\n List<Integer> copiesNumberList = new ArrayList<Integer>();\n try {\n\n String sql = \"select * from BookCopy where zsbn = '\"+isbn+\"'\";\n ResultSet res = conn.createStatement().executeQuery(sql);\n while (res.next()) {\n Integer copyNumber = res.getInt(\"ID\");\n copiesNumberList.add(copyNumber);\n }\n\n return copiesNumberList;\n\n } catch (SQLException e1) {\n System.out.println(\"Error creating or running statement: \" + e1.toString());\n try {\n conn.close();\n } catch (Exception e2) {\n }\n return null;\n }\n }", "title": "" }, { "docid": "1e3932065bf7dc042cdf7a6f8d680286", "score": "0.49448234", "text": "@Override\n public int hashCode() {\n return isbn13.hashCode();\n }", "title": "" }, { "docid": "2a2f94a681a141aaf96ed5c546805723", "score": "0.49327445", "text": "public Book getBookByIsbn(String isbn){\n \n String sql = \"select* from \"+this.book.table_Name+\" where isbn=?\";\n PreparedStatement statement = DbServices.getStatement(sql);\n try {\n statement.setString(1, isbn);\n ResultSet result = DbServices.getData(statement);\n setBookObject(result);\n } catch (SQLException ex) {\n Logger.getLogger(BookServices.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return this.book;\n }", "title": "" }, { "docid": "20dac84167afcc747d04ab25bca60c40", "score": "0.49253944", "text": "public Boolean soloNumeros(String numero) throws ExceptionNumero {\r\n\t\tfor (int i = 0; i < numero.length(); i++) {\r\n\t\t\tchar caracter = numero.toUpperCase().charAt(i);\r\n\t\t\tint valorASCII = (int) caracter;\r\n\t\t\tif (valorASCII != 165 && (valorASCII < 65 || valorASCII > 90))\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\tthrow new ExceptionNumero();\r\n\r\n\t}", "title": "" }, { "docid": "8ea0d5e132ce3cd33e4cd88ea1df3528", "score": "0.49211508", "text": "public void buildURL(String ISBN){\n\n\t\tswitch (this.retailerName) {\n\n\t\t\tcase (\"ValoreBooks.com\"):\n\t\t\t\tthis.urlToSearchForBook = \"http://prices.valorebooks.com/lookup-multiple-categories?SiteID=3FZG6Y&ProductCode=\" + ISBN +\n\t\t\t\t\t\t\"&TrackingID=3FZG6Y&Level=Detailed&NumberToShow=35&MinimumCondition=5&ShowEditionType=yes\";\n\t\t\t\tthis.deepLink = \"http://www.valorebooks.com/affiliate/buy/siteID=3FZG6Y/ISBN=\"+ISBN+\"?default=used\";\n\t\t\t\tthis.buyBackLink = \"http://www.valorebooks.com/affiliate/sell/siteID=3FZG6Y/ISBN=\"+ISBN+\"?t_id=3FZG6Y\";\n\n\t\t\t\treturn;\n\t\t\tcase (\"Chegg.com\"):\n\t\t\t\tthis.urlToSearchForBook = \"http://api.chegg.com/rent.svc?KEY=ada6c485ab35b1d2d8189fc08e5c9015&PW=2745708\" +\n\t\t\t\t\t\t\"&R=XML&V=2.0&isbn=\" + ISBN + \"&with_pids=1&results_per_page=1\";\n\t\t\t\treturn;\n\t\t\tcase (\"Amazon.com\"):\n\t\t\t\tthis.urlToSearchForBook = generateAmazonLink(ISBN);\n\t\t\t\treturn;\n\t\t\tcase (\"half.com\"):\n\t\t\t\tthis.urlToSearchForBook = \"\";// INSERT URL CONCATENTATION HERE\n\t\t\t\treturn;\n\t\t\tcase (\"Textbooks.com\"):\n\t\t\t\tthis.urlToSearchForBook = \"\";// INSERT URL CONCATENTATION HERE\n\t\t\t\treturn;\n\t\t\tcase(\"BookRenter.com\"):\n\t\t\t\tthis.urlToSearchForBook = \"http://www.bookrenter.com/api/fetch_book_info?developer_key=XzswnzpLScXvQ2309Z2968GJ8zjKmAmV&version=2012-01-01&isbn=\"+ISBN+\"&BookDetails=y\";\n\t\t\t\tthis.deepLink = \"http://www.bookrenter.com/api/product/\"+ISBN+\"?developer_key=XzswnzpLScXvQ2309Z2968GJ8zjKmAmV\";\n\t\t\t\treturn;\n\t\t\tcase(\"eCampus.com\"):\n\t\t\t\tthis.urlToSearchForBook= \"http://www.ecampus.com/botpricexml.asp?isbn=\"+ ISBN;\n\t\t\t\tthis.deepLink = \"http://www.kqzyfj.com/click-8044180-5029466-1390403653000?ISBN=\"+ISBN;\n\t\t\t\treturn;\n\t\t\tcase(\"VitalSource.com\"):\n\t\t\t\tthis.urlToSearchForBook = \"/v2/product-search?website-id=8044180&advertiser-ids=2544507&isbn=\"+ISBN;\n\t\t\t\treturn;\n\t\t\tcase(\"AbeBooks.com\"):\n\t\t\t\tthis.urlToSearchForBook = \"http://search2.abebooks.com/search?isbn=\"+ISBN+\"&clientkey=759b57aa-22c0-4d15-ad4d-328de084e968\";\n\t\t\t\treturn;\n\t\t\tcase(\"CengageBrain.com\"):\n\t\t\t\tthis.urlToSearchForBook = \"/v2/product-search?website-id=8044180&advertiser-ids=1845757&isbn=\"+ISBN;\n\t\t\t\treturn;\n\t\t\tcase(\"BiggerBooks.com\"):\n\t\t\t\tthis.urlToSearchForBook = \"/v2/product-search?website-id=8044180&advertiser-ids=1087150&isbn=\"+ISBN;\n\t\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "e01f9927f52bfa961bc6cd2e2a24c283", "score": "0.49143878", "text": "@Test\n\tpublic void testGoodCreditCardNumber() {\n\t\tassertTrue(Methods.verifyCreditCard(1234567890123452L));\n\t}", "title": "" }, { "docid": "0bd89d155c26cd94e29fdd4e4bda1a21", "score": "0.49038738", "text": "public void setbvIsbn(String value) {\n ensureVariableManager().setVariableValue(\"bvIsbn\", value);\n }", "title": "" } ]
437a71f8048441d530ec85df6be544f9
Randomly generate alphanumeric document ID with a length of 20 characters
[ { "docid": "9a11f35a95811d8ab2addf181d704bb3", "score": "0.6915368", "text": "public static String getUuid() {\n StringBuilder builder = new StringBuilder();\n Random random = new Random();\n for (int i = 0; i < 20; i++) {\n builder.append(chars[random.nextInt(35)]);\n }\n return builder.toString();\n }", "title": "" } ]
[ { "docid": "298184f214ddf46c6db18114296e8985", "score": "0.7563683", "text": "private String generateId() {\n StringBuilder randomId = new StringBuilder();\n\n var rand = new Random();\n\n for (int i = 0; i < 9; i++) {\n randomId.append(\n rand.nextInt(10));\n }\n\n return randomId.toString();\n }", "title": "" }, { "docid": "330e0e5b67405521d373d7bf1a83a3c9", "score": "0.74507666", "text": "private int generateRandomId(){\n int randomId = new Random().nextInt(20);\n while(!validId(randomId)){\n randomId = new Random().nextInt(20);\n }\n return randomId;\n }", "title": "" }, { "docid": "5f0014bd4454a99b6ee87eeff9b68a1b", "score": "0.7313254", "text": "private void generateID() {\n\t\tRandom rand = new Random();\n\t\t// generate 7-digit random number\n\t\tthis.id = Integer.toString(rand.nextInt(9000000) + 1000000);\n\t}", "title": "" }, { "docid": "3733346d9f3f4ce22c5f49cb517a0dc7", "score": "0.72192514", "text": "String generateId();", "title": "" }, { "docid": "72ec5462112e8889334025f4ac686390", "score": "0.7201263", "text": "public String genRandID()\n throws java.rmi.RemoteException{\n Random rand = new Random();\n String randId = String.format(\"%04d\", rand.nextInt(10000));\n return randId;\n }", "title": "" }, { "docid": "b35ad663fdbbbd0397d8d3c06f309cbe", "score": "0.71643525", "text": "private String generateId() {\n Random random = new Random();\n return String.valueOf(random.nextLong() + System.currentTimeMillis());\n }", "title": "" }, { "docid": "ea4dbc3c30555dec9c7d83ca10c3bbf1", "score": "0.71520513", "text": "public String randomIdentifier() {\n StringBuilder builder = new StringBuilder();\n while(builder.toString().length() == 0) {\n int length = rand.nextInt(5)+5;\n for(int i = 0; i < length; i++)\n builder.append(lexicon.charAt(rand.nextInt(lexicon.length())));\n if(identifiers.contains(builder.toString())) \n builder = new StringBuilder();\n }\n return builder.toString();\n }", "title": "" }, { "docid": "65ec04b23a684d645870d34fff7c731e", "score": "0.7118289", "text": "public String generateID() {\n\n Random letterR = new Random();\n String letters = \"BCDFGHJKLMNPQRSTVWXYZ\";\n\n String randomLetter = \"\" + letters.charAt(letterR.nextInt(21)) + letters.charAt(letterR.nextInt(21)) + letters.charAt(letterR.nextInt(21));\n\n // (int) casts the double from the Math.random into an integer\n // (900)+100 sets the range of the random numbers (max-min+1)+min ie. (999-100+1)+100\n int number;\n\n number = (int) Math.floor(Math.random() * (9000) + 1000);\n\n String studentNum = randomLetter + \"\" + number;\n return studentNum;\n }", "title": "" }, { "docid": "717f1fe8846d5f7ea35aaf5396451e30", "score": "0.71169394", "text": "public String genID() {\r\n\t\tString numbs = \"0123456789\";\r\n\t\tint n = 9;\r\n\t\tStringBuilder sb = new StringBuilder(n);\r\n\t\tfor(int j = 0; j < n; j++) {\r\n\t\t\tint index = (int) (numbs.length() * Math.random());\r\n\t\t\tsb.append(numbs.charAt(index));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "title": "" }, { "docid": "b523a258a55649233022e23e765834f5", "score": "0.71003354", "text": "public String generateID(){\r\n\t\tString id;\r\n\t\tint nameLength = this.name.length();\r\n\t\tif (nameLength > 6){\r\n\t\t\tnameLength = 6;\r\n\t\t}\r\n\t\tid = this.name.substring(0, nameLength) + singletonTheaterPatronIdServer.getNewIdCounter();\r\n\t\treturn id;\r\n\t}", "title": "" }, { "docid": "37046e3f8ef1db41da7f78de18b8a82f", "score": "0.7049254", "text": "private final String generate( int length)\r\n {\n return Identifier.generate( random, length);\r\n }", "title": "" }, { "docid": "95f3b501ecdf3b2e339d939d2af0680c", "score": "0.6966877", "text": "public static String randomStringGenerator()\n {\n \t int lLimit = 97; \n \t int rLimit = 122; \n \t int targetStringLength =10;\n \t Random random = new Random();\n String generatedString = random.ints(lLimit, rLimit + 1)\n \t .limit(targetStringLength)\n \t .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append)\n \t .toString();\n return \"mano.\"+generatedString;\n }", "title": "" }, { "docid": "d4b84e0bc9c0075650ee571966343dac", "score": "0.68790483", "text": "public void generateID(){\n accountNum =(int)(Math.random()*899999)+100000; \n }", "title": "" }, { "docid": "682d84bb413db6363504b8cb98a1ab1b", "score": "0.68784714", "text": "public static String randomStringGenerator()\n {\n \t int lLimit = 97; \n \t int rLimit = 122; \n \t int targetStringLength =10;\n \t Random random = new Random();\n String generatedString = random.ints(lLimit, rLimit + 1)\n \t .limit(targetStringLength)\n \t .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append)\n \t .toString();\n return \"mano.\"+generatedString;\n }", "title": "" }, { "docid": "81d424583d081d4b2ccf8c2ee204bbb2", "score": "0.684899", "text": "private String generatePeerId() {\n String alphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\";\n\n StringBuilder sb = new StringBuilder(20);\n\n for (int i = 0; i < 20; i++) {\n int index = (int) (alphaNumericString.length() * Math.random());\n sb.append(alphaNumericString.charAt(index));\n }\n return sb.toString();\n }", "title": "" }, { "docid": "1f3694bc40262f561ff8496ce0dcac81", "score": "0.6842372", "text": "private String idsGenerator(){\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat df = new SimpleDateFormat(\"ddMMyyyy\");\n String date = df.format(cal.getTime());\n Random random = new Random();\n int min = 1000, max = 9999;\n\n int randomNum = random.nextInt((max-min)+1)+min;\n String idString = date+String.valueOf(randomNum);\n return idString;\n }", "title": "" }, { "docid": "86f160e7dc90198e48b2715468f61830", "score": "0.68342793", "text": "private String newUniqueId() {\n\t\treturn UUID.randomUUID().toString().substring(0, Math.min(toString().length(), 10));\n\t}", "title": "" }, { "docid": "b08bad0c2547ef64f6ff1c44716f6f16", "score": "0.6826219", "text": "protected static String randomString() {\n return Long.toString((new Random()).nextLong(), 36);\n }", "title": "" }, { "docid": "3c8e96c67ee32d2956b115525c1ab551", "score": "0.6804521", "text": "private static int generateResourceID(){\n Random random = new Random();\n return random.hashCode();\n }", "title": "" }, { "docid": "151b6add27a731a6624cc050ffa54a8a", "score": "0.67622155", "text": "@Override\r\n\tpublic String getID(String input) {\n\t\t\r\n\t\tint length = 10;\r\n\t boolean useLetters = true;\r\n\t boolean useNumbers = false;\r\n\t String generatedString = RandomStringUtils.random(length, useLetters, useNumbers);\r\n\t\tSystem.out.println(generatedString);\r\n\t\treturn generatedString;\r\n\t}", "title": "" }, { "docid": "8924de62eaf08813aed059d353352ac9", "score": "0.6761735", "text": "public static String createObjectID() {\r\n return Long.toString(g_nextDocID.incrementAndGet());\r\n }", "title": "" }, { "docid": "6bdb74ed9c2c5acd0fc0ab0ea1140f5f", "score": "0.67555994", "text": "private int getID(){\n\t\tRandom r = new Random();\n\t\treturn r.nextInt(100000000);\n\t}", "title": "" }, { "docid": "008ee226876cb9c5696f4e8be21e21fd", "score": "0.67527676", "text": "public static String getUniqueID()\r\n {\r\n String str=new String(\"QAa0bcLdUK2eHfJgTP8XhiFj61DOklNm9nBoI5pGqYVrs3CtSuMZvwWx4yE7zR\");\r\n \tStringBuffer sb=new StringBuffer();\r\n \tRandom r = new Random();\r\n \tint te=0;\r\n \tfor(int i=1;i<=4;i++){\r\n \t\tte=r.nextInt(62);\r\n \t\tsb.append(str.charAt(te));\r\n \t}\r\n \treturn sb.toString();\r\n }", "title": "" }, { "docid": "b52596026b65ba7087db41dadbda4012", "score": "0.673037", "text": "public static String generateNewID() {\n // Get the new ID from the database\n int nextId = 1;\n try {\n nextId = ((BigDecimal) DatabaseConnector.getInstance().executeQuery(\"SELECT MAX(ID) AS ID FROM PHOTO\").getDataFromRow(0, \"ID\")).intValue() + 1;\n } catch (Exception ex) {\n }\n\n long ticks = Calendar.getInstance().getTime().getTime();\n\n SecureRandom rand = new SecureRandom();\n long rand_val = ticks % nextId * rand.nextInt();\n\n StringBuilder sb = new StringBuilder();\n sb.append(nextId).append(ticks).append(rand_val).append(ticks);\n String total = sb.toString();\n\n int index = 0;\n while (index < total.length() - 2) {\n String _2Chars = total.substring(index, index + 2);\n try {\n int value = Math.abs(Integer.parseInt(_2Chars));\n\n if (value < 26) {\n // Replace the character\n sb = new StringBuilder(total);\n sb.delete(index, index + 2);\n sb.insert(index, (char) (97 + value));\n total = sb.toString();\n } else {\n if (rand.nextInt() % 10 < 5) {\n value %= 26;\n sb = new StringBuilder(total);\n sb.delete(index, index + 2);\n sb.insert(index, (char) (97 + value));\n total = sb.toString();\n }\n }\n } catch (Exception ex) {\n }\n\n index++;\n }\n\n if (total.length() > 15) {\n total = total.substring(0, 15);\n } else if (total.length() < 15) {\n while (total.length() < 15) {\n total += (char) (65 + rand.nextInt(26));\n }\n }\n\n total = total.replaceAll(\"o\", \"0\").toUpperCase();\n\n // Check if the final UID exists in the database\n DataTable dt = DatabaseConnector.getInstance().executeQuery(\"SELECT COUNT(CODE) AS COUNT FROM PHOTO WHERE CODE=\\'\" + total + \"\\'\");\n if (dt != null && dt.containsData()) {\n if ((long) dt.getDataFromRow(0, \"COUNT\") != 0) {\n total = classes.domain.Picture.generateNewID();\n System.out.println(\"code was already used\");\n }\n }\n return total;\n }", "title": "" }, { "docid": "5d4e9d612be08e2e5f7793905fcdfcc6", "score": "0.6725324", "text": "private static String generateRandomString() {\r\n\t\tSecureRandom secRandom = new SecureRandom();\r\n\t\treturn new BigInteger(130, secRandom).toString(32).toUpperCase();\r\n\t}", "title": "" }, { "docid": "aab87460f5e29f748751cb5a4c3eb6ef", "score": "0.6681466", "text": "private String createRandomString() {\n\t\tint leftLimit = 97; // letter 'a'\n\t\tint rightLimit = 122; // letter 'z'\n\t\tint targetStringLength = 10;\n\t\tRandom random = new Random();\n\n\t\tString generatedString = random.ints(leftLimit, rightLimit + 1).limit(targetStringLength)\n\t\t\t\t.collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();\n\n\t\treturn generatedString;\n\t}", "title": "" }, { "docid": "e5266baa623e34d1ba71e2a15a2dafb7", "score": "0.6620321", "text": "public Integer generarID() {\r\n\t\tRandom rdn = new Random();\r\n\t\treturn rdn.nextInt(1000);\r\n\t}", "title": "" }, { "docid": "93f62eb84480bd7212ba6e72c16e0f17", "score": "0.6576484", "text": "public static String getRandomString() {\n \treturn new BigInteger(130, RANDOM).toString(32);\n }", "title": "" }, { "docid": "ee822c22e0de966e61702ea55ee20245", "score": "0.65734977", "text": "public int generateId();", "title": "" }, { "docid": "70f5422edb039d4fb94959ff66677ff7", "score": "0.6535189", "text": "public static String generateTenDigitRandom() {\n return String.valueOf((long) Math.floor(Math.random() * 9000000000L) + 1000000000L);\n\n }", "title": "" }, { "docid": "2e74a4864e9d0a4f05415e1c52294d5f", "score": "0.65261316", "text": "private Long generateId()\n {\n \treturn COUNTER++;\n }", "title": "" }, { "docid": "39d4b741ad065e616e5e34c8e57b540d", "score": "0.6521283", "text": "public static String generateUniqueID() {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMddHHmmss\"); // we have to specify the format\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString uniqueid = sdf.format(cal.getTime());\n\t\t\treturn uniqueid;\t\t\n\t\t}", "title": "" }, { "docid": "e395853496adc530dcfffe003e24d071", "score": "0.64869213", "text": "private String generateRandomString() {\n String characters = \"abcdefghijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVXYZ1234567890\";\n int length = 20;\n Random rnd = new Random();\n\n char[] text = new char[length];\n for(int i = 0; i < length; i++) {\n text[i] = characters.charAt(rnd.nextInt(characters.length()));\n }\n\n return new String(text);\n }", "title": "" }, { "docid": "6b983d31c961a615a7de58e9decd7875", "score": "0.6483267", "text": "private String generateRandomUniqueTag() {\r\n final UUID uuid = UUID.randomUUID();\r\n String str_uuid = Long.toString(uuid.getLeastSignificantBits(), 94);\r\n return TAG_PREFIX + str_uuid;\r\n }", "title": "" }, { "docid": "0951a68753ab8898909092164baf4587", "score": "0.6478388", "text": "public String generateID(){\n\t\treturn generator.generateIdentifier();\n\t}", "title": "" }, { "docid": "9e75f5c3d5cd37f61880d8f6c4c2c292", "score": "0.64641386", "text": "private static String generateId() {\n\t String appender = String.valueOf(System.nanoTime());\n\t\treturn \"item_\" + appender.substring(appender.length() - 4, appender.length() - 1);\n\t}", "title": "" }, { "docid": "5f8e4b9045d0a26463b30c98f66861b2", "score": "0.6462109", "text": "private Long getRandomSeatId(){\n \tint upper = 100;\n \tint lower = 1;\n \tint r = (int) (Math.random() * (upper - lower)) + lower;\n \treturn Long.parseLong(String.valueOf(r));\n }", "title": "" }, { "docid": "855134fe9cd12cc92e017f8ab816094d", "score": "0.6450219", "text": "public static int generateVoterID(){\t\t\n\t\tRandom randomGenerator = new Random();\n\t\tint ID = randomGenerator.nextInt(1000000000);\n\t\treturn ID;\n\t}", "title": "" }, { "docid": "42fef60478babc3dc236a6b7a2fdc7d4", "score": "0.64294565", "text": "protected String generateUID() {\n\t\tUID id = null;\n\t\tfor (int idx = 0; idx < 10; ++idx) {\n\t\t\tid = new UID();\n\t\t}\n\t\treturn id.toString();\n\t}", "title": "" }, { "docid": "4ef64eee72f7789cd744efcd3dcd9f11", "score": "0.641631", "text": "private byte[] generateRandomID()\r\n\t{\r\n\t\t// Creating the random file ID\r\n\t\tbyte[] tmpRandomID = new BigInteger(ENCRYPTION_RANDOM_ID_LENGTH * 8, new Random(System.currentTimeMillis()))\r\n\t\t\t\t.toByteArray();\r\n\t\tbyte[] randomID;\r\n\t\t// Cutting off the first byte because BigInteger is bad\r\n\t\tif (tmpRandomID.length == ENCRYPTION_RANDOM_ID_LENGTH)\r\n\t\t{\r\n\t\t\trandomID = tmpRandomID;\r\n\t\t} else\r\n\t\t{\r\n\t\t\trandomID = new byte[ENCRYPTION_RANDOM_ID_LENGTH];\r\n\t\t\tSystem.arraycopy(tmpRandomID, tmpRandomID.length - ENCRYPTION_RANDOM_ID_LENGTH, randomID, 0,\r\n\t\t\t\t\tENCRYPTION_RANDOM_ID_LENGTH);\r\n\t\t}\r\n\r\n\t\treturn randomID;\r\n\t}", "title": "" }, { "docid": "e6978e5eca3a59b5f9c2eb4ab422253a", "score": "0.6415851", "text": "public String generatePid() {\n final String AB = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\n SecureRandom rnd = new SecureRandom();\n\n StringBuilder sb = new StringBuilder(8);\n for (int i = 0; i < 8; i++)\n sb.append(AB.charAt(rnd.nextInt(AB.length())));\n return sb.toString();\n }", "title": "" }, { "docid": "9423c601306e07c35b616f70adbe8980", "score": "0.63988507", "text": "private static String generateUniqueId()\r\n\t{\r\n\t\treturn UUID.randomUUID().toString();\r\n\t}", "title": "" }, { "docid": "1cc04909d4b81e65288033e991e5283a", "score": "0.63972265", "text": "private String generateSessionId() {\n\t\t\tint firstLetter = 65; // letter A\n\t\t\tint lastLetter = 90; // letter Z\n\t\t\tint length = 20;\n\t\t\tStringBuilder builder = new StringBuilder(length);\n\t\t\t\n\t\t\tfor(int i = 0; i < length; i++) {\n\t\t\t\tchar c = (char) ((int)(sessionRandom.nextFloat() * (lastLetter - firstLetter + 1)) + firstLetter);\n\t\t\t\tbuilder.append(c);\n\t\t\t}\n\t\t\t\n\t\t\treturn builder.toString();\n\t\t}", "title": "" }, { "docid": "d1f51c714dfe797fee9df9805028f346", "score": "0.6396634", "text": "public static int GenerateId(){\n gen_count += 1;\n return gen_count;\n }", "title": "" }, { "docid": "263ef83b63902d350016f3f355a3f27b", "score": "0.6396163", "text": "public static String getRandomString() {\n return getUUIDString().replace(\"-\", \"\");\n }", "title": "" }, { "docid": "c7fa7fe1383f1cd3aa68323508ad41d2", "score": "0.63886106", "text": "public String generateUniqueViewScopeId()\n {\n String key;\n do \n {\n key = Integer.toString(RANDOM_GENERATOR.nextInt());\n } while (storageMap.containsKey(key));\n return key;\n }", "title": "" }, { "docid": "40fc0e9055f623de482fb4d50c462ad0", "score": "0.6348307", "text": "public synchronized String generateId() {\n return String.valueOf(counter.getAndIncrement());\n }", "title": "" }, { "docid": "e736e1f850fada984d4f86387ff2ccdc", "score": "0.6344288", "text": "public static String generateId() {\r\n return UUID.randomUUID().toString();\r\n }", "title": "" }, { "docid": "1ecdd420039526d599ddc1606134584b", "score": "0.63416785", "text": "public static String generate20BytesKey() {\n ByteBuffer bb = ByteBuffer.wrap(new byte[16]);\n bb.putLong(UUID.randomUUID().getMostSignificantBits());\n bb.putLong(UUID.randomUUID().getMostSignificantBits());\n String result22BytesInASCII =\n StringUtils.newStringUtf8(Base64.encodeBase64(bb.array(), false)).replace(\"=\", \"\");\n String result20BytesInASCII =\n result22BytesInASCII.substring(0, result22BytesInASCII.length() - 2);\n return result20BytesInASCII;\n }", "title": "" }, { "docid": "6daf0cda89687d43ae62a2c387d06b21", "score": "0.6337307", "text": "private String generateKey()\n\t{\n\t\tint mod = 268435455; // 0xFFFFFFF, which is 7 characters (half of 14)\n\t\tint int1 = randomNumberGenerator.nextInt() % mod;\n\t\tint int2 = randomNumberGenerator.nextInt() % mod;\n\t\tString result;\n\t\tresult = Integer.toHexString(int1).toUpperCase();\n\t\tresult += Integer.toHexString(int2).toUpperCase();\n\t\tresult = result.substring(0, 14);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "817dfa7570283024a3f8c4bd10d78d52", "score": "0.6333567", "text": "private String generateId() {\n return DigestUtils.sha256Hex(String.format(\"%s%s\", this.name, this.version));\n }", "title": "" }, { "docid": "e343e9e4496f7bc637d97d0f09b17eb8", "score": "0.63242954", "text": "private int generateId(){\n\t\treturn nextId++;\n\t}", "title": "" }, { "docid": "1cba941305517fd6c31bd42077718060", "score": "0.63191974", "text": "private long generateID(){\n String incrementalString = RandomPasswordContainerCache.getIdIncrementalCounterCache().get(\n RandomPasswordContainerCacheConstants.INCREMENTAL_ID_COUNTER);\n\n long incrementalValue = 0;\n if(incrementalString != null){\n incrementalValue = Long.valueOf(incrementalString);\n ++incrementalValue;\n }\n RandomPasswordContainerCache.getIdIncrementalCounterCache().put(RandomPasswordContainerCacheConstants.\n INCREMENTAL_ID_COUNTER, String.valueOf(incrementalValue));\n return incrementalValue;\n }", "title": "" }, { "docid": "c58d3953267c17421366bd85d71dbfbc", "score": "0.6311383", "text": "private String generateRandomString() {\n /*\n * Creates an byte array of 10 elements\n * Each element is stored a random number between 65 to 122 */\n byte[] randomBytes = new byte[10];\n Random rnd = new Random();\n for (int i = 0; i < randomBytes.length; i++) {\n randomBytes[i] = (byte) (rnd.nextInt(122 - 65) + 65);\n }\n return new String(randomBytes, StandardCharsets.US_ASCII);\n }", "title": "" }, { "docid": "098bcd58e6bd245607ef1c1e834800e4", "score": "0.6305599", "text": "private static String generateRandomFilename(String filename) {\n Calendar c = Calendar.getInstance();\n if(filename.length()>50){ //keep most 50 char\n \tfilename = filename.substring(0, 50).trim();\n }\n filename = filename.replaceAll(\"\\\\s\", \"_\").replaceAll(\":\", \"\").replaceAll(\"\\\\*\", \"\");\n filename = \"\" + c.get(Calendar.YEAR) + \n \t\"-\" + (c.get(Calendar.MONTH)+1) + \n \"-\" + c.get(Calendar.DAY_OF_MONTH) +\n \"-\" + c.get(Calendar.HOUR_OF_DAY) +\n \"-\" + c.get(Calendar.MINUTE) +\n \"-\" + c.get(Calendar.SECOND) +\n \"-\" + filename;\n return filename;\n }", "title": "" }, { "docid": "d89e9c71158652a83f1da19ad044f723", "score": "0.629999", "text": "@Nonnull\n public static String generateId() {\n return SecurityManagerUtil.generateRandomNonceHex(GENERATED_SESSION_ID_LENGTH / 2);\n }", "title": "" }, { "docid": "cfb6bae830bffb710199c83189f4b2b3", "score": "0.6282738", "text": "private void generateNewId(){\r\n\t\tid = IdManager.getInstance().getNewId();\r\n\t}", "title": "" }, { "docid": "931b9e4a1529ad0daed3bd05d61b8871", "score": "0.62725645", "text": "private static String generateID(String year) {\n\t\treturn (year+Integer.toString(Student.object_count));\n\t\t\n\t}", "title": "" }, { "docid": "b4a51d82b2d083adf538b7321012599e", "score": "0.6264328", "text": "public static String getUniqueRandomString() {\n\n return String.valueOf(System.currentTimeMillis());\n\n }", "title": "" }, { "docid": "e31831375cf30f1c5609b02ea296fd1b", "score": "0.6263014", "text": "public abstract String getIdentifier(int max_length);", "title": "" }, { "docid": "f99b2fdc2e344f3aa27590f4b26aea4f", "score": "0.6241252", "text": "protected String getRandomString() {\n String RANDOMCHARS = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\n StringBuilder random = new StringBuilder();\n Random rnd = new Random();\n while (random.length() < 18) { // length of the random string.\n int index = (int) (rnd.nextFloat() * RANDOMCHARS.length());\n random.append(RANDOMCHARS.charAt(index));\n }\n String randomStr = random.toString();\n return randomStr;\n\n }", "title": "" }, { "docid": "686fb0b122d5f1755dbc35cc4c9d2f58", "score": "0.62378323", "text": "public static int generateID(){\r\n\t\t\r\n\t\t return instance.nextId++;\r\n\t}", "title": "" }, { "docid": "425a43bce08618286b1173456db3c8ba", "score": "0.6233456", "text": "public static synchronized String createID() {\r\n\t\treturn String.valueOf(idCounter++);\r\n\t}", "title": "" }, { "docid": "93a91866a1d73c62a128912d72d867f7", "score": "0.6233332", "text": "private static synchronized String createID() {\n\t return String.valueOf(idCounter++);\n\t}", "title": "" }, { "docid": "a28b12ad32045e90b264d137c0b4d8ee", "score": "0.6223789", "text": "private String generateReceiptNumber() {\r\n final int RECEIPT_NUMBER_LENGTH = 10;\r\n Random rand = new Random();\r\n String receiptNumberString = \"1234567890\";\r\n StringBuilder receiptNumberSb = new StringBuilder();\r\n for(int i = 0; i < RECEIPT_NUMBER_LENGTH; i++) {\r\n receiptNumberSb.append(receiptNumberString.charAt(rand.nextInt(RECEIPT_NUMBER_LENGTH)));\r\n }\r\n return receiptNumberSb.toString();\r\n }", "title": "" }, { "docid": "423afab4aa9160c0f0c2bd24f0419c40", "score": "0.62229127", "text": "public static String genDmpid() {\r\n Random random = new Random();\r\n String rs = String.valueOf(random.nextInt(1000000000));\r\n if (rs.length() < 9) {\r\n for (int ct = 0; ct < 9 - rs.length(); ct++) {\r\n rs = \"0\" + rs;\r\n }\r\n }\r\n return String.valueOf(new Date().getTime()) + \"-\" + rs;\r\n }", "title": "" }, { "docid": "d7914f09007ed3abaa964b03cb36fb1f", "score": "0.6222059", "text": "public static String generateRandomDni() {\r\n int MAX = 99999999; \r\n int randomNum = (int) (Math.random() * MAX);//random 8 digits\r\n // Calculate the letter of the dni that corresponds to the number\r\n String validChars = \"TRWAGMYFPDXBNJZSQVHLCKE\";\r\n // Concatenate all and returns a dni\r\n return String.valueOf(randomNum) + validChars.charAt(randomNum % 23);\r\n }", "title": "" }, { "docid": "fd813af76c8e258f19d8b6123b80429a", "score": "0.62215066", "text": "public static String randonString() {\n \tString generateString1=RandomStringUtils.randomAlphabetic(5);\n\t\treturn generateString1;\n \t\n }", "title": "" }, { "docid": "1c67ad3e161943db609a683dd55e821a", "score": "0.62194955", "text": "private String getRandomCharacters() {\n\t\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyz\".toUpperCase().toCharArray();\n\t\t\tStringBuilder sb = new StringBuilder(20);\n\n\t\t\tfor (int i = 0; i < 20; i++) {\n\t\t\t\tchar c = chars[sessionRandom.nextInt(chars.length)];\n\t\t\t\tsb.append(c);\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}", "title": "" }, { "docid": "5bb87065687d9da75ae83aa237e60fe3", "score": "0.6215022", "text": "public String pwdGenerate() {\n \tint genNo = 10000000;\n\t\tRandom r = new Random( System.currentTimeMillis() );\n\t\tint generatedNo = ((1 + r.nextInt(10)) * genNo + r.nextInt(genNo));\n\t return Integer.toString(generatedNo); \t\n }", "title": "" }, { "docid": "d558cd03595a5db572da390a4cbff9f3", "score": "0.62058663", "text": "public static String generateGUID() {\n\t\t// get time (always different value even if the resolution of the clock\n\t\t// is small)\n\t\tlong time = getNewTime();\n\t\t// get random number based on time\n\t\trnd.setSeed(time);\n\t\trnd.nextBytes(bytes);\n\t\tStringBuilder guid = new StringBuilder();\n\t\tfor (int i = 0; i < bytes.length; ++i) {\n\t\t\tguid.append(bytes[i] ^ mac[i % mac.length]);\n\t\t}\n\t\tSystem.out.println(guid.toString());\n\t\treturn guid.toString();\n\t}", "title": "" }, { "docid": "4fe54a450bbda2313958ac493319417f", "score": "0.6202804", "text": "public static String generateGUID() {\n\t\treturn UUID.randomUUID().toString();\n\t}", "title": "" }, { "docid": "d393b8b6e99a67d399d33c1c469cb843", "score": "0.6175563", "text": "private static int generateID() {\n\t\treturn m_idGenerator++;\n\t}", "title": "" }, { "docid": "f9806de03dbfe29cacb59e13182f1c6c", "score": "0.6171833", "text": "java.lang.String getDocId();", "title": "" }, { "docid": "f27d1ae56567f17fe2802c9b0fa7074e", "score": "0.6169616", "text": "public String IDgenerator(String country) {\n \n String first3Letters = country.substring(0, 3);\n Random num = new Random(); // Genearting random 3 digit number\n int last3Digits = num.nextInt((999 - 0) + 1) + 0; \n String ID = first3Letters + last3Digits;\n regID = ID;\n return ID;\n \n }", "title": "" }, { "docid": "bc5bc94dfcf63ddcc37bcf444fd1fee1", "score": "0.61635804", "text": "private static String getRandomFileName() {\n\t\tint randomNum = random.nextInt(89999)+10000;\n\t\tString newTimeStr = simpleDateFormat.format(new Date());\n\t\treturn \"/\"+randomNum+newTimeStr;\n\t}", "title": "" }, { "docid": "a59d7053e93c4957d8f31866b379ff84", "score": "0.6155983", "text": "private String generateNewId(Map<String, Bookmark> savedBookmarks) {\n Long id = savedBookmarks.size() + 1L;\n while (savedBookmarks.containsKey(id.toString())) {\n id += 1L;\n }\n return id.toString();\n }", "title": "" }, { "docid": "f340a29a71917d426d9f3098f5e577b1", "score": "0.615399", "text": "public static String genBlobId() {\n\t\treturn PROVEN_BLOB_NS + UUID.randomUUID().toString();\n\t}", "title": "" }, { "docid": "98ee90f184934026bc45d15b3b1459eb", "score": "0.61535555", "text": "public static String generateUniqueID2() {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HHmmss\"); // we have to specify the format\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString uniqueid = sdf.format(cal.getTime());\n\t\t\treturn uniqueid;\t\t\n\t\t}", "title": "" }, { "docid": "102ae8e6b83b48bea62dced7a21cc19a", "score": "0.6149499", "text": "public static String getRandomAlphanumericString(int length){\n\t\tlogger.debug(\"Start--getRandomAlphanumericString()\");\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry{\n\t\t\tRandom rnd = new Random();\n\t\t\tfinal String sample = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\t\t\tfinal int range = sample.length();\n\t\t\tfor(int i = 0; i < length; i++) {\n\t\t\t\tsb.append(sample.charAt(rnd.nextInt(range)));\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\tlogger.error(\"Error occured in getting radom 8 alphanumeric code\"+e.getStackTrace());\n\t\t}\n\t\tlogger.debug(\"End--getRandomAlphanumericString()\");\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "74be334b6b268eabbdfb181d27cb8720", "score": "0.614759", "text": "private String generateRandomPassword() {\n\t\treturn \"som3R@nd0mP@$$word\";\n\t}", "title": "" }, { "docid": "9000c68c28ed43eee212f7c54460c8c6", "score": "0.6128048", "text": "void generateDoctorID(int eorder, int tot) {\n docid = docname.substring(0, 3).toUpperCase();\n String temp = String.valueOf(eorder);\n for (int i = 0; i < (tot - temp.length()); ++i) {\n docid += \"0\";\n }\n docid += temp;\n System.out.println(\"Generated Doctor ID: \" + docid);\n }", "title": "" }, { "docid": "2ca04014c8ce73a54e8aff0eb10eb7fe", "score": "0.6120429", "text": "public static String randomSecretWordGenerator() {\n var leftLimit = 48; // 0 (From ASCII TABLE)\n var rightLimit = 57; // 9 (From ASCII TABLE)\n var secretCodeLength = 4; // Secret Code must contain only 4 numbers\n var random = new Random();\n\n return random.ints(leftLimit, rightLimit + 1)\n .limit(secretCodeLength)\n .collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();\n }", "title": "" }, { "docid": "3640faf473e430e1d31eac66506ead4d", "score": "0.60980415", "text": "public int newID() {\r\n\t\t\t\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tint newId = rand.nextInt(8999999) + 1000000;\r\n\t\t\t\r\n\t\t\tif (!idExists(newId)) {\r\n\t\t\t\treturn newId;\r\n\t\t\t}\r\n\t\t\treturn newID();\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "918c9d8e3a7f69e475d334dfafcf95eb", "score": "0.608139", "text": "static String randomString(){\n\t\tString s = UUID.randomUUID().toString();\n\t\t//System.out.println(s);\n\t\treturn s;\n\t}", "title": "" }, { "docid": "2e24f993528114d1cc40796adc59b52b", "score": "0.6071091", "text": "public String genkey() {\n String SALTCHARS = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv1234567890\";\n StringBuilder salt = new StringBuilder();\n Random rnd = new Random();\n while (salt.length() < 15) { // length of the random string.\n int index = (int) (rnd.nextFloat() * SALTCHARS.length());\n salt.append(SALTCHARS.charAt(index));\n }\n String saltStr = salt.toString();\n return saltStr;\n }", "title": "" }, { "docid": "07f265b60c008d78a1caf7f4b1da986b", "score": "0.60659146", "text": "public String GenerateKey() {\n\t\tString key = \"\"; // First, an empty string is defined\n\t\tfor (int i = 0; i < 64; i++) {\n\t\t\tdouble check = Math.random() * 100; // Then, a random number between 0 and 100 is generated\n\t\t\tif (check > 50) { // if the number is over 50, then a 1 is added to the string\n\t\t\t\tkey += \"1\";\n\t\t\t} else { // otherwise, a 0 is added to the string\n\t\t\t\tkey += \"0\";\n\t\t\t}\n\t\t} // this is repeated 64 times to generate a 64 bit key\n\t\treturn key;\n\n\t}", "title": "" }, { "docid": "1ef3a4698724dc761dd72864baec35e9", "score": "0.60567605", "text": "long getUniqueid();", "title": "" }, { "docid": "cc6594b89ffeb94de2b4059ec52d6e6c", "score": "0.6055591", "text": "private final Long generateauthorKey() {\n \treturn Long.valueOf(++authorKey);\n }", "title": "" }, { "docid": "38e54709c5db6b14766e5739d4ce4c52", "score": "0.6051912", "text": "public static String getId() {\n return String.format(\"_%s\", UUID.randomUUID().toString());\n }", "title": "" }, { "docid": "9d668bed7b8513ac09ff37b2a1374720", "score": "0.60466695", "text": "public String generateID() throws FileNotFoundException\n\t{\n\t\tString uniqID = null;\n\t\tScanner scanner = new Scanner(new FileInputStream(this.database));\n\t\t\n\t\tint uniqIDnum = 1;\n\n\t\twhile (scanner.hasNextLine())\n\t\t{\n\t\t scanner.nextLine();\n\t\t uniqIDnum++;\n\t\t}\n\t\t\n\t\tuniqID = Integer.toString(uniqIDnum);\n\t\tscanner.close();\n\t\treturn uniqID;\n\t}", "title": "" }, { "docid": "13b079e40dcbe2fe72e2f2c1a621a35e", "score": "0.6029892", "text": "static private String getRandomString(int len) {\n \t//String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n \tString chars = \"abcdefghjjklmnopqrstuvwxyz\";\n \tRandom rnd = new Random(); \t\n StringBuilder sb = new StringBuilder( len ); \n for( int i = 0; i < len; i++ ) \n sb.append(chars.charAt(rnd.nextInt(chars.length()))); \n return sb.toString();\n }", "title": "" }, { "docid": "21a5455ec68449094e9963086776fddd", "score": "0.6027076", "text": "private String generateToken(){\n SecureRandom random = new SecureRandom();\n byte bytes[] = new byte[20];\n random.nextBytes(bytes);\n String token = bytes.toString();\n return token;\n }", "title": "" }, { "docid": "7eefa1e56ca22a29ddc90fe5402aa579", "score": "0.6023204", "text": "public String getRandomString(int length) {\n String k = new BigInteger(400, random).toString(32);\r\n k = k.substring(0, length);\r\n return k;\r\n }", "title": "" }, { "docid": "321ea2fafdf2d193620efdecd2622260", "score": "0.6022032", "text": "private String randomPrincipal() {\n return randomAlphaOfLengthBetween(4, 12) + \"_test\";\n }", "title": "" }, { "docid": "cc840608a9259f2b35ff7370024042a6", "score": "0.6016274", "text": "private String getRandomString(int length) {\n\t\tStringBuilder b = new StringBuilder();\n\t\tint next;\n\t\tfor (int i=0; i<length; i++) {\n\t\t\tnext = gen.nextInt(62);\n\t\t\tif (next <26) b.append((char)(next + 65));\n\t\t\telse if (next < 52) b.append((char)((next-26) + 97));\n\t\t\telse b.append((char)((next-52) + 48));\n\t\t}\n\t\treturn b.toString();\n\t}", "title": "" }, { "docid": "832c9519c075d34b1cf7bf8217e2183d", "score": "0.600713", "text": "public static String getRandomString(int length){\n String str = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n Random random = new Random();\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < length; i++) {\n int number = random.nextInt(62);\n sb.append(str.charAt(number));\n }\n return sb.toString();\n }", "title": "" }, { "docid": "a5e39fd4925a44e3629bd49239f8811f", "score": "0.6006258", "text": "public static String generateRandomPassword() {\n\t\tStringBuilder sb = new StringBuilder(16);\n\t\tSecureRandom random = new SecureRandom();\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tint c = random.nextInt(62);\n\n\t\t\tif (c <= 9) {\n\t\t\t\tsb.append(String.valueOf(c));\n\t\t\t} else if (c < 36) {\n\t\t\t\tsb.append((char) ('a' + c - 10));\n\t\t\t} else {\n\t\t\t\tsb.append((char) ('A' + c - 36));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "8d8e8434f86e0795c5d739863f06717c", "score": "0.6000502", "text": "public String randomString()\r\n {\r\n String AB = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\r\n Random random = new Random();\r\n int great = AB.length();\r\n int temp;\r\n String random_char = \"\";\r\n for (int i = 0; i < 4; i++)\r\n {\r\n temp = (int) (random.nextFloat() * great);\r\n random_char = random_char.concat(Character.toString(AB.charAt(temp)));\r\n }\r\n return random_char;\r\n }", "title": "" }, { "docid": "c903ad09f04deee05cc22a5fcbe4b186", "score": "0.5996238", "text": "public final void generateId() {\n this.id = UUID.randomUUID().toString();\n }", "title": "" } ]
56343b78db00fe4fdf6c21720529db6c
Handles the HTTP POST method.
[ { "docid": "a4d6191746ad49b4def8ce5d514d3b1a", "score": "0.0", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" } ]
[ { "docid": "4e843ab3fbf537d9a47083a83228b04d", "score": "0.73853797", "text": "public HttpResponse post() {\n return sendRequest(HttpMethod.POST);\n }", "title": "" }, { "docid": "562775c0b0cdcbdaf975e723cab24ae1", "score": "0.70231426", "text": "public Response post() throws IOException;", "title": "" }, { "docid": "b92531e85b8ca3e7b1ac9bfa50670e20", "score": "0.7018471", "text": "@Override\n\tprotected void post(HttpServletRequest req, HttpServletResponse res,\n\t\t\tController controller) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "6edd4164accda764cc979bb0cfe839d5", "score": "0.6877996", "text": "@Override\r\n\tprotected Method getMethod() {\n\t\treturn Method.POST;\r\n\t}", "title": "" }, { "docid": "bffefe4bee56c4b02405cc42c418606b", "score": "0.6771609", "text": "public void doPost(String path, HttpServletRequest request,\n HttpServletResponse response) throws Exception {\n\n }", "title": "" }, { "docid": "caa7710ebe5f633a4067605dbbce674f", "score": "0.6671902", "text": "@Override\n protected void doPost(final HttpServletRequest request,\n final HttpServletResponse response)\n throws ServletException, IOException {\n\n \n }", "title": "" }, { "docid": "bb8a79b3986ea42bb6905d3cb5777179", "score": "0.6639512", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}", "title": "" }, { "docid": "b7bea0fb83c54d3e44504e5796af0549", "score": "0.6619599", "text": "public String handleHTTPPost(freenet.support.api.HTTPRequest request) { return null; }", "title": "" }, { "docid": "c1380cd423528431869f7df1afb97892", "score": "0.6596474", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "2d8cf33d3de0c4f92269daaa09f0d3f7", "score": "0.65620965", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processPostRequest(request, response);\n }", "title": "" }, { "docid": "37339971bf2b0019d1c66db1068226d4", "score": "0.6539559", "text": "@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "title": "" }, { "docid": "ef888987bb354b54337ae644308cab3a", "score": "0.65236866", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "title": "" }, { "docid": "6563ac4d9c91fb470ad53250b53f0567", "score": "0.6523533", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "6563ac4d9c91fb470ad53250b53f0567", "score": "0.6523533", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "6563ac4d9c91fb470ad53250b53f0567", "score": "0.6523533", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "651e0782c3a1484d11c4b3e72b98baa5", "score": "0.652061", "text": "public void postHandle(\r\n HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)\r\n throws Exception {\r\n logger.debug(\"post\" + request.getRequestURI());\r\n\r\n }", "title": "" }, { "docid": "0cab11c1728d2350fe5e3e52451dbfa3", "score": "0.65187013", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }", "title": "" }, { "docid": "6174fe2edfe3ae4836e89c272e3e8030", "score": "0.6514483", "text": "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException, ServletException {\n\t}", "title": "" }, { "docid": "6f33b81b232320aab4802a644be61524", "score": "0.6510847", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "title": "" }, { "docid": "6f33b81b232320aab4802a644be61524", "score": "0.6510847", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "title": "" }, { "docid": "83c82e3a14924a0f74f3728f39327750", "score": "0.651052", "text": "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "title": "" }, { "docid": "ee8c6d47d12307e30f874ca2a9c9c56c", "score": "0.64912283", "text": "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "title": "" }, { "docid": "55edde437763cec2bc18f7e3522f01e2", "score": "0.6479801", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }", "title": "" }, { "docid": "a075fc353c51a744d1b073d99d589c75", "score": "0.6470739", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "title": "" }, { "docid": "01e55ae546c5b5548db98002f716d560", "score": "0.6459773", "text": "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n }", "title": "" }, { "docid": "06fb96b093fea18f232a7a9aa3e620c8", "score": "0.64525247", "text": "@Override\n\tpublic int getHttpMethod() {\n\t\treturn Method.POST;\n\t}", "title": "" }, { "docid": "119e1e4a11f22f8d1a744d5a745aba52", "score": "0.64508176", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "dac34781d6c5dbddce97d08d1d3e7c99", "score": "0.6450473", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "dac34781d6c5dbddce97d08d1d3e7c99", "score": "0.6450473", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "title": "" }, { "docid": "32298a71950bff93b4ee3d515568f090", "score": "0.6447996", "text": "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "title": "" }, { "docid": "2b2e10fe3d64978baab24f3ee46fe609", "score": "0.6444257", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n try {\r\n processRequest(request, response);\r\n } catch (IOException ex) {\r\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "7e483e5ca388f07fcacd5aca685d14e6", "score": "0.6439792", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}", "title": "" }, { "docid": "5931a758c507ab7bfa49de1cfd33dd24", "score": "0.6437465", "text": "protected abstract void postHandle();", "title": "" }, { "docid": "cee296d08743936acb94a3ad0cf8cdea", "score": "0.64356387", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "73e028cde9ad8cd22c667ffd7e2f6da2", "score": "0.64326215", "text": "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n super.doPost(req, resp);\n }", "title": "" }, { "docid": "c74456693c4ab889a9546e2fbfb4e1df", "score": "0.6429089", "text": "protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.64188904", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.64188904", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.64188904", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.64188904", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "46ed5b49f691b4a4d1ff0aaf7cf9bec7", "score": "0.64188904", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "title": "" }, { "docid": "17d42186cb6489ad0dcd3d2e349777aa", "score": "0.6418086", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "17d42186cb6489ad0dcd3d2e349777aa", "score": "0.6418086", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "title": "" }, { "docid": "a3192814d742b23c7bc6d2067a31976c", "score": "0.6416105", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "8679a15500f9951a47cdb734dfc945a4", "score": "0.6393957", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) \nthrows ServletException, IOException {\n}", "title": "" }, { "docid": "aa1f050f677f3427d1985d96ee78900d", "score": "0.6389254", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }", "title": "" }, { "docid": "6d5eb610ff99e337566abadeb3440a58", "score": "0.6381575", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n\t}", "title": "" }, { "docid": "32c5f58906ef2b41fbb64390e2a73d4d", "score": "0.6377728", "text": "public void handlePOSTRequest(HttpExchange exchange) throws IOException {\n handleGETRequest(exchange);\n\n }", "title": "" }, { "docid": "5ef1cac4a8156c19172d4a9d952d9b61", "score": "0.6357264", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t\tif ( req.getContentLength() == -1 ) resp.sendError( HttpServletResponse.SC_LENGTH_REQUIRED );\n\t\telse if ( req.getParameter(\"url\") == null || req.getHeader(\"content-type\") == null ) resp.sendError( HttpServletResponse.SC_BAD_REQUEST,\"Parameter url and Content-type is necessary\" );\n\t\telse{\n\t\t\t\n\t\t\t\n\t\t\tBal bal = new Bal(); //create a BAL for this request\n\t\t\t\n\t\t\tAbstractTestModel model = ModelFactory.getInstance().createModel(req, bal); //create a model corresponding\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//to the post request content-type\n\t\t\t\n\t\t\tif( model != null ){\t\n\t\t\t\t\n\t\t\t\tString message = bal.getMessage(); //wait the model response\n\n\t\t\t\tCharset charset = Charset.forName(\"UTF-8\"); //send an UTF-8 encoded response\n\t\t\n\t\t\t\tresp.setContentType(\"text/xml; charset=UTF-8\");\n\t\t\t\tresp.setContentLength( message.getBytes( charset ).length );\n\t\t\t\tresp.getOutputStream().write( message.getBytes( charset ) );\n\t\t\t\n\t\t\t}else resp.sendError( HttpServletResponse.SC_NOT_IMPLEMENTED );\t\t\t\t\t\t\n\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "59ae833d7e7416680c4f6ab432bece51", "score": "0.63531774", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "title": "" }, { "docid": "59ae833d7e7416680c4f6ab432bece51", "score": "0.63531774", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "title": "" }, { "docid": "7a913606245913787caf652aefd04913", "score": "0.6350971", "text": "@Override\n\tprotected void jumbDoPost( HttpServletRequest req, HttpServletResponse resp )\n\t\t\tthrows ServletException, IOException\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a043cf416177abe40ef2eaad93965276", "score": "0.6350304", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoHandle(req, resp);\n\t}", "title": "" }, { "docid": "1c8fbdeb865c58bcb3d2a5eeb0e1158c", "score": "0.6341992", "text": "@Override\n public void handlePOST(CoapExchange exchange) {\n \t\n \t// Sets Blinds Status from POST request\n \ttry {\n \t\tString data = \"\";\n \t\t\tJSONObject json = new JSONObject(exchange.getRequestText());\n \t\t\tdata = json.getString(\"BlindsStatus\");\n \t\t\t\n \t\t\t// Checks if file exists and if not then, creates a file\n \t\t\tif(!Files.exists(Paths.get(\"EnvironmentData/Blinds.txt\")))\n \t{ \t\t\t\t\n \t\t\t\tif(!Files.exists(Paths.get(\"EnvironmentData\")))\n \t\t\t{\n \t\t\t\tFiles.createDirectory(Paths.get(\"EnvironmentData\"));\n \t\t\t} \t\t \t\t\n \t}\n \t\t\t\n \t\t\t// Writes values into file\n \t\t\tFiles.write(Paths.get(\"EnvironmentData/Blinds.txt\"), data.getBytes());\n \t\n \t\t\t// Sends response to POST request\n \tJSONObject jsonResponse = new JSONObject().put(\"message\",\"POST_REQUEST_SUCCESS\"); \t\n \texchange.respond(ResponseCode.CONTENT, jsonResponse.toString(), MediaTypeRegistry.APPLICATION_JSON);\n\t }\n\n\t catch (Exception e) {\n\t System.err.format(\"Exception: %s%n\", e);\n\t }\n \t\n\t\t}", "title": "" }, { "docid": "0523a6dc2d078ca897bcdde3b98905d6", "score": "0.63187194", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "title": "" }, { "docid": "0523a6dc2d078ca897bcdde3b98905d6", "score": "0.63187194", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6287011", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6287011", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6287011", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6287011", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6287011", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6287011", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6287011", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "119430eb111ccfff5400bdb533f1070d", "score": "0.6287011", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}", "title": "" }, { "docid": "9ec43439e3461a9308f30f9dac8e25e6", "score": "0.6270387", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}", "title": "" }, { "docid": "61316eef448886ba20cfa74e26bc8c7e", "score": "0.6266154", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t}", "title": "" }, { "docid": "30ceb6b2c1a34aeaa0bfcb2210d243d6", "score": "0.62588936", "text": "@Override\n public void doPost(HttpServletRequest req, HttpServletResponse resp) {\n try {\n InputStream input = req.getInputStream();\n Scanner sc = new Scanner(input, StandardCharsets.UTF_8.name());\n String jsonText = sc.useDelimiter(\"\\\\A\").next();\n ObjectMapper mapper = new ObjectMapper();\n\n Flight flight = mapper.readValue(jsonText, Flight.class);\n ManageFlight manageFlight = new ManageFlight();\n manageFlight.createFlight(flight);\n\n }catch(Exception e){\n FileLogger.getFileLogger().writeLog(\"Exception in the doPost method within the FlightDetailServlet Class.\", 2);\n }\n }", "title": "" }, { "docid": "e623b684bd845db8c71790e1086d439c", "score": "0.6246277", "text": "@Override\r\n\t\t\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "24aa41beaf2efe74eb02c9b37752f03b", "score": "0.6245649", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n \n }", "title": "" }, { "docid": "06e19f5928c46b8c1bd0bae7b72e13cc", "score": "0.6198025", "text": "public void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "06e19f5928c46b8c1bd0bae7b72e13cc", "score": "0.6198025", "text": "public void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\r\n\t}", "title": "" }, { "docid": "58c4400419c53bdea2f827b54264ae82", "score": "0.6196473", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String params = getRequestPostStr(request);\r\n processRequest(request, response, params);\r\n }", "title": "" }, { "docid": "91553e9750364b483b047481ea79feb7", "score": "0.61923116", "text": "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\thttpRequestHandler( req, resp);\n\t}", "title": "" }, { "docid": "3d46a9aa2c10b4882c7e3bad1c485b23", "score": "0.61880666", "text": "@Override\r\n\t protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t throws ServletException, IOException {\r\n\t processRequest(request, response);\r\n\t }", "title": "" }, { "docid": "c523df16b4b6849614103d45a7c1c48e", "score": "0.6176784", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "title": "" }, { "docid": "c523df16b4b6849614103d45a7c1c48e", "score": "0.6176784", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}", "title": "" }, { "docid": "e468f77a580bec847cc05d4083588d05", "score": "0.61643875", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n ResourceBundle bundle = ResourceBundle.getBundle(\"texts\", request.getLocale());\n String action = request.getPathInfo();\n switch (action) {\n\n case \"/submit\":\n //retrieve post data\n String login = request.getParameter(\"login\");\n String password = request.getParameter(\"password\");\n String password2 = request.getParameter(\"password2\");\n log.debug(\"SIGNUP: Username: \" + login + \" Passwd: \" + password);\n\n // try to create an account\n String error = getLoginsUtil().tryToCreateAnAccount(login, password, password2);\n if (error == null) { // everything ok\n getSessionService().createSessionLogin(request, login);\n response.sendRedirect(request.getContextPath() + Common.URL_EDIT);\n return;\n }\n request.setAttribute(\"error\", error); // display error\n request.getRequestDispatcher(Common.SIGNUP_JSP).forward(request, response);\n return;\n\n default:\n log.error(\"Unknown action \" + action);\n response.sendError(HttpServletResponse.SC_NOT_FOUND, \"Unknown action \" + action);\n }\n }", "title": "" }, { "docid": "dc0fdc05c51f03eb803cf75b8d2472ca", "score": "0.61616606", "text": "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\r\n\t}", "title": "" }, { "docid": "ea7a4ffb436f008cabccd8986a751f14", "score": "0.6160955", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t\tSystem.out.println(\"post handle called\");\n\t}", "title": "" }, { "docid": "8feda2a1aa40933e15d7449bc370650c", "score": "0.6157974", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tresponse.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n\t\tresponse.setContentType(\"application/json\");//specify return content\n\t\t\n\t\tString session = request.getParameter(\"session\");\n\t\tif (session != null && SessionUtil.sessions.get(session) != null && SessionUtil.sessions.get(session).getGrade() != 0) {\n\t\t\tString dbName = SessionUtil.sessions.get(session).getDbName();\n\t\t\tif (dbName != null) {\n\t\t\t\titemsDAO.setDbName(dbName);//initialize db connection\n\t\t\t\t\n\t\t\t\t//read buffer and convert it to the correct model (class)\n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(request.getInputStream()));\n\t\t\t\tString json = \"\";\n\t\t\t\tif (br != null)\n\t\t\t\t\tjson = br.readLine();\n\t\t\t\tGson gson = new GsonBuilder().create();\n\t\t\t\tErrorMessage result = itemsDAO.post(gson.fromJson(json, AddItem[].class));\n\t\t\t\tresponse.getWriter().write(new Gson().toJson(result));\n\t\t\t\tresponse.getWriter().close();\n\t\t\t}\n\t\t} else\n\t\t\tresponse.setStatus(401);//HTTP.UNAUTHORIZED status\n\t}", "title": "" }, { "docid": "9d15b0c0d21cef29653459fcef404b1b", "score": "0.6155373", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(DenunciaAddController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "dad05992f059324bb5e23058727207c6", "score": "0.61398786", "text": "private HttpResponseHandler doPost() {\n\t\tString requestMethod = \"\";\n\t\tint responseCode = 0;\n\t\tString responseCookie = \"\";\n\t\tString responseHeader = \"\";\n\t\n\t\tHttpResponse httpResponse = null;\n\t\tHttpResponseHandler serverResponse = new HttpResponseHandler(\n\t\t\t\trequest.getType(), request.getDataId());\n\t\ttry{\t\n\t\t\turlConnection = (HttpsURLConnection) url.openConnection();\n\t\t\turlConnection.setConnectTimeout(CONNECTION_TIMEOUT);\n\t\t\turlConnection.setDoOutput(true);\n\t\t\turlConnection.setDoInput(true);\n\t\t\turlConnection.setRequestProperty(\"connection-type\", request.getType());\n\t\t\turlConnection.setRequestProperty(\"poll-interval\", getInStringSeconds(request.getPollInterval()));\n\n\t\t\tif (ENABLE_COOKIE) {\n\t\t\t\turlConnection.setRequestProperty(\"Cookie\", cookieHeader);\n\t\t\t}\n\t\t\t\n\t\t\turlConnection.setRequestMethod(\"POST\");\n\t\t\trequestMethod = urlConnection.getRequestMethod();\n\t\t\turlConnection.connect();\n\n\t\t\tDataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream());\n\t\t\twr.writeBytes(request.getData());\n\t\t\twr.flush();\n\t\t\twr.close();\n\t\t\t\n\t\t\tresponseCode = urlConnection.getResponseCode();\n\t\t\trequestMethod = urlConnection.getRequestMethod();\n\t\t\t\n\t\t\tif (ENABLE_COOKIE) {\n\t\t\t\tcookieManager.put(uri, urlConnection.getHeaderFields());\n\t\t\t} else {\n\t\t\t\tcookieManager.getCookieStore().removeAll();\n\t\t\t}\n\t\t\t\n\t\t\tresponseCookie = cookieManager.getCookieStore().get(uri).toString();\n\t\t\tSystem.out.println(\"ResponseCoookie===>\"+responseCookie);\n\t\t\tif (!responseCookie.equalsIgnoreCase(\"[]\")) {\n\t\t\t\tserverResponse.setNewSession(true,DetailedStatuses.SUCCESS_NEW_SESSION);\n\t\t\t\tcookieHeader = responseCookie;\n\t\t\t}else{\n\t\t\t\tserverResponse.setNewSession(false,DetailedStatuses.SESSION_UPDATED);\n\t\t\t}\n\t\t\tresponseHeader = urlConnection.getHeaderFields().toString();\n\t\t\t\n\t\t\tStringBuffer payloadResponse = new StringBuffer();\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\turlConnection.getInputStream()));\n\t\t\tString inputLine;\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tpayloadResponse.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\t\t\t\n\t\t\tboolean isMorePackets = checkIsMorePackets(urlConnection);\n\t\t\thttpResponse = new HttpResponse(responseCode, requestMethod, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t payloadResponse.toString(), responseHeader, isMorePackets);\n\t\t\tserverResponse.setResponse(httpResponse);\n\t\t\tsetCommandNotOngoing();\n\t\t\treturn serverResponse;\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(APP_TAG + \" doSecurePost: \" + e.toString());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn serverResponse;\n\t}", "title": "" }, { "docid": "913a7e388534ff41a1f9bfa8257a3ca9", "score": "0.61368555", "text": "public void _post(HashMap<String, String> params) {\n setProgress();\n String outparams = \"\";\n String request = SERVER_ADDR + \"/post\";\n int status;\n try {\n //set connection properties\n conn = null; // this is just in case I have a lingering connection\n URL url = new URL(request);\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"POST\");\n conn.setDoOutput(true);\n conn.setConnectTimeout(15000);\n conn.setReadTimeout(15000);\n\n //start write to outputstream\n if (!params.isEmpty()) {\n OutputStreamWriter out = new OutputStreamWriter(conn.getOutputStream());\n for (HashMap.Entry<String, String> entry : params.entrySet()) {\n out.write(entry.getKey() + \"='\" + entry.getValue() + \"'&\");\n }\n out.close();\n }\n\n //parse response\n status = conn.getResponseCode();\n switch (status) {\n case 200:\n case 201:\n BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n br.close();\n resp = sb.toString();\n break;\n default:\n resp = \"No Response\";\n }\n } catch (MalformedURLException e) {\n e.printStackTrace();\n resp = \"Failed Url\";\n } catch (IOException e) {\n e.printStackTrace();\n resp = \"Failed IO\";\n } finally {\n conn.disconnect();\n }\n progressDialog.dismiss();\n }", "title": "" }, { "docid": "2a797c9031681d5ac683ae56d3c8f1a3", "score": "0.61355895", "text": "@Override\n\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "title": "" }, { "docid": "c6e04828819adf2231829448d1e7cfb0", "score": "0.6133594", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(PostServlet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "63db9efdf379a3337acc4cdab7755f28", "score": "0.6132948", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t// TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "b5783d2ada1a5806f9c978657e4c7ad2", "score": "0.6129122", "text": "@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {\n\r\n\t}", "title": "" }, { "docid": "1b1c95e1cedb8e47b737dd044bf08fa8", "score": "0.61278576", "text": "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" }, { "docid": "982cab3f5b42afa16e2ee44b1208d183", "score": "0.61165035", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}", "title": "" }, { "docid": "be94ce9f2730c7da46402ee992ab35b3", "score": "0.6112705", "text": "@Override\n public void postHandle(\n HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView)\n throws Exception {\n }", "title": "" }, { "docid": "7f0c8c29699855344872d7874a5541a5", "score": "0.6102718", "text": "public void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "798e7ad05448f37bd3d0584aaa300293", "score": "0.6098433", "text": "protected void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException \n { \n processRequest(request,response); \n }", "title": "" }, { "docid": "45c0cc8f7f9f6f0f05a33cf307d35b92", "score": "0.60975736", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t}", "title": "" }, { "docid": "45c0cc8f7f9f6f0f05a33cf307d35b92", "score": "0.60975736", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\n\t}", "title": "" }, { "docid": "ec8b7217a7ea7570a6349c1a80bc5c1d", "score": "0.6096788", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "ec8b7217a7ea7570a6349c1a80bc5c1d", "score": "0.6096788", "text": "@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "be344a772af5e298d69f9fc1f63c110e", "score": "0.6096763", "text": "@Override\n public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n }", "title": "" }, { "docid": "cf1961d49d812ad32941d1db0a089827", "score": "0.6089229", "text": "public abstract void handlePost(PageContext pageContext, Template template,\n\t\t\tVelocityContext templateContext) throws ServletException,\n\t\t\tIOException;", "title": "" }, { "docid": "3818114054955ac56433977d57d1748e", "score": "0.60889685", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}", "title": "" }, { "docid": "70cae84194466b8c248383d5ab276f7b", "score": "0.607908", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n try {\n // if sOAPAction is null, we have a free-form HTTP request\n String sOAPAction = request.getHeader(\"SOAPAction\");\n\t\t\t\n Templates templates = getTemplates();\n\t\t\t\n // create a new transformer working context\n Transformer transformer = templates.newTransformer();\n transformer.setURIResolver(this._uriResolver);\n\t\t\t\n // set the content type\n String contentType = transformer.getOutputProperty(OutputKeys.MEDIA_TYPE);\n if(contentType==null) contentType = \"text/xml\";\n System.err.println(\"contentType \" + contentType + \"\\n\" + transformer.getOutputProperties());\n response.setContentType(contentType);\n\t\t\t\n setTransformerParameters(transformer,request,response);\n\n InputStream is = null;\n if(request.getAttribute(\"javax.servlet.error.servlet_name\") == null)\n\t\t\t\tis = request.getInputStream();\n\t\t\t\n Source source = getSource(is);\n source.setSystemId(request.getRequestURI()+\"/POSTED-DATA\");\n\t\t\t\n Result result = getResult(response.getOutputStream());\n result.setSystemId(request.getRequestURI()+\"/RESPONSE\");\n\t\t\t\n try {\n\t\t\t\ttransformer.transform(source, result);\n } catch(net.sf.saxon.instruct.TerminationException x) { }\n \n } catch(Exception x) {\n throw new ServletException(x);\n }\n }", "title": "" }, { "docid": "2ea5a68a91b33bb6dcaa63b16df7ca52", "score": "0.60778314", "text": "public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\r\n\t}", "title": "" } ]
b5b750e16e6a031466e3715f7bca5105
Add the given variables and their values to the command's environment.
[ { "docid": "4a5ae49fe06f9e6129ac2d0e8eee4752", "score": "0.6497309", "text": "public void setEnvironmentVariables(Map<String, String> variables) {\n processBuilder.environment().putAll(variables);\n }", "title": "" } ]
[ { "docid": "a7a65711382f2baa1d8f4a10da816494", "score": "0.6306769", "text": "public Builder addAllEnvironmentVariables(\n java.lang.Iterable<? extends com.google.devtools.testing.v1.EnvironmentVariable> values) {\n if (environmentVariablesBuilder_ == null) {\n ensureEnvironmentVariablesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, environmentVariables_);\n onChanged();\n } else {\n environmentVariablesBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "9aabd260b44fefde5b3593bc9528e9f4", "score": "0.6284501", "text": "public void addEnv(Environment.Variable var) {\n env.addVariable(var);\n }", "title": "" }, { "docid": "7567c311ec560d39832f5a522e748351", "score": "0.6239667", "text": "public void addEnv(Environment.Variable var) {\n env.addVariable(var);\n }", "title": "" }, { "docid": "7f223f4f2ad7b3354a80c8ff04b11e6b", "score": "0.61506486", "text": "public com.google.devtools.testing.v1.EnvironmentVariable.Builder addEnvironmentVariablesBuilder() {\n return getEnvironmentVariablesFieldBuilder().addBuilder(\n com.google.devtools.testing.v1.EnvironmentVariable.getDefaultInstance());\n }", "title": "" }, { "docid": "942bed51e3478afddaa946130759d60f", "score": "0.6007896", "text": "@Override\n public GradleExecuter withEnvironmentVars(Map<String, ?> environment) {\n Map<String, Object> env = Maps.newHashMap(configuration.getEnvironment());\n env.putAll(environment);\n return newInstance(configuration.withEnvironment(env));\n }", "title": "" }, { "docid": "1226d039587a4754412aa4c43939d00c", "score": "0.59685034", "text": "public void addEnv(final Environment.Variable var) {\n if (this.env == null) {\n this.env = new Environment();\n this.newEnvironment = true;\n if (this.processor != null) {\n // Change the environment in the processor\n setProcessor(this.processor);\n }\n }\n this.env.addVariable(var);\n }", "title": "" }, { "docid": "c7f518a7539070e395f9b871374c0d24", "score": "0.5956245", "text": "public Builder addEnvironmentVariables(com.google.devtools.testing.v1.EnvironmentVariable value) {\n if (environmentVariablesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEnvironmentVariablesIsMutable();\n environmentVariables_.add(value);\n onChanged();\n } else {\n environmentVariablesBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "f960b141c1c42f7c42a99e2b422c2fbb", "score": "0.59116447", "text": "public void setAppendEnvironmentVars(boolean append) {\r\n\t\tthis.appendEnv = append;\r\n\t}", "title": "" }, { "docid": "f43fc606ed745eb70dd1690b58d4a379", "score": "0.59115404", "text": "public Argument setEnvVars(final String... newEnvVars) {\n if (newEnvVars.length != paramNames.length) {\n throw (new IllegalArgumentException(\n \"Environment variables array length provided is not \" + \"the correct size\"));\n }\n envVars = newEnvVars;\n return this;\n }", "title": "" }, { "docid": "41bfce2e3118d0a64ae4f7d600a51947", "score": "0.5888017", "text": "void defineVariables(Set vars);", "title": "" }, { "docid": "4fdc15ca504973682520ae188e704dbd", "score": "0.58078974", "text": "void setSystemVariables(Map<String, String> vars);", "title": "" }, { "docid": "1703b686dd3d8f7f18b457b4d7139403", "score": "0.57987684", "text": "Map<String,Object> pushLocalVariables(Map<String, Object> variables);", "title": "" }, { "docid": "c6691f1c02399c4e4d768b1e7cc1c78b", "score": "0.5724202", "text": "public Builder addEnvironmentVariables(\n int index, com.google.devtools.testing.v1.EnvironmentVariable value) {\n if (environmentVariablesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureEnvironmentVariablesIsMutable();\n environmentVariables_.add(index, value);\n onChanged();\n } else {\n environmentVariablesBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "d5bb938faa004c6ecd916e67b698a00d", "score": "0.5695371", "text": "public void setEnvVars(Map<String, String> vars) {\r\n\t\tenv.clear();\r\n\t\tenv.putAll(vars);\r\n\t}", "title": "" }, { "docid": "ee08060a87433bde585393ee63bd562c", "score": "0.5692959", "text": "private Map<String, String> addEnvVariables(Map<String, String> envVariables) {\n envVariables.put(ProjectDirConstants.HOME_REPO_ENV_KEY, tempHomeDirectory.toString());\n return envVariables;\n }", "title": "" }, { "docid": "888e1d41d14bf1098fabb5e043342ec1", "score": "0.5690516", "text": "private void initEnvironmentVariables() {\n printer.printComments(\"Initialize Environment Variables\");\n\n for (int i = 0; i < nEnvVars; i++) {\n if(i >= 9 && i <= 16){\n printer.printLoadAdress(PCodeTypes.Bool, 0, i);\n printer.printRead();\n printer.printLoadConstant(PCodeTypes.Int,1);\n printer.printEqualsValues(PCodeTypes.Int);\n printer.printStore(PCodeTypes.Bool);\n }else if(i == 17){\n printer.printLoadAdress(PCodeTypes.Int, 0, i);\n printer.printRead();\n printer.printPop();\n printer.printLoadConstant(PCodeTypes.Int,2);\n printer.printStore(PCodeTypes.Int);\n }else {\n printer.printLoadAdress(PCodeTypes.Int, 0, i);\n printer.printRead();\n printer.printStore(PCodeTypes.Int);\n }\n }\n\n }", "title": "" }, { "docid": "008598a373e534edc9a4f253b435929b", "score": "0.56745565", "text": "public static void setEnvironmentVariables(Map<String, String> newEnv) {\n try {\n Class<?> processEnvironmentClass = Class.forName(\"java.lang.ProcessEnvironment\");\n Field theEnvironmentField = processEnvironmentClass.getDeclaredField(\"theEnvironment\");\n theEnvironmentField.setAccessible(true);\n Map<String, String> env = (Map<String, String>) theEnvironmentField.get(null);\n env.putAll(newEnv);\n Field theCaseInsensitiveEnvironmentField =\n processEnvironmentClass.getDeclaredField(\"theCaseInsensitiveEnvironment\");\n theCaseInsensitiveEnvironmentField.setAccessible(true);\n Map<String, String> cienv =\n (Map<String, String>) theCaseInsensitiveEnvironmentField.get(null);\n cienv.putAll(newEnv);\n } catch (NoSuchFieldException e) {\n try {\n Class[] classes = Collections.class.getDeclaredClasses();\n Map<String, String> env = System.getenv();\n for (Class cl : classes) {\n if (\"java.util.Collections$UnmodifiableMap\".equals(cl.getName())) {\n Field field = cl.getDeclaredField(\"m\");\n field.setAccessible(true);\n Object obj = field.get(env);\n Map<String, String> map = (Map<String, String>) obj;\n map.clear();\n map.putAll(newEnv);\n }\n }\n } catch (Exception e2) {\n e2.printStackTrace();\n }\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n }", "title": "" }, { "docid": "ef2ab407ac100a514aa25f6532c20ee8", "score": "0.5634122", "text": "public void addVariable(String varName, String varValue);", "title": "" }, { "docid": "9793d325069ba87349e6aa1e4df951ad", "score": "0.5627327", "text": "public com.google.devtools.testing.v1.EnvironmentVariable.Builder addEnvironmentVariablesBuilder(\n int index) {\n return getEnvironmentVariablesFieldBuilder().addBuilder(\n index, com.google.devtools.testing.v1.EnvironmentVariable.getDefaultInstance());\n }", "title": "" }, { "docid": "4f7dbca8443979aa76e97e81f3b0a990", "score": "0.5553763", "text": "public void build(boolean isAdd, List<Node> vars, Graph graph, long timestamp, long duration) {\n\t\tEnvironment newEnv = new Environment(vars, graph, timestamp, duration);\n\t\tif (isAdd)\n\t\t\t// Store the new token in this store\n\t\t\tthis.window.offer(newEnv);\n\t\telse\n\t\t\t// Remove any existing instances of the token from this store\n\t\t\tthis.window.remove(newEnv);\n\t}", "title": "" }, { "docid": "a20da055c59cb4d1dd7ba05c87fd546d", "score": "0.54270923", "text": "public static void processAddVarCommand(String line) {\n String strLine = line.substring(7).trim();\n String name = \"\";\n String group = \"\";\n String desc = \"\";\n String varDesc[] = strLine.split(\"\\\\|\");\n if (varDesc.length >= 1) {\n name = varDesc[0].trim();\n }\n if (varDesc.length >= 2) {\n group = varDesc[1].trim();\n }\n if (varDesc.length >= 3) {\n desc = varDesc[2].trim();\n }\n\n if (VariablesBlackboard.getInstance() != null && !VariablesBlackboard.getInstance().isPaused()) {\n VariablesBlackboard.getInstance().addVariable(name, group, desc);\n }\n }", "title": "" }, { "docid": "708726a807905c8f484deba89982ae44", "score": "0.52548885", "text": "public interface EnvironmentVariables {\n\n String getValue(final String name);\n\n String getValue(final Enum<?> property);\n\n String getValue(final String name, final String defaultValue);\n\n String getValue(Enum<?> property, String defaultValue);\n\n Integer getPropertyAsInteger(final String name, final Integer defaultValue);\n\n Integer getPropertyAsInteger(final Enum<?> property, final Integer defaultValue);\n\n Boolean getPropertyAsBoolean(final String name, boolean defaultValue);\n\n Boolean getPropertyAsBoolean(final Enum<?> property, boolean defaultValue);\n\n String getProperty(final String name);\n\n String getProperty(final Enum<?> property);\n\n String getProperty(final String name, final String defaultValue);\n\n String getProperty(final Enum<?> property, final String defaultValue);\n\n void setProperty(final String name, final String value);\n\n void clearProperty(final String name);\n\n EnvironmentVariables copy();\n\n List<String> getKeys();\n\n Properties getProperties();\n\n Properties getPropertiesWithPrefix(String prefix);\n}", "title": "" }, { "docid": "cc5634e0f1d80b2dd3a9ef6dcf1546bf", "score": "0.52445257", "text": "@Override\n public void addContainingEnvironments(Environment containingEnvironment) {\n\n }", "title": "" }, { "docid": "d332a66840fb330d9b5069f070d48433", "score": "0.5231004", "text": "public boolean getAppendEnvironmentVars() {\r\n\t\treturn appendEnv;\r\n\t}", "title": "" }, { "docid": "71d39d3a9bf1168f6df3f0e24bea981b", "score": "0.52263755", "text": "public DescribeTrainingJobResult addEnvironmentEntry(String key, String value) {\n if (null == this.environment) {\n this.environment = new java.util.HashMap<String, String>();\n }\n if (this.environment.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.environment.put(key, value);\n return this;\n }", "title": "" }, { "docid": "778b5456dc354334747a4b4b4a41fbca", "score": "0.52038854", "text": "private void add(String var1, String var2, String dest)\n {\n checkVariableInit(var1);\n checkVariableInit(var2);\n _variables.put(dest, _variables.get(var1) + _variables.get(var2));\n }", "title": "" }, { "docid": "4138f0e86d9d367692e3c34b9a7c3211", "score": "0.5194504", "text": "public GasperBuilder withEnvironmentVariable(String key, String value) {\n environment.put(key, value);\n return this;\n }", "title": "" }, { "docid": "60eba1f6dbf49d3016e99235712804bc", "score": "0.5193391", "text": "public static void loadSystemEnvs(){\n systemEnv = new HashMap<>();\n\n Map<String, String> envs = System.getenv();\n Iterator it = envs.entrySet().iterator();\n while(it.hasNext()) {\n Map.Entry<String, String> entry = (Map.Entry) it.next();\n systemEnv.put(entry.getKey(), entry.getValue());\n\n }\n\n Properties properties = System.getProperties();\n Iterator i = properties.entrySet().iterator();\n while(i.hasNext())\n {\n Map.Entry entry = (Map.Entry)i.next();\n systemEnv.put(entry.getKey().toString(), entry.getValue().toString());\n }\n\n \n }", "title": "" }, { "docid": "d68dc2edb3769ef1ce0e46a494037ad6", "score": "0.5166631", "text": "Map<String, Object> pushLocalVariables();", "title": "" }, { "docid": "2ccfd66e8af66b1b949005798fc21db3", "score": "0.5152993", "text": "Set<String> dependsOnVariables();", "title": "" }, { "docid": "ad1ff38cf849345688b2ff2f017a7598", "score": "0.5102895", "text": "public Query setQueryVariables(Collection<Variable> vars);", "title": "" }, { "docid": "ce55b43b37d46638c1dc79a2dbc57219", "score": "0.50773835", "text": "public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args, PropertySet ps) throws RemoteException;", "title": "" }, { "docid": "4dee3dbce5bcb28ee32d597032b3c22a", "score": "0.5053762", "text": "public void addNewVariable(String key, VariableDetails vd) {\n\t\tthis.variables.put(key, vd);\n\t}", "title": "" }, { "docid": "1d3f0b4b631e71d16c27128288587ff1", "score": "0.505343", "text": "@Override\n\tpublic void run(String... strings) throws Exception {\n\t\tLOGGER.info(\"{}\", this.envInfo);\n\t}", "title": "" }, { "docid": "6f1ed900d5fe5fdadf53a01bfc62fe4c", "score": "0.5049697", "text": "public static synchronized Vector getProcEnvironment()\n throws TaskException\n {\n if( c_procEnvironment != null )\n return c_procEnvironment;\n\n c_procEnvironment = new Vector();\n try\n {\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n Execute exe = new Execute( new PumpStreamHandler( out ) );\n exe.setCommandline( getProcEnvCommand() );\n // Make sure we do not recurse forever\n exe.setNewenvironment( true );\n int retval = exe.execute();\n if( retval != 0 )\n {\n // Just try to use what we got\n }\n\n BufferedReader in =\n new BufferedReader( new StringReader( out.toString() ) );\n String var = null;\n String line;\n String lineSep = System.getProperty( \"line.separator\" );\n while( (line = in.readLine()) != null )\n {\n if( line.indexOf( '=' ) == -1 )\n {\n // Chunk part of previous env var (UNIX env vars can\n // contain embedded new lines).\n if( var == null )\n {\n var = lineSep + line;\n }\n else\n {\n var += lineSep + line;\n }\n }\n else\n {\n // New env var...append the previous one if we have it.\n if( var != null )\n {\n c_procEnvironment.addElement( var );\n }\n var = line;\n }\n }\n // Since we \"look ahead\" before adding, there's one last env var.\n c_procEnvironment.addElement( var );\n }\n catch( IOException exc )\n {\n exc.printStackTrace();\n // Just try to see how much we got\n }\n return c_procEnvironment;\n }", "title": "" }, { "docid": "e772203fa291d95f728e04a0fe4fa632", "score": "0.50471216", "text": "public void setEnvironment( String[] env )\n {\n this.m_environment = env;\n }", "title": "" }, { "docid": "e41b94d43ebce5958c23c8523661486d", "score": "0.50464946", "text": "public void addVariable(Variable var1, Variable var2) {\r\n var1.addVariable(var2);\r\n }", "title": "" }, { "docid": "453c641ced0a92fccd72b214625caf3b", "score": "0.50344974", "text": "public Builder addEnvironmentVariables(\n int index, com.google.devtools.testing.v1.EnvironmentVariable.Builder builderForValue) {\n if (environmentVariablesBuilder_ == null) {\n ensureEnvironmentVariablesIsMutable();\n environmentVariables_.add(index, builderForValue.build());\n onChanged();\n } else {\n environmentVariablesBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "e1a2bfdc8571916f6fc437aae372ea4d", "score": "0.5018149", "text": "public static final String[] environmentSubstitute(String string[])\r\n \t{\r\n KettleVariables vars = KettleVariables.getInstance();\r\n \r\n Properties systemProperties = new Properties();\r\n systemProperties.putAll( System.getProperties() );\r\n systemProperties.putAll( vars.getProperties() ); // overwrite with local vars\r\n \r\n String retval[] = new String[string.length];\r\n \t\tfor (int i = 0; i < string.length; i++)\r\n \t\t{\r\n \t\t\tretval[i] = environmentSubstitute(string[i], systemProperties);\r\n \t\t}\r\n \t\treturn retval;\r\n \t}", "title": "" }, { "docid": "1e6b992bd4a0b8ec5388cc876c1d8522", "score": "0.49888197", "text": "@Override\n public void buildEnvVars(AbstractBuild<?, ?> build, Map<String, String> env) {\n // call super even though SCM.buildEnvVars currently does nothing - this could change\n super.buildEnvVars(build, env);\n AbstractModeDelegate delegate = AccurevMode.findDelegate(this);\n delegate.buildEnvVars(build, env);\n }", "title": "" }, { "docid": "195f3884a0d57703f770f73af62861b7", "score": "0.49788064", "text": "public Builder addAllArguments(\n java.lang.Iterable<? extends boa.types.Ast.Variable> values) {\n if (argumentsBuilder_ == null) {\n ensureArgumentsIsMutable();\n super.addAll(values, arguments_);\n onChanged();\n } else {\n argumentsBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "e621d025aabcfe1c614722c7ebf4e8e3", "score": "0.49454716", "text": "protected void populateArgSet() {\n \t\t\t\n \t\t\targSet.addArgumentInfo( \"debug\", 'd', 0, false, \"Debug Mode\" );\n \t\t\targSet.addArgumentInfo( \"debug\", 'd', 1, true, \"Disaster Mode\" );\n \t\t\t\n \t\t\targSet.addArgumentInfo( \"bd\", 'b', 1, false, \"Bird Dog Mode\" );\n \t\t\targSet.addArgumentInfo( \"bd\", 's', \"yummy\", 3, true, true, \"Mongolian Mode\" );\n \t\t}", "title": "" }, { "docid": "a70b6c7b6693cedafca1ca818014d401", "score": "0.4940612", "text": "public void setVariables(List<VariableDef> variables) {\n this.variables = variables;\n }", "title": "" }, { "docid": "4d7443ae74d6b6c36a74aef141a46068", "score": "0.49317667", "text": "@Override\n public void buildEnvVars(AbstractBuild<?, ?> build, EnvVars env) {\n env.put(JOB_NAME_VARIABLE, lastReference.projectName.replaceAll(\"[^a-zA-Z0-9]+\", \"_\"));\n //all projects triggered.\n // this should not include projects that don't have a build item.\n String sanitizedProjectList = getProjectListString(\",\");\n env.put(ALL_JOBS_NAME_VARIABLE, sanitizedProjectList);\n\n for (String project : getProjectsWithBuilds()) {\n // for each project add the following variables once\n // all buildnumbers, lastbuildnumber\n // all Run results, last build result\n String sanitizedBuildName = project.replaceAll(\"[^a-zA-Z0-9]+\", \"_\");\n List<BuildReference> refs = getBuildRefs(project);\n\n env.put(ALL_BUILD_NUMBER_VARIABLE_PREFIX + sanitizedBuildName, getBuildNumbersString(refs, \",\"));\n env.put(BUILD_RUN_COUNT_PREFIX + sanitizedBuildName, Integer.toString(refs.size()));\n for (BuildReference br : refs) {\n if (br.buildNumber != 0) {\n String triggeredBuildRunResultKey = BUILD_RESULT_VARIABLE_PREFIX + sanitizedBuildName + RUN + Integer.toString(br.buildNumber);\n env.put(triggeredBuildRunResultKey, br.buildResult.toString());\n }\n }\n BuildReference lastBuild = null;\n for (int i = (refs.size()); i > 0; i--) {\n if (refs.get(i - 1).buildNumber != 0) {\n lastBuild = refs.get(i - 1);\n }\n break;\n }\n if (lastBuild != null) {\n env.put(BUILD_NUMBER_VARIABLE_PREFIX + sanitizedBuildName, Integer.toString(lastBuild.buildNumber));\n env.put(BUILD_RESULT_VARIABLE_PREFIX + sanitizedBuildName, lastBuild.buildResult.toString());\n }\n }\n }", "title": "" }, { "docid": "e06b29e9d6b6489b074582bec7dcebb0", "score": "0.49303314", "text": "public Builder addEnvironmentVariables(\n com.google.devtools.testing.v1.EnvironmentVariable.Builder builderForValue) {\n if (environmentVariablesBuilder_ == null) {\n ensureEnvironmentVariablesIsMutable();\n environmentVariables_.add(builderForValue.build());\n onChanged();\n } else {\n environmentVariablesBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "title": "" }, { "docid": "ca2e81d7800300cd85950a393f08e2c2", "score": "0.49089965", "text": "private static void initEnv() {\n }", "title": "" }, { "docid": "e03f337d80fdfba6d7b27ec51be0a341", "score": "0.4902625", "text": "void setProcessVariable(String workflowInstanceId, String varName, Object value);", "title": "" }, { "docid": "46b0b8cc5bb6793cd992914d6bf5c714", "score": "0.48974985", "text": "@Override\n protected void setConnectorEnvironmentVars(final Map environmentVars)\n {\n environmentVars.putAll(this.environmentVars);\n }", "title": "" }, { "docid": "58ddef43a3e57aec67aa0380ce0c06e8", "score": "0.4877986", "text": "public void setEnvironmentVariable(String variableName, String value) {\n processBuilder.environment().put(variableName, value);\n }", "title": "" }, { "docid": "49374bca870c3df24add2bd1e18c5d3c", "score": "0.48667455", "text": "public void addto(ArrayList<GeneVariable> variableList) {\n\t}", "title": "" }, { "docid": "450c4ff7724ce033e89e7e56c0ff4669", "score": "0.48585507", "text": "public void addVariable(String key, Object variable) {\n this.variables.put(key, variable);\n }", "title": "" }, { "docid": "ed8d96518aa4d3621f5b103b13e65c87", "score": "0.48486415", "text": "@Test\n public void testMultipleVars() throws CodeGeneratorException, IOException {\n final Exp firstAdd = new BinopExp(new IntegerLiteralExp(2),\n new PlusBOP(),\n new IntegerLiteralExp(3));\n final Exp secondAdd = new BinopExp(new VariableExp(new Variable(\"x\")),\n new PlusBOP(),\n new VariableExp(new Variable(\"x\")));\n assertOutput(makeProgram(new VariableDeclarationStmt(new IntType(),\n new Variable(\"x\"),\n firstAdd),\n new VariableDeclarationStmt(new IntType(),\n new Variable(\"y\"),\n secondAdd),\n new PrintStmt(new Variable(\"x\")),\n new PrintStmt(new Variable(\"y\"))),\n \"5\",\n \"10\");\n }", "title": "" }, { "docid": "e3bbeb5a081622a71c954a3bad4f3e6b", "score": "0.48478085", "text": "private void SetEnvironmentVariables() {\n\t\t\n\t\t/*\n\t\t * ALL parameter are passed in the application.yaml file ...\n\t\t * These values can be overrided using an application-???.yaml file per environment\n\t\t * ... or passed in on the command line\n\t\t */\n\t\t\n\t\t// Split the host and port number from the connName ... host(port)\n\t\tif (!ValidConnectionName()) {\n\t\t\tPattern pattern = Pattern.compile(\"^([^()]*)\\\\(([^()]*)\\\\)(.*)$\");\n\t\t\tMatcher matcher = pattern.matcher(this.connectionname);\t\n\t\t\tif (matcher.matches()) {\n\t\t\t\tthis.hostname = matcher.group(1).trim();\n\t\t\t\tthis.port = Integer.parseInt(matcher.group(2).trim());\n\t\t\t\n\t\t\t} else {\n\t\t\t\tlog.error(\"While attempting to connect to a queue manager, the connName is invalid \");\n\t\t\t\tSystem.exit(IMQPCFConstants.EXIT_ERROR);\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tlog.error(\"While attempting to connect to a queue manager, the connName is missing \");\n\t\t\tSystem.exit(IMQPCFConstants.EXIT_ERROR);\n\t\t\t\n\t\t}\n\n\t\t/*\n\t\t * If we dont have a user or a certs are not being used, then we cant connect ... unless we are in local bindings\n\t\t */\n\t\tif (ValidateUserId()) {\n\t\t\tif (!UsingSSL()) {\n\t\t\t\tlog.error(\"Unable to connect to queue manager, credentials are missing and certificates are not being used\");\n\t\t\t\tSystem.exit(IMQPCFConstants.EXIT_ERROR);\n\t\t\t}\n\t\t}\n\n\t\t// if no user, forget it ...\n\t\tif (UserId() == null) {\n\t\t\treturn;\n\t\t}\n\n\t\t/*\n\t\t * dont allow mqm user\n\t\t */\n\t\tif (!ValidateUserId()) {\n\t\t\tif ((ValidateUserId(\"mqm\") || (ValidateUserId(\"MQM\")))) {\n\t\t\t\tlog.error(\"The MQ channel USERID must not be running as 'mqm' \");\n\t\t\t\tSystem.exit(IMQPCFConstants.EXIT_ERROR);\n\t\t\t}\n\t\t} else {\n\t\t\tUserId(null);\n\t\t\tPassword(null);\n\t\t}\n\t}", "title": "" }, { "docid": "12049d236bf4b1053822120ae4174a23", "score": "0.48411053", "text": "private void addEnv(int xCord, int yCord, EnvironmentType t){\n\t\tenvironmentGrid[xCord][yCord] = new EnvironmentTile(xCord, yCord, t);\n\t}", "title": "" }, { "docid": "e25ba2b61b57c95129fe7e820e3005df", "score": "0.4817257", "text": "public Builder putAllVariables(\n java.util.Map<java.lang.String, com.google.protobuf.Value> values) {\n internalGetMutableVariables().getMutableMap()\n .putAll(values);\n return this;\n }", "title": "" }, { "docid": "1c9446a1ca5b2c1c11a13f72a674d2f5", "score": "0.48120886", "text": "Vars usedVars(Vars vs) { return a.add(vs); }", "title": "" }, { "docid": "a665b490cdd62c710cf34512b98a958b", "score": "0.47998995", "text": "public void putVariable(Variable v) {\n\t\t\tglobalVars.put(v);\n\t\t}", "title": "" }, { "docid": "90e90dd298d7cb3baa6cb83118df4362", "score": "0.47870088", "text": "public void addVariable(Variable variable) {\n variables.add(variable);\n }", "title": "" }, { "docid": "ed2f9a1b5f1761ad32dcb9c4a3459dda", "score": "0.47782677", "text": "Set getCurrentScopeVariables();", "title": "" }, { "docid": "f6a1de2d7341250729f09abf5123b6a3", "score": "0.47654337", "text": "private void addVariables(Node node) {\n\t\tif(node instanceof BinaryOperatorNode) {\n\t\t\tfor(Node child : ((BinaryOperatorNode) node).getChildren()) {\n\t\t\t\taddVariables(child);\n\t\t\t}\n\t\t} else if (node instanceof UnaryOperatorNode) {\n\t\t\taddVariables(((UnaryOperatorNode) node).getChild());\n\t\t} else if(node instanceof VariableNode){\n\t\t\tif(set.add(((VariableNode) node).getName())) {\n\t\t\t\tvariables.add(((VariableNode) node).getName());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2cfbd185ab7516468cc904c32c8d33c4", "score": "0.47627476", "text": "public void addVariable(Variable v){\n\t\tif(stack.get(depth).containsKey(v.getName())){\n\t\t\tthrow new InternalCompilerErrorRuntimeException(\"File: \" + v.getFile() + \": \"+ \"Line: \" + v.getLine()+ \" : \" + \"Variable \" + v.getName() +\" is already defined in this scope! First defined here: \" + \"Line: \" + stack.get(depth).get(v.getName()).getLine());\n\t\t}else{\n\t\t\tv.setDepth(depth);\n\t\t\tstack.get(depth).put(v.getName(), v);\n\t\t}\n\t}", "title": "" }, { "docid": "8832a4f10b6e439fcfe13fa6b7b4741f", "score": "0.47607064", "text": "private void adoptionWithEnv() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "d380d87a93a87994fbb922d473df1308", "score": "0.47603294", "text": "public void putEnvVar(String name, String value) {\r\n\t\t// env.put(name, null) will store a null value into a HashMap\r\n\t\tif (value!=null) {\r\n\t\t\tenv.put(name, value);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tenv.remove(name);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "51cb3b0f50c2435fd1524b83417835cc", "score": "0.47552106", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void addVariableList(VariableList variableList) {\n\t\tList<String> keyList = variableList.keyList();\n\t\tfor (int i = 0; i < variableList.size(); i++) {\n\t\t\tString key = keyList.get(i);\n\t\t\tthis.outputVariableList.add(key, variableList.get(key));\n\t\t}\n\t}", "title": "" }, { "docid": "fbcc5d56c754277cd59937b2ec15da14", "score": "0.47525582", "text": "public void addSetVar(SetVar sv) {\n setVars.add(sv);\n }", "title": "" }, { "docid": "fb6771ca191d4a3caa342498b7592da0", "score": "0.47343484", "text": "@Override\n\tpublic SymbolicExpression eval(Environment vars) {\n\t throw new RuntimeException(\"eval called on command\");\n\t }", "title": "" }, { "docid": "b8c11fd96761323791fc7ce8542e015f", "score": "0.472677", "text": "public void addVariableList(String key, Object value) {\n\t\tthis.outputVariableList.add(key, value);\n\t}", "title": "" }, { "docid": "a24fcbc6b54b15069bc99b984494e5f7", "score": "0.472176", "text": "public add_partition_with_environment_context_args(add_partition_with_environment_context_args other) {\n if (other.isSetNew_part()) {\n this.new_part = new Partition(other.new_part);\n }\n if (other.isSetEnvironment_context()) {\n this.environment_context = new EnvironmentContext(other.environment_context);\n }\n }", "title": "" }, { "docid": "af3ede5a92a4267768c0267dc425e0a4", "score": "0.4694342", "text": "public void setEnvironment(String key, String value) {\n Objects.requireNonNull(key,\"Key may not be null - not acceptable.\");\n \n customEnvironmentEntries.put(key, value);\n }", "title": "" }, { "docid": "954d55f37ddad29ad5865a1915c8488e", "score": "0.46904343", "text": "public void addSystemProperties(String... props) {\r\n for (String prop : props) {\r\n this.systemProps.add(prop);\r\n }\r\n }", "title": "" }, { "docid": "fd154d86e6d9867e593f043dd076b35d", "score": "0.46771073", "text": "Set getCurrentScopeVariableNames();", "title": "" }, { "docid": "62ffe5886dfab76e35db1cf894c1a867", "score": "0.4674986", "text": "public HashSet<String> getVars(){\n HashSet<String> set = new HashSet<String>();\n if(func_ == Function.VariableBinding){\n set.add(val);\n }else{\n for(Expression e : args_){\n set.addAll(e.getVars());\n }\n }\n return set;\n }", "title": "" }, { "docid": "1d02fac2eb16b7ca47b92674d894ae37", "score": "0.4672954", "text": "public Builder addAllInputVars(\n java.lang.Iterable<? extends com.ligadata.Serialize.MetadataObjects.MetadataType.Attribute> values) {\n if (inputVarsBuilder_ == null) {\n ensureInputVarsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, inputVars_);\n onChanged();\n } else {\n inputVarsBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "a10934797dcfb9b066cc5ab9411a6c9d", "score": "0.4665204", "text": "protected Env bindParams(Env env, List<Node> params) {\n Iterator<String> argIter = mArgs.iterator();\n Iterator<Node> paramIter = params.iterator();\n while (argIter.hasNext()) {\n env.addBinding(argIter.next(), paramIter.next());\n }\n\n return env;\n }", "title": "" }, { "docid": "05e1c527a5b7c1c51ec2953b55d26a5d", "score": "0.46610203", "text": "public void addOrUpdateStringVariable(String name, String key, String value, boolean isDerived) {\n fVariables.addOrUpdateVariable(name, key, value, isDerived);\n }", "title": "" }, { "docid": "6daa5d5130ef2505ffaa6abb7d715e50", "score": "0.46588594", "text": "private void arrangeVariables() {\n\t\tint independentVariablesCount = 2;\n\t\tfor (int i = 0; i < independentVariablesCount; i++) {\n\t\t\tVariable variable = new Variable();\n\t\t\tvariable.setName(\"indepVariable\" + (i + 1) + \".Name\");\n\t\t\tvariable.setDependencyFlag(0);\n\t\t\tvariable.setInitialValue(Math.random());\n\t\t\tvariable.setHardLowerBound(Math.random() * 10);\n\t\t\tvariable.setHardUpperBound(Math.random() * 100);\n\t\t\tsut.addVariable(variable);\n\t\t}\n\n\t\t// Adding more than 1 dependent variables to verify system\n\t\t// functionality.\n\t\tint dependentVariablesCount = 2;\n\t\tfor (int i = 0; i < dependentVariablesCount; i++) {\n\t\t\tVariable variable = new Variable();\n\t\t\tvariable.setName(\"depVariable\" + (i + 1) + \".Name\");\n\t\t\tvariable.setDependencyFlag(1);\n\t\t\tvariable.setInitialValue(Math.random());\n\t\t\tvariable.setHardLowerBound(Math.random() * 10);\n\t\t\tvariable.setHardUpperBound(Math.random() * 100);\n\t\t\tsut.addVariable(variable);\n\t\t}\n\t}", "title": "" }, { "docid": "b1152ec9ecb9744f5ba404928e4eb6ca", "score": "0.46582502", "text": "private String[] patchEnvironment()\n throws TaskException\n {\n Vector osEnv = (Vector)getProcEnvironment().clone();\n for( int i = 0; i < m_environment.length; i++ )\n {\n int pos = m_environment[ i ].indexOf( '=' );\n // Get key including \"=\"\n String key = m_environment[ i ].substring( 0, pos + 1 );\n int size = osEnv.size();\n for( int j = 0; j < size; j++ )\n {\n if( ((String)osEnv.elementAt( j )).startsWith( key ) )\n {\n osEnv.removeElementAt( j );\n break;\n }\n }\n osEnv.addElement( m_environment[ i ] );\n }\n String[] result = new String[ osEnv.size() ];\n osEnv.copyInto( result );\n return result;\n }", "title": "" }, { "docid": "0b4d683f1dab5391f31c359989c241db", "score": "0.46456206", "text": "private static void addCommonArguments(Set<String> set) {\r\n set.add(OUTPUT_DIR);\r\n set.add(CSV_FILE);\r\n }", "title": "" }, { "docid": "c3a35ad2ffe86e3c40c02906474eecb1", "score": "0.46350765", "text": "private static void loadDeploymentEnvVaribles() throws Exception {\n \n try {\n \n Configuration envConfig = new EnvironmentConfiguration();\n HOME = \"/home/impadmin/idw/idw_wmg/\";\n CONF = \"/home/impadmin/idw/idw_wmg/conf/\";\n LOG = \"/home/impadmin/idw/idw_wmg/logs\";\n THIRD_PARTY_JARS = \"/home/impadmin/idw/idw_wmg/logs/third_party_jars/\";\n JAVA_HOME = \"/home/impadmin/idw/java/jdk1.8.0_141/\";\n if (StringUtils.isEmpty(HOME) || StringUtils.isEmpty(JAVA_HOME)) {\n LOGGER.error(\n \"Not able to load IDW_WMG_HOME & JAVA_HOME envirment variables for the deployment System Environment. \"\n + HOME + \" &\" + JAVA_HOME + \"&\" + CONF\n + \" \\n Example Configure like this IDW_WMG_HOME=/var/lib/idw_wmg/:\");\n throw new Exception(\n \"Not able to load IDW_WMG_HOME & JAVA_HOME envirment variables for the deployment System Environment. \"\n + HOME + \" &\" + JAVA_HOME + \"&\" + CONF\n + \" \\n Example Configure like this IDW_WMG_HOME=/var/lib/idw_wmg/:\");\n }\n } catch (Exception e) {\n LOGGER.error(\"Not able to load IDW_WMG_HOME & JAVA_HOME envirment variables for the deployment System Environment\"\n + HOME + \" &\" + JAVA_HOME + \"&\" + CONF\n + \" \\n Example Configure like this IDW_WMG_HOME=/var/lib/idw_wmg/:\", e);\n throw new Exception(\n \"Not able to load IDW_WMG_HOME & JAVA_HOME envirment variables for the deployment System Environment. \"\n + HOME + \" &\" + JAVA_HOME + \"&\" + CONF\n + \" \\n Example Configure like this IDW_WMG_HOME=/var/lib/idw_wmg/:\");\n \n }\n \n }", "title": "" }, { "docid": "1baa2423e0ab0840cab88ce7b816f0b6", "score": "0.46320108", "text": "Variables createVariables();", "title": "" }, { "docid": "1baa2423e0ab0840cab88ce7b816f0b6", "score": "0.46320108", "text": "Variables createVariables();", "title": "" }, { "docid": "bb725207e2492ef268165c3227bd89ae", "score": "0.462536", "text": "public boa.types.Ast.Variable.Builder addArgumentsBuilder() {\n return getArgumentsFieldBuilder().addBuilder(\n boa.types.Ast.Variable.getDefaultInstance());\n }", "title": "" }, { "docid": "9f479a749aeadcb2362c93ad7b4702b3", "score": "0.46250018", "text": "public boolean addVariable(T variable);", "title": "" }, { "docid": "d4a7e3c0ed211a7e561b84eab154fa2a", "score": "0.46230158", "text": "public static String[] addEnv(String[] pEnv, String pName, String pValue, String pSeparator) {\n /*\n * TODO cdan should add a test for this method (test that the case is preserved even on windows, but compare\n * with ignoring case on windows)\n */\n String[] result = new String[1];\n\n if (pEnv != null) {\n int i = 0;\n boolean found = false;\n\n while (!found && i < pEnv.length) {\n String tmpEnv = pEnv[i];\n String tmpName = pName;\n if (Platform.getOS().equals(Platform.OS_WIN32)) {\n tmpEnv = tmpEnv.toLowerCase();\n tmpName = pName.toLowerCase();\n }\n if (tmpEnv.startsWith(tmpName + \"=\")) { //$NON-NLS-1$\n found = true;\n } else {\n i++;\n }\n }\n\n if (found) {\n result = new String[pEnv.length];\n System.arraycopy(pEnv, 0, result, 0, pEnv.length);\n if (null != pSeparator) {\n // First remove the leading NAME=\n String tmpEnv = pEnv[i].replaceFirst(pName+\"=\", \"\");\n // Put the new env in front of the existing one\n result[i] = pName + \"=\" + pValue + pSeparator + tmpEnv;\n } else {\n result[i] = pName + \"=\" + pValue; //$NON-NLS-1$\n }\n\n } else {\n result = new String[pEnv.length + 1];\n System.arraycopy(pEnv, 0, result, 0, pEnv.length);\n result[result.length - 1] = pName + \"=\" + pValue; //$NON-NLS-1$\n }\n } else {\n result[0] = pName + \"=\" + pValue; //$NON-NLS-1$\n }\n\n return result;\n }", "title": "" }, { "docid": "38bdb98357b92e2f0df4ba31a7aa73a6", "score": "0.46160206", "text": "protected void populateArgSet() {\n \t\t\t\n \t\t\targSet.addArgumentInfo( \"arg1\", \"arg1\", 0, false, \"Argument 1\" );\n \t\t\targSet.addArgumentInfo( \"arg2\", \"arg2\", 0, false, \"Argument 2\" );\n \t\t\targSet.addArgumentInfo( \"arg3\", \"arg3\", 0, false, \"Argument 3\" );\n \t\t}", "title": "" }, { "docid": "6d066fa1efebfa2893dff6c873a1322d", "score": "0.46087363", "text": "@Test\n @Deployment(resources = SET_VARIABLE_IN_DELEGATE_PROCESS)\n public void testReturnVariablesFromStartAndExecution() {\n ProcessInstanceWithVariables procInstance = engineRule.getRuntimeService().createProcessInstanceByKey(\"variableProcess\")\n .setVariable(\"aVariable1\", \"aValue1\")\n .setVariableLocal(\"aVariable2\", \"aValue2\")\n .setVariables(Variables.createVariables().putValue(\"aVariable3\", \"aValue3\"))\n .setVariablesLocal(Variables.createVariables().putValue(\"aVariable4\", new byte[]{127, 34, 64}))\n .executeWithVariablesInReturn();\n //when returned instance contains variables\n VariableMap map = procInstance.getVariables();\n assertNotNull(map);\n\n // then variables equal to variables which are accessible via query\n checkVariables(map, 12);\n }", "title": "" }, { "docid": "0ce0e6a1889bb259d97c22a9c89607f1", "score": "0.4604257", "text": "protected void populateArgSet() {\n \t\t\t\n \t\t\targSet.addArgumentInfo( \"arg1\", '1', 0, false, \"Argument 1\" );\n \t\t\targSet.addArgumentInfo( \"arg2\", '2', 0, false, \"Argument 2\" );\n \t\t\targSet.addArgumentInfo( \"arg3\", '3', 0, false, \"Argument 3\" );\n \t\t}", "title": "" }, { "docid": "f6fdccea18fe87d42e4caa4a654c1500", "score": "0.460367", "text": "@Before\n public void init() {\n EnvVariablesSetter.init();\n\n }", "title": "" }, { "docid": "9a3a2d90aa081e74ceb040a4133a581e", "score": "0.45990613", "text": "public Object addToEnvironment(final String propName, final Object propVal) throws NamingException {\n return findContext().addToEnvironment(propName, propVal);\n }", "title": "" }, { "docid": "05c5bae92e724c647826d89b4ca670be", "score": "0.4597295", "text": "public append_partition_with_environment_context_args(append_partition_with_environment_context_args other) {\n if (other.isSetDb_name()) {\n this.db_name = other.db_name;\n }\n if (other.isSetTbl_name()) {\n this.tbl_name = other.tbl_name;\n }\n if (other.isSetPart_vals()) {\n List<String> __this__part_vals = new ArrayList<String>(other.part_vals);\n this.part_vals = __this__part_vals;\n }\n if (other.isSetEnvironment_context()) {\n this.environment_context = new EnvironmentContext(other.environment_context);\n }\n }", "title": "" }, { "docid": "34089711068de806b022fc695de48e76", "score": "0.45972395", "text": "private void setEnvironmentVars(Endpoint endpoint)\n {\n String connectionString = String.format(\"mysql://jdbc:mysql://%s:%s/mysql?user=%s&password=%s\",\n endpoint.getAddress(), endpoint.getPort(), username, password);\n String connectionStringTag = lambdaFunctionName + \"_connection_string\";\n environmentVars.put(\"default\", connectionString);\n environmentVars.put(connectionStringTag, connectionString);\n }", "title": "" }, { "docid": "8214598a88f85f1c701d5c2650333c3f", "score": "0.4593589", "text": "public void addVariableModification(Modification modification) {\n String modName = modification.getName();\n if (!variableModifications.contains(modName)) {\n variableModifications.add(modName);\n }\n Collections.sort(variableModifications);\n backUp.put(modName, modification);\n }", "title": "" }, { "docid": "b4cf264f83bfff3ff964905bb59f4323", "score": "0.45931503", "text": "public append_partition_by_name_with_environment_context_args(append_partition_by_name_with_environment_context_args other) {\n if (other.isSetDb_name()) {\n this.db_name = other.db_name;\n }\n if (other.isSetTbl_name()) {\n this.tbl_name = other.tbl_name;\n }\n if (other.isSetPart_name()) {\n this.part_name = other.part_name;\n }\n if (other.isSetEnvironment_context()) {\n this.environment_context = new EnvironmentContext(other.environment_context);\n }\n }", "title": "" }, { "docid": "6944c5ba1a60e7bed589bac01c9a4998", "score": "0.4590235", "text": "public Builder addInputVars(com.ligadata.Serialize.MetadataObjects.MetadataType.Attribute value) {\n if (inputVarsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureInputVarsIsMutable();\n inputVars_.add(value);\n onChanged();\n } else {\n inputVarsBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "8c8a551d84542409586f5ffbbcde6f52", "score": "0.45887384", "text": "@Override\n \tpublic void buildEnvVars(AbstractBuild build, Map<String, String> env) {\n \t\tif (getNormalizedViewName() != null) {\n \n \t\t\tenv.put(CLEARCASE_VIEWNAME_ENVSTR, getNormalizedViewName());\n \n \t\t\tString workspace = env.get(\"WORKSPACE\");\n \t\t\tif (workspace != null) {\n \t\t\t\tenv.put(CLEARCASE_VIEWPATH_ENVSTR, workspace + File.separator\n \t\t\t\t\t\t+ getNormalizedViewName());\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "c394f3d41a5bf5d660699c85fce21877", "score": "0.45846215", "text": "public void addInputParameters() throws PropertyVetoException {\n Iterator<ManagedProgramParameter> it = managedProgramParameterList.iterator();\n while (it.hasNext()) {\n ManagedProgramParameter mpp = it.next();\n // /* DEBUG */ System.err.println(mpp);\n programCall.addParameter(mpp.getProgramParameter());\n }\n }", "title": "" }, { "docid": "202845412814ea3e29ee727d4205dfb1", "score": "0.45812398", "text": "public EnvironmentImpl() {\n\t\tscanner = new Scanner(System.in);\n\t\tcommands = new TreeMap<String, ShellCommand>();\n\t\tpopulateMap();\n\t\tcurrDir = Path.of(System.getProperty(\"user.dir\"));\n\t\tsharedData = new HashMap<>();\n\t}", "title": "" }, { "docid": "819a48cba8ec1845815682db56dd7e97", "score": "0.45808494", "text": "@Override\n public void add(Qryop q) throws IOException {\n args.add(q);\n }", "title": "" }, { "docid": "485c78afac6fc4dc17e9fedda7c89c07", "score": "0.45739937", "text": "public Vars add(Vars vs) { return a.add(vs); }", "title": "" }, { "docid": "905a01aacd08cb3d9b86af2ebbc8c974", "score": "0.45729497", "text": "String[] getEnvVars() {\n return envVars;\n }", "title": "" } ]
652b9eff9bb623432f5cf1c057778a20
repeated int32 dims = 1[json_name = "dims"];
[ { "docid": "993edb6d554360614cfed5457a9f128f", "score": "0.5639273", "text": "int getDims(int index);", "title": "" } ]
[ { "docid": "a9bbff6de868d99d049c0a1dfef01729", "score": "0.60289973", "text": "ArrayListener array(int arrayDims, JsonType type);", "title": "" }, { "docid": "bad5ea5753094dbca6ef4c63fcc7836c", "score": "0.5552414", "text": "public static int numDimensions_payload() {\n return 1;\n }", "title": "" }, { "docid": "f79573c6d2d21fd1c2fe0d3410033399", "score": "0.55244964", "text": "public String[] dimensions();", "title": "" }, { "docid": "9492531367810b4ff9b87fc04ac4d57b", "score": "0.53531575", "text": "public int[] getDimensions()\n {\n return dimensions;\n }", "title": "" }, { "docid": "27b58c1774f26781a405ee1d70e72b77", "score": "0.53452116", "text": "public int getSpecDimension();", "title": "" }, { "docid": "a3bf370f1f710194d880dc3db3ac353f", "score": "0.53009903", "text": "java.util.List<java.lang.Integer> getDimsList();", "title": "" }, { "docid": "f77a32f9c8e5402dcf3eb437aff64ccd", "score": "0.52789927", "text": "com.google.analytics.data.v1beta.Dimension getDimensions(int index);", "title": "" }, { "docid": "25b68ac42b2263db7f560c4168e48a07", "score": "0.5245577", "text": "public abstract int getDimensions();", "title": "" }, { "docid": "14d3608b1527e7f9e2bc71b0ea082dd2", "score": "0.52366126", "text": "public int[] getDimension() {\n return dimension;\n }", "title": "" }, { "docid": "6d43047036e787493ec5a13b4ce484ed", "score": "0.52248454", "text": "public int[][] getDimensions(){\n return dimensions;\n }", "title": "" }, { "docid": "18303cfd5268835da00ee9fea805fc34", "score": "0.5215681", "text": "com.google.analytics.data.v1beta.DimensionOrBuilder getDimensionsOrBuilder(int index);", "title": "" }, { "docid": "93fdac35c9b90ca0b09031e3d1c172b3", "score": "0.52044606", "text": "public abstract short getDimensions();", "title": "" }, { "docid": "239b39ad559e812f39ae9515ac6619cd", "score": "0.51955694", "text": "String getDimension();", "title": "" }, { "docid": "afe0379ed71ef5affcd0c6d29604edb6", "score": "0.5183772", "text": "DimensionsType1 getDimensions();", "title": "" }, { "docid": "0d9de1f49a495e5ff56241bd2805268b", "score": "0.51585805", "text": "public int getDimension() {\n return 3;\n }", "title": "" }, { "docid": "bbc43b865c34446b01f126195aa48239", "score": "0.51435", "text": "public int getDimension()\n {\n return mapValues.length; \n }", "title": "" }, { "docid": "d353f5444cd4baa9f0186431ce677676", "score": "0.51336324", "text": "int getDimensionsCount();", "title": "" }, { "docid": "2b14a31da1e615faa326dbcb2f50ff6b", "score": "0.5120423", "text": "private int getDim(String dims, String dim) {\n dims = dims.replaceAll(\"[()]\",\"\");\n String dimsArr[] = dims.split(\",\");\n int dimension = 0;\n\n switch (dim) {\n case \"height\":\n dimension = Integer.parseInt(dimsArr[0]);\n break;\n case \"width\":\n dimension = Integer.parseInt(dimsArr[1]);\n break;\n default:\n System.out.println(\"unkown dimension\");\n }\n\n return dimension;\n }", "title": "" }, { "docid": "f8129a52198b4b64c4857b0df881c78c", "score": "0.5103749", "text": "String[] dimensionIdentifier();", "title": "" }, { "docid": "7964ecc7823083c28e0855c1909f3f57", "score": "0.5086069", "text": "public int getDimensions() {\n\t\treturn dimensions;\n\t}", "title": "" }, { "docid": "c58cbb82d09369ddad4602a867997646", "score": "0.5084348", "text": "public int numberOfDimensions();", "title": "" }, { "docid": "c5e515c74734a9a95ece9d5d96bb4dbe", "score": "0.5075126", "text": "@Override\r\n public int getDimensions() {\r\n return values_.length;\r\n }", "title": "" }, { "docid": "0bbfb816d31d9b6cabefcbb1dc246e76", "score": "0.50714827", "text": "public int getDims(int index) {\n return dims_.getInt(index);\n }", "title": "" }, { "docid": "fb74634e17448075c1271aecbcce2d4e", "score": "0.5047416", "text": "String getValueOfDimension();", "title": "" }, { "docid": "b187682c8d4cd577880e508769400edb", "score": "0.50473905", "text": "public java.util.List<java.lang.Integer>\n getDimsList() {\n return ((bitField0_ & 0x00000001) != 0) ?\n java.util.Collections.unmodifiableList(dims_) : dims_;\n }", "title": "" }, { "docid": "0e6fb2ecbbe6c8fc4616ccf78e993030", "score": "0.50419366", "text": "@Override\n public Array read(String varName){\n Variable var = this.getVariable(varName);\n int n = var.getDimNumber();\n int[] origin = new int[n];\n int[] size = new int[n];\n int[] stride = new int[n];\n for (int i = 0; i < n; i++){\n origin[i] = 0;\n size[i] = var.getDimLength(i);\n stride[i] = 1;\n }\n \n Array r = read(varName, origin, size, stride);\n \n return r;\n }", "title": "" }, { "docid": "a2e911444f29f310bcf42086f831414c", "score": "0.5041615", "text": "public int[] dimensionSizes();", "title": "" }, { "docid": "5f56f6f42c27e2066a22fb9a3b4ffbfc", "score": "0.50240827", "text": "int getDimsCount();", "title": "" }, { "docid": "cf6a498859e601bd7b05b19b97cae403", "score": "0.4983794", "text": "public int getDims(int index) {\n return dims_.getInt(index);\n }", "title": "" }, { "docid": "41c1b35dd07262b411f4abd1a73fd62f", "score": "0.49830723", "text": "private String parseDims(String compactMaze) {\n String[] output = compactMaze.split(\"-\");\n String dims = output[0];\n return dims;\n }", "title": "" }, { "docid": "b9552ba44f8597c658f0add5f587ffb1", "score": "0.4975333", "text": "@Test\n\tpublic void dimension()\n\t{\n\t\tMultibrot multi = new Multibrot();\n\t\tmulti.generateFractal();\n\t\tint[][] array = multi.getArray();\n\t\t\n\t\tint rows = array.length;\n\t\tint columns = array[0].length;\n\t\tassertEquals(2048, rows);\n\t\tassertEquals(2048, columns);\n\t\t\n\t}", "title": "" }, { "docid": "ebd856d43ea3e527a21c8fa3f276ec60", "score": "0.49714097", "text": "function add_dim(dim_size) {\n this.dims[this.num_dims] = dim_size;\n this.num_dims++;\n}", "title": "" }, { "docid": "138b605c46a89bb287adcda7390c94f0", "score": "0.49378842", "text": "public Dimension getDimensions()\n {\n return dimensions;\n }", "title": "" }, { "docid": "cb119a1bc60b874165ce4f13437b2d7a", "score": "0.49374646", "text": "public int getJDimension()\n {\n return jdimension;\n }", "title": "" }, { "docid": "2d2dafa79021a85f206489ea4afc999c", "score": "0.49328366", "text": "public int getArrayDim() {\n\n\t\tString str = getNode().getProperty(\"dim\"); //$NON-NLS-1$\n\t\tint dim;\n\t\ttry {\n\t\t\tdim = (int) SvdUtils.parseScaledNonNegativeLong(str);\n\t\t} catch (NumberFormatException e) {\n\t\t\tGdbActivator.log(\"Node \" + getNode().getName() + \", non integer <dim> \" + str); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tdim = 0;\n\t\t}\n\n\t\treturn dim;\n\t}", "title": "" }, { "docid": "5c55565873011d75c1eb7b386d569f56", "score": "0.4925454", "text": "public int getDimensions() {\n\t\treturn n.getDimensions();\n\t}", "title": "" }, { "docid": "50d066afe998b78d6f9e71beac8636e4", "score": "0.4920816", "text": "int getDim();", "title": "" }, { "docid": "d7f62dc64aaea9ce7c65a8b1ee56028a", "score": "0.49087438", "text": "public int dimension();", "title": "" }, { "docid": "035a105bc17954df5a305527f1c1d8a7", "score": "0.48946846", "text": "@java.lang.Override\n public java.util.List<java.lang.Integer>\n getDimsList() {\n return dims_;\n }", "title": "" }, { "docid": "d2c02b82d24666bf4366ed9c8d947113", "score": "0.48691213", "text": "public int getDim() {\n return dim;\n }", "title": "" }, { "docid": "12efe1ffd8bb466dd8d126354b79eff7", "score": "0.4853911", "text": "public int getDepth() {\n return dimension[2];\n }", "title": "" }, { "docid": "106da6bd0c95b7700e4cfa935171ec7c", "score": "0.48442778", "text": "public int dimension()\r\n\t{\r\n\t\treturn dim;\r\n\t}", "title": "" }, { "docid": "5113ddcdd0bbaf4477e72f68a5f2ac23", "score": "0.4821521", "text": "public static int countDimensions(String className) {\n int dims = 0;\n while(className.length() > dims && className.charAt(dims) == '[') {\n dims++;\n }\n return dims;\n }", "title": "" }, { "docid": "c8b4f185dbf35c70247d92189f86fee1", "score": "0.47977883", "text": "public int[] getDimensions()\r\n\t{\r\n\t\treturn new int[] {config.getInt(\"stageheight\"), config.getInt(\"stagewidth\"), config.getInt(\"stagelength\")};\r\n\t}", "title": "" }, { "docid": "c9a72f5cd155df226cc6a7c041c9fe65", "score": "0.47873753", "text": "public abstract int getDimension();", "title": "" }, { "docid": "0ff4fa99eb9a6b7c1f3b22847169f26a", "score": "0.4783678", "text": "function dods_var(name, js_var_name, is_array) {\n // Common members\n this.name = name;\n this.js_var_name = js_var_name;\n this.is_projected = 0;\n if (is_array > 0) {\n this.is_array = 1;\n this.num_dims = 0; // Holds the number of dimensions\n this.dims = new Array(); // Holds the length of the dimensions\n\n this.add_dim = add_dim;\n this.display_indices = display_indices;\n this.erase_indices = erase_indices;\n }\n else\n this.is_array = 0;\n\n this.handle_projection_change = handle_projection_change;\n this.get_projection = get_projection;\n this.get_selection = get_selection;\n}", "title": "" }, { "docid": "872d55bdf078a378e92e8723736586bf", "score": "0.47579712", "text": "public int getDimension() {\n\t\treturn dimension;\n\t}", "title": "" }, { "docid": "6ece749233e7e7f53170077a836293e6", "score": "0.4756959", "text": "public int dim() {\n\t\treturn _n;\n\t}", "title": "" }, { "docid": "5a19ee97e0c3eeed166c9f1bbc311f6e", "score": "0.47493303", "text": "public int getDimsCount() {\n return dims_.size();\n }", "title": "" }, { "docid": "2854d3e0afdc15d5e38123e24e43dc12", "score": "0.4745854", "text": "public int getDim() {\r\n\t\treturn dim;\r\n\t}", "title": "" }, { "docid": "22542b6ebdc932666f21495b98bf52b9", "score": "0.47335133", "text": "public int getDimension() {\r\n return this.dimension;\r\n }", "title": "" }, { "docid": "d9817062579b9025984d83233162b42f", "score": "0.46827126", "text": "private static int typeDim(NewArrayTree tree) {\n\t\tint dim = 0;\r\n\t\tif (dim == 0) {\r\n\t\t\ttry {\r\n\t\t\t\tField field = tree.getClass().getField(\"type\");\r\n\t\t\t\tObject ftype = field.get(tree);\r\n\t\t\t\twhile (ftype instanceof com.sun.tools.javac.code.Type.ArrayType) {\r\n\t\t\t\t\tcom.sun.tools.javac.code.Type.ArrayType atype = (com.sun.tools.javac.code.Type.ArrayType) ftype;\r\n\t\t\t\t\tcom.sun.tools.javac.code.Type elemtype2 = atype.elemtype;\r\n\t\t\t\t\tftype = elemtype2;\r\n\t\t\t\t\tdim++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tcatch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException e) {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn dim;\r\n\r\n\t}", "title": "" }, { "docid": "e17a3eec0893d84b74c1ac29a9792b95", "score": "0.46818176", "text": "IGrowCondition dimensionFromKeys(int strength, Collection<RegistryKey<World>> dimensions);", "title": "" }, { "docid": "3f8a1c6730dae0d0a3864bbec7c9993d", "score": "0.46734926", "text": "FlBaseProto.TensorMap getData();", "title": "" }, { "docid": "3f8a1c6730dae0d0a3864bbec7c9993d", "score": "0.46734926", "text": "FlBaseProto.TensorMap getData();", "title": "" }, { "docid": "3f8a1c6730dae0d0a3864bbec7c9993d", "score": "0.46734926", "text": "FlBaseProto.TensorMap getData();", "title": "" }, { "docid": "3f8a1c6730dae0d0a3864bbec7c9993d", "score": "0.46734926", "text": "FlBaseProto.TensorMap getData();", "title": "" }, { "docid": "5df0e8555fc0e261e32445f7acec67c8", "score": "0.4672654", "text": "public int dimension() {\n return d;\n }", "title": "" }, { "docid": "8ec8f2a505f117fc1500286a04ff10bd", "score": "0.4667469", "text": "public interface WEBGL_depth_texture extends Any {\n @JSProperty\n int getUNSIGNED_INT_24_8_WEBGL();\n\n}", "title": "" }, { "docid": "004038c581d7d2671136015cb885403d", "score": "0.4654573", "text": "public int getDimsCount() {\n return dims_.size();\n }", "title": "" }, { "docid": "40775d4b00aa26f6918c37f45bc285bb", "score": "0.4653109", "text": "public Dimension getDimension(String world, int dimension);", "title": "" }, { "docid": "05d5117942ed4cd66b34f7da9e6258f0", "score": "0.4644328", "text": "@Override\r\n public DimArray read(String varName, int[] origin, int[] size, int[] stride) {\r\n return null;\r\n }", "title": "" }, { "docid": "bf9a2c5e53785ee33bc71a6b3332063c", "score": "0.46333352", "text": "public void createSparseVarDimArray() throws TileDBError {\n Dimension<Integer> d1 =\n new Dimension<Integer>(ctx, \"d1\", Datatype.TILEDB_STRING_ASCII, null, null);\n\n // Create and set getDomain\n Domain domain = new Domain(ctx);\n domain.addDimension(d1);\n\n // Add two attributes \"a1\" and \"a2\", so each (i,j) cell can store\n // a character on \"a1\" and a vector of two floats on \"a2\".\n Attribute a1 = new Attribute(ctx, \"a1\", Integer.class);\n\n ArraySchema schema = new ArraySchema(ctx, TILEDB_SPARSE);\n schema.setTileOrder(TILEDB_ROW_MAJOR);\n schema.setCellOrder(TILEDB_ROW_MAJOR);\n schema.setDomain(domain);\n schema.addAttribute(a1);\n\n Array.create(arrayURI, schema);\n }", "title": "" }, { "docid": "97e9fe758c197f150cee03575ceb01ca", "score": "0.46204662", "text": "public int dimensions() {\r\n return values.length;\r\n }", "title": "" }, { "docid": "8c50e42e8d28e33d64a1b34a3aca9a82", "score": "0.46200785", "text": "private int readDimension (String prompt) {\n // initialize to insure at least one execution of\n // the loops:\n int dimension = -1;\n while (dimension < 0)\n dimension = readIntWithPrompt(prompt);\n return dimension;\n }", "title": "" }, { "docid": "6931df73ab26c294bf513b31b9e8bc62", "score": "0.46191552", "text": "IGrowCondition dimensionFromKeys(int strength, RegistryKey<World>... dimensions);", "title": "" }, { "docid": "01969c67125df5b9202cbafd7fe318be", "score": "0.46166855", "text": "public static void parse(String json){\n JsonFactory factory = new JsonFactory();\n InputStream stream = new ByteArrayInputStream(json.getBytes(StandardCharsets.UTF_8));\n try {\n JsonParser parser = factory.createJsonParser(stream);\n\n // continue parsing the token till the end of input is reached\n\n while (!parser.isClosed()) {\n // get the token\n JsonToken token = parser.nextToken();\n // if its the last token then we are done\n if (token == null)\n break;\n int valueInt = 0;\n float valueFloat = 0.0f;\n String name = \"\";\n String strValue = \"\";\n switch (token){\n case START_OBJECT:\n name = parser.getCurrentName();\n if(name == null){\n System.out.println(\"START_OBJECT root\");\n }else {\n System.out.println(\"START_OBJECT \" + name);\n }\n break;\n case END_OBJECT:\n name = parser.getCurrentName();\n System.out.println(\"END_OBJECT \"+name);\n break;\n case START_ARRAY:\n System.out.println(\"START_ARRAY\");\n break;\n case END_ARRAY:\n System.out.println(\"END_ARRAY\");\n break;\n case FIELD_NAME:\n System.out.println(\"FIELD_NAME\");\n break;\n case VALUE_STRING:\n strValue = parser.getText();\n System.out.println(\"VALUE_STRING = \"+strValue);\n break;\n case VALUE_NULL:\n System.out.println(\"VALUE_NULL\");\n break;\n case VALUE_NUMBER_FLOAT:\n valueFloat = parser.getFloatValue();\n System.out.println(\"VALUE_NUMBER_FLOAT = \"+valueFloat);\n break;\n case VALUE_NUMBER_INT:\n valueInt = parser.getValueAsInt();\n System.out.println(\"VALUE_NUMBER_INT = \"+valueInt);\n break;\n\n }\n // we want to look for a field that says dataset\n\n if (JsonToken.FIELD_NAME.equals(token) && \"dataset\".equals(parser.getCurrentName())) {\n // we are entering the datasets now. The first token should be\n // start of array\n token = parser.nextToken();\n if (!JsonToken.START_ARRAY.equals(token)) {\n // bail out\n break;\n }\n // each element of the array is an album so the next token\n // should be {\n token = parser.nextToken();\n if (!JsonToken.START_OBJECT.equals(token)) {\n break;\n }\n // we are now looking for a field that says \"album_title\". We\n // continue looking till we find all such fields. This is\n // probably not a best way to parse this json, but this will\n // suffice for this example.\n while (true) {\n token = parser.nextToken();\n if (token == null)\n break;\n if (JsonToken.FIELD_NAME.equals(token) && \"album_title\".equals(parser.getCurrentName())) {\n token = parser.nextToken();\n System.out.println(parser.getText());\n }\n }\n }\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "103623140e723d260a21bd163da22b94", "score": "0.46017286", "text": "public Builder addDims(int value) {\n ensureDimsIsMutable();\n dims_.addInt(value);\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1fc2d3c2e3eecf7566ad7d2bf7feac86", "score": "0.4574388", "text": "public int getRank()\n {\n return dimensions.length;\n }", "title": "" }, { "docid": "09f224253b0900d668648d08ae967c0c", "score": "0.45647463", "text": "@Override\n public int getBatchSize() {\n return jsonArray.size();\n }", "title": "" }, { "docid": "671ea0bb9ad518f7a9bdeb094d2f0952", "score": "0.45587483", "text": "public static JSONArray parseJSONArray(BufferedImage image) {\r\n\t\tJSONArray array = new JSONArray();\r\n\t\tarray.put(image.getWidth());\r\n\t\tarray.put(image.getHeight());\r\n\t\tJSONArray dataArray = new JSONArray();\r\n\t\tfor (int i = 0; i < image.getHeight(); i++) {\r\n\t\t\tfor (int j = 0; j < image.getWidth(); j++) {\r\n\t\t\t\tJSONObject obj = new JSONObject();\r\n\t\t\t\tobj.put(\"xCoordinate\", j);\r\n\t\t\t\tobj.put(\"yCoordinate\", i);\r\n\t\t\t\tobj.put(\"rgb\", image.getRGB(j, i));\r\n\t\t\t\tdataArray.put(obj);\r\n\t\t\t}\r\n\t\t}\r\n\t\tarray.put(dataArray);\r\n\t\treturn array;\r\n\t}", "title": "" }, { "docid": "b32a6c6e4ea1896d34241826e6e6126e", "score": "0.45560074", "text": "@Test\n public void test_invalidArrayAnnotationSize() {\n try {\n DynaCorbaRequest request = new DynaCorbaRequest(refArraysUnions, \"passStringArray\");\n Annotation[] notes =\n ArraysUnionsTuscanyServant.class.getMethod(\"passStringArray\", new Class<?>[] {String[][].class})\n .getAnnotations();\n request.setOutputType(String[][][].class, notes);\n fail();\n } catch (RequestConfigurationException e) {\n // expected\n } catch (Exception e) {\n e.printStackTrace();\n fail();\n }\n try {\n DynaCorbaRequest request = new DynaCorbaRequest(refArraysUnions, \"passStringArray\");\n Annotation[] notes =\n ArraysUnionsTuscanyServant.class.getMethod(\"passStringArray\", new Class<?>[] {String[][].class})\n .getAnnotations();\n request.addArgument(new String[0][0][0], notes);\n fail();\n } catch (RequestConfigurationException e) {\n // expected\n } catch (Exception e) {\n e.printStackTrace();\n fail();\n }\n try {\n DynaCorbaRequest request = new DynaCorbaRequest(refArraysUnions, \"passStringArray\");\n request.addArgument(new InvalidCorbaArray(), null);\n fail();\n } catch (RequestConfigurationException e) {\n // expected\n } catch (Exception e) {\n e.printStackTrace();\n fail();\n }\n }", "title": "" }, { "docid": "ee58ea65ef89e6dfcaadaaf6623ea2d0", "score": "0.45463696", "text": "int dim(){\n\t\treturn dimx*dimy;\n\t}", "title": "" }, { "docid": "0b9476cd6886f2132bb1497bfd5e85ca", "score": "0.45271483", "text": "public int getDimensions() {\n\t\tint dimensions = 1;\n\t\tfor (Type t = componentType; t instanceof ArrayType; ((ArrayType)t).getComponentType())\n\t\t\tdimensions++;\n\t\treturn dimensions;\n\t}", "title": "" }, { "docid": "f4fb834d726be40d933c53c23a863199", "score": "0.45237237", "text": "private void b(JsonElement paramJsonElement) throws ow\r\n/* 233: */ {\r\n/* 234:201 */ JsonObject localJsonObject = uh.l(paramJsonElement, \"uniform\");\r\n/* 235:202 */ String str = uh.h(localJsonObject, \"name\");\r\n/* 236:203 */ ctl localctl = ((cth)this.d.get(this.d.size() - 1)).c().a(str);\r\n/* 237:205 */ if (localctl == null) {\r\n/* 238:206 */ throw new ow(\"Uniform '\" + str + \"' does not exist\");\r\n/* 239: */ }\r\n/* 240:209 */ float[] arrayOfFloat = new float[4];\r\n/* 241:210 */ int m = 0;\r\n/* 242:211 */ JsonArray localJsonArray = uh.t(localJsonObject, \"values\");\r\n/* 243:213 */ for (JsonElement localJsonElement : localJsonArray)\r\n/* 244: */ {\r\n/* 245: */ try\r\n/* 246: */ {\r\n/* 247:215 */ arrayOfFloat[m] = uh.d(localJsonElement, \"value\");\r\n/* 248: */ }\r\n/* 249: */ catch (Exception localException)\r\n/* 250: */ {\r\n/* 251:217 */ ow localow = ow.a(localException);\r\n/* 252:218 */ localow.a(\"values[\" + m + \"]\");\r\n/* 253:219 */ throw localow;\r\n/* 254: */ }\r\n/* 255:221 */ m++;\r\n/* 256: */ }\r\n/* 257:224 */ switch (m)\r\n/* 258: */ {\r\n/* 259: */ case 0: \r\n/* 260: */ break;\r\n/* 261: */ case 1: \r\n/* 262:229 */ localctl.a(arrayOfFloat[0]);\r\n/* 263:230 */ break;\r\n/* 264: */ case 2: \r\n/* 265:232 */ localctl.a(arrayOfFloat[0], arrayOfFloat[1]);\r\n/* 266:233 */ break;\r\n/* 267: */ case 3: \r\n/* 268:235 */ localctl.a(arrayOfFloat[0], arrayOfFloat[1], arrayOfFloat[2]);\r\n/* 269:236 */ break;\r\n/* 270: */ case 4: \r\n/* 271:238 */ localctl.a(arrayOfFloat[0], arrayOfFloat[1], arrayOfFloat[2], arrayOfFloat[3]);\r\n/* 272: */ }\r\n/* 273: */ }", "title": "" }, { "docid": "0101c52d2c1a456cf05fafcff864b8e1", "score": "0.4516533", "text": "public static int getJsonArrayLength(String json) {\n\t\ttry {\n\t\t\tJSONArray jsonArray = new JSONArray(json);\n\t\t\treturn jsonArray.length();\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "c1b4e16e9099d8b1854d017af0966657", "score": "0.45109713", "text": "public static int numElements_payload(int dimension) {\n int array_dims[] = { 100, };\n if (dimension < 0 || dimension >= 1) throw new ArrayIndexOutOfBoundsException();\n if (array_dims[dimension] == 0) throw new IllegalArgumentException(\"Array dimension \"+dimension+\" has unknown size\");\n return array_dims[dimension];\n }", "title": "" }, { "docid": "e16dd58a0326f8909977a2b545ad5110", "score": "0.45068797", "text": "public abstract int mo16681X() throws IOException, JsonParseException;", "title": "" }, { "docid": "0e2fd3811c5f48cecce2f9aaf0b55e7b", "score": "0.44900244", "text": "public JsonArray createArray();", "title": "" }, { "docid": "b274803667ece292715e89a0914c8774", "score": "0.44896114", "text": "@Test\n void testJsonDataMultipleMetricsSameName() {\n JsonObject multiple = MetricsSupport.jsonDataByName(app, CONCURRENT_GAUGE_NAME);\n assertNotNull(multiple);\n JsonObject top = multiple.getJsonObject(CONCURRENT_GAUGE_NAME);\n assertNotNull(top);\n JsonNumber blueNumber = top.getJsonNumber(\"current;color=blue\" + globalTagsJsonSuffix);\n assertNotNull(blueNumber);\n assertEquals(BLUE_CONCURRENT_GAUGE_COUNT, blueNumber.longValue());\n JsonNumber redNumber = top.getJsonNumber(\"current;color=red\" + globalTagsJsonSuffix);\n assertNotNull(redNumber);\n assertEquals(RED_CONCURRENT_GAUGE_COUNT, redNumber.longValue());\n }", "title": "" }, { "docid": "ea0452be6b6235b8f46905b4860f2b16", "score": "0.44841278", "text": "private int[] loadJSONBoard () {\n FileHandle file = Gdx.files.internal(Constants.LUDO_BOARD_JSON_LEVEL);\n JsonValue root = new JsonReader().parse(file);\n JsonValue boardElement = root.get(Constants.LUDO_BOARD_JSON_LEVEL_ARRAY_KEY);\n return boardElement.asIntArray();\n }", "title": "" }, { "docid": "9e7b2c8dcf96f31dd7b1e5057cc8b069", "score": "0.44732803", "text": "@Parameterized.Parameters(name = \"{index}: k = {0}; n = {1}\")\n\tpublic static Iterable<Object[]> data() {\n\t\treturn Arrays.asList(\n\t\t\t\tnew Object[][] { { -1, 2 }, { 1, -2 }, { 2, 1 } });\n\t}", "title": "" }, { "docid": "68ba17a430b9e8a5af9c8164ceac6ee8", "score": "0.4466977", "text": "@JsonProperty(\"data\")\n public abstract List<Set<Integer>> data();", "title": "" }, { "docid": "d3e612344eff8748cfd74af08328e888", "score": "0.44572437", "text": "int getVars(int index);", "title": "" }, { "docid": "9cc35b1336abccd896f06a62e6645281", "score": "0.4456167", "text": "public int getDimension(T basisElement);", "title": "" }, { "docid": "5e5875fd1eaf6b2c64e88c906af9f886", "score": "0.4446336", "text": "IGrowCondition dimensionFromTypes(int strength, DimensionType... dimensions);", "title": "" }, { "docid": "34ca2c7b73e584f75c855b1d544786a8", "score": "0.44398475", "text": "int getNbVars();", "title": "" }, { "docid": "c6ad0fe6473afb622e1137dda593278f", "score": "0.44260496", "text": "public static int getDim(Object array) {\n int dim = 0;\n Class cls = array.getClass();\n while (cls.isArray()) {\n dim++;\n cls = cls.getComponentType();\n }\n return dim;\n }", "title": "" }, { "docid": "bcabd283cab72cba41b9ff5256a267b4", "score": "0.44237342", "text": "public int getNumDimensions() {\n int numDims = 1;\n ArrayTypeSignature curr = this;\n while (curr.nestedType instanceof ArrayTypeSignature) {\n curr = (ArrayTypeSignature) curr.nestedType;\n numDims++;\n }\n return numDims;\n }", "title": "" }, { "docid": "a2fe60fd5c2950bca10f1ddfbe0bc54f", "score": "0.4415258", "text": "public Dimension getDimension() {\n return d;\n }", "title": "" }, { "docid": "d00d4ceea886d868676496ef8e4e9182", "score": "0.44004497", "text": "function describe_index() {\n defaultStatus = \"Enter start, stride and stop for the array dimension.\";\n}", "title": "" }, { "docid": "ed0d75015fd3c6a95be70fb6e5f508fb", "score": "0.43999824", "text": "FlBaseProto.TensorMapOrBuilder getDataOrBuilder();", "title": "" }, { "docid": "ed0d75015fd3c6a95be70fb6e5f508fb", "score": "0.43999824", "text": "FlBaseProto.TensorMapOrBuilder getDataOrBuilder();", "title": "" }, { "docid": "ed0d75015fd3c6a95be70fb6e5f508fb", "score": "0.43999824", "text": "FlBaseProto.TensorMapOrBuilder getDataOrBuilder();", "title": "" }, { "docid": "ed0d75015fd3c6a95be70fb6e5f508fb", "score": "0.43999824", "text": "FlBaseProto.TensorMapOrBuilder getDataOrBuilder();", "title": "" }, { "docid": "5dfa71a77e2c24a31ec26428e5d3a20a", "score": "0.43783662", "text": "java.lang.String getDimensionsCandidates(int index);", "title": "" }, { "docid": "a606df3ea645cae0bc66782cee0d2290", "score": "0.4376929", "text": "public interface NDArrayHolder extends Serializable {\n\n /**\n * The number of updates\n * that have been sent to this older.\n * @return\n */\n int totalUpdates();\n\n /**\n * Retrieve an ndarray\n * @return\n */\n INDArray get();\n}", "title": "" }, { "docid": "0cbba48f2dba3f4193a776ca85e083a0", "score": "0.4371796", "text": "private JsonValue create(int i) {\n JsonArray a = Json.createArrayBuilder()\n .add(i)\n .build();\n return a.get(0);\n }", "title": "" }, { "docid": "19063172b1b2944d361207dd427df920", "score": "0.43677244", "text": "@Test\n public void test40() throws Throwable {\n HashMap<LabeledWord, JSONObject> hashMap0 = new HashMap<LabeledWord, JSONObject>();\n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n JSONObject jSONObject1 = jSONObject0.putOpt(\"val\", (Object) jSONObject0);\n try {\n JSONArray jSONArray0 = jSONObject0.getJSONArray(\"val\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONObject[\\\"val\\\"] is not a JSONArray.\n //\n }\n }", "title": "" }, { "docid": "8fc32421938dca66dbb2638483643873", "score": "0.43591195", "text": "java.util.List<com.google.analytics.data.v1beta.Dimension> getDimensionsList();", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "f814a94e20331cf59609f5719d65c0e8", "score": "0.0", "text": "@Override\r\n public boolean addResource(Resource re) {\n\tString sql=\"insert into resource (openId,newfilename,originName,size,type) values(?,?,?,?,?)\";\r\n\tPreparedStatement psmt=null;\r\n\tboolean flag=false;\r\n\ttry {\r\n\t\t psmt = conn.prepareStatement(sql);\r\n\t\tpsmt.setString(1, re.getOpenid());\r\n\t\tpsmt.setString(2, re.getNewfileName());\r\n\t\tpsmt.setString(3, re.getOriginName());\r\n\t\tpsmt.setString(4, re.getSize());\r\n\t\tpsmt.setInt(5,re.getType());\r\n\t\tint i = psmt.executeUpdate();\r\n\t\tif (i == 1) {\r\n\t\t\tflag = true;\r\n\t\t}\r\n\t} catch (SQLException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}finally\r\n\t {\r\n\t if(psmt!= null)\r\n\t\ttry {\r\n\t\t psmt.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t e.printStackTrace();\r\n\t\t} \t\t\r\n\t if(conn!= null)\r\n\t\ttry {\r\n\t\t conn.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t // TODO Auto-generated catch block\r\n\t\t e.printStackTrace();\r\n\t\t} \r\n\t }\r\n\treturn flag;\r\n }", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6831473", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67589027", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.6593355", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ff9130d3531037a891a2580fd00e89e9", "score": "0.649512", "text": "@Override\r\n\tpublic void refuel() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.64787245", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "440ce72c689aef1dd3c429cf5498732b", "score": "0.6443756", "text": "@Override\n\tpublic void pohyb() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "592b765f0188dd7fa8d3f1f3683fa9d7", "score": "0.62889814", "text": "@Override\n\tprotected void generateData() {\n\t\t\n\t}", "title": "" }, { "docid": "4bc8e88e84699c223ea476caacb4d454", "score": "0.6277223", "text": "@Override\r\n\tpublic void sauter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "db6adf52deb87c2723f80c6df873c47d", "score": "0.6273419", "text": "public void mo4741aD() {\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.6230557", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "95ffa256b098e9b494cb96d4874e063f", "score": "0.6218078", "text": "@Override\n\tvoid refuel() {\n\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.61277896", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "ce165aec4a92510d2d7f78a45c6a1f81", "score": "0.60921794", "text": "@Override\r\n\tpublic void retirer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "23f3a7415a3f7463e8a1124d06cf4cf2", "score": "0.609125", "text": "@Override\n\tpublic void valide() {\n\t\t\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e2c0ee2f563aa58a1d1fbb6ed1a49084", "score": "0.60562134", "text": "public void namam() {\n\t\t\r\n\t}", "title": "" }, { "docid": "453637afdcc490de35afa10f347a4092", "score": "0.6052283", "text": "protected void mo4927v() {\n }", "title": "" }, { "docid": "081ae6b4d91b610b8046f5ebfe7ba326", "score": "0.60330045", "text": "@Override\r\n\tpublic void fertilizar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "5fda61f75e47491fe0badbfe139070a9", "score": "0.6020252", "text": "@Override\n\tprotected void initdata() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.60185045", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "4c957ed6879296e2489fa4cc534c9d68", "score": "0.60134614", "text": "@Override\r\n\tpublic void geefMeerprijs() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "e1a5212784625cf033b8b0d71916d9a8", "score": "0.59843665", "text": "@Override\r\n\tpublic void se_baisser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.598327", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "8a997a9a187c71891dd8b44afdbaa2a2", "score": "0.59794915", "text": "private void noOtomatis(){\n\n \n \n \n\n }", "title": "" }, { "docid": "0056b38abf02cf94e7a1afab1755d909", "score": "0.59666646", "text": "@Override\r\n\tpublic void defendre() {\n\t\t\r\n\t}", "title": "" }, { "docid": "05b92fe6834e71a629bc6b218827d95f", "score": "0.596291", "text": "Intervencion() {\n\t}", "title": "" }, { "docid": "acc39f55f5b37ab7050a241c64f9a4f9", "score": "0.59580564", "text": "@Override\n\tpublic void actualize() {\n\t\t\n\t}", "title": "" }, { "docid": "9a1a66628f4518af9fa213c400d9592e", "score": "0.5951102", "text": "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "b4f806add60ad7a84ab034d616e626e7", "score": "0.59232795", "text": "@Override\n public void Ramasser() {\n }", "title": "" }, { "docid": "fb8e5a5b14d5c382d38f4afcb6d4f55d", "score": "0.59119946", "text": "@Override\r\n\tpublic void reculer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9b74342d0ae0e22bc7119b60588c66a", "score": "0.5897873", "text": "@Override\n\t\t\tpublic int getType() {\n\t\t\t\treturn 0;\n\t\t\t}", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.58930063", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "47bef3d0c0ee761e936de1dada2442ec", "score": "0.5845612", "text": "private void Partida() {\r\n\t}", "title": "" }, { "docid": "c34617230b51592fc8652a6c8fc39d7b", "score": "0.5841976", "text": "@Override\n\t\t public int describeContents() { \n\t\t return 0;\n\t\t }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.58368444", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74acf90efa52ac7bee2d28c6dee180bf", "score": "0.5808944", "text": "public void mo25302P() {\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "4958a5331fdb65d09e333f006441f701", "score": "0.57990485", "text": "@Override\n public int size() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "2a790ebdc342a2b85b21b58d99e8bb02", "score": "0.57934815", "text": "@Override\n\tpublic void landen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b17089ec7f3b873adc1ebff906be9241", "score": "0.5790544", "text": "@Override\r\n\tpublic void carregar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "925ab02db0448f51f913efd603e7b5b4", "score": "0.57877386", "text": "@Override\n\tpublic void breathe() {\n\n\t\t\n\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "3f682cd35cc51a176e84d31bb70401ec", "score": "0.5786728", "text": "@Override\n\t\t\tpublic int Order() {\n\t\t\t\treturn 1;\n\t\t\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b0f36892991e52a8359bd9bea7916606", "score": "0.5773981", "text": "@Override\r\n\tpublic void Value() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e7dbef6468de164eadd6d220b4ed2936", "score": "0.57625693", "text": "@Override\n\tpublic void vegetais() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "627bf6ef88b45b88b902a23fc9a6eb2b", "score": "0.5754491", "text": "@Override\r\n\tpublic void init()\r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "1985dddb6264adc2fb069a687b25f36b", "score": "0.57541007", "text": "@Override\n\tpublic void groom() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dfa3deb699f1baaf610b77ae9370559a", "score": "0.57471", "text": "@Override\n\tpublic void gravar() {\n\n\t}", "title": "" }, { "docid": "bf96ef68c4dc727efe52fcae4e20a6c6", "score": "0.5736261", "text": "@Override\r\n public int getType() {\n return 1;\r\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "a7ae27b45bb1a02a96ba4232264be825", "score": "0.57315516", "text": "@Override\n\tpublic void embarcar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b16d59a149827c698e510477f7a4e9d", "score": "0.57292205", "text": "public void mo9585b() {\n }", "title": "" }, { "docid": "0ce436410fb4ad1af4e012ab5253a43a", "score": "0.57232136", "text": "@Override\n\tpublic void maas() {\n\t\t\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "10daa0b69fc83ea1f81c27147cd56557", "score": "0.5712038", "text": "@Override\n\tpublic void Ordenar() {\n\t\t\n\t}", "title": "" }, { "docid": "78a0d7cad7b423dba2c6000b1302b9a0", "score": "0.5705727", "text": "@Override\n\tprotected void ganharExp() {\n\t\t\n\t}", "title": "" }, { "docid": "162a468b891a508701c52265588e91b6", "score": "0.5699155", "text": "@Override\r\n public void init() {\n\r\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "6fba68e503150b58bb627390fe723ce3", "score": "0.56942755", "text": "@Override\r\n\tpublic void servir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9e8299e02e2afca4b347ab5022949b84", "score": "0.56936175", "text": "@Override\n public void rest() {\n \n }", "title": "" }, { "docid": "ddd8d8a26991b887b8f19171d700e1d3", "score": "0.56922704", "text": "@Override\n\tpublic void proveerdatos() {\n\t\t\n\t}", "title": "" }, { "docid": "e21063ae833db842230f1d37006a0359", "score": "0.56854326", "text": "@Override public int getAtaque(){\n\n return 0;\n\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "2aed4e4b25907c376dc30c486b4f975f", "score": "0.5657416", "text": "public final void mo73469b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
a2eaa1854707b203dac707a3cbd241f9
Translates raw input code points to DFA table row
[ { "docid": "4ea6424a8f443b4002439f8e63895d3e", "score": "0.0", "text": "private static int zzCMap(int input) {\n int offset = input & 255;\n return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];\n }", "title": "" } ]
[ { "docid": "b71c39e753b9df812c336fa586fd84f4", "score": "0.54344654", "text": "private void translationTable(){\n\t\tencode = new int[length()];\n\t\tfor(int i = 0 ; i< length() ; i++){\n\t\t\tencode[word[i]] = i;\n\t\t}\n\t}", "title": "" }, { "docid": "c8e04f8bf3de48e45ff9319f5ebf5c04", "score": "0.5351471", "text": "private void drawAndConvertFA() {\n\t\t\t// input alphabet\n\t\t\tState initialState = null;\n\t\t\tArrayList<State> finalStates = new ArrayList<State>();\n\t\t\tArrayList<State> states = new ArrayList<>();\n\n\t\t\tArrayList<String> inputAlphabet = splitIntoArrayList(txtInputAlphabet.getText());\n\t\t\tif (validListInput(inputAlphabet)) {\n\n\t\t\t\t// states\n\t\t\t\tArrayList<String> stateLabels = splitIntoArrayList(txtStates.getText());\n\t\t\t\tif (validListInput(stateLabels)) {\n\n\t\t\t\t\t// final states\n\t\t\t\t\tArrayList<String> finalStateLabels = new ArrayList<String>();\n\t\t\t\t\tfinalStateLabels.addAll(finalStateList.getSelectedValuesList());\n\n\t\t\t\t\tif (validListInput(finalStateLabels)) {\n\n\t\t\t\t\t\tfor (String label : stateLabels) {\n\t\t\t\t\t\t\tState state = createState(label);\n\n\t\t\t\t\t\t\tif (finalStateLabels.contains(label)) {\n\t\t\t\t\t\t\t\tstate.setFinal(true);\n\t\t\t\t\t\t\t\tfinalStates.add(state);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tString initial = initialStateCombo.getSelectedItem().toString();\n\t\t\t\t\t\t\tif (initial.equals(label)) {\n\t\t\t\t\t\t\t\tinitialState = state;\n\t\t\t\t\t\t\t\tstate.setInitial(true);\n\t\t\t\t\t\t\t\tstates.add(0, state); // want initial state to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// be at front\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tstates.add(state);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttransitionTable.clearSelection();\n\t\t\t\t\t\tint rows = transitionTable.getRowCount();\n\t\t\t\t\t\tint cols = transitionTable.getColumnCount();\n\n\t\t\t\t\t\tfor (int i = 0; i < rows; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j < cols; j++) {\n\n\t\t\t\t\t\t\t\t// if its valid, add transitions to states\n\t\t\t\t\t\t\t\tObject cellItem = transitionTable.getModel().getValueAt(i, j);\n\n\t\t\t\t\t\t\t\tString input = transitionTable.getColumnName(j);\n\t\t\t\t\t\t\t\tState stateFrom = getState(transitionTable.getValueAt(i, 0).toString(), states);\n\n\t\t\t\t\t\t\t\tif (cellItem != null) {\n\t\t\t\t\t\t\t\t\tString[] reachableStates = cellItem.toString().split(\",\");\n\n\t\t\t\t\t\t\t\t\tArrayList<String> statesReached = new ArrayList<>();\n\n\t\t\t\t\t\t\t\t\tfor (String stateLabel : reachableStates) {\n\t\t\t\t\t\t\t\t\t\tstateLabel = stateLabel.trim();\n\n\t\t\t\t\t\t\t\t\t\tif (!stateLabel.equals(\"\") && !statesReached.contains(stateLabel)) {\n\n\t\t\t\t\t\t\t\t\t\t\tState stateTo = getState(stateLabel, states);\n\t\t\t\t\t\t\t\t\t\t\tif (stateTo != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t// add transition from state to\n\t\t\t\t\t\t\t\t\t\t\t\t// this state, with column\n\t\t\t\t\t\t\t\t\t\t\t\t// header as the label\n\t\t\t\t\t\t\t\t\t\t\t\tstateFrom.addTransition(stateTo, input);\n\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tString message = \"State \" + stateLabel\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" is not part of the state list.\";\n\t\t\t\t\t\t\t\t\t\t\t\tthrowError(message);\n\t\t\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tstatesReached.add(stateLabel);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// it will all be initialised at this point, since its\n\t\t\t\t\t\t// inside all of the if statements\n\t\t\t\t\t\tfaToConvert = createFA(initialState, finalStates, states, inputAlphabet);\n\t\t\t\t\t\tfaDiagramFAPanel.convert(faToConvert);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString message = \"Please choose a final state. To select multiple hold the 'command' key.\";\n\t\t\t\t\t\tthrowError(message);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tString message = \"The list of states cannot be empty. Please enter some states.\";\n\t\t\t\t\tthrowError(message);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tString message = \"The Input alphabet cannot be empty.\";\n\t\t\t\tthrowError(message);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "87c12896060dc5cca24aaec511aa477c", "score": "0.53498966", "text": "public void doStep()\r\n {\r\n LLSymbol top = null;\r\n try\r\n { // popnem symbol\r\n top = stack.pop();\r\n }\r\n catch(EmptyStackException ese)\r\n { //toto je ochrana pre gramatiku s pravidlom\r\n // S-> \\eps\r\n LLSymbol eps = new LLEpsilon();\r\n if(inputWord.equals(Arrays.asList(eps)))\r\n {\r\n inputWord = new ArrayList<>();\r\n throw ese;\r\n }\r\n else\r\n {\r\n throw ese;\r\n }\r\n }\r\n if(top != null)\r\n {\r\n //overim zhodu [a,a] kde a \\in \\Sigma\r\n if(top.isTerminal() && inputWord.get(0).equals(top))\r\n { //je to neterminal a zhoda sedi tak orezem vstup\r\n buildOutputRow(top, inputWord.subList(0,1),null, true);\r\n inputWord = inputWord.subList(1, inputWord.size()); \r\n stm.step();\r\n }\r\n else if(top.isNonterminal())\r\n { // je to neterminal takze si oznacim ci nastane match\r\n boolean hasSwitched = false;\r\n for(List<LLSymbol> prefix : table.colsAsList())\r\n { // beham cez stlpce ale len tie co vyhovuju dlzke\r\n // pretoze ak by slovo bolo aa, a ja sa spytam na prefix bbc\r\n // tak to crashne na indexExcpetion. ak sedi prefix tak cekujem ci su rovnake symboly\r\n if(inputWord.size() >= prefix.size() && prefix.equals(inputWord.subList(0, prefix.size())))\r\n {\r\n if(table.getValueAtPosition(top, prefix) != null)\r\n { // je to ok takze vezmem pravu stranu pravidla do pomocneho zasobnika\r\n TState ts = table.getValueAtPosition(top, prefix);\r\n List<LLSymbol> toStack = new ArrayList<>(ts.getRule());\r\n buildOutputRow(top, null, ts,false);\r\n if(toStack.size() == 1 && toStack.get(0).isEpsilon())\r\n {\r\n // epsilon nic nerobi iba maze symbol\r\n }\r\n else\r\n { // otocim co tlacim na zasobnik\r\n for(int i = toStack.size()-1; i >= 0 ; i--)\r\n {\r\n stack.push(toStack.get(i));\r\n }\r\n }\r\n //oznacim si zmenu a z dovodu efektivity vyskocim z foru\r\n hasSwitched = true;\r\n break; \r\n }\r\n else\r\n {\r\n throw new IllegalArgumentException(\"ERROR: For given prefix [\"+Tools.buildWord(prefix)+\"] is no rule. Word cannot be generated by given gramar.\"); // chybna kombinacia\r\n }\r\n } \r\n }\r\n // notifikujem table model o zmene obsahu zasobnika\r\n stm.step();\r\n if(!hasSwitched)\r\n { // sem by sa to dostat nemalo pretoze ak je zhodny\r\n // prefix a zasobnik tak to crashne cez IAE error\r\n throw new IllegalArgumentException(\"There has been error for unprocessed input.\\nFor given combination there is no computation.\\nIt means that given word cannot be generated by selected grammar.\");\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5b219fec9f70b14887e2319573f37e5c", "score": "0.53269", "text": "protected abstract void translate( Symtable<SYMs> symtable, APT<APTs> parseTree,\n AST<ASTs> syntaxTree );", "title": "" }, { "docid": "ba6c7e5a428c4cbe89df61b3f96e32a5", "score": "0.5322014", "text": "@Override\r\n\tpublic void processRawData(String[] str)\r\n\t{\r\n\t\tif (this.firstUsing)\r\n\t\t{\r\n\t\t\tthis.table = new Table(str, null);\r\n\t\t\tthis.prefCols = this.table.getHeaderSize();\r\n\t\t\tthis.firstUsing = false;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tArrays.setAll(str, value -> str[value].replaceAll(Configuration.unicodeDelimiter, String.valueOf(Configuration.matrixDelimiter)));\r\n\r\n\t\tthis.table.addValue(str);\r\n\t\tthis.prefRows = this.table.size();\r\n\t}", "title": "" }, { "docid": "4c2c618eaf51532e02e173bbc812a642", "score": "0.52656746", "text": "protected Object[][] convertStringsToTableFormat(State[] states) {\n Object[][] data;\n int i = 0;\n int numIntervals = 0;\n int numColumns = 6; // name-symbol-value-separator-value-symbol\n String aString = \"\";\n String lowSymbol = \"\";\n String upperSymbol = \"\";\n double lowValue;\n double upperValue;\n int index = 0;\n String name = \"\";\n numIntervals = states.length;\n data = new Object[numIntervals][numColumns];\n int position = 0;\n try {\n for (i = 0; i < numIntervals; i++) {\n // for (i = numIntervals-1; i >= 0; i--) {\n position = 0;\n // aString = GUIDefaultStates.getString(states[i].getName());\n aString = states[i].getName();\n // find name & lowSymbol\n index = aString.indexOf(\"[\");\n if (index < 0)\n index = aString.indexOf(\"(\");\n name = aString.substring(0, index);\n data[i][position++] = name; // position 0\n aString = aString.substring(index, aString.length());\n lowSymbol = aString.substring(0, 1);\n data[i][position++] = lowSymbol; // position 1\n // find lowValue\n aString = aString.substring(1, aString.length());\n index = aString.indexOf(\",\");\n lowValue = Double.valueOf(aString.substring(0, index));\n data[i][position++] = lowValue; // position 2\n // find separator\n aString = aString.substring(index, aString.length());\n data[i][position++] = aString.substring(0, 1); // position 3\n // find upperValue\n aString = aString.substring(1, aString.length());\n index = aString.indexOf(\"]\");\n if (index < 0)\n index = aString.indexOf(\")\");\n upperValue = Double.valueOf(aString.substring(0, index));\n data[i][position++] = upperValue; // position 4\n // find upperSymbol\n aString = aString.substring(index, aString.length());\n upperSymbol = aString.substring(0, 1);\n data[i][position++] = upperSymbol; // position 5\n }\n } catch (StringIndexOutOfBoundsException ex) {\n // ExceptionsHandler.handleException(ex,\n // \"Error accessing position in Intervals \" + i + position--,\n // false );\n logger.info(\"Error accessing position in Intervals \" + i + position--);\n }\n return data;\n }", "title": "" }, { "docid": "671755042c790a306ae93a931dcfb03d", "score": "0.5246235", "text": "private static Quintuple<State, Character, Character, String, State> detectTrans(String dataEntry) {\n int i = 0; int j=0;\n\n // read the name of the 'from' state\n while (j < dataEntry.length() && dataEntry.charAt(j) != '-') {\n j++;\n }\n State from =new State(dataEntry.substring(i, j));\n j++; j++; i = j;\n\n // read the next state\n while (j < dataEntry.length() && dataEntry.charAt(j) != '[') {\n j++;\n }\n State to = new State(dataEntry.substring(i, j));\n\n // advance to the next char after thw word label=\" that contains 7 characters and save it.\n j+=8; i=j;\n char character =dataEntry.charAt(i);\n\n // advance 2 characters, here is the top of the stack.\n i+=2;\n char stackTop =dataEntry.charAt(i);\n\n //advance 2 characters, here is the character/string to push on the stack.\n i+=2;\n j=i;\n while (j < dataEntry.length() && dataEntry.charAt(j) != '\"') {\n j++;\n }\n String toPush =dataEntry.substring(i, j);\n System.out.println();\n\n return new Quintuple<State, Character, Character, String, State>(from , character, stackTop, toPush, to);\n }", "title": "" }, { "docid": "bf08a167495c47611c99a426d080793a", "score": "0.5235634", "text": "private void convert(String stringFA) {\n\n\t\t\t/**\n\t\t\t * file is in the format Input Alphabet:[a, b, c]\n\t\t\t * \n\t\t\t * States:[6, 7, 8] Transitions:[6:a> 6 7, 7:b> 8, 8:c>6] Initial\n\t\t\t * State:6 Final State(s):[8]\n\t\t\t * \n\t\t\t */\n\n\t\t\tString lblInputAlph = \"Input Alphabet:[\";\n\t\t\tint lblInputAlphStart = stringFA.indexOf(lblInputAlph);\n\t\t\tint lblInputAlphEnd = lblInputAlphStart + lblInputAlph.length();\n\n\t\t\tString inputAlphString = stringFA.substring(lblInputAlphEnd, stringFA.indexOf(\"]\"));\n\n\t\t\tString tmpStringFA = stringFA.substring(stringFA.indexOf(\"]\") + 1, stringFA.length());\n\n\t\t\tString lblStates = \"States:[\";\n\t\t\tint lblStatesStart = tmpStringFA.indexOf(lblStates);\n\t\t\tint lblStatesEnd = lblStatesStart + lblStates.length();\n\n\t\t\tString statesString = tmpStringFA.substring(lblStatesEnd, tmpStringFA.indexOf(\"]\"));\n\t\t\tArrayList<String> states = splitIntoArrayList(statesString, \",\");\n\n\t\t\ttmpStringFA = tmpStringFA.substring(tmpStringFA.indexOf(\"]\") + 1, tmpStringFA.length());\n\n\t\t\tString lblTransitions = \"Transitions:[\";\n\t\t\tint lblTransitionsStart = tmpStringFA.indexOf(lblTransitions);\n\t\t\tint lblTransitionsEnd = lblTransitionsStart + lblTransitions.length();\n\n\t\t\tString transitionList = tmpStringFA.substring(lblTransitionsEnd, tmpStringFA.indexOf(\"]\"));\n\t\t\tArrayList<String> transitions = splitIntoArrayList(transitionList, \",\");\n\n\t\t\ttmpStringFA = tmpStringFA.substring(tmpStringFA.indexOf(\"]\") + 1, tmpStringFA.length());\n\n\t\t\t// transitions stored in the format 1:a>2\n\t\t\tMap<String, Map<String, ArrayList<String>>> transitionMap = new HashMap<>();\n\n\t\t\tfor (String transition : transitions) {\n\t\t\t\tString from = transition.substring(0, transition.indexOf(\":\"));\n\n\t\t\t\tif (transitionMap.containsKey(from)) {\n\n\t\t\t\t\tMap<String, ArrayList<String>> inputStates = transitionMap.get(from);\n\n\t\t\t\t\tString input = transition.substring(transition.indexOf(\":\") + 1, transition.indexOf(\">\"));\n\t\t\t\t\tString stateList = transition.substring(transition.indexOf(\">\") + 1, transition.length());\n\t\t\t\t\tstateList = stateList.replace(\" \", \" \");\n\t\t\t\t\t// remove double spaces - occurs when comma is rpelaced by a\n\t\t\t\t\t// space\n\n\t\t\t\t\tArrayList<String> reachableStates = splitIntoArrayList(stateList, \" \");\n\n\t\t\t\t\tinputStates.put(input, reachableStates);\n\n\t\t\t\t} else {\n\n\t\t\t\t\tMap<String, ArrayList<String>> inputStates = new HashMap<>();\n\n\t\t\t\t\tString input = transition.substring(transition.indexOf(\":\") + 1, transition.indexOf(\">\"));\n\t\t\t\t\tString stateList = transition.substring(transition.indexOf(\">\") + 1, transition.length());\n\n\t\t\t\t\tstateList = stateList.replace(\" \", \" \");\n\t\t\t\t\t// remove double spaces - occurs when comma is replaced by a\n\t\t\t\t\t// space\n\n\t\t\t\t\tArrayList<String> reachableStates = splitIntoArrayList(stateList, \" \");\n\t\t\t\t\t// System.out.println(\"\\tReachable states from \" + from + \"\n\t\t\t\t\t// are: \" + reachableStates);\n\n\t\t\t\t\tinputStates.put(input, reachableStates);\n\t\t\t\t\ttransitionMap.put(from, inputStates);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString lblInitialState = \"Initial State:\";\n\t\t\tint lblInitialStateStart = tmpStringFA.indexOf(lblInitialState);\n\t\t\tint lblInitialStateEnd = lblInitialStateStart + lblInitialState.length();\n\n\t\t\tString initialState = tmpStringFA.substring(lblInitialStateEnd, tmpStringFA.indexOf(\"Final\"));\n\n\t\t\tString lblFinalStates = \"Final State(s):[\";\n\t\t\tint lblFinalStatesStart = tmpStringFA.indexOf(lblFinalStates);\n\t\t\tint lblFinalStatesEnd = lblFinalStatesStart + lblFinalStates.length();\n\n\t\t\tString finalStatesString = tmpStringFA.substring(lblFinalStatesEnd, tmpStringFA.indexOf(\"]\"));\n\t\t\t// System.out.println(\"final states: \" + finalStatesString);\n\t\t\t// set as selected item in list\n\n\t\t\tArrayList<String> finalStates = splitIntoArrayList(finalStatesString, \",\");\n\t\t\tint[] finalStateIndices = new int[finalStates.size()];\n\n\t\t\tint indicesCount = 0;\n\n\t\t\tfor (int i = 0; i < states.size(); i++) {\n\t\t\t\tString state = states.get(i);\n\n\t\t\t\tif (finalStates.contains(state)) {\n\t\t\t\t\tfinalStateIndices[indicesCount] = i;\n\t\t\t\t\tindicesCount++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tDefaultTableModel tableModel = (DefaultTableModel) transitionTable.getModel();\n\t\t\ttableModel.setRowCount(0);\n\t\t\ttableModel.setColumnCount(0);\n\n\t\t\tVector<String> columns = new Vector<String>();\n\t\t\tVector<String> row = new Vector<String>();\n\n\t\t\ttableModel.setColumnCount(states.size() + 1);\n\t\t\tcolumns.add(\" \");\n\n\t\t\tString[] alphabet = inputAlphString.split(\",\");\n\n\t\t\ttxtInputAlphabet.setText(\"\");\n\n\t\t\tfor (String str : alphabet) {\n\t\t\t\tstr = str.trim();\n\t\t\t\ttxtInputAlphabet.append(str + \"\\n\");\n\t\t\t\tcolumns.add(str);\n\t\t\t}\n\t\t\tcolumns.add(\"ε\");\n\n\t\t\ttxtStates.setText(\"\");\n\t\t\tfinalStateList.removeAll();\n\n\t\t\tDefaultComboBoxModel<String> comboModel = new DefaultComboBoxModel<>();\n\t\t\tDefaultListModel<String> listModel = (DefaultListModel<String>) finalStateList.getModel();\n\t\t\tlistModel.removeAllElements();\n\n\t\t\tfor (String s : states) {\n\t\t\t\ttxtStates.append(s + \"\\n\");\n\t\t\t\tinitialStateCombo.addItem(s);\n\t\t\t\tcomboModel.addElement(s);\n\t\t\t\tlistModel.addElement(s);\n\n\t\t\t\trow.addElement(s);\n\n\t\t\t\tMap<String, ArrayList<String>> inputStates = transitionMap.get(s);\n\n\t\t\t\tfor (String input : alphabet) {\n\t\t\t\t\tinput = input.trim();\n\n\t\t\t\t\tif (inputStates.containsKey(input)) {\n\n\t\t\t\t\t\tArrayList<String> statesTo = inputStates.get(input);\n\t\t\t\t\t\tif (!statesTo.isEmpty()) {\n\t\t\t\t\t\t\t// System.out.println(\"With state \" + s + \" the\n\t\t\t\t\t\t\t// reachable states are: \" + statesTo);\n\n\t\t\t\t\t\t\tString stateList = \"\";\n\t\t\t\t\t\t\tfor (String to : statesTo) {\n\t\t\t\t\t\t\t\tstateList += to + \", \";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstateList = stateList.substring(0, stateList.lastIndexOf(\",\"));\n\n\t\t\t\t\t\t\trow.addElement(stateList);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\trow.addElement(\"\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// System.out.println(\"No reachable states for state \" +\n\t\t\t\t\t\t// s + \"with input \" + input);\n\t\t\t\t\t\trow.addElement(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// System.out.println(\"Adding row: \" + row);\n\t\t\t\ttableModel.addRow(row);\n\t\t\t\trow = new Vector<String>();\n\n\t\t\t}\n\n\t\t\ttransitionTable.setModel(tableModel);\n\t\t\ttableModel.setColumnIdentifiers(columns);\n\n\t\t\tinitialStateCombo.setModel(comboModel);\n\t\t\tinitialStateCombo.setSelectedItem(initialState);\n\t\t\tfinalStateList.setModel(listModel);\n\t\t\tfinalStateList.setSelectedIndices(finalStateIndices);\n\t\t}", "title": "" }, { "docid": "13d5e513308cea20174b995679514390", "score": "0.51873815", "text": "private int[] convert(Regex regex) {\n\n String expression = regex.getExpression();\n\n int numberOfBraces = 0;\n int last = 0;\n boolean foundChoiceOperator = false;\n List<String> choices = new LinkedList<>();\n\n for (int i = 0; i < expression.length(); i++) {\n\n if (expression.charAt(i) == '(' && isOperator(regex, i)) {\n numberOfBraces++;\n } else if (expression.charAt(i) == ')' && isOperator(regex, i)) {\n numberOfBraces--;\n } else if (numberOfBraces == 0 && expression.charAt(i) == '|' && isOperator(regex, i)) {\n foundChoiceOperator = true;\n choices.add(expression.substring(last, i));\n last = i + 1;\n }\n }\n\n if (foundChoiceOperator) {\n choices.add(expression.substring(last, expression.length()));\n }\n\n int leftState = newState();\n int rightState = newState();\n\n if (foundChoiceOperator) {\n\n for (String choice : choices) {\n int[] temp = convert(new Regex(choice));\n\n addTransition(new TransitionKey(leftState, epsilonSign), temp[0]);\n addTransition(new TransitionKey(temp[1], epsilonSign), rightState);\n }\n\n } else {\n\n boolean prefixed = false;\n int lastState = leftState;\n\n for (int i = 0; i < expression.length(); i++) {\n\n int a, b;\n\n if (prefixed) {\n prefixed = false;\n char transitionSymbol;\n\n if (expression.charAt(i) == 't') {\n transitionSymbol = '\\t';\n } else if (expression.charAt(i) == 'n') {\n transitionSymbol = '\\n';\n } else if (expression.charAt(i) == '_') {\n transitionSymbol = ' ';\n } else {\n transitionSymbol = expression.charAt(i);\n }\n\n a = newState();\n b = newState();\n addTransition(new TransitionKey(a, transitionSymbol), b);\n\n } else {\n\n if (expression.charAt(i) == '\\\\') {\n prefixed = true;\n continue;\n }\n\n if (expression.charAt(i) != '(') {\n\n a = newState();\n b = newState();\n\n if (expression.charAt(i) == '$') {\n addTransition(new TransitionKey(a, epsilonSign), b);\n } else {\n addTransition(new TransitionKey(a, expression.charAt(i)), b);\n }\n\n } else {\n\n int j = i + 1;\n int extra = 0;\n for (int z = i + 1; z < expression.length(); z++) {\n if (expression.charAt(z) == '(') {\n extra++;\n }\n if (expression.charAt(z) == ')') {\n if (extra == 0) {\n j = z;\n break;\n } else {\n extra--;\n }\n }\n }\n\n int[] temp = convert(new Regex(expression.substring(i + 1, j)));\n\n a = temp[0];\n b = temp[1];\n i = j;\n }\n\n }\n\n if (i + 1 < expression.length() && expression.charAt(i + 1) == '*') {\n\n int x = a;\n int y = b;\n\n a = newState();\n b = newState();\n\n addTransition(new TransitionKey(a, epsilonSign), x);\n addTransition(new TransitionKey(y, epsilonSign), b);\n addTransition(new TransitionKey(a, epsilonSign), b);\n addTransition(new TransitionKey(y, epsilonSign), x);\n\n i++;\n }\n\n addTransition(new TransitionKey(lastState, epsilonSign), a);\n lastState = b;\n }\n\n addTransition(new TransitionKey(lastState, epsilonSign), rightState);\n }\n\n int[] result = new int[2];\n\n result[0] = leftState;\n result[1] = rightState;\n\n return result;\n }", "title": "" }, { "docid": "575207572a8239d362884fa0b95c3214", "score": "0.5167319", "text": "private static byte[][] createTransitionTable(String transitionTableData) {\n byte[][] transitionTable = new byte[5][4];\n int length = transitionTableData.length();\n int i = 0;\n int j = 0;\n int k = 0;\n \n while (i < length) {\n byte curValue = (byte)((short)transitionTableData.charAt(i++) - 1);\n \n for (int x=transitionTableData.charAt(i++);x>0;x--) {\n transitionTable[j][k++] = curValue;\n }\n \n if (k == 4) {\n k = 0;\n j++;\n }\n }\n \n return transitionTable;\n }", "title": "" }, { "docid": "3278c619ae2e7d0673d8a2009aad4a7d", "score": "0.5153807", "text": "public void preProcess(char[][] matrix) {\n\t\t\n\t}", "title": "" }, { "docid": "0261e802290a1d0f1d5325f1ab17ecea", "score": "0.50429094", "text": "private static Map<Character, int[]> getDFA(char[] p) {\n Map<Character, int[]> dfa = new HashMap<Character, int[]>();\n for(int j = 0; j < p.length; j++) { // initialize an empty dfa with the alphabet from p\n dfa.put(p[j], new int[p.length]);\n }\n dfa.get(p[0])[0] = 1;\n for(int X = 0, j = 1; j < p.length; j++) {\n for(char c: dfa.keySet()) { // copy mismatch cases\n dfa.get(c)[j] = dfa.get(c)[X];\n }\n dfa.get(p[j])[j] = j+1; // set match case\n X = dfa.get(p[j])[X]; // update restart state\n }\n return dfa;\n }", "title": "" }, { "docid": "03553c796fb7a4ab78cdc24950465b18", "score": "0.5023545", "text": "public void decodeLine\r\n (\r\n String line\r\n )\r\n {\r\n int operand = 0;\r\n char [] anArray = new char[3];\r\n while (operand < line.length())\r\n {\r\n for(int i = 0; i< 3; i++)\r\n {\r\n anArray[i] = line.charAt(operand);\r\n operand++;\r\n }\r\n String str = new String(anArray);\r\n int n = Integer.parseInt(str);\r\n n = n - 123;\r\n writeCharacter(n); //method call\r\n }\r\n output.close(); //close output stream.\r\n }", "title": "" }, { "docid": "bef4cdfdabe4edaae0a08960b4b16723", "score": "0.5008251", "text": "private static String getEncodedData(boolean[] correctedBits) {\n int endIndex = correctedBits.length;\n Table latchTable = Table.UPPER; // table most recently latched to\n Table shiftTable = Table.UPPER; // table to use for the next read\n StringBuilder result = new StringBuilder(20);\n int index = 0;\n while (index < endIndex) {\n if (shiftTable == Table.BINARY) {\n if (endIndex - index < 5) {\n break;\n }\n int length = readCode(correctedBits, index, 5);\n index += 5;\n if (length == 0) {\n if (endIndex - index < 11) {\n break;\n }\n length = readCode(correctedBits, index, 11) + 31;\n index += 11;\n }\n for (int charCount = 0; charCount < length; charCount++) {\n if (endIndex - index < 8) {\n index = endIndex; // Force outer loop to exit\n break;\n }\n int code = readCode(correctedBits, index, 8);\n result.append((char) code);\n index += 8;\n }\n // Go back to whatever mode we had been in\n shiftTable = latchTable;\n } else {\n int size = shiftTable == Table.DIGIT ? 4 : 5;\n if (endIndex - index < size) {\n break;\n }\n int code = readCode(correctedBits, index, size);\n index += size;\n String str = getCharacter(shiftTable, code);\n if (str.startsWith(\"CTRL_\")) {\n // Table changes\n shiftTable = getTable(str.charAt(5));\n if (str.charAt(6) == 'L') {\n latchTable = shiftTable;\n }\n } else {\n result.append(str);\n // Go back to whatever mode we had been in\n shiftTable = latchTable;\n }\n }\n }\n return result.toString();\n }", "title": "" }, { "docid": "671f8a2a19237e5a78768af6e83f8fe9", "score": "0.49582592", "text": "public void buildTable(){\r\n for(int i = 0; i < 12; ++i){\r\n Map<String,TableVal> actionRow = new HashMap<String, TableVal>();\r\n Map<Character, Integer> gotoRow = new HashMap<Character, Integer>();\r\n\r\n switch(i){\r\n case 0: \r\n actionRow.put(\"id\", new TableVal('S', 5));\r\n actionRow.put(\"(\", new TableVal('S',4));\r\n gotoRow.put('E', 1);\r\n gotoRow.put('T', 2);\r\n gotoRow.put('F', 3); \r\n break;\r\n case 1:\r\n actionRow.put(\"+\",new TableVal('S',6));\r\n actionRow.put(\"$\", new TableVal('A', 0)); // CATCH THIS\r\n break;\r\n case 2:\r\n actionRow.put(\"+\", new TableVal('R', 2));\r\n actionRow.put(\"*\", new TableVal('S',7));\r\n actionRow.put(\")\", new TableVal('R',2));\r\n actionRow.put(\"$\", new TableVal('R',2));\r\n break;\r\n case 3:\r\n TableVal r4 = new TableVal('R',4);\r\n actionRow.put(\"+\",r4);\r\n actionRow.put(\"*\",r4);\r\n actionRow.put(\")\",r4);\r\n actionRow.put(\"$\",r4);\r\n break;\r\n case 4:\r\n actionRow.put(\"id\", new TableVal('S',5));\r\n actionRow.put(\"(\", new TableVal('S',4));\r\n gotoRow.put('E', 8);\r\n gotoRow.put('T', 2);\r\n gotoRow.put('F', 3);\r\n break;\r\n case 5:\r\n TableVal r6 = new TableVal('R',6);\r\n actionRow.put(\"+\",r6);\r\n actionRow.put(\"*\",r6);\r\n actionRow.put(\")\",r6);\r\n actionRow.put(\"$\",r6);\r\n break;\r\n case 6:\r\n actionRow.put(\"id\",new TableVal('S',5));\r\n actionRow.put(\"(\", new TableVal('S',4));\r\n gotoRow.put('T', 9);\r\n gotoRow.put('F', 3);\r\n break;\r\n case 7:\r\n actionRow.put(\"id\", new TableVal('S',5));\r\n actionRow.put(\"(\", new TableVal('S',4));\r\n gotoRow.put('F', 10);\r\n break;\r\n case 8:\r\n actionRow.put(\"+\",new TableVal('S',6));\r\n actionRow.put(\")\", new TableVal('S',11));\r\n break;\r\n case 9:\r\n TableVal r1 = new TableVal('R',1);\r\n actionRow.put(\"+\",r1);\r\n actionRow.put(\"*\", new TableVal('S',7));\r\n actionRow.put(\")\",r1);\r\n actionRow.put(\"$\",r1);\r\n break;\r\n case 10:\r\n TableVal r3 = new TableVal('R',3);\r\n actionRow.put(\"+\",r3);\r\n actionRow.put(\"*\",r3);\r\n actionRow.put(\")\",r3);\r\n actionRow.put(\"$\",r3);\r\n break;\r\n case 11:\r\n TableVal r5 = new TableVal('R',5);\r\n actionRow.put(\"+\",r5);\r\n actionRow.put(\"*\",r5);\r\n actionRow.put(\")\",r5);\r\n actionRow.put(\"$\",r5);\r\n break;\r\n }\r\n actionTable.add(actionRow);\r\n gotoTable.add(gotoRow);\r\n }\r\n }", "title": "" }, { "docid": "6756a168cf8a3e56e4fa2c4d2d5ec259", "score": "0.49469033", "text": "public static void decode() {\n\n //Stopwatch st = new Stopwatch();\n int first = BinaryStdIn.readInt();\n char[] t = BinaryStdIn.readString().toCharArray();\n int R = 256; \n int N = t.length;\n int[] next = new int[N];\n int[] count = new int[R + 1];\n char[] aux = new char[N];\n for (int i = 0; i < N; i++)\n count[t[i]+1]++;\n \n for (int r = 0; r < R; r++)\n count[r+1] += count[r];\n \n for (int i = 0; i < N; i++) {\n next[count[t[i]]] = i;\n aux[count[t[i]]++] = t[i];\n }\n\n // use next[] and first\n // reconstruct the original input\n int k = first;\n for (int i = 0; i < t.length; i++) {\n BinaryStdOut.write(aux[k]);\n k = next[k];\n }\n\n //double a = st.elapsedTime();\n BinaryStdOut.flush();\n }", "title": "" }, { "docid": "a82af971a9e9808def8a9ae618031223", "score": "0.49438938", "text": "private void drawTable(JPanel transitionPanel, String txtStates, String txtInputAlphabet) {\n\t\tDefaultTableModel model = (DefaultTableModel) transitionTable.getModel();\n\n\t\ttransitionTable.setBackground(Color.LIGHT_GRAY);\n\n\t\tString[] states = txtStates.split(\"\\n\");\n\t\tString[] inputAlphabet = txtInputAlphabet.split(\"\\n\");\n\n\t\tmodel.setRowCount(0);\n\t\tVector<String> row = new Vector<String>();\n\t\tVector<String> columns = new Vector<String>();\n\n\t\tmodel.setColumnCount(0);\n\t\tmodel.setColumnCount(states.length);\n\n\t\tArrayList<String> inputSeen = new ArrayList<>();\n\n\t\tcolumns.add(\" \");\n\t\tfor (String s : inputAlphabet) {\n\t\t\tif (!inputSeen.contains(s)) {\n\t\t\t\tcolumns.addElement(s);\n\t\t\t}\n\t\t\tinputSeen.add(s);\n\t\t}\n\t\tcolumns.add(\"ε\");\n\n\t\tinputSeen = new ArrayList<>();\n\n\t\tfor (int i = 0; i < states.length; i++) {\n\t\t\tString s = states[i];\n\t\t\ts = s.trim();\n\n\t\t\tif (s.length() != 0 && !inputSeen.contains(s)) {\n\n\t\t\t\trow.addElement(s);\n\t\t\t\tfor (int j = 0; j < columns.size(); j++) {\n\t\t\t\t\trow.add(\" \");\n\t\t\t\t}\n\t\t\t\tmodel.addRow(row);\n\t\t\t\trow = new Vector<String>();\n\t\t\t}\n\t\t\tinputSeen.add(s);\n\t\t}\n\t\tmodel.setColumnIdentifiers(columns);\n\n\t\ttransitionPanel.revalidate();\n\t\ttransitionPanel.repaint();\n\t}", "title": "" }, { "docid": "ade64bed2953eadaeee71eef35bef5da", "score": "0.49209985", "text": "public SNUSPState loadExampleProgram(int index) {\n String[][] program = {\n {\n \" /==!/======ECHO==,==.==#\",\n \" | |\",\n \"$==>==@/==@/==<==#\",\n },\n {\n \" read two characters ,>,==\\\\ * /=================== ATOI ----------\\\\ \",\n \" convert to integers /=/@</@=/ * // /===== ITOA ++++++++++\\\\ /----------/ \",\n \" multiply @ \\\\=!\\\\=========/ // /++++++++++/ \\\\----------\\\\ \",\n \" convert back !/@!\\\\============/ \\\\++++++++++\\\\ /----------/ \",\n \"and print the result \\\\/ \\\\.# * /++++++++++/ \\\\--------#\",\n \"/====================/ * \\\\++++++++#\",\n \"|\",\n \"| /-<+>\\\\ #/?=<<<<\\\\!>>>>\\\\ />>+<+<-\\\\ \",\n \"| #\\\\?===/! BMOV1 =====\\\\ \\\\->>>>+/ // /======== BSPL2 !\\\\======?/#\",\n \"| /->+<\\\\ /===|=========== FMOV4 =/ // /<<+>+>-\\\\ \",\n \"| #\\\\?===/! FMOV1 =|===|==============\\\\ /====/ /====== FSPL2 !\\\\======?/#\",\n \"| /==|===|==============|==|=======/\",\n \"| * * *|* | * | * * * * * * *|* | * * * /+<-\\\\ \",\n \"| * />@/<@/>>@/>>===\\\\ /====>>\\\\@<\\\\@<\\\\ * /==== ADD2 !\\\\>=?/<#\",\n \"\\\\===== MUL2 =?/>@\\\\==<#<<<==\\\\ \\\\!\\\\<<<<@\\\\>>>>-?/\\\\ * // /-\\\\ \",\n \" * \\\\\\\\ \\\\/@========|======</ * // /== ZERO !\\\\?/#\",\n \" * * * \\\\\\\\* * * * | * * * * | * * * * *// //\",\n \" \\\\\\\\ | \\\\==========/ //\",\n \" \\\\======!\\\\=======================/\",\n },\n {\n \" /==!/==atoi==@@@-@-----#\",\n \" | | /-\\\\ /recurse\\\\ #/?\\\\ zero\",\n \"$>,@/>,@/?\\\\<=zero=!\\\\?/<=print==!\\\\@\\\\>?!\\\\@/<@\\\\.!\\\\-/\",\n \" < @ # | \\\\=/ \\\\=itoa=@@@+@+++++#\",\n \" /==\\\\ \\\\===?!/===-?\\\\>>+# halve ! /+ !/+ !/+ !/+ \\\\ mod10\",\n \"# ! @ | #>>\\\\?-<+>/ /<+> -\\\\!?-\\\\!?-\\\\!?-\\\\!?-\\\\!\",\n \"/-<+>\\\\ > ? />+<<++>-\\\\ \\\\?!\\\\-?!\\\\-?!\\\\-?!\\\\-?!\\\\-?/\\\\ div10\",\n \"?down? | \\\\-<<<!\\\\=======?/\\\\ add & # +/! +/! +/! +/! +/\",\n \"\\\\>+<-/ | \\\\=<<<!/====?\\\\=\\\\ | double\",\n \"! # | \\\\<++>-/ | |\",\n \"\\\\=======\\\\!@>============/!/\",\n },\n {\n \" /==!/==atoi=@@@-@-----#\",\n \" | |\",\n \" | | /=========\\\\!==\\\\!====\\\\ ** recursion **\",\n \"$,@/>,@/==ack=!\\\\?\\\\<+# | | | A(0,j) -> j+1\",\n \" j i \\\\<?\\\\+>-@/# | | A(i,0) -> A(i-1,1)\",\n \" \\\\@\\\\>@\\\\->@/@\\\\<-@/# A(i,j) -> A(i-1,A(i,j-1))\",\n \" # # | | |\",\n \" /-<<+>>\\\\!=/ \\\\=====|==@\\\\>>>@\\\\<<# \",\n \" (a > 0) ? ? | | | \",\n \" \\\\>>+<<-/!==========/ | |\",\n \" # # | |\",\n \" | | \",\n \" #/?========\\\\!==/ \\\\==!/=======?\\\\#\",\n \" \\\\->>+>+<<</ \\\\>>>+<<<-/\",\n }\n };\n SNUSPState s = new SNUSPState();\n s.playfield.load(program[index]);\n return s;\n }", "title": "" }, { "docid": "6c5209361386ebb4d2e50482886b73a3", "score": "0.48889366", "text": "public String leetCodeConvert(String s, int numRows) {\n\n if (numRows == 1) return s;\n\n List<StringBuilder> rows = new ArrayList<>();\n for (int i = 0; i < Math.min(numRows, s.length()); i++)\n rows.add(new StringBuilder());\n\n int curRow = 0;\n boolean goingDown = false;\n\n /**\n * Similar If condition, when it reaches top, Switch is made to go down\n * When it reaches down, Switch is made to go up\n */\n for (char c : s.toCharArray()) {\n rows.get(curRow).append(c);\n if (curRow == 0 || curRow == numRows - 1) goingDown = !goingDown;\n curRow += goingDown ? 1 : -1;\n }\n\n StringBuilder ret = new StringBuilder();\n for (StringBuilder row : rows) ret.append(row);\n return ret.toString();\n }", "title": "" }, { "docid": "2e1326c6c0b862bb066651ad211f5a51", "score": "0.48791957", "text": "private void createSourceCodeTable() {\n\t\tdata = new Object[arrayL.size()][2];\n\n\t\tfor (int i = 0; i < arrayL.size(); i++) {\n\t\t\tdata[i][1] = arrayL.get(i);\n\t\t}\n\n\t\t// neue Tabelle erstellen und damit die alte ersetzen\n\t\ttable_source_code = new JTable(data, gui.columnNames) {\n\t\t\t// Editierbarkeit für zweite Spalte ausschalten\n\t\t\t@Override\n\t\t\tpublic boolean isCellEditable(int row, int column) {\n\t\t\t\tswitch (column) {\n\t\t\t\tcase 0:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Checkbox in erste Spalte\n\t\t\t@Override\n\t\t\tpublic Class getColumnClass(int column) {\n\t\t\t\tswitch (column) {\n\t\t\t\tcase 0:\n\t\t\t\t\treturn Boolean.class;\n\t\t\t\tdefault:\n\t\t\t\t\treturn String.class;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tgui.scrollPane_source_code.setViewportView(table_source_code);\n\t\t// Spaltenbreite von table_sourcecode setzen\n\t\ttable_source_code.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\tTableColumn col_bp = table_source_code.getColumnModel().getColumn(0);\n\t\tcol_bp.setPreferredWidth(20);\n\t\tTableColumn col_prog = table_source_code.getColumnModel().getColumn(1);\n\t\tcol_prog.setMinWidth(500);\n\t\ttable_source_code.setBounds(0, 0, 100, 100);\n\t}", "title": "" }, { "docid": "58ef8d608dc3cafaa4dd3e5f19b8b931", "score": "0.487317", "text": "public String readCode();", "title": "" }, { "docid": "26a3708a6010959a0a6beee1748ea972", "score": "0.4864422", "text": "public String parseNext() {\n\t\tString line = this.sourceCode.nextLine();\n\n\t\tString result = \"\";\n\n\t\tif (line.startsWith(\"@\")) {\n\t\t\tif (!this.isLiteral(line.substring(1)) && Character.isLowerCase(line.charAt(1))) {\n\t\t\t\tresult = this.getBinaryStringForAInstruction(this.symbolTable.get(line));\n\t\t\t} else if (this.isLiteral(line.substring(1))) {\n\t\t\t\tresult = this.getBinaryStringForAInstruction(Integer.parseInt(line.substring(1)));\n\t\t\t} else {\n\t\t\t\t// binary for a label\n\n\t\t\t\tString label = \"(\" + line.substring(1) + \")\";\n\n\t\t\t\tresult = this.getBinaryStringForAInstruction(this.symbolTable.get(label));\n\t\t\t}\n\n\t\t} else if (line.contains(\";\")) {\n\t\t\tresult += \"111\";\n\t\t\tString[] firstSplit = line.split(\";\");\n\t\t\tString[] secondSplit = firstSplit[0].split(\"=\");\n\n\t\t\tif (secondSplit.length == 2) {\n\t\t\t\tresult += CInstruction.comp(secondSplit[1]);\n\t\t\t\tresult += CInstruction.dest(secondSplit[0]);\n\t\t\t\tresult += CInstruction.jump(firstSplit[1]);\n\t\t\t} else {\n\t\t\t\tresult += CInstruction.comp(\"null\");\n\t\t\t\tresult += CInstruction.dest(secondSplit[0]);\n\t\t\t\tresult += CInstruction.jump(firstSplit[1]);\n\t\t\t}\n\t\t} else if (!line.contains(\";\") && line.contains(\"=\")) {\n\t\t\tString[] split = line.split(\"=\");\n\t\t\tresult += \"111\";\n\t\t\tresult += CInstruction.comp(split[1]);\n\t\t\tresult += CInstruction.dest(split[0]);\n\t\t\tresult += CInstruction.jump(\"null\");\n\t\t} else {\n\t\t\tresult += \"111\";\n\t\t\tresult = CInstruction.comp(line);\n\t\t\tresult = CInstruction.dest(\"null\");\n\t\t\tresult += CInstruction.jump(\"null\");\n\n\t\t}\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "043ad48d0608719df5408d8100669352", "score": "0.48478734", "text": "public static DFA compId(){\n char[] alph = {'a','b','c','2', '3'};\n Set<Character> alphabet = new HashSet<Character>();\n for (int i = 0; i < alph.length; i++){\n alphabet.add(alph[i]);\n }\n Set<String> states = new HashSet<String>();\n Set<String> finals = new HashSet<String>();\n Map<Tuple, String> delta = new HashMap<Tuple, String>();\n String start;\n states.add(\"zero\");\n states.add(\"one\");\n states.add(\"two\");\n states.add(\"three\");\n states.add(\"threeA\");\n states.add(\"fourA\");\n states.add(\"four\");\n states.add(\"five\");\n states.add(\"six\");\n states.add(\"seven\");\n states.add(\"trash\");\n String start = \"zero\";\n finals.add(\"four\");\n finals.add(\"five\");\n finals.add(\"six\");\n finals.add(\"seven\");\n finals.add(\"trash\");\n \n delta.put(new Tuple(\"zero\",'a'), \"one\");\n delta.put(new Tuple(\"zero\",'b'), \"one\");\n delta.put(new Tuple(\"zero\",'c'), \"one\");\n \n delta.put(new Tuple(\"zero\",'2'), \"trash\");\n delta.put(new Tuple(\"zero\",'3'), \"trash\");\n \n delta.put(new Tuple(\"one\",'a'), \"two\");\n delta.put(new Tuple(\"one\",'b'), \"two\");\n delta.put(new Tuple(\"one\",'c'), \"two\");\n \n delta.put(new Tuple(\"one\",'2'), \"trash\");\n delta.put(new Tuple(\"one\",'3'), \"trash\");\n \n delta.put(new Tuple(\"two\",'2'), \"three\");\n delta.put(new Tuple(\"two\",'3'), \"three\");\n \n delta.put(new Tuple(\"two\",'a'), \"threeA\");\n delta.put(new Tuple(\"two\",'b'), \"threeA\");\n delta.put(new Tuple(\"two\",'c'), \"threeA\");\n \n delta.put(new Tuple(\"three\",'a'), \"four\");\n delta.put(new Tuple(\"three\",'b'), \"four\");\n delta.put(new Tuple(\"three\",'c'), \"four\");\n \n delta.put(new Tuple(\"three\",'2'), \"trash\");\n delta.put(new Tuple(\"three\",'3'), \"trash\");\n \n delta.put(new Tuple(\"threeA\",'2'), \"fourA\");\n delta.put(new Tuple(\"threeA\",'3'), \"fourA\");\n \n delta.put(new Tuple(\"threeA\",'a'), \"trash\");\n delta.put(new Tuple(\"threeA\",'b'), \"trash\");\n delta.put(new Tuple(\"threeA\",'c'), \"trash\");\n \n delta.put(new Tuple(\"four\",'a'), \"five\");\n delta.put(new Tuple(\"four\",'b'), \"five\");\n delta.put(new Tuple(\"four\",'c'), \"five\");\n delta.put(new Tuple(\"fourA\",'a'), \"five\");\n delta.put(new Tuple(\"fourA\",'b'), \"five\");\n delta.put(new Tuple(\"fourA\",'c'), \"five\");\n \n delta.put(new Tuple(\"fourA\",'2'), \"trash\");\n delta.put(new Tuple(\"fourA\",'3'), \"trash\");\n delta.put(new Tuple(\"four\",'2'), \"trash\");\n delta.put(new Tuple(\"four\",'3'), \"trash\");\n \n delta.put(new Tuple(\"five\",'a'), \"six\");\n delta.put(new Tuple(\"five\",'b'), \"six\");\n delta.put(new Tuple(\"five\",'c'), \"six \");\n \n delta.put(new Tuple(\"six\",'a'), \"seven\");\n delta.put(new Tuple(\"six\",'b'), \"seven\");\n delta.put(new Tuple(\"six\",'c'), \"seven\");\n \n delta.put(new Tuple(\"six\",'2'), \"trash\");\n delta.put(new Tuple(\"six\",'3'), \"trash\");\n \n delta.put(new Tuple(\"zero\",'b'), \"zero\");\n delta.put(new Tuple(\"one\",'a'), \"two\");\n delta.put(new Tuple(\"one\",'b'), \"one\");\n delta.put(new Tuple(\"two\",'a'), \"zero\");\n delta.put(new Tuple(\"two\",'b'), \"two\");\n \n return new DFA(states, alphabet, delta, start, finals);\n return new DFA();\n }", "title": "" }, { "docid": "e5607a1803db96d837004bca95d971ab", "score": "0.48218283", "text": "protected void calculateSourceCode(char[] source){\n\t\tcode = Arrays.copyOfRange(source, start, end).toString();\n\t}", "title": "" }, { "docid": "18cc7667a191de7ba7a701488078f20a", "score": "0.4820767", "text": "@Override\n public void decode() {\n\tint[][] pic= super.getPicture();\n\tString decoded=\"\";\n\t//Soat code is obtained by transversing the matrix in L shape\n\tfor(int i=0; i< SIZE; i++){\n\tdecoded+=pic[i][0];\n\t}\n\tfor(int i=1; i< SIZE-1; i++){\n\tdecoded+=pic[SIZE-1][i];\n\t}\n\tsuper.setCode(decoded);\n }", "title": "" }, { "docid": "1d89fa3a077f9747eb480b1dc282e820", "score": "0.48145717", "text": "public char[][] tut2Map() {\n //#########\n //#G B C#\n //####### #\n // #B#\n // # #\n // # #\n // # #\n // # #\n // #G#\n // ###\n\n char[][] tut2 = new char[][]{\n {'#', '#', '#', '0', '0', '0', '0', '0', '0'},\n {'#', 'G', '#', '0', '0', '0', '0', '0', '0'},\n {'#', '_', '#', '0', '0', '0', '0', '0', '0'},\n {'#', '_', '#', '0', '0', '0', '0', '0', '0'},\n {'#', '_', '#', '0', '0', '0', '0', '0', '0'},\n {'#', '_', '#', '0', '0', '0', '0', '0', '0'},\n {'#', 'B', '#', '#', '#', '#', '#', '#', '#'},\n {'#', 'C', 'B', '_', '_', '_', '_', 'G', '#'},\n {'#', '#', '#', '#', '#', '#', '#', '#', '#'}\n };\n\n //printMap(tut2);\n return tut2;\n\n }", "title": "" }, { "docid": "0f14b9d57ec3ddbc9d6221af57db41ad", "score": "0.48094147", "text": "private static Table getTable(char t) {\n switch (t) {\n case 'L':\n return Table.LOWER;\n case 'P':\n return Table.PUNCT;\n case 'M':\n return Table.MIXED;\n case 'D':\n return Table.DIGIT;\n case 'B':\n return Table.BINARY;\n case 'U':\n default:\n return Table.UPPER;\n }\n }", "title": "" }, { "docid": "302f78109471d6c251f2636e43377e7d", "score": "0.47938302", "text": "private void addLinesStatements(String[] lines) {\n for(int i = 0; i < lines.length; i++) {\n // a label will not have a ',' character in it\n if(lines[i].indexOf(',') == -1 && !lines[i].equals(Constants.END) && !lines[i].equals(Constants.JUMP_RETURN)) {\n symbolTable.put(lines[i], String.valueOf(i));\n }\n }\n }", "title": "" }, { "docid": "c4f846891c73b90d88e7cfabe5f019d5", "score": "0.47914624", "text": "public abstract void markTable(Scanner input);", "title": "" }, { "docid": "1fa4fe22bbc5a35ec2649c4ad60485ca", "score": "0.47911236", "text": "static /* synthetic */ int[] $SWITCH_TABLE$com$google$zxing$pdf417$decoder$DecodedBitStreamParser$Mode() {\n /*\n int[] r0 = $SWITCH_TABLE$com$google$zxing$pdf417$decoder$DecodedBitStreamParser$Mode\n if (r0 == 0) goto L_0x0005\n return r0\n L_0x0005:\n com.google.zxing.pdf417.decoder.DecodedBitStreamParser$Mode[] r0 = com.google.zxing.pdf417.decoder.DecodedBitStreamParser.Mode.values()\n int r0 = r0.length\n int[] r0 = new int[r0]\n com.google.zxing.pdf417.decoder.DecodedBitStreamParser$Mode r1 = com.google.zxing.pdf417.decoder.DecodedBitStreamParser.Mode.ALPHA // Catch:{ NoSuchFieldError -> 0x0015 }\n int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0015 }\n r2 = 1\n r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x0015 }\n L_0x0015:\n com.google.zxing.pdf417.decoder.DecodedBitStreamParser$Mode r1 = com.google.zxing.pdf417.decoder.DecodedBitStreamParser.Mode.ALPHA_SHIFT // Catch:{ NoSuchFieldError -> 0x001e }\n int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x001e }\n r2 = 5\n r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x001e }\n L_0x001e:\n com.google.zxing.pdf417.decoder.DecodedBitStreamParser$Mode r1 = com.google.zxing.pdf417.decoder.DecodedBitStreamParser.Mode.LOWER // Catch:{ NoSuchFieldError -> 0x0027 }\n int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0027 }\n r2 = 2\n r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x0027 }\n L_0x0027:\n com.google.zxing.pdf417.decoder.DecodedBitStreamParser$Mode r1 = com.google.zxing.pdf417.decoder.DecodedBitStreamParser.Mode.MIXED // Catch:{ NoSuchFieldError -> 0x0030 }\n int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0030 }\n r2 = 3\n r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x0030 }\n L_0x0030:\n com.google.zxing.pdf417.decoder.DecodedBitStreamParser$Mode r1 = com.google.zxing.pdf417.decoder.DecodedBitStreamParser.Mode.PUNCT // Catch:{ NoSuchFieldError -> 0x0039 }\n int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0039 }\n r2 = 4\n r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x0039 }\n L_0x0039:\n com.google.zxing.pdf417.decoder.DecodedBitStreamParser$Mode r1 = com.google.zxing.pdf417.decoder.DecodedBitStreamParser.Mode.PUNCT_SHIFT // Catch:{ NoSuchFieldError -> 0x0042 }\n int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0042 }\n r2 = 6\n r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x0042 }\n L_0x0042:\n $SWITCH_TABLE$com$google$zxing$pdf417$decoder$DecodedBitStreamParser$Mode = r0\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.zxing.pdf417.decoder.DecodedBitStreamParser.$SWITCH_TABLE$com$google$zxing$pdf417$decoder$DecodedBitStreamParser$Mode():int[]\");\n }", "title": "" }, { "docid": "0cd8c5e3ef1e86914aeb7c2bb1f83426", "score": "0.47852325", "text": "private static void parseAirportData(String[] data) {\n Airport airport;\n if(data.length == 8) {\n double lat = Float.parseFloat(data[5]);\n double lon = Float.parseFloat(data[6]);\n int code = Integer.parseInt(data[7]);\n\n airport = new Airport(data[0], data[1], data[2], data[3], data[4], lat, lon, code);\n\n codeTable.put(data[0], airport);\n\n if(countryTable.containsKey(data[3])) {\n countryTable.get(data[3]).add(airport);\n } else {\n ArrayList<Airport> aps = new ArrayList<>();\n aps.add(airport);\n countryTable.put(data[3], aps);\n }\n } else {\n System.out.println(\"A line was skipped -- missing data or extra data found.\");\n }\n }", "title": "" }, { "docid": "1efb7594f5d9d89bf71d3f2d9f7dcd05", "score": "0.47816402", "text": "private void process (String in) {\n System.out.println(\"String is: \" + in);\n int length = in.length();\n int input = -1;\n for (int i = 0; i < length; i++) {\n char c = in.charAt(i);\n //match char to delta input index\n System.out.println(\"char \" + i + \" is \\'\" + c + \"\\'\");\n switch (c) {\n case 'n': input = N;\n break;\n case 'g': input = G;\n break;\n case 'w': input = W;\n break;\n case 'c': input = C;\n break;\n default: // remain at -1, will go to error state\n }\n System.out.println(\"input is: \" + input);\n System.out.println(\"State is: \" + state);\n //Change state based in the input character (move) and current state\n //according to the table\n try {\n this.state = delta[this.state][input];\n System.out.println(\"Changing to state \" + this.state);\n //If state is not in the table, go to error state\n } catch (ArrayIndexOutOfBoundsException e) {\n this.state = qE;\n }\n }\n //Now at end of string, in our last state\n }", "title": "" }, { "docid": "5b2e6b76055b63817b03552b771c3656", "score": "0.47729236", "text": "@Test(timeout = 4000)\n public void test111() throws Throwable {\n StringReader stringReader0 = new StringReader(\"P3|FAkTb,3J*`,g3;\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1718), (-1718));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals((-1717), javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "f0039acc67de52462344762dc7e6b1f4", "score": "0.47635207", "text": "public byte[] select_code_tab(byte cp) throws IOException {\n byte[] result = new byte[3];\n result[0] = ESC;\n result[1] = 116;\n result[2] = cp;\n writeflush(result);\n return result;\n }", "title": "" }, { "docid": "e17a1a891eb4d8c5f92e6b1ebda5c498", "score": "0.4761589", "text": "public String parse(){\r\n String output = \"\";\r\n for(Object obj: stack)\r\n output += obj.toString();\r\n output = String.format(\"%-\"+initLength*2+\"s\", output);\r\n output += String.format(\"%-\"+(initLength+4)+\"s\", inputString);\r\n TableVal next = lookupAct();\r\n if(next == null){\r\n output+= String.format(\"%-6s\", \"ERROR\");\r\n output+= \"\\nInvalid Entry\";\r\n inputString = \"\";\r\n return output;\r\n }\r\n output += String.format(\"%-6s\", next.toString());\r\n\r\n if(next.act==Action.R)\r\n rule(next.stateNum);\r\n else if (next.act == Action.S)\r\n shift(next.stateNum);\r\n else // next.act == Action.ACCEPT, finished\r\n removeNextToken();\r\n return output;\r\n }", "title": "" }, { "docid": "178087c1aa956fede0c85a81c5466ac0", "score": "0.47613382", "text": "private void postProcessEnumTable() {\n \n DataSource ds = DataSourceFactory.createDataSource().addTable(\"lang_enum\",\n DataSource.ROLE_MAIN);\n \n ds.addField(\"enum_english\");\n ds.addField(\"enum_trans\");\n ds.addField(\"language\");\n String restriction = \" enum_english LIKE '%;' AND language='\" + this.language + \"'\"\n + \" AND enum_trans =\" + getEnumGreekPattern(\"enum_english\");\n ds.addRestriction(Restrictions.sql(restriction));\n \n List<DataRecord> records = ds.getAllRecords();\n \n for (int j = 0; j < records.size(); j++) {\n \n DataRecord record = records.get(j);\n \n String enumTrans = (String) record.getValue(\"lang_enum.enum_trans\");\n \n int position = enumTrans.lastIndexOf(';');\n if ((position > -1)\n && ((position == enumTrans.length() - 1) || enumTrans.endsWith(\";_\"\n + this.dbExtension + this.greekingChars))) {\n String newEnumTrans = enumTrans.substring(0, position)\n + enumTrans.substring(position + 1, enumTrans.length());\n \n record.setValue(\"lang_enum.enum_trans\", newEnumTrans);\n ds.saveRecord(record);\n }\n }\n }", "title": "" }, { "docid": "8797a513aa4be6b4ec4111eebbde8f80", "score": "0.47587526", "text": "protected abstract char[] getSource();", "title": "" }, { "docid": "18e974518f47c084b73caf77acfa954d", "score": "0.47354013", "text": "private void createParsingTable(){\r\n parsingTable = new int[nonterminals.size()][terminals.size()];\r\n \r\n //HML\r\n parsingTable[0][4] = 1;\r\n parsingTable[0][5] = 1;\r\n parsingTable[0][7] = 1;\r\n parsingTable[0][9] = 1;\r\n parsingTable[0][10] = 1;\r\n parsingTable[0][11] = 1;\r\n \r\n //Expression\r\n for(int i=0;i<4;i++) parsingTable[1][i] = i+2;\r\n parsingTable[1][terminals.size() - 1] = 6;\r\n \r\n //Term\r\n parsingTable[2][4] = 7;\r\n parsingTable[2][5] = 8;\r\n parsingTable[2][7] = 9;\r\n parsingTable[2][9] = 10;\r\n parsingTable[2][10] = 11;\r\n parsingTable[2][11] = 12;\r\n \r\n //Actions\r\n parsingTable[3][13] = 14;\r\n for(int i=16;i<42;i++) parsingTable[3][i] = 13;\r\n \r\n //ActionsList\r\n parsingTable[4][15] = 15;\r\n parsingTable[4][terminals.size() - 1] = 16;\r\n \r\n //Action\r\n for(int i=16;i<42;i++) parsingTable[5][i] = 17;\r\n \r\n //Name\r\n for(int i=16;i<42;i++) parsingTable[6][i] = 18;\r\n for(int i=42;i<52;i++) parsingTable[6][i] = 19;\r\n parsingTable[6][terminals.size() - 1] = 20;\r\n \r\n //Literal\r\n for(int i=16;i<42;i++) parsingTable[7][i] = i + 5;\r\n \r\n //Number\r\n for(int i=42;i<52;i++) parsingTable[8][i] = i + 5;\r\n }", "title": "" }, { "docid": "f1abf934c13d2ef04bf3ad9445d56bac", "score": "0.47348452", "text": "@Test(timeout = 4000)\n public void test041() throws Throwable {\n StringReader stringReader0 = new StringReader(\"fidbK]yT[;K%:hj~*\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-2492), (-2269));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(4, javaCharStream0.bufpos);\n assertEquals((-2265), javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "5ce87a414624251c6757a4b67a4a981e", "score": "0.47346684", "text": "public static void main(String[] args) throws IOException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew FileReader(\n\t\t\t\t\t\tnew File(System.getProperty(\"user.dir\"),\"\\\\test_data\\\\pl0code_1.txt\")));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString t;\n\t\twhile((t = reader.readLine()) != null) {\n\t\t\tsb.append(t).append(\"\\n\");\n\t\t}\n\t\t//lexer\n\t\tLexer lex = new Lexer(sb.toString());\n\t\t//stream\n\t\tList<Symbol> stream = new ArrayList<Symbol>();\n\t\tToken token=null;\n\t\tfor(;(token=lex.scan())!=Word.over;) {\n\t\t\tstream.add(token.toSymbol());\n\t\t}\n\t\t//parser\n\t\t\t//CFG\n\t\tNontermianlSymbol A = new NontermianlSymbol(\"<assignment>\");\n\t\tNontermianlSymbol E = new NontermianlSymbol(\"<expression>\");\n\t\tNontermianlSymbol T = new NontermianlSymbol(\"<term>\");\n\t\tNontermianlSymbol F = new NontermianlSymbol(\"<factor>\");\n\t\t\n\t\tTerminalSymbol plus = Word.opSymbols.get(Word.opSymbols.indexOf(new TerminalSymbol(\"+\")));\n\t\tTerminalSymbol minus = Word.opSymbols.get(Word.opSymbols.indexOf(new TerminalSymbol(\"-\")));\n\t\tTerminalSymbol times = Word.opSymbols.get(Word.opSymbols.indexOf(new TerminalSymbol(\"*\")));\n\t\tTerminalSymbol slash = Word.opSymbols.get(Word.opSymbols.indexOf(new TerminalSymbol(\"/\")));\n\t\tTerminalSymbol lp = Word.delimeterSymbols.get(Word.delimeterSymbols.indexOf(new TerminalSymbol(\"(\")));\n\t\tTerminalSymbol rp = Word.delimeterSymbols.get(Word.delimeterSymbols.indexOf(new TerminalSymbol(\")\")));\n\t\tTerminalSymbol id = Word.id;\n\t\tTerminalSymbol integer = lexer.Number.symbol;\n\t\tTerminalSymbol assign = Word.opSymbols.get(Word.opSymbols.indexOf(new TerminalSymbol(\":=\")));\n\n\n\t\t\n\t\tRule r1 = new Rule(A, Arrays.asList(id,assign,E));\n\t\tRule r2 = new Rule(E, Arrays.asList(E,plus,T));\n\t\tRule r3 = new Rule(E, Arrays.asList(E,minus,T));\n\t\tRule r10 = new Rule(E, Arrays.asList(T));\n\t\tRule r4 = new Rule(T, Arrays.asList(T,times,F));\n\t\tRule r5 = new Rule(T, Arrays.asList(T,slash,F));\n\t\tRule r6 = new Rule(T, Arrays.asList(F));\n\t\tRule r7 = new Rule(F, Arrays.asList(lp,E,rp));\n\t\tRule r8 = new Rule(F, Arrays.asList(id));\n\t\tRule r9 = new Rule(F, Arrays.asList(integer));\n\t\t\n\t\tSet<Rule> rules = new HashSet<>(Arrays.asList(r1,r2,r3,r4,r5,r6,r7,r8,r9,r10));\n\t\tSet<NontermianlSymbol> nonterminals = new HashSet<>(Arrays.asList(A,E,T,F));\n\t\tSet<TerminalSymbol> terminals = new HashSet<>(Arrays.asList(plus,minus,times,slash,lp,rp,assign,id,integer));\n\t\tNontermianlSymbol startSymbol = A;\n\t\t\n\t\tCFG cfg = new CFG(rules, nonterminals,terminals,startSymbol);\n\t\t//\n\t\tParser parser = new SLR1(cfg);\n\t\tSystem.out.println(parser.parse(stream));;\n\t}", "title": "" }, { "docid": "2b1584618d46f366cb219e7119a798a3", "score": "0.47326437", "text": "@Test(timeout = 4000)\n public void test106() throws Throwable {\n StringReader stringReader0 = new StringReader(\"[=/5I%n+EXM[\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(1, javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "1ab717e4297b146f4eaee18916a4e4d7", "score": "0.47320488", "text": "private void buildTransitionTable() {\n\n //new table size will be length of alphabet by length of states\n fsa_machine = new int[stateList.size()][internalAlphabet.size()];\n\n\n for(int i = 0; i < stateList.size(); i++){\n\n List<Set<Integer>> temp = stateList.get(i).getTransitions();\n\n for(int j = 0; j < temp.size(); j++){\n Set<Integer> workingSet = temp.get(j);\n\n if(!(workingSet.isEmpty())){\n int index = findEquivalentSet(workingSet);\n fsa_machine[i][j] = index;\n }\n }\n }\n }", "title": "" }, { "docid": "1c097521a413bd682edb8c502949fcef", "score": "0.47271338", "text": "public static void main(String[] args) {\n List<String> terminalList = Arrays.asList(\"+\",\"*\",\"(\", \")\",\"x\", \"$\",\"E\",\"T\", \"F\");\r\n Scanner myScanner = new Scanner(System.in);\r\n System.out.println(\"Enter a string to test: \");\r\n //get input string to test\r\n String inputStr = myScanner.nextLine();\r\n\r\n\r\n //splint input string into a list of chars\r\n List<String> inputList = new ArrayList<String>(Arrays.asList(inputStr.split(\"\")));\r\n inputList.add(\"$\");\r\n Stack<String> inputStack = new Stack<>();\r\n Collections.reverse(inputList);\r\n //push inputList onto inputStack\r\n for (int i = 0; i < inputList.size(); i++) {\r\n inputStack.push(inputList.get(i));\r\n }\r\n //create parser and production table\r\n Map<String, Map<String, String>> parserTable = new HashMap<>();\r\n\r\n Map<String, List<String>> productionsTable = new HashMap<>();\r\n\r\n Stack<String> stack = new Stack<String>();\r\n stack.push(\"0\");\r\n //create the rows of the parser table\r\n Map<String, String> row0 = new HashMap<>();\r\n row0.put(\"+\", \"error\");\r\n row0.put(\"*\", \"error\");\r\n row0.put(\"(\", \"s1\");\r\n row0.put(\")\", \"error\");\r\n row0.put(\"x\", \"s2\");\r\n row0.put(\"E\", \"g3\");\r\n row0.put(\"T\", \"g4\");\r\n row0.put(\"F\", \"g5\");\r\n row0.put(\"$\", \"error\");\r\n Map<String, String> row1 = new HashMap<>();\r\n row1.put(\"+\", \"error\");\r\n row1.put(\"*\", \"error\");\r\n row1.put(\"(\", \"s1\");\r\n row1.put(\")\", \"error\");\r\n row1.put(\"x\", \"s2\");\r\n row1.put(\"E\", \"g6\");\r\n row1.put(\"T\", \"g4\");\r\n row1.put(\"F\", \"g5\");\r\n row1.put(\"$\", \"error\");\r\n Map<String, String> row2 = new HashMap<>();\r\n row2.put(\"+\", \"r6\");\r\n row2.put(\"*\", \"r6\");\r\n row2.put(\"(\", \"error\");\r\n row2.put(\")\", \"r6\");\r\n row2.put(\"x\", \"error\");\r\n row2.put(\"E\", \"error\");\r\n row2.put(\"T\", \"error\");\r\n row2.put(\"F\", \"error\");\r\n row2.put(\"$\", \"r6\");\r\n Map<String, String> row3 = new HashMap<>();\r\n row3.put(\"+\", \"s7\");\r\n row3.put(\"*\", \"error\");\r\n row3.put(\"(\", \"error\");\r\n row3.put(\")\", \"error\");\r\n row3.put(\"x\", \"error\");\r\n row3.put(\"E\", \"error\");\r\n row3.put(\"T\", \"error\");\r\n row3.put(\"F\", \"error\");\r\n row3.put(\"$\", \"accept\");\r\n Map<String, String> row4 = new HashMap<>();\r\n row4.put(\"+\", \"r2\");\r\n row4.put(\"*\", \"s8\");\r\n row4.put(\"(\", \"error\");\r\n row4.put(\")\", \"r2\");\r\n row4.put(\"x\", \"error\");\r\n row4.put(\"E\", \"error\");\r\n row4.put(\"T\", \"error\");\r\n row4.put(\"F\", \"error\");\r\n row4.put(\"$\", \"r2\");\r\n Map<String, String> row5 = new HashMap<>();\r\n row5.put(\"+\", \"r4\");\r\n row5.put(\"*\", \"r4\");\r\n row5.put(\"(\", \"error\");\r\n row5.put(\")\", \"r4\");\r\n row5.put(\"x\", \"error\");\r\n row5.put(\"E\", \"error\");\r\n row5.put(\"T\", \"error\");\r\n row5.put(\"F\", \"error\");\r\n row5.put(\"$\", \"r4\");\r\n Map<String, String> row6 = new HashMap<>();\r\n row6.put(\"+\", \"s7\");\r\n row6.put(\"*\", \"error\");\r\n row6.put(\"(\", \"error\");\r\n row6.put(\")\", \"s10\");\r\n row6.put(\"x\", \"error\");\r\n row6.put(\"E\", \"error\");\r\n row6.put(\"T\", \"error\");\r\n row6.put(\"F\", \"error\");\r\n row6.put(\"$\", \"error\");\r\n Map<String, String> row7 = new HashMap<>();\r\n row7.put(\"+\", \"error\");\r\n row7.put(\"*\", \"error\");\r\n row7.put(\"(\", \"s1\");\r\n row7.put(\")\", \"error\");\r\n row7.put(\"x\", \"s2\");\r\n row7.put(\"E\", \"error\");\r\n row7.put(\"T\", \"g9\");\r\n row7.put(\"F\", \"g5\");\r\n row7.put(\"$\", \"error\");\r\n Map<String, String> row8 = new HashMap<>();\r\n row8.put(\"+\", \"error\");\r\n row8.put(\"*\", \"error\");\r\n row8.put(\"(\", \"s1\");\r\n row8.put(\")\", \"error\");\r\n row8.put(\"x\", \"s2\");\r\n row8.put(\"E\", \"error\");\r\n row8.put(\"T\", \"error\");\r\n row8.put(\"F\", \"g11\");\r\n row8.put(\"$\", \"error\");\r\n Map<String, String> row9 = new HashMap<>();\r\n row9.put(\"+\", \"r1\");\r\n row9.put(\"*\", \"s8\");\r\n row9.put(\"(\", \"error\");\r\n row9.put(\")\", \"r1\");\r\n row9.put(\"x\", \"error\");\r\n row9.put(\"E\", \"error\");\r\n row9.put(\"T\", \"error\");\r\n row9.put(\"F\", \"error\");\r\n row9.put(\"$\", \"r1\");\r\n Map<String, String> row10 = new HashMap<>();\r\n row10.put(\"+\", \"r5\");\r\n row10.put(\"*\", \"r5\");\r\n row10.put(\"(\", \"error\");\r\n row10.put(\")\", \"r5\");\r\n row10.put(\"x\", \"error\");\r\n row10.put(\"E\", \"error\");\r\n row10.put(\"T\", \"error\");\r\n row10.put(\"F\", \"error\");\r\n row10.put(\"$\", \"r5\");\r\n Map<String, String> row11 = new HashMap<>();\r\n row11.put(\"+\", \"r3\");\r\n row11.put(\"*\", \"r3\");\r\n row11.put(\"(\", \"error\");\r\n row11.put(\")\", \"r3\");\r\n row11.put(\"x\", \"error\");\r\n row11.put(\"E\", \"error\");\r\n row11.put(\"T\", \"error\");\r\n row11.put(\"F\", \"error\");\r\n row11.put(\"$\", \"r3\");\r\n //add rows to parser table\r\n parserTable.put(\"0\", row0);\r\n parserTable.put(\"1\", row1);\r\n parserTable.put(\"2\", row2);\r\n parserTable.put(\"3\", row3);\r\n parserTable.put(\"4\", row4);\r\n parserTable.put(\"5\", row5);\r\n parserTable.put(\"6\", row6);\r\n parserTable.put(\"7\", row7);\r\n parserTable.put(\"8\", row8);\r\n parserTable.put(\"9\", row9);\r\n parserTable.put(\"10\", row10);\r\n parserTable.put(\"11\", row11);\r\n\r\n\r\n //create elements of productionTable\r\n List<String> prod0 = new ArrayList<>();\r\n prod0.add(0, \"G\");\r\n prod0.add(1, \"1\");\r\n List<String> prod1 = new ArrayList<>();\r\n prod1.add(0, \"E\");\r\n prod1.add(1, \"3\");\r\n List<String> prod2 = new ArrayList<>();\r\n prod2.add(0, \"E\");\r\n prod2.add(1, \"1\");\r\n List<String> prod3 = new ArrayList<>();\r\n prod3.add(0, \"T\");\r\n prod3.add(1, \"3\");\r\n List<String> prod4 = new ArrayList<>();\r\n prod4.add(0, \"T\");\r\n prod4.add(1, \"1\");\r\n List<String> prod5 = new ArrayList<>();\r\n prod5.add(0, \"F\");\r\n prod5.add(1, \"3\");\r\n List<String> prod6 = new ArrayList<>();\r\n prod6.add(0, \"F\");\r\n prod6.add(1, \"1\");\r\n //populate productionsTable\r\n productionsTable.put(\"0\", prod0);\r\n productionsTable.put(\"1\", prod1);\r\n productionsTable.put(\"2\", prod2);\r\n productionsTable.put(\"3\", prod3);\r\n productionsTable.put(\"4\", prod4);\r\n productionsTable.put(\"5\", prod5);\r\n productionsTable.put(\"6\", prod6);\r\n\r\n //initialize variables\r\n String topStack;\r\n String inputChar;\r\n String tempStr;\r\n String tempStr2;\r\n String tempStr4;\r\n int r;\r\n String n;\r\n //loop through the inputStr\r\n while (stack.size() >= 1) {\r\n\r\n topStack = stack.peek();\r\n inputChar = inputStack.peek();\r\n //check if inputChar is not in alphabet, if so reject string\r\n if(!terminalList.contains(inputChar)) {\r\n System.out.println(\"ERROR: Invalid character!\");\r\n break;\r\n }\r\n //assign values to tempVariables from parser table\r\n tempStr = String.valueOf(parserTable.get(topStack).get(inputChar).charAt(0));\r\n tempStr2 = String.valueOf(parserTable.get(topStack).get(inputChar).substring(1));\r\n\r\n //perform shift operation\r\n if (tempStr.equals(\"s\")) {\r\n stack.add(inputChar);\r\n stack.add(tempStr2);\r\n inputStack.pop();\r\n }\r\n //perform reduce operation\r\n else if (tempStr.equals(\"r\")) {\r\n //get values of r and n from parserTable and productionTable\r\n r = Integer.parseInt(productionsTable.get(tempStr2).get(1))*2;\r\n n = productionsTable.get(tempStr2).get(0);\r\n //pop proper number of elements off of stack\r\n for(int i = 0; i < r; i++) {\r\n stack.pop();\r\n }\r\n //push updated values onto stack\r\n topStack = stack.get(stack.size()-1);\r\n stack.push(n);\r\n tempStr4 = String.valueOf(parserTable.get(topStack).get(n).substring(1));\r\n stack.push(tempStr4);\r\n }\r\n else {\r\n //check if the string is accepted\r\n if (parserTable.get(topStack).get(inputChar).equals(\"accept\")) {\r\n System.out.println(\"String accepted!\");\r\n } else {\r\n System.out.println(\"String not accepted\");\r\n }\r\n break;\r\n }\r\n\r\n\r\n }\r\n }", "title": "" }, { "docid": "8142ba05f25638e4f5ee55b6793b063d", "score": "0.47257203", "text": "@Override\n public LineNumberTableAttribute read(final ByteCodeReader input) throws IOException {\n input.readShort();\n // read length and discard\n input.readInt();\n final int lineNumberTableLength = input.readUnsignedShort();\n final LineNumber[] lineNumberTable = new LineNumber[lineNumberTableLength];\n\n for (int i = 0; i < lineNumberTableLength; i++) {\n lineNumberTable[i] = input.read(Identifier.LINE_NUMBER);\n }\n return new DefaultLineNumberTableAttribute(lineNumberTable);\n }", "title": "" }, { "docid": "be680b894cc86bb37d5089fba99aff50", "score": "0.47235677", "text": "Map<Character, String> getCodeDictionary();", "title": "" }, { "docid": "614745c40cbfdc6187e6819cf1ee4c56", "score": "0.46961677", "text": "@Test(timeout = 4000)\n public void test039() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\\\"switch\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 47, 47, 440);\n javaCharStream0.BeginToken();\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(5, javaCharStream0.bufpos);\n assertEquals(53, javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "5b25f569870deac68daeedc2ccfc5fbb", "score": "0.46943638", "text": "static final public String parseCode() throws ParseException {\n String codeLine = \"\";\n if( standalone ) {\n /*System.out.println( \"Please type in a line of Fortran code \" +\n \"or ^D to quit:\\n\" );*/\n }\n label_1:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case LINE_END:\n case EMPTY_LINE:\n case STRING:\n case EMPTY_FORTRAN_COMMENT:\n case FORTRAN_COMMENT:\n case FUNCTION_START:\n case FUNCTION_END:\n case FUNCTION_RETURN:\n case FORTRAN_MATH_FUN:\n case FORTRAN_ABS:\n case FORTRAN_FLOAT_FUN:\n case FORTRAN_TRUNC_FUN:\n case FORTRAN_MOD_FUN:\n case FORTRAN_FRACTION_FUN:\n case FORTRAN_EXPRESSION:\n case SINGLE_IF:\n case ELSE_COND:\n case START_MULTI_IF:\n case END_IF:\n case FORTRAN_DO_START:\n case FORTRAN_END_DO:\n case VAR_ASSIGN:\n case FORTRAN_VARIABLE:\n case FORTRAN_CHAR_1:\n case FORTRAN_CHAR_2:\n ;\n break;\n default:\n jj_la1[0] = jj_gen;\n break label_1;\n }\n codeLine = convertFortranToJava();\n jj_consume_token(LINE_END);\n //a newline ends the expansion, and the parser expects one, so tack it on\n //print the parsed expression\n if( standalone ) {\n System.out.print( codeLine );\n /*System.out.println( );\n System.out.println( \"Please type in another line of Fortran code or ^D to quit:\" );\n System.out.println( );*/\n }\n }\n {if (true) return codeLine;}\n jj_consume_token(0);\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "66c6de1336369f1eaa8660b9c3ff6528", "score": "0.46833324", "text": "@Test(timeout = 4000)\n public void test004() throws Throwable {\n StringReader stringReader0 = new StringReader(\"6dpackae\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 9, 9);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.TokenLexicalActions(token0);\n // // Unstable assertion: assertEquals(7, javaCharStream0.bufpos);\n // // Unstable assertion: assertEquals(16, javaCharStream0.getEndColumn());\n }", "title": "" }, { "docid": "1e109b4c6d8fc8c2a142c07e3b378deb", "score": "0.467209", "text": "@Test(timeout = 4000)\n public void test107() throws Throwable {\n StringReader stringReader0 = new StringReader(\"UN'h<-&elVXz^1gg\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-3764), 112);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(113, javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "5c411f92da96876e527f71c6f6f3e161", "score": "0.4663633", "text": "public void conversion() {\n this.afd.getAlphabet().addAll(this.afnd.getAlphabet());\n this.afd.getAlphabet().remove(\"#\");\n ArrayList<HashSet<String>> unmarkedStates = new ArrayList<HashSet<String>>();\n HashSet<String> U = new HashSet<String>();\n HashSet<String> T = new HashSet<String>();\n\n U = this.lambdaClosure(this.afnd.getInitState());\n unmarkedStates.add(U);\n this.afd.addState(this.generateStateName(U));\n this.afd.setInitState(this.generateStateName(U));\n\n while (!unmarkedStates.isEmpty()) {\n // marking T:\n T = unmarkedStates.remove(0);\n // marked.\n for (String s:this.afd.getAlphabet()) {\n U = this.lambdaClosure(this.transitionsTo(T, s));\n if (!U.isEmpty()) {\n if (!this.afd.isState(this.generateStateName(U))) {\n // adding as unmarked state:\n unmarkedStates.add(U);\n this.afd.addState(this.generateStateName(U));\n }\n this.afd.addTransition(this.generateStateName(T), this.generateStateName(U), s);\n if (U.contains(this.afnd.getFinalState())) {\n this.afd.setFinalState(this.generateStateName(U));\n this.afd.addFinalStates(U);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "5614b585090246cb7db8d250d6a80baa", "score": "0.46579257", "text": "@Test(timeout = 4000)\n public void test073() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s0^X$Y'YvXu3: KSZ\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(2, javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "8866cc54e220fc6d14f46f97112ab6eb", "score": "0.4654274", "text": "public static FA parse_form_file(String path) throws Exception {\n FileReader in = null;\n boolean afnd = false;\n\n HashSet<State> hashStates = new HashSet<>();\n HashSet<Triple<State, Character, State>> hashTrans = new HashSet<>();\n HashSet<Character> hashAl = new HashSet<>();\n HashSet<State> hashFinal = new HashSet<>();\n State inicio = null;\n\n Tipo tipo = Tipo.DFA;\n StringBuilder sb = new StringBuilder();\n\n try {\n FileInputStream fis = new FileInputStream(new java.io.File(path).getAbsoluteFile() + \".dot\");\n DataInputStream dis = new DataInputStream(fis);\n BufferedReader br = new BufferedReader(new InputStreamReader(dis));\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n dis.close();\n } catch (Exception e) {\n System.err.println(\"Error: \" + e.getMessage());\n }\n\n\n String ret = sb.toString();\n ret = ret.replaceAll(\"\\t\", \";\");\n ret = ret.replaceAll(\" \", \"\");\n String[] sentencias = ret.split(\";\");\n for (int i = 0; i < sentencias.length; i++) {\n if (sentencias[i].contains(\"inic->\")) {//inicial\n String inicial = sentencias[i].split(\"->\")[1];\n inicio = new State(inicial);\n } else {\n if (sentencias[i].contains(\"->\")) { //transicion\n String[] estados = sentencias[i].split(\"->\");\n String desde = estados[0];\n String hasta = estados[1].split(\"\\\\[\")[0];\n String etiqueta = estados[1].split(\"\\\"\")[1];\n State desdeS = new State(desde);\n State hastaS = new State(hasta);\n char character = etiqueta.charAt(0);\n if (character == Lambda) {\n tipo = Tipo.NFALambda;\n }\n hashStates.add(desdeS);\n hashStates.add(hastaS);\n hashAl.add(character);\n hashTrans.add(new Triple(desdeS, character, hastaS));\n Iterator<Triple<State, Character, State>> it = hashTrans.iterator();\n Triple aux;\n while (it.hasNext() && !afnd) {\n aux = it.next();\n if ((desdeS).equals(aux.first()) && !hastaS.equals(aux.third()) && (Character) aux.second() == character) {\n afnd = true; //es no determinista\n tipo = Tipo.NFA;\n }\n }\n\n } else {\n if (sentencias[i].contains(\"[shape=doublecircle]\")) { //estado final!\n hashFinal.add(new State(sentencias[i].split(\"\\\\[\")[0]));\n }\n }\n\n\n }\n }\n\n if (tipo == Tipo.DFA) {\n return new DFA(hashStates, hashAl, hashTrans, inicio, hashFinal);\n } else {\n if (tipo == Tipo.NFA) {\n return new NFA(hashStates, hashAl, hashTrans, inicio, hashFinal);\n } else {\n return new NFALambda(hashStates, hashAl, hashTrans, inicio, hashFinal);\n }\n }\n }", "title": "" }, { "docid": "499921faf14deb117734c46300d36b45", "score": "0.46516114", "text": "@Test(timeout = 4000)\n public void test071() throws Throwable {\n StringReader stringReader0 = new StringReader(\"r3^'6VUg\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.getBeginColumn());\n assertEquals(2, javaCharStream0.getEndColumn());\n }", "title": "" }, { "docid": "b70924b331c367a487c35d3004267e9b", "score": "0.46491075", "text": "private String nextStep(String currentState) {\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor(char c : currentState.toCharArray()) {\n\t\t\tif( rules.containsKey(Character.toString(c))) {\n\t\t\t\tsb.append( rules.get(Character.toString(c)));\n\t\t\t} else {\n\t\t\t\tsb.append(Character.toString(c));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sb.toString();\n\t\t\n\t}", "title": "" }, { "docid": "a71509dc8614e6b2bd3cf4d55492e580", "score": "0.46487397", "text": "public static char triangle4(String firsRow){\n char[] tab = firsRow.toCharArray();\n int index = 0;\n int newIndex = 0;\n int length = tab.length;\n char a, b;\n char ch;\n int counter, tempIndex;\n// showTab(tab);\n while (length > 1){\n\n// // zamiana 3,4,5,6 ... ->1\n// while(index < length){\n// ch = tab[index];\n// counter = 1;\n// tempIndex = index +1;\n// while((tempIndex < length) && ch == tab[tempIndex]){\n// counter++;\n// tempIndex++;\n// }\n// if(counter > 2){\n// tab[newIndex++] = ch;\n// index+=counter;\n// }else{\n// tab[newIndex++] = ch;\n// index++;\n// }\n// }\n// length = newIndex;\n// index = 0;\n// newIndex = 0;\n\n while(index < length - 1 ){\n a = tab[index]; b = tab[index + 1];\n// if(index == 0 && a == b) {tab[newIndex] = a; newIndex++;}\n// if(a == b && index > 0 && a != tab[index-1]) { tab[newIndex] = a; newIndex++;}\n if(a == b) { tab[newIndex++] = a;index++;continue;}\n if(a =='R' && b == 'G') { tab[newIndex++] = 'B';index++;continue;}\n if(a =='R' && b == 'B') { tab[newIndex++] = 'G';index++;continue;}\n if(a =='G' && b == 'B') { tab[newIndex++] = 'R';index++;continue;}\n if(a =='G' && b == 'R') { tab[newIndex++] = 'B';index++;continue;}\n if(a =='B' && b == 'R') { tab[newIndex++] = 'G';index++;continue;}\n if(a =='B' && b == 'G') { tab[newIndex++] = 'R';index++;continue;}\n// index++;\n }\n\n// int i =newIndex;\n// while(i < length){\n// tab[i] = '0';\n// i++;\n// }\n// showTab(tab);\n\n length = newIndex;\n index = 0;\n newIndex = 0;\n\n }\n\n return tab[0];\n }", "title": "" }, { "docid": "3ae20c82536f6596d9133bf8784b607b", "score": "0.463351", "text": "private Object[][] createStartParseTable() {\n \t\tif (manager.isViewFormat()) {\n \t\t\t// Cy3 network view format\n \t\t\tfinal Object[][] tbl = {\n \t\t\t\t\t// Initial state. It's all noise until we see our <graph> tag\n \t\t\t\t\t{ NONE, \"graph\", GRAPH, new HandleViewGraph() },\n \t\t\t\t\t{ GRAPH, \"graphics\", NET_GRAPHICS, new HandleViewGraphGraphics() },\n \t\t\t\t\t{ NET_GRAPHICS, \"att\", NET_GRAPHICS, new HandleViewGraphGraphics() },\n \t\t\t\t\t// Handle nodes\n \t\t\t\t\t{ GRAPH, \"node\", NODE, new HandleViewNode() },\n \t\t\t\t\t{ NODE, \"graphics\", NODE_GRAPHICS, new HandleViewNodeGraphics() },\n \t\t\t\t\t{ NODE_GRAPHICS, \"att\", NODE_GRAPHICS, new HandleViewNodeGraphics() },\n \t\t\t\t\t// TODO: att-list for bypass\n \t\t\t\t\t// Handle edges\n \t\t\t\t\t{ GRAPH, \"edge\", EDGE, new HandleViewEdge() },\n \t\t\t\t\t{ EDGE, \"graphics\", EDGE_GRAPHICS, new HandleViewEdgeGraphics() },\n \t\t\t\t\t{ EDGE_GRAPHICS, \"att\", EDGE_GRAPHICS, new HandleViewEdgeGraphics() },\n \t\t\t\t\t// Vizmap Bypass attributes\n \t\t\t\t\t{ LOCKED_VISUAL_PROP_ATT, \"att\", LOCKED_VISUAL_PROP_ATT, new HandleViewLockedVisualPropAttribute() }\n \t\t\t};\n \t\t\treturn tbl;\n \t\t} else {\n \t\t\t// Cy3 network, Cy2 network+view or regular XGMML formats\n \t\t\tfinal Object[][] tbl = {\n \t\t\t\t\t// Initial state. It's all noise until we see our <graph> tag\n \t\t\t\t\t{ NONE, \"graph\", GRAPH, new HandleGraph() },\n \t\t\t\t\t{ GRAPH, \"att\", NET_ATT, new HandleGraphAttribute() },\n \t\t\t\t\t{ NET_ATT, \"rdf\", RDF, null },\n \t\t\t\t\t// RDF tags -- most of the data for the RDF tags comes from the\n \t\t\t\t\t// CData\n \t\t\t\t\t{ RDF, \"description\", RDF_DESC, new HandleRDF() },\n \t\t\t\t\t{ RDF_DESC, \"type\", RDF_DESC, null },\n \t\t\t\t\t{ RDF_DESC, \"description\", RDF_DESC, null },\n \t\t\t\t\t{ RDF_DESC, \"identifier\", RDF_DESC, null },\n \t\t\t\t\t{ RDF_DESC, \"date\", RDF_DESC, null },\n \t\t\t\t\t{ RDF_DESC, \"title\", RDF_DESC, null },\n \t\t\t\t\t{ RDF_DESC, \"source\", RDF_DESC, null },\n \t\t\t\t\t{ RDF_DESC, \"format\", RDF_DESC, null },\n \t\t\t\t\t// Sub-graphs\n \t\t\t\t\t{ NET_ATT, \"graph\", GRAPH, new HandleGraph() },\n \t\t\t\t\t// Handle nodes\n \t\t\t\t\t{ GRAPH, \"node\", NODE, new HandleNode() },\n \t\t\t\t\t{ NODE_GRAPH, \"node\", NODE, new HandleNode() },\n \t\t\t\t\t{ NODE, \"graphics\", NODE_GRAPHICS, new HandleNodeGraphics() },\n \t\t\t\t\t{ NODE, \"att\", NODE_ATT, new HandleNodeAttribute() },\n \t\t\t\t\t{ NODE_ATT, \"graph\", NODE_GRAPH, new HandleNodeGraph() },\n\t\t\t\t\t{ NODE_GRAPH, \"att\", NET_ATT, new HandleGraphAttribute() },\n \t\t\t\t\t{ NODE_GRAPHICS, \"att\", NODE_GRAPHICS, new HandleNodeGraphics() },\n \t\t\t\t\t// Handle edges\n \t\t\t\t\t{ GRAPH, \"edge\", EDGE, new HandleEdge() },\n \t\t\t\t\t{ NODE_GRAPH, \"edge\", EDGE, new HandleEdge() },\n \t\t\t\t\t{ EDGE, \"att\", EDGE_ATT, new HandleEdgeAttribute() },\n \t\t\t\t\t{ EDGE, \"graphics\", EDGE_GRAPHICS, new HandleEdgeGraphics() },\n \t\t\t\t\t{ EDGE_GRAPHICS, \"att\", EDGE_GRAPHICS, new HandleEdgeGraphics() },\n \t\t\t\t\t{ EDGE_BEND, \"att\", EDGE_HANDLE, new HandleEdgeHandle() },\n \t\t\t\t\t{ EDGE_HANDLE, \"att\", EDGE_HANDLE, new HandleEdgeHandle() },\n \t\t\t\t\t{ LIST_ATT, \"att\", LIST_ELEMENT, new HandleListAttribute() },\n \t\t\t\t\t{ LIST_ELEMENT, \"att\", LIST_ELEMENT, new HandleListAttribute() } };\n \t\t\treturn tbl;\n \t\t}\n \t}", "title": "" }, { "docid": "ec8a6dc73331b8e4e9025b9fa6855469", "score": "0.4630089", "text": "@Test(timeout = 4000)\n public void test065() throws Throwable {\n StringReader stringReader0 = new StringReader(\"lPtf7\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1216), 99);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(4, javaCharStream0.bufpos);\n assertEquals(103, javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "f67e96fe8fde7caa54f9d93d160d3888", "score": "0.4630039", "text": "public AnalizadorSintactico(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "f67e96fe8fde7caa54f9d93d160d3888", "score": "0.4630039", "text": "public AnalizadorSintactico(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "f67e96fe8fde7caa54f9d93d160d3888", "score": "0.4630039", "text": "public AnalizadorSintactico(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "b1e30535c09361cb1aee4990c5f99f74", "score": "0.4626684", "text": "public void testParseTranslationTable() \n\t{\n\t\tResource r = addTranslationTableResource();\n\t\taddTranslationResource( r, \"foo\", \"bar\" );\n\t\tMapping mapping = new D2RQRWMapParser( this.model, null ).parse();\n\t\tTranslationTable table = mapping.translationTable( r );\n\t\tassertEquals( 1, table.size() );\n\t\tTranslator translator = table.translator();\n\t\tassertEquals( \"bar\", translator.toRDFValue( \"foo\" ) );\n\t}", "title": "" }, { "docid": "b45e3764b464da594515b8e777b60b94", "score": "0.46229106", "text": "public void buildDFATableModel(CDFA aDFATableStructure){\n int colCount=aDFATableStructure.alphabet().cardinality();\r\n Object[] columnNames=new Object[colCount+3];\r\n \r\n columnNames[0]=\"STATES\";\r\n columnNames[1]=\"Accept\";\r\n columnNames[2]=\"NFA STATES\";\r\n \r\n for(int i=3, j=aDFATableStructure.alphabet().nextSetBit(0); j>=0;j=aDFATableStructure.alphabet().nextSetBit(j+1),i++){\r\n\t\t\tcolumnNames[i]=(char)j;\r\n }\r\n \r\n //2. Get States\r\n Object rowData[][] =new Object[aDFATableStructure.stateCount()][columnNames.length];\r\n for(int vState=0; vState<=aDFATableStructure.stateCount()-1;vState++){\r\n rowData[vState][0]=vState;\r\n }\r\n //3. Get Accepting States\r\n for(int vState=0;vState<aDFATableStructure.stateCount();vState++){\r\n\t rowData[vState][1]=aDFATableStructure.getOutput(vState);\r\n\t }\r\n \r\n //3. Get NFA States\r\n for(int vState=0;vState<aDFATableStructure.stateCount();vState++){\r\n if(!aDFATableStructure.getNFAStateSet().isEmpty()){\r\n rowData[vState][2]=aDFATableStructure.getNFAStateSet().get(vState);\r\n }\r\n\t } \r\n //4. Get row data\r\n for(int vState=0; vState<=aDFATableStructure.stateCount()-1;vState++){\r\n for(int i=3, j=aDFATableStructure.alphabet().nextSetBit(0); j>=0;j=aDFATableStructure.alphabet().nextSetBit(j+1),i++){\r\n rowData[vState][i]=aDFATableStructure.dTransition(vState, (char)j);\r\n } \r\n }\r\n \r\n tb = new DefaultTableModel(rowData,columnNames);\r\n \r\n //5. Set the model just built as model of DFATableView\r\n setModel(tb);\r\n }", "title": "" }, { "docid": "9ebb9cc5d721c7cf81736c15678dac62", "score": "0.4609018", "text": "@Test(timeout = 4000)\n public void test093() throws Throwable {\n StringReader stringReader0 = new StringReader(\"hU\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 123, 77);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(78, javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "6eaaafc7bd9aee2b66e508de41dfd716", "score": "0.4604422", "text": "HIR getSourceNode1();", "title": "" }, { "docid": "8ac81992acde5b8719b9d005914abf63", "score": "0.4603218", "text": "public Program loadCodes()\r\n {\r\n\r\n String line;\r\n ArrayList<String> argsArr = new ArrayList<>();\r\n\r\n program = new Program();\r\n\r\n try {\r\n\r\n line = byteSource.readLine();\r\n\r\n while (line != null) {\r\n\r\n StringTokenizer tokens = new StringTokenizer(line);\r\n argsArr.clear();\r\n String ByteNextClass = CodeTable.getClassName(tokens.nextToken());\r\n\r\n ByteCode bytecode = (ByteCode) Class.forName(\"interpreter.bytecode.\" + ByteNextClass).getConstructor().newInstance();\r\n\r\n while (tokens.hasMoreTokens()) {\r\n argsArr.add(tokens.nextToken());\r\n }\r\n\r\n\r\n bytecode.init(argsArr);\r\n program.addByteCode(bytecode);\r\n line = byteSource.readLine();\r\n\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Error\");\r\n }\r\n program.resolveAddrs(program);\r\n return program;\r\n }", "title": "" }, { "docid": "e9aff6eb92a8dc7052d1bdea8fd840bb", "score": "0.460236", "text": "@Test(timeout = 4000)\n public void test073() throws Throwable {\n StringReader stringReader0 = new StringReader(\"[l:X?&\\\"lu\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1461), 10);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(11, javaCharStream0.getBeginColumn());\n assertEquals(11, javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "afc54cd61afe1077ea7b2a4d5b5db7d0", "score": "0.45992887", "text": "private List<Instruction> parseInstructionsLine(String instructionsLine,\n int nbLine) {\n String regex = \"[A,G,D]+\";\n Pattern p = Pattern.compile(regex);\n if (!p.matcher(instructionsLine).matches()) {\n String msg = String.format(bundle.get(\"MSG_FORMAT_ERROR_INSTR_LINE\"), nbLine);\n throw new IncorrectDataFileFormatException(msg);\n }\n\n char[] instructionsArray = instructionsLine.toCharArray();\n\n List<Instruction> instructionList = new ArrayList<>();\n for (char c : instructionsArray) {\n switch (c) {\n case 'A':\n instructionList.add(Instruction.FORWARD);\n break;\n case 'G':\n instructionList.add(Instruction.LEFT);\n break;\n case 'D':\n instructionList.add(Instruction.RIGHT);\n break;\n default:\n throw new IncorrectDataFileFormatException();\n }\n }\n\n return instructionList;\n }", "title": "" }, { "docid": "2fe2c247c5cfc3cd1a2f9351714370b9", "score": "0.45945027", "text": "private void parseRow(String line, int index) {\n for(int i = 65; i < 123; i++) {\n if(!((i > 90 && i < 97) || (i == 88) || (i == 120))) {\n if(line.indexOf((char)i) != -1) {\n storeData((char)i, line.indexOf((char)i), index);\n }\n }\n }\n }", "title": "" }, { "docid": "1359228f236874bfc37c46dea544e490", "score": "0.45876646", "text": "@Test(timeout = 4000)\n public void test041() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0Iip(b\");\n char[] charArray0 = new char[2];\n stringReader0.read(charArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 13, 13, 13);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(14, javaCharStream0.getEndColumn());\n }", "title": "" }, { "docid": "795d1e3aefe8ffa13de16058776e3461", "score": "0.45797145", "text": "public AnalizadorSintacticoOnline(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "9baf769cb29fa1792ff36ef9bff86158", "score": "0.45699376", "text": "public static TokenLex analisadorLexico(){\n \n TokenLex tl = new TokenLex();\n String tmpLexema = \"\";\n int state = 0;\n \n for (;interator < lexema.length();) {\n char c = lexema.charAt(interator);\n switch (state) {\n // Create every case equals of the automato que vc criou fdp fazendo os if e etc pra cada um e separando (sendo cada bolinha um case)\n case 0:\n if (c == '_') {\n interator++; \n tmpLexema = tmpLexema+c;\n state = 2;\n tl.setToken(\"id\");\n } else if ( contains(letter,c)) {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n tmpLexema = tmpLexema+c;\n state = 1;\n tl.setToken(\"id\");\n } else if ( c == '0') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n // pode entrar em conflito com digito\n interator++;\n tmpLexema = tmpLexema+c;\n state = 10;\n tl.setToken(\"const\");\n } else if ( contains(digit, c)) {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n tmpLexema = tmpLexema+c;\n state = 3;\n tl.setToken(\"const\");\n } else if ( c == '<') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n tmpLexema = tmpLexema+c;\n state = 4;\n } else if ( c == '>') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n tmpLexema = tmpLexema+c;\n state = 5;\n } else if ( c == '/') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n // duvida pro be\n tmpLexema = tmpLexema+c;\n state = 7;\n } else if ( contains(symbols, c)) {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n tmpLexema = tmpLexema+c;\n state = 99;\n tl.setToken(tmpLexema);\n } else if ( c == ' ') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n state = 0;\n } else if(c == '\\\"'){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n state = 13;\n tl.setToken(\"const\");\n } else if (c == '\\''){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n state = 6;\n tl.setToken(\"const\");\n } else {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n // Error\n state = 666;\n }\n break;\n case 1:\n if (contains(letter, c) || contains(digit, c) || c == '_'){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n tmpLexema = tmpLexema+c;\n state = 1;\n } else {\n // System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n //System.out.println(\"--------------------\" + tmpLexema +\"---------------\");\n // novo lexama e formado\n lexema = returnIt(lexema, interator);\n // reseta posição\n interator = 0;\n // aceitação\n state = 99;\n //System.out.println(\"--------------------\" + tmpLexema +\"---------------\");\n }\n break;\n case 2:\n if(contains(letter, c) || contains(digit, c)){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n tmpLexema = tmpLexema+c;\n state = 1;\n }else if(c == '_'){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n tmpLexema = tmpLexema+c;\n state = 2;\n } else {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n // aceitação\n lexema = returnIt(lexema, interator);\n interator = 0;\n state = 99;\n }\n break;\n case 3:\n if(contains(digit, c)) {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n tmpLexema = tmpLexema+c;\n state = 3;\n } else {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n // aceitação\n lexema = returnIt(lexema, interator);\n interator = 0;\n state = 99;\n }\n break;\n case 4:\n if( c == '='){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n tmpLexema = tmpLexema+c;\n interator++;\n state = 99;\n }else if( c == '>') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n tmpLexema = tmpLexema+c;\n interator++;\n state = 99;\n } else if( c == '-'){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n tmpLexema = tmpLexema+c;\n interator++;\n state = 99;\n } else {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n // aceitação\n lexema = returnIt(lexema, interator);\n interator = 0;\n state = 99; \n }\n break;\n case 5:\n if(c == '=') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n tmpLexema = tmpLexema+c;\n interator++;\n state = 99;\n } else {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n //aceitação\n lexema = returnIt(lexema, interator);\n interator = 0;\n state = 99;\n }\n break;\n case 6:\n if (contains(symbols, c) || contains(letter, c) || contains(digit, c)) {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n tmpLexema = tmpLexema+c;\n interator++;\n state = 11;\n }\n break;\n case 7:\n // comentario ou dividir\n if (c == '*') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n state = 8;\n } else {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n // criar dividir\n lexema = returnIt(lexema, interator);\n interator = 0;\n state = 99;\n }\n break;\n case 8:\n // comentario\n if (c == '*') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n state = 9;\n } else {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n state = 8;\n }\n break;\n case 9:\n // comentario finish\n if(c == '/'){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n tmpLexema = \"\";\n state = 0;\n } else {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator++;\n state = 8;\n }\n break;\n case 10:\n if (contains(hex, c)){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n tmpLexema = tmpLexema+c;\n interator++;\n state = 12;\n }else{\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n lexema = returnIt(lexema, interator);\n interator = 0;\n state = 99;\n }\n break;\n case 11:\n // Finishing char\n if(c == '\\''){\n interator++;\n state = 99;\n }\n break;\n case 12:\n if (contains(hex, c)){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n tmpLexema = tmpLexema+c;\n interator++;\n state = 14;\n }\n break;\n case 13:\n if (contains(letter, c) || contains(digit, c) || contains(symbols, c) || c == ' ') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n tmpLexema = tmpLexema+c;\n interator++;\n state = 13;\n } else if (c == '\\\"' || c == '$' || c == '\\n') {\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n tmpLexema = tmpLexema+\"$\";\n interator++;\n state = 99;\n }\n break;\n case 14:\n if (c == 'h'){\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n tmpLexema = tmpLexema+c;\n // duvida\n interator++;\n state = 99;\n } else {\n tmpLexema = tmpLexema+c;\n interator++;\n state = 3;\n }\n break;\n case 99:\n if(!(containsTok(tmpLexema,alphabet))){\n //if(!alphabet.containsKey(tmpLexema)){\n \n tl.setLex((tmpLexema));\n alphabet.put(index,tl);\n //System.out.println(\" >> \" + tl.getLex() + \" << \" + \" -- \" + tl.getToken());\n index++;\n } else {\n //System.out.println(\" >> \" + tmpLexema + \" << \" + \" -- \" + state);\n tl = searchToken(tmpLexema, alphabet);\n }\n return tl;\n case 666:\n //System.out.println(\" >> \" + c + \" << \" + \" -- \" + state);\n interator = lexema.length();\n System.out.println(\"Caractere inválido \" + \"( \" + c + \" )\" );\n break;\n }\n }\n if(state != 0 && state != 99 && state != 666 ){\n System.out.println(\"Fim de arquivo não esperado\");\n error = true;\n }\n return tl;\n }", "title": "" }, { "docid": "7463c95cb01c11cc1cecd8d788250992", "score": "0.45690078", "text": "@Test(timeout = 4000)\n public void test127() throws Throwable {\n StringReader stringReader0 = new StringReader(\"jp=ab2QU73[tC<Nms6\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(4, javaCharStream0.getBeginColumn());\n assertEquals(10, javaCharStream0.getEndColumn());\n }", "title": "" }, { "docid": "4baf841bf8ed5a3d6f97212fba446611", "score": "0.45661396", "text": "private void performParsingAlgorithm() throws AnalyzerException {\n\t\tStack<Symbol> stack = new Stack<Symbol>();\n\t\tstack.push(endOfProgram);\n\t\tstack.push(startSymbol);\n\t\tint parsedTokensCount = 0;\n\t\tdo {\n\n\t\t\tSymbol stackTop = stack.peek();\n\t\t\t// input --> tokens\n\t\t\tTerminal inputTop = input.peek();\n\t\t\tif (stackTop.isTerminal()) {\n\t\t\t\tif (stackTop.equals(inputTop)) {\n\t\t\t\t\tstack.pop();\n\t\t\t\t\tinput.pop();\n\t\t\t\t\tparsedTokensCount++;\n\t\t\t\t} else {\n\t\t\t\t\tthrow new AnalyzerException(\"Syntax error after token #\" + parsedTokensCount,\n\t\t\t\t\t\t\tparsedTokensCount);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSimpleEntry<NonTerminal, Terminal> tableKey = new SimpleEntry<NonTerminal, Terminal>(\n\t\t\t\t\t\t(NonTerminal) stackTop, inputTop);\n\t\t\t\tif (parsingTable.containsKey(tableKey)) {\n\t\t\t\t\tstack.pop();\n\t\t\t\t\tSymbol[] tableEntry = parsingTable.get(tableKey);\n\t\t\t\t\tfor (int j = tableEntry.length - 1; j > -1; j--) {\n\t\t\t\t\t\tif (!tableEntry[j].equals(epsilon))\n\t\t\t\t\t\t\tstack.push(tableEntry[j]);\n\t\t\t\t\t}\n\t\t\t\t\tsequenceOfAppliedRules.add(getRule((NonTerminal) stackTop, tableEntry));\n\t\t\t\t} else {\n\t\t\t\t\tthrow new AnalyzerException(\"Syntax error after token #\" + parsedTokensCount,\n\t\t\t\t\t\t\tparsedTokensCount);\n\t\t\t\t}\n\t\t\t}\n\t\t} while (!stack.isEmpty() && !input.isEmpty());\n\n\t\tif (!input.isEmpty()) {\n\t\t\tthrow new AnalyzerException(\"Syntax error after token #\" + parsedTokensCount,\n\t\t\t\t\tparsedTokensCount);\n\t\t}\n\t}", "title": "" }, { "docid": "741fc69b7342f7deb5fc830c892c1604", "score": "0.45561966", "text": "public InstrList codegen (Stm stm);", "title": "" }, { "docid": "51b86eb5eae9fdd4302866c0eb266810", "score": "0.4555992", "text": "public CodeTableInput(Project project)\n\t{\n\t\tfProject = project;\n\t\tfFreqs = new HashMap<Long, Integer>();\n\t\tfCodes = new HashMap<Long, Code>();\n\t\tfData = null;\n\t\t\n\t\tfor(Code code : fProject.getCodes())\n\t\t{\n\t\t\tfCodes.put(code.getPersistenceId(), code);\n\t\t}\n\t\t\n\t\tcountFrequencies();\t\n\t}", "title": "" }, { "docid": "9bd3947544ae94a3936c9d9b1c3090d2", "score": "0.45515123", "text": "private void buildTable() {\n for (String nonTerminalEntry : nonTerminals) {\n boolean hasEpsilon = false;\n /** loop through all first(curr non terminal) find it's production rule entry */\n for (String firstEntry : first.get(nonTerminalEntry)) {\n if (firstEntry.equals(Constant.EPSILON)) {\n hasEpsilon = true;\n continue;\n }\n /** loop through all RHS rules for curr(non terminal) */\n for (ArrayList<String> productionRule : grammar.getRHS(nonTerminalEntry)) {\n /** check if it contains curr first entry add it in table */\n if (first.get(productionRule.get(0)).contains(firstEntry)) {\n /**\n * if the entry being filled for terminal input char already filled report an\n * ambiguity error and fill it again\n */\n if (parsingTable.get(nonTerminalEntry).containsKey(firstEntry)) {\n parsingTable.get(nonTerminalEntry).get(firstEntry).add(productionRule);\n isAmbiguousGrammar = true;\n } else { /** create a new entry in table and fill it */\n ArrayList<ArrayList<String>> productionRulesEntry = new ArrayList<>();\n productionRulesEntry.add(productionRule);\n parsingTable.get(nonTerminalEntry).put(firstEntry, productionRulesEntry);\n }\n }\n /**\n * looped for all first of the non terminal entry to fill it with a production\n * rule\n */\n }\n }\n /**\n * loop through all follow(curr non terminal) and fill it with epsilon or sync\n */\n for (String followEntry : follow.get(nonTerminalEntry)) {\n if (hasEpsilon) { /** if first has epsilon [not terminal,follow] = epsilon */\n ArrayList<String> epsilonRule = new ArrayList<>();\n epsilonRule.add(Constant.EPSILON);\n /** if entry already exists report ambiguity error and refill it */\n if (parsingTable.get(nonTerminalEntry).containsKey(followEntry)) { /**/\n isAmbiguousGrammar = true;\n parsingTable.get(nonTerminalEntry).get(followEntry).add(epsilonRule);\n } else {\n ArrayList<ArrayList<String>> productionRulesEntry = new ArrayList<>();\n productionRulesEntry.add(epsilonRule);\n parsingTable.get(nonTerminalEntry).put(followEntry, productionRulesEntry);\n }\n } else if (!first.get(nonTerminalEntry).contains(followEntry)) { /** if first doesn't has epsilon [non terminal,follow] = epsilon */\n ArrayList<String> syncRule = new ArrayList<>();\n syncRule.add(Constant.SYNC_TOK);\n /** if entry already exists report ambiguity error and refill it */\n if (parsingTable.get(nonTerminalEntry).containsKey(followEntry)) {\n isAmbiguousGrammar = true;\n parsingTable.get(nonTerminalEntry).get(followEntry).add(syncRule);\n } else { /** create new entry in table */\n ArrayList<ArrayList<String>> productionRulesEntry = new ArrayList<>();\n productionRulesEntry.add(syncRule);\n parsingTable.get(nonTerminalEntry).put(followEntry, productionRulesEntry);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "d339cfdef35e66e0c96b477691d776c5", "score": "0.45487913", "text": "@kotlin.Metadata(mv = {1, 1, 15}, bv = {1, 0, 3}, k = 1, d1 = {\"\\u0000(\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0000\\n\\u0002\\u0010\\u0002\\n\\u0002\\b\\u0002\\n\\u0002\\u0010\\u000b\\n\\u0002\\b\\b\\n\\u0002\\u0010\\u000e\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0005\\bf\\u0018\\u00002\\u00020\\u0001J\\b\\u0010\\u0002\\u001a\\u00020\\u0003H&J\\u0010\\u0010\\u0004\\u001a\\u00020\\u00032\\u0006\\u0010\\u0005\\u001a\\u00020\\u0006H&J\\u0010\\u0010\\u0007\\u001a\\u00020\\u00032\\u0006\\u0010\\b\\u001a\\u00020\\u0006H&J\\b\\u0010\\t\\u001a\\u00020\\u0003H&J\\b\\u0010\\n\\u001a\\u00020\\u0003H&J\\b\\u0010\\u000b\\u001a\\u00020\\u0003H&J\\b\\u0010\\f\\u001a\\u00020\\u0003H&J\\u0010\\u0010\\r\\u001a\\u00020\\u00032\\u0006\\u0010\\u000e\\u001a\\u00020\\u000fH&J\\u0010\\u0010\\u0010\\u001a\\u00020\\u00032\\u0006\\u0010\\b\\u001a\\u00020\\u0011H&J\\u0010\\u0010\\u0012\\u001a\\u00020\\u00032\\u0006\\u0010\\u0013\\u001a\\u00020\\u0006H&J\\b\\u0010\\u0014\\u001a\\u00020\\u0003H&J\\b\\u0010\\u0015\\u001a\\u00020\\u0003H&\\u00a8\\u0006\\u0016\"}, d2 = {\"Lcom/github/midros/istheapp/services/accessibilityData/InterfaceAccessibility;\", \"\", \"clearDisposable\", \"\", \"enableGps\", \"gps\", \"\", \"enablePermissionLocation\", \"location\", \"getCapturePicture\", \"getRecordingAudio\", \"getShowOrHideApp\", \"getSocialStatus\", \"setDataKey\", \"data\", \"\", \"setDataLocation\", \"Landroid/location/Location;\", \"setRunServiceData\", \"run\", \"startCountDownTimer\", \"stopCountDownTimer\", \"app_debug\"})\npublic abstract interface InterfaceAccessibility {\n \n public abstract void clearDisposable();\n \n public abstract void setDataKey(@org.jetbrains.annotations.NotNull()\n java.lang.String data);\n \n public abstract void setDataLocation(@org.jetbrains.annotations.NotNull()\n android.location.Location location);\n \n public abstract void getShowOrHideApp();\n \n public abstract void getCapturePicture();\n \n public abstract void getRecordingAudio();\n \n public abstract void setRunServiceData(boolean run);\n \n public abstract void getSocialStatus();\n \n public abstract void enablePermissionLocation(boolean location);\n \n public abstract void enableGps(boolean gps);\n \n public abstract void startCountDownTimer();\n \n public abstract void stopCountDownTimer();\n}", "title": "" }, { "docid": "7a667351b216adfdf48b759b798fd28b", "score": "0.45461756", "text": "public APT<APTs> translate( Symtable<SYMs> symtable,\n\t\t\tAPT<APTs> parseTree, Token<TOKs>[] tstream ) {\n\t\t\n\t\tfinal APT<APTs> retval;\n\t\ttry {\n\t\t\n\t\t\tif( null == symtable )\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\tif( null == parseTree )\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\tif( null == tstream )\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t\n\t\t\tfinal APT_statement __statement;\n\t\t\tswitch( parseTree.identifier() ) {\n\t\t\tcase APT_ROOT:\n\t\t\t\t(( APT_root )parseTree).addChild(\n\t\t\t\t\t\t__statement = new APT_statement(\n\t\t\t\t\t\t\t\tparseTree\n\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase APT_STATEMENT:\n\t\t\t\t__statement = ( APT_statement )parseTree;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\t__statement = null;\n\t\t\t}\n\t\t\t\n\t\t\t// Initializing the model with the generated synthetic identifier\n\t\t\t//\t(variable_name) and the corresponding model type identifier...\n\t\t\tfinal N_native_model rvalue;\n\t\t\t\trvalue = ( N_native_model )tstream[ tstream.length - 1 ];\n\t\t\tfinal APT_native_model __model = new APT_native_model(\n\t\t\t\t\t__statement\n\t\t\t\t\t, rvalue\n\t\t\t\t);\n\t\t\t__statement.addChild( __model );\n\t\t\tretval = __statement;\n\t\t}\n\t\tcatch( IllegalArgumentException e ) {\n\t\t\t\n\t\t\tif( true == Projectspace.isErrorEnabled() )\n\t\t\t\tSystem.out.println( e );\n\t\t\t\n\t\t\tthrow e;\n\t\t}\n\t\t\n\t\treturn retval;\n\t}", "title": "" }, { "docid": "522c01000bdb9a697932a871b6f57aca", "score": "0.4544591", "text": "private void nextCodePoint() {\n // Next unicode character.\n nextUnicodeInputCharacter();\n\n // Return early if ASCII or not a surrogate pair.\n if (isASCII() || !Character.isHighSurrogate(character)) {\n return;\n }\n\n // Capture high surrogate and position.\n char hi = character;\n int savePosition = position;\n int saveWidth = width;\n\n // Get potential low surrogate.\n nextUnicodeInputCharacter();\n char lo = character;\n\n if (Character.isLowSurrogate(lo)) {\n // Start codepoint at start of high surrogate.\n position = savePosition;\n width += saveWidth;\n // Compute codepoint.\n codepoint = Character.toCodePoint(hi, lo);\n } else {\n // Restore to treat high surrogate as just a character.\n position = savePosition;\n width = saveWidth;\n character = hi;\n codepoint = (int)hi;\n // Could potential report an error here (old code did not.)\n }\n }", "title": "" }, { "docid": "f92728f5ef77adce4615996ae4d5b2ef", "score": "0.45420453", "text": "public void lexing(String[] codeLines) {\r\n\t\tfor (String line : codeLines) {\r\n\t\t\t\r\n\t\t\tline = line.replaceAll(\"\\\\{\", \"\\\\ { \").replaceAll(\"\\\\}\", \"\\\\ } \").replaceAll(\"\\\\>\", \"\\\\ > \").replaceAll(\"\\\\<\", \"\\\\ < \")\t\r\n\t\t\t\t\t .replaceAll(\"\\\\+\", \"\\\\ + \").replaceAll(\"\\\\-\", \"\\\\ - \").replaceAll(\"\\\\*\", \"\\\\ * \").replaceAll(\"\\\\/\", \"\\\\ / \")\r\n\t\t\t\t\t .replaceAll(\"\\\\(\", \"\\\\ ( \").replaceAll(\"\\\\)\", \"\\\\ ) \").replaceAll(\"\\\\=\", \"\\\\ = \").trim();\r\n\t\t\t\r\n\t\t\tthis.tokens.add(line.split(\"\\\\s+\"));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8890e0f7d0a19fe7dd3d1266c4ea0dd6", "score": "0.45418197", "text": "@Test(timeout = 4000)\n public void test085() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0vb_x+ .MA]j0p\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 48, (-23), 22);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals((-20), javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "bcd5217ba57244f29afcf7465d350ee2", "score": "0.4537588", "text": "public static void decode() {\n \tint first = BinaryStdIn.readInt();\n// \tStdOut.println(first);\n \tString lastLetter = BinaryStdIn.readString();\n// \tchar[] t = lastLetter.toCharArray();\n \tchar[] firstLetter = lastLetter.toCharArray();//t;\n \tArrays.sort(firstLetter);\n \tint[] asciiCount = new int[R+1];\n \tint len = lastLetter.length();\n\n \tint[] next = new int[len];\n \tfor (int i = 0; i < len; i++) { //build the count array for each character, \"+1\" means count of A should be recorded on B\n \t\tasciiCount[lastLetter.charAt(i)+1] ++;\n \t} \t\n \tfor (int j = 1; j < R+1; j++) { //count the start number for each character. \"!\" is 0, \"A\" is 1 in the abra.txt example.\n \t\tasciiCount[j] += asciiCount[j-1];\n \t} \t\n \tfor (int k = 0; k < len; k++) { //compute the next array.\n \t\tnext[asciiCount[lastLetter.charAt(k)] ++] = k;\n \t} \t\n \tint curr = first;\n \tfor (int m = 0; m < len; m++) {\n \t\tBinaryStdOut.write(firstLetter[curr]);\n \t\tcurr = next[curr];\n \t}\n \tBinaryStdOut.close(); //very important!\n }", "title": "" }, { "docid": "a7a2e51c2d34ec93b1a2a0fcd2212cc6", "score": "0.45367813", "text": "public static void decode() {\n int[] charIndex = buildAlphabet();\n int[] positionIndex = buildAlphabet();\n while (!BinaryStdIn.isEmpty()) {\n int pos = BinaryStdIn.readChar();\n BinaryStdOut.write(positionIndex[pos], 8);\n moveToFront(charIndex, positionIndex, positionIndex[pos]);\n }\n BinaryStdIn.close();\n BinaryStdOut.close();\n }", "title": "" }, { "docid": "2f6532f947968141111f669e5026d577", "score": "0.4528672", "text": "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tdrawTable(transitionPanel, txtStates.getText(), txtInputAlphabet.getText());\n\t\t\t}", "title": "" }, { "docid": "0105347e01d4f83387c201ffa4087d3b", "score": "0.45227122", "text": "@Test(timeout = 4000)\n public void test086() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+\\\"uzm@?H>rj.%We[xT\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 11, 34, 107);\n stringReader0.read();\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.bufpos);\n assertEquals(36, javaCharStream0.getEndColumn());\n }", "title": "" }, { "docid": "6dc58cf58bb27f64cbfea1cd68532aa8", "score": "0.451572", "text": "private void buildParsingTable() {\n\t\tfor (Rule r : rules) {\n\t\t\tSymbol[] rightSide = r.getRightSide();\n\t\t\tNonTerminal leftSide = r.getLeftSide();\n\t\t\tSet<Terminal> firstSetForRightSide = first(rightSide);\n\t\t\tSet<Terminal> followSetForLeftSide = followSet.get(leftSide);\n\n\t\t\tfor (Terminal s : firstSetForRightSide) {\n\t\t\t\tparsingTable.put(new SimpleEntry<NonTerminal, Terminal>(leftSide, s), rightSide);\n\t\t\t}\n\n\t\t\tif (firstSetForRightSide.contains(epsilon)) {\n\t\t\t\tfor (Terminal s : followSetForLeftSide) {\n\t\t\t\t\tparsingTable\n\t\t\t\t\t\t\t.put(new SimpleEntry<NonTerminal, Terminal>(leftSide, s), rightSide);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "aeb6a4618e64f7742cfb4b3ea6466eff", "score": "0.4506807", "text": "public abstract void interpret(String input);", "title": "" }, { "docid": "10d1bb6d403010686e6d2c8f32a79703", "score": "0.4506569", "text": "private void convertAns() {\r\n // Removes the data we don't need for a person\r\n // Survey Number and date\r\n for (int i = 0; i < 2; i++) {\r\n if (scan.hasNext()) {\r\n scan.next();\r\n }\r\n } // End for\r\n\r\n String strMajor = nextString();\r\n String strState = nextString();\r\n String strHobby = nextString();\r\n if (strMajor != null) {\r\n setMajor(strMajor);\r\n }\r\n if (strState != null) {\r\n setState(strState);\r\n }\r\n if (strHobby != null) {\r\n setHobby(strHobby);\r\n }\r\n if (valid) {\r\n fillAnswers();\r\n }\r\n\r\n }", "title": "" }, { "docid": "bcd68cf53a413067c009b2dd4dd68f95", "score": "0.4505665", "text": "int[] cal(char[] chars, int start, int layer) {\n int[] res = new int[2];\n int i = start;\n boolean plus = true;\n while (i < chars.length) {\n char c = chars[i];\n switch (c) {\n case '+':\n plus = true;\n break;\n case '-':\n plus = false;\n break;\n case '(':\n int[] temp = cal(chars, i + 1, layer + 1);\n res[0] += plus ? temp[0] : -temp[0];\n i = temp[1];\n break;\n case ')':\n if (layer > 0) {\n res[1] = i;\n return res;\n }\n break;\n case ' ':\n break;\n default:\n int num = chars[i] - '0';\n while (i + 1 < chars.length && chars[i + 1] >= '0' && chars[i + 1] <= '9') {\n num = num * 10 + chars[i + 1] - '0';\n i++;\n }\n res[0] += plus ? num : -num;\n break;\n }\n i++;\n }\n res[1] = i;\n// System.out.println(\"res:\" + res[0] + \" \" + res[1]);\n return res;\n }", "title": "" }, { "docid": "fb4c4bd9d8e76e6ac1367742a7bfabf3", "score": "0.45037994", "text": "public static String fillTable(EPADAIMList aims,String templatecode, String[] columns, String[] shapes){\n\t\tif (templatecode!=null && templatecode.length()>0) {\n\t\t\tString[] templates=templatecode.split(\",\");\n\t\t\n\t\t\tif (templates.length>1){\n\t\t\t\tString filled=\"\";\n\t\t\t\tfor (String template:templates){\n\t\t\t\t\tString templateTable=fillTable(aims, template, columns,shapes);\n\t\t\t\t\tif (templateTable!=null && !templateTable.isEmpty() && !templateTable.equals(\"[]\")){\n\t\t\t\t\t\tif (filled.isEmpty() || filled.equals(\"[]\"))\n\t\t\t\t\t\t\tfilled=templateTable;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tfilled=filled.substring(0, filled.length()-1)+\",\"+templateTable.substring(1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (filled.isEmpty())\n\t\t\t\t\tfilled=\"[]\";\n\t\t\t\treturn filled;\n\t\t\t}\n\t\t}\n\t\tString [][] table=null;\n\t\t//make sure they are lower case\n\t\tfor (int i=0;i<columns.length;i++){\n\t\t\tcolumns[i]=columns[i].toLowerCase();\n\t\t}\n\t\tif (aims==null || aims.ResultSet.totalRecords==0) return null;\n\t\ttable=new String[aims.ResultSet.totalRecords][columns.length];\n\t\tint row=0;\n\t\t//for each aim. find the item that contains the label to match and return the value (and/or code?)\n\t\tfor (EPADAIM aim:aims.ResultSet.Result) {\n\t\t\tImageAnnotationCollection iac=null;\n\t\t\tMap<String,String> values=new HashMap<>();\n\t\t\tMap<String,String> allCalcValues=new HashMap<>();\n\t\t\tboolean hasCalcs=false;\n\t\t\tfor (int i=0;i<columns.length;i++) {\n\t\t\t\tvalues.put(columns[i],\"\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (aim.xml==null){\n\t\t\t\t\tlog.warning(\"Aim with no xml! Something is wrong\");\n\t\t\t\t\ttable[row++]=null;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tiac = AnnotationGetter.getImageAnnotationCollectionFromString(aim.xml, xsdFilePathV4);\n\t\t\t\tif (iac!=null) {\n\t\t\t\t\tedu.stanford.hakan.aim4api.base.ImageAnnotation ia= iac.getImageAnnotation();\n\t\t\t\t\t//check the template\n\t\t\t\t\tif (templatecode!=null) {\n\t\t\t\t\t\tif (!ia.getListTypeCode().get(0).getCode().equalsIgnoreCase(templatecode)) {\n\t\t\t\t\t\t\tlog.warning(\"Aim template is \"+ia.getListTypeCode().get(0).getCode() + \" was looking for \"+templatecode);\n\t\t\t\t\t\t\ttable[row++]=null;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//put the template in values\n\t\t\t\t\tvalues.put(\"template\", formJsonObj(ia.getListTypeCode().get(0).getDisplayName().getValue(),ia.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\n\t\t\t\t\tStringBuilder markupsStr=new StringBuilder();\n\t\t\t\t\tStringBuilder shapesStr=new StringBuilder();\n\t\t\t\t\tfor (MarkupEntity me:ia.getMarkupEntityCollection().getMarkupEntityList()){\n\t\t\t\t\t\tif (markupsStr.length()>0)\n\t\t\t\t\t\t\tmarkupsStr.append(\",\");\n\t\t\t\t\t\tmarkupsStr.append(me.getXsiType());\n\t\t\t\t\t}\n\t\t\t\t\t//check if the shapes should be filter and if the aim matches the filter\n\t\t\t\t\tif (shapes!=null && shapes.length>0){\n\t\t\t\t\t\tif (!checkForShapes(ia.getMarkupEntityCollection(),shapes)) {\n\t\t\t\t\t\t\tfor (String s:shapes){\n\t\t\t\t\t\t\t\tshapesStr.append(s);\n\t\t\t\t\t\t\t\tshapesStr.append(\" \");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlog.warning(\"Aim shape is \"+markupsStr.toString() + \" was looking for \"+shapesStr.toString());\n\t\t\t\t\t\t\ttable[row++]=null;\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//put shape in values\n\t\t\t\t\tvalues.put(\"shapes\", formJsonObj(markupsStr.toString()));\n\t\t\t\t\t\n\t\t\t\t\tif (values.containsKey(\"studydate\")) {\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tvalues.put(\"studydate\", formJsonObj(((DicomImageReferenceEntity)ia.getImageReferenceEntityCollection().get(0)).getImageStudy().getStartDate()));\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tlog.warning(\"The value for StudyDate couldn't be retrieved \", e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (values.containsKey(\"studydate\")) {\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tvalues.put(\"studydate\", formJsonObj(((DicomImageReferenceEntity)ia.getImageReferenceEntityCollection().get(0)).getImageStudy().getStartDate()));\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tlog.warning(\"The value for StudyDate couldn't be retrieved \", e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (values.containsKey(\"name\")) {\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tvalues.put(\"name\", formJsonObj(ia.getName().getValue()));\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tlog.warning(\"The value for Name couldn't be retrieved \", e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (values.containsKey(\"studyuid\")) {\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tvalues.put(\"studyuid\", formJsonObj(((DicomImageReferenceEntity)ia.getImageReferenceEntityCollection().get(0)).getImageStudy().getInstanceUid().getRoot()));\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tlog.warning(\"The value for StudyUID couldn't be retrieved \", e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (values.containsKey(\"seriesuid\")) {\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tvalues.put(\"seriesuid\", formJsonObj(((DicomImageReferenceEntity)ia.getImageReferenceEntityCollection().get(0)).getImageStudy().getImageSeries().getInstanceUid().getRoot()));\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tlog.warning(\"The value for SeriesUID couldn't be retrieved \", e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (values.containsKey(\"modality\")) {\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tvalues.put(\"modality\", formJsonObj(((DicomImageReferenceEntity)ia.getImageReferenceEntityCollection().get(0)).getImageStudy().getImageSeries().getModality().getDisplayName().getValue(),((DicomImageReferenceEntity)ia.getImageReferenceEntityCollection().get(0)).getImageStudy().getImageSeries().getModality().getCode()));\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tlog.warning(\"The value for modality couldn't be retrieved \", e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (values.containsKey(\"aimuid\")) {\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tvalues.put(\"aimuid\", formJsonObj(iac.getUniqueIdentifier().getRoot()));\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tlog.warning(\"The value for AimUID couldn't be retrieved \", e);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (values.containsKey(\"trackinguniqueidentifier\")) {\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tvalues.put(\"trackinguniqueidentifier\", formJsonObj(iac.getImageAnnotation().getTrackingUniqueIdentifier().getRoot()));\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tlog.warning(\"The value for trackingUniqueIdentifier couldn't be retrieved \", e);\n\t\t\t\t\t\t\tvalues.put(\"trackinguniqueidentifier\",formJsonObj(\"\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//look through observation entities\n\t\t\t\t\tif (ia.getImagingObservationEntityCollection()!=null){\n\t\t\t\t\t\tfor (ImagingObservationEntity ob: ia.getImagingObservationEntityCollection().getImagingObservationEntityList()){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (values.containsKey(ob.getLabel().getValue().toLowerCase())) { //key exists put the value\n\t\t\t\t\t\t\t\tvalues.put(ob.getLabel().getValue().toLowerCase(), formJsonObj(ob.getListTypeCode().get(0).getDisplayName().getValue(),ob.getListTypeCode().get(0).getCode()));\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//look through observation characteristics\n\t\t\t\t\t\t\tif (ob.getImagingObservationCharacteristicCollection()!=null) {\n\t\t\t\t\t\t\t\tfor (ImagingObservationCharacteristic obChar: ob.getImagingObservationCharacteristicCollection().getImagingObservationCharacteristicList()){\n\t\t\t\t\t\t\t\t\tif (values.containsKey(obChar.getLabel().getValue().toLowerCase())) { //key exists put the value\n\t\t\t\t\t\t\t\t\t\t//if it has a quantification put that\n\t\t\t\t\t\t\t\t\t\tif (obChar.getCharacteristicQuantificationCollection().size()>0){\n\t\t\t\t\t\t\t\t\t\t\tScale sq=(Scale)obChar.getCharacteristicQuantificationCollection().get(0);\n\t\t\t\t\t\t\t\t\t\t\tvalues.put(obChar.getLabel().getValue().toLowerCase(), formJsonObj(sq.getValue().getValue(),obChar.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t\t\tvalues.put(obChar.getLabel().getValue().toLowerCase(), formJsonObj(obChar.getListTypeCode().get(0).getDisplayName().getValue(),obChar.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//look through physical entities\n\t\t\t\t\tif (ia.getImagingPhysicalEntityCollection()!=null){\n\t\t\t\t\t\tfor (ImagingPhysicalEntity phy: ia.getImagingPhysicalEntityCollection().getImagingPhysicalEntityList()){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (values.containsKey(phy.getLabel().getValue().toLowerCase())) { //key exists put the value\n\t\t\t\t\t\t\t\tvalues.put(phy.getLabel().getValue().toLowerCase(), formJsonObj(phy.getListTypeCode().get(0).getDisplayName().getValue(),phy.getListTypeCode().get(0).getCode()));\n\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//look through questions\n\t\t\t\t\tif (ia.getQuestionCollection()!=null){\n\t\t\t\t\t\tfor (Question q: ia.getQuestionCollection().getListQuestion()){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (values.containsKey(q.getQuestion().toLowerCase())) { //key exists put the value\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tString value=q.getAnswer();\n//\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tvalues.put(q.getQuestion().toLowerCase(), formJsonObj(value));\n\t\t\t\t\t\t\t\t}catch(Exception e) {\n\t\t\t\t\t\t\t\t\tlog.warning(\"The value for \"+q.getQuestion().toLowerCase() + \" couldn't be retrieved \", e);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//look through calculation entities\n\t\t\t\t\tif (ia.getCalculationEntityCollection()!=null){\n\t\t\t\t\t\tfor (CalculationEntity cal: ia.getCalculationEntityCollection().getCalculationEntityList()){\n\t\t\t\t\t\t\t// if it is a very old annotation and the line length is saved as LineLength handle that\n\t\t\t\t\t\t\tif (values.containsKey(cal.getDescription().getValue().toLowerCase()) || (values.containsKey(\"length\")&&cal.getDescription().getValue().toLowerCase().equals(\"linelength\")) ) { //key exists put the value\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tif (cal.getCalculationResultCollection().getCalculationResultList().get(0) instanceof ExtendedCalculationResult){\n\t\t\t\t\t\t\t\t\t\tString value=((ExtendedCalculationResult)cal.getCalculationResultCollection().getCalculationResultList().get(0)).getCalculationDataCollection().get(0).getValue().getValue();\n\t//\t\t\t\t\t\t\t\t\tlog.info(\"value is \"+value + \"|\");\n\t\t\t\t\t\t\t\t\t\tif (value==null || value.trim().equals(\"\")) value=\"0\";\n\t\t\t\t\t\t\t\t\t\t//check the units. if they are mm. convert to cm\n\t\t\t\t\t\t\t\t\t\tString units=((ExtendedCalculationResult)cal.getCalculationResultCollection().getCalculationResultList().get(0)).getUnitOfMeasure().getValue().trim();\n\t\t\t\t\t\t\t\t\t\tif (units.equalsIgnoreCase(\"mm\")){\n\t\t\t\t\t\t\t\t\t\t\tvalue=String.valueOf(Double.parseDouble(value)/10);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif ((values.containsKey(\"length\")&&cal.getDescription().getValue().toLowerCase().equals(\"linelength\")))\n\t\t\t\t\t\t\t\t\t\t\tvalues.put(\"length\", formJsonObj(value,\"RID39123\"));\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tvalues.put(cal.getDescription().getValue().toLowerCase(), formJsonObj(value,cal.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\t\t\t\t\thasCalcs=true;\n\t\t\t\t\t\t\t\t\t}else if(cal.getCalculationResultCollection().getCalculationResultList().get(0) instanceof CompactCalculationResult){\n\t\t\t\t\t\t\t\t\t\tString value=((CompactCalculationResult)cal.getCalculationResultCollection().getCalculationResultList().get(0)).getValue().getValue();\n\t//\t\t\t\t\t\t\t\t\tlog.info(\"value is \"+value + \"|\");\n\t\t\t\t\t\t\t\t\t\tif (value==null || value.trim().equals(\"\")) value=\"0\";\n\t\t\t\t\t\t\t\t\t\t//check the units. if they are mm. convert to cm\n\t\t\t\t\t\t\t\t\t\tString units=((CompactCalculationResult)cal.getCalculationResultCollection().getCalculationResultList().get(0)).getUnitOfMeasure().getValue().trim();\n\t\t\t\t\t\t\t\t\t\tif (units.equalsIgnoreCase(\"mm\")){\n\t\t\t\t\t\t\t\t\t\t\tvalue=String.valueOf(Double.parseDouble(value)/10);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif ((values.containsKey(\"length\")&&cal.getDescription().getValue().toLowerCase().equals(\"linelength\")))\n\t\t\t\t\t\t\t\t\t\t\tvalues.put(\"length\", formJsonObj(value,\"RID39123\"));\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tvalues.put(cal.getDescription().getValue().toLowerCase(), formJsonObj(value,cal.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\t\t\t\t\thasCalcs=true;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}catch(Exception e) {\n\t\t\t\t\t\t\t\t\tlog.warning(\"The value for \"+cal.getDescription().getValue() + \" couldn't be retrieved \", e);\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 (values.containsKey(\"allcalc\") ) { //if it is allcalc put all calculations in a nested json\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tif (cal.getCalculationResultCollection().getCalculationResultList().get(0) instanceof ExtendedCalculationResult){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tString value=((ExtendedCalculationResult)cal.getCalculationResultCollection().getCalculationResultList().get(0)).getCalculationDataCollection().get(0).getValue().getValue();\n\t//\t\t\t\t\t\t\t\t\tlog.info(\"value is \"+value + \"|\");\n\t\t\t\t\t\t\t\t\t\tif (value==null || value.trim().equals(\"\")) value=\"0\";\n\t\t\t\t\t\t\t\t\t\t//check the units. if they are mm. convert to cm\n\t\t\t\t\t\t\t\t\t\tString units=((ExtendedCalculationResult)cal.getCalculationResultCollection().getCalculationResultList().get(0)).getUnitOfMeasure().getValue().trim();\n\t\t\t\t\t\t\t\t\t\tif (units.equalsIgnoreCase(\"mm\")){\n\t\t\t\t\t\t\t\t\t\t\tvalue=String.valueOf(Double.parseDouble(value)/10);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (cal.getDescription().getValue().toLowerCase().equals(\"linelength\"))\n\t\t\t\t\t\t\t\t\t\t\tallCalcValues.put(\"length\", formJsonObj(value,\"RID39123\"));\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t//if the label and description are different. it can be shortaxis long axis\n\t\t\t\t\t\t\t\t\t\t\t//get the appropriate according to the organ if present\n\t\t\t\t\t\t\t\t\t\t\t//use longaxis if not\n\t\t\t\t\t\t\t\t\t\t\tString label=cal.getCalculationResultCollection().get(0).getDimensionCollection().get(0).getLabel().getValue().toLowerCase();\n\t\t\t\t\t\t\t\t\t\t\tif (!cal.getDescription().getValue().toLowerCase().equals(label)){\n\t\t\t\t\t\t\t\t\t\t\t\tif (label.startsWith(\"shortaxis\") && values.containsKey(\"location\")){//if it is shortaxis and the location is present, location should be lymph node, ignore if it isn't \n\t\t\t\t\t\t\t\t\t\t\t\t\tif (new JSONObject(values.get(\"location\")).getString(\"value\").equalsIgnoreCase(\"lymph node\") ){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tallCalcValues.put(cal.getDescription().getValue().toLowerCase(), formJsonObj(value,cal.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\t\t\tallCalcValues.put(cal.getDescription().getValue().toLowerCase(), formJsonObj(value,cal.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\t\tallCalcValues.put(cal.getDescription().getValue().toLowerCase(), formJsonObj(value,cal.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\thasCalcs=true;\n\t\t\t\t\t\t\t\t\t}else if(cal.getCalculationResultCollection().getCalculationResultList().get(0) instanceof CompactCalculationResult){\n\t\t\t\t\t\t\t\t\t\tString value=((CompactCalculationResult)cal.getCalculationResultCollection().getCalculationResultList().get(0)).getValue().getValue();\n\t//\t\t\t\t\t\t\t\t\tlog.info(\"value is \"+value + \"|\");\n\t\t\t\t\t\t\t\t\t\tif (value==null || value.trim().equals(\"\")) value=\"0\";\n\t\t\t\t\t\t\t\t\t\t//check the units. if they are mm. convert to cm\n\t\t\t\t\t\t\t\t\t\tString units=((CompactCalculationResult)cal.getCalculationResultCollection().getCalculationResultList().get(0)).getUnitOfMeasure().getValue().trim();\n\t\t\t\t\t\t\t\t\t\tif (units.equalsIgnoreCase(\"mm\")){\n\t\t\t\t\t\t\t\t\t\t\tvalue=String.valueOf(Double.parseDouble(value)/10);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif (cal.getDescription().getValue().toLowerCase().equals(\"linelength\"))\n\t\t\t\t\t\t\t\t\t\t\tallCalcValues.put(\"length\", formJsonObj(value,\"RID39123\"));\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t//if the label and description are different. it can be shortaxis long axis\n\t\t\t\t\t\t\t\t\t\t\t//get the appropriate according to the organ if present\n\t\t\t\t\t\t\t\t\t\t\t//use longaxis if not\n\t\t\t\t\t\t\t\t\t\t\tString label=cal.getCalculationResultCollection().get(0).getDimensionCollection().get(0).getLabel().getValue().toLowerCase();\n\t\t\t\t\t\t\t\t\t\t\tif (!cal.getDescription().getValue().toLowerCase().equals(label)){\n\t\t\t\t\t\t\t\t\t\t\t\tif (label.startsWith(\"shortaxis\") && values.containsKey(\"location\")){//if it is shortaxis and the location is present, location should be lymph node, ignore if it isn't \n\t\t\t\t\t\t\t\t\t\t\t\t\tif (new JSONObject(values.get(\"location\")).getString(\"value\").equalsIgnoreCase(\"lymph node\") ){\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tallCalcValues.put(cal.getDescription().getValue().toLowerCase(), formJsonObj(value,cal.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\t\t\tallCalcValues.put(cal.getDescription().getValue().toLowerCase(), formJsonObj(value,cal.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\t\tallCalcValues.put(cal.getDescription().getValue().toLowerCase(), formJsonObj(value,cal.getListTypeCode().get(0).getCode()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\thasCalcs=true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}catch(Exception e) {\n\t\t\t\t\t\t\t\t\tlog.warning(\"The value for \"+cal.getDescription().getValue() + \" couldn't be retrieved \", e);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tString[] strValues=new String[columns.length];\n\t\t\t\tfor (int i=0;i<columns.length;i++) {\n\t\t\t\t\t//length is mandatory put 0 if it is not in the aim\n\t\t\t\t\tif ( values.get(columns[i]).equals(\"\") ){\n\t\t\t\t\t\tif (columns[i].equals(\"length\")) {\n\t\t\t\t\t\t\tlog.info(\"putting non-existent length\");\n\t\t\t\t\t\t\tvalues.put(columns[i], formJsonObj(\"0\",\"RID39123\"));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tvalues.put(columns[i], formJsonObj(\"\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (columns[i].equalsIgnoreCase(\"allcalc\") && values.containsKey(\"allcalc\") ) { //if it is allcalc put all calculations in a nested json\n\t\t\t\t\t\tif (allCalcValues.size()==0){\n\t\t\t\t\t\t\tstrValues[i]=\"\\\"allcalc\\\":{}\";\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tStringBuilder nestedCols=new StringBuilder(\"{\");\n\t\t\t\t\t\t\tfor (Map.Entry<String, String> entry : allCalcValues.entrySet())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnestedCols.append(\"\\\"\"+entry.getKey() +\"\\\":\"+entry.getValue()+\",\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tnestedCols.replace(nestedCols.length()-1, nestedCols.length(), \"\");\n\t\t\t\t\t\t\tnestedCols.append(\"}\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tstrValues[i]=\"\\\"allcalc\\\":\"+nestedCols.toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tstrValues[i]=\"\\\"\"+columns[i]+\"\\\":\"+values.get(columns[i]);\n\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\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (hasCalcs) //this makes it not return anything if length or longaxis not send\n\t\t\t\t\ttable[row++]=strValues;\n\t\t\t\telse //ignore if doesn't have any calcs\n\t\t\t\t\ttable[row++]=null;\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (AimException e) {\n\t\t\t\tlog.info(\"Aim exception getting the aim from string \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<String> rows=new ArrayList<>();\n\t\t\n\t\tfor (int i=0;i<table.length;i++){\n\t\t\tStringBuilder rowStr=new StringBuilder();\n\t\t\tif (table[i]==null) \n\t\t\t\tcontinue;\n\t\t\trowStr.append(\"{\");\n\t\t\tfor (int j = 0; j < table[i].length; j++) {\n\t\t\t\trowStr.append(table[i][j]);\n\t\t\t\tif (j<table[i].length-1)\n\t\t\t\t\trowStr.append(\",\");\n\t\t\t}\n\t\t\trowStr.append(\"}\");\n\t\t\trows.add(rowStr.toString());\n\t\t\t\n\t\t}\n\t\t\n\t\tStringBuilder tableJson=new StringBuilder();\n\t\ttableJson.append(\"[\");\n\t\tfor (int i=0;i<rows.size();i++){\n\t\t\ttableJson.append(rows.get(i));\n\t\t\tif (i<rows.size()-1 )\n\t\t\t\ttableJson.append(\",\");\n\t\t}\n\t\ttableJson.append(\"]\");\n//\t\tlog.info(\"The produced string is \"+tableJson.toString());\n\t\treturn tableJson.toString();\n\t}", "title": "" }, { "docid": "dad6c25658a0d7a543373431b5e85215", "score": "0.44989893", "text": "@Test\n\tvoid test27() throws Exception {\n\t\tReader r = new StringReader(\n\t\t\t\"float ANN_123$=sin(5);\\n\" + \n\t \t \"float sin= cos(52)\\n\" +\n \t \"float log1 =log(14)\\n\" +\n\t\t\t\"float atany = atan(0)\\n\" +\n\t \"int a = abs(-5);\\n\" +\n\t\t \"while (a >= 0) a = a - 1;\\n\" +\n\t\t \"a = a | 5;\\n\" +\n\t\t \"a = a & 1;\\n\" +\n\t \"a = a > 0 : a : 0;\");\n\t\t\n\t\tScanner s = new Scanner(r);\n\t\tToken t;\n\t\t\n\t\tshow(t = s.getNext()); \n\t\twhile (t.kind != EOF) {\n\t\t\tshow(t = s.getNext());\n\t\t}\n\t}", "title": "" }, { "docid": "d50bc119702d9cfa759dcd8d3d2c0924", "score": "0.4494116", "text": "public static void decode() {\n LinkedList<Character> vals = new LinkedList<Character>();\n for (int i = 0; i < R; i++) {\n vals.add((char) i);\n }\n\n while (!BinaryStdIn.isEmpty()) {\n char aChar = BinaryStdIn.readChar();\n char key = vals.get(aChar);\n BinaryStdOut.write(key);\n vals.remove(aChar);\n vals.addFirst(key);\n }\n BinaryStdOut.close();\n }", "title": "" }, { "docid": "fe556009c1084daa69659759ca562a8d", "score": "0.44936234", "text": "public String compileTableToString()\n\t{\n\n\t\tCell cell = (Cell) cbsim.getCell();\n\t\tArrayList<Cistrome> cistromeList = cell.getCistromeList();\n\t\t\n\t\tStringBuilder output = new StringBuilder();\n\t\tStringBuilder key = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\tkey.append(colStep.getTitle() + \" \");\n\t\t\n\t\t// First of all we want to create the table headers\n\t\tfor (int c = 0; c < cistromeList.size(); c++)\n\t\t{\t\t\t\t\t\t\t\n\t\t\tkey.append(colsActiveRed.get(c).getTitle() + \" \");\t\t\t\t\t\t\n\t\t\tkey.append(colsActiveWhite.get(c).getTitle() + \" \");\t\t\t\t\t\t\n\t\t\tkey.append(colsCumulativeRed.get(c).getTitle() + \" \");\t\t\t\t\t\n\t\t\tkey.append(colsCumulativeWhite.get(c).getTitle() + \" \");\n\t\t\tkey.append(colsSharedRed.get(c).getTitle() + \" \");\n\t\t\tkey.append(colsCumulativeSharedRed.get(c).getTitle() + \" \");\n\t\t}\n\t\t\n\t\t\ttableKey = key.toString();\t\t\n\t\t\t\n\t\t\toutput.append(\"#\" + tableKey + \"\\n\");\t\t\t\n\t\t\t\n\t\t\t// Now we need to create iterators for each data column\n\t\t\tIterator<Long> stepIter = colStep.getIterator();\n\t\t\t\n\t\t\tArrayList<Iterator<Integer>> activeRedIters = new ArrayList<Iterator<Integer>>();\n\t\t\tArrayList<Iterator<Integer>> activeWhiteIters = new ArrayList<Iterator<Integer>>();\n\t\t\tArrayList<Iterator<Integer>> cumulativeRedIters = new ArrayList<Iterator<Integer>>();\n\t\t\tArrayList<Iterator<Integer>> cumulativeWhiteIters = new ArrayList<Iterator<Integer>>();\n\t\t\tArrayList<Iterator<Integer>> sharedRedIters = new ArrayList<Iterator<Integer>>();\n\t\t\tArrayList<Iterator<Integer>> cumulativeSharedRedIters = new ArrayList<Iterator<Integer>>();\n\t\t\t\n\t\t\tfor (int c = 0; c < cistromeList.size(); c++)\n\t\t\t{\t\n\t\t\t\t\t\n\t\t\t\tactiveRedIters.add(colsActiveRed.get(c).getIterator());\t\t\t\t\t\t\t\t\n\t\t\t\tactiveWhiteIters.add(colsActiveWhite.get(c).getIterator());\t\t\t\t\t\t\t\n\t\t\t\tcumulativeRedIters.add(colsCumulativeRed.get(c).getIterator());\t\t\t\t\t\t\n\t\t\t\tcumulativeWhiteIters.add(colsCumulativeWhite.get(c).getIterator());\t\n\t\t\t\tsharedRedIters.add(colsSharedRed.get(c).getIterator());\n\t\t\t\tcumulativeSharedRedIters.add(colsCumulativeSharedRed.get(c).getIterator());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\twhile(stepIter.hasNext())\n\t\t\t{\n\t\t\t\t\n\t\t\t\toutput.append(stepIter.next()); \t\t\t\t\t\t\t\n\t\t\t\toutput.append(\" \");\n\t\t\t\t\n\t\t\t\tfor (int c = 0; c < cistromeList.size(); c++)\n\t\t\t\t{\t\n\t\t\t\t\t\n\t\t\t\t\toutput.append(activeRedIters.get(c).next());\t\t\t\t\t\t\n\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\toutput.append(activeWhiteIters.get(c).next());\t\t\t\t\t\t\n\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\toutput.append(cumulativeRedIters.get(c).next());\t\t\t\t\t\n\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\toutput.append(cumulativeWhiteIters.get(c).next());\t\t\t\t\t\n\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\toutput.append(sharedRedIters.get(c).next());\t\t\t\t\t\t\n\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\toutput.append(cumulativeSharedRedIters.get(c).next());\t\t\t\t\t\n\t\t\t\t\toutput.append(\" \");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\toutput.append(\"\\n\");\n\t\t\t}\t\n\n\t\treturn output.toString();\n\t\t\n\t}", "title": "" }, { "docid": "6d6df65d3c1603dd85984756f63595c3", "score": "0.4482311", "text": "private void loadProgram()\n\t{\n\t\ttableModel.setRowCount(0);\n\t\tint nLines = rm.getnLines();\n\t\tfor(int i=0;i<nLines;i++)\n\t\t{\n\t\t\tObject[] temp = new Object[6];\n\t\t\ttemp[0] = \"\"+i;\n\t\t\ttemp[1] = Integer.toString(rm.getInstruction(i));\n\t\t\tif(rm.getInstruction(i)==2)\n\t\t\t{\n\t\t\t\ttemp[2] = \"0\";\n\t\t\t\ttemp[3] = \"0\";\n\t\t\t\ttemp[4] = \"0\";\t\n\t\t\t}else\n\t\t\t{\n\t\t\t\ttemp[2] = Integer.toString(rm.getReg(i));\n\t\t\t\ttemp[3] = Integer.toString(rm.getNextIns(i));\n\t\t\t\tif(rm.getInstruction(i)==1)\n\t\t\t\t{\n\t\t\t\t\ttemp[4] = Integer.toString(rm.getBranch(i));\t\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\ttemp[4] = \"0\";\t\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemp[5] = rm.getComment(i).trim();\n\t\t\ttableModel.addRow(temp);\n\t\t}\t\n\t}", "title": "" }, { "docid": "42841278b6b1ea19f451a156d77d6554", "score": "0.44821435", "text": "@Test(timeout = 4000)\n public void test081() throws Throwable {\n StringReader stringReader0 = new StringReader(\"{95\\u0002jq3d!$V5@\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 52, 52, 85);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(52, javaCharStream0.getBeginColumn());\n assertEquals(\"{\", token0.toString());\n }", "title": "" }, { "docid": "10f0b28957626e2e209c157f9e258aeb", "score": "0.44817856", "text": "@Override\n protected char next() {\n super.next();\n\n if (isOneOf('\\n', '\\r', '\\f')) {\n column = 0;\n } else if (is('\\t')) {\n column = tabulate(column);\n } else {\n column++;\n }\n\n return get();\n }", "title": "" }, { "docid": "398d2909dc0413a37e3eabec52f7a7ca", "score": "0.4479648", "text": "abstract public ByteCode parse(String[] s);", "title": "" }, { "docid": "86368fe6615cb811853a8e7649e8584e", "score": "0.4479291", "text": "protected void transform(Code.Unit code, AttributedCodeBlock block,\n\t\t\tVcBranch branch) {\n\t\ttry {\n\t\t\tif (code instanceof Codes.LengthOf) {\n\t\t\t\ttransformUnary(Expr.Unary.Op.LENGTHOF, (Codes.LengthOf) code,\n\t\t\t\t\t\tbranch, block);\n\t\t\t} else if (code instanceof Codes.BinaryOperator) {\n\t\t\t\tCodes.BinaryOperator bc = (Codes.BinaryOperator) code;\n\t\t\t\ttransformBinary(binaryOperatorMap[bc.kind.ordinal()], bc,\n\t\t\t\t\t\tbranch, block);\n\t\t\t} else if (code instanceof Codes.ListGenerator) {\n\t\t\t\ttransform((Codes.ListGenerator) code, block, branch);\n\t\t\t} else if (code instanceof Codes.NewList) {\n\t\t\t\ttransformNary(Expr.Nary.Op.ARRAY, (Codes.NewList) code, branch,\n\t\t\t\t\t\tblock);\n\t\t\t} else if (code instanceof Codes.NewRecord) {\n\t\t\t\ttransformNary(Expr.Nary.Op.TUPLE, (Codes.NewRecord) code,\n\t\t\t\t\t\tbranch, block);\n\t\t\t} else if (code instanceof Codes.NewTuple) {\n\t\t\t\ttransformNary(Expr.Nary.Op.TUPLE, (Codes.NewTuple) code,\n\t\t\t\t\t\tbranch, block);\n\t\t\t} else if (code instanceof Codes.Convert) {\n\t\t\t\ttransform((Codes.Convert) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Const) {\n\t\t\t\ttransform((Codes.Const) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Debug) {\n\t\t\t\t// skip\n\t\t\t} else if (code instanceof Codes.FieldLoad) {\n\t\t\t\ttransform((Codes.FieldLoad) code, block, branch);\n\t\t\t} else if (code instanceof Codes.IndirectInvoke) {\n\t\t\t\ttransform((Codes.IndirectInvoke) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Invoke) {\n\t\t\t\ttransform((Codes.Invoke) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Invert) {\n\t\t\t\ttransform((Codes.Invert) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Label) {\n\t\t\t\t// skip\n\t\t\t} else if (code instanceof Codes.IndexOf) {\n\t\t\t\ttransform((Codes.IndexOf) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Move) {\n\t\t\t\ttransform((Codes.Move) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Assign) {\n\t\t\t\ttransform((Codes.Assign) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Update) {\n\t\t\t\ttransform((Codes.Update) code, block, branch);\n\t\t\t} else if (code instanceof Codes.UnaryOperator) {\n\t\t\t\ttransform((Codes.UnaryOperator) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Dereference) {\n\t\t\t\ttransform((Codes.Dereference) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Nop) {\n\t\t\t\t// skip\n\t\t\t} else if (code instanceof Codes.NewObject) {\n\t\t\t\ttransform((Codes.NewObject) code, block, branch);\n\t\t\t} else if (code instanceof Codes.TupleLoad) {\n\t\t\t\ttransform((Codes.TupleLoad) code, block, branch);\n\t\t\t} else if (code instanceof Codes.Lambda) {\n\t\t\t\ttransform((Codes.Lambda) code, block, branch);\n\t\t\t} else {\n\t\t\t\tinternalFailure(\"unknown: \" + code.getClass().getName(),\n\t\t\t\t\t\tfilename, block.attributes(branch.pc()));\n\t\t\t}\n\t\t} catch (InternalFailure e) {\n\t\t\tthrow e;\n\t\t} catch (SyntaxError e) {\n\t\t\tthrow e;\n\t\t} catch (Throwable e) {\n\t\t\tinternalFailure(e.getMessage(), filename, e,\n\t\t\t\t\tblock.attributes(branch.pc()));\n\t\t}\n\t}", "title": "" }, { "docid": "a4f837d0ad8b1c182ced51db489ef573", "score": "0.44764775", "text": "@Test(timeout = 4000)\n public void test141() throws Throwable {\n StringReader stringReader0 = new StringReader(\"tFmC1(lGm[1E8\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 72, 1697);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.bufpos);\n assertEquals(1705, javaCharStream0.getColumn());\n }", "title": "" }, { "docid": "7cc58437f5bf703695c661d783eedc59", "score": "0.44710112", "text": "private void procTA(){\n procTC(); //Ta -> Tc\n //extra readNT done in procTC()\n while(isCurrentToken(TokenType.RESERVED, \"aug\")){ //Ta -> Ta 'aug' Tc => 'aug'\n readNT();\n procTC(); //extra readNT done in procTC()\n buildNAryASTNode(ASTNodeType.AUG, 2);\n }\n }", "title": "" }, { "docid": "42097f2284ec61ff249e476e43467e71", "score": "0.4465159", "text": "private void nextCodeUnit() {\n // Index of next character in buffer.\n int index = position + width;\n\n // If past end of buffer.\n if (length <= index) {\n // End of file is marked with EOI.\n character = EOI;\n } else {\n // Next character in buffer.\n character = buffer[index];\n // Increment length of codepoint.\n width++;\n }\n }", "title": "" } ]
193ca63076e2c8cfce8c7b75f45d4e94
Wait until element to be clickable.
[ { "docid": "6580d30783f79f3c22d2b56fce4e942e", "score": "0.6767844", "text": "public void explicitlyWaitForElementToBeClickable(int seconds, String xPath) {\n\t\tnew WebDriverWait(driver, seconds).until(ExpectedConditions.elementToBeClickable(inspectElement(xPath)));\n\t}", "title": "" } ]
[ { "docid": "10db1b7d17cabd407cf57330e37d7474", "score": "0.7936264", "text": "public static void waitForClickability(WebElement element) {\n getWait().until(ExpectedConditions.elementToBeClickable(element));\n }", "title": "" }, { "docid": "ca32bee9035c16eb6df186f9dca08667", "score": "0.7892543", "text": "protected WebElement waitUntilElementIsClickable(final WebElement element)\n\t{\n\t\tfinal String message = String.format(\"FAIL : Element with these details is NULL : '%s'\", element);\n\t\tassertCheckIfNotNull(message, element);\n\t\treturn itsWait.until(ExpectedConditions.elementToBeClickable(element));\n\t}", "title": "" }, { "docid": "53eb04add32cdb0be3eb3bc7a51bea02", "score": "0.7815189", "text": "public void waitForElementToBeClickable(By elem) {\n\t\twait.until(ExpectedConditions.elementToBeClickable(elem));\n\t}", "title": "" }, { "docid": "f56d777414e54afea2ac2a32245c953d", "score": "0.761933", "text": "public void waitElementToBeClickable(WebElement element) {\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, 60);\n\t\t\twait.until(ExpectedConditions.elementToBeClickable(element));\n\t\t} catch (NoSuchElementException e) {\n\t\t\tfail(\"Element is not present\");\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Wait for the element is not working\");\n\t\t}\n\t}", "title": "" }, { "docid": "1efca2dd089112b99ebb1433758eb4c5", "score": "0.75498873", "text": "public void waitUntilClickableLocator(){\n wait.until(ExpectedConditions.elementToBeClickable(By.id(\"locator\")));\n }", "title": "" }, { "docid": "ab2ebf72fd9a38ab6b5b724b591adffc", "score": "0.7521771", "text": "public void waitForElementClickable(By locator) {\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, 5);\n\t\t\twait.until(ExpectedConditions.elementToBeClickable(locator));\n\n\t\t} catch (TimeoutException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "843d6438c73b6bb330afe69f89b7305d", "score": "0.73290074", "text": "@Override\n\tpublic void waitForElementToBeClickable(By locator) {\n\t\ttry {\n\t\t\twait.until(ExpectedConditions.elementToBeClickable(locator));\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Some exception error while clicking the element \"+locator.toString());\n\t\t\t//log.error(\"Some exception error while clicking the element \"+locator.toString());\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "b63af4401c54e180ed78da120ddfc15a", "score": "0.730706", "text": "public void waitForElementToBeClickable(By elementLocation) {\n new WaitForHelper(driver).elementToBeClickable(elementLocation);\n }", "title": "" }, { "docid": "b4633e0bcaeb76f09e2f47ba69701533", "score": "0.7273217", "text": "@Override\n public void click() {\n new WebDriverWait(getDriver(), 5)\n .withMessage(\"Element \" + toString() + \"is not clickable after\")\n .until(driver -> {\n try {\n wrappedElement.click();\n return true;\n } catch (WebDriverException e) {\n if (e.getMessage().contains(\"not clickable\")) {\n return false;\n }\n throw e;\n }\n });\n }", "title": "" }, { "docid": "d81cad979caa852c19016494384cc26a", "score": "0.7258999", "text": "public static WebElement waitForClickability(WebDriver driver, WebElement element){\n waitUntilElementIsDisplayed(element);\n element = new WebDriverWait(driver,Constants.MEDIUM_TIMEOUT).until(ExpectedConditions.elementToBeClickable(element));\n return element;\n }", "title": "" }, { "docid": "fe7484977160de83a438107522dec24f", "score": "0.7248005", "text": "public void clickAndWait() {\n click();\n getBrowser().waitForPageToLoad();\n }", "title": "" }, { "docid": "76430024961960238f91c7f5b371e43b", "score": "0.7169614", "text": "public void waitUntilElementToBeSelected(){\n wait.until(ExpectedConditions.elementToBeSelected(webElement));\n }", "title": "" }, { "docid": "6a431478ce0f93138053e77bba941e9e", "score": "0.7146623", "text": "private void waitFor(WebElement element){\n\t\t\n\t\twait = new WebDriverWait(driver, 15);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}", "title": "" }, { "docid": "d5e4178360c12ffd069da3aede418c80", "score": "0.7019025", "text": "public void checkElementClickable(By locator) {\r\n\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\r\n\t\tWebElement element = wait.until(ExpectedConditions.elementToBeClickable(locator));\r\n\t}", "title": "" }, { "docid": "8be5547bde325701febdc23e1b8effe1", "score": "0.7002817", "text": "public void waitUntilHomeLinkIsClickable(){\n new WebDriverWait(Driver.get(),10).until(ExpectedConditions.elementToBeClickable(homeLink));\n }", "title": "" }, { "docid": "68a4871a80a00bed141b86b46c10a0a9", "score": "0.699189", "text": "public static WebElement waitForClickability(WebElement element, int timeout){\n waitUntilElementIsDisplayed(element);\n element = new WebDriverWait(driver,timeout).until(ExpectedConditions.elementToBeClickable(element));\n return element;\n }", "title": "" }, { "docid": "2b93f7039baf6499759cae5a9cc559bc", "score": "0.6904873", "text": "public void waitAndClick(WebDriver driver, WebElement element) throws InterruptedException {\r\n\t\tint count = 0;\r\n\t\twhile (count<20) {\r\n\t\t\ttry {\r\n\t\t\t\telement.click();\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (Throwable e) {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "be019d95d8dbdaa84c7f11384ae7aace", "score": "0.68998116", "text": "public boolean verifyElementIsClickable(WebElement element, WebDriver ldriver)\n\t {\n\t //wait till element is clickable and displayed\n\t try {\n\t WebElement elementToBeClickable = new WebDriverWait(ldriver, 3)\n\t .until(ExpectedConditions.elementToBeClickable(element));\n\t return true;\n\t }\n\t catch (Exception ex)\n\t {\n\t return false;\n\t }\n\t }", "title": "" }, { "docid": "e55751cc4c2e9f089e171ed229aa97e7", "score": "0.6894283", "text": "public static WebElement waitForClickablility(WebElement element, int timeout) {\n WebDriverWait wait = new WebDriverWait(Driver.get(), timeout);\n return wait.until(ExpectedConditions.elementToBeClickable(element));\n }", "title": "" }, { "docid": "34da342f63296e975dde0ddbbab03da3", "score": "0.68916076", "text": "public void click () {\n\n WebDriverWait clickWait = new WebDriverWait(this.driver, this.clickWait);\n clickWait.until(ExpectedConditions.elementToBeClickable(this.getElement()));\n try {\n this.element.click();\n }\n catch (Exception ex) {\n if (ex.getMessage().contains(\"is not clickable at point\")) {\n Actions actions = new Actions(this.driver);\n actions.moveToElement(this.element).click().perform();\n return;\n }\n throw ex;\n }\n }", "title": "" }, { "docid": "755d1ae6116a3aea68e4ca9efa82c1ed", "score": "0.6884651", "text": "public void waitForClientSideBreakdownTilteToBeClickable() {\n\t\tbot.waitForElementToBeClickable(clientSideBreakdownTitle);\n\t}", "title": "" }, { "docid": "57c23f61dcd77d691a69e03864b87864", "score": "0.6860702", "text": "public static WebElement waitForClickablility(WebElement element, int timeout) {\n WebDriverWait wait = new WebDriverWait(getDriver(), timeout);\n return wait.until(ExpectedConditions.elementToBeClickable(element));\n }", "title": "" }, { "docid": "a65c06d0e17216e22569b144cadbeb08", "score": "0.6780738", "text": "public void waitForElementToClick(By elementBy) {\n\t\twait.until(ExpectedConditions.elementToBeClickable(elementBy));\n\t\thighLightElement(elementBy);\n\t}", "title": "" }, { "docid": "27efd4835dc785080fb2ccc354910e2e", "score": "0.6762978", "text": "private void waitForElement(WebDriver driver, By by) {\n \tWebDriverWait wait = new WebDriverWait(driver, LONG_PERIOD);\n wait.until(ExpectedConditions.visibilityOfElementLocated(by));\n }", "title": "" }, { "docid": "ee74e47501700c261dbf461f40d3ffd5", "score": "0.6759432", "text": "public void waitForElementPresent(By locator) {\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, 5);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\n\t\t} catch (TimeoutException e) {\n\t\t\ttakeScreenshot(\"Not able to click element <\" + locator + \">\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "c5384d5ad85e3668dc5a50c6edc18dca", "score": "0.67546713", "text": "public void waitUntilApproveLinkIsDisplayed()\n\t{\n\t\twait.until(ExpectedConditions.visibilityOf(linkApprove));\n\t}", "title": "" }, { "docid": "100c0ebebe4dc3d2a580108ee013a82f", "score": "0.67520255", "text": "public void WaitForElementClickable(WebElement element, int timeOutInSeconds) {\n\t\tlog.info(\"waiting for :\" + element.toString() + \" for :\" + timeOutInSeconds + \" seconds\");\n\t\tWebDriverWait wait = new WebDriverWait(driver, timeOutInSeconds);\n\t\twait.until(ExpectedConditions.elementToBeClickable(element));\n\t\tlog.info(\"element is clickable now\");\n\t}", "title": "" }, { "docid": "d975f27168d2da07b5cab624212ff916", "score": "0.6740344", "text": "private void waitForElementToBePresent(By by) {\n\t\twaitFor(ExpectedConditions.presenceOfElementLocated(by));\n\t\twaitFor(ExpectedConditions.visibilityOfElementLocated(by));\n\t\twaitFor(ExpectedConditions.elementToBeClickable(by));\n\n\t}", "title": "" }, { "docid": "bdc91322d46218b305b2e65c579225bc", "score": "0.6696096", "text": "public static WebElement waitForClickablility(By locator, int timeout) {\n WebDriverWait wait = new WebDriverWait(Driver.get(), timeout);\n return wait.until(ExpectedConditions.elementToBeClickable(locator));\n }", "title": "" }, { "docid": "d6353f59e3fbacb30ce175bc1dd32983", "score": "0.66731155", "text": "public void waitUntilOfVisibility(){\n wait.until(ExpectedConditions.visibilityOf(webElement));\n }", "title": "" }, { "docid": "4486d3bd95ad3710123e8e3904ab1117", "score": "0.6653296", "text": "public void waitUntilInvisibilityOFElement(){\n wait.until(ExpectedConditions.invisibilityOf(webElement));\n }", "title": "" }, { "docid": "2829127155b9a0c1f46c78b902793d82", "score": "0.6642628", "text": "public void waitForVisibility () {\n try {\n WebDriverWait wait = new WebDriverWait(this.driver, this.elementWait);\n this.element = wait.until(ExpectedConditions.visibilityOfElementLocated(By.all(type, id)));\n }\n catch (NullPointerException | NoSuchElementException ex){\n throw new AssertionError(\"Element not visible within the given timeout\");\n }\n }", "title": "" }, { "docid": "5a8021e6d5360544162c2de0bceae29a", "score": "0.66002077", "text": "private void clickIt(WebDriverWait wait, WebElement clickable) {\r\n\t\twait.until(ExpectedConditions.elementToBeClickable(clickable));\r\n\t\tclickable.sendKeys(Keys.ENTER);\r\n\t\twait.until(ExpectedConditions.stalenessOf(clickable));\r\n\t}", "title": "" }, { "docid": "789c87950b26d21c67edd1ef21d31860", "score": "0.6593733", "text": "public void waitForWebElement(WebElement webElement, int timeout, WebDriver driver) {\n\n Wait<WebDriver> wait = new WebDriverWait(driver, timeout);\n wait.until(ExpectedConditions.visibilityOf(webElement));\n\n }", "title": "" }, { "docid": "8e97de2655c8bc3ca58f6555a69b2126", "score": "0.6568259", "text": "public void waitForElementVisibility(WebDriver driver , WebElement element)\n\t{\n\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\n\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t}", "title": "" }, { "docid": "b4b345e6866b420260b459d8e8e18275", "score": "0.65555656", "text": "public static boolean waitUntilElementIsDisplayed(WebElement element){\n int counter = 0;\n boolean result = false;\n\n while(counter <= 2){\n try{\n if(element.isDisplayed()){\n result = true;\n break;\n }\n }catch(NoSuchElementException | StaleElementReferenceException e){\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e1) {\n e1.printStackTrace();\n }\n }\n\n counter++;\n }\n\n return result;\n }", "title": "" }, { "docid": "f175da4a096411e27f10b9d2798d3f31", "score": "0.65237004", "text": "public void waitForElementVisibility(WebDriver driver, WebElement element) {\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\t\twait.until(ExpectedConditions.visibilityOf(element));\r\n\t}", "title": "" }, { "docid": "2e6ceacbb5f0ec3861bc5296ffc0cd68", "score": "0.651553", "text": "protected WebElement waitUntilElementIsVisible(final WebElement element)\n\t{\n\t\tfinal String message = String.format(\"FAIL : Element with these details is NULL : '%s'\", element);\n\t\tassertCheckIfNotNull(message, element);\n\t\treturn itsWait.until(ExpectedConditions.visibilityOf(element));\n\t}", "title": "" }, { "docid": "2224627758d6626cd587489ff47b0919", "score": "0.64538926", "text": "public void waitForElement(By element){\n Wait<WebDriver> wait = new FluentWait<WebDriver>(driver)\n .withTimeout(Duration.ofSeconds(60))\n .pollingEvery(Duration.ofSeconds(5))\n .ignoring(NoSuchElementException.class);\n\n WebElement foo = wait.until(new Function<WebDriver, WebElement>() {\n @Override\n public WebElement apply(WebDriver webDriver) {\n return driver.findElement(element);\n }\n });\n\n }", "title": "" }, { "docid": "8f35f8e69552270067703a9928b0c15d", "score": "0.63534755", "text": "public static void waitForStaleElement(WebElement element) {\n int y = 0;\n while (y <= 15) {\n try {\n element.isDisplayed();\n break;\n } catch (StaleElementReferenceException st) {\n y++;\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n break;\n }\n }", "title": "" }, { "docid": "8f35f8e69552270067703a9928b0c15d", "score": "0.63534755", "text": "public static void waitForStaleElement(WebElement element) {\n int y = 0;\n while (y <= 15) {\n try {\n element.isDisplayed();\n break;\n } catch (StaleElementReferenceException st) {\n y++;\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n break;\n }\n }", "title": "" }, { "docid": "73d564fe558b1c608bf975ea5c8f0ed5", "score": "0.63072795", "text": "public void waitForElementPresent(WebDriver driver, By by) {\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\r\n\t\twait.until(ExpectedConditions.visibilityOfElementLocated(by));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "044e07a751f2220b98412bbabe493f78", "score": "0.630317", "text": "public void waitForWebPageTestTitleToBeClickable() {\n\t\tbot.waitForElementToBeClickable(webPageTestReportTitle);\n\t}", "title": "" }, { "docid": "61e9ed194e2fc88dbf7a4cffdd753216", "score": "0.6300158", "text": "public void waitForLoad () {\n try {\n WebDriverWait wait = new WebDriverWait(this.driver, this.elementWait);\n this.element = wait.until(ExpectedConditions.presenceOfElementLocated(By.all(type, id)));\n }\n catch (NullPointerException | NoSuchElementException ex){\n throw new AssertionError(\"Element not loaded within the given timeout\");\n }\n }", "title": "" }, { "docid": "50faf04c88f4f8c692fc73cb12f56f97", "score": "0.62981737", "text": "public static void clickWithWait(WebElement webElement) {\n Wait wait = new FluentWait<>(getDriver())\n .withTimeout(Duration.ofSeconds(15))\n .pollingEvery(Duration.ofMillis(800))\n .ignoring(NoSuchElementException.class)\n .ignoring(ElementNotVisibleException.class)\n .ignoring(ElementClickInterceptedException.class)\n .ignoring(StaleElementReferenceException.class)\n .ignoring(WebDriverException.class);\n WebElement element = (WebElement) wait.until((Function<WebDriver, WebElement>) driver -> webElement);\n try {\n element.click();\n } catch (WebDriverException e) {\n System.out.println(e.getMessage());\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "83b4dbd6ea7e8069cf234fc37dcf61f9", "score": "0.6265722", "text": "public void waitForVisible(final WebElement webElement)\n\t{\n\t\titsWait.until(ExpectedConditions.visibilityOf(webElement));\n\t}", "title": "" }, { "docid": "3aad877cd4006ce5a0cc386e1eed9199", "score": "0.6264262", "text": "public void waitUntilElementVisible(By locator){\n wait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n }", "title": "" }, { "docid": "5e8cf4d496e1b6d72220ba3d603ee0c8", "score": "0.6259572", "text": "public void myWait()\n\t{\n\t\tGLabel waitLabel = new GLabel(\"Click to start\");\n\t\twaitLabel.setLocation(getWidth()/2 - waitLabel.getWidth()/2, getHeight()/2 - waitLabel.getHeight()/2);\n\t\twaitLabel.setColor(Color.RED);\n\t\tadd(waitLabel);\n\t\twaitForClick();\n\t\tremove(waitLabel);\n\t}", "title": "" }, { "docid": "b8f86a1790d6035655afe3f9ba57fca5", "score": "0.625045", "text": "public void click() {\r\n getButtonElement().click();\r\n }", "title": "" }, { "docid": "efe06d392f437afd2dc36269e2b9ee85", "score": "0.6247848", "text": "protected void performClick(WebElement element) { element.click(); }", "title": "" }, { "docid": "c863b1045933604006f97c66a3190e3c", "score": "0.6229762", "text": "protected Boolean elementClickable(WebElement eleToCheck) {\n\t\tBoolean flag = false;\n\t\ttry {\n\t\t\twait.until(ExpectedConditions.elementToBeClickable(eleToCheck));\n\t\t\tflag = true;\n\t\t} catch (TimeoutException exp) {\n\t\t\tSystem.out.printf(\"%s is not visible\", exp);\n\t\t}\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "7033d7f0dacd12f870df8bdb7b5f215d", "score": "0.622309", "text": "protected Waits waitForElementToBeClickable(WebDriver driver, WebElement element) {\n WebDriverWait wait =new WebDriverWait(driver,2);\n wait.until(ExpectedConditions.elementToBeClickable(element));\n return this;\n }", "title": "" }, { "docid": "c2c64d1f441b41749ee90f3dcd67b8f3", "score": "0.62230235", "text": "public void waitForWebElementBy(By locator, int timeout, WebDriver driver) {\n\n Wait<WebDriver> wait = new WebDriverWait(driver, timeout);\n wait.until(ExpectedConditions.visibilityOfElementLocated(locator));\n\n }", "title": "" }, { "docid": "2522eb36debf0cc9bb5efd7da09004f6", "score": "0.62214583", "text": "public void clickAndWait(int sec){\r\n\t\t\r\n\t\tif (curWebElement!=null){\r\n\t\t\tLogger.log(\"Clicking on \" +getElementName()+ \"in \"+getPageName()+\" page and waiting for \"+sec +\" seconds\");\r\n\t\t\tcurWebElement.click();\r\n\t\t\ttry {\r\n\t\t\t\tTimer.wait(sec);\r\n\t\t\t} catch (Exception 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}else{\r\n\t\t\tLogger.log(\"Unable to perform actions on \"+getElementName()+ \" in \"+getPageName()+ \" as it is null\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "34b17b0640b5ab4752cb3062b49243b3", "score": "0.6205475", "text": "public void waitForElementToDisplay(By byLocater) {\n\t\tlogger.log(\"Waiting for element to be present...\");\n\t\tWebDriverWait wait = new WebDriverWait(driver, 60);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(byLocater));\n\t\twait.pollingEvery(1, TimeUnit.SECONDS);\n\t\twait.ignoring(NoSuchElementException.class, StaleElementReferenceException.class);\n\t\tlogger.log(\"Found element in DOM...\");\n\t}", "title": "" }, { "docid": "c685f372f1506f900556ad02b7fdd800", "score": "0.6204867", "text": "public void waitForElementToBePresented(By elem) {\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(elem));\n\t}", "title": "" }, { "docid": "bf23b4c77959a34c858391cadb4fe5f4", "score": "0.61872065", "text": "public static void waitforElement()\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tlong Implicit_DeDupe_wait = Long.parseLong(prop.getProperty(\"ImplicitDeDupeScreenWait\"));\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(Implicit_DeDupe_wait, TimeUnit.SECONDS);\n\t\t\t\t\tSystem.out.println(\"Finding the element\");\n\t\t\t\t\tdriver.findElement(By.xpath(\"//div//img[@data-src='googleusercontent.com/-8EHWNrWDChI/AAAAAAAAAAI/AAAAAAAAAAA']\"));;\n\t\t\t\t System.out.println(\"Found the element\");// condition you are certain won't be true\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tlong Implicit_wait = Long.parseLong(prop.getProperty(\"ImplicitWait\"));\n\t\t\t\t\tdriver.manage().timeouts().implicitlyWait(Implicit_wait, TimeUnit.SECONDS);\n\t\t\t\t\tSystem.out.println(\"Element Not Found: \"+e.getMessage());\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}", "title": "" }, { "docid": "ad829fd35cbfd35558147e70a43ddaf7", "score": "0.6186407", "text": "public void click(WebElement element) {\n wait.until(ExpectedConditions.elementToBeClickable(element)).click();\n }", "title": "" }, { "docid": "46e71f0c8f4d107e2bf6def3ec682794", "score": "0.6186077", "text": "protected void waitForElementToExist(By by)\r\n\t{\r\n\t\twaitForElementToExist(by, defaultTimeout);\r\n\t}", "title": "" }, { "docid": "0612f30f5a08a39f5e284861d72ec31f", "score": "0.6174537", "text": "protected void untilElementAppear(By by) {\n wait.until(ExpectedConditions.visibilityOfElementLocated(by));\n }", "title": "" }, { "docid": "0612f30f5a08a39f5e284861d72ec31f", "score": "0.6174537", "text": "protected void untilElementAppear(By by) {\n wait.until(ExpectedConditions.visibilityOfElementLocated(by));\n }", "title": "" }, { "docid": "516082114334fda6f28d8d58fae88a97", "score": "0.6171822", "text": "public void waitForTransBackHomeToBeClickable() {\n\t\tbot.waitForElementToBeClickable(transactionBackHome);\n\t}", "title": "" }, { "docid": "714ad8df142ecc292b3db158dbbc91f0", "score": "0.6161823", "text": "public void selectClickToFillButton() {\n\twaitAndClick(clickToFillButton);\n\t}", "title": "" }, { "docid": "703324a8cb0f5e67042ca5991369005c", "score": "0.6155762", "text": "public void elementClick(WebElement element) {\n\t\ttry {\n\t\t\tif (isElementPresent(element)) {\n\t\t\t\twaitElementToBeClickable(element);\n\t\t\t\telement.click();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tfail(\"The element is not found\");\n\t\t}\n\t}", "title": "" }, { "docid": "3dbc2c4171f9828b48c43950283a5903", "score": "0.6112656", "text": "public void waitForReady() {\n\t\tWebDriverWait waitGetNewGrant = new WebDriverWait(driver, 60);\n\t\twaitGetNewGrant.until(ExpectedConditions.visibilityOfElementLocated(getNewGrantBtn));\n\t}", "title": "" }, { "docid": "5e86a81fcf013fdaf65e6d8000f052bf", "score": "0.6077714", "text": "public void waitLessonDisplay() {\n pageContentList.waitUntilVisible();\r\n }", "title": "" }, { "docid": "c69d53f9823d9058c860a0a975a648e4", "score": "0.6077136", "text": "public void click(int time) {\n \telement.click();\n \ttry {\n\t\t\tThread.sleep(time);\n\t\t} catch (InterruptedException e) {\n\t\t}\n }", "title": "" }, { "docid": "f28404ff9aa6c186288303c6f8ce46c2", "score": "0.6069933", "text": "public void click(final PageElement element);", "title": "" }, { "docid": "dc158ddacfc37e9d5b5478370adbdf0b", "score": "0.60619044", "text": "public void waitUntilAccountTabIsDisplayed()\n\t{\n\t\twait.until(ExpectedConditions.visibilityOf(linkContractAssessmentName));\n\t}", "title": "" }, { "docid": "fbe42aa2200e6fe78f0a6f7acc5738a6", "score": "0.6059132", "text": "public void waitForTextBeVisible(WebElement element) throws Exception{\n\tString text=element.getText();\r\n\r\n//new WebDriverWait(driver,30).until(ExpectedConditions.textToBePresentInElement(element,text));\r\n\r\nnew FluentWait<WebElement>(element).\r\nwithTimeout(40, TimeUnit.SECONDS).\r\npollingEvery(100,TimeUnit.MILLISECONDS).\r\nuntil(new Function<WebElement , Boolean>() {\r\n @Override\r\n public Boolean apply(WebElement element) {\r\n return element.getText().contains(\"SUCCESSFULL\");\r\n }\r\n}\r\n);\r\n}", "title": "" }, { "docid": "6c39d09d90ad5f5f35a4d0fd5944c645", "score": "0.60564303", "text": "public void waitForElementPresent(WebDriver driver, WebElement expWb) {\r\n\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\r\n\t\twait.until(ExpectedConditions.visibilityOf(expWb));\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3e7d67b6e9e14b1b2c9bdc29720f3694", "score": "0.6035376", "text": "@Step(\"Wait of tab 'Antennas'\")\n public void tabAntennasWait(){\n assert SingletonWaitingItem.waitElementVisibly(tabAntennas);\n }", "title": "" }, { "docid": "be7277c87cedb63fb0c9ce6ef15b3a6a", "score": "0.60349405", "text": "public void check() {\n WebElement element = this.find();\n if (!element.isSelected()) {\n new ClickAction(this).execute();\n }\n }", "title": "" }, { "docid": "bfffe9def637249dc1f3c8833bb28259", "score": "0.60331464", "text": "public void pageLoad(WebElement element, WebDriver ldriver)\n\t{\n\t\t//wait till element is clickable and displayed\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(ldriver, 120);\n\t\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "4b10d4a36409107b58cb9f0c77257c88", "score": "0.6027565", "text": "public void waitForPageLoad() {\n\t\tbtnContinue.waitForCondition(ElementStatus.DISPLAYED, Constants.LONG_TIME, false);\n\t}", "title": "" }, { "docid": "d554a265169d4c11414e3567e6ff66ee", "score": "0.60168964", "text": "public boolean FnExplicitlessWait_untilClickable(String strByType, String strConst,WebDriver driver) {\n\n\t\tboolean blnFlag = false;\n\t\ttry {\n\t\t\tSystem.out.println(\"inside exp wait\");\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, 60, 1000);\n\t\t\tif (strByType.equalsIgnoreCase(\"ID\")) {\n\t\t\t\tWebElement element = wait.until(ExpectedConditions.elementToBeClickable\n\t\t\t\t\t\t(By.id(strConst)));\n\t\t\t\tSystem.out.println(strConst + \" element display -\"\n\t\t\t\t\t\t+ element.isDisplayed());\n\t\t\t\tif (element.isDisplayed())\n\t\t\t\t\tblnFlag = true;\n\n\t\t\t} else if (strByType.equalsIgnoreCase(\"XPATH\")) {\n\t\t\t\tWebElement element = wait.until(ExpectedConditions\n\t\t\t\t\t\t.elementToBeClickable(By.xpath(strConst)));\n\t\t\t\tSystem.out.println(strConst + \" element display -\"\n\t\t\t\t\t\t+ element.isDisplayed());\n\t\t\t\tif (element.isDisplayed())\n\t\t\t\t\tblnFlag = true;\n\n\t\t\t} else if (strByType.equalsIgnoreCase(\"CLASSNAME\")) {\n\t\t\t\tWebElement element = wait.until(ExpectedConditions\n\t\t\t\t\t\t.elementToBeClickable(By.className(strConst)));\n\t\t\t\tSystem.out.println(strConst + \" element display -\"\n\t\t\t\t\t\t+ element.isDisplayed());\n\t\t\t\tif (element.isDisplayed())\n\t\t\t\t\tblnFlag = true;\n\n\t\t\t} else if (strByType.equalsIgnoreCase(\"PARTIALTEXT\")) {\n\t\t\t\tWebElement element = wait.until(ExpectedConditions\n\t\t\t\t\t\t.elementToBeClickable(By\n\t\t\t\t\t\t\t\t.partialLinkText(strConst)));\n\t\t\t\tSystem.out.println(strConst + \" element display -\"\n\t\t\t\t\t\t+ element.isDisplayed());\n\t\t\t\tif (element.isDisplayed())\n\t\t\t\t\tblnFlag = true;\n\t\t\t} else if (strByType.equalsIgnoreCase(\"cssSelector\")) {\n\t\t\t\tWebElement element = wait.until(ExpectedConditions\n\t\t\t\t\t\t.elementToBeClickable(By.cssSelector(strConst)));\n\t\t\t\tSystem.out.println(strConst + \" element display -\"\n\t\t\t\t\t\t+ element.isDisplayed());\n\t\t\t\tif (element.isDisplayed())\n\t\t\t\t\tblnFlag = true;\n\n\t\t\t}else if (strByType.equalsIgnoreCase(\"tagName\")) {\n\t\t\t\tWebElement element = wait.until(ExpectedConditions\n\t\t\t\t\t\t.elementToBeClickable(By.tagName(strConst)));\n\t\t\t\tSystem.out.println(strConst + \" element display -\"\n\t\t\t\t\t\t+ element.isDisplayed());\n\t\t\t\tif (element.isDisplayed())\n\t\t\t\t\tblnFlag = true;\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tblnFlag = false;\n\t\t}\n\t\treturn blnFlag;\n\t}", "title": "" }, { "docid": "27977426bcc883a64625f58dc36c51c4", "score": "0.6014941", "text": "public static void click(WebElement element, String name) {\n explicitlyWait(element);\n element.click();\n //LogStatus.pass(name + \"is clicked successfully\");\n }", "title": "" }, { "docid": "437e1ab7ec18d951811351df480e7b1a", "score": "0.60075426", "text": "protected void safeClick(WebElement element) {\n for (int i = 0; i <= 2; i++) {\n try {\n element.click();\n break;\n } catch (StaleElementReferenceException e) {\n logger.error(e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "1322301e3ac4f6e53dd1b3dee0efaf58", "score": "0.6004844", "text": "public static void waitElementDisplay(WebDriver webDriver, By by, long timeoutInSeconds) {\r\n getWebDriverWait(webDriver, timeoutInSeconds).until(ExpectedConditions.visibilityOfElementLocated(by));\r\n }", "title": "" }, { "docid": "897e2a77da0f36df1df68e269c0a91c4", "score": "0.5984807", "text": "public void waitUntilPostPanelIsLoaded() {\n try {\n waitUntilElementIsLoaded(postButtonHighLighted);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "6ff9332df17eefbc483fcd7ef6e95e38", "score": "0.5980615", "text": "public void waitLoaderDisappear(WebElement element, WebDriver ldriver)\n\t{\n\t\t//wait till element is clickable and displayed\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(ldriver, 10);\n\t\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t\t\twait.until(ExpectedConditions.invisibilityOf(element));\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "017df4dbb42f1816f5dc52afc8ede22f", "score": "0.59775823", "text": "public static void waitForElementBeVisible(WebElement element, int time) {\n\t\t\t\t\tWebDriverWait wait = new WebDriverWait(driver, time);\n\t\t\t\t\twait.until(ExpectedConditions.visibilityOf(element));\n\t\t\t\t}", "title": "" }, { "docid": "c0f2214faaac0035ddb3eecb52105a64", "score": "0.59501165", "text": "public void waitForElementToBePresentINGUI(WebDriver driver, WebElement expWb) throws InterruptedException {\r\n\t\tint count = 0 ;\r\n\t while(count<=20) {\r\n\t\t try {\r\n\t\t\t expWb.isDisplayed();\r\n\t\t\t break;\r\n\t\t }catch (NoSuchElementException t) {\r\n\t\t\t Thread.sleep(1000);\r\n\t\t\t count++;\r\n\t\t}\r\n\t }\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6b9eec149ba90e383e12014b54309529", "score": "0.5946515", "text": "public TreeNodeElement waitForIt()\n {\n getDriver().waitUntilCondition(new ExpectedCondition<Boolean>()\n {\n @Override\n public Boolean apply(WebDriver driver)\n {\n return !Boolean.valueOf(getElement().getAttribute(\"aria-busy\"));\n }\n });\n return this;\n }", "title": "" }, { "docid": "dc5de9f38677cdfe636efc754834ed7c", "score": "0.5942644", "text": "public static boolean waitForInVisibility(WebElement element){\n return new WebDriverWait(driver, Constants.MEDIUM_TIMEOUT).until(ExpectedConditions.invisibilityOf(element));\n }", "title": "" }, { "docid": "df981ff19001598a292b13f225a400af", "score": "0.5934685", "text": "public void clickElement(WebElement ele);", "title": "" }, { "docid": "b3dda02fd7e6c22aeda31e37e5ba2e19", "score": "0.5929538", "text": "public static boolean waitForInVisibility(WebElement element, int timeout){\n return new WebDriverWait(driver, timeout).until(ExpectedConditions.invisibilityOf(element));\n }", "title": "" }, { "docid": "d3c75580070977116d6a1beece6b3fad", "score": "0.59137493", "text": "public void explicitWaitFor(int durationInSeconds, WebElement el) {\n\t\ttry {\n\t\t\tWebDriverWait wait=new WebDriverWait(driver, durationInSeconds);\n\t\t\twait.until(ExpectedConditions.visibilityOf(el));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(); \n\t\t}\n\t}", "title": "" }, { "docid": "d21fde16f54b51236a7220843a0a9930", "score": "0.5902554", "text": "public void clickMobileElement2WithoutWaiting(MobileElement element) {\n\t\ttry {\n\t\t\tWebDriverWait wait = new WebDriverWait(threadFactory.getDriver(), waitTime);\n\t\t\ttry {\n\t\t\t\t// wait.until(ExpectedConditions.visibilityOf(element)).click();\n\t\t\t\telement.click();\n\t\t\t} catch (Exception e) {\n\t\t\t\ttry {\n\n\t\t\t\t\tBy by = getBy(element);\n\n\t\t\t\t\tSystem.err.println(\"Visiblility Failing so trying alternative Presence of element..\");\n\n\t\t\t\t\tSystem.err.println(\"Visibility Failing so Trying with PresenceOfElementLocated!!!\");\n\t\t\t\t\t// wait.until(ExpectedConditions.presenceOfElementLocated(by)).click();\n\n\t\t\t\t\telement.click();\n\t\t\t\t} catch (Exception 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\n\t\t\t}\n\t\t\treport.addStepLogToReport(\"Click action performed on \" + element.toString());\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t}\n\t}", "title": "" }, { "docid": "0ab11bf8de29af60554a25a10adf9396", "score": "0.5902349", "text": "public void clickOnRejectBtn()\n\t{\n\t\twait.until(ExpectedConditions.visibilityOf(btnReject));\n\t\tldriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\tbtnReject.click();\n\t\tldriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\n\t}", "title": "" }, { "docid": "cc51db22c435be7ad54068d9273c53c9", "score": "0.5899583", "text": "public static void waitForElement(WebDriver driver,String locatortype,String locatorvalue,String wait)\r\n{\r\n\tSystem.out.println(\"Executing waitForElement method\");\r\nWebDriverWait mywait= new WebDriverWait(driver, Integer.parseInt(wait));\r\nif(locatortype.equalsIgnoreCase(\"name\"))\r\n{\r\nmywait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy(By.name(locatorvalue)));\r\n}\r\nelse if(locatortype.equalsIgnoreCase(\"id\"))\r\n{\r\nmywait.until(ExpectedConditions.visibilityOfElementLocated(By.id(locatorvalue)));\r\n}\r\nelse if(locatortype.equalsIgnoreCase(\"xpath\"))\r\n{\r\nmywait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(locatorvalue)));\r\n}\r\nelse\r\n{\r\n\tSystem.out.println(\"wait for element unable to execute\");\r\n}\r\n}", "title": "" }, { "docid": "a7e3766f4676360e3df04cab1a00fe82", "score": "0.5891267", "text": "public void explicitWait(WebElement ele, long t)\n\t{\n\t\tWebDriverWait wait=new WebDriverWait(driver, t);\n\t\twait.until(ExpectedConditions.visibilityOf(ele)).isDisplayed();\t \n\t}", "title": "" }, { "docid": "ee23c5de191c4f86ba9a2d2755b9c102", "score": "0.58910286", "text": "public void clickOnSubmit(){\n waitForElement(driver, ChatbotUI.bntCreate, 10);\n clickToElement(driver, ChatbotUI.bntCreate);\n sleep(2);\n }", "title": "" }, { "docid": "9aefa19fe51168abe2de4ab6076e7ed3", "score": "0.58746815", "text": "@Step(\"Wait of label 'Antennas'\")\n public void labelAntennasWait(){\n assert SingletonWaitingItem.waitElementVisibly(labelAntennas);\n }", "title": "" }, { "docid": "2a5fcd68ff90ee745205d4304163588e", "score": "0.5873837", "text": "@When(\"user click on $selector\")\n\tpublic void ClickOn(String element) throws InterruptedException\n\t{\n\t\tgetPromoCheckPage().ClickOn(element);\n\t}", "title": "" }, { "docid": "5d72e96edeb6940f08e9d439d88d0491", "score": "0.5873414", "text": "public void clickOnCancelLink() {\n try {\n Thread.sleep(10000);\n\n if(commonElements.isElementVisible(cardManagementTab)){ // card Management is visible\n //Scrolling down until element is found\n Thread.sleep(5000);\n System.out.println(\"'Card Management' tab is visible\");\n\n\n try {\n commonElements.click(cardManagementTab);\n } catch (Exception e) {\n System.out.println(\"TEST FAILED!. Unable to click on card management tab - \"+e.getMessage());\n _scenario.write(\"TEST FAILED!. Unable to click on card management tab - \"+e.getMessage());\n Assert.fail(\"TEST FAILED!. Unable to click on card management tab - \"+e.getMessage());\n }\n\n //Scrolling to the element first\n try {\n //javaScriptExecutor.executeJavaScript(\"arguments[0].scrollIntoView();\", membershipCycleExtensionLink);\n javaScriptExecutor.scrollDown(0,100);\n Thread.sleep(5000);\n System.out.println(\"===== Scrolling done ======\");\n } catch (Exception e) {\n System.out.println(\"Exception occurred while scrolling down - \"+e.getMessage());\n }\n\n //checking if element is clickable\n if(commonElements.isElementClickable(cancelLink)) {\n System.out.println(\"Cancel link is clickable\");\n } else {\n screenshot.takeScreenshot();\n System.out.println(\"TEST FAILED!. 'Cancel' link IS DISABLED for this member.\");\n _scenario.write(\"TEST FAILED!. 'Cancel' link IS DISABLED for this member.\");\n Assert.fail(\"TEST FAILED!. 'Cancel' link IS DISABLED for this member.\");\n }\n\n //clicking on the cancel link\n try {\n commonElements.click(cancelLink);\n } catch (Exception e) {\n System.out.println(\"TEST FAILED!. Unable to click on 'Cancel' link - \"+e.getMessage());\n _scenario.write(\"TEST FAILED!. Unable to click on 'Cancel' link - \"+e.getMessage());\n Assert.fail(\"TEST FAILED!. Unable to click on 'Cancel' link - \"+e.getMessage());\n }\n\n } else if (commonElements.isElementVisible(moreTab)){ //More tab is visible\n System.out.println(\"'More' Tab is visible\");\n //click on more tab\n try {\n commonElements.click(moreTab);\n } catch (Exception e) {\n System.out.println(\"TEST FAILED!. Unable to click on 'More' Tab - \"+e.getMessage());\n _scenario.write(\"TEST FAILED!. Unable to click on 'More' Tab - \"+e.getMessage());\n Assert.fail(\"TEST FAILED!. Unable to click on 'More' Tab - \"+e.getMessage());\n }\n\n\n try {\n Thread.sleep(3000);\n commonElements.moveMouseAndClick(cardManagementTabUnderMore);\n } catch (Exception e) {\n System.out.println(\"TEST FAILED!. Unable to click on Card management under 'More' Tab - \"+e.getMessage());\n _scenario.write(\"TEST FAILED!. Unable to click on Card management under 'More' Tab - \"+e.getMessage());\n Assert.fail(\"TEST FAILED!. Unable to click on Card management under 'More' Tab - \"+e.getMessage());\n }\n\n //waiting for 3 seconds\n Thread.sleep(3000);\n\n //check again if card management tab is there\n if(commonElements.isElementVisible(cardManagementTab)) {\n\n try {\n commonElements.click(cardManagementTab);\n } catch (Exception e) {\n System.out.println(\"TEST FAILED!. Unable to click on Card management tab - \"+e.getMessage());\n _scenario.write(\"TEST FAILED!. Unable to click on Card management tab - \"+e.getMessage());\n Assert.fail(\"TEST FAILED!. Unable to click on Card management tab - \"+e.getMessage());\n }\n\n //Scrolling to the element first\n try {\n //javaScriptExecutor.executeJavaScript(\"arguments[0].scrollIntoView();\", membershipCycleExtensionLink);\n javaScriptExecutor.scrollDown(0,100);\n Thread.sleep(5000);\n System.out.println(\"===== Scrolling done ======\");\n } catch (Exception e) {\n System.out.println(\"Exception occurred while scrolling down - \"+e.getMessage());\n }\n\n //checking if element is clickable\n if(commonElements.isElementClickable(cancelLink)) {\n System.out.println(\"Cancel link is clickable\");\n } else {\n screenshot.takeScreenshot();\n System.out.println(\"TEST FAILED!. 'Cancel' link IS DISABLED for this member.\");\n _scenario.write(\"TEST FAILED!. 'Cancel' link IS DISABLED for this member.\");\n Assert.fail(\"TEST FAILED!. 'Cancel' link IS DISABLED for this member.\");\n }\n\n try {\n commonElements.click(cancelLink);\n } catch (Exception e) {\n System.out.println(\"TEST FAILED!. Unable to click on 'Cancel' link - \"+e.getMessage());\n _scenario.write(\"TEST FAILED!. Unable to click on 'Cancel' link - \"+e.getMessage());\n Assert.fail(\"TEST FAILED!. Unable to click on 'Cancel' link - \"+e.getMessage());\n }\n } else {\n System.out.println(\"TEST FAILED!. Unable to Locate Card management tab \");\n _scenario.write(\"TEST FAILED!. Unable to Locate Card management tab \");\n Assert.fail(\"TEST FAILED!. Unable to Locate Card management tab \");\n }\n\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5dbfe0405f1760a8717eed0c64c5afe1", "score": "0.58730537", "text": "public void waitForDefaultWidgetsToBeClickable() {\n\t\tbot.waitForElementToBeClickable(runningVusersWidgetTitle);\n\t\tbot.waitForElementToBeClickable(hitsPerSecondWidgetTitle);\n\t\tbot.waitForElementToBeClickable(throughputWidgetTitle);\n\t\tbot.waitForElementToBeClickable(errorsWidgetTitle);\n\t}", "title": "" }, { "docid": "cbd1816557ef7421af5cfbd692ab17ed", "score": "0.5870554", "text": "public static void waitFor(WebDriver driver,By by){\t\n\t\t\t StackTraceElement caller = new Throwable().getStackTrace()[1];\n\t\t\t String callerInfo = caller.getClassName()\n\t\t\t + \" \" + caller.getMethodName() \n\t\t\t + \" line \" + caller.getLineNumber() ;\n\t\t\t log(callerInfo,\"Waiting for Element with id \"+ by.toString());\n\t\t\t webDriverWait = new WebDriverWait(driver, 90);\n\t\t webDriverWait.until(ExpectedConditions.presenceOfElementLocated(by));\n\t\t }", "title": "" }, { "docid": "a2ad3fb30bf6367d019ed7b6482a2e68", "score": "0.5869549", "text": "public void pressButtonWithSelenium(By value) {\n waitForPageLoad();\n WebElement element = driver.findElement(value);\n Wait<WebDriver> wait = new WebDriverWait(driver, MainObjectStaticValues.TIME_LONG);\n wait.until(ExpectedConditions.elementToBeClickable(value));\n element.click();\n }", "title": "" }, { "docid": "16741a97757052a890db9f667c5129b7", "score": "0.58648884", "text": "public void elementtobeclickable(MobileElement element,AndroidDriver driver)\n\t{\n\t\tWebDriverWait wait = new WebDriverWait(driver, PathConstants.explicitlywait);\n\t\twait.until(ExpectedConditions.elementToBeClickable(element));\n\t}", "title": "" } ]
64a40b984b5e8375519b4f3d6cee3208
Get the volume in which the work was published.
[ { "docid": "57b6a44e4cd11b838764134fb86db275", "score": "0.62965417", "text": "@JsonGetter(value = \"volume\")\n public String getVolume() {\n return this.volume;\n }", "title": "" } ]
[ { "docid": "7a488f3af0c0e75953f95cdfb3b630b9", "score": "0.7337446", "text": "private Volume getVolume() {\n if (volume != null) {\n return volume;\n }\n DescribeVolumesRequest req = new DescribeVolumesRequest();\n req.setVolumeIds(Arrays.<String> asList(getId()));\n DescribeVolumesResult res = ec2.describeVolumes(req);\n volume = res.getVolumes().get(0);\n return volume;\n }", "title": "" }, { "docid": "034875fe5d453c7655e0e76bb9699ee9", "score": "0.730879", "text": "public long getVolume() {\r\n return volume;\r\n }", "title": "" }, { "docid": "731c3db436ccd47d63cfeda90f1404fc", "score": "0.7207377", "text": "public byte getVolume() {\n\t\treturn volume;\n\t}", "title": "" }, { "docid": "52bb47d6c99a0c7361ff22f8ae73db2e", "score": "0.7203663", "text": "public String getVolume() {\n\t\treturn volume;\n\t}", "title": "" }, { "docid": "3499ae2f626a8182c91a4bf98314cc3f", "score": "0.7142308", "text": "public int getVolume()\r\n\t{\r\n\t\treturn volume;\r\n\t}", "title": "" }, { "docid": "a65c80d42ab6f65ca421ead8b9e17f0b", "score": "0.7136225", "text": "public int getVolume() {\n return volume;\n }", "title": "" }, { "docid": "fdfc1fe3ec62acf18f2dba31897b94f8", "score": "0.7120796", "text": "public int getVolume() {\n\t\treturn this.volume;\n\t}", "title": "" }, { "docid": "803f91864e032d19fdf5e9d90a19d671", "score": "0.70749307", "text": "public int getVolume()\r\n\t{\r\n\t\treturn this.volume;\r\n\t}", "title": "" }, { "docid": "74fb85b455718c3bac7b0b89505e4422", "score": "0.70224524", "text": "public int getVolume() {\n return this.volume;\n }", "title": "" }, { "docid": "7aa695f34084e51edebf2964aa325d3e", "score": "0.69220257", "text": "@Override\n\tpublic double getVolume() {\n\t\treturn Math.pow(getTeref(), 3);\n\t}", "title": "" }, { "docid": "afb6838c2220592ceecbe63ea24d9822", "score": "0.69027543", "text": "public double getVolume()\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(VOLUME$22);\r\n if (target == null)\r\n {\r\n return 0.0;\r\n }\r\n return target.getDoubleValue();\r\n }\r\n }", "title": "" }, { "docid": "7b4cd2afe1de2546e7c798d3a11b179b", "score": "0.6855094", "text": "EnergyVolume getVolume();", "title": "" }, { "docid": "5a73370d8b7c44bc5e2abca05c75af0a", "score": "0.6849383", "text": "public String volumePath() {\n return this.volumePath;\n }", "title": "" }, { "docid": "42038e6678fcd27663fd3559e57a7a1c", "score": "0.6832708", "text": "public int getVolume() {\n\t\t return this.Volume;\n\t\t}", "title": "" }, { "docid": "098ac005d34730d07b1e1d4598103045", "score": "0.6823238", "text": "@Property String getVolume();", "title": "" }, { "docid": "85a19c06e0c118c18fb1145eeb20f76c", "score": "0.680208", "text": "@Override\n\tpublic int getVolume() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "f450a39313b274936ff8510a24a92364", "score": "0.6742101", "text": "public int volume() { return volume; }", "title": "" }, { "docid": "27fd31469d7d2ce78fcdd40ed3b5fdac", "score": "0.67108613", "text": "public double getVolume()\n\t{\n\t\treturn this.getLength() * this.getLength() * this.getLength() * 0.11785113019;\n\t}", "title": "" }, { "docid": "f6a8c15ed2d92049ba5a5de0678099dd", "score": "0.6704995", "text": "public int getVolume(){\n return volume;\n }", "title": "" }, { "docid": "fe91833fdf4decf0d422ff44f0baa32d", "score": "0.66768473", "text": "double getVolume();", "title": "" }, { "docid": "97360f68cba584cb37053ba2f308aba5", "score": "0.6672792", "text": "public double getVolume();", "title": "" }, { "docid": "33c5ac3ea1a00a441b35751472a4f040", "score": "0.66160387", "text": "double getVolume() {\n return this.volume;\n }", "title": "" }, { "docid": "9a4197964887ef23041041adb3f5d7fe", "score": "0.6570865", "text": "public int getVolume()\n {\n return (maxy - miny) * (maxx - minx) * (maxz - minz);\n }", "title": "" }, { "docid": "22113a8f3fdb20eb74a387c2a040e6c9", "score": "0.65430635", "text": "public float getVolume() {\n return player.getVolume();\n }", "title": "" }, { "docid": "67202d494b25d20fdcc712176e1e2152", "score": "0.6538079", "text": "public int getVolume(){\n\t\treturn Volume;\n\t}", "title": "" }, { "docid": "feadbcad30c16d380643beb6e0b4b11a", "score": "0.6532978", "text": "public float getVolume()\n\t{\n\t\treturn c.getValue();\n\t}", "title": "" }, { "docid": "41f52ce313f2b8a391921d6d2f5b1c22", "score": "0.65215224", "text": "@Override\n\tpublic int volume() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "99e4173e2f3548ffa9265e5c0b3a528b", "score": "0.65000397", "text": "public float getVolume() {\n return mVolume;\n }", "title": "" }, { "docid": "ff773c165a62da2ee2fe1257cfd4a227", "score": "0.64873135", "text": "public float getMusicVolumeOut() {\n\t\treturn mSoundLocalRepo.getMusicVolumeOut();\n\t}", "title": "" }, { "docid": "9fa2cf9ffac601a706546196ad6a5fd5", "score": "0.64746004", "text": "public int getChannelVolume(int channel);", "title": "" }, { "docid": "4724d8823e17e1ea3983485f10971229", "score": "0.6463306", "text": "@Override\n public void getVolume(int volume) {\n\n }", "title": "" }, { "docid": "b8998d23cfdeb36cae957a2b9b3f5aa2", "score": "0.6459176", "text": "public final int getVolume() {\n return ((this.e - this.d) + 1) * ((this.g - this.f) + 1) * ((this.i - this.h) + 1);\n }", "title": "" }, { "docid": "026400431f115616b5e66be009fab69d", "score": "0.6448839", "text": "public IntColumn getVolume() {\n return new DelegatingIntColumn(parentBlock.getColumn(\"journal_volume\"));\n }", "title": "" }, { "docid": "8a1a0d35c4567055a9edfa10e514d393", "score": "0.6405196", "text": "public float getVolume()\n {\n return PiOver6 * mSize * mSize * mSize ;\n }", "title": "" }, { "docid": "543f1f1cfe03bb6cb0667bd26eccbed9", "score": "0.63812506", "text": "public int getAvailableVolume()\n {\n return getMaxVolume() - getVolume();\n }", "title": "" }, { "docid": "7e1cb99ff2b3be3d61893cdfcbfa8242", "score": "0.63810766", "text": "public Volume getSelectedVolume() {\n return (Volume)this.getSelection();\n }", "title": "" }, { "docid": "cf580b15783f07d6207fe4499a9974ef", "score": "0.63642734", "text": "public String getVol() {\n return vol;\n }", "title": "" }, { "docid": "673c7d4f8b99b8dcb6c2cfe669dabb6d", "score": "0.6356596", "text": "public double getVolume(){\n\tdouble vol = (1.0/3.0) * Math.PI * Math.pow(this.radius, 2.0) * this.height;\n\treturn vol;\n }", "title": "" }, { "docid": "3175c31b6e6f0459a72099e517e5ee5b", "score": "0.6340013", "text": "public Long getTradeVolume() {\n return tradeVolume;\n }", "title": "" }, { "docid": "1404bd8bdc951597d02d1121c196b28a", "score": "0.63138545", "text": "@Override\n public double getVolume() {\n double V, p1, p2, p3;\n\n V = ((4.0)/(3.0)) * 3.14159 * Math.pow(r, 3);\n\n return V;\n }", "title": "" }, { "docid": "d11f38ecc26fa58c72101678bc837bbc", "score": "0.6309578", "text": "@Override\n\tpublic float getVolume() {\n\t\t// TODO Put real code here!\n\t\t\n\t\t// Volume is found by the following equation:\n\t\t// V = PI * radius squared * height\n\t\treturn (((float)Math.PI) * (getRadius() * getRadius()) * (getHeight()));\n\t}", "title": "" }, { "docid": "30ea232df9ae4e26609e0af813184a27", "score": "0.6293959", "text": "public double getVolume() {\n return sideLength * sideLength * sideLength;\n }", "title": "" }, { "docid": "e76fc8ca952684649fe1ad2f9612acae", "score": "0.62763566", "text": "public static float getVolume() {\n\t\treturn gainControl.getValue();\n\t}", "title": "" }, { "docid": "3c3c348fe9085a93e195453e5d2ffcd0", "score": "0.6257734", "text": "public double getVolume()\n {\n return Converter.ft3ToMi3(volumeFt3);\n }", "title": "" }, { "docid": "b3c59385d6675b3f4030cd032f134f79", "score": "0.6256967", "text": "public double getVolume() {\n\t\treturn 4/3.0*(Math.PI*(Math.pow(radius, 3)));\n\t}", "title": "" }, { "docid": "819713ef8297e26fdd3d21bdb0359e4d", "score": "0.6254902", "text": "public double volume() {\r\n\t\tdouble volume = width * height * depth;\r\n\t\treturn volume;\r\n\t}", "title": "" }, { "docid": "fe88e98168260d524eb95fc1f2332162", "score": "0.6187626", "text": "@JSProperty\n double getVolume();", "title": "" }, { "docid": "1427827e3918d73e4449be269daa5a22", "score": "0.6182372", "text": "double volume()\n\t{\n\t\treturn (length*breadth*height);\n\t}", "title": "" }, { "docid": "3ba5f8fcc52a0c7e7e72198366193adc", "score": "0.6176972", "text": "@Override\r\n\tpublic double volume() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "756887262de5f5d1c3742034bab65876", "score": "0.6173966", "text": "private double Volume() {\n\t\tdouble volume = Math.pow(_sideLength, 3);\n\t\treturn volume;\n\t}", "title": "" }, { "docid": "352fe6c337deeb5fe83c210f498366a8", "score": "0.6167518", "text": "public double getVolume() {\n\t\treturn air;\n\t}", "title": "" }, { "docid": "9d0ba3ce4ed135f06c60142e67b2e37f", "score": "0.6161127", "text": "public double getVolume(){\n\t return 0.0;\n }", "title": "" }, { "docid": "2616afd425052c7d43aeb792c8cced5a", "score": "0.61492825", "text": "public float getUiVolumeOut() {\n\t\treturn mSoundLocalRepo.getUiVolumeOut();\n\t}", "title": "" }, { "docid": "bbf9e54b0fbd5de1b776e47f202f753d", "score": "0.61318064", "text": "@Override\n\t//Calculates and returns the volume for this Cuboid instance.\n\tpublic float getVolume() {\n\t\t//Formula for the volume of a Cuboid\n\t\treturn getDepth() * getWidth() * getHeight();\n\t}", "title": "" }, { "docid": "df5f96cadf31abeb6023c8c0f0cb6bbf", "score": "0.6128918", "text": "public double getVolume() {\n\t\treturn (Math.PI * radius * radius * height);\n\t}", "title": "" }, { "docid": "b5a2a02d7b6f15794c68d7a302071c0e", "score": "0.612636", "text": "public java.lang.String getVolumeName() {\r\n return volumeName;\r\n }", "title": "" }, { "docid": "db360f9ee8d8d819ccfc35e2e8d21479", "score": "0.6109574", "text": "double volume() {\n\t\treturn width * height * depth;\n\t\t}", "title": "" }, { "docid": "a3908206f5d324a2a61a4638bd3573f3", "score": "0.60940146", "text": "Double getVolumeValue();", "title": "" }, { "docid": "5d20bb48374d75d7a6965867dcc9bffa", "score": "0.60932904", "text": "public float getMediaStreamVolume() {\n return ((float) this.mCurrentIndex) / ((float) this.mCurrentMaxIndex);\n }", "title": "" }, { "docid": "aba95f40f3f522a3d4eeb98b3762b5e0", "score": "0.6091856", "text": "void consultaVol() {\n System.out.println(this.vol);\n\n }", "title": "" }, { "docid": "ea2938e1651dbbd50e8ba5e64be4bee7", "score": "0.6086858", "text": "public java.math.BigDecimal getTotalVolume(){\r\n return localTotalVolume;\r\n }", "title": "" }, { "docid": "4a4f81e863f20ff8275ecdf4f565850c", "score": "0.60452473", "text": "public double getKv()\n\t{\n\t\tString result = send(Command.GET_VOLTS);\n\t\tif (null != result && result.length() == 4)\n\t\t{\n\t\t\treturn Integer.parseInt(result) / 10.0;\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "37dbc8740d1e9d90091a77059c566096", "score": "0.6043479", "text": "public Double getGoodsVolume() {\n return goodsVolume;\n }", "title": "" }, { "docid": "4c83bc9ef00320e7d8ef10fe8d14771e", "score": "0.6020083", "text": "double getVolumePercent() {\n setVolumePercent(volume);\n return this.volumePercent;\n }", "title": "" }, { "docid": "74787520bf64f03b66fe910740e9eebe", "score": "0.6019567", "text": "public Integer getVolumeSizeInGb() {\n return this.volumeSizeInGb;\n }", "title": "" }, { "docid": "aa1692f54bf4c932a77eb0819e724196", "score": "0.6013374", "text": "@Transient\n public Amount getOpenVolume() {\n return new DiscreteAmount(openVolumeCount, market.getVolumeBasis());\n }", "title": "" }, { "docid": "3d71fdc8f8dcb3192f11b0604d14d75c", "score": "0.59744424", "text": "public Representation latestSurfaceVolumeRepresentation() {\n return _sim.getRepresentationManager().getObject(\"Latest Surface/Volume\");\n }", "title": "" }, { "docid": "c247bbb40cfd6f4fa92093ce9d4ba24e", "score": "0.5957815", "text": "public Volume getFaceVolume() {\r\n \tif(null == faceVolume) {\r\n \t\tfaceVolume = new Volume(0);\r\n \t}\r\n return faceVolume;\r\n }", "title": "" }, { "docid": "7f72ba9e0847a46c6e411af0f13ddcde", "score": "0.59571904", "text": "public float getGlobalVolume() {\r\n\t\treturn audioManager.getStreamVolume(AudioManager.STREAM_MUSIC) / audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\r\n\t}", "title": "" }, { "docid": "affd646124771450c621b61a65aaae55", "score": "0.5929395", "text": "public double getVolume() { return Util.getCylinderVolume(diameter, length); }", "title": "" }, { "docid": "bde8d9d18c3954ae847bd260ea4e4374", "score": "0.58865684", "text": "@Override\r\n\tpublic double calVolume() {\n\t\treturn 1/3*(getAltura()*getLado1()*getLado2());\r\n\t}", "title": "" }, { "docid": "ba0f9208ddcc365ade3ae6e6a5e531f7", "score": "0.5871428", "text": "public double getTotal_volume() {\n return GeneralService.getAsNaira(total_volume);\n }", "title": "" }, { "docid": "2d004f6c3e6f0af1857900f2e448ed7d", "score": "0.5871336", "text": "public float getMusicVolume() {\n return musicVolume;\n }", "title": "" }, { "docid": "03d6cde6a439aa276cf44dda90e7a0d3", "score": "0.5843256", "text": "public interface Volume {\n\n /**\n * @return whether the stream is muted, independent of the volume level.\n */\n boolean isMuted();\n\n /**\n * Returns the current volume level as a value between {@code 0.0} and {@code 1.0}. {@code 1.0} is the maximum\n * volume possible on the stream.\n *\n * @return the current volume level\n */\n double level();\n\n}", "title": "" }, { "docid": "fc6a94944d0f96ebe36af6352d8ec32b", "score": "0.58373296", "text": "public final String getId() {\n return blockDeviceMapping.getEbs().getVolumeId();\n }", "title": "" }, { "docid": "9a34324835f79c13517fe93b965c2022", "score": "0.58169776", "text": "@Override\r\n\tpublic double Volume() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "98f471469eef3d9dc0c7348c735f78cc", "score": "0.58015954", "text": "InputStream getInputStream(Volume volume, String storagePath);", "title": "" }, { "docid": "5cf849090f1ce9b78cf926079388ef4d", "score": "0.5780519", "text": "public FVolume getFVolume(int i){\n return fVolumes.elementAt(i);\n }", "title": "" }, { "docid": "25032305a9d1b6f4b6dbc10e1cf7c0b1", "score": "0.5775222", "text": "public List<VolumeGroupVolumeProperties> volumes() {\n return this.volumes;\n }", "title": "" }, { "docid": "3f7f00c9b617bd6c671681693d5a8435", "score": "0.57690734", "text": "String volumeType();", "title": "" }, { "docid": "c107ebe598a178152d4999a60d59c043", "score": "0.5748375", "text": "public VolumeDTO[] volumes(){\n\t\treturn Volumes.volumes(getConnectedUser());\n\t}", "title": "" }, { "docid": "a3c75b10c66086e01c2bd7b65f951675", "score": "0.57117754", "text": "public org.landxml.schema.landXML11.CrossSectSurfaceVolume xgetVolume()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.CrossSectSurfaceVolume target = null;\r\n target = (org.landxml.schema.landXML11.CrossSectSurfaceVolume)get_store().find_attribute_user(VOLUME$22);\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "04d9fcf1007545c5f2764f3a036ef9a5", "score": "0.56763154", "text": "public VolumeControl getOutputVolumeControl()\n {\n if (outputVolumeControl == null)\n {\n outputVolumeControl\n = new AbstractVolumeControl(\n VolumeControl.PLAYBACK_VOLUME_LEVEL_PROPERTY_NAME);\n }\n return outputVolumeControl;\n }", "title": "" }, { "docid": "a6a07a17804c5a0d388af37c28fd1f48", "score": "0.5671388", "text": "@Override\n\tpublic float volume() {\n\t\tfloat volume = ((float) Math.PI * (getRadius() * getRadius()) * getHeight());\n\t\treturn volume;\n\t}", "title": "" }, { "docid": "0aeea2564f8d836bdb7710fc64e3b16d", "score": "0.56272763", "text": "@Override\n public float volume(){\n float volume = height * width * depth;\n return volume;\n }", "title": "" }, { "docid": "b114a624ba3ec4250bdb07d888cf2635", "score": "0.5611612", "text": "public float getVolumeMin() {\n\t\treturn VOLUME_MIN;\n\t}", "title": "" }, { "docid": "cb4a5b3b94314231086af59c6c31bfbe", "score": "0.5607054", "text": "public float getListenerVolume() {\r\n\t\treturn alGetListenerf(AL_GAIN);\r\n\t}", "title": "" }, { "docid": "ea1affaa051400fa79052a4065a67b98", "score": "0.55980617", "text": "public Geant4Basic getMotherVolume()\n\t{\n\t\treturn motherVol;\n\t}", "title": "" }, { "docid": "cbe08402381c09edccd7fa1a94367a17", "score": "0.5595881", "text": "public void volume()\n {\n double volume = 4.0 / 3.0 * pi * Math.pow(radius,3);\n System.out.println(\"The volume of a circle with radius \" + radius + \" is \" + volume);\n \n }", "title": "" }, { "docid": "2cbe83ba1ceca4d6e30b5671b961fdd0", "score": "0.55929196", "text": "public java.util.List<EbsVolume> getEbsVolumes() {\n if (ebsVolumes == null) {\n ebsVolumes = new com.amazonaws.internal.SdkInternalList<EbsVolume>();\n }\n return ebsVolumes;\n }", "title": "" }, { "docid": "63c35501697a57a212178c1d85ef468b", "score": "0.55841047", "text": "public FloatColumn getVolume() {\n return (FloatColumn) (isText ? textFields.computeIfAbsent(\"volume\", FloatColumn::new) :\n getBinaryColumn(\"volume\"));\n }", "title": "" }, { "docid": "3839bc387a293d8f5598398a646fb884", "score": "0.55808467", "text": "Volume apply();", "title": "" }, { "docid": "2887ba68fa6635de5c811c1942e577f8", "score": "0.55528045", "text": "VolumeInner innerModel();", "title": "" }, { "docid": "f07d0086fac56452d66ff7e336928fd2", "score": "0.5515623", "text": "public void printVolume(){\n\t\tSystem.out.printf(\"%.2f\", this.getVolume());\n\t}", "title": "" }, { "docid": "0fc6dd25887f8ffe7ed0fff56bb6eb93", "score": "0.55085707", "text": "default double getSize() {\n\t\treturn getVolume().getSize();\n\t}", "title": "" }, { "docid": "87ca531b22869fb2efb5683b05e51067", "score": "0.5494693", "text": "public int getVolumeSizeX() {return volumeSizeX;}", "title": "" }, { "docid": "f25209740aec48c9cdec1fe5495eb9c0", "score": "0.5487487", "text": "public VolumeDTO volumes(Integer volumeId){\n\t\tVolumeDTO[] volumeDTO = Volumes.volumes(getConnectedUser(), volumeId);\n\t\treturn volumeDTO[0];\n\t}", "title": "" }, { "docid": "aae50fbe0fb3d6b60ef236408b7f2137", "score": "0.5477647", "text": "String volumeSpecName();", "title": "" }, { "docid": "e3b780e7842404d2b2d3366112b64fad", "score": "0.5473058", "text": "private int m10345A() {\n AudioManager audioManager = (AudioManager) InternalContainer.m10059a().getSystemService(\"audio\");\n if (audioManager != null) {\n return audioManager.getStreamVolume(3);\n }\n return -1;\n }", "title": "" }, { "docid": "5268a0f6382c3b2c623f3cca7c45958a", "score": "0.5459584", "text": "public static String getReadableVolume(long bytes) {\r\n\t\tint unit = 1024;\r\n\t\tif (bytes < unit) {\r\n\t\t\treturn bytes + \" B\";\r\n\t\t}\r\n\t\tint exp = (int) (Math.log(bytes) / Math.log(unit));\r\n\t\tchar pre = (\"KMGTPE\").charAt(exp-1);\r\n\t\treturn String.format(\"%.1f %sB\", bytes / Math.pow(unit, exp), pre);\r\n\t}", "title": "" } ]
56733c4210f6e21e76cfb2cc1494f656
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
[ { "docid": "a4d5d88614df739c818695017fb05ade", "score": "0.0", "text": "public static _Fields findByThriftIdOrThrow(int fieldId) {\n _Fields fields = findByThriftId(fieldId);\n if (fields == null) throw new java.lang.IllegalArgumentException(\"Field \" + fieldId + \" doesn't exist!\");\n return fields;\n }", "title": "" } ]
[ { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5ba85bc0fbe50125e4b6a2412af6075a", "score": "0.7639112", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "4e61aa72e84053759c73604f83d3a45a", "score": "0.7577363", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // EX\n return EX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ea3c724fe6ea337d57c819251c5221ea", "score": "0.7472569", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // A\n return A;\n case 2: // B\n return B;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ea3c724fe6ea337d57c819251c5221ea", "score": "0.7472569", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // A\n return A;\n case 2: // B\n return B;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ea3c724fe6ea337d57c819251c5221ea", "score": "0.7472569", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // A\n return A;\n case 2: // B\n return B;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ea3c724fe6ea337d57c819251c5221ea", "score": "0.7472569", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // A\n return A;\n case 2: // B\n return B;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "1832ffa31cf9f77a15c954e8d324c23b", "score": "0.74504864", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // FIELDS\n return FIELDS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "5de58f05df813aa08edeab24d8477068", "score": "0.7442383", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n default:\n return null;\n }\n }", "title": "" }, { "docid": "27a2a2491541bca476aaff5dab9a03ed", "score": "0.74356407", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "6dcc2722448f455aeab2f8cc38874b05", "score": "0.7435241", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // OLD_PATH\n return OLD_PATH;\n case 2: // NEW_PATH\n return NEW_PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7426598", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7426598", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7426598", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7426598", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7426598", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7426598", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7426598", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7426598", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7426598", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "b58abbe0ca0171124087b758152879da", "score": "0.7426598", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "a38ce5a81d3e8c50d597e92105e5e8cc", "score": "0.73963946", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // WARE_ISSUE\n return WARE_ISSUE;\n case 2: // MATCH_ID\n return MATCH_ID;\n case 3: // TRANSFER_ID\n return TRANSFER_ID;\n case 4: // MATCH_TYPE\n return MATCH_TYPE;\n case 5: // MATCH_NO\n return MATCH_NO;\n case 6: // MATCH_NAME\n return MATCH_NAME;\n case 7: // HOME_TEAM\n return HOME_TEAM;\n case 8: // GUEST_TEAM\n return GUEST_TEAM;\n case 9: // DRAW_RESULT\n return DRAW_RESULT;\n case 10: // MATCH_BEGIN_TIME\n return MATCH_BEGIN_TIME;\n case 11: // BETTING_DEADLINE\n return BETTING_DEADLINE;\n case 12: // MATCH_END_TIME\n return MATCH_END_TIME;\n case 13: // MATCH_DATE\n return MATCH_DATE;\n case 14: // IS_ALLOW_MODIFY\n return IS_ALLOW_MODIFY;\n case 15: // MATCH_STATUS\n return MATCH_STATUS;\n case 16: // MATCH_COMPETIVE_PLAY_LIST\n return MATCH_COMPETIVE_PLAY_LIST;\n case 17: // MATCH_COMPETIVE_RESULT_LIST\n return MATCH_COMPETIVE_RESULT_LIST;\n case 18: // CREATE_TIME\n return CREATE_TIME;\n case 19: // LAST_UPDATE_TIME\n return LAST_UPDATE_TIME;\n case 20: // BEGIN_MATCH_DATE\n return BEGIN_MATCH_DATE;\n case 21: // END_MATCH_DATE\n return END_MATCH_DATE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "257f018b843bcf5e0b98224882b312c6", "score": "0.7365187", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PROJECT_ID\n return PROJECT_ID;\n case 2: // PROJECT_NUMBER\n return PROJECT_NUMBER;\n case 3: // PROJECT_NAME\n return PROJECT_NAME;\n case 4: // ACCT_NAME\n return ACCT_NAME;\n case 5: // ECO_TRADE\n return ECO_TRADE;\n case 6: // ACCT_TYPE\n return ACCT_TYPE;\n case 7: // IS_HOOP\n return IS_HOOP;\n case 8: // IS_HOOP_VAL\n return IS_HOOP_VAL;\n case 9: // CREDTI_START_DT\n return CREDTI_START_DT;\n case 10: // CREDTI_END_DT\n return CREDTI_END_DT;\n case 11: // BEGIN_REQUEST_DTTM\n return BEGIN_REQUEST_DTTM;\n case 12: // END_REQUEST_DTTM\n return END_REQUEST_DTTM;\n case 13: // CREDIT_AMT\n return CREDIT_AMT;\n case 14: // EXTRACTION_AMT\n return EXTRACTION_AMT;\n case 15: // FREEZE_AMT\n return FREEZE_AMT;\n case 16: // AVAILABLE_AMT\n return AVAILABLE_AMT;\n case 17: // PAGE\n return PAGE;\n case 18: // ROWS\n return ROWS;\n case 19: // CREDIT_ID\n return CREDIT_ID;\n case 20: // REF_ID\n return REF_ID;\n case 21: // CUS_TYPE\n return CUS_TYPE;\n case 22: // DATA_OBJECT\n return DATA_OBJECT;\n case 23: // PM_USER_ID\n return PM_USER_ID;\n case 24: // PM_USER\n return PM_USER;\n case 25: // REQUEST_DTTM\n return REQUEST_DTTM;\n case 26: // RELATION_TYPE\n return RELATION_TYPE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "eba01841b9b0c956e1eac796bfb7fd0e", "score": "0.7364282", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // BACKING_PATH\n return BACKING_PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "eba01841b9b0c956e1eac796bfb7fd0e", "score": "0.7364282", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // BACKING_PATH\n return BACKING_PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "eba01841b9b0c956e1eac796bfb7fd0e", "score": "0.7364282", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // BACKING_PATH\n return BACKING_PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "59df3811e9d18f43293f6ce5261c2153", "score": "0.73519754", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NOTE_ID\n return NOTE_ID;\n case 2: // PARAGRAPH_IDS\n return PARAGRAPH_IDS;\n case 3: // PARAGRAPH_INDICES\n return PARAGRAPH_INDICES;\n case 4: // CUR_PARAGRAPH_ID\n return CUR_PARAGRAPH_ID;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "c96b41e8fefa759ab8d09764f7de1f0b", "score": "0.7340461", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // PARTITION_NAME\n return PARTITION_NAME;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "c96b41e8fefa759ab8d09764f7de1f0b", "score": "0.7340461", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // PARTITION_NAME\n return PARTITION_NAME;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "14093c19e4048bbb75fe5dac28d2625c", "score": "0.7338394", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // TYPE\n return TYPE;\n case 3: // BACKING_PATH\n return BACKING_PATH;\n case 4: // NUM_BLOCKS\n return NUM_BLOCKS;\n case 5: // CHAIN_LENGTH\n return CHAIN_LENGTH;\n case 6: // FLAGS\n return FLAGS;\n case 7: // PERMISSIONS\n return PERMISSIONS;\n case 8: // BLOCK_IDS\n return BLOCK_IDS;\n case 9: // BLOCK_METADATA\n return BLOCK_METADATA;\n case 10: // TAGS\n return TAGS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "14093c19e4048bbb75fe5dac28d2625c", "score": "0.7338394", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // TYPE\n return TYPE;\n case 3: // BACKING_PATH\n return BACKING_PATH;\n case 4: // NUM_BLOCKS\n return NUM_BLOCKS;\n case 5: // CHAIN_LENGTH\n return CHAIN_LENGTH;\n case 6: // FLAGS\n return FLAGS;\n case 7: // PERMISSIONS\n return PERMISSIONS;\n case 8: // BLOCK_IDS\n return BLOCK_IDS;\n case 9: // BLOCK_METADATA\n return BLOCK_METADATA;\n case 10: // TAGS\n return TAGS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "f8d5560d4d995b65d328be10ec58247c", "score": "0.733323", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // CUS_PER_BASE\n return CUS_PER_BASE;\n case 3: // CRE_NO\n return CRE_NO;\n case 4: // QUERY_DATE\n return QUERY_DATE;\n case 5: // REP_QUERY_DATE\n return REP_QUERY_DATE;\n case 6: // CRE_ACC_NUM\n return CRE_ACC_NUM;\n case 7: // CRE_QUOTA\n return CRE_QUOTA;\n case 8: // LOAN_SURP\n return LOAN_SURP;\n case 9: // CLEAR_ACC_NUM\n return CLEAR_ACC_NUM;\n case 10: // OPEN_ACC_NUM\n return OPEN_ACC_NUM;\n case 11: // OTHER_ACC_NUM\n return OTHER_ACC_NUM;\n case 12: // STATUS\n return STATUS;\n case 13: // CREDIT_LIMIT\n return CREDIT_LIMIT;\n case 14: // CREDIT_USED_LIMIT\n return CREDIT_USED_LIMIT;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "52ea3c384a673da43e212914748ac1d6", "score": "0.73176205", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ed31f10820817b67e6f87d7691e64340", "score": "0.73136854", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // PERMS\n return PERMS;\n case 3: // OPTS\n return OPTS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "728bd2baccb1856c551cfa5bc3c609ed", "score": "0.7311384", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // VALIDATION_VIOLATION_OCCURRED\n return VALIDATION_VIOLATION_OCCURRED;\n case 2: // VALIDATION_VIOLATION_MESSAGES\n return VALIDATION_VIOLATION_MESSAGES;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "6b80fc0dd7870d4c0e0ce9195da864ff", "score": "0.7308602", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // TAGS\n return TAGS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "db7f33d1c195816b06d9e9fa0afea460", "score": "0.72966397", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // ACCT_ID\n return ACCT_ID;\n case 3: // DATA_SOURCE\n return DATA_SOURCE;\n case 4: // REPORT_TYPE\n return REPORT_TYPE;\n case 5: // QUERY_RESON_ID\n return QUERY_RESON_ID;\n case 6: // QUERY_NAME\n return QUERY_NAME;\n case 7: // QUERY_DOCUMENT_NO\n return QUERY_DOCUMENT_NO;\n case 8: // QUERY_PHONE\n return QUERY_PHONE;\n case 9: // QUERY_STATUS\n return QUERY_STATUS;\n case 10: // QUERY_STATUS_MSG\n return QUERY_STATUS_MSG;\n case 11: // REPORT_NO\n return REPORT_NO;\n case 12: // QUERY_RESULT\n return QUERY_RESULT;\n case 13: // OPERATOR\n return OPERATOR;\n case 14: // CREATE_TIME\n return CREATE_TIME;\n case 15: // CREATOR\n return CREATOR;\n case 16: // REMARK\n return REMARK;\n case 17: // PAGE\n return PAGE;\n case 18: // ROWS\n return ROWS;\n case 19: // REAL_NAME\n return REAL_NAME;\n case 20: // BEGIN_CREATE_TIME\n return BEGIN_CREATE_TIME;\n case 21: // END_CREATE_TIME\n return END_CREATE_TIME;\n case 22: // IS_REPEAT\n return IS_REPEAT;\n case 23: // UNIT_PRICE\n return UNIT_PRICE;\n case 24: // TOTAL_COUNT\n return TOTAL_COUNT;\n case 25: // TOTAL_PRICE\n return TOTAL_PRICE;\n case 26: // QUERY_PBOC_STATUS\n return QUERY_PBOC_STATUS;\n case 27: // USER_IDS\n return USER_IDS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ca120c62f742440a6f6f7e1ae527aaf4", "score": "0.7292831", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // CHAIN\n return CHAIN;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ca120c62f742440a6f6f7e1ae527aaf4", "score": "0.7292831", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // CHAIN\n return CHAIN;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "7467b0b22cba3bac59764586d4a4936a", "score": "0.7268641", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // LICENCE_PLATE\n return LICENCE_PLATE;\n case 2: // LICENCE_PLATE_COLOR\n return LICENCE_PLATE_COLOR;\n case 3: // VEHICLE_TYPE\n return VEHICLE_TYPE;\n case 4: // VEHICLE_COLOR\n return VEHICLE_COLOR;\n case 5: // VEHICLE_LOGO\n return VEHICLE_LOGO;\n case 6: // VEHICLE_CHILD_LOGO\n return VEHICLE_CHILD_LOGO;\n case 7: // VEHICLE_STYLE\n return VEHICLE_STYLE;\n case 8: // RECORD_ID\n return RECORD_ID;\n case 9: // VEHICLE_FEATURE\n return VEHICLE_FEATURE;\n case 10: // SOURCE_TYPE\n return SOURCE_TYPE;\n case 11: // CONFIDENCE_LEVEL\n return CONFIDENCE_LEVEL;\n case 12: // PLATE_CONFIDENCE\n return PLATE_CONFIDENCE;\n case 13: // LOGO_CONFIDENCE\n return LOGO_CONFIDENCE;\n case 14: // VEHICLE_LEFT_X\n return VEHICLE_LEFT_X;\n case 15: // VEHICLE_LEFT_Y\n return VEHICLE_LEFT_Y;\n case 16: // VEHICLE_RIGTH_X\n return VEHICLE_RIGTH_X;\n case 17: // VEHICLE_RIGTH_Y\n return VEHICLE_RIGTH_Y;\n case 18: // OLD_LICENCE_PLATE\n return OLD_LICENCE_PLATE;\n case 19: // TRAFFIC_TIME\n return TRAFFIC_TIME;\n case 20: // HEAD_REAR\n return HEAD_REAR;\n case 21: // TRAFFIC_KKBH\n return TRAFFIC_KKBH;\n case 22: // TRAFFIC_XZQH\n return TRAFFIC_XZQH;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "1fb6a586e685fcd67aa83c1d46a8c032", "score": "0.7262231", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // NAME\n return NAME;\n case 2: // DB_NAME\n return DB_NAME;\n case 3: // CAT_NAME\n return CAT_NAME;\n case 4: // OWNER_NAME\n return OWNER_NAME;\n case 5: // SOURCE\n return SOURCE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "e95bf29ec402f4bc5ebb17ea1d35f3a5", "score": "0.7256178", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // USED_ARTIFACT_ELEMENT\n return USED_ARTIFACT_ELEMENT;\n case 2: // USED_ARTIFACT_ELEMENT_TYPE\n return USED_ARTIFACT_ELEMENT_TYPE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "f7ea2a3a43a6f948faf002e0a156d4c7", "score": "0.7253542", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PATH\n return PATH;\n case 2: // PARTITION_NAME\n return PARTITION_NAME;\n case 3: // PARTITION_METADATA\n return PARTITION_METADATA;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "58ab7e46900f2f65e741b8b44c622929", "score": "0.7251343", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // PARTNER_NO\n return PARTNER_NO;\n case 3: // ACCT_ID\n return ACCT_ID;\n case 4: // CREDIT_DEAL_ID\n return CREDIT_DEAL_ID;\n case 5: // RECORD\n return RECORD;\n case 6: // OVERDUE\n return OVERDUE;\n case 7: // RESULT1\n return RESULT1;\n case 8: // RESULT2\n return RESULT2;\n case 9: // RESULT3\n return RESULT3;\n case 10: // RESULT4\n return RESULT4;\n case 11: // RESULT5\n return RESULT5;\n case 12: // RESULT6\n return RESULT6;\n case 13: // RESULT7\n return RESULT7;\n case 14: // CREATE_TIME\n return CREATE_TIME;\n case 15: // UPDATE_TIME\n return UPDATE_TIME;\n case 16: // PAGE\n return PAGE;\n case 17: // ROWS\n return ROWS;\n case 18: // CHINA_NAME\n return CHINA_NAME;\n case 19: // CERT_TYPE\n return CERT_TYPE;\n case 20: // CERT_NUMBER\n return CERT_NUMBER;\n case 21: // BUSINESS_TYPE\n return BUSINESS_TYPE;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "324b07a66a8e79b8e485c14f5122de28", "score": "0.7249217", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // CONTRACT_ID\n return CONTRACT_ID;\n case 3: // PARAMETER_ID\n return PARAMETER_ID;\n case 4: // PARAMETER_VAL\n return PARAMETER_VAL;\n case 5: // PARAMETER_DESC\n return PARAMETER_DESC;\n case 6: // STATUS\n return STATUS;\n case 7: // PAGE\n return PAGE;\n case 8: // ROWS\n return ROWS;\n case 9: // TOTAL\n return TOTAL;\n case 10: // MATCH_FLAG\n return MATCH_FLAG;\n case 11: // MATCH_NAME\n return MATCH_NAME;\n case 12: // SHOW_INDEX\n return SHOW_INDEX;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "cdaa4f00ce81ebd0dcfcd18b5561c10e", "score": "0.7241231", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // ERR\n return ERR;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "126a7df7fefd873b4f3b6138779c13ee", "score": "0.72403204", "text": "@org.apache.thrift.annotation.Nullable\r\n public static _Fields findByThriftId(int fieldId) {\r\n switch(fieldId) {\r\n case 1: // APP_ID\r\n return APP_ID;\r\n case 2: // DAS_CLIENT_VERSION\r\n return DAS_CLIENT_VERSION;\r\n case 3: // PPDAI_CLIENT_VERSION\r\n return PPDAI_CLIENT_VERSION;\r\n case 4: // CLIENT_ADDRESS\r\n return CLIENT_ADDRESS;\r\n default:\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "408c9487521879274224520ed926a6fa", "score": "0.72394115", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // PID\n return PID;\n case 2: // PROJECT_NAME\n return PROJECT_NAME;\n case 3: // PROJECT_NUMBER\n return PROJECT_NUMBER;\n case 4: // CUS_TYPE\n return CUS_TYPE;\n case 5: // START_REQUEST_DTTM\n return START_REQUEST_DTTM;\n case 6: // PHONE\n return PHONE;\n case 7: // CREDIT_AMT\n return CREDIT_AMT;\n case 8: // IN_MONEY_AND_OUT_DTTM\n return IN_MONEY_AND_OUT_DTTM;\n case 9: // CUSTYPESTR\n return CUSTYPESTR;\n case 10: // REGULATORYUSER\n return REGULATORYUSER;\n case 11: // PLAN_BEGIN_DT\n return PLAN_BEGIN_DT;\n case 12: // REMARK\n return REMARK;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "ade44dd7ef8c21fe497df86ef00d8de2", "score": "0.7237218", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CASE_EXP\n return CASE_EXP;\n case 2: // CASES\n return CASES;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "07333e3f5d2b2835eea5ca1c2d730948", "score": "0.7236608", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // NAME\n return NAME;\n case 3: // DESCRIPTION\n return DESCRIPTION;\n case 4: // KEY_VALUE_MAPS\n return KEY_VALUE_MAPS;\n case 5: // DEPENDABILITY_REQUIREMENTS\n return DEPENDABILITY_REQUIREMENTS;\n case 6: // ASSURANCE_LEVEL\n return ASSURANCE_LEVEL;\n case 7: // FLOW_TYPE\n return FLOW_TYPE;\n case 8: // DIRECTION\n return DIRECTION;\n case 9: // REFINED_PORTS\n return REFINED_PORTS;\n case 10: // INTERFACE_FAILURES\n return INTERFACE_FAILURES;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "6978a1d4e0758c9e28e3eff8d3d77b85", "score": "0.72330624", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // APP_NAME\n return APP_NAME;\n case 3: // POC\n return POC;\n case 4: // ALLOWED_USERS\n return ALLOWED_USERS;\n case 5: // CATEGORIES\n return CATEGORIES;\n case 6: // FEED_PIPELINES\n return FEED_PIPELINES;\n case 7: // LISTENER_PIPELINES\n return LISTENER_PIPELINES;\n case 8: // WEB_APP\n return WEB_APP;\n case 9: // AUTHORIZATIONS\n return AUTHORIZATIONS;\n case 10: // AUTHORIZATION_BUILDER\n return AUTHORIZATION_BUILDER;\n case 11: // INTENT_SERVICE_MAP\n return INTENT_SERVICE_MAP;\n case 12: // JOB_REGISTRATIONS\n return JOB_REGISTRATIONS;\n case 13: // APP_ICON_SRC\n return APP_ICON_SRC;\n case 14: // SPONSORING_ORGANIZATION\n return SPONSORING_ORGANIZATION;\n case 15: // COMMUNITY_AUTHORIZATIONS\n return COMMUNITY_AUTHORIZATIONS;\n default:\n return null;\n }\n }", "title": "" }, { "docid": "afe043243f257c7030244606c9215e09", "score": "0.7229272", "text": "public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // CLOSED_ID\n return CLOSED_ID;\n case 2: // SUB_ACCOUNT_ID\n return SUB_ACCOUNT_ID;\n case 3: // TARGET_KEY\n return TARGET_KEY;\n case 4: // TARGET_TYPE\n return TARGET_TYPE;\n case 5: // CLOSED_POSITION\n return CLOSED_POSITION;\n case 8: // CLOSED_PROFITS\n return CLOSED_PROFITS;\n case 9: // SPREAD_PROFIT\n return SPREAD_PROFIT;\n case 20: // CLOSED_TIMESTAMP_MS\n return CLOSED_TIMESTAMP_MS;\n case 21: // ARCHIVED_DATE_TIMESTAMP_MS\n return ARCHIVED_DATE_TIMESTAMP_MS;\n default:\n return null;\n }\n }", "title": "" } ]
43b37d5e4e9f1a4fdda9fbb69afc6c15
Sets (as xml) the "def41" element
[ { "docid": "f7d17ed851fb31bbb3e98c625e511e22", "score": "0.7859877", "text": "void xsetDef41(org.apache.xmlbeans.XmlString def41);", "title": "" } ]
[ { "docid": "6b57f970ffce752b09c6016a335c6343", "score": "0.7801252", "text": "void xsetDef43(org.apache.xmlbeans.XmlString def43);", "title": "" }, { "docid": "53edce50890d1e553786cad6d49a6e43", "score": "0.7788638", "text": "void xsetDef44(org.apache.xmlbeans.XmlString def44);", "title": "" }, { "docid": "c7ee914f4df51bd2183161c87c52d818", "score": "0.77052027", "text": "void xsetDef45(org.apache.xmlbeans.XmlString def45);", "title": "" }, { "docid": "456e9bdbc6a78d44e8bc28c6b237a0da", "score": "0.76096183", "text": "void xsetDef40(org.apache.xmlbeans.XmlString def40);", "title": "" }, { "docid": "12b27280f205daf867f7d39543110194", "score": "0.76076174", "text": "void xsetDef42(org.apache.xmlbeans.XmlString def42);", "title": "" }, { "docid": "0895dfc8d48a94b6cbc4af0964aa3216", "score": "0.7606564", "text": "void xsetDef23(org.apache.xmlbeans.XmlString def23);", "title": "" }, { "docid": "acac7d9762793af7ce8b7f31b445ae57", "score": "0.75971794", "text": "void xsetDef38(org.apache.xmlbeans.XmlString def38);", "title": "" }, { "docid": "3a9a5dded22dd24b2936dc89310d2139", "score": "0.7588381", "text": "void xsetDef34(org.apache.xmlbeans.XmlString def34);", "title": "" }, { "docid": "628db04eaf6894cd75795e8a056f8e93", "score": "0.75760615", "text": "void xsetDef35(org.apache.xmlbeans.XmlString def35);", "title": "" }, { "docid": "7785b31ef0a1c11bba85420320874603", "score": "0.753219", "text": "void xsetDef15(org.apache.xmlbeans.XmlString def15);", "title": "" }, { "docid": "1dde10eae85c06773c2feb599bc13aaa", "score": "0.7526553", "text": "void xsetDef17(org.apache.xmlbeans.XmlString def17);", "title": "" }, { "docid": "8f370b7d33b3b3033b71e86762560c3f", "score": "0.7511913", "text": "void xsetDef36(org.apache.xmlbeans.XmlString def36);", "title": "" }, { "docid": "e50542529517ccc51e883be2b79d6584", "score": "0.7507169", "text": "void xsetDef33(org.apache.xmlbeans.XmlString def33);", "title": "" }, { "docid": "0f3abba363c139f1d02592b9df01aa91", "score": "0.746037", "text": "void xsetDef39(org.apache.xmlbeans.XmlString def39);", "title": "" }, { "docid": "e798330ff9ef1cf96374db41d5e9a231", "score": "0.7442342", "text": "void xsetDef37(org.apache.xmlbeans.XmlString def37);", "title": "" }, { "docid": "68904fd9c5b78798078b40ba0988f3cd", "score": "0.73875546", "text": "void setDef41(java.lang.String def41);", "title": "" }, { "docid": "fc1cd2ad81ce47b8c09252bc109fc7e1", "score": "0.7322295", "text": "void xsetDef31(org.apache.xmlbeans.XmlString def31);", "title": "" }, { "docid": "f924f68d0145fe561ca74601d30732e9", "score": "0.7313069", "text": "void xsetDef24(org.apache.xmlbeans.XmlString def24);", "title": "" }, { "docid": "00bb20e6fe4bcf16d3cacdf1885a8e79", "score": "0.7307461", "text": "void xsetDef18(org.apache.xmlbeans.XmlString def18);", "title": "" }, { "docid": "42cf109e3f36c13fc3be55c6783e46a5", "score": "0.72810686", "text": "void xsetDef28(org.apache.xmlbeans.XmlString def28);", "title": "" }, { "docid": "276b3d0d2e7de674d6ebf4a6bc20ae1d", "score": "0.72650355", "text": "void xsetDef9(org.apache.xmlbeans.XmlString def9);", "title": "" }, { "docid": "13b665e44511cf1eb180fbfceed25e5b", "score": "0.7262789", "text": "void xsetDef29(org.apache.xmlbeans.XmlString def29);", "title": "" }, { "docid": "bf1ff664e6001367ee31fe072cfc96f9", "score": "0.7245984", "text": "void xsetDef14(org.apache.xmlbeans.XmlString def14);", "title": "" }, { "docid": "e831132663d367cd9add17d3e191f434", "score": "0.72368366", "text": "void xsetDef25(org.apache.xmlbeans.XmlString def25);", "title": "" }, { "docid": "ae37fd726bae867ea4741d7a651f58f4", "score": "0.72294766", "text": "void xsetDef30(org.apache.xmlbeans.XmlString def30);", "title": "" }, { "docid": "a771b0d6e271219f1055c531b8b08069", "score": "0.7197689", "text": "void xsetDef13(org.apache.xmlbeans.XmlString def13);", "title": "" }, { "docid": "909e3345a6930fbe46c9f42f07ca87db", "score": "0.7193246", "text": "void xsetDef11(org.apache.xmlbeans.XmlString def11);", "title": "" }, { "docid": "4e6bbb5234984319b382a64da3569eb5", "score": "0.71825945", "text": "void xsetDef21(org.apache.xmlbeans.XmlString def21);", "title": "" }, { "docid": "39ab4b56bf7dca37274eb555e4a20d9b", "score": "0.7171719", "text": "void xsetDef5(org.apache.xmlbeans.XmlString def5);", "title": "" }, { "docid": "8cf6ea5f113e8aa726bee166bea6f527", "score": "0.717056", "text": "void setDef43(java.lang.String def43);", "title": "" }, { "docid": "9568efb6aae87b539253d3143b376579", "score": "0.71679926", "text": "void xsetDef22(org.apache.xmlbeans.XmlString def22);", "title": "" }, { "docid": "4ae131e5c0c5b6092ec187259539b962", "score": "0.7153942", "text": "void xsetDef19(org.apache.xmlbeans.XmlString def19);", "title": "" }, { "docid": "109fb101d7b4e303025d2386cb81dd95", "score": "0.7107715", "text": "void setDef11(java.lang.String def11);", "title": "" }, { "docid": "d2e2414706c5f481c4dadd15d3b9d3d0", "score": "0.7106128", "text": "void xsetDef4(org.apache.xmlbeans.XmlString def4);", "title": "" }, { "docid": "65a1a0b811931fcdd793c9e08e9f5b21", "score": "0.70697594", "text": "void xsetDef26(org.apache.xmlbeans.XmlString def26);", "title": "" }, { "docid": "8cb980df77d49bfb55d2fe9c99c20ba2", "score": "0.7068771", "text": "void xsetDef27(org.apache.xmlbeans.XmlString def27);", "title": "" }, { "docid": "3bcef01fce1b54b378183793ae80f304", "score": "0.70510757", "text": "void xsetDef12(org.apache.xmlbeans.XmlString def12);", "title": "" }, { "docid": "ee76732d6cfba67672742cacb7b029c6", "score": "0.7025941", "text": "void setDef14(java.lang.String def14);", "title": "" }, { "docid": "c4e2b898bd0a188a5fccac318defccd7", "score": "0.70118904", "text": "void xsetDef20(org.apache.xmlbeans.XmlString def20);", "title": "" }, { "docid": "f134da3482dea773fa0e66440180f63d", "score": "0.69796526", "text": "void xsetDef3(org.apache.xmlbeans.XmlString def3);", "title": "" }, { "docid": "772191980adc7c96244d053eb05bd242", "score": "0.696346", "text": "void xsetDef6(org.apache.xmlbeans.XmlString def6);", "title": "" }, { "docid": "873ab937c31b575f3158f0724284216b", "score": "0.6956834", "text": "void xsetDef1(org.apache.xmlbeans.XmlString def1);", "title": "" }, { "docid": "4ebe4264032194428f7d78e3d099fc44", "score": "0.68963283", "text": "void xsetDef10(org.apache.xmlbeans.XmlString def10);", "title": "" }, { "docid": "7b74544a26cec901dff4c3a9de412378", "score": "0.6846373", "text": "void xsetDef16(org.apache.xmlbeans.XmlString def16);", "title": "" }, { "docid": "9d201d2be75176534dab86c141640cbb", "score": "0.68354046", "text": "void setDef44(java.lang.String def44);", "title": "" }, { "docid": "97efde3422fd90057c6f708156c9305b", "score": "0.67868966", "text": "void setDef17(java.lang.String def17);", "title": "" }, { "docid": "c84a9c6df6c376493ae123ef68eaea17", "score": "0.6773638", "text": "void xsetDef7(org.apache.xmlbeans.XmlString def7);", "title": "" }, { "docid": "4286db5d2b7e636a4fdb595aaccc0b11", "score": "0.6754314", "text": "void setDef42(java.lang.String def42);", "title": "" }, { "docid": "d3c8d012626e8098fc74c0b20959c5ab", "score": "0.6750155", "text": "void xsetDef8(org.apache.xmlbeans.XmlString def8);", "title": "" }, { "docid": "b20fe964276f84f2349c6296fc6a4cb5", "score": "0.67383313", "text": "void xsetDef32(org.apache.xmlbeans.XmlString def32);", "title": "" }, { "docid": "0c9293c54f2276ccd115bef52a84f7e4", "score": "0.67047095", "text": "void setDef23(java.lang.String def23);", "title": "" }, { "docid": "8a666e04c4631342dab547e12054bf21", "score": "0.66837466", "text": "void setDef15(java.lang.String def15);", "title": "" }, { "docid": "054c15960b5b84a25cc93f88c2c5ff34", "score": "0.66615224", "text": "void setDef40(java.lang.String def40);", "title": "" }, { "docid": "786b7e1deda61002afc32cc6ee5ac9fc", "score": "0.6645373", "text": "void setDef34(java.lang.String def34);", "title": "" }, { "docid": "8f6f1e55aa0cd71e18ecb0a0836567e0", "score": "0.66410434", "text": "void setDef21(java.lang.String def21);", "title": "" }, { "docid": "ce991e19d8c7692351409af187e91c9f", "score": "0.6633408", "text": "void xsetDef2(org.apache.xmlbeans.XmlString def2);", "title": "" }, { "docid": "b807203c23a8d24bda5405b541b88b3e", "score": "0.6561808", "text": "void setDef35(java.lang.String def35);", "title": "" }, { "docid": "145c5d1a250bafcc13ff20c92e306c98", "score": "0.65414625", "text": "void setDef45(java.lang.String def45);", "title": "" }, { "docid": "d722c3540d3fd482ceae6fd723bf1606", "score": "0.6514016", "text": "void setNilDef43();", "title": "" }, { "docid": "a2c198a22e8063419ea401cbdb092ea4", "score": "0.64888734", "text": "void setNilDef41();", "title": "" }, { "docid": "3b290466c449168bb7088acd95749014", "score": "0.6475021", "text": "void setDef22(java.lang.String def22);", "title": "" }, { "docid": "ccff2443819caf69a95ddcd6a4e5cca3", "score": "0.6458878", "text": "void setDef38(java.lang.String def38);", "title": "" }, { "docid": "bd7c2204761d5e469cb7ff833dc7b575", "score": "0.6436406", "text": "void setDef12(java.lang.String def12);", "title": "" }, { "docid": "d7c0c2af735a27df56b1aa500247895e", "score": "0.6425763", "text": "void setDef9(java.lang.String def9);", "title": "" }, { "docid": "2bfec3bf5089e65d3c4e11b676803478", "score": "0.6407075", "text": "void setDef4(java.lang.String def4);", "title": "" }, { "docid": "43d0338290549a261065299bdd55d4c2", "score": "0.6385274", "text": "void setDef39(java.lang.String def39);", "title": "" }, { "docid": "47d5d6e7ae0423f4b6cefe4747500b33", "score": "0.6357454", "text": "void setNilDef17();", "title": "" }, { "docid": "c8ba0e4445e2ce2dda3f889532a3653a", "score": "0.6352669", "text": "void setDef5(java.lang.String def5);", "title": "" }, { "docid": "7d6a08fb687e47aaf0d5d898a741bae5", "score": "0.63447976", "text": "void setDef19(java.lang.String def19);", "title": "" }, { "docid": "58abd84e610f9585e6fd52d6aa2f568a", "score": "0.63371885", "text": "void setDef28(java.lang.String def28);", "title": "" }, { "docid": "2acefe00eb8222bc8dc67e69552fcdd8", "score": "0.63281184", "text": "void setNilDef39();", "title": "" }, { "docid": "2680fcefc514e176a568a93e1b45f499", "score": "0.632763", "text": "void setDef1(java.lang.String def1);", "title": "" }, { "docid": "315be42f86df7885956beeb65b1a847f", "score": "0.6326848", "text": "void setNilDef14();", "title": "" }, { "docid": "1b67e880b67f088b0eb8139fbc556137", "score": "0.6298458", "text": "void setNilDef44();", "title": "" }, { "docid": "bfec501555675b23bdbd72e210c6e1ff", "score": "0.6292681", "text": "void setDef33(java.lang.String def33);", "title": "" }, { "docid": "304506e8fc9672992a308e3582dbd71d", "score": "0.62854034", "text": "void setNilDef15();", "title": "" }, { "docid": "2f98d5509effc4c56ee034975bed4e7b", "score": "0.62851137", "text": "void setNilDef45();", "title": "" }, { "docid": "cb7afcd96eac22592fc2f005f5d5fbf1", "score": "0.6260905", "text": "void setDef31(java.lang.String def31);", "title": "" }, { "docid": "dfd5509e4cc966de37b65f21bb4d8e76", "score": "0.625206", "text": "void setNilDef23();", "title": "" }, { "docid": "87d2a60c6faac703ed2e24e3bf4d7d4e", "score": "0.6250422", "text": "void setDef3(java.lang.String def3);", "title": "" }, { "docid": "70337cd52474f70522f15046f75dc783", "score": "0.6247352", "text": "void setDef29(java.lang.String def29);", "title": "" }, { "docid": "c3f2c6bd451f45917279ce07d089f842", "score": "0.6220595", "text": "void setNilDef33();", "title": "" }, { "docid": "0c9af3429f5b7e3db86ab93189c838ba", "score": "0.6205276", "text": "void setDef37(java.lang.String def37);", "title": "" }, { "docid": "c553c4b40d85a96fc284dc2ffef7ea2e", "score": "0.62028956", "text": "void setNilDef21();", "title": "" }, { "docid": "b1e0fa5aa248c6efd64195f50b25b804", "score": "0.6196509", "text": "void setNilDef13();", "title": "" }, { "docid": "b72714e7d57b694810773500e18a5c26", "score": "0.6184398", "text": "void setNilDef34();", "title": "" }, { "docid": "d4457e38c1e77d7ce9690c46736dd195", "score": "0.61773235", "text": "void setNilDef22();", "title": "" }, { "docid": "0a8e7ff75d1f791e1da3b30d5c56a609", "score": "0.61772996", "text": "void setNilDef42();", "title": "" }, { "docid": "433da75b0aa8eee4cf50b4f6ba27a2aa", "score": "0.6176449", "text": "org.apache.xmlbeans.XmlString xgetDef43();", "title": "" }, { "docid": "28a94fbd0599c26f9ec7e4f92089cf22", "score": "0.6172572", "text": "public abstract void setXml(String arg);", "title": "" }, { "docid": "c89ee631b835fdfd9022b01a54eb1bae", "score": "0.616695", "text": "void setNilDef35();", "title": "" }, { "docid": "718e9ae12751372ce8cdb1f20fd2ff0e", "score": "0.6152812", "text": "void setDef7(java.lang.String def7);", "title": "" }, { "docid": "3dacab46b57a47a004061be246454bf2", "score": "0.61495936", "text": "void setDef13(java.lang.String def13);", "title": "" }, { "docid": "ca11ed365340ad242a689debc4a5548b", "score": "0.6144809", "text": "org.apache.xmlbeans.XmlString xgetDef41();", "title": "" }, { "docid": "cd721b046e979f8252b9709746b29e83", "score": "0.61373717", "text": "void setNilDef7();", "title": "" }, { "docid": "3bf0b37fe740cac91419d05a38bf0417", "score": "0.6136977", "text": "org.apache.xmlbeans.XmlString xgetDef42();", "title": "" }, { "docid": "9660f4f893bcbfdc205c0678fdf5976f", "score": "0.6126055", "text": "org.apache.xmlbeans.XmlString xgetDef15();", "title": "" }, { "docid": "6a35c4250c82c5670af259c719b03695", "score": "0.61091816", "text": "org.apache.xmlbeans.XmlString xgetDef33();", "title": "" }, { "docid": "fe246cf183381c94fee9e420153b3f37", "score": "0.6107692", "text": "org.apache.xmlbeans.XmlString xgetDef40();", "title": "" }, { "docid": "edf80bbadbf5c544c655d12707b0a9da", "score": "0.6102622", "text": "org.apache.xmlbeans.XmlString xgetDef45();", "title": "" } ]
57ceb8ccb49cec9fee35e5d3bf3d4f3c
Get proposals to this assistant
[ { "docid": "addb69bbe8367339b958b5af39fa5d19", "score": "0.5854701", "text": "public void addProposals(IProposal[] proposals) {\n if (proposals != null) {\n for (IProposal proposal : proposals) {\n this.contributedProposals.add(proposal);\n activatorSet.add(proposal.getValue().charAt(0));\n }\n }\n }", "title": "" } ]
[ { "docid": "d0bee89bc051a6530b7b17d0e9590ca6", "score": "0.70334536", "text": "public ICompletionProposal[] getContentProposals(IParseController controller, int offset, ITextViewer viewer);", "title": "" }, { "docid": "837633db440c34683afdf6f72b6b9886", "score": "0.69007844", "text": "public Map<Integer, Proposal> getProposals() {\n\treturn proposals;\n }", "title": "" }, { "docid": "b182bb0144606ef11e383cdf9b11b22d", "score": "0.6365722", "text": "public IProposal getProposal()\n\t{\n\t\treturn proposal;\n\t}", "title": "" }, { "docid": "9dedab3095749f4313a2d932877243c8", "score": "0.63342434", "text": "private void fillInProposals() {\n for (Word verb : verbs) {\n for (Word noun : nouns) {\n String promptBegin = promptStarts.get((int) (Math.random() * (promptStarts.size())));\n Proposal proposal = constructProposal(verb, noun, promptBegin);\n proposals.add(proposal);\n }\n }\n }", "title": "" }, { "docid": "1eae3b13b602b62eab542ac29cefd918", "score": "0.6319974", "text": "void listenForProposals() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\n ACLMessage msg = myAgent.receive(mt);\n\n if (msg != null) {\n // System.out.println(\" received proposal\");\n\n if (indexOfMax(pValues).equals(ownerTaskType)) {\n // System.out.println(\"accepting proposal\");\n ACLMessage replay = new ACLMessage(ACLMessage.CONFIRM);\n try {\n TransferS1MsgObj obj = (TransferS1MsgObj) msg.getContentObject();\n obj.isNeeded = true;\n replay.setContentObject(obj);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (UnreadableException e) {\n e.printStackTrace();\n }\n replay.addReceiver(msg.getSender());\n owner.send(replay);\n\n }\n }\n }", "title": "" }, { "docid": "f803d32925d0c6995002cbb1d989626d", "score": "0.621954", "text": "public List<Proposal> listProposalsActive(int stateId) {\n return proposalsDatabaseHandler.getActiveProposals();\n }", "title": "" }, { "docid": "30ed2c1c920ae014bbb9983bbd401c7d", "score": "0.6198195", "text": "public void getSuggest() {\n ListSuggestAchatTask listAchatTask = new ListSuggestAchatTask(this);\n listAchatTask.execute();\n\n }", "title": "" }, { "docid": "e90bca50911b76a07e58bfd69274bb7e", "score": "0.61854255", "text": "public List<Proposal> listUncheckedProposals() {\n return proposalsDatabaseHandler.getProposalsEmptyTitle();\n }", "title": "" }, { "docid": "9c96b16d902f44c3ecd85a605fb33e3d", "score": "0.5969451", "text": "@Override\n\tpublic ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,\n\t\t\tint offset) {\t\t\n\t\tLazyList<ICompletionProposal> proposals = new LazyList<ICompletionProposal>();\n\t\t\n\t\tEObject node = getNode(offset);\n\t\tif (node instanceof Tag) {\n\t\t\tTag tag = (Tag) node;\n\t\t\twhile (tag != null) {\n\t\t\t\t\n\t\t\t\tif (tag instanceof TemplateTag) {\n\t\t\t\t\tDoclet doclet = ((TemplateTag) tag).getDoclet();\n\t\t\t\t\tif (doclet != null) {\n\t\t\t\t\t\tfor (Param param : doclet.getParams()) {\n\t\t\t\t\t\t\tString rplcmnt = param.getName();\n\t\t\t\t\t\t\tint length = rplcmnt.length();\n\t\t\t\t\t\t\tCompletionProposal proposal = new CompletionProposal(rplcmnt, offset, 0, length);\n//\t\t\t\t\t\tviewer.getDocument().get(offset, 50);\n\t\t\t\t\t\t\tproposals.add(proposal);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ttag = tag.getParent();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn proposals.toArray(new ICompletionProposal[proposals.size()]);\n\t}", "title": "" }, { "docid": "e651b07e65fceccf214cfddd073c5480", "score": "0.5945512", "text": "private void listenForProposals() {\n // Prepare the template to get proposals\n MessageTemplate mt = MatchPerformative(ACLMessage.PROPOSE);\n\n // Receive all proposals/refusals from seller agents\n ACLMessage reply = myAgent.receive(mt);\n if (reply != null) {\n // Reply received\n int sellerQuantity = Integer.parseInt(reply.getUserDefinedParameter(\"quantity\"));\n float price = Float.parseFloat(reply.getUserDefinedParameter(\"price\"));\n System.out.println(\"[\"+myAgent.getName()+\"] Received proposal for quantity=\"+sellerQuantity+\" and price=\"+price);\n // Is this offer the best so far ?\n if (bestSeller == null || price < bestPrice) {\n // Yes:\n // Remember the price and the sender\n bestPrice = price;\n bestSeller = reply.getSender();\n }\n repliesCount++;\n // Have all replies been received ?\n if (repliesCount >= sellerAgents.size()||new Date().getTime()-start.getTime()>1000) {\n // Yes:\n // Has the agent enough money to make an offer ?\n if (agent.getMoney() >= bestPrice) {\n // Yes:\n // Send the purchase order to the seller that provided the best offer\n ACLMessage order = new ACLMessage(ACLMessage.ACCEPT_PROPOSAL);\n order.addReceiver(bestSeller);\n // Calculate the quantity of products the agent can buy\n boughtQuantity = Math.min((int) (agent.getMoney() / bestPrice), sellerQuantity);\n String quantity = String.valueOf(boughtQuantity);\n order.addUserDefinedParameter(\"quantity\", quantity);\n myAgent.send(order);\n\n // Remove this agent from those who will receive a REJECTED_PROPOSAL\n sellerAgents.remove(bestSeller);\n // Go to state 2 and listen for confirmation\n state = 2;\n }\n else {\n // Go to state 3 and quit the purchase\n state = 3;\n }\n\n // Send a REJECT_PROPOSAL to all sellers that should receive it\n ACLMessage reject = new ACLMessage(ACLMessage.REJECT_PROPOSAL);\n System.out.println(\"[\"+myAgent.getName()+\"] Rejecting bad offers\");\n for (AID seller : sellerAgents) {\n reject.addReceiver(seller);\n }\n agent.send(reject);\n }\n }\n else {\n if(new Date().getTime()-start.getTime()>1000){\n myAgent.removeBehaviour(this);\n }\n block();\n }\n }", "title": "" }, { "docid": "0153fd504aca97fd1cc6d70a4e4586f8", "score": "0.5936576", "text": "private IJavaCompletionProposal[] proposalsFor(int offset, int length, String className, String source) {\n\t\tproblemsFor(offset, length, className, source);\n\t\treturn proposals();\n\t}", "title": "" }, { "docid": "4d5c270c30224ac5ffa37a8d952a5b5c", "score": "0.5856534", "text": "public interface IContentProposer extends ILanguageService {\n /**\n * Returns an array of content proposals applicable relative to the AST of the given\n * parse controller at the given position.\n * \n * The ITextViewer is provided for purposes such as accessing the IDocument with respect\n * to which content proposals are sought.\n * \n * @param controller A parse controller from which the AST of the document being edited\n * can be obtained\n * @param int The offset for which content proposals are sought\n * @param viewer The viewer in which the document represented by the AST in the given\n * parse controller is being displayed (may be null for some implementations)\n * @return An array of completion proposals applicable relative to the AST of the given\n * parse controller at the given position\n */\n public ICompletionProposal[] getContentProposals(IParseController controller, int offset, ITextViewer viewer);\n}", "title": "" }, { "docid": "4381ecb4152d95e473e95ac2ceb0ac08", "score": "0.5712076", "text": "private void transmitRecoveredProposals() {\n\t for(Proposal p : proposals.values()) {\n\t\tPaxosMessage msg = new PaxosMessage();\n\t\tmsg.setState(PaxosState.Phase.PROPOSE);\n\t\tmsg.setSender(Replica.this);\n\t\tmsg.addPayload(p);\n\n\t\t// Contact a canonical Proposer.\n\t\tsend(PaxosRole.Role.PROPOSER, msg);\n\t }\n\t}", "title": "" }, { "docid": "df1e901fd16f5f133f7130c027cd2fc0", "score": "0.56949216", "text": "public GossipSuggestionList getSuggestions() {\n return r;\n }", "title": "" }, { "docid": "689ef94d7795b7a71c1daf7f0c7a129b", "score": "0.5655259", "text": "public ViewerInputContentProposalProvider(String[] proposals) {\n\t\tsuper(proposals);\n\t}", "title": "" }, { "docid": "15ecbcd56cf67d049e7f018e816e1996", "score": "0.5613332", "text": "@Override\r\n\tpublic List<LifeProposal> findAllLifeProposal() {\n\t\treturn lifeproposalRepository.findAll();\r\n\t}", "title": "" }, { "docid": "1f605a795ff8da0b97b43eb6878dd066", "score": "0.52933145", "text": "public String getAdditionalProposalInfo() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0c475c0e128bfedeab6a005d3968e212", "score": "0.5252685", "text": "java.util.List<com.google.protos.speech.service.SpeechService.RecognitionInterpretation> \n getInterpretationList();", "title": "" }, { "docid": "08b28cb02638bb03062d33e7a5429bbf", "score": "0.5215091", "text": "public static List<Paragraph> getParsedCompetenceParagraphs() {\n\t\treturn parsedCompetenceParagraphs;\n\t}", "title": "" }, { "docid": "5d97e4d9b315bc0a554b0703e1f19930", "score": "0.5194787", "text": "private void callForProposal() {\n // Update the list of seller agents\n DFAgentDescription template = new DFAgentDescription();\n ServiceDescription sd = new ServiceDescription();\n sd.setType(agent.getSupply() + \"-seller\");\n template.addServices(sd);\n\n sellerAgents = new ArrayList<AID>();\n try {\n DFAgentDescription[] result = DFService.search(agent, template);\n System.out.println(\"Found the following seller agents:\");\n for(int i = 0; i < result.length; ++i){\n sellerAgents.add(result[i].getName());\n System.out.println(result[i].getName());\n }\n }\n catch (FIPAException fe) {\n fe.printStackTrace();\n }\n\n // Send the cfp to all sellers\n ACLMessage cfp = new ACLMessage(ACLMessage.CFP);\n for (AID sellerAgent : sellerAgents) {\n cfp.addReceiver(sellerAgent);\n }\n myAgent.send(cfp);\n System.out.println(\"[\"+myAgent.getName()+\"] Sent call for proposal\");\n\n // Update the attributes values\n state = 1;\n }", "title": "" }, { "docid": "8069f41ffb1fcfbdac11508c5adf5ffc", "score": "0.5180258", "text": "public java.lang.String getProposalId() {\r\n return proposalId;\r\n }", "title": "" }, { "docid": "afb487d5fb2f73c4782359ae3b4d9c42", "score": "0.5147412", "text": "public String getSuggestedText() {\n return this.suggestedText;\n }", "title": "" }, { "docid": "e60f5c8e40d6c6b8f89635467034c0b2", "score": "0.5100299", "text": "private void decideRecoveredProposals() {\n\t for(PaxosValue p : decisions.values()) {\n\t\tapplyDecision(p);\n\t }\n\t}", "title": "" }, { "docid": "effd7620d738874871e3c115022333f7", "score": "0.50665444", "text": "public java.util.Vector getProposalPersonData() {\r\n return proposalPersonData;\r\n }", "title": "" }, { "docid": "57c6cccc9efb96ad2b99c1df9db725f0", "score": "0.5050125", "text": "java.util.List<com.google.protos.speech.service.SpeechService.RecognitionHypothesis> \n getHypothesisList();", "title": "" }, { "docid": "4179e07c136f193a580b3bb73f53fa96", "score": "0.50216097", "text": "void callForProposal(TaskType proposedTaskType) {\n ACLMessage cfp = new ACLMessage(ACLMessage.CFP);\n try {\n cfp.setContentObject(new TransferS1MsgObj(null, proposedTaskType, true));\n } catch (IOException e) {\n e.printStackTrace();\n }\n cfp.addReceiver(s2ExchangeTopic);\n myAgent.send(cfp);\n\n //waits for replay (y/n)\n // MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.CONFIRM);\n // ACLMessage msg = myAgent.receive(mt);\n // if (msg != null) {\n// Message received. Process it\n // System.out.println(\"received confirmation\");\n\n //} else {\n // block(100);\n //}\n\n }", "title": "" }, { "docid": "2e8bf30f0ab2a8a8ab11785b194ef628", "score": "0.4990456", "text": "Proteindata getProteinData();", "title": "" }, { "docid": "987ec1a1ad45d5ab28f2fc3bbbeb7dc0", "score": "0.49644336", "text": "public com.microsoft.schemas.crm._2011.contracts.AppointmentProposal getAppointmentProposal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.crm._2011.contracts.AppointmentProposal target = null;\r\n target = (com.microsoft.schemas.crm._2011.contracts.AppointmentProposal)get_store().find_element_user(APPOINTMENTPROPOSAL$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "title": "" }, { "docid": "04e4f8adeb40ee9d723c7ad0339618ba", "score": "0.49612778", "text": "public String getProteinDescription() {\r\n return this.proteinDescripion;\r\n }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "62a2f207729fad0770959c94d035d66e", "score": "0.49178225", "text": "public Alternatives getAlternatives() { return cAlternatives; }", "title": "" }, { "docid": "2007c6596522d76ef4c8ec1a22d6be8d", "score": "0.49114862", "text": "@Override\n\tpublic String[] getCurrentQuestText(int pid) {\n\t\tString additional[] = { \"100 Knowledge Points\" };\n\t\tString toRet[] = {\n\t\t\t\t\"<br />You successfully expanded your Empire to four towns! Veni, Vidi, Vici achievement unlocked!<br /><br />\"+getRewardBlock(40,pid,null),\"No Hint\"};\n\n\t\treturn toRet;\n\t}", "title": "" }, { "docid": "a82a19fc0294468ab903dc8906a75d12", "score": "0.48958775", "text": "List<Proposal> generateProposalList(int size) {\n List<Proposal> result = new ArrayList<>();\n\n // this ensures that we can generate the maximum amount of proposals when the size given is out\n // of range\n if (size > proposals.size() || size <= 0) {\n size = proposals.size();\n }\n\n List<Proposal> proposalsCopy = new ArrayList<>(proposals);\n for (int i = 0; i < size; i++) {\n Proposal proposal = proposalsCopy.get((int) (Math.random() * (proposalsCopy.size())));\n result.add(proposal);\n proposalsCopy.remove(proposal);\n }\n return result;\n }", "title": "" }, { "docid": "c74721618b0741f0d12f079fc7afc6b5", "score": "0.48924735", "text": "private void checkProposalsOrder(ICompletionProposal[] props) {\r\n\t\tICompletionProposal prevProp = null;\r\n\r\n\t\tfor (ICompletionProposal currProp : props) {\r\n\t\t\tif (prevProp != null) {\r\n\t\t\t\tString curDispString = currProp.getDisplayString();\r\n\t\t\t\tString prevDispString = prevProp.getDisplayString();\r\n\t\t\t\tint compRes = prevDispString.compareToIgnoreCase(curDispString); \r\n\r\n\t\t\t\t/* \r\n\t\t\t\t * current proposals display string must be\r\n\t\t\t\t * greater or equal to previous\r\n\t\t\t\t */\r\n\t\t\t\tassertTrue(\"completion proposals not sorted\", compRes <= 0);\r\n\t\t\t}\r\n\r\n\t\t\tprevProp = currProp;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "19a2f3e408c137c2a9134e1e940bd9ca", "score": "0.4885187", "text": "Question[] GetCurrentQuestions();", "title": "" }, { "docid": "b9aa9316a700057a8151f7dec0ba2f13", "score": "0.4870753", "text": "Iterable<Intent> getPending();", "title": "" }, { "docid": "c659b9252ff2f3014d6cd9e47ef145f2", "score": "0.48673558", "text": "public List<String> findProposalsFromBeamlineLogin(String arg0) throws Exception_Exception {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3de8649aef7a61161a85c55f41fde08c", "score": "0.483137", "text": "MatchSnippet[] getSnippets();", "title": "" }, { "docid": "58188bb71623cb4eb2ded1c2d757734a", "score": "0.48298046", "text": "public void populateProposalPerson(ProposalPerson person, ProposalDevelopmentDocument document);", "title": "" }, { "docid": "03dc8b62f8c27543167c82e38ed95472", "score": "0.48193148", "text": "public final @NonNull BiFunction<@NonNull CommandContext<C>, @NonNull String,\n @NonNull List<String>> getSuggestionsProvider() {\n return this.suggestionsProvider;\n }", "title": "" }, { "docid": "52c4e3e01d3f515c05c18d4e3dd57ea3", "score": "0.48105413", "text": "private void createLinksBetweenProposals() throws SystemException, PortalException {\n for (int tierIdx = amountOfContestTiers - 1; tierIdx >= 1; tierIdx--) {\n final ContestTierDataStructure contestTierDataStructure = contestTierToDataStructureMap.get(tierIdx);\n final ContestTierDataStructure nextContestTierDataStructure = contestTierToDataStructureMap.get(tierIdx - 1);\n\n for (int contestIdx = 0; contestIdx < contestTierDataStructure.getContests().size(); contestIdx++) {\n final Contest contest = contestTierDataStructure.getContests().get(contestIdx);\n final List<Proposal> contestProposals = contestTierDataStructure.getProposals(contestIdx);\n\n // Create proposal links for each proposal of a contest\n for (int fromProposalIdx = 0; fromProposalIdx < contestTierDataStructure.getAmountOfProposals(); fromProposalIdx++) {\n String sectionText = \"These are the proposals we link to:\\n\";\n\n // Iterate over all contests and proposals of the contest tier below and create a link with probability\n for (int toContestIdx = 0; toContestIdx < nextContestTierDataStructure.getContests().size(); toContestIdx++) {\n final Contest toContest = nextContestTierDataStructure.getContests().get(toContestIdx);\n for (int toProposalIdx = 0; toProposalIdx < nextContestTierDataStructure.getAmountOfProposals(); toProposalIdx++) {\n final Proposal toProposal = nextContestTierDataStructure.getProposals(toContestIdx).get(toProposalIdx);\n if (doWithProbability(probabilityToLinkToOtherProposal)) {\n sectionText += \"http://127.0.0.1:8080\" + ProposalLocalServiceUtil.getProposalLinkUrl(toContest, toProposal) + \"\\n\\n\";\n contestTierDataStructure.getProposalLinks(contestIdx).addProposalLink(fromProposalIdx, tierIdx - 1, toContestIdx, toProposalIdx, toProposal.getProposalId());\n }\n }\n }\n\n //1300907 is the sub proposal plan section definition\n testInstance.proposalAttributeLocalService.setAttribute(\n contestProposals.get(fromProposalIdx).getAuthorId(),\n contestProposals.get(fromProposalIdx).getProposalId(),\n ProposalAttributeKeys.SECTION,\n 1300907L,\n sectionText);\n }\n\n }\n }\n }", "title": "" }, { "docid": "31c878e6d7f23dccb4a15b42d3e216e9", "score": "0.47986007", "text": "@Override\n\tpublic String parcours(A4Solution ans) {\n\t\tthis.parse(ans);\n\t\t// 2. On renvoie le parcours de la solution\n\t\treturn getParcours();\n\t}", "title": "" }, { "docid": "510560bb9bc46cbdc351e4065e91d46d", "score": "0.479159", "text": "public String[] getSelectedCompetences(){\n return selectedCompetences;\n }", "title": "" }, { "docid": "59a681fd3ad288d5c795ac1919703ccb", "score": "0.47831422", "text": "public void setProposal(IProposal proposal)\n\t{\n\t\tthis.proposal = proposal;\n\t}", "title": "" }, { "docid": "bef9b1cdaec0ee4e60a0f32c97c99df1", "score": "0.4779519", "text": "public List<String> getSuggestions(String word) ;", "title": "" }, { "docid": "fa821463e16ae900e5906496bc309db2", "score": "0.47645426", "text": "protected void showPopup() {\n/* 289 */ this.autoCompletionPopup.show(this.completionTarget);\n/* 290 */ selectFirstSuggestion(this.autoCompletionPopup);\n/* */ }", "title": "" }, { "docid": "36010bb7f29b4a212d3ff258304d418d", "score": "0.4763786", "text": "public List<String> getRecommendations() {\n return recommendations;\n }", "title": "" }, { "docid": "6b0cc4cc3f8bb9b2f843e37e407c0655", "score": "0.47619048", "text": "int getAssist();", "title": "" }, { "docid": "2d1eb95c8525802a9a10f7d5ef5d54e1", "score": "0.47529048", "text": "public IFuture<Integer> callForProposal(String title)\r\n\t{\r\n\t\tfinal Future<Integer>\tret\t= new Future<Integer>();\r\n\t\tfinal IGoal\tgoal\t= agent.getGoalbase().createGoal(\"cnp_make_proposal\");\r\n\t\tgoal.getParameter(\"cfp\").setValue(title);\r\n\t\tgoal.addGoalListener(new IGoalListener()\r\n\t\t{\r\n\t\t\tpublic void goalFinished(AgentEvent ae)\r\n\t\t\t{\r\n\t\t\t\tif(goal.isSucceeded())\r\n\t\t\t\t{\r\n\t\t\t\t\tret.setResult((Integer)goal.getParameter(\"proposal\").getValue());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tret.setException(goal.getException()!=null ? goal.getException() : new GoalFailureException());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void goalAdded(AgentEvent ae)\r\n\t\t\t{\r\n\t\t\t}\r\n\t\t});\r\n\t\tagent.getGoalbase().dispatchTopLevelGoal(goal);\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "4ebf01e58adeed2f9305389718d80869", "score": "0.47512797", "text": "private void promptSpeechInput() {\n\t\tIntent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,\n\t\t\t\tRecognizerIntent.LANGUAGE_MODEL_FREE_FORM);\n\t\tintent.putExtra(RecognizerIntent.EXTRA_LANGUAGE,\n\t\t\t\tLocale.GERMANY.toString());\n\t\tintent.putExtra(RecognizerIntent.EXTRA_PROMPT,\n\t\t\t\tgetString(R.string.speech_prompt));\n\t\ttry {\n\t\t\tstartActivityForResult(intent, 100);\n\t\t} catch (ActivityNotFoundException a) {\n\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\tgetString(R.string.speech_not_supported),\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}\n\t}", "title": "" }, { "docid": "ac7a92bfb9f5674594faaee7207689e1", "score": "0.47458732", "text": "public ArrayList<Entry<String,Integer>> getAutoCompletionList() {\n\t\tautoCompletionList = loadAutoCompletionFile();\n\t\treturn autoCompletionList;\n\t}", "title": "" }, { "docid": "0b969c74774ea574e39b4ff07d65062d", "score": "0.47408548", "text": "public AgainstProposalData createAgainstProposalData() {\n return new AgainstProposalData();\n }", "title": "" }, { "docid": "5d63604f38c001cb9fa1b4b9ce1baf72", "score": "0.47353777", "text": "private Candidates getPopupCandidates(Key key) {\n Candidates candidates = null;\n\n // get the appropriate candidates based on the key pressed\n if (key == mKeyA) {\n candidates = getCandidatesForA(isIsolateOrInitial());\n } else if (key == mKeyE) {\n candidates = getCandidatesForE(isIsolateOrInitial());\n } else if (key == mKeyI) {\n candidates = getCandidatesForI(isIsolateOrInitial());\n } else if (key == mKeyO) {\n candidates = getCandidatesForO(isIsolateOrInitial());\n } else if (key == mKeyU) {\n candidates = getCandidatesForU(isIsolateOrInitial());\n } else if (key == mKeyNA) {\n candidates = getCandidatesForNA(isIsolateOrInitial());\n } else if (key == mKeyBA) {\n candidates = getCandidatesForBA();\n } else if (key == mKeyQA) {\n candidates = getCandidatesForQA();\n } else if (key == mKeyGA) {\n candidates = getCandidatesForGA(isIsolateOrInitial());\n } else if (key == mKeyMA) {\n candidates = getCandidatesForMA();\n } else if (key == mKeyLA) {\n candidates = getCandidatesForLA();\n } else if (key == mKeySA) {\n candidates = getCandidatesForSA();\n } else if (key == mKeyTADA) {\n candidates = getCandidatesForTADA(isIsolateOrInitial());\n } else if (key == mKeyCHA) {\n candidates = getCandidatesForCHA();\n } else if (key == mKeyJA) {\n candidates = getCandidatesForJA();\n } else if (key == mKeyYA) {\n candidates = getCandidatesForYA(isIsolateOrInitial());\n } else if (key == mKeyRA) {\n candidates = getCandidatesForRA();\n } else if (key == mKeyKeyboard) {\n candidates = getCandidatesForKeyboard();\n } else if (key == mKeyComma) {\n candidates = getCandidatesForComma();\n } else if (key == mKeySpace) {\n candidates = getCandidatesForSpace();\n }\n\n return candidates;\n }", "title": "" }, { "docid": "af8e41b07b106edb5e8485b95d82d6ff", "score": "0.47343907", "text": "Proposal generateEmptyProposal() {\n return constructProposal(new Verb(\"\", 0), new Noun(\"\", 0, false), \"\");\n }", "title": "" }, { "docid": "66d00080b013be87a65ee37c56544efc", "score": "0.47272667", "text": "public String getPeptideSequence() {\r\n return peptideSequence;\r\n }", "title": "" }, { "docid": "66d00080b013be87a65ee37c56544efc", "score": "0.47272667", "text": "public String getPeptideSequence() {\r\n return peptideSequence;\r\n }", "title": "" } ]
5740a78ee85599e3efebd44956826ecd
Calculate the sum of distances customers must travel from each location in storeLocations to the given location
[ { "docid": "7cb2ccf8a1eaf9df928fd5337699c8df", "score": "0.70408857", "text": "public int totalTravelDistance( int loc ) {\n if( storeLocations == null) {\n return -1;\n }\n int totalDist = 0;\n for( int i : storeLocations ) {\n totalDist += Math.abs( i - loc );\n }\n return totalDist;\n }", "title": "" } ]
[ { "docid": "5ee9c8e845b22eca85edc7b861152b93", "score": "0.6706089", "text": "private Map<Store, Integer> __getStoreDistances(\n\t\t\tfinal Collection<Store> stores, final String destinationLocation\n\t\t\t) {\n\t\tfinal Map<Store, Integer> result = new HashMap<Store, Integer>();\n\n\t\tfor (final Store store : stores) {\n\t\t\tfinal String location = store.getLocation();\n\t\t\tresult.put(store, this.__getStoreDistance(location, destinationLocation));\n\t\t}\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "9e0310ab055db031b8f7a2ff6b3437cb", "score": "0.620614", "text": "public static double calculateDistance()\n\t{\n\t\tPolylineOptions routedrawing = new PolylineOptions();\n\t\tfor(LatLng l : locationsPolyline)\n\t\t{\n\t\t\troutedrawing.add(l);\n\t\t}\n\t\t\n\t\tfloat totalDistance = 0;\n\n\t\tfor (int i = 1; i < routedrawing.getPoints().size(); i++)\n\t\t{\n\t\t\tLocation currLocation = new Location(\"this\");\n\t\t\tcurrLocation.setLatitude(routedrawing.getPoints().get(i).latitude);\n\t\t\tcurrLocation.setLongitude(routedrawing.getPoints().get(i).longitude);\n\n\t\t\tLocation lastLocation = new Location(\"this\");\n\t\t\tcurrLocation.setLatitude(routedrawing.getPoints().get(i - 1).latitude);\n\t\t\tcurrLocation.setLongitude(routedrawing.getPoints().get(i - 1).longitude);\n\t\t\ttotalDistance += lastLocation.distanceTo(currLocation);\n\t\t}\n\t\treturn round(totalDistance/1E8,1);\n\t}", "title": "" }, { "docid": "7d0807fc036b65a957b7a35d34131f2f", "score": "0.6139975", "text": "public double calcDistance(CTAStation location){\n\t\treturn super.calcDistance(location);\n\t}", "title": "" }, { "docid": "97fb20683f5adb28d2d6a1109c7cd06e", "score": "0.6108453", "text": "public double calculateDistance(double userLatitude, double userLongitude, double foodTruckLatitude, double foodTruckLongitude);", "title": "" }, { "docid": "1ae111d96ecdb9046a4a4bf45f0df318", "score": "0.5908646", "text": "public double measure(Location a, Location b){\n\n //<editor-fold desc=\"[shit i'm too stupid for to understand]\">\n double radius = 6378.137; // Radius of earth in KM\n double dLat = b.getLatitude() * Math.PI / 180 - a.getLatitude() * Math.PI / 180;\n double dLon = b.getLongitude() * Math.PI / 180 - a.getLongitude() * Math.PI / 180;\n double _a =\n Math.sin(dLat/2) * Math.sin(dLat/2) +\n Math.cos(a.getLatitude() * Math.PI / 180)\n * Math.cos(b.getLatitude() * Math.PI / 180)\n * Math.sin(dLon/2)\n * Math.sin(dLon/2);\n double c = 2 * Math.atan2(Math.sqrt(_a), Math.sqrt(1-_a));\n double distance = (radius * c) * 1000; // meters\n //</editor-fold>\n\n Log.i(\"Locations:\", \"Distance: \" + distance);\n distances.add(distance);\n return distance;\n }", "title": "" }, { "docid": "d0b94d65c647f087d1ff31099b4957ea", "score": "0.5781252", "text": "private Double calculateDistance (String location1, String location2){\n String loc1[] = location1.split(\",\");\n String loc2[] = location2.split(\",\");\n \n Double lat1= Double.parseDouble(loc1[0]);\n Double lat2= Double.parseDouble(loc2[0]);\n \n Double lon1 = Double.parseDouble(loc1[1]);\n Double lon2 = Double.parseDouble(loc2[1]);\n \n final int R = 6371; // Radius of the earth\n\n Double latDistance;\n latDistance = Math.toRadians(lat2 - lat1);\n Double lonDistance = Math.toRadians(lon2 - lon1);\n Double a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2)\n + Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2))\n * Math.sin(lonDistance / 2) * Math.sin(lonDistance / 2);\n Double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double distance = R * c * 1000; // convert to meters\n\n double height = 0.0;\n distance = Math.pow(distance, 2) + Math.pow(height, 2);\n return Math.sqrt(distance);\n \n }", "title": "" }, { "docid": "71698bf8bbf1577488cd843c74887cb5", "score": "0.5748983", "text": "public double getTotalDist(int[][] matrix, Pointd[] points) {\n \n int i, j;\n double total = 0;\n int[] costArray = new int[matrix.length];\n\n //Fill intial cost array with zeros\n for(i = 0; i < costArray.length; i++) \n costArray[i] = 0;\n\n //Iterate through salesman\n for(i = 0; i < matrix.length; i++) \n\n //Iterate through cities\n for(j = 1; j<matrix[i].length; j++) \n\n //Update cost position\n costArray[i] += computeDistance(points[matrix[i][j-1]], points[matrix[i][j]]);\n\n //Sum up all costs in costArray, append to returning total variable\n for(i = 0; i < costArray.length; i++)\n total += costArray[i];\n \n return total;\n }", "title": "" }, { "docid": "239374c8244c7f15a6778feb32035c27", "score": "0.57230395", "text": "public double getLocationCost() {\r\n return locationCost;\r\n }", "title": "" }, { "docid": "b8bf7e4e66fb2071012c00e2efb0c9d1", "score": "0.56674826", "text": "private int __getStoreDistance(\n\t\t\tfinal String originLocation, final String destinationLocation\n\t\t\t) {\n\t\t// currently simply abs (compareTo):\n\t\treturn Math.abs(destinationLocation.compareTo(originLocation));\n\t}", "title": "" }, { "docid": "d3568a0e75772f9993bfea6d95203775", "score": "0.56480426", "text": "private static double getdistance(City[] c) {\n\t\tdouble dist=0;\n\t\tfor(int j=0; j<c.length-1; j++) {\n\t\t\tdist+=c[j].distanceTo(c[j+1]);\t\t//adds distant from on point to the next through all points\t\t\n\t\t}\t\n\t\treturn dist;\n\t}", "title": "" }, { "docid": "2d0c35b2caeec361e5803d2227965f83", "score": "0.56321126", "text": "public double calculateTrucksRouteDistance(Truck truck){\n double totalDistance = 0;\n\n Address truckLocation = truck.getCurrentLocation();\n\n for (int i = 0; i < sortedDeliveries.size(); i++) {\n Address houseLocation = sortedDeliveries.get(i);\n totalDistance += houseLocation.calculateDistanceFromLocation(truckLocation);\n truckLocation = houseLocation;\n\n }\n return totalDistance;\n }", "title": "" }, { "docid": "b7cf62dec0bcfc3f6231839e5280c17a", "score": "0.56242114", "text": "private int sumOfDistance(int[] nestRoute) {\r\n int sum = 0;\r\n for (int i = 1; i < nestRoute.length; i++) {\r\n sum += distances[nestRoute[i]][nestRoute[i - 1]];\r\n if (sum < location.get(nestRoute[i]).getLTW()) {\r\n int waitingTime = location.get(nestRoute[i]).getLTW() - sum;\r\n sum += waitingTime;\r\n }\r\n }\r\n return sum;\r\n }", "title": "" }, { "docid": "d47470fd910c0bccb609f966fb196874", "score": "0.5610262", "text": "private static double nodesDistance(Node node1, Node node2, DataSet locationMap, double x, double y, double z) {\n //calculate distance between two nodes based on their locations\n //simple starter is simply the taxicab distance:\n //calc differences in X, Y, and Z axis, then sum them together.\n int column1 = locationMap.getColumn(node1);\n int column2 = locationMap.getColumn(node2);\n\n //System.out.println(column1);\n\n double value11 = locationMap.getDouble(0,column1);\n double value12 = locationMap.getDouble(1,column1);\n double value13 = locationMap.getDouble(2,column1);\n\n double value21 = locationMap.getDouble(0,column2);\n double value22 = locationMap.getDouble(1,column2);\n double value23 = locationMap.getDouble(2,column2);\n\n //taxicab distance\n //double taxicab = Math.abs(value11 - value21) + Math.abs(value12 - value22) + Math.abs(value13 - value23);\n //euclidian distance instead of taxicab\n double euclid = Math.sqrt((value11 - value21)*x*(value11 - value21)*x+(value12 - value22)*y*\n (value12 - value22)*y+(value13 - value23)*z*(value13 - value23)*z );\n\n return euclid;\n }", "title": "" }, { "docid": "f1bf73817770932c2708b50ca926a335", "score": "0.56098855", "text": "private static double distance(Location loc, double d1, double d2, double d3)\n {\n double d4 = loc.getX() - d1;\n double d5 = loc.getY() - d2;\n double d6 = loc.getZ() - d3;\n \n return d4*d4 + d5*d5 + d6*d6;\n }", "title": "" }, { "docid": "1f558257db5fe10c99d8415db8a048c2", "score": "0.559714", "text": "private Invoice processSeriesToTotalAmount(List<SeriesOfLocationsOnRoad> seriesOfLocationsOnRoad) {\n\r\n\t\tLocation lastLocationOfList = null;\r\n\t\tDouble rateOfLastList = null;\r\n\r\n\t\tfor (SeriesOfLocationsOnRoad serie : seriesOfLocationsOnRoad) {\r\n\r\n\t\t\tif (lastLocationOfList != null) {\r\n\t\t\t\tLocation firstLocationOfList = serie.getLocations().get(0);\r\n\t\t\t\tdouble kilometers = calculateDistance(lastLocationOfList, firstLocationOfList);\r\n\r\n\t\t\t\t//Als het kilometertarief van de laatste lijst kleiner is dan die van de huidige lijst\r\n\t\t\t\tif (rateOfLastList != null && rateOfLastList < this.getRate(firstLocationOfList.getDate(), serie.getRoad())) {\r\n\t\t\t\t\tinvoice.addToTotalAmount(kilometers, rateOfLastList);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tinvoice.addToTotalAmount(kilometers, this.getRate(firstLocationOfList.getDate(), serie.getRoad()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfor (int i = 0; i < serie.getLocations().size(); i++) {\r\n\t\t\t\tLocation loc1 = serie.getLocations().get(i);\r\n\t\t\t\tLocation loc2;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tloc2 = serie.getLocations().get(i + 1);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tloc2 = null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (loc2 != null) {\r\n\t\t\t\t\tdouble kilometers = calculateDistance(loc1, loc2);\r\n\t\t\t\t\t//Houdt nu geen rekening met welke Rate het voordeligste is, die van loc1 of die van loc2.\r\n\t\t\t\t\tinvoice.addToTotalAmount(kilometers, this.getRate(loc1.getDate(), serie.getRoad()));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlastLocationOfList = loc1;\r\n\t\t\t\t\trateOfLastList = this.getRate(loc1.getDate(), serie.getRoad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this.invoice;\r\n\t}", "title": "" }, { "docid": "ede8aed37891c66a87aca6ff6dab1c42", "score": "0.5574615", "text": "public double calculateShippingDistance()\r\n {\r\n return miZipList.calculateDistance(centerZip, destinationZip);\r\n }", "title": "" }, { "docid": "b0496df3ce4ab9f0043d45301616658f", "score": "0.55410075", "text": "public double getTotalDistance();", "title": "" }, { "docid": "d7abc0d02778cfd6ce33d574714cf857", "score": "0.5522404", "text": "static List<List<Integer>> nearestXsteakHouses(int totalSteakhouses,\n List<List<Integer>> allLocations,\n int numSteakhouses) {\n\n Map<Integer, List<Integer>> distancesMap = new HashMap<>();\n allLocations.stream()\n .forEach(location -> {\n Integer key = calculateSquareOfDistance(location.get(0), location.get(1));\n distancesMap.put(key, location);\n });\n\n System.out.println(distancesMap);\n\n List<Integer> sortedDistances = distancesMap.keySet().stream().sorted().collect(Collectors.toList());\n System.out.println(\"sortedDistances: \" + sortedDistances);\n List<List<Integer>> result = new LinkedList<>();\n System.out.println(\"x: \" + numSteakhouses);\n for (int i = 0; i < numSteakhouses; i++) {\n System.out.println(\"i: \" + i);\n Integer distance = sortedDistances.get(i);\n System.out.println(\"dis: \" + distance);\n List<Integer> loc = distancesMap.get(distance);\n result.add(loc);\n }\n System.out.println(\"result: \" + result);\n return result;\n }", "title": "" }, { "docid": "b099544d13fb472a03c86c1d906cc450", "score": "0.55147344", "text": "public StoreLocation( int[] distances) {\n storeLocations = distances;\n sort();\n }", "title": "" }, { "docid": "8ad9f064acb030d72a48cbf7215b6293", "score": "0.5454052", "text": "double calculateDistance(GeoPoint origin, PointOfServiceModel pointOfServiceModel);", "title": "" }, { "docid": "52e22daf9f9c623d1af2c95a02d15d4b", "score": "0.54352933", "text": "public void assignLocationsToStores() {\n /*\n Sort the lists\n */\n sortLists();\n /*\n If there are less locations, take the number of locations for size, else, the number of stores\n */\n int max;\n if (markedLocationList.size() <= markedStoreList.size()) {\n max = markedLocationList.size();\n } else {\n max = markedStoreList.size();\n }\n /*\n The better location is assigned to the better store\n */\n unassignAllLocations();\n unlocateAllStores();\n for (int i = 0; i < max; i++) {\n markedStoreList.get(i).getStore().setEmplacement(markedLocationList.get(i).getLocation());\n bDAO.setLocation(markedStoreList.get(i).getStore(),markedLocationList.get(i).getLocation());\n bDAO.setLocated(markedStoreList.get(i).getStore());\n eDAO.setAssigned(markedLocationList.get(i).getLocation());\n }\n }", "title": "" }, { "docid": "01208a76594d9562f3b1ad7d439e2736", "score": "0.5423885", "text": "protected void calculateDistance(Restaurant restaurant) {\n\t\tPostcode destination = restaurant.getLocation();\n\t\tthis.distance = Integer.valueOf(0);\n\t}", "title": "" }, { "docid": "23bd38bd3c95e7adada3abba8a3d88e0", "score": "0.53876024", "text": "public double distanceFrom(GeoLocation loc1) {\n\n\t\tint earthRadius = 6371; // earth's radius in KM - constant in source code because we don't expect this to change - ever.\n\t\tdouble dLat = Math.toRadians(this.getLatitude() - loc1.getLatitude());\n\t\tdouble dLon = Math.toRadians(this.getLongitude() - loc1.getLongitude());\n\t\tdouble lat1 = Math.toRadians(loc1.getLatitude());\n\t\tdouble lat2 = Math.toRadians(this.getLatitude());\n\n\t\tdouble a = Math.sin(dLat/2) * Math.sin(dLat/2) +\n\t\t Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(lat1) * Math.cos(lat2); \n\t\tdouble c = 2 * Math.asin(Math.sqrt(a)); \n\t\tdouble returnValue = earthRadius * c * 1000;\n\t\treturn returnValue;\n\t}", "title": "" }, { "docid": "410d9f70a7e0ee2d6eff4b88e78d47eb", "score": "0.5386791", "text": "public HashMap<String, Double> calculateTotalCost(ArrayList<Station> stations){\n\t\tHashMap<String, Double> totalCosts = new HashMap<>();\n\t\tfor (Station station : this.stations) {\n\t\t\tstation.rideCost(true);\n\t\t\ttotalCosts.put(station.getName(), station.rideCost(true));\n\t\t}\n\t\treturn totalCosts;\n\t}", "title": "" }, { "docid": "e436b755ef1d111c703e9c605f17c648", "score": "0.5384263", "text": "public static void calculateDistance() {\n for (int i = 0; i < 10; i++) {\r\n distance[i] = Math.pow((Math.pow(Phar_x_coordinates[i] - x_coordinates, 2) +\r\n Math.pow(Phar_y_coordinates[i] - y_coordinates, 2)), 0.5);\r\n list.add(distance[i]);\r\n information.put(distance[i],\"Name: \"+name_array[i]+\" Address: \"+address[i]+\r\n \" Telephone Number: \"+telephoneNumber[i]+\" Working Hours: \"+workingHours[i]);\r\n }\r\n }", "title": "" }, { "docid": "214c6899ddfd68d42e439dbc9b9c0113", "score": "0.53773475", "text": "public void generateDailyLocationCounterReport(Optional<Date> optionalDate) {\n\t\t// Get all not deleted locations\n\t\tIterable<Business> allLocations = locationRepo.iterateByProperty(\"trash\", false);\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.add(Calendar.DAY_OF_MONTH, -1);\n\t\t\n\t\tDate dateToCount = optionalDate.or(calendar.getTime());\n\t\t\n\t\tMap<String, Long> totalCounts = Maps.newHashMap();\n\t\t\n\t\tfor (Business location : allLocations) {\n\t\t\tList<Key<Area>> areas = areaRepo.getKeysByParent(location.getKey());\n\t\t\tfor (String counterName : counterNamesForReporting) {\n\t\t\t\tString counterKeyFormat = counterService.getCounterKeyFormatWithAreaPlaceholder(counterName, location.getId(), PeriodType.DAY, dateToCount);\n\t\t\t\t\n\t\t\t\tArrayList<String> areaCounterKeys = Lists.newArrayList();\n\t\t\t\tfor (Key<Area> key : areas) {\n\t\t\t\t\tareaCounterKeys.add(String.format(counterKeyFormat, key.getId()));\n\t\t\t\t}\n\t\t\t\tlong counterValue = 0;\n\t\t\t\tfor (Object value : counterService.loadAndGetCounters(areaCounterKeys).values()) {\t\t\t\t\t\n\t\t\t\t\tLong areaValue = (Long) value;\n\t\t\t\t\tcounterValue += areaValue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Save the sum for this location and kpi.\n\t\t\t\tif(counterValue != 0) {\n\t\t\t\t\tcounterService.persistCounter(counterName, PeriodType.DAY, dateToCount, location.getId(), 0, Optional.of(counterValue));\n\t\t\t\t\t\n\t\t\t\t\t// Add to total count over all locations.\n\t\t\t\t\tLong totalCount = totalCounts.get(counterName);\n\t\t\t\t\tif(totalCount == null) {\n\t\t\t\t\t\ttotalCounts.put(counterName, counterValue);\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\telse {\n\t\t\t\t\t\ttotalCounts.put(counterName, counterValue + totalCount);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Persist overall counter values.\n\t\tfor (Entry<String, Long> totalCountEntry : totalCounts.entrySet()) {\n\t\t\tcounterService.persistCounter(totalCountEntry.getKey(), PeriodType.DAY, dateToCount, 0, 0, Optional.of(totalCountEntry.getValue()));\n\t\t}\n\t}", "title": "" }, { "docid": "962c68bbb51bef9d9db26f41e955a108", "score": "0.5328127", "text": "protected double calculateDelivery(Graph G, Shopper customer, City whereTo){\n\t\tdouble result = 0;\n\t\ttry{\n\t//\t\tdouble distance = shopper.address.nearestDistance;\n\t//\t\tresult = distance * 0.1;\n\t\t\tresult = whereTo.calculateDistoShopper(customer, G);\n\t\t\tSystem.out.println(\"Shopping Cart calculateDelivery distance: \" + result);\n\t\t\tresult = result*0.01;\n\t\t\treturn result;\n\t\t}catch(NullPointerException e){\n\t\t\tSystem.out.println(\"The Address has a problem\");\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "e24794c1dfff278b94d1fab176d0b223", "score": "0.5307111", "text": "public static double getDistance(Location location1, Location location2) {\n\n if ((location1.getLatitude() == location2.getLatitude()) && (location1.getLongitude() == location2.getLongitude()))\n return 0;\n\n else {\n\n double lat1Rad = Math.toRadians(location1.getLatitude());\n double long1Rad = Math.toRadians(location1.getLongitude());\n\n double lat2Rad = Math.toRadians(location2.getLatitude());\n double long2Rad = Math.toRadians(location2.getLongitude());\n\n double latDelta = lat2Rad - lat1Rad;\n double longDelta = long2Rad - long1Rad;\n\n double a = Math.pow(Math.sin(latDelta / 2), 2)\n + Math.cos(lat1Rad) * Math.cos(lat2Rad)\n * Math.pow(Math.sin(longDelta / 2), 2);\n\n double c = 2 * Math.asin(Math.sqrt(a));\n\n DecimalFormat df = new DecimalFormat(Constants.DISTANCE_ROUNDOFF_PATTERN);\n df.setRoundingMode(RoundingMode.CEILING);\n\n return Double.parseDouble(df.format(Constants.RADIUS * c));\n }\n\n }", "title": "" }, { "docid": "f98558e7302954568c47029dfa0aa9c4", "score": "0.52857643", "text": "protected final long costPerGroup(Int2IntCounterMap colocatedReplicaCounts) {\n final AtomicLong cost = new AtomicLong(0);\n // colocatedReplicaCounts is a sorted array of primary ids of regions. Replicas of regions\n // sharing the same primary will have consecutive numbers in the array.\n colocatedReplicaCounts.forEach((primary, count) -> {\n if (count > 1) { // means consecutive primaries, indicating co-location\n cost.getAndAdd((count - 1) * (count - 1));\n }\n });\n return cost.longValue();\n }", "title": "" }, { "docid": "fa200ddf07fceb2f255092be884c4a6d", "score": "0.52821505", "text": "public double sum(String locFirst, String locSecond, String locThird) {\n\t\tif (locSecond.equals(locThird)) {\t//check if lcoSecond and locThird are the same\n\t\t\tSpreadsheetLocation location = spreadSheet.getLocation(locThird);\t//getting the location of third\n\t\t\tCell cell = spreadSheet.getSheet()[location.getRow()][location.getCol()];\t//getting the instance of locThird\n\t\t\tif (cell instanceof RealCell) {\t\t//check if the cell is real cell \n\t\t\t\treturn ((RealCell) cell).getDoubleValue();\t//if so return the value\n\t\t\t} else {\n\t\t\t\treturn 0.0;\t//if not, return 0.0\n\t\t\t}\n\t\t} else if (locSecond.substring(1).equals(locThird.substring(1))) {\t//check if second location's column is same as the third';s\n\t\t\tSpreadsheetLocation loc = spreadSheet.getLocation(locSecond);\t\t//getting the location of second\n\t\t\tlocSecond = ((char) (locSecond.charAt(0) + 1)) + locFirst.substring(1);\t \n\t\t\tCell cell = spreadSheet.getSheet()[loc.getRow()][loc.getCol()];\t\t//getting the instance of locSecond\n\t\t\tif (cell instanceof RealCell) {\t\t\t//checking if the cell is real cell\n\t\t\t\treturn ((RealCell) cell).getDoubleValue() + sum(locFirst, locSecond, locThird);\t//if so, return the the double value of locSecond and the sum \n\t\t\t} else {\n\t\t\t\treturn sum(locFirst, locSecond, locThird);\n\t\t\t} //recursion\n\t\t} else {\n\t\t\tSpreadsheetLocation loc = spreadSheet.getLocation(locSecond);\t//getting the location of locSceond\n\t\t\tlocSecond = locSecond.substring(0, 1) + (Integer.parseInt(locSecond.substring(1)) + 1);\t\t\n\t\t\tCell cell = spreadSheet.getSheet()[loc.getRow()][loc.getCol()];\t\t//getting the instance of locSecond\n\t\t\tif (cell instanceof RealCell) {\t\t//checking if it is real cell\n\t\t\t\treturn ((RealCell) cell).getDoubleValue() + sum(locFirst, locSecond, locThird);\n\t\t\t} else {\n\t\t\t\treturn sum(locFirst, locSecond, locThird);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "af280bd6fc44e1c95b3f79c9ce52d768", "score": "0.5276737", "text": "public int getDistance() {\n\t\tif (distance == 0) {\n\t\t\t// Temporary distance of the tour\n\t\t\tint temptDistance = 0;\n\n\t\t\t// Counter to count how many city was assigned as the current city\n\n\t\t\tint counter = 1;\n\t\t\t// Loop through the cities\n\t\t\tfor (int i = 0; i < tour.size(); i++) {\n\n\t\t\t\t// Assign current city as the start point\n\t\t\t\tCity start = getCity(i);\n\n\t\t\t\t// Create the end city\n\t\t\t\tCity end;\n\n\t\t\t\t// If the counter is less than the total city then the end city\n\t\t\t\t// is the next one in list\n\t\t\t\tif (counter < tour.size()) {\n\t\t\t\t\tend = getCity(i + 1);\n\t\t\t\t}\n\t\t\t\t// If counter hits the number of city in total, then the current\n\t\t\t\t// city is the last city\n\t\t\t\t// Assign the first city in the list as the end city to\n\t\t\t\t// calculate distance\n\t\t\t\telse {\n\t\t\t\t\tend = getCity(0);\n\t\t\t\t}\n\n\t\t\t\t// Calculate the distance between start and end city\n\t\t\t\ttemptDistance += start.distanceTo(end);\n\t\t\t\t// Increase the counter after each loop\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\tdistance = temptDistance;\n\t\t}\n\t\treturn distance;\n\t}", "title": "" }, { "docid": "1dc3b1ba2e3cf284bf16b5be9dddf94e", "score": "0.52455765", "text": "public List<Location> getRoute(Location storeLocation, Set<Location> deliveryLocations) throws RoutingException {\n List<Location> allLocations = new ArrayList<>();\n allLocations.add(storeLocation);\n allLocations.addAll(deliveryLocations);\n String encodedLocations = allLocations.stream()\n .map((Location location) -> location.getLatitude() + \",\" + location.getLongitude())\n .collect(Collectors.joining(\";\"));\n OsrmTripResponse response = tripsApi.\n resolveTemplate(\"locations\", encodedLocations)\n .request()\n .buildGet()\n .invoke(OsrmTripResponse.class);\n return processResponse(response);\n }", "title": "" }, { "docid": "d48837e7f6c951e5347800230c3a844a", "score": "0.52391875", "text": "public double sumFitness(int location) {\r\n\r\n double sum = 0;\r\n for (int i = 0; i < populationSize; i++) {\r\n if (subregionIdx[location][i] == 1)\r\n sum = sum + fitnessFunction(population.get(i), lambda[location]);\r\n }\r\n\r\n return sum;\r\n }", "title": "" }, { "docid": "b9c345fa4d92843a4d4d0af0c099c0ce", "score": "0.5232957", "text": "public long countAllLocations() throws MiddlewareQueryException;", "title": "" }, { "docid": "ee0e35df3f0de311b14289323d318e89", "score": "0.52192795", "text": "@Override\n public void run() {\n final String EXTRA_DISTANCE = \"com.example.moo.locations.distance\";\n\n\n //String to use as key for phone number extra\n final String EXTRA_PHONENUM = \"com.example.moo.locations.phonenum\";\n\n\n //Comparator to sort locations based on distance from current location\n class DistanceComparator implements Comparator<Location> {\n\n @Override\n public int compare(Location loc1, Location loc2) {\n float dist = loc1.getExtras().getFloat(EXTRA_DISTANCE) - loc2.getExtras().getFloat(EXTRA_DISTANCE);\n if (dist > 0.00001) return 1;\n if (dist < -0.00001) return -1;\n return 0;\n }\n }\n\n\n //For loop that iterates through each place in oblocations\n //and creates a location object using the places' latitude and longitutde values\n //also sets extras bundle to each location\n // containing distance from each location to the current location (float)\n //and phone number for each location (string)\n for (int i = 1; i < oblocations.size(); i++) {\n\n //store latitude from current place in double var\n double lat = oblocations.get(i).getLatLng().latitude;\n //store longitude from current place in double var\n double lon = oblocations.get(i).getLatLng().longitude;\n\n //store current place phone number in string\n String ph = (oblocations.get(i).getPhoneNumber()).toString();\n\n //create new location for current place\n Location storeLocation = new Location(\"storeLocation\");\n\n //Set latitude and longitude for current place's location\n storeLocation.setLatitude(lat);\n storeLocation.setLongitude(lon);\n\n\n //Bundle to store\n // the distance from current location to user's location\n // and the phone number for current location\n Bundle extras = new Bundle();\n\n //Store current location's distance in bundle\n extras.putFloat(EXTRA_DISTANCE, location.distanceTo(storeLocation));\n //Store current locations' phone number in bundle\n extras.putString(EXTRA_PHONENUM, ph);\n\n //Set the extras bundle to current location\n storeLocation.setExtras(extras);\n\n //Add location to the storeLocationsArrayList array so we can access them later\n storeLocationsArrayList.add(storeLocation);\n\n\n\n\n }\n\n //Release BufferedResponse\n places.release();\n\n\n //Call DistanceComparator on storeLocationsArrayList\n //in order to sort from closest to farthest location\n Collections.sort(storeLocationsArrayList, new DistanceComparator());\n\n\n // Add a marker on closest location and move the camera\n LatLng x = new LatLng(storeLocationsArrayList.get(0).getLatitude(), storeLocationsArrayList.get(0).getLongitude()) ;\n map.addMarker(new MarkerOptions().position(x).title(\"Nearest store location\"));\n map.moveCamera(CameraUpdateFactory.newLatLng(x));\n map.animateCamera( CameraUpdateFactory.zoomTo( 17.0f ) );\n\n\n\n //New Geocoder object to get closest location data\n Geocoder gcd = new Geocoder(getActivity(), Locale.getDefault());\n\n\n //Try-catch block to attempt to get closest location's address\n try {\n //gets the address from location\n addresses = gcd.getFromLocation(storeLocationsArrayList.get(0).getLatitude(), storeLocationsArrayList.get(0).getLongitude(), 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //If address successfully retrieved:\n if (addresses.size() > 0) {\n\n //Set text for closest Location info TextViews using address and extras data\n suburbText.setText(addresses.get(0).getLocality());\n addressText.setText(addresses.get(0).getAddressLine(0));\n phonenumText.setText(storeLocationsArrayList.get(0).getExtras().getString(EXTRA_PHONENUM));\n distanceText.setText((String.format(Locale.ENGLISH, \"%.2f\", storeLocationsArrayList.get(0).getExtras().getFloat(EXTRA_DISTANCE) / 1000)) + \" km\");\n\n }\n\n\n }", "title": "" }, { "docid": "be02a65f64ca86b4fb147650dc71896a", "score": "0.5210043", "text": "public int computeTechnicianDistance() {\n int technicianDistance = 0;\n for (DayHorizon day : days) {\n for (Itinerary itinerary : day.getItineraries()) {\n if (itinerary instanceof TechnicianItinerary) {\n technicianDistance += ((TechnicianItinerary) itinerary).computeDistanceDemands(itinerary.getPoints());\n }\n }\n }\n return technicianDistance;\n }", "title": "" }, { "docid": "48dc14a8d25cc3893370400317b9335d", "score": "0.5208853", "text": "public static double sumDistances(ArrayList<Vertex> path) {\r\n\t\tVertex a = path.get(0);\r\n\t\tdouble total = 0d;\r\n\t\tfor (int i = 1; i < path.size(); ++i) {\r\n\t\t\tVertex b = path.get(i);\r\n\t\t\ttotal += Misc.subGraph[Misc.vertexCode.get(a)][Misc.vertexCode.get(b)];\r\n\t\t\ta = b;\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "title": "" }, { "docid": "dc212e47351856f4e0a35c0dc287afa9", "score": "0.5207766", "text": "public double calcDistance(double lat, double lon){\n\t\treturn super.calcDistance(lat, lon);\n\t}", "title": "" }, { "docid": "97eabd53e97f90dbde118b067856b553", "score": "0.5203901", "text": "private int getTotalNewCases(List<LocationStat> locationStats) {\n return locationStats.stream()\n .mapToInt(LocationStat::getLastIncrease)\n .sum();\n }", "title": "" }, { "docid": "9a26552ae971a0e2fbe798a1f9e80d43", "score": "0.51981366", "text": "int getLocationsCount();", "title": "" }, { "docid": "343e08a02007e372bc4f597f245b19d6", "score": "0.51882327", "text": "@Override\n public void onLocationChanged(Location location) {\n collectButton.setVisibility(View.INVISIBLE);\n if (location == null) {\n Log.d(tag, \"[onLocationChanged] location is null\");\n\n }else{\n Log.d(tag, \"[onLocationChanged] location is not null\");\n if (originLocation != null){\n if (previousLocation == null){\n previousLocation = originLocation;\n }\n Log.d(tag, \"origin \" + originLocation);\n Log.d(tag, \"prev \" + previousLocation);\n distanceWalked += distance(originLocation.getLatitude(), originLocation.getLongitude(), previousLocation.getLatitude(), previousLocation.getLongitude());\n previousLocation = originLocation;\n Log.d(tag, \"[onLocationChanged] distance walked \" + distanceWalked);\n\n }\n originLocation = location; // sets the players current location\n\n setCameraPosition(location); // moves the camera\n\n\n if (collectOK(shop.getPosition())){ // if the user is close enough to the shop\n shopButton.setVisibility(View.VISIBLE); // show the shop button\n shopButton.setOnClickListener(v -> {\n Intent intent = new Intent(MapActivity.this, ShopActivity.class); // opens the shop\n intent.putExtra(\"radius\", radius); // send the players current radius\n intent.putExtra(\"multi\", multiplyer); // send the players current multiplier\n startActivity(intent);\n });\n\n }else{\n shopButton.setVisibility(View.INVISIBLE); // shop button remains invisible\n }\n for (int i = 0; i < coinsList.size(); i++){ // for each coin on the map\n Coin coin = coinsList.get(i); // gets the coin\n Marker m = (markers.get(coin.getId())); // indexing the marker associated with the coin\n if (!collectedMarkers.contains(m)){\n assert m != null;\n LatLng loc = m.getPosition(); // get the markers location\n if (collectOK(loc)){ // if close enough to collect coin\n collectButton.setVisibility(View.VISIBLE); // show collection button\n collectButton.setOnClickListener(v -> {\n collectedMarkers.add(m); // adds marker to collected list\n map.removeMarker(m); // removes marker from list\n\n db.collection(\"wallet\").document(email).collection(\"collected (\"+dateDB +\")\")\n .add(coin) //adds coin to wallet in database\n .addOnSuccessListener(documentReference -> {\n Log.d(tag, \"coin collected with id \" + coin.getId());\n collectButton.setVisibility(View.INVISIBLE); // hides collection button\n Snackbar.make(findViewById(R.id.viewSnack), \"Collected \" + m.getTitle() + \" of \" + m.getSnippet(),Snackbar.LENGTH_SHORT).show();\n\n })\n .addOnFailureListener(e -> Log.w(tag, \"Error collecting coin\", e));\n });\n\n }\n\n }\n\n }\n\n }\n\n }", "title": "" }, { "docid": "cbd83ca620cdd377aba3247a2e03b8af", "score": "0.5183634", "text": "private double calculateDistance(){\n int[] finalCords = destination.getCords();\n int[] originCords = originIsland.getCords();\n int distanceBetween = Math.abs(originCords[0] - finalCords[0]);\n int heightBetween = Math.abs(originCords[1] - finalCords[1]);\n double distanceTo = Math.sqrt(Math.pow(distanceBetween, 2) + Math.pow(heightBetween, 2));\n return distanceTo;\n\n }", "title": "" }, { "docid": "3f17aaf40f7362d4544d8e611e80ed00", "score": "0.51706004", "text": "public abstract double calculateApproximateDistance( double aLat, double aLon, double bLat, double bLon );", "title": "" }, { "docid": "16d5636d684b97751488bd115fb5ae05", "score": "0.51454246", "text": "public double getTotalDistance() {\n double sum = 0;\n\n for (int i = 0; i < this.points.size() - 1; i++)\n sum += VertexMap.getDistance(this.points.get(i), this.points.get(i + 1));\n\n return sum;\n }", "title": "" }, { "docid": "cb80741354ce80f45c4a1d90ba870f67", "score": "0.5142041", "text": "protected double calculatetotal(Graph G, Shopper customer, City whereTo){\n\t\tfor(int i =0; i<productList.size();i++){\n\t\t\tinvoice = invoice + productList.get(i).price; \n\t\t}\n\t\tinvoice += calculateDelivery(G, customer, whereTo);\n\t\treturn invoice;\n\t}", "title": "" }, { "docid": "a5bd68791b2a9bcc03377100a79a9529", "score": "0.5128037", "text": "public double calculateRoute(int points[]) {\r\n double route = 0;\r\n for (int i = 0; i < points.length - 1; i++) {\r\n route += distanceMatrix[points[i]] [points[i + 1]];\r\n }\r\n return route;\r\n }", "title": "" }, { "docid": "3aa81072315ed2e51f57d7919a670721", "score": "0.5125347", "text": "public double distanceTo(Location<World> loc) {\n\t\treturn loc.getPosition().distance(getLocation().getPosition());\n\t}", "title": "" }, { "docid": "4fb5099463cfd47b26a74014834ebeef", "score": "0.5119317", "text": "public static double sumOfLat (MacBig[] helper,int realsize){\n\t\tdouble counter=0;\n\t\tfor (int i = 0; i < realsize; i++) {\n\t\t\tcounter+=Double.parseDouble(helper[i].lat);\n\t\t}\n\t\treturn counter;\n\t}", "title": "" }, { "docid": "50423142f7d73c668a828657eb81ce6b", "score": "0.50899917", "text": "@Override\n public void onLocationChanged(Location location) {\n lastLocation = currentLocation;\n currentLocation = location;\n totalDistance += lastLocation.distanceTo(currentLocation);\n updateDistanceTextView();\n }", "title": "" }, { "docid": "3b8aa9c734b99854568b79363932cc6b", "score": "0.5068006", "text": "@GetMapping(\"/calculate\")\r\n\tpublic double calculateDistance(@RequestParam double latitude,@RequestParam double longitude) {\n\t\tdouble lt1= 40.7256;\r\n\t\tdouble ln1=-73.895934;\r\n//\t\tradius of earth in meter\r\n\t\tdouble R= 6371e3; \r\n\t\t\r\n\t\tdouble l1Rad = Math.toRadians(lt1);\r\n\t\tdouble l2Rad= Math.toRadians(latitude);\r\n\t\tdouble dlt=Math.toRadians((latitude-lt1));\r\n\t\tdouble dln=Math.toRadians((longitude-ln1));\r\n\t\t\r\n\t\tdouble haversine = (Math.sin(dlt/2) * Math.sin(dlt/2)) + (Math.cos(l1Rad)*Math.cos(l2Rad)*Math.sin(dln/2)*Math.sin(dln/2)) ;\r\n\t\t\r\n\t\tdouble c = 2* Math.atan2(Math.sqrt(haversine),Math.sqrt(1-haversine));\r\n\t\t\r\n\t\tdouble distance = R * c;\r\n\t\t\r\n\t\treturn distance;\r\n\t}", "title": "" }, { "docid": "ccfeaf2e178840f6ade842900d5010ce", "score": "0.50679874", "text": "public double totalDistance() throws GPSException{\n\t\tif(a.size()<2)throw(new GPSException(\"No enough points in track\"));\n\t\treturn totalDist;\n\t}", "title": "" }, { "docid": "7ff7bbcabfdc86ea43f9b5c04b7c73ed", "score": "0.5062365", "text": "public double calcDistance(Coordinates currentLocation){\n /*r value obtained by taking the diameter of the Earth in miles and\n dividing by 2 to get the radius. Diameter of earth per NASA's fact sheet:\n https://nssdc.gsfc.nasa.gov/planetary/factsheet/planet_table_british.html*/\n double r = 3958;\n double ftPerMile = 5280;\n\n double lat1 = Math.toRadians(currentLocation.getLat());\n double lat2 = Math.toRadians(destinationLocation.getLat());\n double lon1 = Math.toRadians(currentLocation.getLon());\n double lon2 = Math.toRadians(destinationLocation.getLon());\n\n //Get delta values for both latitudes and longitude.\n double dLat = lat2 - lat1;\n double dLon = lon2 - lon1;\n\n //Haversine formula calculation:\n double a = Math.pow(Math.sin(dLat / 2), 2) + Math.cos(lat1) * Math.cos(lat2)\n * Math.pow(Math.sin(dLon / 2),2);\n\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n\n return ((r * c) * ftPerMile);\n }", "title": "" }, { "docid": "26570eb83c3acd46a5153b72339eba17", "score": "0.50609094", "text": "public double getDist() {\n if (dist == 0) {\n int roamDist = 0;\n for (int i = 0; i < roamLength(); i++) {\n City cityStart = getCity(i); // City being travelled from\n City cityEnd;\n\n if (i + 1 < roamLength()) {\n cityEnd = getCity(i + 1);\n } else {\n cityEnd = getCity(0);\n }\n roamDist += cityStart.eucDistanceTo(cityEnd);\n }\n dist = roamDist;\n }\n return dist;\n }", "title": "" }, { "docid": "0b53d11526a658b38ebaaa5d08c7aabb", "score": "0.50457275", "text": "public double getTravelDistance() {\n return totalDistance;\n }", "title": "" }, { "docid": "bbd1ec0079aa3605175cffce97bbf5d2", "score": "0.5042917", "text": "public double getDistance(){\n\t\treturn TotalDistance;\n\t}", "title": "" }, { "docid": "b657f3b9ed1202371a5430ff3bb6bf80", "score": "0.50420237", "text": "private void amountAndLocation() {\n\t\tfor (int i = 0; i <= amount; i++) {\n\t\t\tlocationGeneration();\n\t\t\t\n\t\t\tcheckLocationFree();\n\t\t\t\n\t\t\twhile (checkPreviousLocations() == true) {\n\t\t\t\tlocationGeneration();\n\t\t\t\t\n\t\t\t\tcheckLocationFree();\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\texistingLocations[i][0] = randomLocationX;\n\t\t\texistingLocations[i][1] = randomLocationY;\n\t\t\t\n\t\t\tlocations.add(new Location(randomLocationX, randomLocationY));\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "df6b00e1a5004b2fd8f6d7d437092b9f", "score": "0.50354713", "text": "public void buyProductPerLocation(String location, Client client) {\r\n // get index of location\r\n int locationIndex = getLocationIndex(location);\r\n // get product from location\r\n Product prod = getProductOnLocation(location);\r\n //get client's balance\r\n double balance = client.checkBalance();\r\n if (prod.getPrice() <= balance) {\r\n client.deductBalance(prod.getPrice());\r\n locationProduct[locationIndex].remove(0);\r\n // update quantity\r\n prod.setQuantity(locationProduct[locationIndex].size());\r\n return;\r\n } else {\r\n throw new VendingException(\"Insufficient money\");\r\n }\r\n }", "title": "" }, { "docid": "7cfc7192328865cf99737bc446f5a85d", "score": "0.5033997", "text": "public static int calculateDistance(LatLng userLatLng, LatLng providerLatLng){\n float[] distance = new float[1];\n try{\n if(providerLatLng.latitude !=0 && providerLatLng.longitude !=0 && userLatLng.latitude !=0 && userLatLng.longitude !=0){\n Location.distanceBetween(userLatLng.latitude, userLatLng.longitude, providerLatLng.latitude, providerLatLng.longitude, distance); }\n }catch (Exception e){\n }\n// Log.d(TAG, \"calculateDistance: Distance\" + Math.round(distance[0]) );\n return Math.round(distance[0]);\n }", "title": "" }, { "docid": "414bcc4527b75830b017ae7dd3d3a0ad", "score": "0.5025444", "text": "public int getTotalDistanceTravelled() {\n return totalDistanceTravelled;\n }", "title": "" }, { "docid": "2f570c5311fcc472135b530cee902101", "score": "0.50197303", "text": "private static Double getDistance(double lat1, double lng1, double lat2, double lng2){\n\n double earthRadius = 6371;\n double dLat = Math.toRadians(lat2-lat1);\n double dLng = Math.toRadians(lng2-lng1);\n double a = Math.sin(dLat/2) * Math.sin(dLat/2) +\n Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2)) *\n Math.sin(dLng/2) * Math.sin(dLng/2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n double distance = earthRadius * c;\n\n totalDist = totalDist + distance;\n return totalDist;\n }", "title": "" }, { "docid": "30f07c00b951a676cae838d9d6ac77af", "score": "0.5018229", "text": "public void getDistance() {\n\n\t\tthis.distanceMatrix = new Double [userPoints.size()][femtoPoints.size() + macroPoints.size()];\n\t\t\n\t\tfor (int i=0; i<userPoints.size(); i++) {\n\t\t\tPoint uePoint = userPoints.get(i);\n\t\t\tfor (int j=0; j<femtoPoints.size(); j++) {\n\t\t\t\tPoint femtoPoint = femtoPoints.get(j);\t\n\t\t\t\tthis.distanceMatrix[i][j] = Util.getDistance(uePoint, femtoPoint);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int j=0; j<macroPoints.size(); j++) {\n\t\t\t\tPoint macroPoint = macroPoints.get(j);\n\t\t\t\tthis.distanceMatrix[i][j+femtoPoints.size()] = Util.getDistance(uePoint, macroPoint);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f9c8d702ecad5801148b7cdfa17acfeb", "score": "0.5016083", "text": "private int distance(Location a, Location b) {\r\n return Math.abs(a.x() - b.x()) + Math.abs(a.y() - b.y());\r\n }", "title": "" }, { "docid": "527023b6f46a84b66a7bf66a3001d33e", "score": "0.50008374", "text": "public double calcDistance(){\n if(isEmpty()){\n return 0.0;\n }\n return knoten.calcDistance();\n }", "title": "" }, { "docid": "e9ce7cfb374c02425d987f042764fb55", "score": "0.49920768", "text": "public static int getRouteDistance(City[] cities) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < cities.length; i++) {\n\t\t\tif (i == cities.length - 1)\n\t\t\t\tresult += cities[i].distance(cities[0]);\n\t\t\telse\n\t\t\t\tresult += cities[i].distance(cities[i+1]);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "ff03c62c8969603dbacfc5c2a2c9220a", "score": "0.49875292", "text": "public float getTotalDistance()\n {\n Float s = 0f;\n Time now = new Time();\n now.setToNow();\n int month = now.MONTH;\n int day = now.MONTH_DAY;\n int year = now.YEAR;\n now.set(day, month - 1 , year);\n for(int i = 0; i < mSessions.size();i++)\n if ( Time.compare(now , mSessions.get(i).getDate()) < 0 )\n s += mSessions.get(i).getDistance();\n return s;\n }", "title": "" }, { "docid": "c96f3694c947ce10366dee8bb2500bd4", "score": "0.49819422", "text": "private int distance(Location a, Location b) {\n return Math.abs(a.x() - b.x()) + Math.abs(a.y() - b.y());\n }", "title": "" }, { "docid": "6a7be639ad1dcdd62031ec78f2fd0e54", "score": "0.4980969", "text": "@Override\n public double getDistanceInMeters(Location location) {\n return location.getDistanceInMetersToStretch(this);\n }", "title": "" }, { "docid": "08e5c42752111e32402e1eb6f1b8b517", "score": "0.4970768", "text": "public static double getActionChoiceSum(City currentCity, City citiesToVisit[], Agent agent){\n double actionChoiceSum = 0;\n \n for(int i = 0; i <= citiesToVisit.length - 1; i++){\n if(citiesToVisit[i] != null){\n actionChoiceSum += getActionChoice(currentCity, citiesToVisit[i], agent);\n }\n }\n \n return actionChoiceSum;\n }", "title": "" }, { "docid": "38f2af4601746d2bfd538f13fd12ee8d", "score": "0.49634194", "text": "public float getDistanceToUserLocation(Location current){\n if(current != null) {\n return current.distanceTo(getUserLocation());\n }\n else return 0;\n }", "title": "" }, { "docid": "1bf045f447564f7d403f0631a9d05154", "score": "0.49607208", "text": "private double calculateScoreByQueryandLocationandPopulation(Geoname geoname, String query, double latitude, double longitude) {\n double score = calculateScoreByQueryandPopulation(geoname, query);\n\n double distance = DistanceCalculation.calculateDistance(latitude, longitude, geoname.getLatitude(), geoname.getLongitude());\n\n if (distance <= 5) {\n score += 0.5;\n } else if (distance <= 10) {\n score += 0.4;\n } else if (distance < 15) {\n score += 0.3;\n } else if (distance <= 25) {\n score += 0.2;\n } else if (distance <= 50) {\n score += 0.1;\n }\n\n //normalization\n score = Math.floor(score / 1.5 * 100) / 100;\n return score;\n }", "title": "" }, { "docid": "88451f74a67135cf5e5709aa5c485539", "score": "0.49552014", "text": "public double calculateDistance(){\n double distance = Math.sqrt(Math.pow(this.getFirstPoint().getX() - this.getSecondPoint().getX(), 2) \n + Math.pow(this.getFirstPoint().getY() - this.getSecondPoint().getY(), 2));\n return distance;\n }", "title": "" }, { "docid": "2beea5b9abd80beff0463ac00b23f85e", "score": "0.49436706", "text": "public void saveDataForDataCollectionLocal(List<DataCollectionDto> dataCollectionDtos) {\n LOGGER.info(\"saving processed location pairs distance to local.\");\n if (EntityHelper.isListNotPopulated(dataCollectionDtos)){\n return;\n }\n for (DataCollectionDto dto : dataCollectionDtos) {\n if (dto.getStatus().equals(COLLECTION_STATUS)) {\n LocationPair locationPair = locationsService\n .findLocationPair(dto.getSrcLocString(), dto.getDestLocString());\n if (locationPair != null) {\n Distance distance = convertDataCollectionDtoToDistance(dto);\n distanceRepository.save(distance);\n locationsService.deleteLocationPair(locationPair);\n }\n }\n }\n }", "title": "" }, { "docid": "be5b4a5c6df88d0f574af79c716548a1", "score": "0.4942255", "text": "public void updateLocation(){\n try {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n 5,\n 5,\n locationListener);\n distanceTravelled += currentLocation.distanceTo(locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER));\n currentLocation = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n } catch(SecurityException e) {\n Log.d(\"g53mdp\", e.toString());\n }\n }", "title": "" }, { "docid": "ee7eb96d65dc1a1f52d494a75d9a3044", "score": "0.49401146", "text": "public void calcDistance(double X, double Y){\n Location start = new Location(\"start\");\n start.setLatitude(X);\n start.setLongitude(Y);\n\n Location end = new Location(\"end\");\n end.setLatitude(this.X);\n end.setLongitude(this.Y);\n\n distance = start.distanceTo(end);\n\n// Log.e(\"distance\", Double.toString(distance));\n }", "title": "" }, { "docid": "8322cdffe9810ea46dfa784788eda897", "score": "0.49372917", "text": "@Override\n public double[] calc(String str_lat1, String str_lon1, String str_lat2, String str_lon2) throws Exception {\n return geomatrixDistance(str_lat1, str_lon1, str_lat2, str_lon2);\n }", "title": "" }, { "docid": "314728ff7cdf326bd82eba70e06729e5", "score": "0.49300322", "text": "public native static float distance(GameLocation oper1, java.util.List oper2);", "title": "" }, { "docid": "05e703100228d6382ebb56e7deba8f8a", "score": "0.49298912", "text": "public void computeAllEuclideanDistances() { //COMPLETED\n for (V o : vertices.keySet()) {\n for (Edge e: vertices.get(o).getEdges()) {\n String uStr = (String) o;\n Vertex v = e.target;\n Vertex u = vertices.get(uStr);\n //Vertex v = vertices.get(vStr);\n e.distance = Math.sqrt(Math.pow((u.posX - v.posX),2)+Math.pow(u.posY - v.posY,2));\n System.out.println (e.distance);\n }\n \n }\n return; \n }", "title": "" }, { "docid": "4abe2d228af2aee8cbf27b712d087be6", "score": "0.49269986", "text": "@Override\n\tpublic CoordenadaSatelites getLocation(double distance1,\n\t\t\t \t\t\t\t double distance2,\n\t\t\t \t\t\t\t double distance3){\n\t\t\n\t\tlogger.info(Double.toString(distance1));\n\t logger.info(Double.toString(distance2));\n\t logger.info(Double.toString(distance3));\n\n //Declaracion de variables\n\tCoordenadaSatelites retorno = new CoordenadaSatelites();\t\n\tdouble[] coordSat1 = new double[2];\n double[] coordSat2 = new double[2];\n double[] coordSat3 = new double[2];\n \n double[] ex = new double[2];\n double[] ey = new double[2];\n double[] p3p1 = new double[2];\n double jval = 0;\n double temp = 0;\n double ival = 0;\n double p3p1i = 0;\n double triptx;\n double xval;\n double yval;\n double t1;\n double t2;\n double t3;\n double t;\n double exx;\n double d;\n double eyy;\n\n \n for (CoordenadaSatelites sate: listCoordSatelites()) {\n \n \t //Transformar las coordenadas en vectores de la posicion de los satelites\n \t logger.info(sate.getSatelite());\n \t \n \t switch (sate.getSatelite()) \n\t {\n\t \t case \"kenobi\":\n\t \t\t//coordenada 1\n\t \t\tcoordSat1[0] = sate.getX();\n\t \t\tcoordSat1[1] = sate.getY();\n\t \t case \"skywalker\":\n\t \t\t//coordenada 2\n\t coordSat2[0] = sate.getX();\n\t coordSat2[1] = sate.getY();\n\t \t case \"sato\": \n\t //coordenada 3\n\t coordSat3[0] = sate.getX();\n\t coordSat3[1] = sate.getY();\n\t }\n }\n \n for (int i = 0; i < coordSat1.length; i++) {\n t1 = coordSat2[i];\n t2 = coordSat1[i];\n t = t1 - t2;\n temp += (t*t);\n }\n d = Math.sqrt(temp);\n for (int i = 0; i < coordSat1.length; i++) {\n t1 = coordSat2[i];\n t2 = coordSat1[i];\n exx = (t1 - t2)/(Math.sqrt(temp));\n ex[i] = exx;\n }\n for (int i = 0; i < coordSat3.length; i++) {\n t1 = coordSat3[i];\n t2 = coordSat1[i];\n t3 = t1 - t2;\n p3p1[i] = t3;\n }\n for (int i = 0; i < ex.length; i++) {\n t1 = ex[i];\n t2 = p3p1[i];\n ival += (t1*t2);\n }\n for (int i = 0; i < coordSat3.length; i++) {\n t1 = coordSat3[i];\n t2 = coordSat1[i];\n t3 = ex[i] * ival;\n t = t1 - t2 -t3;\n p3p1i += (t*t);\n }\n for (int i = 0; i < coordSat3.length; i++) {\n t1 = coordSat3[i];\n t2 = coordSat1[i];\n t3 = ex[i] * ival;\n eyy = (t1 - t2 - t3)/Math.sqrt(p3p1i);\n ey[i] = eyy;\n }\n for (int i = 0; i < ey.length; i++) {\n t1 = ey[i];\n t2 = p3p1[i];\n jval += (t1*t2);\n }\n xval = (Math.pow(distance1, 2) - Math.pow(distance2, 2) + Math.pow(d, 2))/(2*d);\n yval = ((Math.pow(distance1, 2) - Math.pow(distance3, 2) + Math.pow(ival, 2) + Math.pow(jval, 2))/(2*jval)) - ((ival/jval)*xval);\n\n t1 = coordSat1[0];\n t2 = ex[0] * xval;\n t3 = ey[0] * yval;\n triptx = t1 + t2 + t3;\n retorno.setX(triptx);\n t1 = coordSat1[1];\n t2 = ex[1] * xval;\n t3 = ey[1] * yval;\n triptx = t1 + t2 + t3;\n retorno.setY(triptx);\n \n logger.info(\"Coordenada posicion X \"+Double.toString(retorno.getX()));\n logger.info(\"Coordenada posicion y \"+Double.toString(retorno.getY()));\n \n return retorno;\n}", "title": "" }, { "docid": "eb8ffb5bbf584acc5896aaa935f36d9d", "score": "0.4925853", "text": "@Transactional\n private InvoiceTrackerTotal generateTrackerTotal(\n short year, Month month, String trackerId,\n Iterable<Movement> movements, boolean store,\n RateService rs, ReverseGeoService rgs, IInvoiceStorage invoiceStorage)\n {\n Iterator<Movement> iter = movements.iterator();\n \n if (!iter.hasNext()) {\n // This shouldn't be possible\n throw new NotYetImplementedException();\n }\n \n // Only look up new rate if the distance to the ratePoint is greater than 1km.\n double vehicleTotal = 0;\n double totalRideDistance = 0;\n Movement prev = iter.next();\n Movement ratePoint = prev;\n Movement rideStart = prev;\n Rate rate = getRate(prev, rs, rgs);\n\n while (iter.hasNext())\n {\n Movement movement = iter.next();\n double pointDistance = ReverseGeoService.distanceBetween(ratePoint, movement);\n if (pointDistance > 1.0) {\n ratePoint = movement;\n rate = getRate(ratePoint, rs, rgs);\n }\n double distance = ReverseGeoService.distanceBetween(prev, movement);\n vehicleTotal += rate.getPrice() * distance;\n\n double rideDistance = ReverseGeoService.distanceBetween(rideStart, movement);\n totalRideDistance += rideDistance;\n long rideTime = movement.getTimestamp() - rideStart.getTimestamp();\n if (store && (rideDistance > TEN_KILOMETER || rideTime > TEN_MINUTES)) {\n Ride ride = new Ride(rideStart, prev, year, month, totalRideDistance);\n invoiceStorage.createRide(ride);\n totalRideDistance = 0;\n rideStart = movement;\n }\n\n prev = movement;\n }\n Ride ride = new Ride(rideStart, prev, year, month, totalRideDistance);\n invoiceStorage.createRide(ride);\n\n InvoiceTrackerTotal total = new InvoiceTrackerTotal(trackerId, year, month, vehicleTotal);\n if (store) {\n invoiceStorage.storeTrackerBill(total);\n }\n return total;\n }", "title": "" }, { "docid": "37569513cab0dd68b2509c978ee33811", "score": "0.4925661", "text": "public void setDistance() {\n double distance = 0;\n List<ParseGeoPoint> geoPoints = getGeoPoints();\n for (int i = 0; i < geoPoints.size() - 1; i++) {\n distance += geoPoints.get(i).distanceInKilometersTo(geoPoints.get(i + 1));\n }\n setDistance((int) distance);\n }", "title": "" }, { "docid": "9ea57610e3ac4c03efdab9e81ca7398a", "score": "0.49194348", "text": "double getDistanceBetween(LngLatAlt a, LngLatAlt b);", "title": "" }, { "docid": "da279d905ac880f9a391d0f38dd9e485", "score": "0.4913065", "text": "private double distance(double startLat, double startLong, double endLat, double endLong) {\n double dLat = Math.toRadians((endLat - startLat));\n double dLong = Math.toRadians((endLong - startLong));\n\n startLat = Math.toRadians(startLat);\n endLat = Math.toRadians(endLat);\n\n double a = haversin(dLat) + Math.cos(startLat) * Math.cos(endLat) * haversin(dLong);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\n return EARTH_RADIUS * c; // <-- d\n }", "title": "" }, { "docid": "b6ef783d1fe89acc80d96a37f87e9561", "score": "0.49082133", "text": "public native static float distance(GameLocation oper1, GameLocation oper2);", "title": "" }, { "docid": "887ae5e094ff3b924c5122c8227632be", "score": "0.48993456", "text": "private void updateDistance() {\n\t\tif (prevCellLatitude == -1) {\n\t\t\tprevCellLatitude = cellLatitude;\n\t\t\tprevCellLongitude = cellLongitude;\t\t\t\t\t\n\t\t}\n\t\t\n\t\tdouble lat1 = cellLatitude;\n\t double lng1 = cellLongitude;\n\t double lat2 = gpsLatitude;\n\t double lng2 = gpsLongitude;\n\t float [] dist = new float[1];\n\t Location.distanceBetween(lat1, lng1, lat2, lng2, dist);\n\t GPSdist = dist[0];\n\t\n\t\tlat1 = cellLatitude;\n\t lng1 = cellLongitude;\n\t lat2 = prevCellLatitude;\n\t lng2 = prevCellLongitude;\n\t Location.distanceBetween(lat1, lng1, lat2, lng2, dist);\n\t LVCdist = dist[0];\t//distance between the towers\n\t \n\t \n\t\tlat1 = cellLatitude;\n\t lng1 = cellLongitude;\n\t lat2 = glsLatitude;\n\t lng2 = glsLongitude;\n\t Location.distanceBetween(lat1, lng1, lat2, lng2, dist);\n\t GLSdist = dist[0];\t//GLS distance from tower\n\t \n\t //errors:\n\t\tlat1 = glsLatitude;\n\t lng1 = glsLongitude;\n\t lat2 = gpsLatitude;\n\t lng2 = gpsLongitude;\n\t dist = new float[1];\n\t Location.distanceBetween(lat1, lng1, lat2, lng2, dist);\n\t GLSerror = dist[0];\n\t \n\t\tlat1 = lvcLatitude;\n\t lng1 = lvcLongitude;\n\t lat2 = gpsLatitude;\n\t lng2 = gpsLongitude;\n\t dist = new float[1];\n\t Location.distanceBetween(lat1, lng1, lat2, lng2, dist);\n\t LVCerror = dist[0];\t \n }", "title": "" }, { "docid": "335da8571c3c4fd4a011cea49bbb41c5", "score": "0.4898731", "text": "@Override\n\tpublic double getCost(final Location loc) {\n\t\tif (loc == null) {\n\t\t\tthrow new IllegalStateException(\"Called getCost(null)\");\n\t\t} else if (loc instanceof Tile) {\n\t\t\treturn MOVE_COST_MAP.get(((Tile) loc).getTerrain())\n\t\t\t\t\t+ (loc.getSelected() instanceof RootModule ? 0 : 1);\n\t\t} else {\n\t\t\tthrow new IllegalStateException(\"Called getCost() on a non-Tile Location\");\n\t\t}\n\t}", "title": "" }, { "docid": "de89df5b2effba380ef5f2e4a8f61c7f", "score": "0.48919883", "text": "private double performCalc(LatLng[] polyCodes) {\n int total_diff_in_elevation = 0;\n for (LatLng latLng : polyCodes) {\n\n Log.v(TAG, latLng.longitude + \", \" + latLng.latitude);\n int prev_elevation = 0;\n\n // loop through turn points adding absolute diffs up\n try {\n int current_el = contours.getElevation(latLng);\n if (current_el != -1) {\n\n total_diff_in_elevation += Math.abs(current_el - prev_elevation);\n prev_elevation = current_el;\n }\n } catch (Exception e) {\n //leaving blank\n }\n }\n\n Log.v(TAG, \"Calculating return.... \" + total_diff_in_elevation);\n return total_diff_in_elevation;\n }", "title": "" }, { "docid": "cb974700d3bd9ea613fdf0a9b7e1be8d", "score": "0.489091", "text": "public double RouteCost(LinkedList<Node> route) {\n int i = 0;\n double cost = 0;\n while (true) {\n Node first = route.get(i);\n Node second = null;\n if (i < route.size() - 1) {\n second = route.get(i + 1);\n cost += CalDistance(first, second);\n i++;\n } else {\n //the sum of this route is already finished calculated\n break;\n }\n }\n return cost;\n }", "title": "" }, { "docid": "9117fecae255ba6c2da50f227fc5efc5", "score": "0.48837045", "text": "public List<LocationStore> findStoreByCriteria(int courseDuration,String stores, boolean restaurant, boolean cinema){\n\n // Initialization of the maximum number of stores to retrieve.\n int storeVisitDuration = 20;\n String[] storesValues = stores.split(\",\");\n// List<Location> storeLocation = locationRepository.findStoresWithList(Arrays.asList(storesValues));\n// for (int i = 0; i<storeLocation.size(); i++) {\n// \t Location location = storeLocation.get(i);\n// \t storeVisitDuration += location.getVisitTime();\n// }\n\n int maxStores = courseDuration/storeVisitDuration;\n System.out.println(courseDuration);\n if (maxStores == 0) {\n \t maxStores = 5;\n }\n for(int i = 0; i < storesValues.length; i++) {\n \t System.out.println(storesValues[i]);\n }\n\n // Initialization of the return list variable\n List<LocationStore> storesList = new ArrayList<LocationStore>();\n\n // #1 Retrieve a list which include the stores selected by the user\n // And update the maximum number of stores to retrieve.\n// storesList = findStoreByIdWithLimit(maxStores, Arrays.asList(storesValues));\n maxStores = maxStores - storesList.size();\n System.out.println(maxStores + \" MAXQTORES \" + storesList.size());\n List<String> listStoreChoose = Arrays.asList(storesValues);\n// System.out.println(findStoreNoCommandByProfil(1,5).size());\n // Final step : if maxStores > 0 add some random stores\n if(storesValues.length > 0) {\n \t if(maxStores < listStoreChoose.size()) {\n \t maxStores = listStoreChoose.size();\n \t }\n \t storesList.addAll(findByIdWithLimit(maxStores,listStoreChoose));\n }\n System.out.println(maxStores + \" MAXSTOREEE \");\n maxStores = maxStores - storesList.size();\n System.out.println(maxStores + \" MAXS STOTRES 2 \" + storesList.size());\n if(maxStores < 0) {\n \t maxStores = 0;\n }\n System.out.println(maxStores);\n List<String> id_store = new ArrayList<String>();\n for (int i = 0; i< storesList.size(); i++) {\n \t id_store.add(String.valueOf(storesList.get(i).getStore().getStoreId()));\n }\n \t storesList.addAll(findStoreByProfil(96,maxStores,id_store));\n \t maxStores = maxStores - storesList.size();\n \t if(maxStores < 0) {\n \t\t maxStores = 0;\n \t }\n storesList.addAll(findStoreNoCommand(1,maxStores));\n // list that contains the id stores of the pre-set shops\n\n System.out.println(storesList.size() + \" STORE LIST SIZE \" + maxStores);\n if (storesList.size() < maxStores) {\n \t maxStores = maxStores - storesList.size();\n \t System.out.println(storesList.size() + \" SIZE DE LA STORE LIST APRES PROFIL\");\n \t // storesList.addAll(findByIdWithLimitContainsNoStore(maxStores,id_store));\n }\n \t // storesList.addAll(findByIdWithLimitContainsNoStore(maxStores,id_store));\n\n System.out.println(restaurant + \" restaurant \" + cinema + \" cinema\");\n if (restaurant) {\n \t storesList.addAll(findOneRestaurant(1));\n }\n\n if(cinema) {\n \t storesList.add(findCinema());\n }\n\n Collections.sort(storesList, new Comparator<LocationStore>(){\n \t public int compare(LocationStore s1, LocationStore s2) {\n \t \tif (s1.getLocation().getAile() == s2.getLocation().getAile()) {\n \t \t\treturn ((s1.getLocation().getIdLocation())).compareTo(s2.getLocation().getIdLocation());\n \t }\n \t \t\treturn Integer.valueOf((s1.getLocation().getAile())).compareTo(s2.getLocation().getAile());\n\n \t }\n \t});\n\n\n return storesList;\n }", "title": "" }, { "docid": "3c275a2a7b735adc2d26a5ffcc6c5615", "score": "0.48743147", "text": "private double calculateDistance(Celestial c) {\n //double dx = c.getX() - this.x;\n //double dy = c.getY() - this.y;\n //NOTE: this is not the proper distance formula, but the planets ONLY orbit properly if I use this\n return Math.sqrt((this.x*c.getX())+(this.y*c.getY()));\n }", "title": "" }, { "docid": "b49e205ed67fb668656bf0bfcec4cc83", "score": "0.48739916", "text": "public native static float distance(java.util.List oper1, GameLocation oper2);", "title": "" }, { "docid": "b32666460a64d148001f452d91883540", "score": "0.48662472", "text": "public static double get_distance (double[] selectedDistanceList ,double[] queryDistanceList){\n\n double sum =0;\n\n if(selectedDistanceList.length == queryDistanceList.length){\n for(int i=0; i < selectedDistanceList.length; i++){\n\n sum += Math.pow(Math.abs(selectedDistanceList[i] - queryDistanceList[i]),2);\n }\n\n return Math.sqrt(sum);\n\n }\n\n else return -1;\n\n }", "title": "" }, { "docid": "3afa73cde1a57f15edcf78403d7bfe9f", "score": "0.4853855", "text": "public int getTotalDistance()\r\n\t{\r\n\t\treturn totalDistance;\r\n\t}", "title": "" }, { "docid": "c52adfada4ce153dd7b88e855a6b29e1", "score": "0.4849681", "text": "public float distanceFrom_in_Km(double lat1, double lng1, double lat2, double lng2) {\n Location startPoint=new Location(\"locationA\");\n startPoint.setLatitude(lat1);\n startPoint.setLongitude(lng1);\n\n Location endPoint=new Location(\"locationA\");\n endPoint.setLatitude(lat2);\n endPoint.setLongitude(lng2);\n\n double distance= (int) startPoint.distanceTo(endPoint);\n return (float) distance;\n }", "title": "" }, { "docid": "0544efff66c51f5f502824280cef3e13", "score": "0.48330376", "text": "private int calculateTurtleMetric(int location) {\n\n\t\t\tdouble homeDistancePenalty = Math.sqrt(distanceSquaredTo(myHome, location));\n\t\t\thomeDistancePenalty /= 4;\n\t\t\tdouble enemyDifferencePenalty = Math.abs(Math.sqrt(distanceSquaredTo(oppositeLoc(myHome, symmetryStatus), location)) - Math.sqrt(distanceSquaredTo(oppositeLoc(myHome, symmetryStatus), myHome)));\n\t\t\tdouble enemyDistancePenalty = Math.sqrt(distanceSquaredTo(oppositeLoc(myHome, symmetryStatus), location));\n\t\t\tenemyDistancePenalty /= 8;\n\n\t\t\t// Multiply by some big number to preserve precision\n\t\t\tdouble value = homeDistancePenalty + enemyDifferencePenalty + enemyDistancePenalty;\n\t\t\treturn ((int) (value*1000));\n\t\t}", "title": "" }, { "docid": "1e775c8d053244d95da2d5368e3380cf", "score": "0.48319116", "text": "public double totDistSource() {\n double tot = 0;\n for (int i = 0; i < distTo.length; i++) {\n tot += distTo[i];\n }\n return tot;\n }", "title": "" }, { "docid": "a738f3468cb6f49cb88c470f58e45688", "score": "0.48279765", "text": "public abstract double getDeliveryDistance();", "title": "" }, { "docid": "95fcc3d3cd7ceb3de068c09afa46265a", "score": "0.48237336", "text": "private double distance(LatLng latLng1, LatLng latLng2) {\n\n double lat1,lng1,lat2,lng2;\n lat1=latLng1.latitude;\n lng1=latLng1.longitude;\n lat2=latLng2.latitude;\n lng2=latLng2.longitude;\n\n double earthRadius = 3958.75; // in miles, change to 6371 for kilometer output\n\n double dLat = Math.toRadians(lat2-lat1);\n double dLng = Math.toRadians(lng2-lng1);\n\n double sindLat = Math.sin(dLat / 2);\n double sindLng = Math.sin(dLng / 2);\n\n double a = Math.pow(sindLat, 2) + Math.pow(sindLng, 2)\n * Math.cos(Math.toRadians(lat1)) * Math.cos(Math.toRadians(lat2));\n\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));\n\n double dist = earthRadius * c;\n\n return dist; // output distance, in MILES\n }", "title": "" }, { "docid": "efc64a4c802759611f18a3d69bd96b33", "score": "0.481643", "text": "public double calculateDistance(String latString, String lngString) {\n\t\t// convert string to double and return -1 if some exception occurs\n\t\tdouble lat, lng;\n\t\ttry {\n\t\t\tlat = Double.parseDouble(latString);\n\t\t\tlng = Double.parseDouble(lngString);\n\t\t} catch (NullPointerException exception) {\n\t\t\tLogger logger = Logger.getAnonymousLogger();\n\t\t\tlogger.log(Level.SEVERE, \"Null pointer exception\", exception);\n\t\t\treturn -1;\n\t\t} catch (NumberFormatException exception) {\n\t\t\tLogger logger = Logger.getAnonymousLogger();\n\t\t\tlogger.log(Level.SEVERE, \"Number format exception\", exception);\n\t\t\treturn -1;\n\t\t}\n\t\t// convert degree to radians\n\t\tdouble latitude = Math.toRadians(lat);\n\t\tdouble longitude = Math.toRadians(lng);\n\t\t// find difference between them\n\t\tdouble longitudeDistnace = Constants.OFFICE_LONGITUDE - longitude;\n\t\tdouble latitudeDistance = Constants.OFFICE_LATITUDE - latitude;\n\n\t\t// Haversine formula\n\t\tdouble distance = Math.pow(Math.sin(latitudeDistance / 2), 2) + Math.cos(Constants.OFFICE_LATITUDE)\n\t\t\t\t* Math.cos(latitude) * Math.pow(Math.sin(longitudeDistnace / 2), 2);\n\n\t\tdouble accurateDistance = 2 * Math.asin(Math.sqrt(distance));\n\n\t\t// calculate the result\n\t\treturn (accurateDistance * Constants.RADIUS);\n\n\t}", "title": "" }, { "docid": "3bdffa155713bfa4860e188dff1e6935", "score": "0.48126608", "text": "private ArrayList<XYCoord> findTravelDestinations(GameMap gameMap, ArrayList<Unit> allThreats, Map<UnitModel, Map<XYCoord, Double>> threatMap, Unit unit)\n {\n ArrayList<XYCoord> goals = new ArrayList<XYCoord>();\n\n boolean shouldResupply = (unit.getHP() < unit.model.maxHP) || (unit.fuel < unit.model.maxFuel*UNIT_REFUEL_THRESHHOLD);\n if( !shouldResupply )\n {\n // Resupply also if we need ammo.\n for( Weapon weap : unit.weapons )\n {\n if( weap.ammo <= weap.model.maxAmmo * UNIT_REARM_THRESHHOLD )\n shouldResupply = true;\n }\n }\n\n if( shouldResupply )\n {\n log(String.format(\"%s needs supplies.\", unit.toStringWithLocation()));\n ArrayList<XYCoord> stations = AIUtils.findRepairDepots(unit);\n for( XYCoord coord : stations )\n {\n Location station = gameMap.getLocation(coord);\n // Go to the nearest unoccupied friendly depot, but don't gum up the production lines.\n if( station.getResident() == null && unit.CO.unitProductionByTerrain.containsKey(station.getEnvironment().terrainType) )\n goals.add(coord);\n }\n Utils.sortLocationsByDistance(new XYCoord(unit.x, unit.y), goals);\n }\n else if( unit.model.possibleActions.contains(UnitActionType.CAPTURE) )\n {\n goals.addAll(unownedProperties);\n Utils.sortLocationsByDistance(new XYCoord(unit.x, unit.y), goals);\n }\n else if( unit.model.possibleActions.contains(UnitActionType.ATTACK) )\n {\n Map<UnitModel, Double> valueMap = new HashMap<UnitModel, Double>();\n Map<UnitModel, ArrayList<XYCoord>> targetMap = new HashMap<UnitModel, ArrayList<XYCoord>>();\n\n // Categorize all enemies by type, and all types by how well we match up vs them\n for (Unit target : allThreats)\n {\n UnitModel model = target.model;\n XYCoord targetCoord = new XYCoord(target.x, target.y);\n double effectiveness = findEffectiveness(unit.model, target.model);\n if (Utils.findShortestPath(unit, targetCoord, gameMap, true) != null &&\n AGGRO_EFFECT_THRESHHOLD > effectiveness)\n {\n valueMap.put(model, effectiveness*model.getCost());\n if (!targetMap.containsKey(model)) targetMap.put(model, new ArrayList<XYCoord>());\n targetMap.get(model).add(targetCoord);\n }\n }\n\n // Sort all individual target lists by distance\n for (ArrayList<XYCoord> targetList : targetMap.values())\n Utils.sortLocationsByDistance(new XYCoord(unit.x, unit.y), targetList);\n\n // Sort all target types by how much we want to shoot them with this unit\n Queue<Entry<UnitModel, Double>> targetTypesInOrder = \n new PriorityQueue<Entry<UnitModel, Double>>(myCo.unitModels.size(), new UnitModelFundsComparator());\n targetTypesInOrder.addAll(valueMap.entrySet());\n\n while (!targetTypesInOrder.isEmpty())\n {\n UnitModel model = targetTypesInOrder.poll().getKey(); // peel off the juiciest\n goals.addAll(targetMap.get(model)); // produce a list ordered by juiciness first, then distance TODO: consider a holistic \"juiciness\" metric that takes into account both matchup and distance?\n }\n }\n\n if (goals.isEmpty()) // Send 'em to the HQ if they haven't got anything better to do\n {\n for( XYCoord coord : unownedProperties )\n {\n Location loc = gameMap.getLocation(coord);\n if( (loc.getEnvironment().terrainType == TerrainType.HEADQUARTERS || TerrainType.LAB == loc.getEnvironment().terrainType)\n && loc.getOwner() != null)\n {\n goals.add(coord);\n }\n }\n Utils.sortLocationsByDistance(new XYCoord(unit.x, unit.y), goals);\n }\n\n return goals;\n }", "title": "" }, { "docid": "1fb1d6bca7f544d2d30a1ded75cd4698", "score": "0.48049885", "text": "abstract double getDistanceFromWaypoint();", "title": "" } ]
7c39a5080e4f6cd10bf48d26b49017d0
Gets the save button of this level editor.
[ { "docid": "fbdb2c7f1f82ccc2a39e56b10c751bf3", "score": "0.82342285", "text": "public JButton getSaveButton() {\n\t\treturn save_button;\n\t}", "title": "" } ]
[ { "docid": "729c82ec4a448049f43a1fb868622737", "score": "0.81390977", "text": "public JButton getSaveButton() {\n return saveButton;\n }", "title": "" }, { "docid": "b596fc266c7f35c0bca640ea286e09d5", "score": "0.80990297", "text": "final protected Button getSaveBtn() {\n return save;\n }", "title": "" }, { "docid": "730277ffd2e6035e3cb6ab2c645b547a", "score": "0.7552279", "text": "public JButton getSaveButton(){\r\n\t\treturn next_button;\r\n\t}", "title": "" }, { "docid": "928ccb084d6293383e7b2273df16bbf6", "score": "0.7503845", "text": "Button getSaveButton();", "title": "" }, { "docid": "f31f7c8e63fbb39002e2ec10c2343d39", "score": "0.72411084", "text": "public String save_getType() {\n\t\treturn getButton().getType().toString();\n\t}", "title": "" }, { "docid": "1626d144694bfa8ebc523023dca8c29c", "score": "0.7181846", "text": "public JMenuItem getSaveToolBarMenuItem() {\r\n\t\treturn _saveToolBarMenuItem;\r\n\t}", "title": "" }, { "docid": "bb615415c1d644634a36655be5f271b6", "score": "0.7161609", "text": "public String getEditSaveButtonId() {\r\n \treturn pro.getProperty(\"btnEditSaveChanges\");\r\n }", "title": "" }, { "docid": "b63eb51da47ace461e61db6d7402f97f", "score": "0.7136292", "text": "public String save_getName() {\n\t\treturn getButton().getName();\n\t}", "title": "" }, { "docid": "13f6567a14aef5137616067a5007d8d4", "score": "0.673956", "text": "private JButton getSavePublishSettingsButton() {\n\t\tif (savePublishSettingsButton == null) {\n\t\t\tsavePublishSettingsButton = new JButton();\n\t\t\tsavePublishSettingsButton.setText(\"save settings\");\n\t\t}\n\t\treturn savePublishSettingsButton;\n\t}", "title": "" }, { "docid": "c9c18f731d5ed87ed19b814befb0885c", "score": "0.6713355", "text": "private javax.swing.JButton getTbbSave() {\n\t\tif (ivjTbbSave == null) {\n\t\t\ttry {\n\t\t\t\tivjTbbSave = new javax.swing.JButton();\n\t\t\t\tivjTbbSave.setName(\"TbbSave\");\n\t\t\t\tivjTbbSave.setToolTipText(\"Save\");\n\t\t\t\tivjTbbSave.setText(\"\");\n\t\t\t\tivjTbbSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n\t\t\t\tivjTbbSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n\t\t\t\tivjTbbSave.setIcon(null);\n\t\t\t\tivjTbbSave.setMargin(new java.awt.Insets(0, 0, 0, 0));\n\t\t\t\tivjTbbSave.setEnabled(false);\n\t\t\t\t// user code begin {1}\n\t\t\t\tivjTbbSave.setIcon(CommonUserAccess.getIconSave());\n\t\t\t\tivjTbbSave.setToolTipText(CommonUserAccess.getMniFileSaveText());\n\t\t\t\t// user code end\n\t\t\t} catch (java.lang.Throwable ivjExc) {\n\t\t\t\t// user code begin {2}\n\t\t\t\t// user code end\n\t\t\t\thandleException(ivjExc);\n\t\t\t}\n\t\t}\n\t\treturn ivjTbbSave;\n\t}", "title": "" }, { "docid": "32ac4894b4d7503a7c5591eb28482a61", "score": "0.66330904", "text": "public JMenuItem getSaveToolBarAsMenuItem() {\r\n\t\treturn _saveToolBarAsMenuItem;\r\n\t}", "title": "" }, { "docid": "a47c779e8f9575712ae6ae863608ad71", "score": "0.66307706", "text": "public boolean isButtonSaveEnabled();", "title": "" }, { "docid": "ef863812cf36f3466a0b3a6b3951d0f1", "score": "0.65155274", "text": "public boolean isSavedClicked() {\n return saveClicked;\n }", "title": "" }, { "docid": "68dc0a34163e759bd37c98f0b78e9029", "score": "0.64902705", "text": "public boolean isSaveClicked() {\n return saveClicked;\n }", "title": "" }, { "docid": "6fb8deca1278d42553a98168baef3eff", "score": "0.64245456", "text": "public JButton getStoryLevelMenuButton() {\n\t\treturn storyLevelMenuButton;\n\t}", "title": "" }, { "docid": "59c748be03ee54d02f5804dfbbfed071", "score": "0.6409137", "text": "public File getSaveFile() {\n\t\treturn get().getSaveFile();\n\t}", "title": "" }, { "docid": "ba8a368f74ff873968feec3841493ab1", "score": "0.6298768", "text": "public int getSave() {\n Integer save = (Integer) dobj.getPrimaryFile().getAttribute(EA_SAVE);\n return (save != null) ? save.intValue(): SAVE_ALL;\n }", "title": "" }, { "docid": "06f0cdaf05683038471aab06c49b0b94", "score": "0.62702113", "text": "public String saveFile() {\n\t\treturn fileDialogBuilder(SWT.SAVE).getFilterPath();\n\t}", "title": "" }, { "docid": "50bc59af679f74dba06e894649bf0e86", "score": "0.6247102", "text": "public int save_getButtonType() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1815d5747e45757d546d2a34fc836c8d", "score": "0.6157725", "text": "public String save_getClassName() {\n\t\treturn getButton().getClass().getName();\n\t}", "title": "" }, { "docid": "f05e5f3963502c518431440766533f51", "score": "0.6157148", "text": "private JButton createSaveGameButton() {\n JButton saveButton = new JButton(\"Save\");\n saveButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n doSaveGame();\n }\n });\n saveButton.setBounds(10, 530, 80, 30);\n return saveButton;\n }", "title": "" }, { "docid": "2762314fd64f88829453a8cf7905a90e", "score": "0.60857546", "text": "public JMenuItem getSaveGrammarMenuItem() {\r\n\t\treturn _saveGrammarMenuItem;\r\n\t}", "title": "" }, { "docid": "ded3372160f687ced0aa5467435d50d6", "score": "0.6030908", "text": "String getLevelButtonName();", "title": "" }, { "docid": "8b8a06bb86e39edf4e12babf39449bca", "score": "0.6023219", "text": "public boolean clickSaveButton()\n\t{\n\t\treturn\tutils.clickAnelemnt(SaveButton, \"MemberComposite_SecureMessageSection\", \"SaveButton\");\n\t}", "title": "" }, { "docid": "93987787ae01c6a592479f88420fa283", "score": "0.59615034", "text": "public String getFileSavePath() {\n return fileSavePath;\n }", "title": "" }, { "docid": "4da2180a8be058ee7d29808153f4e94d", "score": "0.5920717", "text": "public JButton getGuardar() {\n\t\treturn guardar;\n\t}", "title": "" }, { "docid": "62994db87357b8d434d09f6010633902", "score": "0.58329105", "text": "@java.lang.Override\n public int getButton() {\n return instance.getButton();\n }", "title": "" }, { "docid": "373456fb74fde27c2881095975a37a6b", "score": "0.58190465", "text": "private JButton getBSafeFile() {\r\n\t\tif (this.bSafeFile == null) {\r\n\t\t\tthis.bSafeFile = new JButton();\r\n\t\t\tthis.bSafeFile.setText(\"Save File\");\r\n\t\t\tthis.bSafeFile.setLocation(new Point(403, 83));\r\n\t\t\tthis.bSafeFile.setSize(new Dimension(84, 22));\r\n\t\t\tthis.bSafeFile.setMnemonic(KeyEvent.VK_UNDEFINED);\r\n\t\t\tthis.bSafeFile.addActionListener(this);\r\n\t\t}\r\n\t\treturn this.bSafeFile;\r\n\t}", "title": "" }, { "docid": "f78e37413fa22a27497af243d35aba4e", "score": "0.5811228", "text": "public JButton getBtn() {\n\t\t\treturn button;\n\t\t}", "title": "" }, { "docid": "7f7964ff1fee88ad488a984788d7074a", "score": "0.5781506", "text": "public FileSpecification getSaveLocation() {\n return saveLocation;\n }", "title": "" }, { "docid": "29a8d25091b8d9115ddd5595254b79e2", "score": "0.57311445", "text": "public JButton getGenerateButton() {\n\t\treturn generate_button;\n\t}", "title": "" }, { "docid": "933c440a29cc7078acded6a809a1410d", "score": "0.5728425", "text": "public JMenuItem getSaveGrammarAsMenuItem() {\r\n\t\treturn _saveGrammarAsMenuItem;\r\n\t}", "title": "" }, { "docid": "d09becb26ce21d8f0bf762985a803f75", "score": "0.5704532", "text": "public BufferedImage getSaveImage(){\n return saveImage;\n }", "title": "" }, { "docid": "b9c5558dc7db382242f6e677a71b029e", "score": "0.56817335", "text": "@OnClick\n public void saveClicked() {\n if (canSaveChanges()) {\n this.saveButton.setState(State.Success);\n getFragmentManager().popBackStack();\n }\n }", "title": "" }, { "docid": "68f3a2d815f3a60b8f0128083efa186c", "score": "0.56640965", "text": "public boolean getTbbSaveEnabled() {\n\t\treturn getTbbSave().isEnabled();\n\t}", "title": "" }, { "docid": "36741a922602c033773d04a4b505715d", "score": "0.5663175", "text": "public String getSaveMessage(){\n return saveMessage;\n }", "title": "" }, { "docid": "faec45c408fb83ff56aa2895f0e0a0fb", "score": "0.5661586", "text": "public String getFilePath(){\r\n\t\treturn gui.getPathSave();\r\n\t}", "title": "" }, { "docid": "18b0119c1b769aa999b940822ad27caa", "score": "0.5660958", "text": "public JButton getBtn_siguienteEntropia() {\n return btn_siguienteEntropia;\n }", "title": "" }, { "docid": "88ad78a9aeca21375f449b2f717c0093", "score": "0.56565094", "text": "public int getSaveVersion()\n {\n return this.saveVersion;\n }", "title": "" }, { "docid": "929cd4852c7fd2b6c464d863f5bced4a", "score": "0.56457967", "text": "public JButton getButton() {\n \treturn addButton;\n }", "title": "" }, { "docid": "08fcd852a20c80c9b15ab8a50acec20c", "score": "0.5640216", "text": "public SaveFormat getSaveLoader() {\n return this.saveFormat;\n }", "title": "" }, { "docid": "4bc0c79e3e9bd10144313dcf1aa19073", "score": "0.56256825", "text": "public JButton getBotonElegirArchivo() {\n\t\treturn botonElegirArchivo;\n\t}", "title": "" }, { "docid": "9eb779a5120fe189cf5eaa7a3c5cc04d", "score": "0.5623022", "text": "public SaveResultType getSaveResultType() {\n return saveResultType;\n }", "title": "" }, { "docid": "bcce8d28f0cdc34ad7237e0b334a8061", "score": "0.55984664", "text": "@java.lang.Override\n public int getButton() {\n return button_;\n }", "title": "" }, { "docid": "eb210b5489de8757cc72879fe6e30f35", "score": "0.5596491", "text": "@Override\r\n\tpublic String getSaveFileDiv() {\n\t\treturn super.getSaveFileDiv();\r\n\t}", "title": "" }, { "docid": "cc63e6c8b28a5c40219289041d443ebc", "score": "0.55914515", "text": "public JButton getSalir() {\n\t\treturn salir;\n\t}", "title": "" }, { "docid": "12c24fd63ea051f8c0aecbcd3805ab55", "score": "0.5590968", "text": "public void setzeSaveButton() {\n\t\tsave = new JButton(\"Speichern\");\n\t\tsave.setVisible(true);\n\n\t\tActionListener alsave = new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tPrintWriter pWriter = new PrintWriter(new FileWriter(\n\t\t\t\t\t\t\tKonstanten.DIRECTION\n\t\t\t\t\t\t\t\t\t+ \"/src/game/Szenario/gespeichert.txt\"));\n\t\t\t\t\tpWriter.println(getSave(spiel.getSpieler().get(0)));\n\t\t\t\t\tpWriter.flush();\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"Das aktuelle Spielfeld wurde gespeichert\",\n\t\t\t\t\t\t\t\"Erfolgreich gespeichert\",\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t};\n\n\t\tsave.addActionListener(alsave);\n\t\tsave.setBounds(Konstanten.XSAVE, Konstanten.YSAVE,\n\t\t\t\tKonstanten.BREITESAVE, Konstanten.HOEHESAVE);\n\t\tpanelButtons.add(save);\n\t}", "title": "" }, { "docid": "d2017e66e9dc5b76331eed9154897571", "score": "0.5582634", "text": "private JButton getBackupButton() {\n if (backupButton == null) {\n JButton button = createButton();\n button.setText(JNCUResources.getString(\"backup\"));\n button.setMnemonic(JNCUResources.getChar(\"backupMnemonic\", KeyEvent.VK_B));\n button.setIcon(JNCUResources.getIcon(\"/dialog/play.png\"));\n button.setEnabled(false);\n backupButton = button;\n }\n return backupButton;\n }", "title": "" }, { "docid": "d7c5411589dd248c613ce83993aa1818", "score": "0.5581968", "text": "public JButton getPaperBtn() {\r\n return myPaperBtn;\r\n }", "title": "" }, { "docid": "80cb64a86bdb14aa55a3599c7677bfcc", "score": "0.5567503", "text": "private JButton getModelButton() {\r\n\t\tif (modelButton == null) {\r\n\t\t\tmodelButton = new JButton();\r\n\t\t\tmodelButton.setText(\"Browse\");\r\n\t\t\tmodelButton.setName(\"model\");\r\n\t\t\tmodelButton.addActionListener(this);\r\n\t\t}\r\n\t\treturn modelButton;\r\n\t}", "title": "" }, { "docid": "063f7833858b8b81064b3dc4abb27e38", "score": "0.55553174", "text": "public int save_getMenuId() {\n\t\tif (!(getButton().getCurrentMenu() instanceof SaveableMenu)) return -1;\n\t\tfor (int i = 0; i < SaveableMenuHandler.getMenus().size(); i++) {\n\t\t\tif (SaveableMenuHandler.getMenus().get(i).getMenu() == getButton().getCurrentMenu()) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "77e80f499c0218f8e46fe91c4983eb32", "score": "0.555474", "text": "public String getSaveLocation() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);\n return sharedPreferences.getString(PreferenceKeys.getSaveLocationPreferenceKey(), \"OpenCamera\");\n }", "title": "" }, { "docid": "ac502afb17d588df283dd59e50aea8a1", "score": "0.5536259", "text": "public void enableSaveButton() {\r\n saveButton.setEnabled(true);\r\n saveMenuItem.setEnabled(true);\r\n }", "title": "" }, { "docid": "447e39bbd52d159633eec66fb692a7b1", "score": "0.5525838", "text": "private JButton createSaveMessagesButton() {\n JButton saveButton = new JButton(\"Save\");\n saveButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n doSaveMessages();\n }\n });\n saveButton.setBounds(10, 530, 80, 30);\n return saveButton;\n }", "title": "" }, { "docid": "76d7b673f30a45efe9e0fadabcc58a96", "score": "0.5496867", "text": "public String getButtonName() {\n return buttonName;\n }", "title": "" }, { "docid": "4ce6e2542742cd308be0750b3b9ba29b", "score": "0.54860806", "text": "public JMenuItem createSaveMenuItem() {\n\t\tImageIcon saveIcon = new ImageIcon(getClass().getResource(\"/save.png\"));\n\t\tImage saveIm = saveIcon.getImage();\n\t\tImage newSave = saveIm.getScaledInstance(20, 20, Image.SCALE_DEFAULT);\n\t\tsaveIcon = new ImageIcon(newSave);\n\n\t\t// create save menu item with save icon\n\t\tsave = new JMenuItem(\"Save\", saveIcon);\n\t\tsave.getAccessibleContext().setAccessibleDescription(\"Saves the current game.\");\n\n\t\tActionListener saveListener = new SaveListener();\n\t\tsave.addActionListener(saveListener);\n\n\t\treturn save;\n\t}", "title": "" }, { "docid": "ff56f39710660cb0978527bd8d09aa3e", "score": "0.54833186", "text": "public Button getEraseButton() {\r\n\t\treturn eraseButton;\r\n\t}", "title": "" }, { "docid": "2ecd793b73d9fd657acb36382c725d87", "score": "0.5480781", "text": "public BrowseButton getBrowseButton() {\n \treturn browseButton;\n }", "title": "" }, { "docid": "496aca9c1cac547408d8b816780d1c69", "score": "0.54805315", "text": "public Button getApplyButton() {\n\t\treturn apply;\n\t}", "title": "" }, { "docid": "3ece5fab82109cb79e8e4398fa6841c2", "score": "0.5474487", "text": "int getButton();", "title": "" }, { "docid": "89ecbf57178be6bb8e253837c99ee498", "score": "0.5472709", "text": "public JButton getExit() {\n\t\treturn exit;\n\t}", "title": "" }, { "docid": "11ce874eaef744d297654433edae6414", "score": "0.54703784", "text": "public JButton getUserLevelMenuButton() {\n\t\treturn userLevelMenuButton;\n\t}", "title": "" }, { "docid": "c6b596a5a878a79acf2c029222134966", "score": "0.5470057", "text": "public Button getSubmitButton() {\n\t\treturn submit;\n\t}", "title": "" }, { "docid": "3b77597801c6ef4aed7f52ad2be4320f", "score": "0.54574454", "text": "public void clickSaveAndCloseButton() {\n getSaveAndCloseButton().click();\n }", "title": "" }, { "docid": "eb7f5df630cc321e98dff229cb2cef84", "score": "0.5448846", "text": "public String toString(){\n return \"save\";\n }", "title": "" }, { "docid": "15a5e282943ec70e85b629066853d478", "score": "0.5447347", "text": "public JButton getMainMenuButton() {\n\t\treturn main_menu_button;\n\t}", "title": "" }, { "docid": "80522cf43f3ed3d146b26872fbaea918", "score": "0.54470664", "text": "private JButton getWorkButton() {\r\n\t\tif (workButton == null) {\r\n\t\t\tworkButton = new JButton();\r\n\t\t\tworkButton.setText(\"Browse\");\r\n\t\t\tworkButton.setName(\"work\");\r\n\t\t\tworkButton.addActionListener(this);\r\n\t\t}\r\n\t\treturn workButton;\r\n\t}", "title": "" }, { "docid": "8b075d62ea62ba8ed30d3925c258abf5", "score": "0.54342604", "text": "public int save_getAmount() {\n\t\treturn getButton().getAmount();\n\t}", "title": "" }, { "docid": "fefbe8de286623a996ed4d09e296dce7", "score": "0.5433024", "text": "public ImpersonationPage clickSaveButton(){\n\t\t(new WebDriverWait(driver,20)).until(ExpectedConditions.visibilityOf(saveButton));\n\t\tsaveButton.click();\n\t\tLogManager.info(\"Click on 'Save' button on impersonation page\");\n\t\treturn this;\n\t}", "title": "" }, { "docid": "d69fcb4e8d3eb2e8ee06485a8922d36f", "score": "0.5425523", "text": "public JButton getRightButton1() {\r\n return right1;\r\n }", "title": "" }, { "docid": "77a0d02d90c022bad97264239fc2df06", "score": "0.54096353", "text": "public int getLastButtonPressed() {\n return lastButtonPressed;\n }", "title": "" }, { "docid": "1ceb967e02449e23b6792291629839c7", "score": "0.5385439", "text": "private JButton getOkButton() {\n\t\tif (okButton == null) {\n\t\t\tokButton = new JButton();\n\t\t\tokButton.setText(DeepaMehtaMessages.getString(\"InstancePropertiesDialog.OKButton\")); //$NON-NLS-1$\n\t\t\tokButton.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tsaveInstanceData();\n\t\t\t\t\thide();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn okButton;\n\t}", "title": "" }, { "docid": "cabaeac2e87ad30174abc94dfe75e639", "score": "0.5380684", "text": "public JFXButton getCloseButton(){\n return btn_toolbar_close;\n }", "title": "" }, { "docid": "04f871f3febc6c2fb553968d121cfa50", "score": "0.5367741", "text": "public String getSubmitButtonName() {\n return getStringProperty(SUBMIT_BUTTON_NAME_KEY);\n }", "title": "" }, { "docid": "17c862d315e632c67c329ad6ea44d0eb", "score": "0.5365875", "text": "private RButton getDeactivateButton() {\n if (deactivateButton == null) {\n deactivateButton = new RButton();\n deactivateButton.setText(\"Deactivate\");\n deactivateButton.setName(\"deactivateButton\");\n }\n return deactivateButton;\n }", "title": "" }, { "docid": "aaddd892bcb8275323b6d14d56e0c379", "score": "0.5361944", "text": "public JButton get_btn_ok() {\n\t\tif (_btn_ok == null) {\n\t\t\t_btn_ok = new JButton();\n\t\t\t_btn_ok.setBounds(new Rectangle(211, 173, 26, 22));\n\t\t\t_btn_ok.setIcon(new ImageIcon(getClass().getResource(\"/icons/emblem-default.png\")));\n\t\t}\n\t\treturn _btn_ok;\n\t}", "title": "" }, { "docid": "53aeeaf8f9ff46839e72c742dc45d0d4", "score": "0.5360826", "text": "SaveAnalysisCommand getSaveAnalysis();", "title": "" }, { "docid": "58261c0d18dcd88ecf79f6c698be4783", "score": "0.5355236", "text": "private void bSaveActionPerformed() {\n manager.saveToFile();\n }", "title": "" }, { "docid": "670a871eaf6cf74d4e9a99f7b08f4088", "score": "0.5350858", "text": "public JButton getAddEmployeeButton() {\n\n\t\treturn addEmployeeBtn;\n\n\t}", "title": "" }, { "docid": "82d0100c21ec97b2dd850348b4443bff", "score": "0.5349708", "text": "private static void setupSaveButton() {\n saveButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n canvas.saveCanvas();\n }\n });\n }", "title": "" }, { "docid": "4766ee3b0e8adf46f9b0bf6adeb8168c", "score": "0.53459597", "text": "public void clickSave() {\r\n\t\tclick(driver, By.xpath(Interfaces.NewBannerPage.BTN_SAVE));\r\n\t}", "title": "" }, { "docid": "25cc90c45889c07d70f505055bc4669c", "score": "0.5336911", "text": "public JButton getReserveBtn() {\r\n\t\treturn btnReserve;\r\n\t}", "title": "" }, { "docid": "6b9050e1312d37ccd28e17f3c9c05eab", "score": "0.53329474", "text": "public int lastsave() {\n return integer(sendInline(\"LASTSAVE\"));\n }", "title": "" }, { "docid": "f7008df106d098a421f6f609d57e9a8b", "score": "0.5332825", "text": "public JButton getWaffleBtn() {\r\n return myWaffleBtn;\r\n }", "title": "" }, { "docid": "f006f3df5b8c8f172253b172babe1660", "score": "0.5317241", "text": "public JButton getButtonSearcher() {\r\n\t\treturn formPan.getButtonSearch();\r\n\t}", "title": "" }, { "docid": "5db37b611d373e5e2f4c3bf0ff3b2807", "score": "0.5313684", "text": "public ActionListener getSaveFileListener()\n {\n return (ActionEvent e) ->\n {\n int ret = fc.showSaveDialog(v);\n if (ret == JFileChooser.APPROVE_OPTION) {\n File file = fc.getSelectedFile();\n StdAudio.save(file.getAbsolutePath(), m.getSample());\n }\n };\n }", "title": "" }, { "docid": "74cb65afd96ee2697101b2a3a60b8177", "score": "0.5305167", "text": "public Button getButton()\n {\n if ( getLocationName().equals( FIRST_FLOOR_NAME ) )\n return getElevatorShaft().getFirstFloorButton();\n else\n\n if ( getLocationName().equals( SECOND_FLOOR_NAME ) )\n return getElevatorShaft().getSecondFloorButton();\n else\n\n return null;\n\n }", "title": "" }, { "docid": "eef5b0dbc54eae888b709d536ff4e669", "score": "0.5304462", "text": "public javax.swing.JButton getBookButton() {\n\t\treturn groupShopButton;\n\t}", "title": "" }, { "docid": "9ebac69be2189607ddedf883c2dfa1f6", "score": "0.53004646", "text": "public JButton getRightButton2() {\r\n return right2;\r\n }", "title": "" }, { "docid": "2e07bece77067a83fdd439de99f93e19", "score": "0.5297415", "text": "public String getButtonCode() {\n return buttonCode;\n }", "title": "" }, { "docid": "b84891b65c2925f924f5e4af62d6e243", "score": "0.5291087", "text": "public JButton getBtnTraitee(){\n\t\treturn this.btn_traitee;\n\t}", "title": "" }, { "docid": "0387d2210265771cecbe323fdfd38866", "score": "0.5289027", "text": "public String getEditor() {\n return Editor;\n }", "title": "" }, { "docid": "10c03622250d03b36d0dcfc12ec46d8b", "score": "0.52862275", "text": "public Object getBtnCreate() {\n return btnCreate;\n }", "title": "" }, { "docid": "bdf44d02fea37b8ef57080f22538aa44", "score": "0.5285692", "text": "public CommandButtonKind getCommandButtonKind() {\n return this.commandButtonKind;\n }", "title": "" }, { "docid": "e9c1d0db17b5b9f6f7b75c96e66ac220", "score": "0.5285236", "text": "public JButtonOperator btBack() {\n if (_btBack==null) {\n _btBack = new JButtonOperator(this, \"< Back\"); // NOI18N\n }\n return _btBack;\n }", "title": "" }, { "docid": "c429c6b4f6d13d5a2258ec17928ee608", "score": "0.52738833", "text": "public Button getLearnDBButton() {\n\t\treturn learnDB;\n\t}", "title": "" }, { "docid": "0ce7900ea1e791069290ccc3e8f0d686", "score": "0.526234", "text": "public WebElement getWishListButton() {\n\t\tWebElement WishListButton = driver.findElement(By.xpath(\"//button[text()='Save to Wishlist']\"));\n\t\treturn WishListButton;\n\t}", "title": "" }, { "docid": "ae8ba87e65e7dc784e8f5d6ed04ea227", "score": "0.52591634", "text": "public String getSaveLocation() {\n\t\tString selectedFile = null;\n\t\tJFileChooser fileChooser = new JFileChooser();\n\t\tfileChooser.setDialogTitle(\"Select a folder\");\n\t\tint response = fileChooser.showSaveDialog(null);\n\t\tif (response == JFileChooser.APPROVE_OPTION) {\n\t\t\tString tempPath = fileChooser.getSelectedFile().getAbsolutePath();\n\t\t\tif (!tempPath.contentEquals(\"\")) {\n\t\t\t\tselectedFile = tempPath;\n\n\t\t\t\twhile (!selectedFile.endsWith(\".txt\")) {\n\t\t\t\t\tselectedFile += \".txt\";\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn selectedFile;\n\t}", "title": "" }, { "docid": "599c2ca795e7021ad8d0f66369b9098f", "score": "0.5252445", "text": "public JButton getBtnPolaganja() {\n return btnPolaganja;\n }", "title": "" }, { "docid": "ebfc15ac475295a12ac1c931d6ab635d", "score": "0.52490103", "text": "@FXML\n\tprivate void handleSaveButtonClick() {\n\t\tRolePlayStoryDTO rpCopyForSaving;\n\t\trpCopyForSaving = boRP.getCopy(selected.getValue());\n\n\t\t// if (boRP.checkBeforeSave(getData(boRP.getCopy(copy)))) {\n\t\tif (boRP.checkBeforeSave(getData(rpCopyForSaving))) {\n\t\t\t//setWarningOff();\n\t\t\tmode = StoryEditorPaneController.MODE_IS_DEFAULT;\n\n\t\t\tboRP.save(getData(selected.getValue()));\n\t\t\tselected.setValue(getData(selected.getValue()));\n\t\t} else {\n\t\t\tAlert a = Tools.C3Dialog(AlertType.ERROR, Internationalization.getString(\"general_failure\"), Internationalization.getString(\"general_failure\"), boRP.getErrorText());\n\t\t\ta.showAndWait();\n\t\t}\n\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "86162d1f909d3ffd521368a4ab0b8fce", "score": "0.0", "text": "@Override\r\n\tpublic void mouseExited(MouseEvent e) {\n\t\t\r\n\t}", "title": "" } ]
[ { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.69742316", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.68059677", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "34b43810a805e0d48661629f62b35f2b", "score": "0.6648208", "text": "@Override\r\n\tpublic void 위험물회피() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "096eb77080c8c192fe461650f49ca14b", "score": "0.65149313", "text": "@Override\r\n public void catering() {\r\n\r\n }", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.64755934", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.64358324", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.6414421", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cc5af39f74474ffdb7b456b8a10d5774", "score": "0.6357822", "text": "@Override\r\n\tpublic void 길안내() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c18c3127184f8abd7be145ddb9d4c3e6", "score": "0.6348844", "text": "@Override\r\n\tpublic void 온도내리기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bde53ee3de9072b04cd122133e6162a1", "score": "0.6326172", "text": "public void soigner() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fdbf96893589fef5cdd1a8fe92e98938", "score": "0.62869394", "text": "@Override\n\tpublic void enfria() {\n\n\t}", "title": "" }, { "docid": "9ee6be05232928533401d708d518b6ed", "score": "0.62742454", "text": "@Override\r\n\t\t\tpublic void enginetype() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.626611", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.61844474", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.61519784", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ce01e16cbc1fc0a29d28a4365b63f79d", "score": "0.6131432", "text": "@Override\n\tprotected void specialFuntion() {\n\t\t\n\t}", "title": "" }, { "docid": "c387be8fe936bea8d505f3a779d6ba15", "score": "0.61139184", "text": "@Override\n\tpublic void actualise() {\n\t\t\n\t}", "title": "" }, { "docid": "30c236da9912ee76f7962e7da2c72b59", "score": "0.6074856", "text": "@Override\n\tpublic void chante() {\n\t\t\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.605568", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f13a29996996a34a710d85285e104a7f", "score": "0.6034386", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "90586632a4af36d51003a1554ebef902", "score": "0.6030915", "text": "public void mo24205Oz() {\n }", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6025444", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "0b7a2d4389f8d1afdedab87d2ac4fb96", "score": "0.5973926", "text": "@Override\n\tprotected void generateData() {\n\t\treturn;\t\t\n\t}", "title": "" }, { "docid": "43f0eb79e8610935222f70ad7a047f4f", "score": "0.59676504", "text": "protected void Referesh() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "69f727ad790d8c02f9f110fb4190bf05", "score": "0.5958382", "text": "@Override\r\n\tpublic void 에어백펼치기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4fd121321f2d50da2f5700be65d017d8", "score": "0.59534895", "text": "@Override\n\tpublic void filngtonext() {\n\t\t\n\t}", "title": "" }, { "docid": "5289bcfa483e278c4782f4e45b7117eb", "score": "0.59168786", "text": "@Override\n\tpublic void generer() {\n\t\t\n\t}", "title": "" }, { "docid": "c52abf264dc130278399a6a822295dca", "score": "0.5916093", "text": "@Override\n\t\t\tpublic void e() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "661a589ba018609d85af5ba0fc651d02", "score": "0.5909626", "text": "@Override\n\t\tprotected void process() {\n\t\t}", "title": "" }, { "docid": "661a589ba018609d85af5ba0fc651d02", "score": "0.5909626", "text": "@Override\n\t\tprotected void process() {\n\t\t}", "title": "" }, { "docid": "c28afddea09ba99a1adc54b371dabaa1", "score": "0.59047043", "text": "@Override\r\n\tpublic void 온도높이기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "6827ba40809e6f9bad9a043036edaa04", "score": "0.58847684", "text": "@Override\r\n\tpublic void dormir() {\n\t}", "title": "" }, { "docid": "6afb1e3a721c7314f12581b77ae35716", "score": "0.5883849", "text": "@Override\n\tprotected void colisao() {\n\t\t\n\t}", "title": "" }, { "docid": "40a41a107fa03a270a78b03d0bcf910d", "score": "0.58717483", "text": "private void ergebnisAuswerten() {\n\n\t}", "title": "" }, { "docid": "c5fa2315669c0925b60762f7cca5f0f6", "score": "0.58611465", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.58465064", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "fa29da40be3a8b33b07b21fe8e0ba298", "score": "0.5842648", "text": "@Override\n\tpublic void notity() {\n\t\t\n\t}", "title": "" }, { "docid": "4ff7fd5d2a0aebc561e81557b528262a", "score": "0.58340675", "text": "@Override\n\tprotected void initialize() {\n\n }", "title": "" }, { "docid": "f323cb003520a5608cea47c5412447e4", "score": "0.58295655", "text": "@Override\n\t\t\t\tpublic int characteristics() {\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "title": "" }, { "docid": "089be79d90be02605e37d2a48b09e194", "score": "0.58192337", "text": "@Override\n\tpublic void gril() {\n\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5791661", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "630b43215e2b87f8b2bd389cae71f8a6", "score": "0.5789139", "text": "@Override\n\tprotected void dataAcquisition() {\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "79a702a1409937a9a2dd8f8167323190", "score": "0.5784611", "text": "@Override\n\tvoid promocja() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "86ca2b6b7e0174532c4a1f8a4dec7946", "score": "0.577024", "text": "@Override\r\n\tpublic void 주차보조() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e74841359f2b616460c1fcf1e3e0b696", "score": "0.57600427", "text": "@Override\n\tpublic void Oeffne_Schadenanlage() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "a8b768dae1b52549249069e4d6a9253f", "score": "0.5750039", "text": "@Override\n public int getType() {\n return 0;\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f98329c4ce112f2ebcf93e4b478576a0", "score": "0.5745665", "text": "@Override\r\n\tpublic void work4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6cfde2be0b51f55a421cdc3e28609c66", "score": "0.57384264", "text": "@Override\n\tprotected void salario() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "f5fd4f1b89ecbb54b8b64a1b9e40552c", "score": "0.5733982", "text": "protected void mo7431b() {\n }", "title": "" }, { "docid": "3fb97b46c147b19f8180197325c66d34", "score": "0.5722489", "text": "@Override\n public void quite() {\n }", "title": "" }, { "docid": "f448e47f2da25727e964a3718545f012", "score": "0.5718643", "text": "public final void mo93547c() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5714686", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "d7c48eb628caa38ca564de355edb7e6e", "score": "0.5709367", "text": "@Override\n public int getType() {\n return 1;\n }", "title": "" }, { "docid": "593053b99bc5abca6d010d9e21a31e6b", "score": "0.570741", "text": "@Override\r\n\tpublic void 자율주행하기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28872bba7a5c17cad13c73f21624cabc", "score": "0.57049847", "text": "@Override\n\tpublic void CreateRs() {\n\t\t\n\t}", "title": "" }, { "docid": "8e056894cd061aea767d71a9c1b43d97", "score": "0.5701457", "text": "@Override\n\tpublic void init(){\n\t}", "title": "" }, { "docid": "2102a3691307d06f0d2ee35d192fccc6", "score": "0.57008916", "text": "protected Encontro() {\n\t}", "title": "" }, { "docid": "e8f6ecd3f06f1f0e76ca511991b76265", "score": "0.5697829", "text": "protected void defesa(){}", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.5696396", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "09b27558b293ecd91a8d2d3a705d8a37", "score": "0.5676146", "text": "@Override\n\t\t\tpublic void c() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.567194", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "75e13fc47dcc1e84b4615e5de4d4c091", "score": "0.56708115", "text": "@Override\n public String getName() {\n return null;\n }", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669723", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "81488a3212e9004be8808ba15e91f1a5", "score": "0.56636477", "text": "public final void mo93546b() {\n }", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.5662892", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "da07444f023c4f45aa766ef285cccf1c", "score": "0.56608945", "text": "@Override\n\tpublic void 吃斋() {\n\n\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "9f6aa437b415b967faa876e403ae9f7b", "score": "0.5658635", "text": "@Override\n\t\t\tpublic boolean esTorre() {\n\t\t\t\treturn false;\n\t\t\t}", "title": "" } ]
ae61aa13f46269f0bfb28cbb2007ebd1
To configure the connection and the socket using the key/values from the Map. The option is a: java.util.Map type. The option is multivalued, and you can use the httpConnectionOptions(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced
[ { "docid": "a796e0b058c7a072545b3d98f286e36a", "score": "0.725989", "text": "default AdvancedHttpEndpointBuilder httpConnectionOptions(\n String key,\n Object value) {\n doSetMultiValueProperty(\"httpConnectionOptions\", \"httpConnection.\" + key, value);\n return this;\n }", "title": "" } ]
[ { "docid": "01be757600003676bdcfaf5e1b737ca7", "score": "0.69618", "text": "default AdvancedHttpEndpointBuilder httpConnectionOptions(Map values) {\n doSetMultiValueProperties(\"httpConnectionOptions\", \"httpConnection.\", values);\n return this;\n }", "title": "" }, { "docid": "c942e019c6b1629cbe3dd3516fb798e5", "score": "0.5979466", "text": "public Ice.AsyncResult begin_setConf(String key, String value, java.util.Map<String, String> __ctx, Callback_Server_setConf __cb);", "title": "" }, { "docid": "0c5e48baf8fcf9ecadf3d6206f9f9a82", "score": "0.59295386", "text": "public Ice.AsyncResult begin_setConf(String key, String value, java.util.Map<String, String> __ctx, Ice.Callback __cb);", "title": "" }, { "docid": "b37ccea80545cc7540a8c5e25d760868", "score": "0.5917688", "text": "public void setProtocolParams(Map<String, String> params) throws Exception;", "title": "" }, { "docid": "ddc962fccfbfadeb0dbdb7c9a6039be4", "score": "0.588778", "text": "default AdvancedHttpEndpointBuilder httpClientOptions(\n String key,\n Object value) {\n doSetMultiValueProperty(\"httpClientOptions\", \"httpClient.\" + key, value);\n return this;\n }", "title": "" }, { "docid": "a0165a1d5e3f4400584f7fd416edcf56", "score": "0.5812768", "text": "public Ice.AsyncResult begin_setConf(String key, String value, java.util.Map<String, String> __ctx);", "title": "" }, { "docid": "482d3c488231dd21a93d1affd703a744", "score": "0.5679065", "text": "public AppEngineConnection(Map<String, String> connectionDetails) {\n this.connectionDetails = connectionDetails;\n }", "title": "" }, { "docid": "5ab6539cf2914963f8949aefc6ec9a22", "score": "0.56391716", "text": "HttpParameters addMap(Map<String, ? extends Object> map);", "title": "" }, { "docid": "b11c6ab609c5229df0cd7171486c8ae5", "score": "0.5625443", "text": "public void setOptions(Map<String,String> options) {\n this.options = options;\n }", "title": "" }, { "docid": "5f1eab156e07e4b93b8c0cbf2e1cfd42", "score": "0.55664146", "text": "default AdvancedHttpEndpointBuilder httpClientOptions(Map values) {\n doSetMultiValueProperties(\"httpClientOptions\", \"httpClient.\", values);\n return this;\n }", "title": "" }, { "docid": "cc44681f08ffae5212b5600f5a5b8dd8", "score": "0.552558", "text": "public void setOptions(java.util.Map<?,?> options) {\n\t}", "title": "" }, { "docid": "cc44681f08ffae5212b5600f5a5b8dd8", "score": "0.552558", "text": "public void setOptions(java.util.Map<?,?> options) {\n\t}", "title": "" }, { "docid": "cc44681f08ffae5212b5600f5a5b8dd8", "score": "0.552558", "text": "public void setOptions(java.util.Map<?,?> options) {\n\t}", "title": "" }, { "docid": "b09c2916adda7c7599dd047a2aa203d5", "score": "0.54362357", "text": "public Ice.AsyncResult begin_setConf(String key, String value);", "title": "" }, { "docid": "9919d727d457f38341ae6694d8d86441", "score": "0.54095256", "text": "protected void\r\n configureUrlConnection(URLConnection conn) {\r\n\r\n for (Subelement.Name_Value requestProperty : AbstractUrlConnectionTask.this.requestProperties) {\r\n conn.addRequestProperty(requestProperty.name, requestProperty.value);\r\n }\r\n if (this.allowUserInteraction != null) conn.setAllowUserInteraction(this.allowUserInteraction);\r\n if (this.connectTimeout != -1) conn.setConnectTimeout(this.connectTimeout);\r\n if (this.readTimeout != -1) conn.setReadTimeout(this.readTimeout);\r\n if (this.ifModifiedSince != -1L) conn.setIfModifiedSince(this.ifModifiedSince);\r\n if (this.useCaches != null) conn.setUseCaches(this.useCaches);\r\n }", "title": "" }, { "docid": "cc1b760aa5318b8c96a2e5b0c56d7e61", "score": "0.5370517", "text": "public Ice.AsyncResult begin_setConf(String key, String value, Callback_Server_setConf __cb);", "title": "" }, { "docid": "7a6047d9af6debd2506cbc546c4169d6", "score": "0.53616685", "text": "private void setConnectionOptions(HttpsURLConnection connection) {\n if (connection != null) {\r\n // connection.setReadTimeout(0);\r\n // connection.setConnectTimeout(0);\r\n }\r\n }", "title": "" }, { "docid": "ae771836fdc07d2963c82af4d2d0e81f", "score": "0.53567606", "text": "public static JsonObject options(JsonObject config) {\n return new JsonObject()\n// .put(\"url\", config.getString(\"url\", \"jdbc:hsqldb:file:db/test\"))\n .put(\"url\", config.getString(\"url\", \"jdbc:mysql://localhost/proxy_aggregator\"))\n// .put(\"driver_class\", config.getString(\"driver_class\", \"org.hsqldb.jdbcDriver\"))\n .put(\"driver_class\", config.getString(\"driver_class\", \"com.mysql.jdbc.Driver\"))\n .put(\"user\", \"root\")\n .put(\"password\", \"root\")\n .put(\"max_pool_size\", config.getInteger(\"max_pool_size\", 30));\n }", "title": "" }, { "docid": "a0a72dbde11be1770b5ef3e0fd32c6f6", "score": "0.53418744", "text": "public void configureChannelOptions(@SuppressWarnings(\"unused\") HttpServerBuilder<I, O> serverBuilder) {\n }", "title": "" }, { "docid": "27db93bd95f9a6470b9432ba6424939d", "score": "0.5324334", "text": "public void setConnectionDictionary(com.webobjects.foundation.NSDictionary dictionary){\n return; //TODO codavaj!!\n }", "title": "" }, { "docid": "2e71d6d4f72f0d471ae9c66e85e17e3d", "score": "0.529817", "text": "public Map<String,String> getOptions();", "title": "" }, { "docid": "0a19ec2561ce694ef26f39d77e33589f", "score": "0.5278579", "text": "public Ice.AsyncResult begin_setConf(String key, String value, Ice.Callback __cb);", "title": "" }, { "docid": "102f3239c4417eb1db41eb64ceed68b4", "score": "0.52541333", "text": "public Map<String, String> getOptions();", "title": "" }, { "docid": "8e40af764e4329b03d748ddf6846d61c", "score": "0.5240685", "text": "public RpcClientOptions() {\n this.connectTimeout = 1000;\n this.sendBufferSize = 1048576;\n this.receiveBufferSize = 1048576;\n this.keepAlive = true;\n this.tcpNoDelay = true;\n this.idleTimeout = 0;\n this.reuseAddress = true;\n }", "title": "" }, { "docid": "d9471c71525045b09fd1b70fda324ad3", "score": "0.5234566", "text": "@Override\n public void configure(Map cofigs, boolean isKey)\n {\n }", "title": "" }, { "docid": "0d95974f67609eda4746803209da0c61", "score": "0.522182", "text": "@Override\r\n\tpublic void configure(Map<String, ?> arg0, boolean arg1) {\n\r\n\t}", "title": "" }, { "docid": "6a818372faec2aa36a7d2f5c7e075787", "score": "0.5183199", "text": "default KnativeEndpointBuilder transportOptions(\n Map<java.lang.String, java.lang.Object> transportOptions) {\n doSetProperty(\"transportOptions\", transportOptions);\n return this;\n }", "title": "" }, { "docid": "6ab67655288e9c7b59357e695e951c76", "score": "0.5164383", "text": "default AdvancedHttpEndpointBuilder connectionsPerRoute(\n String connectionsPerRoute) {\n doSetProperty(\"connectionsPerRoute\", connectionsPerRoute);\n return this;\n }", "title": "" }, { "docid": "2f45aa6cb847af4689122bcd22665348", "score": "0.51631737", "text": "public void setProtocolMetaParams(Map<String, String> params) throws Exception;", "title": "" }, { "docid": "c4d7bd3cf7d559ac4b328d5b368d8d03", "score": "0.5149721", "text": "public HttpResponse withConnectionOptions(ConnectionOptions connectionOptions) {\n this.connectionOptions = connectionOptions;\n this.hashCode = 0;\n return this;\n }", "title": "" }, { "docid": "83edafa74ad4bf7d6f2047f86c60a3cb", "score": "0.5072225", "text": "public void setOptions(LinkedHashMap<String, String> options) {\r\n\t\tthis.options = options;\r\n\t}", "title": "" }, { "docid": "1238aca92960c80fce7c5e2ea1352b5d", "score": "0.5046185", "text": "default KnativeEndpointConsumerBuilder transportOptions(\n Map<java.lang.String, java.lang.Object> transportOptions) {\n doSetProperty(\"transportOptions\", transportOptions);\n return this;\n }", "title": "" }, { "docid": "72f07c7f80be5adc915e6b9ede294b68", "score": "0.4992426", "text": "void setOption(String key, String value);", "title": "" }, { "docid": "97c8b35e37cfa72ace57c62bebd8231d", "score": "0.49903074", "text": "private static HttpServerOptions createHttpServerOptions(HttpConfiguration httpConfiguration, LaunchMode launchMode) {\n HttpServerOptions options = new HttpServerOptions();\n options.setHost(httpConfiguration.host);\n options.setPort(httpConfiguration.determinePort(launchMode));\n return options;\n }", "title": "" }, { "docid": "142d7cf940100524377d96a77d034294", "score": "0.49592382", "text": "default AdvancedHttpEndpointBuilder connectionsPerRoute(\n int connectionsPerRoute) {\n doSetProperty(\"connectionsPerRoute\", connectionsPerRoute);\n return this;\n }", "title": "" }, { "docid": "6fda5395df22253a45724d2d9ebd310d", "score": "0.49268302", "text": "public GameServerConf(Map<String, String> confRecords) {\n this.confRecords = confRecords;\n }", "title": "" }, { "docid": "cf7033c8c22bb071439ba3b05d6d5c9b", "score": "0.4922954", "text": "public Map<String, Object> createConnectionParams(IScope scope){\r\n\t\tMap<String, Object> connectionParameters = new HashMap<String,Object>();\r\n\t\t\r\n\t\tif (dbtype.equalsIgnoreCase(GamaSqlConnection.POSTGRES) || dbtype.equalsIgnoreCase(GamaSqlConnection.POSTGIS))\r\n\t\t{\r\n\t\t connectionParameters.put(\"host\",host);\r\n\t\t connectionParameters.put(\"dbtype\",dbtype);\r\n\t\t connectionParameters.put(\"port\", port);\r\n\t\t connectionParameters.put(\"database\",database);\r\n\t\t connectionParameters.put(\"user\",user);\r\n\t\t connectionParameters.put(\"passwd\",passwd);\r\n\t\t // advanced\r\n//\t\t params.put(PostgisDataStoreFactory.LOOSEBBOX, true );\r\n//\t\t params.put(PostgisDataStoreFactory.PREPARED_STATEMENTS, true );\r\n\t\t\t\r\n\t\t}else if (dbtype.equalsIgnoreCase(GamaSqlConnection.MYSQL))\r\n\t\t{\r\n//\t\t\tjava.util.Map params = new java.util.HashMap();\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.DBTYPE.key, dbtype);\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.HOST.key, host);\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.PORT.key, new Integer(port));\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.DATABASE.key, database);\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.USER.key, user);\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.PASSWD.key, passwd);\r\n\t\t}else if (dbtype.equalsIgnoreCase(GamaSqlConnection.MSSQL))\r\n\t\t{\r\n\t\t connectionParameters.put(\"host\",host);\r\n\t\t connectionParameters.put(\"dbtype\",dbtype);\r\n\t\t connectionParameters.put(\"port\", port);\r\n\t\t connectionParameters.put(\"database\",database);\r\n\t\t connectionParameters.put(\"user\",user);\r\n\t\t connectionParameters.put(\"passwd\",passwd);\r\n\t\t\t\t\r\n\t\t}else if (dbtype.equalsIgnoreCase(GamaSqlConnection.SQLITE))\r\n\t\t{\r\n\t\t\tString DBRelativeLocation = FileUtils.constructAbsoluteFilePath(scope, database, true);\r\n\t\t\t//String EXTRelativeLocation = GamaPreferences.LIB_SPATIALITE.value(scope).getPath();\r\n\t\t\tconnectionParameters.put(\"dbtype\", dbtype);\r\n\t\t\tconnectionParameters.put(\"database\", DBRelativeLocation );\r\n\t\t\t\r\n\t\t}\r\n\t\treturn connectionParameters;\r\n\t}", "title": "" }, { "docid": "3c8d104ea8abd81c6e20d54dc336ef96", "score": "0.49104205", "text": "@Deprecated\npublic interface CoreConnectionPNames {\n\n /**\n * Defines the socket timeout ({@code SO_TIMEOUT}) in milliseconds, which is the timeout for waiting for\n * data or, put differently, a maximum period inactivity between two consecutive data packets). A timeout\n * value of zero is interpreted as an infinite timeout. <p> This parameter expects a value of type {@link\n * Integer}. </p>\n *\n * @see java.net.SocketOptions#SO_TIMEOUT\n */\n String SO_TIMEOUT = \"http.socket.timeout\";\n\n /**\n * Determines whether Nagle's algorithm is to be used. The Nagle's algorithm tries to conserve bandwidth\n * by minimizing the number of segments that are sent. When applications wish to decrease network latency\n * and increase performance, they can disable Nagle's algorithm (that is enable TCP_NODELAY). Data will be\n * sent earlier, at the cost of an increase in bandwidth consumption. <p> This parameter expects a value\n * of type {@link Boolean}. </p>\n *\n * @see java.net.SocketOptions#TCP_NODELAY\n */\n String TCP_NODELAY = \"http.tcp.nodelay\";\n\n /**\n * Determines the size of the internal socket buffer used to buffer data while receiving / transmitting\n * HTTP messages. <p> This parameter expects a value of type {@link Integer}. </p>\n */\n String SOCKET_BUFFER_SIZE = \"http.socket.buffer-size\";\n\n /**\n * Sets SO_LINGER with the specified linger time in seconds. The maximum timeout value is platform\n * specific. Value {@code 0} implies that the option is disabled. Value {@code -1} implies that the JRE\n * default is used. The setting only affects the socket close operation. <p> This parameter expects a\n * value of type {@link Integer}. </p>\n *\n * @see java.net.SocketOptions#SO_LINGER\n */\n String SO_LINGER = \"http.socket.linger\";\n\n /**\n * Defines whether the socket can be bound even though a previous connection is still in a timeout state.\n * <p> This parameter expects a value of type {@link Boolean}. </p>\n *\n * @see java.net.Socket#setReuseAddress(boolean)\n * @since 4.1\n */\n String SO_REUSEADDR = \"http.socket.reuseaddr\";\n\n /**\n * Determines the timeout in milliseconds until a connection is established. A timeout value of zero is\n * interpreted as an infinite timeout. <p> Please note this parameter can only be applied to connections\n * that are bound to a particular local address. <p> This parameter expects a value of type {@link\n * Integer}. </p>\n */\n String CONNECTION_TIMEOUT = \"http.connection.timeout\";\n\n /**\n * Determines whether stale connection check is to be used. The stale connection check can cause up to 30\n * millisecond overhead per request and should be used only when appropriate. For performance critical\n * operations this check should be disabled. <p> This parameter expects a value of type {@link Boolean}.\n * </p>\n */\n String STALE_CONNECTION_CHECK = \"http.connection.stalecheck\";\n\n /**\n * Determines the maximum line length limit. If set to a positive value, any HTTP line exceeding this\n * limit will cause an IOException. A negative or zero value will effectively disable the check. <p> This\n * parameter expects a value of type {@link Integer}. </p>\n */\n String MAX_LINE_LENGTH = \"http.connection.max-line-length\";\n\n /**\n * Determines the maximum HTTP header count allowed. If set to a positive value, the number of HTTP\n * headers received from the data stream exceeding this limit will cause an IOException. A negative or\n * zero value will effectively disable the check. <p> This parameter expects a value of type {@link\n * Integer}. </p>\n */\n String MAX_HEADER_COUNT = \"http.connection.max-header-count\";\n\n /**\n * Defines the size limit below which data chunks should be buffered in a session I/O buffer in order to\n * minimize native method invocations on the underlying network socket. The optimal value of this\n * parameter can be platform specific and defines a trade-off between performance of memory copy\n * operations and that of native method invocation. <p> This parameter expects a value of type {@link\n * Integer}. </p>\n *\n * @since 4.1\n */\n String MIN_CHUNK_LIMIT = \"http.connection.min-chunk-limit\";\n\n\n /**\n * Defines whether or not TCP is to send automatically a keepalive probe to the peer after an interval of\n * inactivity (no data exchanged in either direction) between this host and the peer. The purpose of this\n * option is to detect if the peer host crashes. <p> This parameter expects a value of type {@link\n * Boolean}. </p>\n *\n * @see java.net.SocketOptions#SO_KEEPALIVE\n * @since 4.2\n */\n String SO_KEEPALIVE = \"http.socket.keepalive\";\n\n}", "title": "" }, { "docid": "8519b0dffba6bd3133ecfbaf7ab19ea6", "score": "0.48915917", "text": "@Override\r\n public void configure(Map<String, ?> configs, boolean isKey) {\n }", "title": "" }, { "docid": "00b593efc727992d7267b556fd6b7492", "score": "0.4882858", "text": "public void setConn(final String value) {\r\n if (parameterMap.containsKey(KEY_CONN)) {\r\n parameterMap.put(KEY_CONN, parameterMap.get(KEY_CONN) + \"#\" + value);\r\n } else {\r\n parameterMap.put(KEY_CONN, value);\r\n }\r\n }", "title": "" }, { "docid": "d113145de834fb425eb6e4a6476ee1ee", "score": "0.48534074", "text": "default KnativeEndpointProducerBuilder transportOptions(\n Map<java.lang.String, java.lang.Object> transportOptions) {\n doSetProperty(\"transportOptions\", transportOptions);\n return this;\n }", "title": "" }, { "docid": "de81fcb34420b8d8268619178901ed56", "score": "0.484201", "text": "@ConfiguredOption(key = CorsEnabledServiceHelper.CORS_CONFIG_KEY,\n kind = ConfiguredOption.Kind.MAP)\n Builder crossOriginConfig(CrossOriginConfig.Builder crossOriginConfigBuilder);", "title": "" }, { "docid": "a3afdb7dbc926cb7131a6df0edf60e4b", "score": "0.48349166", "text": "Map<String,String> getOptionMap();", "title": "" }, { "docid": "dcaf85f0335a695d41f62c6b3a7c6b5d", "score": "0.48297825", "text": "public SocketOptions() {\n\n }", "title": "" }, { "docid": "4fd5242507d1c7f7f0230dfcc001bf39", "score": "0.48241913", "text": "@Override\r\n\tpublic void setSession(Map<String, Object> map) {\n\t}", "title": "" }, { "docid": "6fd9af6e2c42a01d3cc0aa41271b7cf8", "score": "0.48177218", "text": "public SimpleMapRequestHeaderBuilder(Map<String, String> headerMap){\n super();\n this.headerMap = headerMap;\n }", "title": "" }, { "docid": "2e09754ad3acd87735d05e2f4c9c7dae", "score": "0.48116234", "text": "HttpConnection(HttpServerImpl server, SocketChannel channel, SelectionKey key, HashSet<String> hostnames) throws IOException {\n\t\tsuper(server, channel, key);\n\t\tthis.server = server;\n\t\tthis.hostnames = hostnames;\n\t\tthis.contextManager = server.getContextManager();\n\t\tthis.buffer = ByteBuffer.allocateDirect(BUFFER_SIZE);\n\t\tthis.parser = new HttpParser(server.getApplicationManagerImpl(), this, hostnames);\n\t\tthis.lastAccessTimeMillis = System.currentTimeMillis();\n\t\tthis.pendingRead = true;\n\t}", "title": "" }, { "docid": "d1f05ff28adacfb16b99d2e0a74b1722", "score": "0.479314", "text": "private void configureWriter(HttpRequest req, ResponseWriter w) {\n // Check for Connection close.\n Set<String> values = req.getHeaders().getValueSet(HeaderField.General.CONNECTION);\n w.setCloseConnection(values.contains(HeaderToken.CLOSE));\n\n int minorVersion = req.getMinorVersion();\n w.setHttpMinorVersion(minorVersion);\n\n if (minorVersion == 0) {\n // HTTP/1.0 does not support persistent connections, but we can\n // check for HTTP/1.0 Keep-Alive support.\n if (!values.contains(HeaderToken.KEEP_ALIVE)) {\n w.setCloseConnection(true);\n } else {\n w.getHeadersBuilder().set(HeaderField.General.CONNECTION, HeaderToken.KEEP_ALIVE);\n }\n }\n }", "title": "" }, { "docid": "317ba3856a6e9cc5b576379e8273d146", "score": "0.4747108", "text": "@Deprecated\n public void setDefaults(final HashMap<String, Object> map) {\n Task<Void> task = CTExecutorFactory.executors(config).ioTask();\n task.addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(final Void aVoid) {\n initAsync();\n }\n }).execute(\"ProductConfig#setDefaultsUsingHashMap\", new Callable<Void>() {\n @Override\n public Void call() {\n synchronized (this) {\n if (map != null && !map.isEmpty()) {\n\n for (Map.Entry<String, Object> entry : map.entrySet()) {\n if (entry != null) {\n String key = entry.getKey();\n Object value = entry.getValue();\n try {\n if (!TextUtils.isEmpty(key) && ProductConfigUtil.isSupportedDataType(value)) {\n defaultConfigs.put(key, String.valueOf(value));\n }\n } catch (Exception e) {\n config.getLogger().verbose(ProductConfigUtil.getLogTag(config),\n \"Product Config: setDefaults Failed for Key: \" + key + \" with Error: \" + e\n .getLocalizedMessage());\n }\n }\n }\n }\n config.getLogger().verbose(ProductConfigUtil.getLogTag(config),\n \"Product Config: setDefaults Completed with: \" + defaultConfigs);\n return null;\n }\n }\n });\n }", "title": "" }, { "docid": "e14fa4cbb8ab72cceef5589acfb70d1c", "score": "0.47435197", "text": "public HttpClientConfig() {\n connectionTimeout = DEFAULT_CONNECTION_TIMEOUT;\n socketTimeout = DEFAULT_SOCKET_TIMEOUT;\n maxConnectionsPerHost = DEFAULT_MAX_CONNECTIONS_PER_HOST;\n maxTotalConnections = DEFAULT_MAX_TOTAL_CONNECTIONS;\n preemptiveAuthN = DEFAULT_PREEMPTIVE_AUTHN;\n skipSSLTrustCheck = DEFAULT_SKIP_SSL_TRUST_CHECK;\n skipSSLHostnameVerification = DEFAULT_SKIP_SSL_HOSTNAME_VERIFICATION;\n }", "title": "" }, { "docid": "541651e59acc30b226cc393da3877ef9", "score": "0.47408822", "text": "public void setConnection(HttpContext connection);", "title": "" }, { "docid": "3d520ab7ba690b44b4888b04a2678633", "score": "0.47396746", "text": "io.toit.proto.toit.model.DeviceProto.DeviceConnectionSettingsOrBuilder getConnectionOrBuilder();", "title": "" }, { "docid": "0193015e2781393f0916cd982de218ac", "score": "0.47247753", "text": "public void configureConnectionPool(ServletContext context) {\n //Define the ConnectionPool, else defaults from the ContextListener will be used\n ConnectionPool cp = (ConnectionPool) context.getAttribute(Constants.CONNECTION_POOL);\n if (cp != null) {\n // Apply any settings\n if (this.has(CONNECTION_POOL_DEBUG)) {\n cp.setDebug(this.get(CONNECTION_POOL_DEBUG));\n }\n if (this.has(CONNECTION_POOL_TEST_CONNECTIONS)) {\n cp.setTestConnections(this.get(CONNECTION_POOL_TEST_CONNECTIONS));\n }\n if (this.has(CONNECTION_POOL_ALLOW_SHRINKING)) {\n cp.setAllowShrinking(this.get(CONNECTION_POOL_ALLOW_SHRINKING));\n }\n if (this.has(CONNECTION_POOL_MAX_CONNECTIONS)) {\n cp.setMaxConnections(this.get(CONNECTION_POOL_MAX_CONNECTIONS));\n }\n if (this.has(CONNECTION_POOL_MAX_IDLE_TIME)) {\n cp.setMaxIdleTimeSeconds(this.get(CONNECTION_POOL_MAX_IDLE_TIME));\n }\n if (this.has(CONNECTION_POOL_MAX_DEAD_TIME)) {\n cp.setMaxDeadTimeSeconds(this.get(CONNECTION_POOL_MAX_DEAD_TIME));\n }\n // Clone it for RSS Feeds\n if (this.get(CONNECTION_POOL_MAX_RSS_CONNECTIONS) != null) {\n ConnectionPool rssCP = new ConnectionPool();\n rssCP.setDebug(cp.getDebug());\n rssCP.setTestConnections(cp.getTestConnections());\n rssCP.setAllowShrinking(cp.getAllowShrinking());\n rssCP.setMaxConnections(this.get(CONNECTION_POOL_MAX_RSS_CONNECTIONS));\n rssCP.setMaxIdleTime(cp.getMaxIdleTime());\n rssCP.setMaxDeadTime(cp.getMaxDeadTime());\n context.setAttribute(Constants.CONNECTION_POOL_RSS, rssCP);\n } else {\n context.setAttribute(Constants.CONNECTION_POOL_RSS, cp);\n }\n // Clone it for API Requests\n if (this.get(CONNECTION_POOL_MAX_API_CONNECTIONS) != null) {\n ConnectionPool apiCP = new ConnectionPool();\n apiCP.setDebug(cp.getDebug());\n apiCP.setTestConnections(cp.getTestConnections());\n apiCP.setAllowShrinking(cp.getAllowShrinking());\n apiCP.setMaxConnections(this.get(CONNECTION_POOL_MAX_API_CONNECTIONS));\n apiCP.setMaxIdleTime(cp.getMaxIdleTime());\n apiCP.setMaxDeadTime(cp.getMaxDeadTime());\n context.setAttribute(Constants.CONNECTION_POOL_API, apiCP);\n } else {\n context.setAttribute(Constants.CONNECTION_POOL_API, cp);\n }\n } else {\n LOG.error(\"ConnectionPool is null\");\n }\n }", "title": "" }, { "docid": "4b086705d8f1c83298179a37ea11533e", "score": "0.47237775", "text": "public void setColors(String option, Map<String, Color> valueColorMap)\n throws SQLException, SQLTimeoutException {\n model.setColors(option, valueColorMap);\n }", "title": "" }, { "docid": "430875cc3dac76be27a2f8dec7403e64", "score": "0.47217068", "text": "@Override\n\tpublic void configure(Map<String, ?> configs, boolean isKey) {\n\t\t\n\t}", "title": "" }, { "docid": "430875cc3dac76be27a2f8dec7403e64", "score": "0.47217068", "text": "@Override\n\tpublic void configure(Map<String, ?> configs, boolean isKey) {\n\t\t\n\t}", "title": "" }, { "docid": "05eca4ebd0290cea42b7af411620ab00", "score": "0.47148505", "text": "public ServerConfiguration()\n\t{\n\t\tsuper();\n\t\tsetImageSavingConvention(ImageSavingConvention.Compatible);\n\t\tsetPublicPort(8096);\n\t\tsetPublicHttpsPort(8920);\n\t\tsetHttpServerPortNumber(8096);\n\t\tsetHttpsPortNumber(8920);\n\t\tsetEnableHttps(false);\n\t\tsetEnableDashboardResponseCaching(true);\n\t\tsetEnableDashboardResourceMinification(true);\n\n\t\tsetEnableAutomaticRestart(true);\n\n\t\tsetEnableUPnP(true);\n\n\t\tsetMinResumePct(5);\n\t\tsetMaxResumePct(90);\n\n\t\t// 5 minutes\n\t\tsetMinResumeDurationSeconds(300);\n\n\t\tsetRealtimeMonitorDelay(30);\n\n\t\tsetEnableInternetProviders(true);\n\t\tsetFindInternetTrailers(true);\n\n\t\tsetPathSubstitutions(new PathSubstitution[] { });\n\t\tsetContentTypes(new NameValuePair[] { });\n\n\t\tsetPreferredMetadataLanguage(\"en\");\n\t\tsetMetadataCountryCode(\"US\");\n\n\t\tsetSortReplaceCharacters(new String[] {\".\", \"+\", \"%\"});\n\t\tsetSortRemoveCharacters(new String[] {\",\", \"&\", \"-\", \"{\", \"}\", \"'\"});\n\t\tsetSortRemoveWords(new String[] {\"the\", \"a\", \"an\"});\n\n\t\tsetSeasonZeroDisplayName(\"Specials\");\n\n\t\tsetEnableRealtimeMonitor(true);\n\n\t\tsetUICulture(\"en-us\");\n\n\t\tsetPeopleMetadataOptions(new PeopleMetadataOptions());\n\n\t\tsetInsecureApps9(new String[] {\"Chromecast\", \"iOS\", \"Unknown app\", \"MediaPortal\", \"Media Portal\", \"iPad\", \"iPhone\", \"Windows Phone\"});\n\n\t\tMetadataOptions tempVar = new MetadataOptions(1, 1280);\n\t\ttempVar.setItemType(\"Book\");\n\t\tMetadataOptions tempVar2 = new MetadataOptions(1, 1280);\n\t\ttempVar2.setItemType(\"Movie\");\n\t\tImageOption tempVar3 = new ImageOption();\n\t\ttempVar3.setLimit(3);\n\t\ttempVar3.setMinWidth(1280);\n\t\ttempVar3.setType(ImageType.Backdrop);\n\t\tImageOption tempVar4 = new ImageOption();\n\t\ttempVar4.setLimit(0);\n\t\ttempVar4.setType(ImageType.Art);\n\t\tImageOption tempVar5 = new ImageOption();\n\t\ttempVar5.setLimit(0);\n\t\ttempVar5.setType(ImageType.Disc);\n\t\tImageOption tempVar6 = new ImageOption();\n\t\ttempVar6.setLimit(1);\n\t\ttempVar6.setType(ImageType.Primary);\n\t\tImageOption tempVar7 = new ImageOption();\n\t\ttempVar7.setLimit(1);\n\t\ttempVar7.setType(ImageType.Banner);\n\t\tImageOption tempVar8 = new ImageOption();\n\t\ttempVar8.setLimit(1);\n\t\ttempVar8.setType(ImageType.Thumb);\n\t\tImageOption tempVar9 = new ImageOption();\n\t\ttempVar9.setLimit(1);\n\t\ttempVar9.setType(ImageType.Logo);\n\t\ttempVar2.setImageOptions(new ImageOption[] {tempVar3, tempVar4, tempVar5, tempVar6, tempVar7, tempVar8, tempVar9});\n\t\tMetadataOptions tempVar10 = new MetadataOptions(1, 1280);\n\t\ttempVar10.setItemType(\"Series\");\n\t\tImageOption tempVar11 = new ImageOption();\n\t\ttempVar11.setLimit(2);\n\t\ttempVar11.setMinWidth(1280);\n\t\ttempVar11.setType(ImageType.Backdrop);\n\t\tImageOption tempVar12 = new ImageOption();\n\t\ttempVar12.setLimit(0);\n\t\ttempVar12.setType(ImageType.Art);\n\t\tImageOption tempVar13 = new ImageOption();\n\t\ttempVar13.setLimit(1);\n\t\ttempVar13.setType(ImageType.Primary);\n\t\tImageOption tempVar14 = new ImageOption();\n\t\ttempVar14.setLimit(1);\n\t\ttempVar14.setType(ImageType.Banner);\n\t\tImageOption tempVar15 = new ImageOption();\n\t\ttempVar15.setLimit(1);\n\t\ttempVar15.setType(ImageType.Thumb);\n\t\tImageOption tempVar16 = new ImageOption();\n\t\ttempVar16.setLimit(1);\n\t\ttempVar16.setType(ImageType.Logo);\n\t\ttempVar10.setImageOptions(new ImageOption[] {tempVar11, tempVar12, tempVar13, tempVar14, tempVar15, tempVar16});\n\t\tMetadataOptions tempVar17 = new MetadataOptions(1, 1280);\n\t\ttempVar17.setItemType(\"MusicAlbum\");\n\t\tImageOption tempVar18 = new ImageOption();\n\t\ttempVar18.setLimit(1);\n\t\ttempVar18.setMinWidth(1280);\n\t\ttempVar18.setType(ImageType.Backdrop);\n\t\tImageOption tempVar19 = new ImageOption();\n\t\ttempVar19.setLimit(0);\n\t\ttempVar19.setType(ImageType.Disc);\n\t\ttempVar17.setImageOptions(new ImageOption[] {tempVar18, tempVar19});\n\t\tMetadataOptions tempVar20 = new MetadataOptions(1, 1280);\n\t\ttempVar20.setItemType(\"MusicArtist\");\n\t\tImageOption tempVar21 = new ImageOption();\n\t\ttempVar21.setLimit(1);\n\t\ttempVar21.setMinWidth(1280);\n\t\ttempVar21.setType(ImageType.Backdrop);\n\t\tImageOption tempVar22 = new ImageOption();\n\t\ttempVar22.setLimit(0);\n\t\ttempVar22.setType(ImageType.Banner);\n\t\tImageOption tempVar23 = new ImageOption();\n\t\ttempVar23.setLimit(0);\n\t\ttempVar23.setType(ImageType.Art);\n\t\ttempVar20.setImageOptions(new ImageOption[] {tempVar21, tempVar22, tempVar23});\n\t\tMetadataOptions tempVar24 = new MetadataOptions(0, 1280);\n\t\ttempVar24.setItemType(\"Season\");\n\t\tsetMetadataOptions(new MetadataOptions[] {tempVar, tempVar2, tempVar10, tempVar17, tempVar20, tempVar24});\n\t}", "title": "" }, { "docid": "a60f2dced955d13c766ea0da5fe3d4f1", "score": "0.47129253", "text": "private HttpParams getHttpParams() { \n HttpParams htpp = new BasicHttpParams(); \n HttpConnectionParams.setConnectionTimeout(htpp, CONN_TIMEOUT);\n HttpConnectionParams.setSoTimeout(htpp, SOCKET_TIMEOUT); \n return htpp;\n }", "title": "" }, { "docid": "f7b20a7b39470173eccd96d7f1ffaf80", "score": "0.46940088", "text": "public Map<String, Object> createConnectionParams(IScope scope, Map<String, Object> params){\r\n\t\tMap<String, Object> connectionParameters = new HashMap<String,Object>();\r\n\r\n\t\tString dbtype = (String) params.get(\"dbtype\");\r\n\t\tString host = (String) params.get(\"host\");\r\n\t\tString port = (String) params.get(\"port\");\r\n\t\tString database = (String) params.get(\"database\");\r\n\t\tString user = (String) params.get(\"user\");\r\n\t\tString passwd = (String) params.get(\"passwd\");\r\n//\t\tString table = (String) params.get(\"table\");\r\n//\t\tString filter = (String) params.get(\"filter\");\r\n\r\n\t\tif (dbtype.equalsIgnoreCase(GamaSqlConnection.POSTGRES) || dbtype.equalsIgnoreCase(GamaSqlConnection.POSTGIS))\r\n\t\t{\r\n\t\t connectionParameters.put(\"host\",host);\r\n\t\t connectionParameters.put(\"dbtype\",dbtype);\r\n\t\t connectionParameters.put(\"port\", port);\r\n\t\t connectionParameters.put(\"database\",database);\r\n\t\t connectionParameters.put(\"user\",user);\r\n\t\t connectionParameters.put(\"passwd\",passwd);\r\n\t\t // advanced\r\n//\t\t params.put(PostgisDataStoreFactory.LOOSEBBOX, true );\r\n//\t\t params.put(PostgisDataStoreFactory.PREPARED_STATEMENTS, true );\r\n\t\t\t\r\n\t\t}else if (dbtype.equalsIgnoreCase(GamaSqlConnection.MYSQL))\r\n\t\t{\r\n//\t\t\tjava.util.Map params = new java.util.HashMap();\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.DBTYPE.key, dbtype);\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.HOST.key, host);\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.PORT.key, new Integer(port));\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.DATABASE.key, database);\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.USER.key, user);\r\n\t\t\tconnectionParameters.put(MySQLDataStoreFactory.PASSWD.key, passwd);\r\n\t\t}else if (dbtype.equalsIgnoreCase(GamaSqlConnection.MSSQL))\r\n\t\t{\r\n\t\t connectionParameters.put(\"host\",host);\r\n\t\t connectionParameters.put(\"dbtype\",dbtype);\r\n\t\t connectionParameters.put(\"port\", port);\r\n\t\t connectionParameters.put(\"database\",database);\r\n\t\t connectionParameters.put(\"user\",user);\r\n\t\t connectionParameters.put(\"passwd\",passwd);\r\n\t\t\t\t\r\n\t\t}else if (dbtype.equalsIgnoreCase(GamaSqlConnection.SQLITE))\r\n\t\t{\r\n\t\t\tString DBRelativeLocation = FileUtils.constructAbsoluteFilePath(scope, database, true);\r\n\t\t\t//String EXTRelativeLocation = GamaPreferences.LIB_SPATIALITE.value(scope).getPath();\r\n\t\t\tconnectionParameters.put(\"dbtype\", dbtype);\r\n\t\t\tconnectionParameters.put(\"database\", DBRelativeLocation );\r\n\t\t\t\r\n\t\t}\r\n\t\treturn connectionParameters;\r\n\t}", "title": "" }, { "docid": "d165a6239b0e3510c4a05157b1f4719b", "score": "0.46905404", "text": "public DictionaryClient(String addr, int portnum) {\n\t\tthis.addr = addr;\n\t\tthis.portnum = portnum ;\n\t\tthis.operationnum = 0;\n\t\tuserinterface = null;\n\t}", "title": "" }, { "docid": "9e07caf2870ca8d5d40c40819280c0ff", "score": "0.46887785", "text": "void init (Map<String, String> conf) throws ConfigException;", "title": "" }, { "docid": "0cd357fe093e9ed780a82a0022ec3b46", "score": "0.4674903", "text": "public void configure(Map configs, boolean isKey) {\n\n }", "title": "" }, { "docid": "90b04b374bee78992c46a294ccb8cfc1", "score": "0.46642375", "text": "Map<String, Object> settings();", "title": "" }, { "docid": "632894bbcbb34f24e5bf0cc9b6008d13", "score": "0.46564358", "text": "public void setConnectionInfo(ClientConnectionInfo connectionInfo)\r\n\t{\r\n\t\tthis.connectionInfo = connectionInfo;\r\n\t}", "title": "" }, { "docid": "4b834394216cfb881fb21ce5dca72a9d", "score": "0.46524847", "text": "@Override\n\tpublic void setRequest(java.util.Map<String, Object> arg0) {\n\t\tthis.requsMap = arg0;\n\t}", "title": "" }, { "docid": "43e41d21a13286c15965a4128f8854b2", "score": "0.46506098", "text": "public static void m21849a(HttpURLConnection httpURLConnection, Map<String, String> map) {\n if (map != null && !map.isEmpty()) {\n for (String str : map.keySet()) {\n m21848a(httpURLConnection, str, (String) map.get(str));\n }\n }\n }", "title": "" }, { "docid": "fafb8deab32a5805e2aa41cf27c14086", "score": "0.4634862", "text": "public void setHttpConnectionTimeout(int connectionTimeout) {\n\t\thttp.setConnectionTimeout(connectionTimeout);\n\t}", "title": "" }, { "docid": "791e6d81b05ca4bbc69966b8edc5462a", "score": "0.4631371", "text": "public void setOption(int key, Object info) {\n optionKey = key;\n optionInfo = info;\n }", "title": "" }, { "docid": "3343f61570ddc9b7f957b0927bc18a1b", "score": "0.4625276", "text": "private RequestOptions(boolean followRedirects, long readTimeout, long connectTimeout) {\n this.followRedirects = followRedirects;\n this.readTimeout = readTimeout;\n this.connectTimeout = connectTimeout;\n }", "title": "" }, { "docid": "4f81c8026abd6e9b3431fe3f1b28aaa3", "score": "0.46208695", "text": "public Ice.AsyncResult begin_getAllConf(java.util.Map<String, String> __ctx, Callback_Server_getAllConf __cb);", "title": "" }, { "docid": "ef9a8d9973bf8421a7920289460277e3", "score": "0.46182442", "text": "public interface ICapsConfiguration {\n /**\n * Used by CAPS to retrieve the SSLContext for the target connection (proxy => target)\n *\n * @return SSLContext to create target socket\n * @throws NoSuchAlgorithmException\n * @throws CertificateException\n * @throws KeyStoreException\n * @throws IOException\n * @throws UnrecoverableKeyException\n * @throws ConfigurationException\n * @throws KeyManagementException\n */\n public SSLContext getTargetSslContext() throws NoSuchAlgorithmException, CertificateException, KeyStoreException,\n IOException, UnrecoverableKeyException, ConfigurationException, KeyManagementException;\n\n /**\n * Used by CAPS to retrieve the SSLContext for the client connection (proxy => client). This is needed for the MITM\n * interception to inject the client certificate.\n *\n * @return SSLContext to create the proxy socket for the SSL Upgrade of the connection\n * @throws CertificateException\n * @throws UnrecoverableKeyException\n * @throws NoSuchAlgorithmException\n * @throws IOException\n * @throws KeyStoreException\n * @throws ConfigurationException\n * @throws KeyManagementException\n */\n public SSLContext getProxySslContext() throws CertificateException, UnrecoverableKeyException,\n NoSuchAlgorithmException, IOException, KeyStoreException, ConfigurationException, KeyManagementException;\n\n /**\n * Get the proxy which is required for the connection to the target server.\n *\n * @return Proxy object or null\n */\n public Proxy getTargetProxy();\n\n /**\n * Get the connection timeout set for the sockets.\n *\n * @return timeout in ms\n */\n public long getConnectionTimeout();\n\n /**\n * Get the current setting of the proxy listener port.\n *\n * @return port number\n */\n public int getProxyListenerPort();\n\n /**\n * Get the desired thread pool size for the ConnectionHandler threads.\n *\n * @return\n */\n public int getThreadPoolSize();\n\n}", "title": "" }, { "docid": "700ea34275ca713c7982e9dbb2ae1a61", "score": "0.460493", "text": "public SocketOptions getSocketOptions() {\n if (socketOptions == null) {\n socketOptions = new SocketOptions();\n socketOptions.setConnectTimeoutMillis(connectTimeoutMillis);\n socketOptions.setReadTimeoutMillis(readTimeoutMillis);\n if (keepAlive != null) {\n socketOptions.setKeepAlive(keepAlive);\n }\n\n if (reuseAddress != null) {\n socketOptions.setReuseAddress(reuseAddress);\n }\n\n if (soLinger != null) {\n socketOptions.setSoLinger(soLinger);\n }\n\n if (tcpNoDelay != null) {\n socketOptions.setTcpNoDelay(tcpNoDelay);\n }\n\n if (receiveBufferSize != null) {\n socketOptions.setReceiveBufferSize(receiveBufferSize);\n }\n\n if (sendBufferSize != null) {\n socketOptions.setSendBufferSize(sendBufferSize);\n }\n }\n return socketOptions;\n }", "title": "" }, { "docid": "1f24f4660fd73aff96d8ae7063da9c1e", "score": "0.4599066", "text": "public WebSocketsConnectionHandler(String connectionId, ConnectionOptions connectionOptions, SslPeerDetails peerDetails, AmqpMetricsProvider metricsProvider) {\n super(connectionId, connectionOptions, peerDetails, metricsProvider);\n this.hostname = connectionOptions.getHostname();\n }", "title": "" }, { "docid": "a1d48e49fe4fc5a8d4d5edd00e2d6e6e", "score": "0.45982516", "text": "private void headers(HashMap<String,String> headersHashMap, HttpURLConnection connection){\n for(String key:headersHashMap.keySet()){\n connection.setRequestProperty(key,headersHashMap.get(key));\n }\n }", "title": "" }, { "docid": "108e33dc01c9aff5c431b6abfbd44aa2", "score": "0.4595538", "text": "public PowerShell configuration(Map<String, String> config) {\n try {\n this.maxThreads = Integer.valueOf((config != null && config.get(\"maxThreads\") != null) ? config.get(\"maxThreads\") : PowerShellConfig.getConfig().getProperty(\"maxThreads\"));\n this.waitPause = Integer.valueOf((config != null && config.get(\"waitPause\") != null) ? config.get(\"waitPause\") : PowerShellConfig.getConfig().getProperty(\"waitPause\"));\n this.maxWait = Long.valueOf((config != null && config.get(\"maxWait\") != null) ? config.get(\"maxWait\") : PowerShellConfig.getConfig().getProperty(\"maxWait\"));\n } catch (NumberFormatException nfe) {\n Logger.getLogger(PowerShell.class.getName()).log(Level.SEVERE, \"Could not read configuration. Use default values.\", nfe);\n }\n return this;\n }", "title": "" }, { "docid": "15d0eb94c45cbe7718ca1586cf5850a4", "score": "0.45901316", "text": "@Override\n\tpublic boolean configure(StaplerRequest req, JSONObject formData) throws Descriptor.FormException {\n\t // To persist global configuration information,\n\t // set that to properties and call save().\n\t server = formData.getString(\"server\");\n\t user = formData.getString(\"user\");\n\t password = formData.getString(\"password\");\n\t save();\n\t return super.configure(req, formData);\n\t}", "title": "" }, { "docid": "3c31984c06c0597b16ec9722c07df372", "score": "0.45899618", "text": "protected void initializeParams(String protocol, Map params) {\n super.initializeParams(protocol, params);\n params.put(\"scheme\", \"https\");\n params.put(\"secure\", \"true\");\n }", "title": "" }, { "docid": "c8f11f2328840a8a8a48fb926b36154c", "score": "0.45771417", "text": "public AutomaticTuningServerProperties withOptions(Map<String, AutomaticTuningServerOptions> options) {\n this.options = options;\n return this;\n }", "title": "" }, { "docid": "c50427150c22de5d64131b2a70a2a2d0", "score": "0.4569903", "text": "public static PublishSinkConfig load(Map<String, Object> map) {\n return new Gson().fromJson(new Gson().toJson(map), PublishSinkConfig.class);\n }", "title": "" }, { "docid": "de2308353c23b98db28b29ab436134e2", "score": "0.45623142", "text": "io.toit.proto.toit.model.DeviceProto.DeviceConnectionSettings getConnection();", "title": "" }, { "docid": "fe1d3781a3e114a678d55932138f0733", "score": "0.45577872", "text": "public Ice.AsyncResult begin_getAllConf(java.util.Map<String, String> __ctx, Ice.Callback __cb);", "title": "" }, { "docid": "85e73cb8897d91f2664c5e0805443da8", "score": "0.45564884", "text": "private static HttpURLConnection connectionRequestSetup (URL connUrl) throws IOException {\n \n HttpURLConnection connect = (HttpURLConnection) connUrl.openConnection();\n connect.setConnectTimeout(2500);\n connect.setReadTimeout(2500);\n connect.setInstanceFollowRedirects(false);\n\n return connect;\n }", "title": "" }, { "docid": "29148573c15c84549fb2989bb6e0a2fc", "score": "0.4551839", "text": "public InitiatedHTTPCommunication_V1(HashMap<Integer,HashMap<String,String>> data, ArrayList<String> target) {\r\n super(data);\r\n targets = target;\r\n }", "title": "" }, { "docid": "e5590efa6afc0e93814e873529b3596d", "score": "0.4547658", "text": "public Options protocol(String protocol) {\n this.protocol = protocol;\n return this;\n }", "title": "" }, { "docid": "76f69422ddcd38975ffb2af280d0650b", "score": "0.45432994", "text": "public void configure(Map<String, ?> configs, boolean isKey) {\n\t\t\r\n\t}", "title": "" }, { "docid": "c252124c39f245b605cbb86f65f78c9a", "score": "0.45256528", "text": "public Map<String, Connection> getClients();", "title": "" }, { "docid": "1dc60854f268c7cef7ae4ff7d92343b6", "score": "0.4510394", "text": "public ConnectionSettings(int connectTimeoutMillis, TlsSettings tlsSettings) {\n this.connectTimeoutMillis = connectTimeoutMillis;\n }", "title": "" }, { "docid": "17c2b30dcadc4ed56e205c23d0c59064", "score": "0.45070985", "text": "private DBConnectionPool(String key, int max_connections) {\n this.key = key;\n this.maxConnections = (max_connections>0?max_connections:MAX_CONNECTIONS);\n }", "title": "" }, { "docid": "d46959f01d276cc06f901f2c748a45a6", "score": "0.45032415", "text": "public static void loadConnections() throws IOException, org.json.simple.parser.ParseException {\n\t\tFileReader reader = new FileReader(Constants.FILE_CONNECTION_TYPE);\n\t\t\n\t\tJSONParser jsonParser = new JSONParser();\n\t\tObject obj = jsonParser.parse(reader);\n\t\tJSONArray jArr = (JSONArray) obj;\n\t\tfor (int i = 0; i < jArr.size(); i++) {\n\t\t\tJSONArray jItem = (JSONArray) jArr.get(i);\n\t\t\tif (Constants.s_mapConnection == null) {\n\t\t\t\tConstants.s_mapConnection = new HashMap<Integer, String>();\n\t\t\t}\n\t\t\tConstants.s_mapConnection.put(Integer.valueOf(jItem.get(0).toString()), jItem.get(1).toString());\n\t\t}\n\t}", "title": "" }, { "docid": "8d955068f19b86d9164f12dda2636699", "score": "0.44934458", "text": "public Builder setConnectionKey(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n connectionKey_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "3f585291b7f137c01a3cb52920363d9c", "score": "0.44880456", "text": "public Builder setConnectionKey(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n connectionKey_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d5a18bdbf3aa04b450c5bf2170ef5bf4", "score": "0.44859895", "text": "private void configure() {\n\n String redisKey = JULConfigUtil.getProperty(REDIS_KEY_PROPERTY, Defaults.REDIS_KEY);\n\n String host = JULConfigUtil.getProperty(HOST_PROPERTY, Defaults.HOST);\n int port = JULConfigUtil.getIntProperty(PORT_PROPERTY, Defaults.PORT);\n int timeoutMs = JULConfigUtil.getIntProperty(TIMEOUT_PROPERTY, Defaults.TIMEOUT_MS);\n String password = JULConfigUtil.getProperty(PASSWORD_PROPERTY, Defaults.PASSWORD);\n int database = JULConfigUtil.getIntProperty(DATABASE_PROPERTY, Defaults.DATABASE);\n String clientName = JULConfigUtil.getProperty(CLIENT_NAME_PROPERTY, Defaults.CLIENT_NAME);\n boolean tls = JULConfigUtil.getBooleanProperty(TLS_PROPERTY, Defaults.TLS);\n boolean synchronous = JULConfigUtil.getBooleanProperty(SYNCHRONOUS_PROPERTY, Defaults.SYNCHRONOUS);\n int redisPushThreads = JULConfigUtil.getIntProperty(REDIS_PUSH_THREADS_PROPERTY, Defaults.REDIS_PUSH_THREADS);\n int maxMessagesPerPush = JULConfigUtil.getIntProperty(MAX_MESSAGES_PER_PUSH_PROPERTY, Defaults.MAX_MESSAGES_PER_PUSH);\n int logQueueSize = JULConfigUtil.getIntProperty(LOG_QUEUE_SIZE_PROPERTY, Defaults.LOG_QUEUE_SIZE);\n boolean debug = JULConfigUtil.getBooleanProperty(DEBUG_PROPERTY, false);\n int maxThreadBlockTimeMs = JULConfigUtil.getIntProperty(MAX_THREAD_BLOCK_TIME_PROPERTY, Defaults.MAX_THREAD_BLOCK_TIME_MS);\n int workerTimeoutMs = JULConfigUtil.getIntProperty(WORKER_TIMEOUT_PROPERTY, Defaults.WORKER_TIMEOUT_MS);\n\n Charset charset = Defaults.CHARSET;\n String charsetString = JULConfigUtil.getProperty(CHARSET_PROPERTY, null);\n if (charsetString != null) {\n charset = Charset.forName(charsetString);\n }\n\n Formatter formatter;\n String formatterClass = JULConfigUtil.getProperty(FORMATTER_PROPERTY, null);\n // allow instantiating a different formatter\n if (formatterClass != null && !formatterClass.equals(JULLogstashFormatter.class.getCanonicalName())) {\n try {\n Class<?> formatterClazz = Class.forName(formatterClass);\n formatter = (Formatter) formatterClazz.newInstance();\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {\n throw new LoggerInitializationException(\"Could not initialize formatter class: \" + formatterClass, e);\n }\n } else {\n formatter = new JULLogstashFormatter();\n }\n\n this.setFormatter(formatter);\n\n RedisClient client = RedisClientBuilder.builder()\n .redisKey(redisKey)\n .host(host)\n .port(port)\n .timeoutMs(timeoutMs)\n .password(password)\n .database(database)\n .clientName(clientName)\n .tls(tls)\n .threads(redisPushThreads)\n .logQueueSize(logQueueSize)\n .maxMessagesPerPush(maxMessagesPerPush)\n .synchronous(synchronous)\n .charset(charset)\n .maxThreadBlockTimeMs(maxThreadBlockTimeMs)\n .workerTimeoutMs(workerTimeoutMs)\n .debug(debug)\n .build();\n\n client.start();\n\n setClient(client);\n }", "title": "" }, { "docid": "e0226c0f73c2ac7e2fdb9b1504c8cf62", "score": "0.4485459", "text": "@DefaultMessage(\"Advanced remote access settings\")\n @Key(\"settings_net_remote_access_advanced\")\n String settings_net_remote_access_advanced();", "title": "" }, { "docid": "cbdd960758c02ea98500f9be5c2c320b", "score": "0.44839525", "text": "public void setOption(String key, String value)\n {\n open();\n ConcurrentNavigableMap<String, String> table = db.getTreeMap(OPTIONS_TABLE);\n table.put(key, value);\n }", "title": "" }, { "docid": "1a50ab080bdbbc94f3d20403c28f33be", "score": "0.44828808", "text": "HttpRequest config(PSConfig config);", "title": "" }, { "docid": "e1958be21d5663abe25f5d47efedb227", "score": "0.44780472", "text": "private DBConnectionPool(String key) {\n this.key = key;\n this.maxConnections = MAX_CONNECTIONS;\n }", "title": "" }, { "docid": "21047837bc89ee555ae7dc49a2ec7432", "score": "0.44740185", "text": "private static Option[] writeOptions() {\n Map<String, String> customerHeaders = Collections.emptyMap();\n return new Option[]{\n Option.withRequestId(UUID.randomUUID().toString()),\n Option.withTimeout(DEFAULT_WRITE_TIMEOUT),\n Option.withHeaders(customerHeaders),\n // The server is expected to return within a certain period,\n // to prevent can't return before client is timeout\n Option.withServerTimeout(DEFAULT_WRITE_TIMEOUT.minus(Duration.ofMillis(100)))\n };\n }", "title": "" }, { "docid": "a0d494ce198ece2b149ac4d1dea5edf4", "score": "0.4473885", "text": "interface MapboxOptionsSink {\n void setMapStyle(String style);\n void setMinimumZoomLevel(double min);\n void setMaximumZoomLevel(double max);\n void setMyLocationEnabled(boolean myLocationEnabled);\n void setMyLocationButtonEnabled(boolean myLocationButtonEnabled);\n void setInitialMarkers(Object initialMarkers);\n void setInitialClusters(Object initialClusters);\n void setMyLocationTrackingMode(int myLocationTrackingMode);\n void setMyLocationRenderMode(int myLocationRenderMode);\n\n void setCompassEnabled(boolean compassEnabled);\n void setMinMaxZoomPreference(Float min, Float max);;\n void setScrollGesturesEnabled(boolean scrollGesturesEnabled);\n void setTrackCameraPosition(boolean trackCameraPosition);\n void setZoomGesturesEnabled(boolean zoomGesturesEnabled);\n void setZoomControlsEnabled(boolean zoomControlsEnabled);\n}", "title": "" }, { "docid": "1e0d2cb3fbef51e3f0fd23d823277495", "score": "0.44685936", "text": "public void toMap(HashMap<String, String> map, String prefix) {\n this.setParamSimple(map, prefix + \"ChannelName\", this.ChannelName);\n this.setParamObj(map, prefix + \"DataSource.\", this.DataSource);\n this.setParamSimple(map, prefix + \"InputMode\", this.InputMode);\n this.setParamSimple(map, prefix + \"ContentType\", this.ContentType);\n\n }", "title": "" }, { "docid": "6562c0818defc5a77d234c9a8babf632", "score": "0.44609916", "text": "public Ice.AsyncResult begin_getAllConf(java.util.Map<String, String> __ctx);", "title": "" } ]
4d1afcfe4395e023c9c4e7cb9a9bc5ce
This method was generated by MyBatis Generator. This method sets the value of the database column T_VARIABLES.CODESNAME
[ { "docid": "28df7478025037185dfc8b939601ee07", "score": "0.60412866", "text": "public void setCodesname(String codesname) {\n this.codesname = codesname == null ? null : codesname.trim();\n }", "title": "" } ]
[ { "docid": "e82bbc661d39dc1109eebfa2e6aafb56", "score": "0.6355531", "text": "public String getCodesname() {\n return codesname;\n }", "title": "" }, { "docid": "d86c21df4f8fb2c2914c639480bbe335", "score": "0.5656538", "text": "void setCode(java.lang.String code);", "title": "" }, { "docid": "30e75593f3b9138b8c7c865e1bec3953", "score": "0.55882514", "text": "public final void setCODE(final String value)\n {\n CODEProperty().set(value);\n }", "title": "" }, { "docid": "7479c448e45fb5520a8e95125400d4c6", "score": "0.553666", "text": "public String getCodeName();", "title": "" }, { "docid": "54aa3d6660b864b857b21ea56ef010cc", "score": "0.5484459", "text": "@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\t_code = getPersistenceContext().setValue(CODE, value);\n\t}", "title": "" }, { "docid": "6737ce779636f17fb1dbcb8b6c7b1465", "score": "0.5436578", "text": "public String getCodeName() {\n return _codeName;\n }", "title": "" }, { "docid": "291aeb8d4cfe39c9cffbb7bdcfe9112e", "score": "0.53875715", "text": "public void setCode(String code){ this.code = code;}", "title": "" }, { "docid": "9a1bffcf9d5b40f18330e130f6e3acfd", "score": "0.5363605", "text": "public void setCode(String value) {\r\n this.code = value;\r\n }", "title": "" }, { "docid": "be54d97af9d53867d3559a94def75d18", "score": "0.5353402", "text": "public void setWhateverCode(java.lang.String whateverCode) {\n this.whateverCode = whateverCode;\n }", "title": "" }, { "docid": "66e3e821b8abfc7fdd3a39d1c875a626", "score": "0.52574056", "text": "private void setCode(int value) {\n \n code_ = value;\n }", "title": "" }, { "docid": "40521e83d8088b13d9f423b1f9c1f8f5", "score": "0.5236841", "text": "public void setCodeSet(String p_code_set);", "title": "" }, { "docid": "b4dd6e92a51f93caecaf993651ca513a", "score": "0.51987416", "text": "public void setCode( String code ) {\n this.code = code ;\n }", "title": "" }, { "docid": "a3b347f1116a218849c416f34e5fa248", "score": "0.5157012", "text": "public void setCODE(String CODE) {\n this.CODE = CODE == null ? null : CODE.trim();\n }", "title": "" }, { "docid": "c20fedd2eceda0923bbe8128a5a862fe", "score": "0.51301575", "text": "public void setCode(int code) { this.code = code; }", "title": "" }, { "docid": "543d77c0f75c0ef493d94cec59261bec", "score": "0.5105822", "text": "public void setCode(String code){\n\t\tthis.code = code;\n\t}", "title": "" }, { "docid": "69bc329e3ee2e04aa77e5cf90ed0baaa", "score": "0.5096465", "text": "public void setCode (String pCode) {\n\t\tprojectCode = pCode;\n\t}", "title": "" }, { "docid": "e62f6e446cd2b89e8345133ea0fc6eda", "score": "0.5081863", "text": "public void setLookupCode(String value) {\n setAttributeInternal(LOOKUPCODE, value);\n }", "title": "" }, { "docid": "00be7f1c5abecab02163efb06edb4871", "score": "0.5060174", "text": "public void setCode(String code)\n {\n this.code = code;\n }", "title": "" }, { "docid": "0dfd8086f66559ec9e33e4d55a20de79", "score": "0.5053231", "text": "public void setCode(int value) {\r\n this.code = value;\r\n }", "title": "" }, { "docid": "25445811362f4a17dda25df6c70d383a", "score": "0.5040881", "text": "public Character getCodeName() {\n return codeName;\n }", "title": "" }, { "docid": "49336d253a787cc9f52e31778008f79a", "score": "0.5036747", "text": "protected void setCodes(Codes codes) {\n _codes = codes;\n if (_codes == null) _codes = new Codes();\n }", "title": "" }, { "docid": "4c67b01bab85675f2422f271b97cb27f", "score": "0.5034642", "text": "public void setJavaCode(final String javaCode) {\n this.javaCode = javaCode;\n }", "title": "" }, { "docid": "94c0edb95a1942d82fc25ed314ebbde8", "score": "0.5019046", "text": "public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n code_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "94c0edb95a1942d82fc25ed314ebbde8", "score": "0.5019046", "text": "public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n code_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5e76817c173f2e85af6aadfad42941a0", "score": "0.5011235", "text": "public void setCodesu( String codesu ) {\n this.codesu = codesu;\n }", "title": "" }, { "docid": "5b4bc6c0c561f31ab6fab1f364f4ec93", "score": "0.5001556", "text": "public void setCode(String subCode) {\n\nthis.subCode = subCode;\n}", "title": "" }, { "docid": "ae322c606a25b5e11168f886fd762ee6", "score": "0.49944124", "text": "@JsonSetter(\"code\")\r\n public void setCode (String value) { \r\n this.code = value;\r\n }", "title": "" }, { "docid": "0bb7bd9086a71adb7d70ea86614d78be", "score": "0.4991805", "text": "public void setCode(java.lang.String code) {\n this.code = code;\n }", "title": "" }, { "docid": "0bb7bd9086a71adb7d70ea86614d78be", "score": "0.4991805", "text": "public void setCode(java.lang.String code) {\n this.code = code;\n }", "title": "" }, { "docid": "d9402cbbb69ec375910c8ec36bd0cf0a", "score": "0.49916622", "text": "public void setCodigo(java.lang.String param){\n \n this.localCodigo=param;\n \n\n }", "title": "" }, { "docid": "6b0e98613c53c98cea692eddcc15de9d", "score": "0.49831623", "text": "public final void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "31f9cbfdde5416e8045528e0b17fc4f2", "score": "0.49681786", "text": "public void setCode(final char thisCode) {\n this.code = String.valueOf(thisCode);\n }", "title": "" }, { "docid": "34b6ff0ea4b377fe53b93b9ba942d255", "score": "0.49630865", "text": "public void setCodeTable(char[] codeTable) {\n this.codeTable = codeTable;\n }", "title": "" }, { "docid": "020ecc1b9a49f6c5a4bcaa0f6cd77b75", "score": "0.49595815", "text": "public void setTEXTCODE(int value) {\n this.textcode = value;\n }", "title": "" }, { "docid": "020ecc1b9a49f6c5a4bcaa0f6cd77b75", "score": "0.49595815", "text": "public void setTEXTCODE(int value) {\n this.textcode = value;\n }", "title": "" }, { "docid": "020ecc1b9a49f6c5a4bcaa0f6cd77b75", "score": "0.49595815", "text": "public void setTEXTCODE(int value) {\n this.textcode = value;\n }", "title": "" }, { "docid": "020ecc1b9a49f6c5a4bcaa0f6cd77b75", "score": "0.49595815", "text": "public void setTEXTCODE(int value) {\n this.textcode = value;\n }", "title": "" }, { "docid": "6f2a3707298936fc419310cbdcbdd0a0", "score": "0.49557927", "text": "public void setCode(String cd)\r\n {\r\n code = cd;\r\n }", "title": "" }, { "docid": "2e46474538c0d5e774830b023ab790db", "score": "0.49504572", "text": "public void setInCode(java.lang.String inCode) {\n this.inCode = inCode;\n }", "title": "" }, { "docid": "f2ecf0a6b2fe0aaf36815857a1ad88fb", "score": "0.49496883", "text": "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.49355233", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.49355233", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.49355233", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "93359acf3410fe2c902c7202074de5fd", "score": "0.4931473", "text": "public void setCodigo(String value)\n/* 34: */ {\n/* 35: 92 */ this.codigo = value;\n/* 36: */ }", "title": "" }, { "docid": "5ed6dc9bc1bab19ba878ca63fc441c96", "score": "0.4878762", "text": "void xsetCode(au.gov.asic.types.nni.ClassType.Code code);", "title": "" }, { "docid": "8277d3fc3a5da1234ca902c1ac49b561", "score": "0.48782277", "text": "public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n code_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "99b0691084a54a7bc60b670b83ae2932", "score": "0.4877976", "text": "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "title": "" }, { "docid": "99b0691084a54a7bc60b670b83ae2932", "score": "0.4877976", "text": "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "title": "" }, { "docid": "99b0691084a54a7bc60b670b83ae2932", "score": "0.4877976", "text": "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "title": "" }, { "docid": "d934925c853cd0b3a284a442de2fd3e5", "score": "0.48758078", "text": "public void setCodeSet(String p_code_set)\n {\n m_code_set = p_code_set;\n }", "title": "" }, { "docid": "176c9fe881a731fd17e9641f9dabb9cd", "score": "0.48623297", "text": "public void setSysCode(String sysCode) {\n\t\tthis.sysCode = sysCode == null ? null : sysCode.trim();\n\t}", "title": "" }, { "docid": "3c4d345e11c1cd47fbcf889f3b91f16f", "score": "0.4860708", "text": "public String setName() {\n/* 130 */ return \"UPDATE COINS SET NAME=? WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "73f26110b63809aebc78482a7bc9ec51", "score": "0.48573184", "text": "public void setUser_code(java.lang.String user_code) {\n this.user_code = user_code;\n }", "title": "" }, { "docid": "3a382159e341fe9f00b72eb462291d5a", "score": "0.4853004", "text": "public String getCODE() {\n return CODE;\n }", "title": "" }, { "docid": "d93781853c3866755139cd02d6e1b3ce", "score": "0.48502412", "text": "public void setUpCode(String upCode) {\n this.upCode = upCode;\n }", "title": "" }, { "docid": "3a99bcd52469a7c06d6d8054a55dd0c3", "score": "0.48451826", "text": "@Test\n public void testToVarName() {\n Assert.assertEquals(codegen.toVarName(\"PetName\"), \"pet_name\");\n // Prefix is added when starting with a number\n Assert.assertEquals(codegen.toVarName(\"1PetName\"), \"param_1_pet_name\");\n }", "title": "" }, { "docid": "dfe7f0e5c79445dd2729c3296ebaba07", "score": "0.4841248", "text": "public void setCodigo_pcom(java.lang.String newCodigo_pcom);", "title": "" }, { "docid": "7890cbae61e5f66b3c701774d3bc61aa", "score": "0.4839964", "text": "public void setCode(final String val) {\n assignSubaddressField(codeIndex, val);\n }", "title": "" }, { "docid": "0b9ad7dff8908d8643f10c6c36acf105", "score": "0.48172498", "text": "public void setCodigo(String codigo)\r\n/* 121: */ {\r\n/* 122:205 */ this.codigo = codigo;\r\n/* 123: */ }", "title": "" }, { "docid": "274fe37eb710f57105ba52cae7be8288", "score": "0.48075873", "text": "public void setCodeType(String codeType) {\n this.codeType = codeType == null ? null : codeType.trim();\n }", "title": "" }, { "docid": "e0550cf3c692cc443b5b4fce53f4f5cb", "score": "0.4795383", "text": "public void setCountryCode(final String code) throws SQLException,\n\t CorpusDatabaseException {\n\tfinal Country country = new Country(Site.database);\n\tfinal Integer cCode = country.getIdByCode(code);\n\tif (cCode != null) {\n\t this.properties.put(\"country_id\", cCode);\n\t} else {\n\t if (Site.ALLOW_UNKNOWN_FIELD_CONTENT) {\n\t\tthis.properties.put(\"country_id\", country.getIdForUnknown());\n\t } else {\n\t\tthrow new IllegalArgumentException(\n\t\t\t\"The country-code you specified could not be found.\");\n\t }\n\t}\n }", "title": "" }, { "docid": "573b2b287229b546ae5ea3603a129e53", "score": "0.47949398", "text": "public static String getNameForCode(int code) {\n\t\treturn names[code];\n\t}", "title": "" }, { "docid": "844bcff4e5e17baad15d5d7c8acab269", "score": "0.47879323", "text": "public void setName (String newVar) {\n name = newVar;\n }", "title": "" }, { "docid": "324cb11895cbe4d6e9d7c63b35ed81b2", "score": "0.47782382", "text": "public void setItemCodeName(String ItemCodeName) {\n this.ItemCodeName = ItemCodeName;\n }", "title": "" }, { "docid": "903670b77b4a5bfa3bbf9e03dd554691", "score": "0.47738722", "text": "@Accessor(qualifier = \"code\", type = Accessor.Type.GETTER)\n\tpublic String getCode()\n\t{\n\t\tif (this._code!=null)\n\t\t{\n\t\t\treturn _code;\n\t\t}\n\t\treturn _code = getPersistenceContext().getValue(CODE, _code);\n\t}", "title": "" }, { "docid": "2642c08c757bcebc16a6afcc45e735b9", "score": "0.47729957", "text": "public void setName(String newName){\n charName = newName;\n }", "title": "" }, { "docid": "0ea5a34a157350c7232b160cbce06b25", "score": "0.4757781", "text": "Set getVariableNames();", "title": "" }, { "docid": "94dedbadab4c301371b8a5582eb9fcce", "score": "0.4749619", "text": "public void setIdCode(String idCode) {\n this.idCode = idCode == null ? null : idCode.trim();\n }", "title": "" }, { "docid": "26baa2481b208bded46d94b8b5e1e798", "score": "0.47471586", "text": "public void setCodUsuario(String CodUsuario) {\r\n this.CodUsuario = CodUsuario;\r\n }", "title": "" }, { "docid": "be47b5d4377cc0e3982f47b0e59aa8e8", "score": "0.47452947", "text": "public void setCode(Long code) {\n this.code = code;\n }", "title": "" }, { "docid": "5f013076f760bb90474a943db9cc2b88", "score": "0.47341502", "text": "private native int set_appcode_native(String strPackage, String strAppCode, String strDeviceUUID);", "title": "" }, { "docid": "d9c9ff465c52d691328ab09372a0f38f", "score": "0.47324827", "text": "@Generated\n @Selector(\"setFieldName:\")\n public native void setFieldName(@Nullable String value);", "title": "" }, { "docid": "903e177d9c17003e0c911c03653e5a81", "score": "0.47305244", "text": "java.lang.String getCode();", "title": "" }, { "docid": "903e177d9c17003e0c911c03653e5a81", "score": "0.47305244", "text": "java.lang.String getCode();", "title": "" }, { "docid": "903e177d9c17003e0c911c03653e5a81", "score": "0.47305244", "text": "java.lang.String getCode();", "title": "" }, { "docid": "903e177d9c17003e0c911c03653e5a81", "score": "0.47305244", "text": "java.lang.String getCode();", "title": "" }, { "docid": "fde7a723b1cfd9a3f0403b17cd8cc909", "score": "0.47260842", "text": "public ScGridColumn<AcGb0901ContractedParty> newCodeColumn()\n {\n return newCodeColumn(\"Code\");\n }", "title": "" }, { "docid": "8c9b319b335d2556c04a53ab5d9eecc2", "score": "0.47212762", "text": "public void setSyscode(String syscode) {\n\t\tthis.syscode = syscode == null ? null : syscode.trim();\n\t}", "title": "" }, { "docid": "d8a261c56b8fd2c783e678f9829260e5", "score": "0.47177875", "text": "public String getCode()\n {\n return this.name();\n }", "title": "" }, { "docid": "2e264f3c5b555b0bcb5798c406b9b525", "score": "0.47169924", "text": "public void setuserCode(int userCode) {\r\n this.userCode = userCode;\r\n }", "title": "" }, { "docid": "e4453d2073d72b8075da8529ca72ceb6", "score": "0.4705023", "text": "public String getCode(){\n\t\treturn code;\n\t}", "title": "" }, { "docid": "d97feb138984b69354f911cd6bf6efc4", "score": "0.46991706", "text": "public void setbCode(String bCode) {\n this.bCode = bCode == null ? null : bCode.trim();\n }", "title": "" }, { "docid": "a9a8cad9acdd6ddb35a5b6b010c640b7", "score": "0.46889147", "text": "public void setCodeParameter(String codeParameter) {\n\t\tAssert.hasText(codeParameter, \"code parameter must not be empty or null\");\n\t\tthis.codeParameter = codeParameter;\n\t}", "title": "" }, { "docid": "56ccf5408b8567108fb484cbc19a0037", "score": "0.46877712", "text": "@Resource\r\n\tpublic void setCodeValueDAC(ICodeValueDAC codeValueDAC)\r\n\t{\r\n\t\tthis.codeValueDAC = codeValueDAC;\r\n\t}", "title": "" }, { "docid": "6f8bbc2117df92ee022138377ec1ace5", "score": "0.4680305", "text": "public void setCodigo(String codigo) {\r\n\r\n\t\tthis.codigo = codigo;\r\n\t}", "title": "" }, { "docid": "98a86df46eba067e40f79feb743f743b", "score": "0.46753925", "text": "public final StringProperty CODEProperty()\n {\n return CODE;\n }", "title": "" }, { "docid": "dca17a366b66cefa9e37e63cb48d6e74", "score": "0.46712035", "text": "public void setIdentifier(final CodeType value) {\n this.identifier = value;\n }", "title": "" }, { "docid": "380336f1caaa84554ba8266301509fd4", "score": "0.4670945", "text": "public void setName(char[] name) {\r\n\t\t// default overridden by concrete implementation\r\n\t}", "title": "" }, { "docid": "6e37bffaf58a8475e9a111c83a78d759", "score": "0.46602675", "text": "String getCode() {\n return code;\n }", "title": "" }, { "docid": "7309129626632b2c144202b6bfd0673f", "score": "0.46569443", "text": "public String getCode() {\r\n return strCode;\r\n }", "title": "" }, { "docid": "757c7f510d58085e687504ed6688d2cf", "score": "0.46568364", "text": "public String getCode(){ return code;}", "title": "" }, { "docid": "66ed7b183a5526e69fa8feb461d714c0", "score": "0.46462932", "text": "public void setNamesu( String namesu ) {\n this.namesu = namesu;\n }", "title": "" }, { "docid": "78df8808b97f28ec1492036b8f6b0b47", "score": "0.46451682", "text": "public void setCode(String code)\n\t{\n\t\tthis.code = code == null ? null : code.trim();\n\t}", "title": "" }, { "docid": "f7e7b061f6c16826403a515ab99c7fd9", "score": "0.46424893", "text": "public void setCodigo(String codigo) {\r\n\t\tthis.codigo = codigo;\r\n\t}", "title": "" }, { "docid": "568dc35fc4ee5e92c42a9ff73e80ac14", "score": "0.46406147", "text": "public void setCode(String code) {\n\t\tthis.code = code == null ? null : code.trim();\n\t}", "title": "" }, { "docid": "b182cd4401f2551b333b92da9675caef", "score": "0.46384525", "text": "public void setCode(java.lang.Integer code) {\n this.code = code;\n }", "title": "" }, { "docid": "42c85504bb51d030ea7454dc880106ec", "score": "0.4637858", "text": "public void setCod(String cod) {\r\n\t\tthis.cod = cod;\r\n\t}", "title": "" }, { "docid": "2a54abf885148059ac006ce1585b9f9d", "score": "0.4634357", "text": "public void setName1 (String name1){\r\n name1 = cName1;\r\n }", "title": "" }, { "docid": "24d70aa799491e31ef2755befd456513", "score": "0.46334374", "text": "public void setCode2000(String code2000) {\r\n i_code2000 = code2000;\r\n this.markModifiedPersistentState();\r\n }", "title": "" }, { "docid": "707247e84ed4ab5c9e24b337a772286a", "score": "0.46235284", "text": "@Override\n public void renameVariables() {\n if (containVar()) {\n renameVariables(new HashMap<Variable, Variable>());\n }\n setConstant(true);\n setName(makeName());\n }", "title": "" } ]
c918df057a5cdba70a13479116e289ff
repeated .weizhu.tool.productclock.Product product = 1;
[ { "docid": "46b16aeb3a2f6e3c85b1e3417a6d4b6c", "score": "0.0", "text": "public Builder addProduct(\n int index, com.weizhu.proto.ProductclockProtos.Product.Builder builderForValue) {\n if (productBuilder_ == null) {\n ensureProductIsMutable();\n product_.add(index, builderForValue.build());\n onChanged();\n } else {\n productBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "title": "" } ]
[ { "docid": "a5ff6d0375be5c8f38e3fe898135473c", "score": "0.67185396", "text": "private void Product1() {\n\t\t\r\n\t}", "title": "" }, { "docid": "6bcbc6b1434d139e4eef9142a2f04594", "score": "0.6286827", "text": "public void restockProduct() {\n\t\t\n\t}", "title": "" }, { "docid": "7deb331a273d96904e1135262baa7a9e", "score": "0.6252134", "text": "public Product(String nameProduct,int waterAmount, int identify, int numberUnities){\n this.nameProduct = nameProduct;\n this.waterAmount = waterAmount;\n this.identify = identify;\n this.numberUnities = numberUnities;\n}", "title": "" }, { "docid": "d62066aa398aad6b830e2cadbd3742a2", "score": "0.62420595", "text": "Product(){}", "title": "" }, { "docid": "4fa32dc2a4459b36a8d64b6f84963902", "score": "0.6236219", "text": "public void buyProduct(Product p) {\n\t\t\n\t}", "title": "" }, { "docid": "8d70d0500d1dc045be54c6be06a0e792", "score": "0.61823803", "text": "public void addProduct(Product product) {\n\t\t\n\t}", "title": "" }, { "docid": "0b7857c6953e32ebd671666d5ecc8069", "score": "0.61578727", "text": "public void setProduct(int num) {\r\n this.nProduct = num;\r\n }", "title": "" }, { "docid": "1f808cde250d689cdc1802825c5116bd", "score": "0.6155141", "text": "public Product(String name) {\n this.name = name;\n serialNumber = currentProductionNumber;\n //Bug: specified to write to static field\n currentProductionNumber = currentProductionNumber + 1;\n manufacturedOn = new Date();\n }", "title": "" }, { "docid": "8b8eee988eb1db4242827687c5044da1", "score": "0.61253065", "text": "void update(Product product);", "title": "" }, { "docid": "adf236c9a549ea280c7dbfbce36fdf4b", "score": "0.61012524", "text": "public void add(Product product) {\n\t\t\r\n\t}", "title": "" }, { "docid": "8e2943e0a0124fc43dc11914f0746de5", "score": "0.60791034", "text": "Product returnProduct(Product p);", "title": "" }, { "docid": "e9d80018886a693fb9c9e2d1edcc9906", "score": "0.6062814", "text": "public Product(double regularPrice) {\n this.regularPrice= regularPrice; \n }", "title": "" }, { "docid": "f9a340d4feedd6fc4c1b912c453aa5b5", "score": "0.60404956", "text": "public Match getProduct(){\n\t\treturn product;\n\t}", "title": "" }, { "docid": "0a9a6ca1828db5ada02199f544976451", "score": "0.6040228", "text": "public interface Product {\n}", "title": "" }, { "docid": "ea341bbc283106688dbfd56d14bdf2c3", "score": "0.60391766", "text": "public int getProduct() {\r\n return this.nProduct;\r\n }", "title": "" }, { "docid": "309ce230d0e7d3476f0cbbee837b817e", "score": "0.6014984", "text": "void addProduct(E product);", "title": "" }, { "docid": "ca4423a0928318c5f6c88ddddaab9a23", "score": "0.6005471", "text": "public void dispenseProduct() {\n\t\t\n\t}", "title": "" }, { "docid": "d0ec696cbf9a39c7d587baf0dbb2dbb2", "score": "0.5988945", "text": "VendingMachine(int size, Product product)\r\n {\r\n this(size);\r\n for (int i = 0; i < size; i++)\r\n {\r\n int countLoaded = slots[i].load(product);\r\n machineProfit -= (countLoaded * product.getCost());\r\n totalProfit -= (countLoaded * product.getCost());\r\n }\r\n\r\n }", "title": "" }, { "docid": "7a0e7f7701aa5d252b2841e1427686d3", "score": "0.59124845", "text": "com.weizhu.proto.ProductclockProtos.Product getProduct(int index);", "title": "" }, { "docid": "7a0e7f7701aa5d252b2841e1427686d3", "score": "0.59124845", "text": "com.weizhu.proto.ProductclockProtos.Product getProduct(int index);", "title": "" }, { "docid": "7a0e7f7701aa5d252b2841e1427686d3", "score": "0.59124845", "text": "com.weizhu.proto.ProductclockProtos.Product getProduct(int index);", "title": "" }, { "docid": "7a0e7f7701aa5d252b2841e1427686d3", "score": "0.59124845", "text": "com.weizhu.proto.ProductclockProtos.Product getProduct(int index);", "title": "" }, { "docid": "730d82e03267e4cc9297ee4a0763b9f4", "score": "0.59122896", "text": "public final String getProduct() {return product; }", "title": "" }, { "docid": "fcc5918fc25ad56d50f47301cd992aab", "score": "0.5904349", "text": "void modifyProduct(Product product);", "title": "" }, { "docid": "aee567e3ea3e269c25c4826b7002a98b", "score": "0.5898008", "text": "public void updateProduct(Product product) {\n\t\t\n\t}", "title": "" }, { "docid": "32b9ebd9c3df52125c9b607c4781693e", "score": "0.58378375", "text": "public void setNameProduct(String nameProduct){\n this.nameProduct = nameProduct;\n}", "title": "" }, { "docid": "bed8b1fb0696cb40ff50c9df58141cbc", "score": "0.5825633", "text": "Object getProduct();", "title": "" }, { "docid": "3a6852262b7f13cb0be6605a09451d26", "score": "0.58169556", "text": "public void addProduct(Product product, int quantity) throws Exception ;", "title": "" }, { "docid": "a3be264f2dbea1f296f27da7383c001e", "score": "0.5806671", "text": "public SWProduct () {\n init();\n }", "title": "" }, { "docid": "87c835c88082b05418f33e3598064719", "score": "0.5794576", "text": "Product getProduct();", "title": "" }, { "docid": "5f4d834092bd1855f7db049521f77a62", "score": "0.5763714", "text": "public interface Product {\n\n ProductTypes getType();\n\n double getWeight();\n\n String getName();\n}", "title": "" }, { "docid": "2126b96e67ff933b59fcf87002dba3da", "score": "0.5759643", "text": "void addNewProduct(Product product);", "title": "" }, { "docid": "d5c3b96d12e007b780a67a2efe56aa2b", "score": "0.57455546", "text": "@Override\n\tpublic void visit(Product product) {\n\t\t\n\t}", "title": "" }, { "docid": "57d30d3dc8aed3e31b9a14ffdd6ee7bd", "score": "0.57437783", "text": "public void setProduct(final Product product) {\n this.product = product;\n }", "title": "" }, { "docid": "e55e9d400bb66069596ed853abd30f3b", "score": "0.57368845", "text": "public static void main(String[] args) {\n\t\tProduct Iphone = new Product(\"Iphone\", 700);\n\t\t\n\t\tProduct Case = new Product(\"Case\", 25);\n\t\t\n\t\tProduct Display = new Product(\"Display\", 50);\n\t\t\n\t\tProduct Akku = new Product(\"Akku\", 30);\n\t\t\n\t\tProduct Lizenzen = new Product(\"Lizenzen\", 100);\n\t\t\n\t\tProduct Glas = new Product(\"Glas\", 13);\n\t\tProduct Kamera = new Product(\"Kamera\", 50);\n\t\tProduct Bildsensor = new Product(\"Bildsensor\", 20);\n\t\tProduct Linse = new Product(\"Linse\", 5);\n\t\t\n\t\t\n\t\t\n\t\tDisplay.addPart(Glas);\n\t\tIphone.addPart(Case);\n\t\tIphone.addPart(Display);\n\t\tIphone.addPart(Akku);\n\t\tIphone.addPart(Lizenzen);\n\t\tIphone.addPart(Kamera);\n\t\tKamera.addPart(Linse);\n\t\tKamera.addPart(Bildsensor);\n\t\tCase.addPart(Kamera);\n\t\tSystem.out.println(recPartsprice(Iphone,\"/-\"));\n\t\t\n\t\tSystem.out.println(Kamera.getPrice2());\n\t}", "title": "" }, { "docid": "006a8268655688a1a4579c1c2e2c14ae", "score": "0.57110274", "text": "public Product() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "title": "" }, { "docid": "064666458231eefd5c4813243f5b5212", "score": "0.5665124", "text": "@Override\n public void product() {\n if (System.currentTimeMillis() >= endTimeProduct) {\n startTimeProduct = System.currentTimeMillis();\n endTimeProduct = startTimeProduct + timeToProduct;\n currentStock = (currentStock + production >= maxStock) ? maxStock : currentStock + production;\n }\n Log.i(\"Production\", String.valueOf(currentStock));\n }", "title": "" }, { "docid": "54f574fd3a2fb18bde0c31b03dca0720", "score": "0.56165445", "text": "public Product() { }", "title": "" }, { "docid": "7190383db553105f7321de0f58386677", "score": "0.5610228", "text": "public UserRateProduct() {\n }", "title": "" }, { "docid": "b5c01dfcee0df34ef2a430569f6ba612", "score": "0.5602222", "text": "public Product() {}", "title": "" }, { "docid": "20c99addd9ce9722f58da1a3d71ca4bf", "score": "0.5595842", "text": "public Product getProduct() {\n return product;\n }", "title": "" }, { "docid": "f5bdfeb747373901e64feb25f0c61a23", "score": "0.55882347", "text": "public interface ProductA {\n}", "title": "" }, { "docid": "aa1d3426548462e4ecd37ff0cf9c0f3e", "score": "0.55875945", "text": "public Product() {\r\n }", "title": "" }, { "docid": "ebe800f87990548bbbfd6111e1e54b13", "score": "0.5585303", "text": "public Product() { // Right click -> source -> generate constructor using fields.\n}", "title": "" }, { "docid": "40feb6c0fc8d492c8a20c74c20d1dc30", "score": "0.557374", "text": "public void load()\r\n {\r\n Product product = new Product();\r\n\r\n for (int i = 0; i < slots.length; i++)\r\n {\r\n Slot slot = new Slot();\r\n int num = slot.load(product);\r\n slots[i] = slot;\r\n totalProfit -= num * product.getCost();\r\n this.machineProfit -= num * product.getCost();\r\n }\r\n }", "title": "" }, { "docid": "cdee70587935a36bf9244648177c261d", "score": "0.5571508", "text": "public void setProduct(Product product) {\n\t\t\tthis.product = product;\n\t\t}", "title": "" }, { "docid": "ddf301fbb93011b55fc4502d8283cdbf", "score": "0.5567424", "text": "public final static ProductNameStruct getExampleProductNameStructIBMStock() {\n\nProductNameStruct aProductNameStruct = null;\n\n aProductNameStruct = new ProductNameStruct();\n\n aProductNameStruct.productSymbol = \"IBM\";\n aProductNameStruct.reportingClass = \"IBM\";\n aProductNameStruct.expirationDate = new DateStruct();\n aProductNameStruct.expirationDate.day = 1;\n aProductNameStruct.expirationDate.month = 1;\n aProductNameStruct.expirationDate.year = 1999;\n aProductNameStruct.exercisePrice = new PriceStruct(PriceTypes.VALUED,100,0);\n aProductNameStruct.optionType = OptionTypes.CALL;\n\n\n return aProductNameStruct;\n}", "title": "" }, { "docid": "45348753f2f4ebf001ed7ff8065a804e", "score": "0.5558539", "text": "@Override\n\tpublic int update(Product product) throws Exception {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "8e879afe6cbd3afdcb3b41bdd0e71b9d", "score": "0.5553236", "text": "com.weizhu.proto.ProductclockProtos.ProductOrBuilder getProductOrBuilder(\n int index);", "title": "" }, { "docid": "c1ff0caf78e86cc51dd6c74cdcb72bb8", "score": "0.5552804", "text": "protected double getProducerPower (Producer prod)\n {\n return powerCache.get(prod);\n }", "title": "" }, { "docid": "5d33188a632c1f6631bdf7dfbcc77813", "score": "0.5542998", "text": "public String add(Product product);", "title": "" }, { "docid": "35f1025b7778a7083ca5ee3255eb7090", "score": "0.5541668", "text": "public Product getProduct() {\n return this.product;\n }", "title": "" }, { "docid": "5fe30b579114f90f2cb1dae722652c75", "score": "0.55333483", "text": "public void updateProduct(Product p) {\n\t\t\r\n\t}", "title": "" }, { "docid": "1a84c29289dbc503dad0e20046a07ded", "score": "0.55227005", "text": "public void addToProductModifiers(entity.ProductModifier element);", "title": "" }, { "docid": "fd70648572e2461cefd23c634a18660a", "score": "0.55021673", "text": "public void increaseQuantity(){\n\t}", "title": "" }, { "docid": "9bc5b4878ed94ec468b681ca4441b261", "score": "0.54971", "text": "public int getProductNumber() {\n return this.productNumber;\n }", "title": "" }, { "docid": "0855fd82b77cff06fb27593086fa4689", "score": "0.54918987", "text": "void addSale(IProduct p, int month, int units, double price);", "title": "" }, { "docid": "9be0f1955ee87e966ec529777ff3179c", "score": "0.5491571", "text": "public Product() {\r\n\t}", "title": "" }, { "docid": "9be0f1955ee87e966ec529777ff3179c", "score": "0.5491571", "text": "public Product() {\r\n\t}", "title": "" }, { "docid": "bc34b01ba59220e3ff5a3a51f753beb6", "score": "0.54811484", "text": "public static void main(String[] args) {\n\n ProductWithDiscount p1 =\n new ProductWithDiscount(1000, \"phone\", 8, 5);\n p1.discount(1);\n p1.discount(9);\n p1.discount(4);\n\n ProductWithDiscount p2 =\n new ProductWithDiscount(2500, \"iphone\", 9, 7);\n p2.discount(1);\n p2.discount(9);\n p2.discount(4);\n\n final int x = 10;\n// x = 12; x este zona de memorie constanta (constanta locala in metoda main)\n }", "title": "" }, { "docid": "f7b8c427f40688b4e4b7e69b7839f6b2", "score": "0.5475709", "text": "@Test\r\n public void testProduct() {\r\n System.out.println(\"Product\");\r\n // defining an excerpt the moon client interaction protocol\r\n Ips ips1 = new Ips(new Long(0));\r\n //defining moon client states\r\n State ips1state0 = new State(\"s0\");\r\n State ips1state1 = new State(\"s1\");\r\n State ips1state2 = new State(\"s2\");\r\n State ips1state3 = new State(\"s3\");\r\n //and its starting state\r\n StartState ips1start = new StartState(ips1state0);\r\n // defining moon client actions\r\n InputAction a1 = new InputAction(\"a\");\r\n InputAction c = new InputAction(\"c\");\r\n OutputAction ap1 = new OutputAction(\"a'\");\r\n //defining moon client transitions\r\n Transition ips1t0 = new Transition(ips1state0, a1, ips1state1);\r\n Transition ips1t1 = new Transition(ips1state1, c, ips1state2);\r\n Transition ips1t2 = new Transition(ips1state2, ap1, ips1state3);\r\n \r\n //adding all the state elements to the ips\r\n ips1.addState(ips1state0);\r\n ips1.addState(ips1state1);\r\n ips1.addState(ips1state2);\r\n ips1.addState(ips1state3);\r\n \r\n ips1.setStart(ips1start);\r\n \r\n //adding previous defined actions to moon client IPS\r\n ips1.addInput(a1);\r\n ips1.addInput(c);\r\n ips1.addOutput(ap1);\r\n \r\n //adding transition\r\n ips1.addTransition(ips1t0);\r\n ips1.addTransition(ips1t1);\r\n ips1.addTransition(ips1t2);\r\n \r\n //Definition of Blue Service interaction protocol\r\n Ips ips2 = new Ips(new Long(1));\r\n \r\n State ips2state0 = new State(\"t0\");\r\n State ips2state1 = new State(\"t1\");\r\n State ips2state2 = new State(\"t2\");\r\n State ips2state3 = new State(\"t3\");\r\n \r\n StartState ips2start = new StartState(ips2state0);\r\n \r\n OutputAction ap2 = new OutputAction(\"a\");\r\n OutputAction b = new OutputAction(\"b\");\r\n InputAction a2 = new InputAction(\"a'\");\r\n \r\n Transition bst0 = new Transition(ips2state0, ap2, ips2state1);\r\n Transition bst1 = new Transition(ips2state1, b, ips2state2);\r\n Transition bst2 = new Transition(ips2state2, a2, ips2state3);\r\n \r\n ips2.addState(ips2state0);\r\n ips2.addState(ips2state1);\r\n ips2.addState(ips2state2);\r\n \r\n ips2.setStart(ips2start);\r\n \r\n ips2.addOutput(ap2);\r\n ips2.addOutput(b);\r\n ips2.addInput(a2);\r\n \r\n ips2.addTransition(bst0);\r\n ips2.addTransition(bst1);\r\n ips2.addTransition(bst2);\r\n \r\n a1.addEquivalent(ap2);\r\n ap2.addEquivalent(a1);\r\n \r\n a2.addEquivalent(ap1);\r\n ap1.addEquivalent(a2);\r\n \r\n int expResult = 6;\r\n Ips result = Ips.product(ips1, ips2);\r\n \r\n System.out.println(result.getTransitions());\r\n \r\n assertEquals(expResult, result.getTransitions().size());\r\n }", "title": "" }, { "docid": "b826c3056b4f02b75af8ad4333d18a84", "score": "0.5473936", "text": "@Override\r\n public void testClass() {\r\n\r\n Products products = new Products();\r\n Product prod00 = new Product( \"woollen socks\", \"01345\", \"women's winter socks, black\", \"socks\", 9.90 );\r\n Product prod01 = new Product( \"blouse\", \"12345\", \"men's blue summer blouse\", \"blouses\", 21.90 );\r\n Product prod02 = new Product();\r\n prod02.newProduct( \"shorts\", \"234567\", \"short pants for men, color white\", \"pants\", 17.80 );\r\n\r\n products.addProduct( prod00 );\r\n products.addProduct( prod01 );\r\n products.addProduct( prod02 );\r\n\r\n System.out.println( products.toString() );\r\n\r\n }", "title": "" }, { "docid": "c62a76069cf3ca1f74f8409de9ea8276", "score": "0.54732627", "text": "public void addProduct(Product product) {\n products.add(product);\n }", "title": "" }, { "docid": "21e5cc0aaed77ef6b320dcdc0bdbd075", "score": "0.5466614", "text": "public Product() {\n }", "title": "" }, { "docid": "21e5cc0aaed77ef6b320dcdc0bdbd075", "score": "0.5466614", "text": "public Product() {\n }", "title": "" }, { "docid": "21e5cc0aaed77ef6b320dcdc0bdbd075", "score": "0.5466614", "text": "public Product() {\n }", "title": "" }, { "docid": "1d02d3c170ec419c7c487480065b481c", "score": "0.5454058", "text": "@Override public void process(Product product) {\n for (int i = 0; i < nbOccurences; i++) {\r\n super.process(product);\r\n }\r\n }", "title": "" }, { "docid": "7894536902ac2ca0cd2a25ace395f808", "score": "0.5453359", "text": "EProductUnit getProductUnit();", "title": "" }, { "docid": "0eb998b4f8a147aebf9421840d8db256", "score": "0.5453186", "text": "public com.weizhu.proto.ProductclockProtos.Product.Builder addProductBuilder() {\n return getProductFieldBuilder().addBuilder(\n com.weizhu.proto.ProductclockProtos.Product.getDefaultInstance());\n }", "title": "" }, { "docid": "e411f84ced1bd12ee8d749c0f136979e", "score": "0.54366535", "text": "public com.weizhu.proto.ProductclockProtos.Product getProduct(int index) {\n return product_.get(index);\n }", "title": "" }, { "docid": "e411f84ced1bd12ee8d749c0f136979e", "score": "0.5435712", "text": "public com.weizhu.proto.ProductclockProtos.Product getProduct(int index) {\n return product_.get(index);\n }", "title": "" }, { "docid": "e411f84ced1bd12ee8d749c0f136979e", "score": "0.5435712", "text": "public com.weizhu.proto.ProductclockProtos.Product getProduct(int index) {\n return product_.get(index);\n }", "title": "" }, { "docid": "91ee98dc11e6bf39ebc188eed68efcb9", "score": "0.5432109", "text": "public static void main(String[] args) {\n\t\tproduct test = new product(10D, \"java\", \"You should not buy it\");\n\t\t\n\t\t\n// calling the function scan\t\t\n\t\ttest.scan(\"java\");\n\n//assgn\n\t\tDouble a = test.scan(\"java\");\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\ttest.printDescription();\n\t\t\n\t\tString newcode = test.assignCode();\n\t\t\n\t\tSystem.out.println(newcode);\n\t}", "title": "" }, { "docid": "bba3ca7df7d2e56500daed919ce4eab6", "score": "0.5409101", "text": "private Product createProduct(int index) {\r\n \tint i = index + 1;\r\n \tint code = 1000 + i;\r\n \tProduct product = new Product(\"\" + code, \"S\" + code, \"Product \" + i , 100.00f + i);\r\n \tproduct.setStartDate(new Date()); // today\r\n \treturn product;\r\n }", "title": "" }, { "docid": "18df534ac0704a82e8e69c7dc776f441", "score": "0.5406652", "text": "public interface Product {\n\n\t/**\n\t * Return the valuation of the product using the given model.\n\t *\n\t * Implement this method using a checked cast of the model to a derived model for which the product\n\t * provides a valuation algorithm. Example: an interest rate product requires that the passed model\n\t * object implements the interface of an interest rate model. Since there is no polymorphism on\n\t * arguments (see Double Dynamic Dispatch), we reply on a checked cast.\n\t *\n\t * @param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.\n\t * @param model The model under which the product is valued.\n\t * @return Object containing the value of the product using the given model.\n\t */\n\tObject getValue(double evaluationTime, Model model);\n\n\t/**\n\t * Return the valuation of the product using the given model.\n\t *\n\t * Implement this method using a checked cast of the model to a derived model for which the product\n\t * provides a valuation algorithm. Example: an interest rate product requires that the passed model\n\t * object implements the interface of an interest rate model. Since there is no polymorphism on\n\t * arguments (see Double Dynamic Dispatch), we reply on a checked cast.\n\t *\n\t * @param evaluationTime The evaluation time as double. Cash flows prior and including this time are not considered.\n\t * @param model The model under which the product is valued.\n\t * @return Map containing the value of the product using the given model.\n\t */\n\tdefault Map<String, Object> getValues(final double evaluationTime, final Model model) { throw new UnsupportedOperationException(); }\n}", "title": "" }, { "docid": "022963003a2c46d3ba65f305ac23acda", "score": "0.5404211", "text": "public static void main(String[] args) {\n\r\n\t\tEngine e1 = new Engine(\"Diesel\", 5000);\r\n\t\tEngine e2 = new Engine(\"Benzin\", 5000);\r\n\r\n\t\tProducer p1 = new Producer(\"WMB\", \"Austria\", 20);\r\n\t\tProducer p2 = new Producer(\"BetaRomeo\", \"Italien\", 10);\r\n\r\n\t\tCar c1 = new Car(e1, p1);\r\n\t\tCar c2 = new Car(e2, p2);\r\n\r\n\t\tSystem.out.println(c1.getUsage(100));\r\n\t\tSystem.out.println(c1.getUsage(51000));\r\n\t\tSystem.out.println(c1.getPrice());\r\n\r\n\t\tSystem.out.println(c2.getUsage(200));\r\n\t\tSystem.out.println(c2.getUsage(70000));\r\n\t\tSystem.out.println(c2.getPrice());\r\n\r\n\t\tc2.setBaseprice(40000);\r\n\t\tc2.setBaseusage(3);\r\n\r\n\t\tSystem.out.println(c2.getUsage(100));\r\n\t\tSystem.out.println(c2.getUsage(51000));\r\n\t\tSystem.out.println(c2.getPrice());\r\n\r\n\t}", "title": "" }, { "docid": "ba31d0b731ae39850aa51372664a79b8", "score": "0.54016256", "text": "public void newProducto(Productos productos);", "title": "" }, { "docid": "f6e8754501ec7642475075d45702c501", "score": "0.5401443", "text": "public int addProduct(Product product){\n productDao.addProduct(product);\n return 1;\n }", "title": "" }, { "docid": "13b7bb4f91c043cb8375d3a0060cf17b", "score": "0.54011965", "text": "public static void main(String[] args) {\n Machine machine = getInstance(); //// create instance\n \n ///create number of items \n QueueOfSameItem queue1 = new QueueOfSameItem(1,1); \n Item item = null ; \n for (int i = 0 ; i < 10 ; i ++ ){\n item = new Item (i,10) ; /// prices in cent \n queue1.addItem(item);}\n machine.addQueueOfItems(queue1);\n Scanner in = new Scanner(System.in); //// Let the user choose \n int digit1 = in.nextInt();\n int digit2 = in.nextInt();\n machine.getKeypad().setDigit1(digit1); //1\n machine.getKeypad().setDigit2(digit2); // 1 \n String pressed = machine.getKeypad().getPressed(); /// true 11 \n /// try to fetch tthe item \n machine.addCoin(10);\n ///// try to purchase \n machine.getFromSelectedQueue(pressed); \n \n \n}", "title": "" }, { "docid": "d13ed82f291b97ccb35b25181d84e0e0", "score": "0.53934616", "text": "public final static ProductNameStruct getExampleProductNameStructIBMCall() {\n\nProductNameStruct aProductNameStruct = null;\n\n aProductNameStruct = new ProductNameStruct();\n\n aProductNameStruct.productSymbol = \"\";\n aProductNameStruct.reportingClass = \"IBM\";\n aProductNameStruct.expirationDate = new DateStruct();\n aProductNameStruct.expirationDate.day = 1;\n aProductNameStruct.expirationDate.month = 1;\n aProductNameStruct.expirationDate.year = 1999;\n aProductNameStruct.exercisePrice = new PriceStruct(PriceTypes.VALUED,100,0);\n aProductNameStruct.optionType = OptionTypes.CALL;\n\n\n return aProductNameStruct;\n}", "title": "" }, { "docid": "08b8891c908b12b0a7f557f3c6f67f12", "score": "0.53903455", "text": "public void addProduct(int quantity) {\n\t\tthis.quantity += quantity;\n\t}", "title": "" }, { "docid": "2f961ba669f5d7eb96f4a6fab8519528", "score": "0.5379628", "text": "com.weizhu.proto.ProductclockProtos.ProductOrBuilder getProductOrBuilder(\n int index);", "title": "" }, { "docid": "2f961ba669f5d7eb96f4a6fab8519528", "score": "0.5379628", "text": "com.weizhu.proto.ProductclockProtos.ProductOrBuilder getProductOrBuilder(\n int index);", "title": "" }, { "docid": "2f961ba669f5d7eb96f4a6fab8519528", "score": "0.5379628", "text": "com.weizhu.proto.ProductclockProtos.ProductOrBuilder getProductOrBuilder(\n int index);", "title": "" }, { "docid": "cc09c72474c5f40507f4a41e74c9394a", "score": "0.5376649", "text": "public com.weizhu.proto.ProductclockProtos.Product getProduct(int index) {\n return product_.get(index);\n }", "title": "" }, { "docid": "6458ac2c0ebd1b01a62cd2dee3f95020", "score": "0.5371918", "text": "@Override\n public String name() {\n return \"Multiply\";\n }", "title": "" }, { "docid": "0635da07866fb7396616ab9e98da1d0e", "score": "0.5371126", "text": "public void increaseQuantity(Product product){\n for (int index = 0; index < getProducts().size(); index++){\n if(getProducts().get(index) == product){\n getProducts().get(index).increaseQuantity();\n }\n }\n }", "title": "" }, { "docid": "f9990290a3ff3aeb8bb6efa8c0ba2f05", "score": "0.53684634", "text": "long getQuantity1();", "title": "" }, { "docid": "109639bc437de6923c3c190c91112836", "score": "0.53601855", "text": "public Product productRules(Product product) {\n KieSession kieSession = kieContainer.newKieSession();\n kieSession.insert(product);\n kieSession.fireAllRules();\n kieSession.dispose();\n return product;\n }", "title": "" }, { "docid": "ca68f04b4cc1d4df8d94dcdb9bfbd031", "score": "0.5352872", "text": "public OaProductDef() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "0c876ae799c58ca307d8a57257a89e71", "score": "0.53482443", "text": "public int getProductQuantity() {\n return this.productQuantity;\n }", "title": "" }, { "docid": "a9801a326858abab4bffdf7b20a18286", "score": "0.53475225", "text": "@Test\n public void testReduireQte() {\n System.out.println(\"reduireQte\");\n Panier instance = new Panier();\n pr.setQuantitePanier(2);\n instance.add(pr); // ajout produit avec qte 2\n instance.reduireQte(pr);\n Product after = instance.get(0);\n assertEquals(\"reduireQte incorrect!\", 1, after.getQuantitePanier());\n }", "title": "" }, { "docid": "0cbd3694b97868e0f799b92af7fe57ba", "score": "0.53460026", "text": "double getQuantity1();", "title": "" }, { "docid": "4195aff0a6498b739ddae7530f07d5df", "score": "0.53440595", "text": "public com.weizhu.proto.ProductclockProtos.ProductOrBuilder getProductOrBuilder(\n int index) {\n return product_.get(index);\n }", "title": "" }, { "docid": "4195aff0a6498b739ddae7530f07d5df", "score": "0.5344013", "text": "public com.weizhu.proto.ProductclockProtos.ProductOrBuilder getProductOrBuilder(\n int index) {\n return product_.get(index);\n }", "title": "" }, { "docid": "4195aff0a6498b739ddae7530f07d5df", "score": "0.5344013", "text": "public com.weizhu.proto.ProductclockProtos.ProductOrBuilder getProductOrBuilder(\n int index) {\n return product_.get(index);\n }", "title": "" }, { "docid": "41419c8c39ffead42d9fd11db1e77c5f", "score": "0.5343086", "text": "public void work(){\n\t\r\n\t\tProductFactory productFactory = new ProductFactory();\r\n\t\tProduct product2 = productFactory.createProduct();\r\n\t\tproductFactory.configureProduct(product2);\r\n\t}", "title": "" }, { "docid": "8301b06380c4ff00b90ff98bdacd1161", "score": "0.534142", "text": "public Product() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "20164fe29b9dbc4a05c10b8c47b28ad4", "score": "0.53351396", "text": "private void GenerateProducts() {\n Products product1 = new Products(\"Hot Dogs\", \"0-BH54234-001\");\n Products product2 = new Products(\"Hamburgers\", \"0-BH67483-001\");\n Products product3 = new Products(\"Bacon\", \"0-ZHQ12343-001\");\n\n productService.saveProduct(product1);\n productService.saveProduct(product2);\n productService.saveProduct(product3);\n }", "title": "" }, { "docid": "d330b987841caded64a08a344c1d8ffe", "score": "0.53350437", "text": "public void incNProdutos(){\n totProdutos++;\n }", "title": "" }, { "docid": "271dc9866e09d97d6bf78191bb84eac4", "score": "0.53327435", "text": "public com.weizhu.proto.ProductclockProtos.Product.Builder addProductBuilder() {\n return getProductFieldBuilder().addBuilder(\n com.weizhu.proto.ProductclockProtos.Product.getDefaultInstance());\n }", "title": "" } ]
cf72b346fd0bf08d18f2623583ed015f
overloaded spawn method for each spawnable class
[ { "docid": "eba10ffa72a7794fcda3ae061e86c9f8", "score": "0.0", "text": "public static void spawn(Player player, double x, double y){\r\n\t\tNode playerModel = PlayerModel.playerNode(player,x,y);\r\n\t\tControls.initialize(player,playerModel, window);\r\n\t\tControls.setPlayerControls();\r\n\t\tPlatform.runLater(() -> addNode(player,playerModel));\r\n\t\t//addNode(player,playerModel);\r\n\t}", "title": "" } ]
[ { "docid": "90fe9f85376d007b25e0c0aae9f0888f", "score": "0.8079229", "text": "@Override\r\n\tpublic void spawn() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f7db86e48fa6fe70d74022aa6274f50e", "score": "0.78801596", "text": "public T spawn();", "title": "" }, { "docid": "66f40318c0f5e7097731e34b61e670c2", "score": "0.73383427", "text": "public interface Spawnable<T> {\n \n /**\n * Spawns another instance of the same class.\n * @return \n */\n public T spawn();\n}", "title": "" }, { "docid": "bfdcc9442b24d95994b6ec8501c93e78", "score": "0.7245583", "text": "public interface Spawnable {\n void spawn();\n}", "title": "" }, { "docid": "b589075af09331d80495c043013196ec", "score": "0.7017663", "text": "public void spawnThief() {\n }", "title": "" }, { "docid": "bf49eb8b383ec388973e7611f405c91a", "score": "0.6835425", "text": "@Override\n\tpublic void spawn(STPlayer player) {\n\t\t\n\t}", "title": "" }, { "docid": "16ee4ee7f316ac726a1e60e8287a9cdb", "score": "0.66120535", "text": "@Override\n\tpublic void spawn()\n\t{\n\t\tint ind = (int) (Math.random() * entityTypes.size());\n\t\tEntity e = entityTypes.get(ind);\n\t\tTile tile = getGrid().randEmptyTile();\n\t\tif (tile != null)\n\t\t{\n\t\t\tJewel j = new Jewel(e.getTexture(), tile, getGrid(), ((Jewel) e).getValue());\n\t\t\tadd(j);\n\t\t\tgetGrid().setEntity(tile.getIndX(), tile.getIndY(), j);\n\t\t}\n\t}", "title": "" }, { "docid": "49b32a936ffe03a1f753f315ae311a26", "score": "0.6584529", "text": "abstract Particle spawn();", "title": "" }, { "docid": "1f4c9f1be3b1a4db0586ff1f39d78b94", "score": "0.65650994", "text": "private void spawnStandardCow() {\r\n\t\tPoint spawnpoint = getSpawnPoint();\r\n\t\tif(spawnpoint != null) {\r\n\t\t\tsynchronized(actors) {\r\n\t\t\t\tactors.add(new StandardCow(spawnpoint.x, spawnpoint.y, this));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "41720090028c619bb871ffaf2f375590", "score": "0.6543904", "text": "public void spawn() {\n this.alive = true;\n }", "title": "" }, { "docid": "3d44edaa7b02faacf05055141afdd728", "score": "0.6474507", "text": "List<Creature> spawn();", "title": "" }, { "docid": "916939f5605ccc3e1fe68b47f83eb443", "score": "0.64545035", "text": "void spawn(int mob, int ammount){\n\t\t\n\t}", "title": "" }, { "docid": "9355b94178af02a5a5fa7a21339ff90f", "score": "0.6399358", "text": "@Override\n\tpublic <T extends Entity> T spawn(Location arg0, Class<T> arg1) throws IllegalArgumentException\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "911c9d8086d50213573e5e488e5dc9dc", "score": "0.63464594", "text": "private void spawn() {\r\n\t\t// TODO Make an ACTUAL LEVEL!\r\n\t\t\r\n\t\tif (frameNum == 120)structureList.add(new ChaseBot(Screen.width/2,0));\r\n\t\t\r\n\t\tif (frameNum % 15 == 0 && ((frameNum > 240 && frameNum < 360)||(frameNum > 480 && frameNum < 720))) structureList.add(new ChaseBot(Screen.width/2,0));\r\n\t\t\r\n\t\tif (frameNum == 1000 || frameNum == 1400) {\r\n\t\t\tfor (int i = 0; i <= 4; i++){\r\n\t\t\t\tstructureList.add(new ChaseBot(Screen.width/4*i,0));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (frameNum == 1200 || frameNum == 1600) {\r\n\t\t\tfor (int i = 0; i <= 4; i++){\r\n\t\t\t\tstructureList.add(new Meteor(Screen.width/4*i, 2));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (frameNum == 2000){\r\n\t\t\tstructureList.add(new MiniBoss());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\tif (frameNum % (Game.FPS*2) == 0){\r\n\t\t\tMeteor heroCore = new Meteor(Math.random()*this.getWidth(), 2);\r\n\t\t\tOrbitCore orbitCoreOne = new OrbitCore(heroCore,100,1);\r\n\t\t\tOrbitCore orbitCoreTwo = new OrbitCore(orbitCoreOne,75,1);\r\n\t\t\theroCore.setHealth(10);\r\n\t\t\torbitCoreOne.setHealth(5);\r\n\t\t\torbitCoreTwo.setHealth(5);structureList.add(heroCore);\r\n\t\t\tstructureList.add(orbitCoreOne);\r\n\t\t\tstructureList.add(orbitCoreTwo);\r\n\t\t\tstructureList.add(new Enemy2(0,0));\r\n\t\t}\r\n\t\t*/\r\n\t}", "title": "" }, { "docid": "8cf07bf203141ab03de23572e0f881cc", "score": "0.63286924", "text": "public interface Spawner {\n public Object spawnNewCreature();\n}", "title": "" }, { "docid": "ab7a9782c3e11e5f19497f08bb3bc9d4", "score": "0.62362784", "text": "private void spawnIntelligentCow() {\r\n\t\tPoint spawnpoint = getSpawnPoint();\r\n\t\tif(spawnpoint != null) {\r\n\t\t\tsynchronized(actors) {\r\n\t\t\t\tactors.add(new IntelligentCow(spawnpoint.x, spawnpoint.y, this));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c6fd9b3c2a72bc92a1dabfa7d26b1613", "score": "0.61434144", "text": "public void spawnPoint(int x, int y) {\n\n }", "title": "" }, { "docid": "fc74e318e9fea6ac16e8b7dc0c37b27a", "score": "0.6106717", "text": "void spawnShield();", "title": "" }, { "docid": "e00662c36813b2574e9648b77c32f322", "score": "0.6104251", "text": "default boolean spawnEntity()\n {\n //TODO consider making a method to create the ticking entity (or system) so we can have a different version per explosive\n return true;\n }", "title": "" }, { "docid": "13266eb6cee879d9203dd50c27b7ef40", "score": "0.60845315", "text": "protected void spawnPlayers(){\n\t\tCollections.shuffle(charSpawners);\n\t\tint i;\n\t\tfor(i=0; i<players.size(); i++){\n\t\t\tif(i >= charSpawners.size()){break;}\n\t\t\tCharacterSpawner spawner = charSpawners.get(i);\n\t\t\tPlayer p = players.get(i);\n\t\t\tif (p.getCurrentRoom() != null){\n\t\t\t\tp.getCurrentRoom().removePlayer(p);\n\t\t\t}\n\t\t\tp.setCurrentRoom(spawner.getRoom(), spawner.getX(), spawner.getY());\n\t\t\tspawner.getRoom().addPlayer(p);\n\t\t}\n\t\t\n\t\t//Fill the remaining spawns with random npcs\n\t\tfor (int j = i; j < charSpawners.size(); j++){\n\t\t\tCharacterSpawner spawner = charSpawners.get(j);\n\t\t\tdouble roll = Math.random();\n\t\t\tRoom room = spawner.getRoom();\n\t\t\tint x = spawner.getX();\n\t\t\tint y = spawner.getY();\n\t\t\t\n\t\t\tNonPlayer npc = null;\n\t\t\t\n\t\t\tif (roll-0.05 < 0){npc = new GhostNPC(room, x, y);}\n\t\t\telse {\n\t\t\t\tnpc = new NonPlayer(room, x, y, new WanderingMerchantStrategy());\n\t\t\t\tnpc.setStrategy(NonPlayer.Events.COMBAT, new ChaseCombatStrategy(100));\n\t\t\t\tnpc.setStrategy(NonPlayer.Events.DEATH, new RespawnStrategy(5000));\n\t\t\t}\n\t\t\t\n\t\t\troom.addNPC(npc);\n\t\t}\n\t\t\n\t\t//Special spawn cases\n\t\t//Ghosts in server room\n\t\tRoom server = this.getRoom(\"Server Room\");\n\t\tif (server != null){\n\t\t\tfor (int k = 0; k < 1; k++){\n\t\t\t\tint x = (int)(Math.random() * 24+1);\n\t\t\t\tint y = (int)(Math.random() * 10+1);\n\t\t\t\t\n\t\t\t\tserver.addNPC(new GhostNPC(server, x*24, y*24));\n\t\t\t}\n\t\t}\n\t\t\n\t\tRoom shed = this.getRoom(\"Courtyard Shed\");\n\t\tif (shed != null){\n\t\t\tshed.addNPC(new GhostNPC(shed, 5*24, 5*24));\n\t\t}\n\t}", "title": "" }, { "docid": "87943da07a6b4fefcbe897b7082bad72", "score": "0.6016627", "text": "public void spawnPed(){\n sim.spawnPed();\n }", "title": "" }, { "docid": "213c3d46cfc20cb934d6e9354957aaf3", "score": "0.5999619", "text": "public SpawnManager(Handler handler)\n {\n this.handler = handler;\n waiting = false;\n spawnList = new ArrayList<>();\n spawnSlime = new Spawn(handler,180, new Spawnable(){\n @Override\n public void canSpawn()\n { \n ArrayList<Rectangle> rs = new ArrayList<>();\n boolean canMove;\n int maxLevel = 1;\n int spawnDistance = 20;\n Point p = null;\n Point newP = null;\n if(Slime.slimeCount < Math.min(Player.level, 10))\n {\n do\n {\n canMove = true;\n p = Util.randomLocation(handler.getWorld().getWidth(),handler.getWorld().getHeight());\n int px = p.x;\n int py = p.y;\n if(!handler.getWorld().getTile(px,py).isSolid())\n {\n newP = new Point(p.x * Tile.DEFAULT_TILE_WIDTH, p.y * Tile.DEFAULT_TILE_HEIGHT);\n int npx = newP.x;\n int npy = newP.y;\n for(Entity e : handler.getEntityManager().getEntities())\n {\n if(e instanceof Player)\n {\n for(Entity en : handler.getEntityManager().getEntities())\n {\n if(en instanceof Player)\n {\n Player pl = (Player)en;\n if(pl.level > maxLevel)\n maxLevel = pl.level;\n if(pl.playerSpace.contains(p))\n {\n canMove = false;\n break;\n }\n }\n } \n\n //Player pl = (Player)e;\n //if(pl.level > maxLevel)\n // maxLevel = pl.level;\n /*\n float xMin = Math.max(e.x - (spawnDistance * Tile.DEFAULT_TILE_WIDTH),0);\n float xMax = Math.min(e.x + (spawnDistance * Tile.DEFAULT_TILE_WIDTH), handler.getWorld().getWidth() * Tile.DEFAULT_TILE_WIDTH);\n float yMin = Math.min(e.y + (spawnDistance * Tile.DEFAULT_TILE_HEIGHT),handler.getWorld().getWidth() * Tile.DEFAULT_TILE_HEIGHT);\n float yMax = Math.max(e.y - (spawnDistance * Tile.DEFAULT_TILE_HEIGHT),0);\n rs.add(new Rectangle((int)xMin,(int)yMin,(int)(xMax - xMin),(int)(yMax - yMin)));\n */\n }\n if(!canMove)\n break;\n }\n for(Rectangle r : rs)\n {\n if(r.contains(newP))\n {\n System.out.println(\"Point: (\" + newP.x + \",\" + newP.y + \") is not in \" + r);\n System.out.println(\"Can't move\");\n canMove = false;\n }\n }\n }\n }while(!canMove); \n Random r = new Random();\n int widHei = Math.min(r.nextInt(maxLevel * 16) + 32, 320);\n float hp = widHei / 32f + (maxLevel * .3f);\n float atk = widHei / 32f + (maxLevel * .03f);\n float spd = Math.min((320f/32) - ((float)widHei / 32) + (maxLevel * .3f), maxLevel * .5f + 1); \n //Slime slimeS = new Slime(newP.x,newP.y,widHei,widHei,new Rectangle(0,0,widHei,widHei),hp,atk,spd,handler);\n //handler.getEntityManager().addEntity(slimeS);\n //handler.getEntityManager().addEntity(new Slime(newP.x,newP.y,widHei,widHei,new Rectangle(0,0,widHei,widHei),hp,atk,spd,handler).init());\n //slimeS.init();\n\n try\n {\n handler.getEntityManager().addEntity(new Slime(newP.x,newP.y,widHei,widHei,new Rectangle(0,0,widHei,widHei),hp,atk,spd,handler));\n Slime.slimeCount++;\n }\n catch(NullPointerException e)\n {\n System.out.println(\"Null Slime\");\n } \n }\n } \n });\n\n spawnGhost = new Spawn(/*this,*/handler,180, new Spawnable(){\n @Override\n public void canSpawn()\n { \n if(Player.level > 2)\n {\n ArrayList<Rectangle> rs = new ArrayList<>();\n boolean canMove;\n int maxLevel = 1;\n int spawnDistance = 20;\n Point p = null;\n Point newP = null;\n if(Ghost.ghostCount < Math.min(Player.level / 3, 5))\n {\n do\n {\n canMove = true;\n p = Util.randomLocation(handler.getWorld().getWidth(),handler.getWorld().getHeight());\n int px = p.x;\n int py = p.y;\n if(!handler.getWorld().getTile(px,py).isSolid())\n {\n newP = new Point(p.x * Tile.DEFAULT_TILE_WIDTH, p.y * Tile.DEFAULT_TILE_HEIGHT);\n int npx = newP.x;\n int npy = newP.y;\n for(Entity e : handler.getEntityManager().getEntities())\n {\n if(e instanceof Player)\n {\n for(Entity en : handler.getEntityManager().getEntities())\n {\n if(en instanceof Player)\n {\n Player pl = (Player)en;\n if(pl.level > maxLevel)\n maxLevel = pl.level;\n if(pl.playerSpace.contains(p))\n {\n canMove = false;\n break;\n }\n }\n } \n /*\n Player pl = (Player)e;\n if(pl.level > maxLevel)\n maxLevel = pl.level;\n float xMin = Math.max(e.x - (spawnDistance * Tile.DEFAULT_TILE_WIDTH),0);\n float xMax = Math.min(e.x + (spawnDistance * Tile.DEFAULT_TILE_WIDTH), handler.getWorld().getWidth() * Tile.DEFAULT_TILE_WIDTH);\n float yMin = Math.min(e.y + (spawnDistance * Tile.DEFAULT_TILE_HEIGHT),handler.getWorld().getWidth() * Tile.DEFAULT_TILE_HEIGHT);\n float yMax = Math.max(e.y - (spawnDistance * Tile.DEFAULT_TILE_HEIGHT),0);\n rs.add(new Rectangle((int)xMin,(int)yMin,(int)(xMax - xMin),(int)(yMax - yMin)));\n */\n }\n }\n for(Rectangle r : rs)\n {\n if(r.contains(newP))\n {\n //System.out.println(\"Point: (\" + newP.x + \",\" + newP.y + \") is not in \" + r);\n //System.out.println(\"Can't move\");\n canMove = false;\n }\n }\n }\n }while(!canMove); \n Random r = new Random();\n int widHei = Math.min(r.nextInt(maxLevel * 16) + 32, 160);\n float hp = widHei / 32f + (maxLevel * .1f);\n float atk = widHei / 32f + (maxLevel * .05f);\n float spd = Math.min((320f/32) - ((float)widHei / 32) + (maxLevel * .4f), maxLevel * .6f);\n //Ghost ghostS = new Ghost(newP.x,newP.y,widHei,widHei,new Rectangle(0,0,widHei,widHei),hp,atk,spd,handler);\n //handler.getEntityManager().addEntity(ghostS);\n //ghostS.init();\n\n try\n {\n handler.getEntityManager().addEntity(new Ghost(newP.x,newP.y,widHei,widHei,new Rectangle(0,0,widHei,widHei),hp,atk,spd,handler));\n Ghost.ghostCount++;\n }\n catch(NullPointerException e)\n {\n System.out.println(\"Null Ghost\");\n } \n }\n }\n } \n });\n spawnList.add(spawnSlime);\n spawnList.add(spawnGhost);\n }", "title": "" }, { "docid": "9bd3b856c761a5b5b2f99083c8e20469", "score": "0.59821886", "text": "@Override\n\tpublic Entity spawnEntity(Location arg0, EntityType arg1)\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "814d2c2c60ba86407a0ace19c52c605c", "score": "0.59695286", "text": "private SpawnJvm() { }", "title": "" }, { "docid": "cb27fec267215d1941bd4473bd3b89c5", "score": "0.5889923", "text": "@Override\n public void spawn() {\n isActive = true;\n Random random = new Random();\n\n setX(150 + random.nextInt(MooseGame.WIDTH - 300));\n setY(-200);\n\n setWidth(50);\n setHeight(100);\n\n setVx(0);\n setVy(random.nextInt(3) + 11);\n }", "title": "" }, { "docid": "027faaa73099e22825ee401d1c462e07", "score": "0.58200634", "text": "void spawn() {\n // Reposition\n final Location eye = this.player.getEyeLocation().clone();\n final Location location = eye.add(eye.getDirection().normalize().multiply(23));\n\n final PacketContainer packet = new PacketContainer(PacketType.Play.Server.SPAWN_ENTITY_LIVING);\n final StructureModifier<Object> modifier = packet.getModifier();\n modifier.write(0, FAKE_ENTITY_ID); // entity id\n modifier.write(1, (byte) EntityType.WITHER.getTypeId());\n modifier.write(2, location.getBlockX() * 32);\n modifier.write(3, location.getBlockY() * 32);\n modifier.write(4, location.getBlockZ() * 32);\n packet.getDataWatcherModifier().write(0, this.asDataWatcher());\n\n try {\n ProtocolLibrary.getProtocolManager().sendServerPacket(this.player, packet, false);\n } catch (InvocationTargetException e) {\n throw new RuntimeException(e);\n }\n\n this.sentToClient = true;\n this.manager.legacyUpdateSubscribers.add(this);\n }", "title": "" }, { "docid": "a1e5414ee7ad7acdde485f27f228a7dd", "score": "0.5776763", "text": "@Override\n\tpublic void spawn(int minX, int minY, int maxX, int maxY) {\n\t\tint x, y;\n\n\t\tx = (minX + maxX) / 2;\n\t\ty = (minY + maxY) / 2;\n\t\t\n\t\tpos = new Vector2(x, y);\n\t\t\n\t\tsetPosition(x * 32, y * 32);\n\t}", "title": "" }, { "docid": "7e78deeb3ccadeeecdcc267f83a429bc", "score": "0.576528", "text": "public CommandGroupExamples(DriveTrainSubsystem drive, /*AhrsSubsystem ahrs,*/ ShooterSubsystem shooter, CameraSubsystem camera, NetworkTableEntry max, NetworkTableEntry min, ShooterTest ShooterT) {\naddCommands( \n new avance(drive).withTimeout(3),\nnew tourne(drive).withTimeout(3), \nparallel(new avance(drive).withTimeout(3), new ShootingTestComm(ShooterT)).withTimeout(3));\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // super(\n /*new AutonomousCommands(drive, ahrs, 0),\n new ShootingCommand(shooter, drive, camera)\n */\n /* new avance(drive).withTimeout(3),\n new tourne(drive).withTimeout(3)\n*/\n \n \n// );\n }", "title": "" }, { "docid": "167587cbcf2bddd51010172f290fc469", "score": "0.57192004", "text": "public void tick(Region region, Random random) {\n if (spawnCoolDown <= 0 && creatures.size() > 0) {\n\n boolean sucessful = false;\n Object[] keys = creatures.keySet().toArray();\n ArrayList<Class> attempted = new ArrayList<Class>();\n do {\n Class<?> type;\n do {\n type = (Class) keys[random.nextInt(keys.length)];\n if (attempted.size() >= creatures.size()) {\n spawnCoolDown = spawnTime;\n return;\n }\n } while (attempted.contains(type));\n attempted.add(type);\n ArrayList<Entity> inArea = region.getEntitiesIntersecting(spawnArea);\n int typeInArea = 0;\n for (Entity e : inArea) {\n if (type.isInstance(e)) {\n typeInArea++;\n }\n }\n if (typeInArea >= creatures.get(type)) {\n continue;\n }\n try {\n Entity entity = (Entity) type.getDeclaredConstructor(new Class[]{int.class, int.class, int.class, Random.class}).newInstance(spawnArea.x / Tile.WIDTH, spawnArea.y / Tile.HEIGHT, region.getTopLayerAt(spawnArea.x / Tile.WIDTH, spawnArea.y / Tile.HEIGHT), random);\n int x, y, z, attempts = 0;\n do {\n x = (spawnArea.x / Tile.WIDTH) + (random.nextInt(spawnArea.width / Tile.WIDTH));\n y = (spawnArea.y / Tile.HEIGHT) + (random.nextInt(spawnArea.height / Tile.HEIGHT));\n z = region.getTopLayerAt(x, y);\n attempts++;\n }\n while (attempts <= 10 && !validSpawnLocationFor(region, entity, x, y, z));\n if (attempts <= 10) {\n entity.setLocation(x, y, z);\n region.queueAdditionOfEntity(entity);\n sucessful = true;\n }\n\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n } while (!sucessful);\n spawnCoolDown = spawnTime;\n } else {\n spawnCoolDown--;\n }\n }", "title": "" }, { "docid": "0609811caee37f157dcb9c3b414a932d", "score": "0.5713234", "text": "@Override\r\n\tpublic IPacket<?> createSpawnPacket() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0609811caee37f157dcb9c3b414a932d", "score": "0.5713234", "text": "@Override\r\n\tpublic IPacket<?> createSpawnPacket() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "9f297faae68d9877ec93ee8b935325e4", "score": "0.5712709", "text": "public void createObjects()\n {\n ship = new SpaceShip(context, mapWidth / 2, mapHeight / 2);\n\n // create the border around the level\n innerBorder = new Border(context, mapWidth, mapHeight, 0);\n outerBorder = new Border(context, mapWidth + 20, mapHeight + 20, 10);\n\n // create background grid\n grid = new Grid(context, mapWidth, mapHeight, 0);\n\n // create some bullets to be fired\n for (int i = 0; i < numBullets; i++)\n {\n bullets[i] = new Bullet(context, ship.getWorldLocation().x, ship.getWorldLocation().y);\n }\n\n // Determine the number of asteroids based on the level\n numEnemies = baseNumEnemies + 2 * levelNumber;\n\n // Set how many asteroids need to be destroyed by player\n numEnemiesRemaining = numEnemies;\n\n Random random = new Random();\n\n // Spawn the enemies\n for (int i = 0; i < numEnemies; i++)\n {\n int type = random.nextInt() % 4;\n\n // square enemy\n if (type == 0)\n {\n enemies[i] = new Square(context, levelNumber, mapWidth, mapHeight);\n\n }\n\n // wanderer enemy\n else if (type == 1)\n {\n enemies[i] = new Wanderer(context, levelNumber, mapWidth, mapHeight);\n }\n\n // diamond enemy\n else if (type == 2)\n {\n enemies[i] = new Diamond(context, levelNumber, mapWidth, mapHeight);\n }\n\n // box enemy\n else\n {\n enemies[i] = new Box(context, levelNumber, mapWidth, mapHeight);\n }\n\n multipliers[i] = new Multiplier(context);\n }\n }", "title": "" }, { "docid": "2d60902eee2c512839c0d000bae3dab2", "score": "0.5686471", "text": "public void spawnI() {\n\t\t// TODO uses off sets some how\n\t\t// Block[] blocks = new Block[4];\n\t\t// for(int[] off: OFFSETI ){\n\t\t// turnOn(off[0], off[1] + width/2);\n\t\t// }\n\t\t// for(Block b: blocks){\n\t\t//\n\t\t// }\n\t\tcurrentBrick = new Brick('I', toggleAndReturn(0, width / 2 + 1), toggleAndReturn(0, width / 2),\n\t\t\t\ttoggleAndReturn(0, width / 2 - 1), toggleAndReturn(0, width / 2 - 2));\n\t}", "title": "" }, { "docid": "eaf1f026f9c0c02c48d7c7043f77f81a", "score": "0.5682788", "text": "protected boolean didSpawn() {\n return false;\n }", "title": "" }, { "docid": "d36ecbb2e14b68fa647c5e8fdf57c132", "score": "0.56779045", "text": "protected abstract void callCreateShips(Level level, long totalTime) throws InstantiationException, IllegalAccessException;", "title": "" }, { "docid": "21a13b6a04b5831aef20cd87c53ea4a1", "score": "0.56557566", "text": "public void spawnCar(){\n sim.spawnCar(false);\n }", "title": "" }, { "docid": "4ad3f518cbc52aacc5b2202f26159c59", "score": "0.5654547", "text": "private void runSpawnTimer() {\n if (spawnTimer % 80 == 0) { // the closer to 1, the faster the actors will spawn\n Log log1 = new Log(true);\n //addObject(log1, tagLog1.getX(), tagLog1.getY());\n addObject(log1, tagCar3.getX(), tagCar3.getY() - 75);\n }\n // Spawning logs for log row2\n\n if (spawnTimer % 90 == 0) {\n Log log2 = new Log(false);\n addObject(log2, tagLog2.getX(), tagLog2.getY());\n }\n\n // Spawning cars for car row1\n if (spawnTimer % spawnRateCar1 == 0) {\n Car actualCar1 = new Car(20);\n addObject(actualCar1, tagCar1.getX(), tagCar1.getY());\n\n }\n\n //// Spawning cars for car row2\n if (spawnTimer % spawnRateCar2 == 0) {\n Car actualCar2 = new Car(195);\n addObject(actualCar2, tagCar2.getX(), tagCar2.getY());\n }\n\n // Spawning cars for car row3\n if (spawnTimer % spawnRateCar3 == 0) {\n Car actualCar3 = new Car(20);\n addObject(actualCar3, tagCar3.getX(), tagCar3.getY());\n\n // playing car honk music\n if (carHonk.isPlaying() == false) {\n carHonk.play();\n }\n }\n\n spawnTimer++;\n\n }", "title": "" }, { "docid": "e8113328d6c8693af010efa953342613", "score": "0.5648413", "text": "IEntity spawnClone(int x, int y, int z, int tab, String name, boolean ignoreProtection);", "title": "" }, { "docid": "1027c6723216dd11d8f0248f6bc29619", "score": "0.56271654", "text": "public void onSpawn(IPokemob mob);", "title": "" }, { "docid": "c3217d52597ce52fe3e00923035c40b5", "score": "0.5624816", "text": "public void act(){\n if(fSpawnTimer.millisElapsed() > Food.spawnTime){\n //then spawn in another food\n Food temp = new Food();\n //adding object to the world\n addObject(temp,Greenfoot.getRandomNumber(getWidth()), Greenfoot.getRandomNumber(getHeight()));\n fSpawnTimer.mark();\n numFood++;\n }\n if(fSpawnTimer.millisElapsed() > SpiderWeb.spawnTime){\n //then spawn in another food\n SpiderWeb temp = new SpiderWeb();\n //adding object to the world\n addObject(temp,spider.getX(), spider.getY());\n fSpawnTimer.mark();\n }\n if(antSpawnT.millisElapsed()>ant.spawnTime){\n Ant temp = new Ant();\n addObject(temp,getWidth()/2,getHeight()/2);\n //Colony.loseNrg((ant.Nrg+ant.health)/2);\n antSpawnT.mark();\n numAnts++;\n }\n showText(\"# of Ants spawn total \"+numAnts,getWidth()/5,getHeight()/20);\n showText(\"# of Food total \"+numFood,getWidth()/5*3,getHeight()/20);\n }", "title": "" }, { "docid": "a4db730b8f9e06ec6c04de72c75d8396", "score": "0.56131685", "text": "public interface Spawner {\n\n GameParticipant getInstance();\n float getRatio();\n}", "title": "" }, { "docid": "2740c6b67acc47f45f71334b9fa49e0b", "score": "0.560003", "text": "public void generateGameInstance() {\n // If player is on an enemy, lose health.\n if (playeronEnemy()) {\n this.player.loseHealth(10);\n }\n\n // First move all of the enemies at once.\n enemiesMove();\n\n // Decreases the player's health every few turns.\n if (this.timeElapse % 2 == 0) {\n this.player.loseHealth(1);\n }\n\n // If player is on an enemy, lose health.\n if (playeronEnemy()) {\n this.player.loseHealth(15);\n }\n\n // Increase the time elapsed in the current game instance.\n this.timeElapse += 1;\n\n // If player is on top of a berry, the player eats it and gains health.\n if (playeronBerry()) {\n this.player.gainHealth(10);\n }\n\n // If player health is 0, lose game.\n if (player.getHealth() == 0) {\n this.gameLost = true;\n }\n\n // Reverts the world to the original world first.\n getWorld().revertOriginalWorld();\n\n // ADD THE EXITS AND OTHER ITEMS FIRST, THEN ADD THE PLAYER.\n\n // Add the exit, depending on if locked or unlocked.\n if (this.exit != null) {\n if (exit.getLockedStatus()) {\n getWorld().setTile(exit.getPos(),\n Tileset.LOCKED_DOORS[getWorld().getTileSet()]);\n } else {\n getWorld().setTile(exit.getPos(),\n Tileset.UNLOCKED_DOORS[getWorld().getTileSet()]);\n }\n }\n\n // Add berries.\n if (this.berries != null) {\n for (Berry b : berries) {\n getWorld().setTile(b.getPos(), Tileset.BERRY);\n }\n }\n\n // Add enemies.\n if (this.enemies != null) {\n for (Enemy e : this.enemies) {\n getWorld().setTile(e.getPos(), Tileset.ENEMIES[getWorld().getTileSet()]);\n }\n }\n\n // Add player.\n if (this.player != null) {\n getWorld().setTile(player.getPos(), Tileset.PLAYER);\n }\n\n }", "title": "" }, { "docid": "45549c8fc6ee91ab8961d1d5c131af58", "score": "0.5583243", "text": "void spawnCage(Cage cage, Location location, int area);", "title": "" }, { "docid": "8b6129c1428545616a5d83f4e9ec0f94", "score": "0.55672747", "text": "private void spawnCars(){\n Vehicle car1 = new Volvo240();\n Vehicle car2 = new Saab95();\n Vehicle car3 = new Scania();\n\n car2.getPosition().setPosition(0,100);\n car3.getPosition().setPosition(0,200);\n\n cars.add(car1);\n cars.add(car2);\n cars.add(car3);\n }", "title": "" }, { "docid": "a3efd8d00416dcd2e5405804334a5577", "score": "0.5564081", "text": "public boolean spawnProjectile();", "title": "" }, { "docid": "b601de553c3a718c5d74d8d64aa14628", "score": "0.5550338", "text": "@NotNull\n public ParticleBuilder spawn() {\n if (this.location == null) {\n throw new IllegalStateException(\"Please specify location for this particle\");\n }\n if(receivers != null && !receivers.isEmpty()) {\n for (Player receiver : receivers) {\n receiver.spawnParticle(particle, location.getX(), location.getY(), location.getZ(), count, offsetX, offsetY, offsetZ, extra, data);\n }\n } else {\n location.getWorld().spawnParticle(particle, location.getX(), location.getY(), location.getZ(), count, offsetX, offsetY, offsetZ, extra, data, force);\n }\n return this;\n }", "title": "" }, { "docid": "99a6a00a74e6d7ecffc49d0d9982d35e", "score": "0.5545098", "text": "private void shoot(){\n // Gets the random Thread Id from the list of alive threads\n Thread target = GM.players.get(ThreadLocalRandom.current().nextInt(0, GM.players.size()));\n // Attempts to kill it\n //GM.registerShoot(new Thread[]{currentThread(), target});\n GM.shots.add(new Thread[]{currentThread(), target});\n }", "title": "" }, { "docid": "8fce90d47df5d0384b00df79e5ee1d5c", "score": "0.552086", "text": "private void respawn(){\n \t\tfor(Team team : teams){\n \t\t\tif(map.getAgent(team.getSpawnLocation()) == null && team.isActiveSpawnPoint()){\n \t\t\t\tAgent newAgent = team.addAgent();\n \t\t\t\tspawnedAgents.add(newAgent);\n \t\t\t}\n \t\t\telse{\n \t\t\t\tspawnedAgents.add(null);\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "6aa787d88bf0a66476bb0e9b969e76b5", "score": "0.55116946", "text": "public PacketSpawnObject(Entity en, ObjectType type) {\n\t\tthis(en, type, 0, 0, 0, 0);\n\t}", "title": "" }, { "docid": "4bdd1adc1872fcabd7e0c01667a84788", "score": "0.5511127", "text": "private void spawn() {\n WaterShield waterShield = new WaterShield((Peon) entity, lifetime);\n GameManager.get().getWorld().addEntity(waterShield);\n }", "title": "" }, { "docid": "1551630b6e06e4ab6c4048633af0768c", "score": "0.55088156", "text": "public static Process spawn(final String className, final String... args) throws IOException {\n return spawn(64 * 1025 * 1024L, className, args);\n }", "title": "" }, { "docid": "a4200ed665a26c43c5afb3b8a4869fdf", "score": "0.5501933", "text": "public Teleop() {\n\t\taddParallel(new Drive());\n\t\taddParallel(new ManipulatePlow());\n\t\taddParallel(new ManipulateWinch());\n\t}", "title": "" }, { "docid": "903fcaffb387ff157c7b47caed076de3", "score": "0.54974496", "text": "protected abstract Object createNewThing();", "title": "" }, { "docid": "d79cce7f33b879d23c545b6e86982023", "score": "0.549108", "text": "public abstract Tir shoot();", "title": "" }, { "docid": "bde8ccaa9a455429a7d4548d88778856", "score": "0.54877555", "text": "@Override\n\tpublic void spawn(int minX, int minY, int maxX, int maxY) {\n\t\tRandom random = new Random();\n\t\tint x, y;\n\t\tdo {\n\t\t\tx = minX + random.nextInt(maxX - minX);\n\t\t\ty = minY + random.nextInt(maxY - minY);\n\t\t\tpos = new Vector2(x, y);\n\t\t} while(!MapManager.isCellMoveableFor((int) pos.x, (int) pos.y, (int) getWidth(), (int) getHeight(), this));\n\t\tsetPosition(x * 32, y * 32);\n\t}", "title": "" }, { "docid": "17e09f5825ba0bf94b686c9c6b88b64f", "score": "0.54790914", "text": "public void spawn() {\r\n FMLClientHandler.instance().getClient().effectRenderer.addEffect(this);\r\n }", "title": "" }, { "docid": "ebd0287848dde7617257bcb96befdc34", "score": "0.5474563", "text": "void spawnPlayerInLobby(EntityPlayer player);", "title": "" }, { "docid": "c59544395891e10f0b237694857a22d8", "score": "0.5446885", "text": "public void run(){\n\t\t\t\t((net.minecraft.server.v1_11_R1.World) w).addEntity(t_, CreatureSpawnEvent.SpawnReason.CUSTOM);\n\t\t\t\tt_.setColor(EnumColor.fromColorIndex(color));\n\t\t\t\tt_.setGoalTarget(null);\n\t\t\t}", "title": "" }, { "docid": "474a68aad8a4716066ec696f87e07189", "score": "0.54465896", "text": "ILoBlock spawnBlock(int n);", "title": "" }, { "docid": "25b32f55cfb67f2e7a5de8a751cd6121", "score": "0.54368824", "text": "@Override\n public void spawn(PointF location) {\n this.location = location;\n\n updateHitBox();\n }", "title": "" }, { "docid": "ac6f7a49cd2c4bf7c5f5230adb070bf8", "score": "0.54148066", "text": "public AutoNineBall(Base b, Intake i, Shooter s) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n super(\n new ParallelCommandGroup(\n new BaseHighGearShift(b),\n new TurnTurret(s, -70)\n ),\n new DeployIntake(i, false),\n new ShootingSequence(s, i, 5),\n new ParallelRaceGroup(\n new DriveStraight(b, -6, 0, 0.65), \n new ResetTurret(s)), \n new TimeKillCommand(\n new TurnBasePID(b, -90), 1.2\n ),\n new ParallelRaceGroup(new AutoIntake(i, s, b),\n new SequentialCommandGroup(\n new DriveStraight(b, 14, -90, 0.45),\n new DriveStraight(b, -15.5, -102, 0.65))),\n // TEST\n // new ParallelRaceGroup(new AutoIntake(i, s, b),\n // new SequentialCommandGroup(\n // new DriveStraight(b, 14, 0, 0.45),\n // new DriveStraight(b, -14, -15, 0.65)))\n // TEST\n new ShootingSequence(s, i),\n new ResetTurret(s)\n );\n }", "title": "" }, { "docid": "be61860c47b4c3b3fae0fbd0003084b6", "score": "0.54010427", "text": "private void spawnBall()\n {\n Ball ball;\n // 1) Miramos si la pool de pelotas inactivas no está vacía para reutilizar una de ellas\n if(!pool.isEmpty())\n {\n ball = pool.getFirst(); pool.remove();\n ball.reset(0, spawnPosY);\n ball.setSpeed(speed);\n }\n // Si no hubiera, entonces simplemente creamos una nueva\n else\n ball = new Ball(0, spawnPosY, speed, Assets.balls, g, 2, 10);\n\n // 2) Creamos la nueva pelota con el color que le toque\n newBall(ball);\n }", "title": "" }, { "docid": "f6335fbd8568bce3fd6700baa31fed27", "score": "0.538842", "text": "void removeAllSpawned();", "title": "" }, { "docid": "6643be0765d025f7fd74cee57bed2cf7", "score": "0.53846467", "text": "private void spawnPlayer() {\n Position startingPos = world.getRandomPositionInRoom();\n this.player = new Player(startingPos, this.playerStartingHealth,\n this.playerMaxHealth);\n }", "title": "" }, { "docid": "4174fe171f02826a032adb0012ebd915", "score": "0.53736854", "text": "public void spawn(ClientHandler actual, Player player,int powerUpPosition) {\n if(powerUpPosition<player.getPowerUps().size() && powerUpPosition>=0) {\n PowerUp powerUp = player.getPowerUps().get(powerUpPosition);\n\n try {\n player.spawn(powerUp);\n getNicknameList().get(actual.getName()).setState(ClientInfo.State.GAME);\n } catch (NotFoundException e) {\n sendString(\"SpawnPoint not found\", actual);\n }\n updateBackground(this.match);\n\n if(!actual.isFirstSpawn()) {\n actual.setYourTurn(false);\n }\n else {\n actual.setFirstSpawn(false);\n }\n\n if(actual.isYourTurn()){\n lifeCycle(actual);\n }\n for (ClientInfo clientInfo : getNicknameList().values()){\n if(clientInfo.clientHandler.isYourTurn()){\n return;\n }\n }\n if(respawning) {\n nextTurn();\n respawning= false;\n }\n\n }\n else {\n sendString(\">>>Invalid powerUp\", actual);\n sendString(\"SPW-Discard a power up for spawning,\" +powerUps(player), actual);\n }\n\n }", "title": "" }, { "docid": "1b20dfe463f26b9df67392c9559072c3", "score": "0.53706867", "text": "public void setSpawn(boolean spawn)\n {\n this.spawn = spawn;\n }", "title": "" }, { "docid": "91ee95ecc153deb9f589d066422cf3eb", "score": "0.53596324", "text": "@Override\n\tpublic void startGame() {\n\t\tRandom r = new Random();\n\t\t\n\t\tfor(Player pl : this.getPlayers()) {\n\t\t\t\n\t\t\tnew BukkitRunnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tLocation spawn = null;\n\t\t\t\t\tint t = r.nextInt(3);\n\t\t\t\t\tif(t == 0) {\n\t\t\t\t\t\tsetTeam(pl, BWTeam.RED);\n\t\t\t\t\t\tpl.sendMessage(ChatColor.YELLOW + \"You are on the \" + ChatColor.RED + \"RED TEAM\" + ChatColor.YELLOW + \"!\");\n\t\t\t\t\t\tspawn = new Location(pl.getWorld(),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.red.x\"),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.red.y\"),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.red.z\"));\n\t\t\t\t\t}\n\t\t\t\t\tif(t == 1) {\n\t\t\t\t\t\tsetTeam(pl, BWTeam.BLUE);\n\t\t\t\t\t\tpl.sendMessage(ChatColor.YELLOW + \"You are on the \" + ChatColor.BLUE + \"BLUE TEAM\" + ChatColor.YELLOW + \"!\");\n\t\t\t\t\t\tspawn = new Location(pl.getWorld(),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.blue.x\"),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.blue.y\"),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.blue.z\"));\n\t\t\t\t\t}\n\t\t\t\t\tif(t == 2) {\n\t\t\t\t\t\tsetTeam(pl, BWTeam.GREEN);\n\t\t\t\t\t\tpl.sendMessage(ChatColor.YELLOW + \"You are on the \" + ChatColor.GREEN + \"GREEN TEAM\" + ChatColor.YELLOW + \"!\");\n\t\t\t\t\t\tspawn = new Location(pl.getWorld(),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.green.x\"),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.green.y\"),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.green.z\"));\n\t\t\t\t\t}\n\t\t\t\t\tif(t == 3) {\n\t\t\t\t\t\tsetTeam(pl, BWTeam.YELLOW);\n\t\t\t\t\t\tpl.sendMessage(ChatColor.YELLOW + \"You are on the \" + ChatColor.YELLOW + \"YELLOW TEAM\" + ChatColor.YELLOW + \"!\");\n\t\t\t\t\t\tspawn = new Location(pl.getWorld(),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.yellow.x\"),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.yellow.y\"),\n\t\t\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(pl.getWorld().getName() + \".spawnpoints.yellow.z\"));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tpl.teleport(spawn);\n\t\t\t\t\tpl.setGameMode(GameMode.SURVIVAL);\n\t\t\t\t\tpl.setHealth(20.00);\n\t\t\t\t}\n\t\t\t}.runTask(Starter.getInstance());\n\t\t}\n\t\t\n\t\t// Lookup the config values for the map we are playing on, grap all the coords for the spawnpoints\n\t\t// and send players to their spawns\n\t\t\n\t\t// Make runnables for all the generators in the game, to drop the items that they are in-charge of\n\t\t\n\t\t\n\t\t// IRON ORE\n\t\tnew BukkitRunnable() {\n\t\t\tpublic void run() {\n\t\t\t\tif(!Starter.getGameCore().isGameRunning()) return;\n\t\t\t\tLocation BLUE_GEN = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.blue_team_gen.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.blue_team_gen.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.blue_team_gen.z\"));\n\t\t\t\tLocation RED_GEN = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.red_team_gen.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.red_team_gen.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.red_team_gen.z\"));\n\t\t\t\tLocation GREEN_GEN = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.green_team_gen.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.green_team_gen.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.green_team_gen.z\"));\n\t\t\t\tLocation YELLOW_GEN = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.yellow_team_gen.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.yellow_team_gen.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.yellow_team_gen.z\"));\n\t\t\t\t\n\t\t\t\tItemStack iron_ore = new ItemStack(Material.IRON_INGOT);\n\t\t\t\t\n\t\t\t\tnew BukkitRunnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetWorld().dropItemNaturally(BLUE_GEN, iron_ore);\n\t\t\t\t\t\tgetWorld().dropItemNaturally(RED_GEN, iron_ore);\n\t\t\t\t\t\tgetWorld().dropItemNaturally(GREEN_GEN, iron_ore);\n\t\t\t\t\t\tgetWorld().dropItemNaturally(YELLOW_GEN, iron_ore);\n\t\t\t\t\t}\n\t\t\t\t}.runTask(Starter.getInstance());\n\t\t\t}\n\t\t}.runTaskTimerAsynchronously(Starter.getInstance(), 0, 20 * 1);\n\t\t\n\t\t// GOLD ORE\n\t\tnew BukkitRunnable() {\n\t\t\tpublic void run() {\n\t\t\t\tif(!Starter.getGameCore().isGameRunning()) return;\n\t\t\t\tLocation BLUE_GEN = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.blue_team_gen.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.blue_team_gen.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.blue_team_gen.z\"));\n\t\t\t\tLocation RED_GEN = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.red_team_gen.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.red_team_gen.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.red_team_gen.z\"));\n\t\t\t\tLocation GREEN_GEN = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.green_team_gen.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.green_team_gen.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.green_team_gen.z\"));\n\t\t\t\tLocation YELLOW_GEN = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.yellow_team_gen.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.yellow_team_gen.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.yellow_team_gen.z\"));\n\t\t\t\t\n\t\t\t\tItemStack gold_ore = new ItemStack(Material.GOLD_INGOT);\n\n\t\t\t\t\n\t\t\t\tnew BukkitRunnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetWorld().dropItemNaturally(BLUE_GEN, gold_ore);\n\t\t\t\t\t\tgetWorld().dropItemNaturally(RED_GEN, gold_ore);\n\t\t\t\t\t\tgetWorld().dropItemNaturally(GREEN_GEN, gold_ore);\n\t\t\t\t\t\tgetWorld().dropItemNaturally(YELLOW_GEN, gold_ore);\n\t\t\t\t\t}\n\t\t\t\t}.runTask(Starter.getInstance());\n\t\t\t}\n\t\t}.runTaskTimerAsynchronously(Starter.getInstance(), 0, 20 * 10);\n\n\t\t// DIAMOND ORE\n\t\tnew BukkitRunnable() {\n\t\t\tpublic void run() {\n\t\t\t\tif(!Starter.getGameCore().isGameRunning()) return;\n\t\t\t\tLocation D_GEN_ONE = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_one.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_one.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_one.z\"));\n\t\t\t\tLocation D_GEN_TWO = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_two.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_two.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_two.z\"));\n\t\t\t\tLocation D_GEN_THREE = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_three.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_three.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_three.z\"));\n\t\t\t\tLocation D_GEN_FOUR = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_four.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_four.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.diamond_gen_four.z\"));\n\t\t\t\t\n\t\t\t\tItemStack diamond_ore = new ItemStack(Material.DIAMOND);\n\n\t\t\t\t\n\t\t\t\tnew BukkitRunnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetWorld().dropItemNaturally(D_GEN_ONE, diamond_ore);\n\t\t\t\t\t\tgetWorld().dropItemNaturally(D_GEN_TWO, diamond_ore);\n\t\t\t\t\t\tgetWorld().dropItemNaturally(D_GEN_THREE, diamond_ore);\n\t\t\t\t\t\tgetWorld().dropItemNaturally(D_GEN_FOUR, diamond_ore);\n\t\t\t\t\t}\n\t\t\t\t}.runTask(Starter.getInstance());\n\t\t\t}\n\t\t}.runTaskTimerAsynchronously(Starter.getInstance(), 0, 20 * 45);\n\t\t\n\t\t// EMERALD ORE\n\t\tnew BukkitRunnable() {\n\t\t\tpublic void run() {\n\t\t\t\tif(!Starter.getGameCore().isGameRunning()) return;\n\t\t\t\tLocation E_GEN_ONE = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.emerald_gen_one.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.emerald_gen_one.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.emerald_gen_one.z\"));\n\t\t\t\tLocation E_GEN_TWO = new Location(getWorld(),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.emerald_gen_two.x\"),\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.emerald_gen_two.y\") + 1,\n\t\t\t\t\t\tStarter.getInstance().getConfig().getDouble(getWorld().getName() + \".generators.emerald_gen_two.z\"));\n\t\t\t\t\n\t\t\t\tItemStack emerald_ore = new ItemStack(Material.EMERALD);\n\t\t\t\t\n\t\t\t\tnew BukkitRunnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetWorld().dropItemNaturally(E_GEN_ONE, emerald_ore);\n\t\t\t\t\t\tgetWorld().dropItemNaturally(E_GEN_TWO, emerald_ore);\n\t\t\t\t\t}\n\t\t\t\t}.runTask(Starter.getInstance());\n\t\t\t}\n\t\t}.runTaskTimerAsynchronously(Starter.getInstance(), 0, 20 * 60);\n\t}", "title": "" }, { "docid": "c499fa7fa5955a34650aa521af39e954", "score": "0.53440106", "text": "protected abstract T createNewObject();", "title": "" }, { "docid": "094d7c6d3354ed76a633c4d11454af0b", "score": "0.53313136", "text": "@Override\n public AbstractPlayer newInstance() {\n return new TheHuntedCharacter(name, chosenClass);\n }", "title": "" }, { "docid": "717f03bac6c7d6e072ca93e48bf35080", "score": "0.5324761", "text": "protected abstract Shoot createShoot(Position positionReceived);", "title": "" }, { "docid": "cdebc4a2ecec2cf954a805b9cd6fdfc6", "score": "0.5311092", "text": "public void spawnPower(){\n if(Greenfoot.getRandomNumber(1000) <= 500 && inWorld == false)\n {\n int rand = Greenfoot.getRandomNumber(100);\n if(rand <= 33)\n {\n SpeedUp su = new SpeedUp();\n street.spawnSpeedUp(su, getX(), getY());\n }\n else if((rand>33 && rand <= 66) && inWorld == false)\n {\n AttackUp attack = new AttackUp();\n street.spawnAttackUp(attack, getX(), getY());\n }\n else if( ( 1 <= street.getHits() || street.getHits() <= 3) && Greenfoot.getRandomNumber(200) <= 50 && inWorld == false)\n {\n HealthUp hu = new HealthUp();\n street.spawnHealthUp(hu, getX(), getY());\n }\n else if( ( 4 <= street.getHits() || street.getHits() <= 5) && Greenfoot.getRandomNumber(100) <= 50 && inWorld == false)\n {\n HealthUp hu = new HealthUp();\n street.spawnHealthUp(hu, getX(), getY());\n }\n }\n }", "title": "" }, { "docid": "086d1fc349fe39f443f3c89f65faf365", "score": "0.5289049", "text": "public boolean canSpawn(Entity trainer);", "title": "" }, { "docid": "e535926813769df4c61a2251f7933a92", "score": "0.5271154", "text": "protected abstract void launchSelf();", "title": "" }, { "docid": "56016d454d3eaeb68fed36eb82f18a54", "score": "0.5270261", "text": "public abstract Entity newProjectile(ItemStack ammo, World world, EntityLivingBase shooter, ItemStack bow, float draw, float shotPower, int unlimitedAmmo);", "title": "" }, { "docid": "096bf4ad631468580b1cd0dad2856615", "score": "0.5257115", "text": "public RendezvousShoot5() {\n driveToBalls = new AutoDriveStraightToPoint();\n driveBack = new AutoDriveStraightToPoint();\n intake = new IntakeIn();\n\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n addCommands(\n new ParallelRaceGroup(new AutoTurnTurret(-200.0), new AutoDelay(1.5)),\n new AutoDelay(0.4),\n new AutoShootAll(),\n new ParallelRaceGroup(driveToBalls, intake, new AutoDelay(4)),\n new ParallelRaceGroup(driveBack, new AutoDelay(4)),\n new ParallelRaceGroup(new AutoTurnTurret(-200.0), new AutoDelay(1.5)),\n new AutoDelay(0.4),\n new AutoShootAll(),\n new ParallelRaceGroup(new StowTurret(), new AutoDelay(1.5))\n );\n }", "title": "" }, { "docid": "d9398829b81e75f87133d7016e6a3a64", "score": "0.5256914", "text": "@Override\n\tpublic void setSpawnFlags(boolean arg0, boolean arg1)\n\t{\n\n\t}", "title": "" }, { "docid": "861ddb5397fc95aafb98cfbafcae0ecf", "score": "0.52499354", "text": "public HitPoint launch()\n {\n Vector<HitPoint> hitPoints = new Vector<HitPoint>();\n\n //launch the shot on all walls\n for ( WallCollection wallCollection : ShooterGameLevel.current().getWallCollections() )\n {\n hitPoints.addAll( wallCollection.launchShot( this ) );\n }\n\n //launch the shot on all bots' collision unit ( if not shot by a bot! )\n if ( iOrigin != ShotOrigin.EEnemies )\n {\n for ( Bot bot : ShooterGameLevel.current().getBots() )\n {\n hitPoints.addAll( bot.launchShot( this ) );\n }\n }\n\n //launch the shot on the player ( if not shot by the player )\n if ( iOrigin != ShotOrigin.EPlayer )\n {\n hitPoints.addAll( ShooterGameLevel.currentPlayer().launchShot( this ) );\n }\n\n //get nearest hitpoint\n HitPoint nearestHitPoint = HitPoint.getNearestHitPoint( hitPoints );\n\n //perform an operation if\n if\n (\n //something has been hit\n nearestHitPoint != null\n\n //the game object is able to be hit\n && nearestHitPoint.carrier != null && nearestHitPoint.carrier.getHitPointCarrier() != null\n\n //sharp ammo has been used\n && iType == ShotType.ESharpAmmo\n )\n {\n //ShooterDebug.bugfix.out( \" faceangle of hit face: [\" + nearestHitPoint.horzFaceAngle + \"]\" );\n\n //check the hitPoint's receiver\n switch ( nearestHitPoint.carrier.getHitPointCarrier() )\n {\n case EWall:\n {\n //append bullet hole\n if ( iBulletHoleSize != LibHoleSize.ENone )\n {\n //draw bullet hole\n BulletHole.addBulletHole( nearestHitPoint );\n }\n\n //draw Sliver\n nearestHitPoint.drawWallSliver();\n\n //hurt wall\n Wall w = (Wall)nearestHitPoint.carrier;\n w.hurt( 20 );\n\n break;\n }\n\n case EPlayer:\n {\n //player loses health\n ShooterGameLevel.currentPlayer().hurt( LibMath.getRandom( 2, 10 ) );\n break;\n }\n\n case EBot:\n {\n //append bullet hole\n if ( iBulletHoleSize != LibHoleSize.ENone )\n {\n //do NOT create bullet holes on bots!\n //BulletHole.addBulletHole( nearestHitPoint );\n\n }\n\n //hurt bot\n Bot b = (Bot)nearestHitPoint.carrier;\n b.hurt( 20 );\n\n //draw Sliver\n nearestHitPoint.drawWallSliver();\n\n break;\n }\n }\n\n //show debugs\n iDebug.out( \"hit point: [\" + nearestHitPoint.vertex.x + \",\" + nearestHitPoint.vertex.y + \", \" + nearestHitPoint.vertex.z + \"]\" );\n iDebug.out( \"shotAngle [\" + nearestHitPoint.horzShotAngle + \"] SliverAngle [\" + nearestHitPoint.horzSliverAngle + \"] invertedShotAngle [\" + nearestHitPoint.horzInvertedShotAngle + \"] faceAngle [\" + nearestHitPoint.horzFaceAngle + \"]\" );\n }\n\n iDebug.out( \"=====================================================================\\n\" );\n\n return nearestHitPoint;\n }", "title": "" }, { "docid": "99f00c24e45624d8679c4b00645bf506", "score": "0.5249877", "text": "private void setupSpawnItems() {\n\t\t// shuffle spawn item lists\n\t\tCollections.shuffle(itemSpawners);\n\t\tCollections.shuffle(itemsToSpawn);\n\t\t// while there is an item left, add item to container\n\t\tfor(Item item : itemsToSpawn){\n\t\t\tCollections.shuffle(itemSpawners);\n\t\t\tItemSpawner holder = itemSpawners.get(0);\n\t\t\twhile ((item instanceof Weapon && !(holder instanceof Floor))\n\t\t\t\t\t|| holder.remainingCapacity() <= 0){\n\t\t\t\tCollections.shuffle(itemSpawners);\n\t\t\t\tholder = itemSpawners.get(0);\n\t\t\t}\n\t\t\tholder.addSpawnItem(item);\n\t\t}\n\t}", "title": "" }, { "docid": "e0bf03f8e1d18c0e40419ad6d6829962", "score": "0.5249226", "text": "public ColorWheelSteal() {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n super(\n race(new Load(), new RunPath(PathList.COLOR_WHEEL_STEAL.STAGE_ONE)),\n new Load().withTimeout(1.0),\n parallel(new RunPath(PathList.COLOR_WHEEL_STEAL.STAGE_TWO), new PrepHoodShot()),\n new AutoAlign(),\n new FastBallWithHintOfLime(),\n new GetSmol(),\n new RotateToZero()\n );\n }", "title": "" }, { "docid": "eb43a4ba1ef49a9f5d25fb0efb0e8fb2", "score": "0.5232611", "text": "public void spawnT() {\n\t\tcurrentBrick = new Brick('T', toggleAndReturn(1, width / 2), toggleAndReturn(0, width / 2 + 1),\n\t\t\t\ttoggleAndReturn(0, width / 2), toggleAndReturn(0, width / 2 - 1));\n\t}", "title": "" }, { "docid": "1843f855843edd58a25ee5a119d004ce", "score": "0.52239126", "text": "public void setSpawn(){\n spawnX = board.getSpawnX();\n spawnY = board.getSpawnY();\n }", "title": "" }, { "docid": "4d61f07fddd99881014a853b860c8760", "score": "0.520789", "text": "private void trySpawnNewTiles()\n\t{\n\t\tif(shouldReset || (spawnedTiles[0] == null && spawnedTiles[1] == null && spawnedTiles[2] == null && canPickUp()))\n\t\t{\n\t\t\tspawnedTiles[0] = tilePool.get(r.nextInt(tilePool.size()));\n\t\t\tspawnedTiles[1] = tilePool.get(r.nextInt(tilePool.size()));\n\t\t\tspawnedTiles[2] = tilePool.get(r.nextInt(tilePool.size()));\n\t\t}\n\t}", "title": "" }, { "docid": "5a148b2bc4f17f2fe3e6462e14253007", "score": "0.5203257", "text": "private Enemy spawnEnemy(int x, int y) {\r\n\t\tBufferedImage[] enemyImgs = new BufferedImage[] {\r\n\t\t\t\tResources.getImage(\"Enemy1\"), Resources.getImage(\"Enemy2\"),\r\n\t\t\t\tResources.getImage(\"Enemy3\"), Resources.getImage(\"Enemy4\") };\r\n\t\tEnemy enemy = new Enemy(\"enemy1\", \"regular\", enemyImgs, enemyImgs);\r\n\t\tenemy.setLocation(x, y);\r\n\t\treturn enemy;\r\n\t}", "title": "" }, { "docid": "a27d48e4b2793215039136b63f581035", "score": "0.5195736", "text": "@Override\n protected void move() {\n Collection<ListenableFuture<?>> tasks = Lists.newArrayListWithCapacity(threadCount);\n int perThread = (this.swarmSize() / threadCount) + 1;\n\n ArrayList<Tribe> randomOrder = randomOrderOfTribes();\n FluentIterable<Particle> particlestoMove = FluentIterable\n .from(randomOrder)\n .transformAndConcat(Tribe.SelectMembers);\n\n for (List<Particle> particlesPerThread : Iterables.partition(particlestoMove, perThread)) {\n tasks.add(pool.submit(makeMoveTask(particlesPerThread)));\n }\n\n try {\n Futures.allAsList(tasks).get();\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }", "title": "" }, { "docid": "1ada6d118713a09d62cd7d62adf00c98", "score": "0.51803625", "text": "private RandomShip() {\r\n\t\t}", "title": "" }, { "docid": "d030d5aa90a7db9f8ab39641d5721669", "score": "0.5170869", "text": "private Optional<PSEntity> spawnObject(JSONObject data) {\n\t\t\n\t\t//Checks if the given type is present\n\t\tif(!data.hasKey(\"type\")||!(data.get(\"type\") instanceof String))\n\t\t\treturn Optional.empty();\n\t\t\n\t\t//Checks if the given data is present\n\t\tif(!data.hasKey(\"data\")||!(data.get(\"data\") instanceof JSONObject))\n\t\t\treturn Optional.empty();\n\t\t\n\t\t//Creates the object\n\t\ttry {\n\t\t\t//Generates the object\n\t\t\tPSEntity obj = loadNames.get(data.getString(\"type\")).newInstance();\n\t\t\t//Inits the object\n\t\t\tobj.init(new LoadFrame(data.getJSONObject(\"data\")));\n\t\t\t//Returns the loaded object\n\t\t\treturn Optional.of(obj);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//Returns that an error occured while loading the entity\n\t\treturn Optional.empty();\n\t}", "title": "" }, { "docid": "ad60d7762dbeb3ebf71ceee4b89ce1e5", "score": "0.5160734", "text": "private void spawnEnemies() {\n int numEnemies = RandomUtils.uniform(rand, 4, 6);\n List<Room> rooms = new ArrayList<Room>(getWorld().getRoomList());\n for (int i = 0; i < numEnemies; i += 1) {\n int randRoom = RandomUtils.uniform(rand, 0, rooms.size());\n Room room = rooms.get(randRoom);\n Enemy enemy = new Enemy(room.randomPoint());\n while (this.player != null\n && enemy.getPos().equals(this.player.getPos())\n || (this.exit != null\n && enemy.getPos().equals(this.exit.getPos()))) {\n enemy = new Enemy(room.randomPoint());\n }\n\n rooms.remove(room);\n enemies.add(enemy);\n }\n }", "title": "" }, { "docid": "3f760ca3ed3d0952b8f7696f7b657a09", "score": "0.5149916", "text": "private void cooperate(){\n\t\t// create a list that agents ordered randomly\n\t\tArrayList<Agent> shuffleAgentList = new ArrayList<Agent>();\n\t\tshuffleAgentList.addAll(world.getWorldAgents());\n\t\tCollections.shuffle(shuffleAgentList);\n\t\t\n\t\t// find the neighbours of agents\n\t\tArrayList<Block> occupiedNeighborBlocks = null;\n\t\tfor(Agent agent : shuffleAgentList){\n\t\t\toccupiedNeighborBlocks = agent.getBlock().getOccupiedNeighborBlocks();\n\n\t\t\t// cooperate with its neighbours\n\t\t\tagent.cooperate(occupiedNeighborBlocks);\n\t\t}\n\t}", "title": "" }, { "docid": "4605a3b4dfc515c289e61653ff7ab2fa", "score": "0.51477945", "text": "private void spawnMinions() throws DockerException, InterruptedException, IOException {\n for (final ContainerAlias alias : Arrays.asList(ContainerAlias.MINION, ContainerAlias.MINION_SAME_LOCATION, ContainerAlias.MINION_OTHER_LOCATION)) {\n if (!(isEnabled(alias) && isSpawned(alias))) {\n continue;\n }\n\n final Path overlayRoot = initializeOverlayRoot(alias);\n\n final Path minionOverlay = overlayRoot.resolve(\"minion-overlay\");\n final Path minionKarafLogs = overlayRoot.resolve(\"minion-karaf-logs\");\n\n Files.createDirectories(minionOverlay.resolve(\"etc\"));\n Files.createDirectories(minionKarafLogs);\n\n try (final FileWriter fw = new FileWriter(minionOverlay.resolve(\"etc/clean.disabled\").toFile())) {\n fw.write(\"true\\n\".toCharArray());\n }\n\n if (this.minionOverlayDirectory != null) {\n Files.find(this.minionOverlayDirectory, 10, (path, attr) -> {\n return path.toFile().isFile();\n }).forEach(path -> {\n final Path relative = Paths.get(this.minionOverlayDirectory.toFile().toURI().relativize(path.toFile().toURI()).getPath());\n final Path to = Paths.get(minionOverlay.toString(), relative.toString());\n LOG.debug(\"Copying {} to {}\", path.toAbsolutePath(), to.toAbsolutePath());\n try {\n Files.createDirectories(to.getParent());\n Files.deleteIfExists(to.toAbsolutePath());\n Files.copy(path.toAbsolutePath(), to.toAbsolutePath(), StandardCopyOption.REPLACE_EXISTING);\n } catch (final Exception e) {\n throw new RuntimeException(e);\n }\n });\n }\n\n final List<String> binds = new ArrayList<>();\n binds.add(minionOverlay.toString() + \":/minion-docker-overlay\");\n binds.add(minionKarafLogs.toString() + \":/opt/minion/data/log\");\n\n final List<String> links = Lists.newArrayList();\n if (isEnabled(ContainerAlias.OPENNMS)) {\n links.add(String.format(\"%s:opennms\", containerInfoByAlias.get(ContainerAlias.OPENNMS).name()));\n }\n if (isEnabled(ContainerAlias.SNMPD)) {\n links.add(String.format(\"%s:snmpd\", containerInfoByAlias.get(ContainerAlias.SNMPD).name()));\n }\n if (isEnabled(ContainerAlias.TOMCAT)) {\n links.add(String.format(\"%s:tomcat\", containerInfoByAlias.get(ContainerAlias.TOMCAT).name()));\n }\n if (isEnabled(ContainerAlias.KAFKA)) {\n links.add(String.format(\"%s:kafka\", containerInfoByAlias.get(ContainerAlias.KAFKA).name()));\n }\n\n final Builder builder = HostConfig.builder()\n .publishAllPorts(true)\n .links(links)\n .binds(binds);\n\n final List<String> env = Arrays.asList(\n \"MINION_LOCATION=\" + MINION_LOCATIONS.get(alias),\n \"MINION_ID=\" + MINION_IDS.get(alias)\n );\n spawnContainer(alias, builder, env);\n }\n }", "title": "" }, { "docid": "e216596ecba5f73ea5d16a916df4d5a4", "score": "0.5147567", "text": "private void spawnMonster() {\n if (monsters.size() < MAXMONSTERS) {\n// double r = Math.random();\n rand = new Random();\n int r = rand.nextInt(10);\n if (r < 5) {\n Monster1 m = new Monster1(COURT_WIDTH, COURT_HEIGHT, player);\n m.setAttacking(true);\n monsters.add(m);\n } else {\n Monster2 m = new Monster2(COURT_WIDTH, COURT_HEIGHT, player);\n m.setAttacking(true);\n monsters.add(m);\n }\n }\n }", "title": "" }, { "docid": "339d308a9dc8327a40d45ffb42dc8c9b", "score": "0.5140472", "text": "boolean createInstances(Properties targets);", "title": "" }, { "docid": "7c4e51c29a10d022808c2982ba43f359", "score": "0.51324505", "text": "@Override\n public boolean canCreatureSpawn(EnumCreatureType type, IBlockAccess world,\n int x, int y, int z) {\n return super.canCreatureSpawn(type, world, x, y, z);\n }", "title": "" }, { "docid": "0e438870aa5cc5a7f7214cb3aeed702b", "score": "0.51292866", "text": "public abstract void moveEnemies();", "title": "" }, { "docid": "de1069a7cf50e22b96d154c77794dd63", "score": "0.5125044", "text": "protected T createNewInstance() {\n return WhimtripUtils.createNewInstance(clazz);\n }", "title": "" }, { "docid": "ca3fe773cf02c385af8a4ed6a5f87884", "score": "0.51077634", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tRvrService.getInstance().DF6G1Spawn03Msg(id);\n\t\t\t\t//An Asmodian warship will invade in 3 minutes.\n\t\t\t\tRvrService.getInstance().LF6G1Spawn03Msg(id);\n\t\t\t}", "title": "" }, { "docid": "dd1337b3dcb65739ab3bf25d57fc89d8", "score": "0.51059645", "text": "private void spawnPhantom() {\n\t\tint x = (int) (gen.nextInt((int) (this.stage.getWidth() * .6)) + this.stage.getWidth() * .1);\n\t\tint y = (int) (gen.nextInt((int) (this.stage.getHeight() * .6)) + this.stage.getHeight() * .1);\n\t\tboolean cont = true;\n\n\t\tif (x >= 0 && x <= this.stage.getWidth() / 2) {\n\t\t\tx = 0;\n\t\t} else {\n\t\t\tx = (int) this.stage.getWidth();\n\t\t}\n\t\tennemies.addPhantom(new Position(x, y));\n\t\t\n\t\tMedia sound = new Media(new File(\"src/sound/chipmunk.mp3\").toURI().toString());\n\t\tMediaPlayer mediaPlayer = new MediaPlayer(sound);\n\t\tmediaPlayer.play();\n\t}", "title": "" }, { "docid": "b9e9e697c164bc2b55364a8bdf3667ab", "score": "0.51041675", "text": "public GameObject create(Class classInfo) {\n return null;\n }", "title": "" }, { "docid": "666617f148784003af9420a96fd75695", "score": "0.50979793", "text": "public void start()\n\t{\n\t\tzonepvp = getZone(\"[gvg_battle_zone]\");\n\t\tpeace1 = getZone(\"[gvg_1_peace]\");\n\t\tpeace2 = getZone(\"[gvg_2_peace]\");\n\t\t//Box spawns\n\t\tLocation boxes[] = {\n\t\t\t\tnew Location(142696, 139704, -15264, 0),\n\t\t\t\tnew Location(142696, 145944, -15264, 0),\n\t\t\t\tnew Location(145784, 142824, -15264, 0),\n\t\t\t\tnew Location(145768, 139704, -15264, 0),\n\t\t\t\tnew Location(145768, 145944, -15264, 0),\n\t\t\t\tnew Location(141752, 142760, -15624, 0),\n\t\t\t\tnew Location(145720, 142008, -15880, 0),\n\t\t\t\tnew Location(145720, 143640, -15880, 0),\n\t\t\t\tnew Location(139592, 142824, -15264, 0)\n\t\t};\n\n\t\tfor (int i = 0; i < boxes.length; i++)\n\t\t\taddSpawnWithoutRespawn(BOX_ID, boxes[i], 0);\n\n\t\taddSpawnWithoutRespawn(35423, new Location(139640, 139736, -15264), 0); //Red team flag\n\t\taddSpawnWithoutRespawn(35426, new Location(139672, 145896, -15264), 0); //Blue team flag\n\n\t\t_bossSpawnTask = ThreadPoolManager.getInstance().schedule(new BossSpawn(), bossSpawnTime); //\n\t\t_countDownTask = ThreadPoolManager.getInstance().schedule(new CountingDown(), (eventTime - 1) * 1000L);\n\t\t_battleEndTask = ThreadPoolManager.getInstance().schedule(new BattleEnd(), (eventTime - 6) * 1000L); // -6 is about to prevent built-in BlockChecker countdown task\n\n\t\t//Assigning players to teams\n\t\tfor (Player member : team1.getMembers())\n\t\t{\n\t\t\tbothTeams.add(member.getRef());\n\t\t\tmember.addListener(_deathListener);\n\t\t\tmember.addListener(_teleportListener);\n\t\t\tmember.addListener(_playerPartyLeaveListener);\n\t\t}\n\n\t\tfor (Player member : team2.getMembers())\n\t\t{\n\t\t\tbothTeams.add(member.getRef());\n\t\t\tmember.addListener(_deathListener);\n\t\t\tmember.addListener(_teleportListener);\n\t\t\tmember.addListener(_playerPartyLeaveListener);\n\t\t}\n\n\t\tstartTime = System.currentTimeMillis() + eventTime * 1000L; //Used in packet broadcasting\n\n\t\t//Forming packets to send everybody\n\t\tfinal ExCubeGameChangePoints initialPoints = new ExCubeGameChangePoints(eventTime, team1Score, team2Score);\n\t\tfinal ExCubeGameCloseUI cui = new ExCubeGameCloseUI();\n\t\tExCubeGameExtendedChangePoints clientSetUp;\n\n\t\tfor (Player tm : HardReferences.unwrap(bothTeams))\n\t\t{\n\t\t\tscore.put(tm.getObjectId(), new MutableInt());\n\n\t\t\ttm.setCurrentCp(tm.getMaxCp());\n\t\t\ttm.setCurrentHp(tm.getMaxHp(), false);\n\t\t\ttm.setCurrentMp(tm.getMaxMp());\n\t\t\tclientSetUp = new ExCubeGameExtendedChangePoints(eventTime, team1Score, team2Score, isRedTeam(tm), tm, 0);\n\t\t\ttm.sendPacket(clientSetUp);\n\t\t\ttm.sendActionFailed(); //useless? copy&past from BlockChecker\n\t\t\ttm.sendPacket(initialPoints);\n\t\t\ttm.sendPacket(cui); //useless? copy&past from BlockChecker\n\t\t\tbroadCastPacketToBothTeams(new ExCubeGameAddPlayer(tm, isRedTeam(tm)));\n\t\t}\n\n\t\tactive = true;\n\t}", "title": "" }, { "docid": "d8bfa26b0bfe8f3796a400c0e85c2993", "score": "0.5082982", "text": "private static void spawnPassiveMob(int result, Location location) {\n switch (result) {\n case 0: location.getWorld().spawnEntity(location, EntityType.CHICKEN).setFallDistance(0); break;\n case 1: location.getWorld().spawnEntity(location, EntityType.COW).setFallDistance(0); break;\n case 2: location.getWorld().spawnEntity(location, EntityType.PIG).setFallDistance(0); break; \n case 3: location.getWorld().spawnEntity(location, EntityType.SHEEP).setFallDistance(0); break; \n case 4: location.getWorld().spawnEntity(location, EntityType.WOLF).setFallDistance(0); break; \n default: location.getWorld().spawnEntity(location, EntityType.SQUID).setFallDistance(0); break; \n }\n }", "title": "" }, { "docid": "274d9ec2352fbb1b848ad1584032b7a3", "score": "0.50810826", "text": "public abstract void spawnParticle(String s, double d, double d1, double d2, double d3, double d4, double d5);", "title": "" }, { "docid": "c1ad06bb6dec8d5b5d659be9f327bee8", "score": "0.50774455", "text": "@Override\n public void onTick(long tick) {\n // Spawn watershield\n spawn();\n\n // Task complete\n this.complete = true;\n }", "title": "" } ]
320908cbe2c2810dae16ea30beaa9444
Display button if the row is not empty
[ { "docid": "a02fa6198c590e14ce9aad348a64095e", "score": "0.67402625", "text": "@Override\n protected void updateItem(Boolean t, boolean empty) {\n super.updateItem(t, empty);\n if(!empty){\n setGraphic(cellButton);\n }\n }", "title": "" } ]
[ { "docid": "e0c4fdb8fdcf7e7a456dabddeeafef94", "score": "0.65963024", "text": "@Override\r\n protected void updateItem(Boolean t, boolean empty) {\r\n super.updateItem(t, empty);\r\n if (!empty) {\r\n setGraphic(cellButton);\r\n }\r\n }", "title": "" }, { "docid": "27d6d697ccf7008f5808bc0e1e9b4a60", "score": "0.64277685", "text": "private void checkEmpty(){\n if (data.size() == 0){\n empty.setVisibility(View.VISIBLE);\n }\n else{\n empty.setVisibility(View.INVISIBLE);\n }\n }", "title": "" }, { "docid": "f0cb2a4e9ca5683ed77a2b4a4209d486", "score": "0.6245063", "text": "private boolean appendEmptyRow()\r\n {\r\n Rows gridrows = aceConfigExtensionsGrid.getRows();\r\n if (gridrows != null) {\r\n Component comp = gridrows.getLastChild();\r\n if (comp instanceof Row) {\r\n Row r = (Row) comp;\r\n Component c = r.getFirstChild();\r\n if (c instanceof Combobox) {\r\n String v = ((Combobox) c).getValue().trim();\r\n if (v.length() > 0) { // not an empty row\r\n // Add empty row\r\n Row emptyrow = new Row();\r\n buildNewRow(emptyrow, \"\");\r\n gridrows.appendChild(emptyrow);\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "a6af86b58fdef4f9cf6d17f24ef0a19f", "score": "0.6018418", "text": "void showEmpty();", "title": "" }, { "docid": "5d3051b2d07ae8535d34267de2efe096", "score": "0.5970831", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\tif (\n\t\t\tthis.getRowCount() < 1\n\t\t\t&& this.getColumnCount() > 0 // it contains column names\n\t\t) return true;\n\t\telse return false;\n\t}", "title": "" }, { "docid": "c6313465b6bcde3538a9a2ccc0125cca", "score": "0.5842061", "text": "@Override\r\n\t\tprotected void updateItem(Boolean item, boolean empty) {\r\n\t\t\tsuper.updateItem(item, empty);\r\n\t\t\tif (!empty) {\r\n\t\t\t\tsetContentDisplay(ContentDisplay.GRAPHIC_ONLY);\r\n\t\t\t\tsetGraphic(paddedButton);\r\n\t\t\t} else {\r\n\t\t\t\tsetGraphic(null);\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "b691aceec8884f924dcd23e98f36a473", "score": "0.5774911", "text": "public boolean isHideEmpty();", "title": "" }, { "docid": "88abf595290014cc0ec53733f0cf8d63", "score": "0.5725758", "text": "@Override\r\n\t public void actionPerformed(ActionEvent arg0) {\n\t for(int i=0;i<myTable2.getRowCount();i++)\r\n\t {\r\n\t Boolean checked=Boolean.valueOf(myTable2.getValueAt(i, 2).toString());\r\n\t String col=myTable2.getValueAt(i, 0).toString()+\" \"+myTable2.getValueAt(i, 1).toString();\r\n\t result =\"Absent Students:\";\r\n\t //DISPLAY\r\n\t if(!checked)\r\n\t {\r\n\t \t result =result+\"\\n\"+col;\r\n\t \t JOptionPane.showMessageDialog(null, result);\r\n\r\n\t }\r\n\t \r\n\t }\r\n\t \r\n\r\n\t }", "title": "" }, { "docid": "6293f9a21a18ee0c09870b7c9fd3ccbb", "score": "0.5543427", "text": "boolean empty(){\n return (tables.size()==0);\n }", "title": "" }, { "docid": "2dc5ab9513e7b67152a81996d4aa7662", "score": "0.55377567", "text": "<R> Children isEmpty(boolean execute, ColumnFunction<R, ?> column);", "title": "" }, { "docid": "cf345dd1b44f3efd7afffe570d173be6", "score": "0.5516004", "text": "private void checkTables(){\n\n // JButton[] b = new JButton[myRestaurant.getNumOfTables()];\n\n for (int i = 0; i<myRestaurant.getTablesList().size();i++) {\n if (!myRestaurant.getTablesList().get(i).isAvailable()) {\n b[myRestaurant.getTablesList().get(i).getTableNumber() - 1].setText(\"is Booked\");\n } else if (myRestaurant.getTablesList().get(i).isAvailable()) {\n b[myRestaurant.getTablesList().get(i).getTableNumber() - 1].setText(String.valueOf(myRestaurant.getTablesList().get(i).getTableNumber()));\n\n }\n }\n }", "title": "" }, { "docid": "4ce5a51c9b598fcb6edafed7a3b8336b", "score": "0.55095315", "text": "public Boolean validateSelectButtonPresent() {\r\n\r\n Logger.printInfo(\"Evaluating if every result contains the select button\");\r\n\r\n return containerGridList.size() == selectBtnList.size();\r\n }", "title": "" }, { "docid": "3b6ec50ce1fe8046e82e9b06d1085218", "score": "0.5496304", "text": "public Boolean hasEmptyField() {\n EditText etEnterQuestion = (EditText) findViewById(R.id.etEnterQuestion);\n\n //Get text from etEnterQuestion\n String strEnterQuestion = etEnterQuestion.getText().toString();\n\n //Check if is empty\n if (strEnterQuestion.isEmpty()) {\n etEnterQuestion.setError(getResources().getString(R.string.standard_question_empty_field_validation));\n return true;\n }\n\n //is empty helper\n Boolean isEmpty = false;\n\n //Get layout that contain answes\n TableLayout answers = (TableLayout) findViewById(R.id.answersTableLayout);\n\n //Loop through answers layout\n for (int i = 0; i < answers.getChildCount(); i++) {\n\n // get answers child\n Object child = answers.getChildAt(i);\n\n //check if is child a tablerow\n if (child instanceof TableRow) {\n\n //create tablerow object\n TableRow row = (TableRow) child;\n\n //get child at 0 position, always EditText\n Object rchild = row.getChildAt(0);\n\n //Check is child Edit text\n if (rchild instanceof EditText) {\n\n EditText et = (EditText) rchild;\n\n //Get value from ET\n String strEt = et.getText().toString();\n\n //Check is empty\n if (strEt.isEmpty()) {\n et.setError(getResources().getString(R.string.standard_question_empty_field_validation));\n isEmpty = true;\n }\n }\n }\n }\n\n //check is isEmpty changed\n if (isEmpty == false) {\n return false;\n }\n\n // return true if isEmpty hasn't changed value\n return true;\n }", "title": "" }, { "docid": "b260bec5c5489500f0e0619ed8b934dc", "score": "0.5476041", "text": "private boolean showHeader() {\n return (listType == ContributionManager.MATCHING_COMBO) || data.size() < 1;\n }", "title": "" }, { "docid": "be53e0628bb63f1d6e40bcd978fc58fa", "score": "0.5475383", "text": "public boolean isEmpty(){\n Cursor cur = db.rawQuery(\"SELECT COUNT(*) FROM \" + DATABASE_TABLE, null);\n if (cur != null){\n cur.moveToFirst();\n if (cur.getInt(0) == 0) {\n // Empty\n return true;\n }\n\n }\n return false;\n }", "title": "" }, { "docid": "9313a27bbb8cf0ace6e81ac7e7bf1233", "score": "0.54708177", "text": "public Boolean getRenderBtnImprimir() {\r\n return renderBtnImprimir;\r\n }", "title": "" }, { "docid": "2f6f70f1619a23fab6ab955cc11c6fc7", "score": "0.54470444", "text": "public boolean onEmpty() {\n\t\t\t\treturn false;\r\n\t\t\t}", "title": "" }, { "docid": "4421267756d81eb178a9586d7f31f074", "score": "0.54389936", "text": "@Override\n public boolean isVisible() {\n return !this.getList().isEmpty();\n }", "title": "" }, { "docid": "c760a7377207abe69508f6121f9b6f0d", "score": "0.54321915", "text": "private void addConfirmButtonToTable() {\r\n\t TableColumn<OrderConfirmation, String> colBtn = new TableColumn(\"Seen\");\r\n\t \r\n\t Callback<TableColumn<OrderConfirmation, String>, TableCell<OrderConfirmation, String>> cellFactory = new Callback<TableColumn<OrderConfirmation, String>, TableCell<OrderConfirmation, String>>() {\r\n\t @Override\r\n\t public TableCell<OrderConfirmation, String> call(final TableColumn<OrderConfirmation, String> param) {\r\n\t final TableCell<OrderConfirmation, String> cell = new TableCell<OrderConfirmation, String>() {\r\n\t private final Button btn = new Button(\"Okay\");\r\n\t \r\n\t {\r\n\t btn.setOnAction((ActionEvent event) -> {\r\n\t \tOrderConfirmation data = getTableView().getItems().get(getIndex());\r\n\t \tOrderConfirmation order =new OrderConfirmation(data.getOrderNumber(), data.getType(), data.getQuantity(),data.getStatus(),data.getStationName(),data.getAddress(),data.getDate(),data.getManagerID());\r\n\t System.out.println(order.getOrderNumber()+\" \" +order.getType()+\" \"+order.getQuantity());\r\n\t System.out.println(\"confirm\");\r\n\t // StationManagerOrderConfirmationController.acainstance.details.accept(new Message(46, order));\r\n\t // NetworkManagerApproveRatesController.acainstance.details.accept(new Message(18, newRates));\r\n\t // NetworkManagerApproveRatesController.acainstance.details.accept(new Message(19, newRates));\r\n\t\t StationManagerOrderCompletedController.acainstance.details.accept(new Message(56, order));\r\n\t\t Platform.runLater(new Runnable() {\r\n\t\t \t\t\t@Override\r\n\t\t \t\t\tpublic void run() {\r\n\t\t \t\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\t \t\t\t\talert.setAlertType(AlertType.INFORMATION); \r\n\t\t \t\t\t\talert.setContentText(\"Order have been seen!\");\r\n\t\t \t\t\t\talert.show(); \r\n\t\t \t\t\t}\r\n\t\t \t\t});\r\n\t });\r\n\t }\r\n\t public void updateItem(String item, boolean empty) {\r\n\t super.updateItem(item, empty);\r\n\t if (empty) {\r\n\t setGraphic(null);\r\n\t } else {\r\n\t setGraphic(btn);\r\n\t }\r\n\t }\r\n\t };\r\n\t return cell;\r\n\t }\r\n\t };\r\n\t colBtn.setPrefWidth(120);\r\n\t \r\n\t colBtn.setCellFactory(cellFactory);\r\n\t colBtn.setStyle(\"-fx-background-color: #0E76DD; -fx-text-fill: white;\");\r\n\t orderConfirmationTable.getColumns().add(colBtn);\r\n\t }", "title": "" }, { "docid": "8e228dcae6d3763197fb61622629c5b9", "score": "0.54278433", "text": "private void btnVisibility() {\n\t\tif(obsList.size() == 0) {\n\t\t\tbtnRenameUser.setDisable(true);\n\t\t\tbtnDeleteUser.setDisable(true);\n\t\t}\n\t\telse if (obsList.size() > 0 && listviewUsers.getSelectionModel().getSelectedIndex() > -1) {\n\t\t\tbtnRenameUser.setDisable(false);\n\t\t\tbtnDeleteUser.setDisable(false);\n\t\t}\n\t}", "title": "" }, { "docid": "a49d2103781a2e336fe9fcc223ebc87a", "score": "0.54224", "text": "private boolean isFieldFilled()\r\n{\r\n\tfor(int i = 0; i < buttonField.length; i++)\r\n\t\tfor(int j = 0; j < buttonField[i].length; j++)\r\n\t\t\tif(buttonField[i][j].hasValue() == false)\r\n\t\t\t\treturn false;\r\n\t\r\n\treturn true;\r\n}", "title": "" }, { "docid": "378be63bbe99e53d688fd072b9e4ecda", "score": "0.5422096", "text": "protected boolean hasSelection() {\n\t\treturn table.getSelectedRowCount() != 0;\n\t}", "title": "" }, { "docid": "5b6c7705c30d1f28ea6c80e7d502b66c", "score": "0.541221", "text": "private void populateNoRecordMsg() {\n\t\tif (blockList.size() == 0) {\n\t\t\tfinal TextView tv = new TextView(this);\n\t\t\ttv.setPadding(5, 5, 5, 5);\n\t\t\ttv.setTextSize(15);\n\t\t\ttv.setText(\"No Record Found !!\");\n\t\t\tlistview.addFooterView(tv);\n\t\t}\n\t}", "title": "" }, { "docid": "3a7f8645643952632b5fc994632c03cb", "score": "0.5408751", "text": "protected void checkForEmptyRecycler(boolean isEmpty){\n if(isEmpty){\n mTxtEmpty.setVisibility(View.VISIBLE);\n }\n else{\n mTxtEmpty.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "391a730895e2cba7f39e392798cb1fb2", "score": "0.5401682", "text": "public boolean isInsertable() {\n return dBRowButtonNew1.isVisible();\n }", "title": "" }, { "docid": "3316183d20efe06d429ba8330bb9e577", "score": "0.53928465", "text": "public boolean carrelloempty(){\n return this.itemList.isEmpty();\n }", "title": "" }, { "docid": "fba1d965c3ad985ae3efacf0fdf36875", "score": "0.5387836", "text": "public void EmptyFieldToast(){\n Toast.makeText(this, \"Please fill all the necessary fields\", Toast.LENGTH_SHORT).show();\n return;\n }", "title": "" }, { "docid": "ef8a5c812861dd741a661153accee0ba", "score": "0.5383657", "text": "@Override\n public boolean estaVazia() {\n return this.size == 0;\n }", "title": "" }, { "docid": "fa19c042ff2b2681dacb2f040953fa42", "score": "0.5369066", "text": "public void setEmptyView() {\n int count = getAllItems().getCount();\n if (count == 0) {\n recyclerView.setVisibility(View.GONE);\n emptyView.setVisibility(View.VISIBLE);\n } else {\n recyclerView.setVisibility(View.VISIBLE);\n emptyView.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "18e030d9977186ebf7add190b2c7e640", "score": "0.536592", "text": "public boolean btnExportToExcelDisplayed()\r\n\t{\r\n\t\treturn btnExportToExcel.isDisplayed();\r\n\t}", "title": "" }, { "docid": "c01f58cef5918552d44e1552eb51ff57", "score": "0.53609824", "text": "private boolean isEmpty() {\n\n boolean flag = false;\n\n if (usernameSign.getText().equals(\"\") || txtLLittleSign.getText().equals(\"\") || txtLRingSign.getText().equals(\"\")\n || txtLMiddleSign.getText().equals(\"\") || txtLThumbSign.getText().equals(\"\") || txtLForeSign.getText().equals(\"\")\n || txtCMiddleSign.getText().equals(\"\") || txtCLittleSign.getText().equals(\"\") || txtCRingSign.getText().equals(\"\")\n || txtCForeSign.getText().equals(\"\") || txtCThumbSign.getText().equals(\"\") || txtLLittleCon.getText().equals(\"\")\n || txtLRingCon.getText().equals(\"\") || txtLForeCon.getText().equals(\"\") || txtLThumbCon.getText().equals(\"\")\n || txtLMiddleCon.getText().equals(\"\") || txtCMiddleCon.getText().equals(\"\") || txtCLittleCon.getText().equals(\"\")\n || txtCRingCon.getText().equals(\"\") || txtCForeCon.getText().equals(\"\") || txtCThumbCon.getText().equals(\"\")) {\n\n flag = true;\n }\n return flag;\n }", "title": "" }, { "docid": "9de4143db46f6d92daf92a9a487108dc", "score": "0.5355971", "text": "Builder row(int row, @Nullable Button button);", "title": "" }, { "docid": "fcf6d22abb1c86ce000e1f889d74cb76", "score": "0.5351184", "text": "public boolean btnExportExcelDisplayed()\r\n\t{\r\n\t\treturn btnExportExcel.isDisplayed();\r\n\t}", "title": "" }, { "docid": "11ef1653dc3a5ad42fb76627bebc588b", "score": "0.5343224", "text": "@Override\n\tpublic Button gePositiveButton() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "83957e356f037bcdca85cc04bd186398", "score": "0.5335922", "text": "public boolean getImprimirButtonVisible() {\r\n\t\treturn getJButtonImprimir().isVisible();\r\n\t}", "title": "" }, { "docid": "03763533aa360717154c5aeb7c4cc160", "score": "0.5332167", "text": "private boolean isFilled(){\n for (ToggleGroup btnGroup : buttonGroups) {\n if(btnGroup.getSelectedToggle()==null) {\n return AlertMessage.confirmation(AlertMessage.CONFIRMATION_SUBMIT);\n }\n }\n return true;\n }", "title": "" }, { "docid": "33716834deb3dae62ae82ef9fb77c406", "score": "0.53263307", "text": "@Override\r\n\t\t\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\t\tObject rowId = table.getValue();\r\n\t\t\t\t\t\t\r\n \t String fullname = table.getContainerProperty(rowId,\"Fullname\").getValue().toString();\r\n \t String username = table.getContainerProperty(rowId,\"Username\").getValue().toString();\r\n \t \r\n \t TextField fullName = new TextField(\"Fullname\");\r\n \t fullName.setValue(fullname.toString());\r\n\r\n \t TextField userName = new TextField(\"UserName\");\r\n \t userName.setValue(username);\r\n \t \r\n \t addComponent(fullName);\r\n \t addComponent(userName);\r\n \t \r\n\t\t\t\t\t}", "title": "" }, { "docid": "31cb68d23c69ec727741361b6df808c2", "score": "0.5325229", "text": "public boolean renderDeleteButton(long auctionID){\n //TODO: IMPLEMENT RENDERING OF DELETE BUTTON\n return false;\n }", "title": "" }, { "docid": "999685fad383def9e4501c2da0659ae8", "score": "0.53173167", "text": "boolean isSelectionEmpty();", "title": "" }, { "docid": "4ba1dc58f074f16d122e1cc99b2248f7", "score": "0.53067803", "text": "@Override\n public void run() {\n if (order == servers.length) {\n fl.setVisibility(View.GONE);\n }\n createTableRows(tableLayout, rows);\n }", "title": "" }, { "docid": "f0aa2d605f097358ae584d945da8999d", "score": "0.52990425", "text": "private void onOK() {\n if (this.columnNameTextField.getText().trim().isEmpty()) {\n JOptionPane.showMessageDialog(this, \"The column name is required.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n else {\n this.okPressed = true;\n dispose();\n }\n }", "title": "" }, { "docid": "1570ad1864c9cc62fa637dc10c01ddd5", "score": "0.52983", "text": "private void setEmptyView() {\n if (mRecyclerViewAdapter != null && mRecyclerViewAdapter.getItemCount() == 0) {\n mEmptyView.setVisibility(View.VISIBLE);\n } else {\n mEmptyView.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "2b2c759fcc40442c9b434c57b0e5df67", "score": "0.5294001", "text": "protected void setEmptyRow(Boolean isThisRowEmpty) {\r\n\t\tthis.emptyRow = isThisRowEmpty;\r\n\t}", "title": "" }, { "docid": "687c1914d8d673fac3f4de5a14afb882", "score": "0.52905476", "text": "public void isiTable() {\n int jmlbaris = tblModel.getRowCount();\n int i, datasama = 0;\n \n if(form.getCmbBrg().getSelectedIndex() > 0)\n {\n if(jmlbaris == 0)\n {\n //JIKA TABEL MASIH KOSONG\n tblModel.addRow(new Object[]\n {\n form.getCmbBrg().getSelectedItem().toString(),\n form.getTxtNmBrg().getText(),\n form.getTxtSatuan().getText(),\n (Integer.parseInt(form.getTxtHarga().getText())),\n (Integer.parseInt(form.getTxtJmlMinta().getText()))\n });\n }\n else\n {\n for(i=0;i<jmlbaris;i++)\n {\n if(form.getCmbBrg().getSelectedItem().toString().equals(tblModel.getValueAt(i, 0).toString()))\n {\n datasama = 1;\n JOptionPane.showMessageDialog(null, \"Kode Barang \" + tblModel.getValueAt(i, 0).toString() + \" sudah pernah ditambahkan, dan akan diupdate dengan data terbaru\");\n \n tblModel.setValueAt(form.getCmbBrg().getSelectedItem().toString(),i,0);\n tblModel.setValueAt(form.getTxtNmBrg().getText(), i, 1);\n tblModel.setValueAt(form.getTxtSatuan().getText(), i, 2);\n tblModel.setValueAt(Integer.parseInt(form.getTxtHarga().getText()), i, 3);\n tblModel.setValueAt(Integer.parseInt(form.getTxtJmlMinta().getText()), i, 4);\n break;\n }\n else\n {\n datasama = 0;\n }\n }\n \n if(datasama == 0)\n {\n tblModel.addRow(new Object[]\n {\n form.getCmbBrg().getSelectedItem().toString(),\n form.getTxtNmBrg().getText(),\n form.getTxtSatuan().getText(),\n (Integer.parseInt(form.getTxtHarga().getText())),\n (Integer.parseInt(form.getTxtJmlMinta().getText()))\n });\n }\n }\n }\n }", "title": "" }, { "docid": "36f2bf7d24d4b4f94a44189ce94430ed", "score": "0.52875626", "text": "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tString fullsql = \"SELECT * FROM PRODUCTS WHERE DISCOUNT_TYPE IS NOT NULL\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tnew type_search_buttons(jf,null,fullsql,null);\n\t\t\t}", "title": "" }, { "docid": "fc8d0e3fce24307cba9ecc8e91e058bf", "score": "0.5286721", "text": "public boolean isRowAvailable() {\n\n return (getDataModel().isRowAvailable());\n\n }", "title": "" }, { "docid": "ba9f83269c677d2c55e639af637d5989", "score": "0.52677864", "text": "@Override\r\n public boolean isEmpty() {\r\n return (numberOfItems == 0);\r\n }", "title": "" }, { "docid": "2d175c745686c7b61aefc4094b21d830", "score": "0.52639973", "text": "private void luu() {\n\t\tint index = table.getSelectedRow();\n\t\tif (index >= 0 && index < table.getRowCount()) {\n\t\t\tKhachhang kh = getDataFromTextField();\n\t\t\tif (kh != null) {\n\t\t\t\tif (dao.capNhatKhachHang((kh))) {\n\t\t\t\t\txoaTrang();\n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"Cập nhật thành công\", \"Cập nhật khách hàng\",\n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t} else\n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"Cập nhật không thành công\", \"Cập nhật khách hàng\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "365314c2614ad5a07249a754d7ffec71", "score": "0.5260499", "text": "public boolean FieldExists()\r\n\t{\r\n\t\tif (Paper.size()==0)\r\n\t\t\t\r\n\t\t{\r\n\t\t\tDisplayed = false;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tDisplayed= true;\r\n\t\t}\r\n\t\t\r\n\t\treturn Displayed;\r\n\t}", "title": "" }, { "docid": "b4ff397dee48a9e77fac45e767b87d53", "score": "0.52570367", "text": "protected void clearButtonClickAction() {\n fields.getFirstname().setText(\"\");\n fields.getLastname().setText(\"\");\n fields.getEmail().setText(\"\");\n fields.getPhone().setText(\"\");\n fields.getBankAccount().setText(\"\");\n\n deleteButton.setEnabled(false);\n saveButton.setEnabled(true);\n table.clearSelection();\n }", "title": "" }, { "docid": "df5a05f2eb609860e0d757743c8da98f", "score": "0.52551067", "text": "private boolean TablodanVeriAl()\n\t{\n\t\tboolean sonuc=false;\n\t\tif (tblModel.getRowCount() >= 0 ) {\n\t\t\tint rowIndex = jTable1.getSelectedRow();\n\t\t\tint colIndex = jTable1.getSelectedColumn();\n\n\t\t\tif (rowIndex>=0 && colIndex>=0)\n\t\t\t{\n\t\t\t\tVector row = tblModel.getDataVector().elementAt(rowIndex);\n\t\t\t\tjtf_Kid.setText(row.elementAt(0).toString());\n\t\t\t\tjtf_Adi.setText(row.elementAt(1).toString());\n\t\t\t\tjtf_Tel.setText(row.elementAt(2).toString());\n\t\t\t}\n\t\t\telse\n\t\t\t\tJOptionPane.showMessageDialog(this,\t\"Tabloda secim yapilmadi!\");\n\t\t\t\t//\ttblModel.getDataVector().elementAt(rowIndex).elementAt(colIndex));\t\n\t\t}\t\t\n\t\treturn sonuc;\n\t}", "title": "" }, { "docid": "8309ec120c525248c4bdc9357e07863a", "score": "0.52524513", "text": "public boolean is_empty();", "title": "" }, { "docid": "e77f7971041f62717c6eebcf2ccde5fc", "score": "0.5248364", "text": "private void refreshButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_refreshButtonActionPerformed\n while (!myModel.getDataVector().isEmpty()) {\n for (int i = 0; i < myModel.getRowCount(); i++) {\n myModel.removeRow(i);\n }\n }\n try {\n kT.createRow();\n } catch (SQLException ex) {\n Logger.getLogger(ShowClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "0dc49cdb4b3e6c5462951f56276ecd4f", "score": "0.5235862", "text": "public boolean pruefeLeereTable() {\r\n\r\n\t\tfor (int k = 2; k < showInfoFlexTable.getRowCount(); k++) {\r\n\r\n\t\t\tif (showInfoFlexTable.getText(k, 0) == null) {\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\tzaehler++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (zaehler == 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5eab702a853f7bf925b3029b08ef17dd", "score": "0.5223193", "text": "public boolean isEmpty() {\n\t\treturn getTotal() == 0;\n\t}", "title": "" }, { "docid": "d315b020432feefbc03c7c10c11cd639", "score": "0.52209675", "text": "public boolean checkForEmptyTable() {\n open();\n mDb = mDbHelper.getWritableDatabase();\n String count = \"SELECT count(*) FROM \" + VendorsEntry.TABLE_NAME;\n Cursor cursor = mDb.rawQuery(count, null);\n cursor.moveToFirst();\n int icount = cursor.getInt(0);\n mDb.close();\n cursor.close();\n close();\n return icount <= 0;\n }", "title": "" }, { "docid": "b2d56453bb068d84e28d2d57c48f91e7", "score": "0.52209675", "text": "public boolean isEmpty()\n {\n return numberOfItems==0;\n }", "title": "" }, { "docid": "66c5017059095abda16c3474c4dceeb4", "score": "0.52201134", "text": "public void deleteSearchButton() {\n try {\n customerTable.setItems(customerService.getAllCustomer());\n searchCustomer.setText(\"\");\n } catch (Exception e) {\n LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e);\n }\n }", "title": "" }, { "docid": "b0aa5fc20426b5b33d6a2fa583de2103", "score": "0.5215161", "text": "@Override\n public void onClick(View v) {\n if (matrixList.size() == 1){\n // calculate the end result\n resultCalculation(1);\n }\n else {\n //We still have matrix elements, so we need to create more comparisons.\n createComparison(1);\n }\n\n }", "title": "" }, { "docid": "85e9857a260dbcd7835f427f068ba571", "score": "0.521462", "text": "public boolean noSearchResultsMessageDisplayed() \n\t{\n\t\ttry\n\t\t{\n\t\t\treturn elementhandler.getElement(PropertiesRepository.getString(\"com.trgr.maf.\" + BaseTest.productUnderTest+\".noresults\")).isDisplayed() &&\n\t\t\telementhandler.getElement(PropertiesRepository.getString(\"com.trgr.maf.\" + BaseTest.productUnderTest+\".searchbtn\")).isDisplayed();\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\t//no need of the message for this method\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "5234c9df4bb617cc1670d2f608eeab53", "score": "0.5207249", "text": "@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\tif(StringUtils.empty(et_clubname.getText().toString())||StringUtils.empty(et_intro.getText().toString())){\r\n\t\t\tToast.makeText(getApplicationContext(),R.string.noempty, Toast.LENGTH_SHORT).show();\r\n\t\t}else{\r\n\t\t\tcreClub();}\r\n\t\t\r\n\t\t}", "title": "" }, { "docid": "15f7e8f1426341d6ee907540edc2ec06", "score": "0.52054423", "text": "public void checkAddContactBtnDisplayed() throws Exception {\n checkIsDisplayed(addContactBtn);\n }", "title": "" }, { "docid": "f0126e1d4a2bfa17aaefe728ceb22c0b", "score": "0.5204929", "text": "@Override\n public void On_find_NoActivos(){\n String nombre = txtname.getValue();\n list_result = new ArrayList<>();\n list_result = Services.getUsuarioWeb().find_soloNoActivos(nombre);\n \n GridCols = new ArrayList<>();\n grid.setItems(list_result);\n init_ReporterToolbar();\n //init_ReporterToolbar2();\n //grid.getColumns().get(4).setVisible(false);\n }", "title": "" }, { "docid": "d0df45a4675ac84a13e1e0529f51130b", "score": "0.5200348", "text": "public void ensureIsDisplayed() {\n (new WebDriverWait(driver, 20))\n .until(ExpectedConditions.visibilityOf(buttonToUploadRecord));\n }", "title": "" }, { "docid": "742e8e6a4719bd42f346d9aa19abde2d", "score": "0.5199572", "text": "@Override\n public final boolean empty(){return (this.size()==0);}", "title": "" }, { "docid": "80a52b30cadb8ba9f2a0ea2630feeab2", "score": "0.51980877", "text": "@FXML\n protected void btnNothingPressed()\n {\n noNone++;\n\n //set the number who voted none to the none display, grammatically formatting it.\n if (noNone == 1)\n {\n lblOutNothing.setText(\"1 person does not sweeten coffee.\");\n }\n else if (noNone >= 1)\n {\n lblOutNothing.setText(noNone + \" people do not sweeten coffee.\");\n }\n\n /*runs method that should run each time a button is pressed.\n Provides utilities such as checking visibility, counting total votes and disabling at 5 votes.*/\n buttonPressed();\n }", "title": "" }, { "docid": "891814043188d1d7025d557a52d16169", "score": "0.5196255", "text": "public boolean btnPickUpDisplayed()\r\n\t{\r\n\t\treturn btnPickUp.isDisplayed();\r\n\t}", "title": "" }, { "docid": "2e2702c88e973790867ba60684d8249e", "score": "0.5193006", "text": "public void displayErrorConfirmButton() {\n clearView(sideBar);\n\n JButton confirmErrorButton = new JButton(\"ok, mam to\");\n confirmErrorButton.addActionListener(action -> getMainWindowInstance().displaySongs());\n sideBar.add(confirmErrorButton);\n }", "title": "" }, { "docid": "afbffebca7e87327b184ebfdddf9dbee", "score": "0.5188439", "text": "public boolean isEmpty() {\n return (rows() == 0) || (cols() == 0);\n }", "title": "" }, { "docid": "2d4f8d63a22cdf179d346a5c74f6cb7a", "score": "0.5183119", "text": "@Override\n protected void updateItem(Asset assetToShowInCell, boolean empty) {\n super.updateItem(assetToShowInCell, empty);\n\n if (empty || assetToShowInCell == null) {\n\n this.setText(null);\n\n this.setGraphic(null);\n } else {\n //define the values which are to be displayed in the List view\n this.setText(\"ID: \"+assetToShowInCell.getAssetID() + \" Name: \" +assetToShowInCell.getAssetName());\n }\n\n }", "title": "" }, { "docid": "56539eefbde1531080f57593f7843fec", "score": "0.51815486", "text": "private void checkAdapterIsEmpty() {\n if (mDetailsRecyclerViewAdapter.getItemCount() == 0) {\n mEmptyView.setVisibility(View.VISIBLE);\n } else {\n mEmptyView.setVisibility(View.GONE);\n\n }\n }", "title": "" }, { "docid": "a74e3884edb549a65cd6d385ad0824eb", "score": "0.51714724", "text": "@Override\n public boolean isEmpty(){\n return super.isEmpty();\n }", "title": "" }, { "docid": "d471f7836561e1f3130da542e1c0fa4a", "score": "0.5170475", "text": "@Override\n\tpublic boolean elementoCaducado() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "524b4a5d7339b45cc9eaa661fb7ee45c", "score": "0.5170237", "text": "abstract boolean isDataEmpty();", "title": "" }, { "docid": "d0cc9d706640fcac92f5756d39ae47d2", "score": "0.5166624", "text": "boolean hasRows();", "title": "" }, { "docid": "281449da7fd5f6fb8f74026d83bd10d1", "score": "0.51651484", "text": "public boolean isEmpty()\r\n {\r\n return (number_of_entries == 0);\r\n }", "title": "" }, { "docid": "672c71295c6a18305db9df4d116fc3b5", "score": "0.51609784", "text": "public boolean isEmpty() {\r\n return numberOfItems == 0;\r\n }", "title": "" }, { "docid": "b5aaadf6a62ca6bb2ef748db454fb89d", "score": "0.5155934", "text": "<R> Children isNotEmpty(boolean execute, ColumnFunction<R, ?> column);", "title": "" }, { "docid": "87ba6e62d40948691708f2d7146803cb", "score": "0.5151591", "text": "public void updateEmptyStatus() {\n RecyclerView.Adapter adapter = getAdapter();\n if (adapter == null || adapter.getItemCount() == 0) {\n View view = this.mEmptyView;\n if (view != null) {\n view.setVisibility(0);\n super.setVisibility(8);\n } else if (!this.isHideViewCalled) {\n super.setVisibility(0);\n }\n } else {\n View view2 = this.mEmptyView;\n if (view2 != null) {\n view2.setVisibility(8);\n }\n if (!this.isHideViewCalled) {\n super.setVisibility(0);\n }\n }\n }", "title": "" }, { "docid": "4ac428544272c2682e4db09478164cc4", "score": "0.5148828", "text": "public void insertBlankRow() throws WellException {\n \n Label label = null;\n \n if (this.writableSheet != null) {\n \n try {\n label = new Label(0, this.currentRow, \"\");\n this.writableSheet.addCell(label);\n this.currentRow++;\n } catch (Exception e) {\n throw new WellException(\"com.io.Excel.insertBlankRow: \"\n + e.toString());\n }\n \n } else {\n throw new WellException(\"com.io.Excel.insertBlankRow: \"\n + \"No ha creado ninguna hoja de calculo\");\n }\n }", "title": "" }, { "docid": "8011ea17e8c1779defc9a15d5ea2f403", "score": "0.5147284", "text": "public boolean isSaveSearchButtonDisplayed(){\n WebDriverWait wait = new WebDriverWait(driver, 10);\n wait.until(ExpectedConditions.elementToBeClickable(driver.findElement(this.saveThisSearchButton)));\n\n // toDo: Get the visibility of the button\n boolean isSearchButtonDisplayed = false;\n return isSearchButtonDisplayed;\n }", "title": "" }, { "docid": "c53daf7839d22142a2aa5e578a17c370", "score": "0.51452756", "text": "public void showPreviousRow()\n { \n try\n { \n if (rs == null || rs.isFirst()) return;\n rs.previous();\n dataPanel.showRow(rs);\n }\n catch (SQLException e)\n { \n JOptionPane.showMessageDialog(this, e);\n } \n }", "title": "" }, { "docid": "f4b29c4e02eddb0311f963b49f2e8c0e", "score": "0.51452214", "text": "private boolean showViewByDataExistence() {\n\t\tCursor c = mAdapter.queryAllReceipts();\n\t\tint numTrans = c.getCount();\n\t\tif (numTrans < 1) {\n\t\t\t/*\n\t\t\t * No expense data. We return false.\n\t\t\t */\n\t\t\tmExpenseWrapperViewGroup.setVisibility(View.GONE);\n\t\t\tmEmptyDataView.setVisibility(View.VISIBLE);\n\t\t\tmDeleteButton.setVisibility(View.GONE);\n\t\t\treturn false;\n\t\t}\n\t\tmExpenseWrapperViewGroup.setVisibility(View.VISIBLE);\n\t\tmEmptyDataView.setVisibility(View.GONE);\n\t\tmDeleteButton.setVisibility(View.VISIBLE);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a1ce186900833c30439b34fd9280a680", "score": "0.51419383", "text": "public boolean isEmpty ()\n {\n return menu.getComponentCount () == 0;\n }", "title": "" }, { "docid": "8d6334b574c5c4dcc00fe6cb7ebe7d1e", "score": "0.5141631", "text": "private boolean rowIsFull(int row) {\n\t\treturn widths[row] >= width;\n\t}", "title": "" }, { "docid": "4f7f3cbebad5affa52439c3255ef45c0", "score": "0.51384085", "text": "@Override\n\t\t\tpublic TableCell<UnitResultItem, String> call(TableColumn param) {\n\t\t\t\treturn new TableCell<UnitResultItem, String>(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void updateItem(String item, boolean empty){\n\t\t\t\t\t\tsuper.updateItem(item, empty);\n\t\t\t\t\t\tif(!isEmpty()){\n\t\t\t\t\t\t\tthis.setTextFill(Color.GREEN);\n\t\t\t\t\t\t\tif(item.contains(\"false\")) \n\t this.setTextFill(Color.RED);\n\t\t\t\t\t\t\telse if(item.contains(\"true\"))\n\t\t\t\t\t\t\t\tthis.setTextFill(Color.GREEN);\n\t setText(item);\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}", "title": "" }, { "docid": "0376e25d94aacfbc067cf63260ed4df2", "score": "0.5137876", "text": "private boolean topRowsEmpty() {\r\n\t\tfor (int i = 1; i >= 0; i--) {\r\n\t\t\tfor (int k = 0; k < grid.getNumCols(); k++)\r\n\t\t\t\tif (grid.get(new Location(i, k)) instanceof Block) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "f626d092f86a22548d6146c8e4ae2f44", "score": "0.51327926", "text": "void checkEmptyTextFields() {\n String a = mQuestion.getText().toString().trim();\n String b = mChoices[0].getText().toString().trim();\n String c = mChoices[1].getText().toString().trim();\n String d = mChoices[2].getText().toString().trim();\n String e = mChoices[3].getText().toString().trim();\n\n if (a.isEmpty() || b.isEmpty() || c.isEmpty() || d.isEmpty() || e.isEmpty() || mUserPressed == -1) {\n mNextButton.setEnabled(false);\n }\n else{\n mNextButton.setEnabled(true);\n }\n }", "title": "" }, { "docid": "8dc705b8025ab2929d21c3cd3416542b", "score": "0.51315427", "text": "public String btnOK_action() {\n pnlPopUpMsgConf.setRendered(false);\n return null;\n }", "title": "" }, { "docid": "f5728149e1de74c82d3b5aee61a767ba", "score": "0.51261765", "text": "public static void BlankRow()\n\t {\n\t Reporter.log(\" \");\n\t System.out.println(\" \");\n\t }", "title": "" }, { "docid": "3f82154d15792b33b80b1cdca44e0fcd", "score": "0.51252496", "text": "public boolean isFilled() {\n return(!this.getText().trim().equals(\"\"));\n }", "title": "" }, { "docid": "076126ed23169862ca92ef234c967039", "score": "0.51204884", "text": "public final boolean atFirst() {\n\t\treturn currentRow == 0;\n\t}", "title": "" }, { "docid": "de0f7e585d01d1902209e5d5f9828cfa", "score": "0.5116632", "text": "public boolean hasRowLabels() {\n\t\tif (rowLabels == null) {\n\t\t\treturn true; // Don't yet have labels.\n\t\t}\n\t\t\n\t\tfor (String label : rowLabels) {\n\t\t\tif (!label.isEmpty()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "11c95a532a84b54d750551517d2a6492", "score": "0.5111386", "text": "@Override\n public boolean hasNext() {\n return rowIndex < table.getRowCount();\n }", "title": "" }, { "docid": "098ae96a8a90c9976cad14219879ed9a", "score": "0.5110339", "text": "private void showTable() {\n hd = new HoaDonDAOImp().getList();\n model.setRowCount(0);\n for(HoaDon hoaDon:hd){\n model.addRow(new Object[]{\n Table.getRowCount()+1, hoaDon.getNgayLapHD() ,hoaDon.getTongTien()\n });\n }\n }", "title": "" }, { "docid": "dfe4340644548d062ab7819652449fda", "score": "0.5093668", "text": "@Override\n public void showEmptyView(boolean toShow) {\n if (toShow) {\n recyclerView.setVisibility(View.INVISIBLE);\n emptyView.setVisibility(View.VISIBLE);\n } else {\n recyclerView.setVisibility(View.VISIBLE);\n emptyView.setVisibility(View.INVISIBLE);\n }\n }", "title": "" }, { "docid": "9287b96a92563daabca402d15e6a1b40", "score": "0.5092659", "text": "@Override\n public boolean isEmpty() {\n return this.size() == 0;\n }", "title": "" }, { "docid": "d1f223c1268832513e739b45b53812e8", "score": "0.5083496", "text": "public void setShowEmpty(Boolean showEmpty) {\n\t\tthis.showEmpty = showEmpty;\n\t}", "title": "" }, { "docid": "e93742d2fd2a1e86757f59262a38797c", "score": "0.50831586", "text": "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\t\tint row[] = table.getSelectedRows();\n\t\t\t\t\t\tfor (int i = 0; i < row.length; i++) {\n\t\t\t\t\t\t\tString str = (String) model.getValueAt(row[i], 0);\n\t\t\t\t\t\t\tReviseData rd = new ReviseData(str, 0);\n\t\t\t\t\t\t\trd.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "title": "" }, { "docid": "312f4b4e9db0f4d9ea0996000ad712b9", "score": "0.5081607", "text": "private boolean showConfirm(){\n Vector <String> columnNames = new Vector <String>();\n columnNames.add(new String(\"Before\"));\n columnNames.add(new String(\"After\"));\n DefaultTableModel d = new DefaultTableModel(new Vector <String> (), columnNames);\n\n for(int i = 0; i<vector.size(); i++){\n if(nvector.get(i).getFileName().equals(\"Error\") == true && nvector.get(i).getFilePath().equals(\"File not exists\") == true){\n d.addRow(new String[]{vector.get(i).getFileName(), \"Error: File not exist\"});\n }\n else{\n d.addRow(new String[]{vector.get(i).getFileName(), nvector.get(i).getFileName()});\n }\n }\n JTable table = new JTable(d);\n JScrollPane scrollPane = new JScrollPane(table);\n int select = JOptionPane.showConfirmDialog(null, scrollPane);\n\n if(select == JOptionPane.YES_OPTION){\n return true;\n }\n return false;\n }", "title": "" } ]
b78fc283227bf9f54384ee9cc813aa3e
THIS METHOD COLLECT THE PROCESS DETAILS DATA
[ { "docid": "42243d0bf0ca5c057bc9a33c7968fe2b", "score": "0.0", "text": "public void callF9Details(PAProcess bean,HttpServletRequest request)\r\n\t {\r\n\t\t String sql =\"SELECT EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME, ALLW_EMP_ID, ALLW_PERCENT, ALLW_AMOUNT_ENTITLE, \"\r\n\t\t\t\t +\" ALLW_AMOUNT_FINAL, NVL(ALLW_REMARKS,' ') ,NVL(ALLW_ACTUAL_ENTITLE,0),NVL(ALLW_TAX_AMT,0),NVL(ALLW_TOTAL_AMT,0) FROM HRMS_ALLOWANCE_EMP_DTL \"\r\n\t\t\t\t +\" LEFT JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID= HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID) \"\r\n\t\t\t\t +\" WHERE HRMS_ALLOWANCE_EMP_DTL.ALLW_ID =\"+bean.getPaProcessId() \r\n\t\t +\" ORDER BY EMP_FNAME,HRMS_EMP_OFFC.EMP_ID\" ;\r\n\t\t Object[][] empObj = getSqlModel().getSingleResult(sql); \r\n\t\t ArrayList paLIst = new ArrayList();\r\n\t\t for(int i =0 ; i<empObj.length;i++)\r\n\t\t\t { \r\n\t\t \t Object[][] appRate= getApprisalRate(\"\"+empObj[i][1]); \r\n\t\t\t\t PAProcess bean1 = new PAProcess();\r\n\t\t\t\t bean1.setItEmpName(String.valueOf(empObj[i][0]));\r\n\t\t\t\t bean1.setItEmpId(\"\"+empObj[i][1]); \r\n\t\t\t\t bean1.setItRating(String.valueOf(appRate[0][0]));\r\n\t\t\t\t bean1.setItRatingScore(String.valueOf(appRate[0][1])); \r\n\t\t\t\t bean1.setItEntitledAmtScore(String.valueOf(empObj[i][2])); \r\n\t\t\t\t bean1.setItEntitledAmt(String.valueOf(empObj[i][3]));\r\n\t\t\t\t bean1.setItPIAmt(String.valueOf(empObj[i][4])); \r\n\t\t\t\t bean1.setItRemark(String.valueOf(empObj[i][5])); \r\n\t\t\t\t bean1.setItEntitledAmtActual(String.valueOf(empObj[i][6])); \r\n\t\t\t\t bean1.setItTaxAmt(String.valueOf(empObj[i][7])); \r\n\t\t\t\t bean1.setItTotalAmt(String.valueOf(empObj[i][8])); \r\n\t\t\t\t paLIst.add(bean1); \r\n\t\t\t }\r\n\t\t\t bean.setPaList(paLIst);\r\n\t\t\t bean.setProcessStatus(\"done\");\r\n\t\t\t logger.info(\"bean.getSalaryFlag() Before \"+bean.getProcessStatus());\r\n\t\t\t \r\n\t\t\t if(bean.getHiddenChk().equals(\"Y\"))\r\n\t\t\t {\r\n\t\t\t\t bean.setSalaryFlag(\"true\");\r\n\t\t\t }else\r\n\t\t\t {\r\n\t\t\t\t bean.setSalaryFlag(\"false\");\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t if(bean.getFinaliseFlag().equals(\"U\")||bean.getFinaliseFlag().equals(\"\")||bean.getFinaliseFlag().equals(\"null\")||bean.getFinaliseFlag()==null){\r\n\t\t\t\t \r\n\t\t\t\t bean.setFlagButton(\"Lock\");\r\n\t\t\t }\r\n\t\t\t if(bean.getFinaliseFlag().equals(\"L\")){ \r\n\t\t\t\t bean.setFlagButton(\"Unlock\");\r\n\t\t\t }\r\n\t\t\t \r\n\t }", "title": "" } ]
[ { "docid": "fa68d89ed3f4c603ae37ef7a717996ea", "score": "0.6505045", "text": "public void extractData() {\n try {\n //Get the thread details of each threads\n StringBuilder dump = new StringBuilder();\n ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();\n ThreadInfo[] threadInfos = threadMXBean.getThreadInfo(threadMXBean.getAllThreadIds(), 1000);\n\n //Write the thread infos into the string builder to create thread dump\n for (ThreadInfo threadInfo : threadInfos) {\n dump.append('\"');\n dump.append(threadInfo.getThreadName());\n dump.append(\"\\\"\");\n\n final Thread.State state = threadInfo.getThreadState();\n dump.append(\"\\n java.lang.Thread.State: \");\n dump.append(state);\n\n final StackTraceElement[] stackTraceElements = threadInfo.getStackTrace();\n\n for (final StackTraceElement stackTraceElement : stackTraceElements) {\n dump.append(\"\\n at \");\n dump.append(stackTraceElement);\n }\n\n dump.append(\"\\n\\n\");\n }\n //Write the thread dump into a text file\n threadDumpWriter(dump.toString());\n } catch (Exception e) {\n log.error(\"Thread dump generation failed !!! \" + e.getMessage());\n }\n }", "title": "" }, { "docid": "13eaaa205aab40e465b1b45fb4ae0b87", "score": "0.63555336", "text": "public void readDetails() {\r\n System.out.println(\"Site: \"+ this.getName() + \" Colour: \"+ this.getColour()+ \" Houses: \"+this.getNoOfHouses()+\" Owner: \"+this.getOwner());\r\n }", "title": "" }, { "docid": "d990f743eb73c52b37c482fc475392a9", "score": "0.6332855", "text": "public HashMap<String, Integer> getRelatedProcessesData();", "title": "" }, { "docid": "8f384b02c5c3f7aa50f9297f6a052abd", "score": "0.6160902", "text": "public void getDetails() {\n\t\tSystem.out.println(\"A/C No: \" + this.acno + \" | NAME: \" + this.name + \" | BALANCE: \" + this.bal);\n\t}", "title": "" }, { "docid": "5c363020ed143494ce8f8b0b6b72c4e0", "score": "0.6086701", "text": "public void startRetriveDataInfo() {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append(TEXT_2);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_3);\n \n\t\t\t}\n\t\t}", "title": "" }, { "docid": "bdd53129f9b1c6b7fcb8abfdc983312a", "score": "0.59631634", "text": "public void report() \n {\n Collections.sort(fList, new sortByProcessId());\n System.out.println(\"Process\\tTurnaround Time\\tWaiting Time\");\n for (int i = 0; i < fList.size(); i++) \n {\n System.out.println(\n fList.get(i).getId() + \"\\t\" + fList.get(i).getTurnAround() + \"\\t\\t\" + fList.get(i).getWaiting());\n }\n System.out.println();\n }", "title": "" }, { "docid": "d5a4dc057e6d84961d7c8315d7877cdb", "score": "0.59072906", "text": "public void updateProcessInformation()\n {\n\t\tUserProcess process = Client.getInstance().getProcesses().getMyProcess().get(Integer.parseInt(ControllerProcessMain.getInstance().getRequestID()));\n\t\tinitiator_name_text.setText(process.getIntiatorId());\n\t\tinitiator_email_text.setText(process.getEmail());\n\t\tinitiator_role_text.setText(process.getRole());\n\t\tinformation_system_text.setText(\"\" + process.getSystem_num());\n\t\tcurrent_stage_text.setText(MyHashMaps.getProcessStageText(Double.parseDouble(process.getProcess_stage())));\n\t\trequested_change_text.setText(process.getRequest_description());\n\t\texplanation_text.setText(process.getExplanaton());\n\t\tnotes_text.setText(process.getNotes());\n\t\trequest_date_text.setText(process.getCreation_date());\n\t\trequest_id_text.setText(\"\" + process.getRequest_id());\n\t\tstatus_text.setText(process.getStatus());\n\t\tcurrent_stage_due_time_text.setText(process.getCurrent_stage_due_date());\n }", "title": "" }, { "docid": "b737188da02c8c0c309e32984ec2705d", "score": "0.5891066", "text": "public void getDetails(){\n System.out.println(title+\", \"+author+\", $\"+price);\n }", "title": "" }, { "docid": "3567d2e380d360b376f3a9aec559b7b7", "score": "0.58578455", "text": "public String getProcessInfo() {\n return (String) getAttributeInternal(PROCESSINFO);\n }", "title": "" }, { "docid": "d1988432622519038f4fae0a143109c4", "score": "0.58328056", "text": "private void processCollectedData() {\n\n\t\t\tif (Log.DEBUG) {\n\n\t\t\t\tfinal int numberOfRequests = this.requestCounter.get();\n\t\t\t\tif (numberOfRequests == 0)\n\t\t\t\t\treturn;\n\n\t\t\t\tfinal float avg = (float) this.sumOfRetries.get() / (float) numberOfRequests;\n\n\t\t\t\tfinal StringBuilder sb = new StringBuilder();\n\t\t\t\tsb.append(this.numberOfPackets);\n\t\t\t\tsb.append(\"\\t: \");\n\t\t\t\tsb.append(avg);\n\t\t\t\tsb.append(\" (min \");\n\t\t\t\tsb.append(this.minMethodName);\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(this.minRetries.get());\n\t\t\t\tsb.append(\", max \");\n\t\t\t\tsb.append(this.maxMethodName);\n\t\t\t\tsb.append(' ');\n\t\t\t\tsb.append(this.maxRetries.get());\n\t\t\t\tsb.append(')');\n\n\t\t\t\tLog.debug(sb.toString());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5771e7490d15a05ef8744234b3b45db2", "score": "0.58207965", "text": "private void processCollectedData() {\n\n\t\t\tfinal int numberOfRequests = this.requestCounter.getAndSet(0);\n\t\t\tif (numberOfRequests == 0)\n\t\t\t\treturn;\n\n\t\t\tfinal float avg = (float) this.sumOfRTTs.getAndSet(0) / (float) numberOfRequests;\n\t\t\tfinal int min = this.minRTT.getAndSet(Integer.MAX_VALUE);\n\t\t\tfinal String minMethodName = this.minMethodName;\n\t\t\tthis.minMethodName = null;\n\t\t\tfinal int max = this.maxRTT.getAndSet(Integer.MIN_VALUE);\n\t\t\tfinal String maxMethodName = this.maxMethodName;\n\t\t\tthis.maxMethodName = null;\n\n\t\t\tif (Log.DEBUG) {\n\n\t\t\t\tfinal StringBuilder sb = new StringBuilder(\"RTT stats: \");\n\t\t\t\tsb.append(avg);\n\t\t\t\tsb.append(\" ms avg,\\t: \");\n\t\t\t\tsb.append(min);\n\t\t\t\tsb.append(\" ms min (\");\n\t\t\t\tsb.append(minMethodName);\n\t\t\t\tsb.append(\"),\\t\");\n\t\t\t\tsb.append(max);\n\t\t\t\tsb.append(\" ms max (\");\n\t\t\t\tsb.append(maxMethodName);\n\t\t\t\tsb.append(')');\n\n\t\t\t\tLog.debug(sb.toString());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c447de0db1c3f2c73acfc21c7cff4680", "score": "0.5790929", "text": "public String getCustProcessedDataById() {\n\t\tlogger.info(\"getCustProcessedDataById() : NlyteCustProcessAction\");\n\t\tList<NltyeCustDataSelectProcessBean> processList = this.nlyteService\n\t\t\t\t.getCustomerDataProcessedListById(getProcessNctId());\n\t\tIterator<NltyeCustDataSelectProcessBean> itr = processList.iterator();\n\t\tStringBuffer sbrObj = new StringBuffer();\n\t\twhile (itr.hasNext()) {\n\t\t\tNltyeCustDataSelectProcessBean nCustDataProcess = itr.next();\n\t\t\tsbrObj.append(\"<option value='\").append(nCustDataProcess.getnMasterDataTrans().getNmtId()).append(\"'>\")\n\t\t\t\t\t.append(nCustDataProcess.getnMasterDataTrans().getModelTx()).append(\"</option>\");\n\t\t}\n\t\tif (sbrObj != null) {\n\t\t\tProcesses = sbrObj.toString();\n\t\t}\n\t\treturn \"success\";\n\t}", "title": "" }, { "docid": "2d9912ba74253669151fce1fb4962044", "score": "0.5778503", "text": "private void getIncomingData() {\n Bundle bundle = getIntent().getExtras();\n if (bundle != null && bundle.containsKey(\"DOCTOR_ID\")) {\n DOCTOR_ID = bundle.getString(\"DOCTOR_ID\");\n if (DOCTOR_ID != null) {\n /* SHOW THE PROGRESS AND FETCH THE DOCTOR'S DETAILS */\n linlaProgress.setVisibility(View.VISIBLE);\n fetchDoctorDetails();\n } else {\n Toast.makeText(getApplicationContext(), \"Failed to get required info...\", Toast.LENGTH_SHORT).show();\n finish();\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Failed to get required info...\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "title": "" }, { "docid": "ba9728cc151abf36b27f38f9bf1b5ac6", "score": "0.5737913", "text": "public void retrieveData() {\n for (int i = 0; i < eventList.size() ; i++) {\n userGoing[i] = eventList.get(i).getUserGoing();\n eventTitle[i] = eventList.get(i).getName();\n eventOwner[i] = eventList.get(i).getOwner();\n }\n }", "title": "" }, { "docid": "20e8179d8568f2944ddd16f8dfe755a8", "score": "0.5712037", "text": "public void printResults(Process process) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));\n String line = \"\";\n while ((line = reader.readLine()) != null) {\n System.out.println(line);\n }\n }", "title": "" }, { "docid": "bc3095ddc78315c55629655938ee4ddc", "score": "0.56881934", "text": "public String getInfo() {\n StringBuffer buf = new StringBuffer();\n buf.append(\"Job \"+toString());\n Date start = new Date(startTime);\n //buf.append(\" start time: \"+start+\"\\n\");\n if (finished) {\n // Date end = new Date(endTime);\n //buf.append(\" end time: \"+end+\"\\n\");\n long time = endTime - startTime;\n buf.append(\" took: \"+TextUtils.getElapsedTime(time));\n buf.append(\" (started at \"+start+\")\");\n } else if (getProgress() == null) {\n long time = System.currentTimeMillis()-startTime;\n \t buf.append(\" has not finished. Current running time: \" + TextUtils.getElapsedTime(time));\n } else {\n buf.append(\" did not successfully finish.\");\n }\n return buf.toString();\n }", "title": "" }, { "docid": "3ab8bc5b29981403401a4b72acb378af", "score": "0.5658407", "text": "public void dispInfo() {\n\t\tSystem.out.println(\"id is \" + id);\n\t\tSystem.out.println(\"name is \" + name);\n\t}", "title": "" }, { "docid": "1f5aac95bb54443d9380c12337aa32cb", "score": "0.564831", "text": "public void getInfo() {\n System.out.println(\"Подсчет стоимости автомобиля!\");\n }", "title": "" }, { "docid": "ae4cfbfae7a9b537db9ec1af88e1993f", "score": "0.56467617", "text": "ServiceResponse<Process> readAllProcess();", "title": "" }, { "docid": "618d0118c76700b55c3df976247532b8", "score": "0.5641014", "text": "public String Process_List(String VM_ID);", "title": "" }, { "docid": "785c96e38ff654c8910c90aa4568060d", "score": "0.5590983", "text": "public void displaySystemDetails(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Airports:\");\r\n\t\tfor (Map.Entry<String, Port> entry : airports.entrySet()) {\r\n\t\t\tSystem.out.println(\" \" + entry.getKey());\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Airlines:\");\r\n\t\tfor (Map.Entry<String, Airline> entry : airlines.entrySet()) {\r\n\t\t\tSystem.out.println(\" \" + entry.getKey() + \":\");\r\n\t\t\tentry.getValue().getDetails();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "febadec59d2787ed37a521b11b0fe57d", "score": "0.558781", "text": "public void getdata() {\n\t\t\r\n\t}", "title": "" }, { "docid": "036342998cff63b7856e4435824d4ee3", "score": "0.5570636", "text": "@Override\n public String getInfo() {\n return this.info;\n }", "title": "" }, { "docid": "b0eba87fdbb7552986e9893ad4de2c5f", "score": "0.5560814", "text": "public void printDetails()\r\n\t{\r\n\t\t//Declare a date format for outputting correctly\r\n\t\tDateTimeFormatter dateFormat = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"Episode \" + getEpisodeNumber() + \": \" + getTitle() + \" | Running Time: \" + getRunningTime() + \" minutes | Date Aired: \" \r\n\t\t\t\t+ dateFormat.format(getDateAired()) + \"\\nSynosis: \" + getSynopsis());\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c6bb99f4da10da0efc72f501cde851ff", "score": "0.5560546", "text": "public void getPersonDetails() {\n\t\tSystem.out.println(\"Person Name Is :: \"+this.getName());\n\t\tSystem.out.println(\"Person State Is :: \"+this.getState());\n\t}", "title": "" }, { "docid": "c9c742d71098e22f75b261f8375a4adf", "score": "0.5553821", "text": "public void printDetails()\n {\n //System.out.println(\"Title: \" + title + \"\\nAuthor: \" + author + \"\\nPages: \" + pages);\n //System.out.println(\"Title: \" + title + \"\\nAuthor: \" + author + \"\\nPages: \" + pages + \"\\nRef Number: \" + refNumber);\n System.out.println(\"Title: \" + title + \"\\nAuthor: \" + author + \"\\nPages: \" + pages + \"\\nRef Number: \" + refNumber + \"\\nBorrowed: \" + borrowed);\n \n if (refNumber.length() > 0)\n System.out.println(\"Ref Number: \" + refNumber);\n else\n System.out.println(\"Ref Number: ZZZ\");\n }", "title": "" }, { "docid": "04c53c2b6ea32e702d7860333169340a", "score": "0.5546391", "text": "@Override\r\n\tpublic List<PinfoVO> info(int pno) throws Exception {\n\t\treturn dao.info(pno);\r\n\t}", "title": "" }, { "docid": "014f25503c011f89281c05fe1f35d1e9", "score": "0.55442905", "text": "public void details(){\n\t\tSystem.out.println(this.model.toString());\n\t}", "title": "" }, { "docid": "7a178d7d09db990f96ef45214aaf39c7", "score": "0.5543423", "text": "public void showData(){\n\t\tfor (int i = 0; i < hm.size(); i++) {\n\t\t\tLogger.writeMessage(\"Stored Data Value:\"+ hm.get(i),DebugLevel.DATASTRUCTURE);\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "272bab51da95cd2f4028cff078799530", "score": "0.55307645", "text": "protected String loadDocumentDetails ()\n\t{\n\t\tMMOVIMIENTOFONDOS mov = (MMOVIMIENTOFONDOS)getPO();\n\t\tmov.setDateAcct(mov.getDateTrx());\n\t\tmov.save();\n\t\t\n\t\tsetDateDoc(mov.getDateAcct());\n\t\tsetC_Currency_ID(NO_CURRENCY);\n\t\t//\tContained Objects\n\t\tdeb_lines = loadLinesDebito();\n\t\tcred_lines = loadLinesCredito();\n\t\t\n\t\tlog.fine(\"Lines=\" + (deb_lines.length + cred_lines.length));\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5299252394a3432710931d491c8e0596", "score": "0.5527184", "text": "Map<String, String> getBusinessProcesses();", "title": "" }, { "docid": "12003299e615217979c04a2384e9db46", "score": "0.552107", "text": "public String getInfo() {\r\n return this.info;\r\n }", "title": "" }, { "docid": "64d9f6c65f78274501704623c8658482", "score": "0.5513203", "text": "java.lang.String getInfo();", "title": "" }, { "docid": "76576a8cb5aa1a29a652670c4a8c9225", "score": "0.5510404", "text": "public void printInfo() {\n\t\tSystem.out.println(\"============================================\");\n\t\tfor (PageId pid: lockMap.keySet()) {\n\t\t\tString result = pid.toString() + \" has locks: \";\n\t\t\tfor (Lock l : lockMap.get(pid)) {\n\t\t\t\tresult += l.toString();\n\t\t\t}\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"============================================\");\n\t}", "title": "" }, { "docid": "ee1b9452f220ed81a3b103d9d4e206f4", "score": "0.5507015", "text": "@Override\n\tpublic void collect() {\n\t\t/**\n\t\t * Creates the two array list of array list of type integer where our final information will be stored and sent to be calculated for cpu usage percentage\n\t\t */\n\t\tArrayList<ArrayList<Integer>> firstRound = new ArrayList<ArrayList<Integer>>();\n\t\tArrayList<ArrayList<Integer>> secondRound = new ArrayList<ArrayList<Integer>>();\n\n\t\ttry {\n\t\t\t/**\n\t\t\t * Instantiates a string called currentline which will be used to read the current line that the or loop is on for file /proc/stat\n\t\t\t */\n\t\t\tString currentLine;\n\n\t\t\t/**\n\t\t\t * the cpuReader opens the file /proc/stat\n\t\t\t */\n\t\t\tcpuReader = new BufferedReader(new FileReader(\"/proc/stat\"));\n\n\t\t\t// SKIPS FIRST LINE ON PURPOSE\n\t\t\tcurrentLine = cpuReader.readLine();\n\n\t\t\t/**\n\t\t\t * Loops through /proc/stat and grabs the first four values of any cpu which are the information we are looking for\n\t\t\t */\n\t\t\twhile ((currentLine = cpuReader.readLine()) != null) {\n\t\t\t\tArrayList<Integer> grabFour = new ArrayList<Integer>();\n\t\t\t\tif (currentLine.startsWith(\"cpu\")) {\n\t\t\t\t\tString[] tokens = currentLine.split(\" \");\n\t\t\t\t\tgrabFour.add(Integer.parseInt(tokens[1]));\n\t\t\t\t\tgrabFour.add(Integer.parseInt(tokens[2]));\n\t\t\t\t\tgrabFour.add(Integer.parseInt(tokens[3]));\n\t\t\t\t\tgrabFour.add(Integer.parseInt(tokens[4]));\n\t\t\t\t\t/**\n\t\t\t\t\t * Now we add those four bits of information and add them to another array list so that we can call one element in that array list and immediately get all the information\n\t\t\t\t\t * regarding one cpu\n\t\t\t\t\t */\n\t\t\t\t\tfirstRound.add(grabFour);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// for (int i = 0; i < firstRound.size(); i++) {\n\t\t\t// System.out.println(\"First Round: \" + firstRound.get(i));\n\t\t\t// }\n\n\t\t\t/**\n\t\t\t * This is where we force the Thread to sleep for 250ms so that we can move on to grabbing our second bit of information\n\t\t\t */\n\t\t\ttry {\n\t\t\t\t// System.out.println(\"SLEEPING\");\n\t\t\t\t// essentially a wait\n\t\t\t\tThread.sleep(250);\n\t\t\t\t// System.out.println(\"DONE SLEEPING\");\n\t\t\t} catch (InterruptedException 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\t/**\n\t\t\t * Open up a new /proc/stat since we have slept for 250ms\n\t\t\t * repeat above process only changing which array list we put in our final information\n\t\t\t */\n\t\t\tcpuReader = new BufferedReader(new FileReader(\"/proc/stat\"));\n\n\t\t\t// SKIPS FIRST LINE ON PURPOSE\n\t\t\tcurrentLine = cpuReader.readLine();\n\n\t\t\twhile ((currentLine = cpuReader.readLine()) != null) {\n\t\t\t\tArrayList<Integer> grabFour = new ArrayList<Integer>();\n\t\t\t\tif (currentLine.startsWith(\"cpu\")) {\n\t\t\t\t\tString[] tokens = currentLine.split(\" \");\n\t\t\t\t\tgrabFour.add(Integer.parseInt(tokens[1]));\n\t\t\t\t\tgrabFour.add(Integer.parseInt(tokens[2]));\n\t\t\t\t\tgrabFour.add(Integer.parseInt(tokens[3]));\n\t\t\t\t\tgrabFour.add(Integer.parseInt(tokens[4]));\n\t\t\t\t\tsecondRound.add(grabFour);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// for (int i = 0; i < secondRound.size(); i++) {\n\t\t\t// System.out.println(\"Second Round: \" + secondRound.get(i));\n\t\t\t// }\n\t\t\t// System.out.println(\"\\n\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t/**\n\t\t\t * Finally always close the file\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (cpuReader != null) {\n\t\t\t\t\tcpuReader.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Pass our two array lists into this function so that we can caluclate our CPU Percentage\n\t\t */\n\t\tCPUPercentage(firstRound, secondRound);\n\t}", "title": "" }, { "docid": "178c662e927fd71d60fb6616c96f141f", "score": "0.54990005", "text": "@Override\n public synchronized String getProcessStatus() \n {\n SimpleDateFormat df = new SimpleDateFormat(\"MM/dd' 'HH:mm\");\n Date date = null;\n long hour = 0;\n long min = 0;\n long sec = 0;\n StringBuffer buf = new StringBuffer(1024);\n FaxStatus status = null;\n String tmp = null;\n\n //\n // Display the name of the application and the ID of the application.\n buf.append(\"<br>\");\n buf.append(\"<table style=\\\"font-family: Arial, Helvetica, sans-serif; \");\n buf.append(\"font-size: 12px; border-width: 0; border-style: none; width: 300px\\\">\\r\\n\");\n buf.append(\"<tr>\\r\\n\");\n buf.append(String.format(\"<td width=\\\"200px\\\"><b>App Name: %s</b></td>\\r\\n\", getName()));\n buf.append(String.format(\"<td width=\\\"100px\\\"><b>App ID: %d</b></td>\\r\\n\", getId()));\n buf.append(\"</tr>\\r\\n\");\n buf.append(\"</table>\\r\\n\");\n\n //\n //\n buf.append(\"<table style=\\\"font-family: Arial, Helvetica, sans-serif; \");\n buf.append(\"font-size: 12px; border-width: 0; border-style: none; width: 850px\\\">\\r\\n\");\n\n buf.append(\"<tr>\\r\\n\");\n buf.append(\"<td width=\\\"50px\\\"><b>PID</b></td>\\r\\n\");\n buf.append(\"<td width=\\\"100px\\\"><b>Start Time</b></td>\\r\\n\");\n buf.append(\"<td width=\\\"100px\\\"><b>Running Time</b></td>\\r\\n\");\n buf.append(\"<td width=\\\"100px\\\"><b>Max Run Time</b></td>\\r\\n\");\n buf.append(\"<td width=\\\"300px\\\"><b>Current Action</b></td>\\r\\n\");\n buf.append(\"</tr>\\r\\n\");\n\n //\n // Format the data elements for display on the html page\n synchronized ( m_FaxProcs ) {\n for (int i = 0; i < m_FaxProcs.size(); i++) {\n status = m_FaxProcs.get(i).getFaxStatus();\n new Date(status.startTime);\n\n //\n // Convert to seconds and then break out the hours and minutes.\n // If this is not\n // done then the seconds will accumulate past 60. So will the\n // minutes.\n sec = status.runTime / ProcessServer.second;\n\n if (sec >= 3600) {\n hour = sec / 3600;\n sec = sec - hour * 3600;\n }\n\n if (sec >= 60) {\n min = sec / 60;\n sec = sec - min * 60;\n }\n\n tmp = String.format(\"%02d:%02d:%02d\", hour, min, sec);\n // maxRun = Double.toString(status.maxRunTime /\n // ProcessServer.hour) + \" HRS\";\n\n buf.append(\"<tr>\");\n buf.append(String.format(\"<td width=\\\"50px\\\">%d</td>\\r\\n\", status.id));\n buf.append(String.format(\"<td width=\\\"100px\\\">%s</td>\\r\\n\", df.format(date)));\n buf.append(String.format(\"<td width=\\\"100px\\\">%s</td>\\r\\n\", tmp));\n buf.append(String.format(\"<td width=\\\"100px\\\">%d</td>\\r\\n\", 0));\n buf.append(String.format(\"<td width=\\\"300px\\\">%s</td>\\r\\n\", status.currentAction));\n buf.append(\"</tr>\\r\\n\");\n\n hour = 0;\n min = 0;\n sec = 0;\n }\n }\n\n buf.append(\"</table>\");\n buf.append(\"<br>\");\n\n return buf.toString();\n }", "title": "" }, { "docid": "e9ff9f11ed9550379e0889d2d3480ad8", "score": "0.5496224", "text": "@Override\n\tpublic String getDescriptiveInformation() {\n\t\treturn _dmsPoc.getDescriptiveInformation();\n\t}", "title": "" }, { "docid": "3ed5c7cf244fe5674cd344d364ba51a3", "score": "0.5476394", "text": "private void getInfo()\n {\n Intent intent = getIntent();\n TripInfoStorage i = (TripInfoStorage)intent.getSerializableExtra(\"TripInfo\");\n info = i;\n }", "title": "" }, { "docid": "d774ef11d67d67854b8a6b565c2ef35f", "score": "0.546961", "text": "public void retrievedDataNumberInfo(INode node) {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append(TEXT_10);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_11);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_12);\n \n\t\t\t}\n\t\t}", "title": "" }, { "docid": "920075675aa920730c763954b2f48c82", "score": "0.5461091", "text": "public void getAppraiserOrPerformanceLeaderCBData()\n {\n \tint processID;\n \t\n \ttry\n \t{\n \t\tthis.procID = processID = ControllerProcessMain.instance.getSelectedRowProcID();//needs rows in the processes table\n \t}\n \tcatch(NullPointerException e)\n \t{\n \t\tSystem.out.println(\"No row was chosen\");\n \t\t\n \t\tAlert alert = new Alert(AlertType.INFORMATION);\n \t\n alert.setTitle(\"ALERT\");\n alert.setHeaderText(\"NO ROW WAS CHOSEN\");\n alert.setContentText(\"Please select a row in the processes table\");\n alert.showAndWait();\n this.procID = -1;\n \t\treturn;\n \t}\n \t\n \tif(this.intProcess_stage != Constants.STAGE_OF_APPOINTING_APPRAISER && this.intProcess_stage != Constants.STAGE_OF_EXECUTION)\n \t{\n \t\treturn;\n \t}\n\n \ttry {\n \t\tArrayList<Object> check = new ArrayList<Object>();\n \t\t//check.add(2);//process id\n \t\tcheck.add(processID);\n \t\tTranslator translator = new Translator(OptionsOfAction.GET_APPRAISER_AND_PERFORMANCE_LEADER_CB_DATA, check);\n \t\tClient.getInstance().handleMessageFromClientGUI(translator);\n \t}\n \tcatch(Exception e){\n \t\tSystem.out.println(\"EXCEPTION: Supervisor_ProcessMain_Controller - get ComboBox Data\");\n \t}\n }", "title": "" }, { "docid": "34dbc33c64af1babc57d17eecf978e61", "score": "0.5456255", "text": "@SuppressWarnings({ \"unchecked\", \"static-access\" })\n\t@Override\n\tprotected State onCollect() throws Exception {\n\n\t\tLinkedHashMap<String, Object> headlines = new LinkedHashMap<String, Object>();\n\t\theadlines.putAll(globalHeadlines);\n\t\t\n\t\theadlines.put(\"Last Sample Time\", SolGeneosAgent.onlyInstance.getCurrentTimeString());\n\t\theadlines.put(\"Monitor Class Name\", this.getName());\n\t\theadlines.put(\"Sampling Interval (secs)\", this.getSamplingRate());\n\t\t\n\t\t// Construct table content\n\t\tHttpPost post = new HttpPost(HTTP_REQUEST_URI);\n\t\tpost.setHeader(HEADER_CONTENT_TYPE_UTF8);\n\t\tpost.setEntity(new ByteArrayEntity(SHOW_USERS_REQUEST.getBytes(\"UTF-8\")));\n\t\t\n\t\t\n\t\tSampleHttpSEMPResponse resp = httpClient.execute(post, responseHandler);\n\t\t\n if (resp.getStatusCode() != 200) {\n\n \tthrow new Exception(\"Error occurred while sending request: \" + resp.getStatusCode() \n \t\t\t+ \" - \" + resp.getReasonPhrase());\n }\t \n String respBody = resp.getRespBody(); \n\t\tmultiRecordParser.parse(respBody);\n\t\t\n\t\t\n\t\t// Will take what is received as the table contents and then do further Java8 Streams based filtering... \n\t\tthis.receivedColumnNames = multiRecordParser.getColumnNames();\n\t\tthis.receivedTableContent = multiRecordParser.getTableContent();\n\t\t\n\t\tTreeMap<String, View> viewMap = getViewMap();\t\t\n \tif (viewMap != null && viewMap.size() > 0) {\n \t\tfor (Iterator<String> viewIt = viewMap.keySet().iterator(); viewIt.hasNext();) {\n \t\t\t\n \t\t\tint cliCount = \n\t\t\t\t\t\treceivedTableContent\n\t\t\t\t\t\t\t.stream()\n\t\t\t\t\t\t\t.filter( tableRow -> \"cli\".equalsIgnoreCase\n\t\t\t\t\t\t\t\t\t( ((ArrayList<String>)tableRow).get(1).toString()\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t.collect(Collectors.toList())\n\t\t\t\t\t\t\t.size() ;\n\t\t\t\t\n\t\t\t\tint ftpCount = \n\t\t\t\t\t\treceivedTableContent\n\t\t\t\t\t\t\t.stream()\n\t\t\t\t\t\t\t.filter( tableRow -> \"file-transfer\".equalsIgnoreCase\n\t\t\t\t\t\t\t\t\t( ((ArrayList<String>)tableRow).get(1).toString()\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t.collect(Collectors.toList())\n\t\t\t\t\t\t\t.size() ;\n\t\t\t\t\n\t\t\t\theadlines.put(\"CLI Users Count\", cliCount);\n\t\t\t\theadlines.put(\"File Transfer Users Count\", ftpCount);\n\t\t\t\theadlines.put(\"Total Users Count\", receivedTableContent.size());\n\t\t\t\t\n \t\t\t\n \t\t\tView view = viewMap.get(viewIt.next());\n \t\t\tif (view.isActive()) {\n \t\t\t\tview.setHeadlines(headlines);\n \t\n \t\t\t\t// Extra work only if in multiview mode...\n \t\t\t\tif (multiview) {\n \t\t\t\t\t// Depending on the view name, publish a subset of the users into it\n\t \t\t\t\tthis.filteredTableContent = new Vector<Object>();\n\t \t\t\t\t\n\t \t\t\t\tswitch (view.getName()) {\n\t \t\t\t\t\tcase \"cli\":\n\t \t\t\t\t\t\tthis.filteredTableContent.addAll( \n\t\t \t\t\t\t\t\t\treceivedTableContent\n\t\t \t\t\t\t\t\t\t.stream()\n\t\t \t\t\t\t\t\t\t.filter( tableRow -> \"cli\".equalsIgnoreCase\n\t\t \t\t\t\t\t\t\t\t\t( ((ArrayList<String>)tableRow).get(1).toString()\n\t\t \t\t\t\t\t\t\t\t\t)\n\t\t \t\t\t\t\t\t\t)\n\t\t \t\t\t\t\t\t\t.collect(Collectors.toCollection(Vector<Object>::new)) \t\t\t\t\t\t\t\n\t \t\t\t\t\t\t\t);\n\t \t\t\t\t\t\tbreak;\n\t \t\t\t\t\tcase \"fileTransfer\":\n\t \t\t\t\t\t\tthis.filteredTableContent.addAll( \n\t \t\t\t\t\t\t\treceivedTableContent\n\t \t\t\t\t\t\t\t.stream()\n\t \t\t\t\t\t\t\t.filter( tableRow -> \"file-transfer\".equalsIgnoreCase\n\t \t\t\t\t\t\t\t\t\t( ((ArrayList<String>)tableRow).get(1).toString()\n\t \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.collect(Collectors.toCollection(Vector<Object>::new)) \t\t\t\t\t\t\t\n\t \t\t\t\t\t\t\t);\n\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t// Do nothing\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t\t// Add the column names as the first item\n\t \t\t\t\tthis.filteredTableContent.add(0, this.receivedColumnNames);\n\t \t\t\t\t// Publish the data for this view\n\t \t\t\t\tview.setTableContent(this.filteredTableContent);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\t// Simpler, no filtering work needed... Just add the column names as the first item\n \t\t\t\t\treceivedTableContent.add(0, receivedColumnNames);\n \t\t\t\t\tview.setTableContent(receivedTableContent);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n \t\n return State.REPORTING_QUEUE;\n\t}", "title": "" }, { "docid": "557020aead8e5cf1610a30e0fe86e0e2", "score": "0.54504764", "text": "protected abstract void extractData();", "title": "" }, { "docid": "58cce44c09a0f844156dcb801581ea41", "score": "0.5447498", "text": "public String getInfo();", "title": "" }, { "docid": "58cce44c09a0f844156dcb801581ea41", "score": "0.5447498", "text": "public String getInfo();", "title": "" }, { "docid": "58cce44c09a0f844156dcb801581ea41", "score": "0.5447498", "text": "public String getInfo();", "title": "" }, { "docid": "58cce44c09a0f844156dcb801581ea41", "score": "0.5447498", "text": "public String getInfo();", "title": "" }, { "docid": "aa09be0eb90a3d08f1d5dc933b8fb530", "score": "0.54443055", "text": "@Override\n\tpublic void printData() {\n\t\tlog.info(String.format(\"userId=%s, appId=%s, placeId=%s,\"\n\t\t\t\t+ \"beforeTimeStamp=%s, maxCount=%s\", userId, appId, placeId,\n\t\t\t\tbeforeTimeStamp, maxCount));\n\t}", "title": "" }, { "docid": "1b4326f88dbb968ff18af20cfae84cdd", "score": "0.5434129", "text": "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" \" + Constants.PROCESS_RESOURCE_RECORD + \" comm:\" + comm + \" pid:\" + pid + \n\t\t\t\t\" perCpuTick ioB:\" + ioBytesPerCpuTick + \" ioC:\" + ioCallsPerCpuTick + \n\t\t\t\t\" perMemByte ioB:\" + ioBytesPerMemoryByte + \" ioC:\" + ioCallsPerMemoryByte + \n\t\t\t\t\" cpuUtil%PerMemByte:\" + cpuUtilPctPerMemoryByte + \" avgSize io:\" + averageIOSize + \" ior:\" + averageReadIOSize + \n\t\t\t\t\" iow:\" + averageWriteIOSize;\n\n\n\t}", "title": "" }, { "docid": "6e94bf13ab5777ed65d39ca671b3acc5", "score": "0.54282665", "text": "private void gatherInformation() {\n customer = customerComboBox.getSelectionModel().getSelectedItem();\n user = userComboBox.getSelectionModel().getSelectedItem();\n title = titleTextField.getText().trim();\n description = descriptionTextField.getText().trim();\n location = locationTextField.getText().trim();\n contact = contactComboBox.getSelectionModel().getSelectedItem();\n type = typeComboBox.getSelectionModel().getSelectedItem();\n date = datePickerBox.getValue();\n startTime = startTimeComboBox.getValue();\n endTime = endTimeComboBox.getValue();\n }", "title": "" }, { "docid": "e763d1c658186340f29d8b5a8bc497ab", "score": "0.5428058", "text": "@Override\n public String getSaveDataInfo() {\n String dataInfo;\n int value;\n if (this.isDone) {\n value = 1;\n } else {\n value = 0;\n }\n dataInfo = TASKTYPE + \" | \" + value + \" | \" + task;\n return dataInfo;\n }", "title": "" }, { "docid": "ccc3189cf93e822b021aa5c947d1812f", "score": "0.54080236", "text": "private void getData() {\n\n mToken = Pref.getValue(getActivity(), Constant.PREF_TOKEN, \"\");\n\n getCommonDetail();\n\n\n }", "title": "" }, { "docid": "cec3a26d58eca1913a0ece374c7b8326", "score": "0.5396499", "text": "public List<TaskResult<R>> getTaskDetail() {\n List<TaskResult<R>> taskList = new LinkedList<>();\n TaskResult<R> taskResult;\n while ((taskResult = taskDetailQueue.pollFirst()) != null) {\n taskList.add(taskResult);\n }\n return taskList;\n }", "title": "" }, { "docid": "9f139684415c83b95e2b522fbf8caf1d", "score": "0.5386617", "text": "public void populateProcessList() {\n\n\t\tString input_from_file_row = \"\";\n\t\tString pid = \"\";\n\t\tint time_of_arrival = 0;\n\t\tint time_of_burst = 0;\n\t\tint Process_priority = 0;\n\n\t\tfor (int i = 1; i < input_from_file.size(); i++) {\n\n\t\t\tinput_from_file_row = input_from_file.get(i);\n\t\t\tString[] listOfInput = input_from_file_row.split(\" \\\\s+\");\n\n\t\t\ttry {\n\n\t\t\t\tpid = listOfInput[0];\n\t\t\t\ttime_of_arrival = Integer.parseInt(listOfInput[1]);\n\t\t\t\t// time_of_arrival = Integer.valueOf(listOfInput[2]);\n\t\t\t\t// Integer.parseInt(listOfInput[1]);\n\t\t\t\ttime_of_burst = Integer.parseInt(listOfInput[2]);\n\t\t\t\t// time_of_burst = Integer.parseInt(listOfInput[2]);\n\t\t\t\tProcess_priority = Integer.parseInt(listOfInput[3]);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tMyProcess newMyProcess = new MyProcess(pid, time_of_arrival, time_of_burst, Process_priority, this);\n\t\t\tMyProcessList.add(newMyProcess);\n\t\t\t// this next line is just a test to make sure MyProcess objects are\n\t\t\t// created properly\n\n\t\t}\n\t}", "title": "" }, { "docid": "d4a202c4ee8a376b16fa4ed2be81ad3e", "score": "0.5385382", "text": "public void empDetails() {\r\n\t\t\r\n\t\tSystem.out.println(EmpId +\" \"+EmpName+\" \"+ComanyName);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "6b58689fb5781fc189f44fe85cfd3ca6", "score": "0.53850836", "text": "public String infoDetails() {\n\t\tString info = this.toString();\n\t\tString[] details = info.split(\"~\");\n\t\tString combined;\n\t\tcombined = \"\\nName: \" + details[0] + \"\\nDOB: \" + details[1]\n\t\t\t\t+ \"\\nCard Number: \" + details[2] + \"\\nArrival Time: \"\n\t\t\t\t+ details[3] + \"\\n\" + this.seenByDoctor\n\t\t\t\t+ \".\" + \"\\n\" + this.getUrgency() + \"\\n\";\n\t\treturn combined;\n\t}", "title": "" }, { "docid": "fa4431e259ac6a5c7c30f23ace5ec520", "score": "0.53800845", "text": "@Override\n\tprotected void printDetails() {\n\t}", "title": "" }, { "docid": "404fb16a061ed9cd4077afb01411a5a5", "score": "0.5367311", "text": "public void printAllDetails(){\r\n\t\t//Prints the whole generated data\r\n\t\tString[] labels = {\"HEARTBEAT GENERATOR\",\"STEPS GENERATOR\",\"TEMPERATURE GENERATOR\",\"SLEEP GENERATOR\"};\r\n\t\t\r\n\t\tSystem.out.println(\"\"); //Force empty line\r\n\t\tformatLine(30);\r\n\t\tSystem.out.println(\"GENERATED DATA FOR: \"+gen.getUser().getName());\r\n\t\tformatLine(30);\r\n\t\tfor (int i = 0; i < labels.length; i++) {\r\n\t\t\tSystem.out.println(labels[i]);\r\n\t\t\tformatLine(30);\r\n\t\t\tif(i == 0) heart.printDetailHeartbeat();\r\n\t\t\telse if( i == 1) steps.printDetailDistance();\r\n\t\t\telse if (i == 2) temp.printDetailTemperature();\r\n\t\t\telse sleep.printDetailSleep();\r\n\t\t\tformatLine(30);\r\n\t\t}//end for\r\n\t\tSystem.out.println(\"END GENERATOR DATA\");\r\n\t\tformatLine(30);\r\n\t}", "title": "" }, { "docid": "f50cd60b4927ce28b0d52e45a4136cc4", "score": "0.53634894", "text": "public abstract List getInfo();", "title": "" }, { "docid": "f69dc58cfe519bb3560d2dfb90194348", "score": "0.5358838", "text": "public void openProcessDetail()\n {\n linkedProcess.openProcessDetial();\n // Close the current Iframe\n activityDetailsBean.closeLinkedProcessIframePopup();\n }", "title": "" }, { "docid": "166338be50586693d8197d7bacdae472", "score": "0.535706", "text": "public String getInfo () {\n return info;\n }", "title": "" }, { "docid": "a9596b75ac83ff0c5b32cdccfbe14af6", "score": "0.53552264", "text": "public String statistic() {\r\n \r\n \t\tStringBuilder text = new StringBuilder();\r\n \t\ttext.append(\"\\n##################\\n\");\r\n \t\t\r\n \t\ttext.append(\"\\nTotal PIDs given : \" + this.statPidGiven);\r\n \t\ttext.append(\"\\nTotal PIDs colisions : \" + this.statPidTaken);\r\n \t\ttext.append(\"\\n\");\r\n \t\ttext.append(\"\\nTotal Jobs rejected : \" + this.statRejected);\r\n \t\ttext.append(\"\\nTotal Jobs not found : \" + this.statNotFound);\r\n \t\t\r\n \t\ttext.append(\"\\n##################\\n\");\r\n \t\treturn (text.toString());\r\n \t}", "title": "" }, { "docid": "82cc3d22fb734293642dca144f1df16a", "score": "0.53514326", "text": "private void printProcessTable()\r\n\t{\r\n\t\tdebugPrintln(\"\");\r\n\t\tdebugPrintln(\"Process Table (\" + m_processes.size() + \" processes)\");\r\n\t\tdebugPrintln(\"======================================================================\");\r\n\t\tfor(ProcessControlBlock pi : m_processes.values())\r\n\t\t{\r\n\t\t\tdebugPrintln(\" \" + pi);\r\n\t\t}//for\r\n\t\tdebugPrintln(\"----------------------------------------------------------------------\");\r\n\r\n\t}", "title": "" }, { "docid": "0534bacc14e6e2d9be05844a5aed9bd1", "score": "0.5351416", "text": "public abstract String getInfo();", "title": "" }, { "docid": "f32301dfa8c8268d95655f91e9e20543", "score": "0.5344987", "text": "public void getInfo(){\n }", "title": "" }, { "docid": "3b815be4c31ee7e527395d6e34f6c542", "score": "0.5342021", "text": "@Override\n\tpublic String getDetails() {\n\t\treturn model.getDetails();\n\t}", "title": "" }, { "docid": "07c04ce2fddc3973afdb3419d2fa53d8", "score": "0.5340499", "text": "public String getInfo() {\r\n return info;\r\n }", "title": "" }, { "docid": "07c04ce2fddc3973afdb3419d2fa53d8", "score": "0.5340499", "text": "public String getInfo() {\r\n return info;\r\n }", "title": "" }, { "docid": "e80e76a4a3d4427e0d58bda9c55e8754", "score": "0.5338839", "text": "public String getInfo() {\n\t\treturn this.info;\n\t}", "title": "" }, { "docid": "450807897b2807323dc44a1bba25990c", "score": "0.5336474", "text": "public java.lang.String getProcessDescription() {\r\n return processDescription;\r\n }", "title": "" }, { "docid": "ceaf48f79304255a35ef1ed7df4d0728", "score": "0.533599", "text": "void populateDetails() {\n\n\t\tmDb.openReadOnly();\n\t\ttry {\n\t\t\tCursor noteDetails = mDb.fetchNote(noteId);\n\t\t\ttry {\n\t\t\t\tstartTime = noteDetails.getDouble(noteDetails.getColumnIndex(DbAdapter.K_NOTE_RECORDED ));\n\t\t\t\tnotefancystart = noteDetails.getString(noteDetails.getColumnIndex(DbAdapter.K_NOTE_FANCYSTART ));\n\t\t\t\tlatitude = noteDetails.getInt (noteDetails.getColumnIndex(DbAdapter.K_NOTE_LAT ));\n\t\t\t\tlongitude = noteDetails.getInt (noteDetails.getColumnIndex(DbAdapter.K_NOTE_LGT ));\n\t\t\t\taccuracy = noteDetails.getFloat (noteDetails.getColumnIndex(DbAdapter.K_NOTE_ACC ));\n\t\t\t\taltitude = noteDetails.getDouble(noteDetails.getColumnIndex(DbAdapter.K_NOTE_ALT ));\n\t\t\t\tspeed = noteDetails.getFloat (noteDetails.getColumnIndex(DbAdapter.K_NOTE_SPEED ));\n\t\t\t\tnoteSeverity = noteDetails.getInt (noteDetails.getColumnIndex(DbAdapter.K_NOTE_SEVERITY ));\n\t\t\t\tnotedetails = noteDetails.getString(noteDetails.getColumnIndex(DbAdapter.K_NOTE_DETAILS ));\n\t\t\t\tnoteStatus = noteDetails.getInt (noteDetails.getColumnIndex(DbAdapter.K_NOTE_STATUS ));\n\t\t\t\tnoteimageurl = noteDetails.getString(noteDetails.getColumnIndex(DbAdapter.K_NOTE_IMGURL ));\n\t\t\t\tif ((null != noteimageurl) && (!noteimageurl.equals(\"\")))\n\t\t\t\t\tnoteimagedata = mDb.getNoteImageData(noteId);\n\t\t\t\telse\n\t\t\t\t\tnoteimagedata = null;\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tnoteDetails.close();\n\t\t\t}\n\t\t}\n\t\tfinally {\n\t\t\tmDb.close();\n\t\t}\n\t}", "title": "" }, { "docid": "016056dfc396298ef45336140880f259", "score": "0.5331959", "text": "public String getPROCESS_NAME(){\n return PROCESS_NAME;\n }", "title": "" }, { "docid": "44771d3a4f829e9e6acdbb518d9b330c", "score": "0.5323375", "text": "public void printdetails() {\n \tSystem.out.println(\"Vehicle Make: \\n\" +this.Make);\n \tSystem.out.println(\"Vehicle Model: \\n\" +this.Model);\n \tSystem.out.println(\"Model Year: \\n\" +this.Year);\n \tSystem.out.println(\"Vehicle Category: Truck\");\n \tSystem.out.println(\"Seating Capacity: 2\");\n \tSystem.out.println(\"Trailer included: \\n\" +this.trailer);\n \tinspec();\n \tHaz();\n }", "title": "" }, { "docid": "f01bab64ec02509166d980e7d6a0ae00", "score": "0.53231436", "text": "public String toString()\n {\n StringBuilder s = new StringBuilder();\n s.append(\"Process \" + this.name + \": \");\n for(int x = 0; x < this.alloc.length; x++)\n {\n s.append(\"Resource \" + x + \": [\" + alloc[x] + \"] \");\n }\n return s.toString();\n }", "title": "" }, { "docid": "2f1c0144c0127003650d8c95f78e034a", "score": "0.531966", "text": "public void processListAllFacilities() {\n ArrayList<Facility> faclist = this.facilityDAO.retrieveAll();\n System.out.println(\"S/N\" + \" \" +\"ID\" + \" \" + \"Description\" + \" \" + \"Capacity\" );\n for (int i = 0; i < faclist.size(); i ++){\n System.out.format(\"%-4d\",i+1); System.out.format(\"%-7s\",faclist.get(i).getId()); System.out.format(\"%-15s\",faclist.get(i).getDescription());System.out.format(\"%-2d\",faclist.get(i).getCapacity());\n System.out.println();\n\n }\n }", "title": "" }, { "docid": "78689a8237fe4c086fbe552bb90857d8", "score": "0.53190106", "text": "public Details getDetails() {\r\n return _details;\r\n }", "title": "" }, { "docid": "a551ff891d07eeae8359cd7bc9508a39", "score": "0.53117967", "text": "@Override\n\tpublic void showInfo() {\n\t\tSystem.out.println(\"Machine id is \" + id);\n\t\t\n\t}", "title": "" }, { "docid": "209cea1617e8c5dbfb0a75242ff65f13", "score": "0.5310654", "text": "public String getPIData() {\n/* 358 */ return this.fStreamReader.getPIData();\n/* */ }", "title": "" }, { "docid": "d17ef93771e8a93fa1017c9f40a2c6cc", "score": "0.5307119", "text": "void getInfo() {\n\t\tSystem.out.println(\"My name is \" + name + \" and I am going to \" + school \n\t\t\t\t\t\t\t+ \" my grade is \" + grade);\n\t}", "title": "" }, { "docid": "4aa310a5e28b3276a5eff6fc85f12bc2", "score": "0.5305259", "text": "@Override\n\tpublic void process1(String data) {\n\t\tSystem.out.println(\"process1 start.......\");\n\t\tSystem.out.println(\"data in subprocessimpl = \" + data);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4684d80385fed9ca300e95456f4ff863", "score": "0.5300645", "text": "@Override\n public String getTaskExtraInfo() {\n return this.getByWhenStr();\n }", "title": "" }, { "docid": "7f13e7b7f05756514341fdb733c4cff9", "score": "0.5300113", "text": "void showDetails() {\n\t\tSystem.out.println(\"The employee id = \" + this.id);\n\t\tSystem.out.println(\"The employee name = \" + this.name);\n\t\tSystem.out.println(\"The employee salary = \" + this.salary);\n\t}", "title": "" }, { "docid": "d1ebcda91810269a644439963a3bf141", "score": "0.5293376", "text": "public void empInfo () {\n\t\t\tSystem.out.println(\"Employee Name: \"+ EmpName);\n\t\t\tSystem.out.println(\"Employee ID: \"+ empId);\n\t\n\t}", "title": "" }, { "docid": "395dea82e3323b2af8b8dd67f699364a", "score": "0.5288626", "text": "@Override\r\n public String getPostDetails() {\n StringBuilder postBuilder = new StringBuilder();\r\n postBuilder.append(super.getPostMiniDetails() + \"\\n\");\r\n postBuilder.append(\"Venue:\\t \" + this.venue + \"\\n\");\r\n postBuilder.append(\"Date:\\t \" + this.date + \"\\n\");\r\n postBuilder.append(\"Capacity:\\t \" + this.capacity + \"\\n\");\r\n postBuilder.append(\"Attendees:\\t \" + this.attendeeCount);\r\n return postBuilder.toString();\r\n }", "title": "" }, { "docid": "e30bb2b75c8828101d6af5c4fac9e5a4", "score": "0.5285324", "text": "public void printData()\n {\n System.out.println(getName());\n }", "title": "" }, { "docid": "8bbfea44679047a5579396684f83aa0c", "score": "0.528435", "text": "@Override\n\tpublic void getInformation() {\n\t\tsuper.getInformation();\n\t\tSystem.out.println(\"부서 : \" + department);\n\t}", "title": "" }, { "docid": "c0dc0e6563125fa3971f321d1e6a1d83", "score": "0.5280053", "text": "String getInfos();", "title": "" }, { "docid": "10c2e5029cdf3db7950b05a5de91af7c", "score": "0.52785003", "text": "public String getMemoDetails()\n {\n String ret = \"\";\n Runtime r = Runtime.getRuntime();\n\n // amount of unallocated memory\n long free = r.freeMemory();\n\n // total amount of memory available allocated and unallocated.\n long total = r.totalMemory();\n\n // total amount of allocated memory\n long inuse = r.totalMemory() - r.freeMemory();\n\n // max memory JVM will attempt to use\n long max = r.maxMemory();\n \n if(free <= 1048576)\n {\n // suggest now would be a good time for garbage collection\n System.gc();\n }\n ret = \"||System Memory: Total= \" + total + \" Free= \" + free + \" Max= \" + max + \" InUse=\" + inuse + \" ||\";\n return(ret);\n }", "title": "" }, { "docid": "5652f67efbba2466049d4dc231add1f7", "score": "0.5273753", "text": "private void retreveData()\n\t{\n\t\tstats\t = getSharedPreferences(filename, 0);\n\t\tglobalTimes = stats.getInt(\"GlobalTimes\", 0);\n\t\tgtReal=globalTimes+1;\n\t\t\n\t\t/*\n\t\tint stringSentance[] = new int[(int) gtReal+1];\n\t\tint feelingOption[]= new int[(int) gtReal+1];\n\t\tlong durationPerVisit[]= new long[(int) gtReal+1];\n\t\tlong timeToThinkArray[] = new long[(int) gtReal+1];\n\t\t*/\n\t\t\n\t\tfor(int i=0;i<gtReal;i++)\n\t\t{\n\t\t\tString iString = Integer.toString(i);\n\t\t\t\n\t\t\tstringSentance.add(stats.getInt(iString+\"SS\", 0));\n\t\t\tfeelingOption.add(stats.getInt(iString+\"FO\", 0));\n\t\t\tdurationPerVisit.add(stats.getLong(iString+\"DPV\", 0));\n\t\t\ttimeToThinkArray.add(stats.getLong(iString+\"TTT\", 0));\n\t\t\t\n\t\t}\n\t\t\n\t\t//Change date \n\t}", "title": "" }, { "docid": "5b36e1ef375c777b8054c1b4337b43dd", "score": "0.526998", "text": "public Object getInfo() {\n\t\t\t\t\treturn 0;\n\t\t\t\t}", "title": "" }, { "docid": "1361b3e0c83d49399a8e6fff7fc99157", "score": "0.5269032", "text": "public void Display_information()\r\n\r\n {\r\n\r\n System.out.println(\"Name : \" + Name);\r\n\r\n System.out.println(\"Address : \" + Address);\r\n\r\n System.out.println(\"Phone number : \"\r\n\r\n + phone_number);\r\n\r\n System.out.println(\"Security Name : \"\r\n\r\n + security_number);\r\n\r\n System.out.println(\"Specialization : \"\r\n\r\n + expert_information);\r\n\r\n }", "title": "" }, { "docid": "7491814fc44e15270593302813f92488", "score": "0.52626777", "text": "public void printDetails()\n {\n System.out.println(\"******************************************************************\");\n System.out.println( make + \" \" + model + \" Group: \" + group + \" Vehicle ID: \" + vehID);\n System.out.println(\"Air conditioning/Climate Control: \" + getAirCon() );\n System.out.println(\"Engine Size: \" + engineSize + \" Fuel: \" + fuelType );\n System.out.println(\"Gearbox: \" + gearbox + \" Transmission: \" + transmission );\n System.out.println(\"Mileage \" + mileage + \" Date first registered: \" + dateFirstRegistered);\n System.out.println(\"Reg No: \" + regNo);\n }", "title": "" }, { "docid": "8727645cb0893c1996e71f4af100260d", "score": "0.5262271", "text": "public static void main(String[] args) {\n GetETLDriver fc = new GetETLDriver();\n GetETLDriverInfo getETLDriverInfo = fc.execute(args);\n AirflowUtil airflowUtil = new AirflowUtil();\n try {\n airflowUtil.persistBeanData(getETLDriverInfo, false);\n try\n {\n // String processId = args[1];\n String homeDir = System.getProperty(\"user.home\");\n LOGGER.info(\"home Directory is \"+homeDir);\n Files.deleteIfExists(Paths.get(homeDir + \"/bdre/airflow/etldriverInfo.txt\"));\n FileWriter fw = new FileWriter(homeDir+\"/bdre/airflow/etldriverInfo.txt\", true);\n BufferedWriter bw = new BufferedWriter(fw);\n\n if(getETLDriverInfo.getMinBatch() != null)\n bw.write(\"getETLDriverInfo.getMinBatch()::\"+getETLDriverInfo.getMinBatch().toString()+\"\\n\");\n else\n bw.write(\"getETLDriverInfo.getMinBatch()::null\\n\");\n\n if(getETLDriverInfo.getMaxBatch() != null)\n bw.write(\"getETLDriverInfo.getMaxBatch()::\"+getETLDriverInfo.getMaxBatch().toString()+\"\\n\");\n else\n bw.write(\"getETLDriverInfo.getMaxBatch()::null\\n\");\n\n if(getETLDriverInfo.getFileList() != null)\n bw.write(\"getETLDriverInfo.getFileList()::\"+getETLDriverInfo.getFileList().toString()+\"\\n\");\n else\n bw.write(\"getETLDriverInfo.getFileList()::null\\n\");\n\n bw.close();\n\n }catch(IOException i) {\n i.printStackTrace();\n }\n } catch (Exception e) {\n LOGGER.error(e);\n throw new MetadataException(e);\n }\n }", "title": "" }, { "docid": "cf060fc4b01c3f0bbefa769f17db1ec9", "score": "0.5255216", "text": "public void testGetProcessorInfo() {\n System.out.println(\"Testing getProcessorInfo...\");\n System.out.println(\"====================================\");\n ProcessorInfo info = HardwareInfo.getProcessorInfo();\n\n assertTrue(info != null && info.getModelName() != null);\n\n System.out.println(\"Cache size: \" + info.getCacheSize());\n System.out.println(\"Family: \" + info.getFamily());\n System.out.println(\"Speed (Mhz): \" + info.getMhz());\n System.out.println(\"Model: \" + info.getModel());\n System.out.println(\"Model name: \" + info.getModelName());\n System.out.println(\"Number of cores: \" + info.getNumCores());\n System.out.println(\"Stepping: \" + info.getStepping());\n System.out.println(\"Temperature: \" + info.getTemperature());\n System.out.println(\"Vendor Id: \" + info.getVendorId());\n\n Set<Entry<String, String>> fullInfos = info.getFullInfo().entrySet();\n\n for (final Entry<String, String> fullInfo : fullInfos) {\n System.out.println(fullInfo.getKey() + \": \" + fullInfo.getValue());\n }\n\n System.out.println(\"End testing getProcessorInfo...\");\n System.out.println(\"====================================\");\n }", "title": "" }, { "docid": "aa29cdb4c102194fb6c7369ebe92e65e", "score": "0.5253526", "text": "public String getInfo() {\n return info;\n }", "title": "" }, { "docid": "88341557f3a679b86cb51f7fa8dbbda3", "score": "0.5252177", "text": "public void show_details() {\n\t\tSystem.out.println(\"Name: \"+name);\n\t\tSystem.out.println(\"Age: \"+age);\n\t\tSystem.out.println(\"Income: \"+income);\n\t}", "title": "" }, { "docid": "1cd6b4382476c0cde63ebc4769e21965", "score": "0.5243617", "text": "public String getDetails() {\n return details;\n }", "title": "" }, { "docid": "1cd6b4382476c0cde63ebc4769e21965", "score": "0.5243617", "text": "public String getDetails() {\n return details;\n }", "title": "" }, { "docid": "1cd6b4382476c0cde63ebc4769e21965", "score": "0.5243617", "text": "public String getDetails() {\n return details;\n }", "title": "" }, { "docid": "35bb8480111a376d6bfaf24fefb25e93", "score": "0.5236785", "text": "public List<String> getProteinsInfo(List<Resource> collection, IProgressMonitor monitor)\n\tthrows BioclipseException {\n\n\t\tmonitor.beginTask(\"Retrieving information about protein from Open PHACTS\", collection.size());\n\t\tList<String> res = new ArrayList<String>();\n\n\t\tIRDFManager rdf = net.bioclipse.rdf.Activator.getDefault().getJavaManager();\n\t\t\n\t\tTargets targets = null;\n\t\ttry {\n\t\t\ttargets = Targets.getInstance(getOPSLDAendpoint(), APPID, APPKEY);\n\t\t} catch (Exception e) {\n\t\t\tthrow new BioclipseException(\"Something went wrong: \" + e.getMessage(), e);\n\t\t}\n\t\tint i=0;\n\t\tfor (Resource protein : collection){\n\t\t\ti++;\n\t\t\tmonitor.subTask(\"Protein (\" + i + \"/\" + \n\t\t\t\t\tcollection.size() + \"): \" + protein.getName());\n\t\t\tmonitor.worked(1);\n\t\t\tif (monitor.isCanceled())\n\t\t\t\treturn null;\n\n\t\t\tString cwikiURI = protein.getURI();\n\t\t\t\n\t\t\t//Query CW based on type\n\t\t\tIRDFStore store = rdf.createInMemoryStore();\n\t\t\ttry {\n\t\t\t\tString rdfContent = targets.info(cwikiURI);\n\t\t\t\tSystem.out.println(\"OPS LDA results: \" + rdfContent);\n\t\t\t\trdf.importFromString(store, rdfContent, \"Turtle\");\n\n\t\t\t\t// process the results\n\t\t\t\tIStringMatrix matches = rdf.sparql(store, PROTEIN_INFO);\n\t\t\t\tString tinfo = \"\";\n\t\t\t\tif (matches.getRowCount() > 0) {\n\t\t\t\t\tString name = matches.get(1, \"name\");\n\t\t\t\t\ttinfo += name + \"\\n\";\n\t\t\t\t}\n\t\t\t\tfor (int prot=1; prot<=matches.getRowCount(); prot++) {\n\t\t\t\t\tString residues = matches.get(prot, \"residues\");\n\t\t\t\t\ttinfo += \"\\nresidues=\" + residues;\n\t\t\t\t\tString pi = matches.get(prot, \"pi\");\n\t\t\t\t\ttinfo += \"\\npi=\" + pi;\n\t\t\t\t\tres.add(tinfo);\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (e.getMessage().contains(\"404: Not Found\")) {\n\t\t\t\t\t// just skip this entry: the URI provided did not return matching results\n\t\t\t\t\tres.add(\"\");\n\t\t\t\t} else {\n\t\t\t\t\tthrow new BioclipseException(\"Something went wrong: \" + e.getMessage(), e);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "title": "" }, { "docid": "f35756acb28958de95aab8d0b8a2a349", "score": "0.52305526", "text": "public List <ClassSummaryDetailBase> getClassSummaryDetailsArray() {\n try { \n Vector mappedClassNames = getMappedClassNames();\n List classSummaryDetails = new ArrayList<ClassSummaryDetailBase>(); \n // Check if there aren't any classes mapped\n if (mappedClassNames.size() == 0) {\n return null;\n }\n\n // get details for each class, and add the details to the summary\n for (int index = 0; index < mappedClassNames.size(); index++) {\n String mappedClassName = (String)mappedClassNames.elementAt(index);\n classSummaryDetails.add(buildLowlevelDetailsFor(mappedClassName));\n }\n\n return classSummaryDetails;\n } catch (Exception openTypeException) {\n AbstractSessionLog.getLog().log(SessionLog.SEVERE, \"jmx_enabled_platform_mbean_runtime_exception\", PLATFORM_NAME, openTypeException);\n openTypeException.printStackTrace();\n }\n\n // wait to get requirements from EM\n return null;\n }", "title": "" }, { "docid": "93b3c22cf334f0718e05d44b5ce63a9c", "score": "0.5227067", "text": "@Override\r\n\t\t\tpublic void prnData() {\n\t\t\t\tSystem.out.println(\"인터페이스 사용법2\");\r\n\t\t\t\tSystem.out.println(TestInner.DATA);\r\n\t\t\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "984b4957d7924f08cefb84372f3813d8", "score": "0.0", "text": "@Override\r\n\tpublic String getLspace() {\n\t\treturn null;\r\n\t}", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cdf542363f5b089e84183e3d9020935f", "score": "0.6697644", "text": "@Override\n\t protected void ramana() {\n\t\t\n\t}", "title": "" }, { "docid": "657d87f4ac2918ce5fce84e83ea3855b", "score": "0.64378333", "text": "@Override\n\tpublic void arreglar() {\n\n\t}", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.6425563", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "16c30d73c1df796c0e31e93eb0f6e02e", "score": "0.64044255", "text": "@Override\r\n\tpublic void atacar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.63762105", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "c598a2e3f3aed7447c40167abd0815be", "score": "0.6325532", "text": "@Override\r\n\tpublic void kanalizasyon() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e70d900d759249a14a9d2833c9f92656", "score": "0.62733805", "text": "@Override\r\n\tpublic void elektrik() {\n\t\t\r\n\t}", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.62550694", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92ca60c14b9e9bf9cfed6703c4ddea43", "score": "0.625003", "text": "@Override\r\n\tpublic void accionar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c9c1a5abdecc0f2e99d3c022b1b7d4ac", "score": "0.6246549", "text": "@Override\n\t\t\tpublic void 볶음밥() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "ea9e446f91664fee1580be3d45fc2e8a", "score": "0.6206874", "text": "@Override\r\n\tpublic void reagir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3a3df32f04eb1c3118fc8ceb69db395d", "score": "0.62005454", "text": "@Override\n\tpublic void curar() {\n\t\t\n\t}", "title": "" }, { "docid": "16170a7948edf0bb8a90dfe0ac4fec33", "score": "0.6192674", "text": "@Override\n\t\t\tpublic void 짜장면() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "f0705d77863f0fa7c516a99a8eca8134", "score": "0.6190625", "text": "private void zbudujSciezkeiRozpocznij() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c8d8ef34882e71054f4c2f0e26e18e7e", "score": "0.61372304", "text": "public void caress() {\n\t\t\n\t}", "title": "" }, { "docid": "88651b7597cbac4485dfc6a19382971e", "score": "0.6063545", "text": "@Override\r\n\tpublic void avisoultimotiro() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ddd6019fcc7107b506799138fa0a4641", "score": "0.60505116", "text": "@Override\r\n\tprotected void initdata() {\n\r\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.6023245", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "4c9e25ea6f293e2f67da562cd4a0b657", "score": "0.60203654", "text": "public final void mo8553EA() {\n }", "title": "" }, { "docid": "482d92acda26fc41523278bb982ed7e9", "score": "0.59988713", "text": "@Override\n\tpublic void platesteContactless() {\n\t\t\n\t}", "title": "" }, { "docid": "23a210590a86717974bed53b741032bf", "score": "0.59879225", "text": "@Override\n\tpublic void emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ad25be891046838900b37d5cdf75010b", "score": "0.5975695", "text": "@Override\r\n\tpublic void arabaGecer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fafd92e57932ba5c77e0be9480563172", "score": "0.5953944", "text": "@Override\r\n\tvoid init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "95aa3a2220bec980fc9016a4426ee2b7", "score": "0.5948094", "text": "@Override\n\tpublic void comenzar() {\n\t\t\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.5938956", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "82fcae7843e9cd9087f67fad345568b9", "score": "0.59232146", "text": "@Override\n\tpublic void init() { \n\t\t\n\t}", "title": "" }, { "docid": "7c6fed8e399de380b119d83c6b7dec38", "score": "0.5885899", "text": "private MoreEmperor(){\n\n\t}", "title": "" }, { "docid": "9ce75e891f4a6132d9837c33a86f11f3", "score": "0.5884196", "text": "@Override\n\tpublic void getchieurong() {\n\t\t\n\t}", "title": "" }, { "docid": "b049a074b12aea6414b0c3354573a89c", "score": "0.5875572", "text": "@Override\n\t\t\t\tpublic void initialize() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.58509105", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "c77e40bbb43cc49645ce63e31ba6b676", "score": "0.58233273", "text": "@Override\r\n\tpublic void update() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b4ecae6e31b41ead72d093495b46455a", "score": "0.5810715", "text": "public void mo1410b() {\n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5805753", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c3d1e72656333e09790dac9abf69fb23", "score": "0.5804777", "text": "@Override\r\n\t\tpublic void acoes() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "c3d1e72656333e09790dac9abf69fb23", "score": "0.5804777", "text": "@Override\r\n\t\tpublic void acoes() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.580369", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9a00431eee28b38391cb5dfa243729d9", "score": "0.57904106", "text": "public void mo4643a() {\n }", "title": "" }, { "docid": "bc3a08c64e443ee86473be048cb9738a", "score": "0.578575", "text": "private void smth() {\n\n\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "afb8d306e46856b05d9138a9c18c646b", "score": "0.57730746", "text": "@Override\r\n\t\tpublic void limpaTela() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9720bcf5a7868f579b25b5e78dc03e6e", "score": "0.5765882", "text": "@Override\n\tpublic void teclear() {\n\n\t}", "title": "" }, { "docid": "d95a081a1e6e3117f8617a3fbbbe16fd", "score": "0.57630926", "text": "public void mo3871b() {\n }", "title": "" }, { "docid": "ec8745d1f613de3522e52b19973434de", "score": "0.5755148", "text": "@Override\n protected void initialize()\n {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c095c57d10901c0fda3f8584611b8a8", "score": "0.57481265", "text": "@Override\n protected void init () {\n }", "title": "" }, { "docid": "c081f6b796851b26f184bf0f5bbf469c", "score": "0.5747874", "text": "@Override\n\tpublic void dientich() {\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731761", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "871d03786cbf53026a17aa613aded752", "score": "0.57235676", "text": "@Override\t//初始化方法\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "39132efb6b42f8ec625d96ff6226d80b", "score": "0.56991017", "text": "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "title": "" }, { "docid": "ba87d3460fb6faa58e5ff893f84e4a7a", "score": "0.5685994", "text": "@Override\n\tprotected void initialize() \n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5683637", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "264b73ede67394b8d57db8f3623673db", "score": "0.56786793", "text": "@Override\r\n\tpublic void afterConstruct() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cffc9e76f5aeaa8126396b11e98f261b", "score": "0.5670429", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "6c7f3bb62b62ab0efc25de23710ee029", "score": "0.5669814", "text": "@Override\n\tpublic void concentrarse() {\n\t\t\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b53508b8f07bf95b923a1e913f88fcab", "score": "0.5668746", "text": "@Override\r\n\tpublic void estadoCreaditicio() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1b6ae1f9acb8e538994b7d00bae50317", "score": "0.5664213", "text": "@Override\n\tprotected void skirmish() {\n\n\t}", "title": "" }, { "docid": "a0b89d2fbd83aefeb636ae04ad1fcd91", "score": "0.56631064", "text": "public void init(){\n\t //TODO Auto-generated method stub\n\t}", "title": "" }, { "docid": "31d4487a868a7dc81dfde93aa95013c4", "score": "0.56630474", "text": "@Override\n\tprotected void initialize() {\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "ec2afced68195dab79cf8503e6907338", "score": "0.5643847", "text": "protected void mo1628b() {\n }", "title": "" }, { "docid": "d5b7380f66253fe7bcac3715637c4dd4", "score": "0.56360185", "text": "@Override\n\tpublic void getInformation() {\n\t\t\n\t}", "title": "" }, { "docid": "d5b7380f66253fe7bcac3715637c4dd4", "score": "0.56360185", "text": "@Override\n\tpublic void getInformation() {\n\t\t\n\t}", "title": "" }, { "docid": "c9e7a86bd469245549d853b1a2c183a3", "score": "0.562041", "text": "@Override\r\n\tpublic void identify() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b2a793cd2e6ec37a2fdb27c90d87a493", "score": "0.5619648", "text": "@Override\r\n\tprotected void initialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "915cd499c707ca694353925d740e0725", "score": "0.5615348", "text": "private void comprimiendo() \n\t{\n\t}", "title": "" }, { "docid": "7da9ad3ab650b64b3e75012a99c0e238", "score": "0.5614612", "text": "public void mo3866a() {\n }", "title": "" }, { "docid": "f347b26e2be487b128dc1646456e0be7", "score": "0.56142163", "text": "@Override\n\t\t\t\tpublic void initialize() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f347b26e2be487b128dc1646456e0be7", "score": "0.56142163", "text": "@Override\n\t\t\t\tpublic void initialize() {\n\n\t\t\t\t}", "title": "" }, { "docid": "504c9d8dc3680e99d5f3450593b02c8d", "score": "0.561124", "text": "@Override\n\t\t\t\tpublic void update() {\n\n\t\t\t\t}", "title": "" }, { "docid": "504c9d8dc3680e99d5f3450593b02c8d", "score": "0.561124", "text": "@Override\n\t\t\t\tpublic void update() {\n\n\t\t\t\t}", "title": "" }, { "docid": "bd5cf567659030cded015505487de3b2", "score": "0.5607615", "text": "@Override\r\n\tpublic void inter11() {\n\t\t\r\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "4976fe707cde959b1db88c1e537496ce", "score": "0.0", "text": "@Override\r\n\tpublic void setEnabled(boolean arg0) {\n\r\n\t}", "title": "" } ]
[ { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.7037216", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.68683225", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481321", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "4d9e164e4e911df1380f4618e0fe7a08", "score": "0.6446192", "text": "OI (){\n\t\t\n\t}", "title": "" }, { "docid": "b7026792f4497bfcada6c43399e85e01", "score": "0.6412251", "text": "@Override\r\n\tpublic void kellton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.63880783", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3082ef05aec8dc343ca108ab345f43a", "score": "0.6346641", "text": "@Override\r\n\tpublic void morir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "063ae6a38469d06ddf88fd9af6522171", "score": "0.6303464", "text": "@Override\r\n\tpublic void guru() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4e15b200c2022658af267c700b34269", "score": "0.6269351", "text": "@Override\n\tpublic void anlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "582acaef2e3110454651d58f22c1b299", "score": "0.62566763", "text": "public void mo14492g() {\n }", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6251392", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.6237362", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "bd9b859f3a9c1a1565a6602ccdbe7e59", "score": "0.6166928", "text": "@Override\n\tpublic void fiyatt() {\n\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6154919", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "fa32f830910aeae71dc86bf338a8b0fc", "score": "0.61459744", "text": "@Override\n\tpublic void genrator() {\n\n\t}", "title": "" }, { "docid": "7ba2946d983bb1e7f8bf10a547e6dc3f", "score": "0.6142578", "text": "public void mo14489d() {\n }", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6141126", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "fcaf77b6f021a702cb2ac62e6c374cbd", "score": "0.6100913", "text": "@Override\r\n\tpublic void afficher() {\n\r\n\t}", "title": "" }, { "docid": "12c148d05fe753983614cee07240d8f6", "score": "0.6074055", "text": "@Override\n\t\t\t\tpublic void ll() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "ad4d9339a0e3b347b6df9466d063badd", "score": "0.60696864", "text": "public void piocher(){\n\t\t\n\t}", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.6062165", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059389", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "817efc043b4e1d7ba918f254f9fa5ae6", "score": "0.6055012", "text": "@Override\n public void taunt() {\n\n }", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.60443264", "text": "protected void method_3848() {}", "title": "" }, { "docid": "df970d9257b3282612e3b7ad881bca60", "score": "0.6016086", "text": "protected void bhjp5027AcedeMhjj027a() {\n }", "title": "" }, { "docid": "6e6512370dbb6f9cb6dcc13bd5aa3b2d", "score": "0.60138226", "text": "@Override\n\tvoid absone() {\n\t\t\n\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.5963883", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5960806", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5960806", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "90e62de5f767b081d1ecd30f250f7e27", "score": "0.5956729", "text": "@Override\n\t\tpublic void ll() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "408c943a1e709ecc31c924c09b2315eb", "score": "0.5924403", "text": "protected void bhyp0200RotinaDatas() {\n }", "title": "" }, { "docid": "1a4f9aa6f736074c80c425a66e966e33", "score": "0.591473", "text": "@Override\n\tpublic void acariciar() {\n\n\t}", "title": "" }, { "docid": "a82715cbd2b63f8780c6a8d4d9ca9642", "score": "0.5904261", "text": "@Override\r\n\tpublic void getBalalnce() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.5886539", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "40be4915804d3229e08fed067ec03fd6", "score": "0.58759344", "text": "Bug_616419() {\r\n\t}", "title": "" }, { "docid": "2b60191c95bfebe3c1552e6c0a013032", "score": "0.58680886", "text": "@Override\r\npublic void generate() {\n\t\r\n}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.5850078", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "cf22f889d7fbcd272d230fe8e0354d0c", "score": "0.5832774", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.5831551", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c40bd2e5c1d492aac9d5983bf52d2e3", "score": "0.5811345", "text": "@Override\n\tpublic void vericar() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.5810397", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.5804755", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5791594", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6296d9cb06e3094b2a07ffb1a50fe1e", "score": "0.5790954", "text": "@Override\n\tpublic void acariciar() {\n\t}", "title": "" }, { "docid": "8bb51b817eb666c4867465105352c93f", "score": "0.5789445", "text": "@Override\r\n\tvoid oracle() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "eaf44b0db9fccdd4e25d11d08215adc0", "score": "0.57868445", "text": "@Override\n\tpublic void zufallsKanteEinfuegen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "cdfd4f491038656c3a88e9465c6ba0e6", "score": "0.57737845", "text": "@Override\n\tpublic void reculer() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "91bd67fab28a493021bd6f1f7b3e5e0a", "score": "0.57590026", "text": "@Override\n public void dirve() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "24b32615866ab9d1bd9b2e291b95a1c6", "score": "0.5758869", "text": "public void getPheromone() \n {\n\t \n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f4988c898d552b0a5965dcb636a68ca", "score": "0.57391614", "text": "@Override\r\n\tpublic void correr() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a59d3a080703df0c29632666d64e3e65", "score": "0.57377326", "text": "@Override\n\tprotected void initialize()\n {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.5731695", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "18ea513e33a6ccd2005fa08437bc8da3", "score": "0.573015", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "8887ffca90e3cb4fff0262bd3dd5bd82", "score": "0.57280916", "text": "@Override\r\n\tpublic void Y() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8648511042e2a7fd608e085a1fcb7ccf", "score": "0.5726677", "text": "@Override\r\n\tpublic void operation() {\n\r\n\t}", "title": "" }, { "docid": "1c4063058b784c69f3e491b8fe1c5d87", "score": "0.5722229", "text": "@Override\r\n\tpublic void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "47b0ce2a4738b951bd3c2a4491ec7cd6", "score": "0.57205975", "text": "@Override\n \tpublic String toString() {\n \t\treturn null;\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5718783", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.571633", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "12104bcdcc776dd1fc9415fbc08ab9a4", "score": "0.5712942", "text": "private ExtentTS() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "258fef0e9420b0df779163d8d9cb25a9", "score": "0.5707184", "text": "private void hf() {\n\n\t}", "title": "" }, { "docid": "f720716362bda7cd9a07a11b5f77ac9c", "score": "0.5702897", "text": "public void ObjeyiOlustur() {\n \r\n }", "title": "" }, { "docid": "5e4bdac9e86e82025f9be7b708955d73", "score": "0.56991893", "text": "@Override\n\tprotected void startOfIteration() {\n\n\t}", "title": "" }, { "docid": "a7998f80ff10142923d6914a455d5129", "score": "0.5687978", "text": "public void colisionBala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a4f5275a394442b77ca743e85e2d2f20", "score": "0.568737", "text": "public void mo3892a() {\n }", "title": "" }, { "docid": "1614b26591fe3a156f284f7d7d0238ab", "score": "0.56871134", "text": "public void mo3894c() {\n }", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.56825924", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677236", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "02b2c6e51ebb5faf78f05c34c734f88d", "score": "0.5676809", "text": "@Override\n\tprotected void adjust() {\n\t\t\n\t}", "title": "" }, { "docid": "b28a6bba203633cc1b71e802b691f592", "score": "0.567235", "text": "@Override\n\tpublic void shuthdown() {\n\n\t}", "title": "" }, { "docid": "cffc9e76f5aeaa8126396b11e98f261b", "score": "0.5667161", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "febadec59d2787ed37a521b11b0fe57d", "score": "0.56570727", "text": "public void getdata() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.56563133", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
563ace261a16d8924ced24cceeb4636d
The first empty file we expect to throw as it's invalid We need to pass the second as well, because allowTruncation will be set to true for the final segment
[ { "docid": "186fa668d5b8a0968b79e258592f5147", "score": "0.0", "text": "@Test\n public void testRecoveryWithEmptyLog() throws Exception\n {\n runExpecting(new WrappedRunnable() {\n public void runMayThrow() throws Exception\n {\n CommitLog.instance.recover(new File[]{\n tmpFile(CommitLogDescriptor.current_version),\n tmpFile(CommitLogDescriptor.current_version) });\n }\n }, CommitLogReplayException.class);\n }", "title": "" } ]
[ { "docid": "941934174c9501b403706f7c90df881a", "score": "0.6156635", "text": "@Test\n void testTidyStreamOnInvalidFile1() throws Exception {\n openInvalidFile(\"SampleSS.ods\", false);\n }", "title": "" }, { "docid": "1b74459d8b5d02fb0abafa95577b8168", "score": "0.5921829", "text": "@Test\n public void testHeaderOnlyFileFiltering() throws Exception\n {\n File directory = Files.createTempDir();\n\n CommitLogDescriptor desc1 = new CommitLogDescriptor(CommitLogDescriptor.current_version, 1, null);\n CommitLogDescriptor desc2 = new CommitLogDescriptor(CommitLogDescriptor.current_version, 2, null);\n\n ByteBuffer buffer;\n\n // this has a header and malformed data\n File file1 = new File(directory, desc1.fileName());\n buffer = ByteBuffer.allocate(1024);\n CommitLogDescriptor.writeHeader(buffer, desc1);\n int pos = buffer.position();\n CommitLogSegment.writeSyncMarker(desc1.id, buffer, buffer.position(), buffer.position(), buffer.position() + 128);\n buffer.position(pos + 8);\n buffer.putInt(5);\n buffer.putInt(6);\n\n try (OutputStream lout = new FileOutputStream(file1))\n {\n lout.write(buffer.array());\n }\n\n // this has only a header\n File file2 = new File(directory, desc2.fileName());\n buffer = ByteBuffer.allocate(1024);\n CommitLogDescriptor.writeHeader(buffer, desc2);\n try (OutputStream lout = new FileOutputStream(file2))\n {\n lout.write(buffer.array());\n }\n\n // one corrupt file and one header only file should be ok\n runExpecting(new WrappedRunnable() {\n public void runMayThrow() throws Exception\n {\n CommitLog.instance.recover(file1, file2);\n }\n }, null);\n\n // 2 corrupt files and one header only file should fail\n runExpecting(new WrappedRunnable() {\n public void runMayThrow() throws Exception\n {\n CommitLog.instance.recover(file1, file1, file2);\n }\n }, CommitLogReplayException.class);\n }", "title": "" }, { "docid": "d50ee1ed11053d9e354c1af264caa744", "score": "0.58424735", "text": "@Test\n public void readEmptyFile() throws Exception {\n populateInputFile(0, 0, 0);\n mChannelNoException.writeInbound(buildReadRequest(0, 0));\n Object response = waitForOneResponse(mChannelNoException);\n checkReadResponse(response, PStatus.INVALID_ARGUMENT);\n }", "title": "" }, { "docid": "43adaba55af4fbbfcef5197c841e49b8", "score": "0.58109385", "text": "@Test\n public void footerMissing() throws Exception {\n // Simulates a partial failure extending the file, that the file footer is corrupt - should read start of the file instead.\n //\n Geometry geometry;\n\n MemoryStream stream = new MemoryStream();\n try (DiskImageFile file = DiskImageFile.initializeDynamic(stream, Ownership.None, 16 * 1024L * 1024 * 1024)) {\n geometry = file.getGeometry();\n }\n\n stream.setLength(stream.getLength() - 512);\n\n try (DiskImageFile file = new DiskImageFile(stream)) {\n assertEquals(geometry, file.getGeometry());\n }\n }", "title": "" }, { "docid": "e2b08af73e345c48d4760825d3173945", "score": "0.5789858", "text": "@Test\n\tpublic void testReadFileEmptyFileException() {\n\t\tthrown.expect(IllegalArgumentException.class);\n\t\tthrown.expectMessage(\"Given file is empty\");\n\t\t\n\t\tString validInputFilepath = resourcesPath.concat(\"numbers_valid_empty.txt\");\n\t\t\n\t\tfileio.readFile(validInputFilepath);\n\t}", "title": "" }, { "docid": "8bb909af66a9639705d2ad0ded835acf", "score": "0.5723205", "text": "private void isFileEmpty(MultipartFile file) {\n if(file.isEmpty()){\n throw new IllegalStateException(\"Cannot upload empty file\");\n }\n }", "title": "" }, { "docid": "6934f89d4eb1e19e5b61efe06d0ebc50", "score": "0.5609934", "text": "private void endEmptyFile() throws TsFileProcessorException, IOException {\n logger.info(\"Start to end empty file {}\", tsFileResource);\n\n // remove this processor from Closing list in DataRegion,\n // mark the TsFileResource closed, no need writer anymore\n writer.close();\n for (CloseFileListener closeFileListener : closeFileListeners) {\n closeFileListener.onClosed(this);\n }\n if (enableMemControl) {\n tsFileProcessorInfo.clear();\n dataRegionInfo.closeTsFileProcessorAndReportToSystem(this);\n }\n logger.info(\n \"Storage group {} close and remove empty file {}\",\n storageGroupName,\n tsFileResource.getTsFile().getAbsoluteFile());\n\n writer = null;\n }", "title": "" }, { "docid": "2c63b9a8e458e166f887e9e67da25311", "score": "0.55874556", "text": "@Test(timeout = 4000)\n public void test16() throws Throwable {\n MockFile mockFile0 = new MockFile(\"\");\n mockFile0.setExecutable(false, false);\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createDepthFirstFileIteratorBuilder(mockFile0);\n mockFile0.setLastModified(0L);\n mockFile0.setLastModified(0L);\n MockFile.createTempFile(\".01TYA$To 34`Cd\", \"\", (File) mockFile0);\n fileIterator_FileIteratorBuilder0.build();\n FileIterator.createNonRecursiveFileIteratorBuilder(mockFile0);\n mockFile0.toURI();\n FileIterator.createBreadthFirstFileIteratorBuilder(mockFile0);\n // Undeclared exception!\n try { \n MockFile.createTempFile(\"\", \".01TYA$To 34`Cd\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Prefix string too short\n //\n verifyException(\"org.evosuite.runtime.vfs.VirtualFileSystem\", e);\n }\n }", "title": "" }, { "docid": "4918a0a0dbf3d6754c4dea5938899501", "score": "0.5550642", "text": "@Test\n public void testNullValuesFromEmptyConfigurationFile() throws IOException {\n\n ConfigurationSegment rootSegment = setupEmptyFileConfiguration();\n\n assertNullValuesForVariousRelativePaths(rootSegment);\n\n // expected behaviour: non-existing sub-segments should be returned, but\n ConfigurationSegment segment = rootSegment.getSubSegment(NON_EXISTING_SUB_PATH);\n assertNotNull(segment);\n assertFalse(segment.isPresentInCurrentConfiguration());\n\n assertNullValuesForVariousRelativePaths(segment);\n }", "title": "" }, { "docid": "c36ede422d558d84b96d37789553e21e", "score": "0.55210173", "text": "@Test\n public void testTruncate() throws IOException\n {\n // tests that a non-written spool is truncated to\n // a zero-length file at close.\n //\n assertEquals(blockSize, subjectBackingFile.length());\n subject.close();\n assertEquals(0, subjectBackingFile.length());\n }", "title": "" }, { "docid": "3c6f8f7fa41148b419a0d5b07ef53a69", "score": "0.55051666", "text": "public void testLoadFileEmptyNamespace() throws Exception {\r\n try {\r\n persistence.loadFile(\"\\t \\r \\n\", file);\r\n fail(\"IllegalArgumentException should be thrown when the namespace is empty.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "title": "" }, { "docid": "46b22190a6d57c320221083c566e9a2d", "score": "0.5500158", "text": "@Override\n abstract public boolean supportsTruncation();", "title": "" }, { "docid": "942885ebf8e91b8c64032cf901d772e3", "score": "0.5494268", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n MockFile mockFile0 = new MockFile((String) null, \":?H~TeUdTAp;AZpjT%\");\n File file0 = MockFile.createTempFile(\"org.jcvi.jillion.core.util.iter.IteratorUtil$EmptyIterator\", (String) null, (File) mockFile0);\n MockFile mockFile1 = new MockFile(file0, \":?H~TeUdTAp;AZpjT%\");\n mockFile0.setExecutable(false, true);\n mockFile1.setExecutable(false);\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createBreadthFirstFileIteratorBuilder(mockFile1);\n mockFile1.delete();\n // Undeclared exception!\n try { \n fileIterator_FileIteratorBuilder0.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // rootDir must be a directory\n //\n verifyException(\"org.jcvi.jillion.core.util.FileIterator\", e);\n }\n }", "title": "" }, { "docid": "6d39e63ecff2dd667f8614611cbb3029", "score": "0.5479504", "text": "@Test\n public void testDefaultValueHandlingFromEmptyConfigurationFile() throws IOException {\n\n ConfigurationSegment rootSegment = setupEmptyFileConfiguration();\n\n assertDefaultValueBehaviorForVariousRelativePaths(rootSegment);\n\n // expected behaviour: non-existing sub-segments should be returned, but\n ConfigurationSegment segment = rootSegment.getSubSegment(NON_EXISTING_SUB_PATH);\n assertNotNull(segment);\n assertFalse(segment.isPresentInCurrentConfiguration());\n\n assertDefaultValueBehaviorForVariousRelativePaths(segment);\n }", "title": "" }, { "docid": "a31c47b2233ffb2f287fb4f4e24620ff", "score": "0.546822", "text": "@Test\n public void testFailedImportNullBadDir() throws Exception {\n String inputFileName = \"constraintViolation.csv\";\n String inputFileOrigin = getResourceDirectory() +inputFileName;\n // copy the given input file under a temp folder so that it will get cleaned up\n // this used to go under the \"target/test-classes\" folder but doesn't work when we execute test from\n // a different location.\n File newImportFile = tempFolder.newFile(inputFileName);\n FileUtils.copyFile(new File(inputFileOrigin), newImportFile);\n assertTrue(\"Import file copy failed: \"+newImportFile.getCanonicalPath(), newImportFile.exists());\n String badFileName = newImportFile.getParent()+\"/\" +inputFileName+\".bad\";\n\n PreparedStatement ps = methodWatcher.prepareStatement(format(\"call SYSCS_UTIL.IMPORT_DATA(\" +\n \"'%s',\" + // schema name\n \"'%s',\" + // table name\n \"null,\" + // insert column list\n \"'%s',\" + // file path\n \"',',\" + // column delimiter\n \"null,\" + // character delimiter\n \"null,\" + // timestamp format\n \"null,\" + // date format\n \"null,\" + // time format\n \"%d,\" + // max bad records\n \"null,\" + // bad record dir\n \"null,\" + // has one line records\n \"null)\", // char set\n spliceSchemaWatcher.schemaName, TABLE_20,\n newImportFile.getCanonicalPath(), 0));\n try {\n ps.execute();\n fail(\"Too many bad records.\");\n } catch (SQLException e) {\n assertEquals(\"Expected too many bad records, but got: \"+e.getLocalizedMessage(), \"SE009\", e.getSQLState());\n }\n boolean exists = existsBadFile(new File(newImportFile.getParent()), inputFileName+\".bad\");\n assertTrue(\"Bad file \" +badFileName+\" does not exist.\", exists);\n }", "title": "" }, { "docid": "3512e59b0c330cf34f8b0dbe47ab1fc2", "score": "0.5459917", "text": "@Test\n public void testMissingEndQuoteForQuotedColumnEOF() throws Exception {\n String badDirPath = BADDIR.getCanonicalPath();\n String csvPath = getResourceDirectory() + \"import/missing-end-quote/employees.csv\";\n try {\n testMissingEndQuoteForQuotedColumn(spliceSchemaWatcher.schemaName, TABLE_18, csvPath, \"NAME,TITLE,AGE\",\n badDirPath, 0, 1, \"false\");\n fail(\"Expected to many bad records.\");\n } catch (SQLException e) {\n assertEquals(\"Expected too many bad records but got: \"+e.getLocalizedMessage(), \"SE009\", e.getSQLState());\n SpliceUnitTest.assertBadFileContainsError(new File(badDirPath), \"employees.csv\",\n null, \"unexpected end of file while reading quoted column beginning on line 2 and ending on line 6\");\n }\n }", "title": "" }, { "docid": "70ee3765403c221cc307e2375819ba4e", "score": "0.54221225", "text": "@Test\n public void testRecoveryWithNegativeSizeArgument() throws Exception\n {\n testRecoveryWithBadSizeArgument(-10, 10); // negative size, but no EOF\n }", "title": "" }, { "docid": "0d85d55c871edc6cfa484b1a86baa777", "score": "0.541658", "text": "@Test(expected = FileNotFoundException.class)\n\tpublic void testInvalidFilePath() throws FileNotFoundException, IOException{\n\t\tParseCSVFile.read(\"\");\n\t}", "title": "" }, { "docid": "f344ab44f36e6edbba6d20810a6f3bf2", "score": "0.5283848", "text": "@Test(expected = AssertionError.class)\n public void testBefore_withEmptyContent_couldnotCreateFile() throws Throwable {\n folder.newFile(\"testfile\");\n subject = new TemporaryFile(folder, \"testfile\");\n subject.setForceContent(false);\n subject.setContentUrl(null);\n // act\n subject.before();\n }", "title": "" }, { "docid": "5b7dd808154848ede70fb8686d6293aa", "score": "0.52772236", "text": "@Test(timeout = 4000)\n public void test00() throws Throwable {\n String string0 = \"D<|I@<2x\";\n MockFile mockFile0 = new MockFile(\"D<|I@<2x\");\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createNonRecursiveFileIteratorBuilder(mockFile0);\n boolean boolean0 = false;\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder1 = fileIterator_FileIteratorBuilder0.includeDirectories(false);\n fileIterator_FileIteratorBuilder0.includeDirectories(false);\n // Undeclared exception!\n try { \n fileIterator_FileIteratorBuilder1.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // rootDir must be a directory\n //\n verifyException(\"org.jcvi.jillion.core.util.FileIterator\", e);\n }\n }", "title": "" }, { "docid": "fead06d318cef1ca3982e4d710d79800", "score": "0.5270614", "text": "void validateFileHeader(LogBuffer lb)\n throws LogConfigurationException, IOException, InvalidLogBufferException\n {\n LogFile lf = currentLogFile;\n \n lb.read(lf, 0L);\n if (lb.bsn == -1) return; // end of file or empty file\n\n LogRecord fh = new LogRecord(fileHeader[0].length);\n\n fh.get(lb);\n if (fh.type != LogRecordType.FILE_HEADER)\n {\n throw new InvalidLogBufferException(\"HEADER_TYPE: \" + Integer.toHexString(fh.type));\n }\n if (fh.length != fileHeader[0].length + 2)\n {\n throw new InvalidLogBufferException(\"HEADER_SIZE: expected length(\" +\n (fileHeader[0].length + 2) + \") found (\" + fh.length + \")\"); \n }\n \n // we have a file header -- validate the data\n ByteBuffer dataBuffer = fh.dataBuffer;\n dataBuffer.clear();\n dataBuffer.getShort(); // field length not used\n automark = dataBuffer.get() == 1 ? true : false;\n activeMark = dataBuffer.getLong();\n dataBuffer.getLong(); // long highMark -- avoid unreferenced field warning\n dataBuffer.getLong(); // long switchTod -- avoid unreferenced field warning\n \n /*\n * Mak sure we have at least as many files as we had\n * when the fileset was created initially.\n */\n int nFiles = dataBuffer.getInt();\n if (nFiles != fileSet.length)\n throw new LogConfigurationException(\"Current configuration number of files [\" +\n fileSet.length + \"] not equal number of files in set [\" + nFiles + \"]\");\n \n /*\n * Make sure the configured file size is the same as\n * it was when the fileset was created.\n */\n int nBlocks = dataBuffer.getInt();\n if (nBlocks != maxBlocksPerFile)\n throw new LogConfigurationException(\"Configured file size [\" +\n maxBlocksPerFile + \"] blocks not equal previous file size [\" + nBlocks + \"] blocks\");\n short crlf = dataBuffer.getShort();\n if (crlf != 0x0D0A)\n throw new InvalidLogBufferException(\"FILE_HEADER: expecting CRLF found \" +\n Integer.toHexString(crlf));\n \n assert dataBuffer.capacity() == dataBuffer.position()\n : \"byte[] fileHeader size error\";\n }", "title": "" }, { "docid": "f31a9db0cd8094e1fbcc9ebdd24200fd", "score": "0.5268103", "text": "@Override\n public long getFileLength() \n {\n return 0;\n }", "title": "" }, { "docid": "39bfc5588b996610496517165b421f15", "score": "0.5245731", "text": "@Test\n public void testTruncate2() throws IOException\n {\n // tests that a half-block written spool is truncated to\n // the right length.\n //\n assertEquals(blockSize, subjectBackingFile.length());\n int halfBlock = blockSize / 2;\n subject.write(randomData(halfBlock));\n subject.close();\n assertEquals(halfBlock, subjectBackingFile.length());\n }", "title": "" }, { "docid": "c2cf2df4661bb630a43e28009da44f1b", "score": "0.5239944", "text": "@Test\r\n\t//test boundary case of \"no content\" \r\n\tpublic void testReadEmpty(){\r\n\t\tcreator.executeInitializeCommand(TEST_FILE_EMPTY);\r\n\t\tstore = Storage.getInstance();\r\n\t\tentries = store.entries_;\r\n\t\tassertEquals(entries.size(), 0);\r\n\t}", "title": "" }, { "docid": "28105b4832343465edbd590ed1559233", "score": "0.5234754", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/NULL_NULL_NULL_NULL.XML\");\n byte[] byteArray0 = new byte[0];\n FileSystemHandling.appendDataToFile(evoSuiteFile0, byteArray0);\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchASINFile((String) null, (String) null, (String) null, (String) null);\n assertEquals(0, fileInputStream0.available());\n }", "title": "" }, { "docid": "ae6f230d263135a011e2b09887aad744", "score": "0.51988184", "text": "@Test(expected = IOException.class)\n public void whenParse_CorruptedFile_ThenReject() throws URISyntaxException, IOException {\n final CsvFileConfig parserConfig = new CsvFileConfig();\n parserConfig.setDelimiter(\",\");\n parserConfig.setQuoteMode(true);\n execute(parserConfig, \"/abnormal.csv\");\n }", "title": "" }, { "docid": "7f622ffef00ecf7ff78dd31c4a999865", "score": "0.51928985", "text": "private boolean isFileEmpty(final Path actualFilePath) {\n File file = new File(actualFilePath.toString());\n return file.length() == 0;\n }", "title": "" }, { "docid": "f30ee95f875c04abaaae11f5874aba9a", "score": "0.5186016", "text": "@Test\n public void readPartialFile() throws Exception {\n long start = 3;\n long end = PACKET_SIZE * 10 - 99;\n long checksumExpected = populateInputFile(PACKET_SIZE * 10, start, end);\n mChannel.writeInbound(buildReadRequest(start, end + 1 - start));\n checkAllReadResponses(mChannel, checksumExpected);\n }", "title": "" }, { "docid": "73bc0a04df431d7d032f08ff776879ae", "score": "0.5184071", "text": "@Test(expected = IllegalArgumentException.class)\n\tpublic void testReadLongFromRandom_WhenFileDoesntExist() {\n\t\tPath badInputFile = Paths.get(\"E:\\\\alma.txt\");\n\t\tReadingRandomPosition.readLongFromRandomPosition(badInputFile);\n\t}", "title": "" }, { "docid": "c21cf5e342c264080b095dc43e7f17a8", "score": "0.5178596", "text": "@Test(timeout = 4000)\n public void test01() throws Throwable {\n MockFile mockFile0 = new MockFile(\"XWax/^f 7+28\", \"XWax/^f 7+28\");\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createNonRecursiveFileIteratorBuilder(mockFile0);\n mockFile0.setReadable(false, false);\n mockFile0.setLastModified(0L);\n MockFile.createTempFile(\"`>aZ\", \"aGOrh>Aw.!CP+#R/\", (File) mockFile0);\n FileFilter[] fileFilterArray0 = new FileFilter[1];\n LinkedList<FileFilter> linkedList0 = new LinkedList<FileFilter>();\n MultipleFileFilter multipleFileFilter0 = new MultipleFileFilter(linkedList0);\n fileFilterArray0[0] = (FileFilter) multipleFileFilter0;\n MultipleFileFilter multipleFileFilter1 = new MultipleFileFilter(fileFilterArray0);\n fileIterator_FileIteratorBuilder0.fileFilter(multipleFileFilter1);\n mockFile0.setWritable(false, false);\n FileIterator fileIterator0 = fileIterator_FileIteratorBuilder0.build();\n fileIterator0.next();\n // Undeclared exception!\n try { \n fileIterator0.remove();\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // can not remove\n //\n verifyException(\"org.jcvi.jillion.core.util.FileIterator\", e);\n }\n }", "title": "" }, { "docid": "ce83df27f61a2a2689724fd4ce062028", "score": "0.51705635", "text": "@Test(timeout = 4000)\n public void test014() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getASINFile(\"\", (String) null, \"\", (String) null);\n assertNull(file0);\n }", "title": "" }, { "docid": "94c022458f57bc3a04f721b614208c6d", "score": "0.51696813", "text": "@Test\n public void testTruncate3() throws IOException\n {\n // tests that a multi-block written spool is truncated to\n // the right length.\n //\n assertEquals(blockSize, subjectBackingFile.length());\n subject.write(randomData(blockSize));\n subject.write(randomData(blockSize));\n int halfBlock = blockSize / 2;\n subject.write(randomData(halfBlock));\n subject.close();\n int expected = blockSize * 2 + halfBlock;\n assertEquals(expected, subjectBackingFile.length());\n }", "title": "" }, { "docid": "387532198928bee4015a2aa58bd0aa39", "score": "0.516874", "text": "@Test\n public void testCorruptFile() {\n InputDataParser parser = new InputDataParser();\n Activity activity = parser.parseCSVToActivities(\"src/main/resources/TestFiles/parserTestFiles/corruptFile.csv\").get(0);\n\n DataValidator validator = new DataValidator();\n\n try {\n validator.validateActivity(activity);\n\n assertEquals(4, validator.getPointsDeleted());\n assertEquals(36, validator.getDataValidated());\n\n }\n catch (Exception e) {\n assert(false);\n }\n }", "title": "" }, { "docid": "4850dbb8af4e0816102e50e459c4d273", "score": "0.5166328", "text": "@Test(timeout = 4000)\n public void test03() throws Throwable {\r\n MockFile mockFile0 = (MockFile)TypeHandler.createFile(\"\");\r\n assertEquals(0L, mockFile0.length());\r\n }", "title": "" }, { "docid": "52b0b7cfe3a60311e4c05e8b6722246a", "score": "0.51622915", "text": "public InvalidFileException() {\n }", "title": "" }, { "docid": "150e4611333b47bfb405634b744728b4", "score": "0.5140537", "text": "@Test\n public void testMissingEndQuoteForQuotedColumnMax() throws Exception {\n String badDirPath = BADDIR.getCanonicalPath();\n String csvPath = getResourceDirectory() + \"import/missing-end-quote/employeesMaxQuotedColumnLines.csv\";\n try {\n testMissingEndQuoteForQuotedColumn(spliceSchemaWatcher.schemaName, TABLE_18, csvPath, \"NAME,TITLE,AGE\",\n badDirPath, 0, 199999, \"false\");\n fail(\"Expected to many bad records.\");\n } catch (SQLException e) {\n assertEquals(\"Expected too many bad records but got: \"+e.getLocalizedMessage(), \"SE009\", e.getSQLState());\n SpliceUnitTest.assertBadFileContainsError(new File(badDirPath), \"employeesMaxQuotedColumnLines.csv\",\n null, \"Quoted column beginning on line 3 has exceed the maximum allowed lines\");\n }\n }", "title": "" }, { "docid": "5bb8d0fd2c9597910f6b968489c9995f", "score": "0.51267666", "text": "@Test\n public void readAircraftInvalidTest12() {\n String aircraftFileContents = String.join(\":\", \"UTD302\", \"BOEING_787\",\n \"WAIT,LOAD@-100,TAKEOFF,AWAY,AWAY,AWAY,LAND\", \"10000.00\", \"false\", \"0\");\n try {\n ControlTowerInitialiser.readAircraft(aircraftFileContents);\n fail(\"MalformedSaveException should be caught\");\n } catch (MalformedSaveException expected) {\n System.out.println(\"Exception(if a task's load percentage is less than zero.) \" +\n \"thrown correctly\");\n }\n }", "title": "" }, { "docid": "cd49916f94081d979d02acab88ac8739", "score": "0.51213825", "text": "@Test(timeout = 4000)\n public void test013() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getASINFile((String) null, \"NZpoZv>A:8tU^\", (String) null, \"1\");\n assertNull(file0);\n }", "title": "" }, { "docid": "ea4e357eb76fde276007904c61522719", "score": "0.5110996", "text": "@Test(timeout = 4000)\n public void test07() throws Throwable {\n MockFile mockFile0 = new MockFile(\"XWax/^f 7+28\", \"XWax/^f 7+28\");\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createNonRecursiveFileIteratorBuilder(mockFile0);\n mockFile0.setReadable(false, false);\n mockFile0.setLastModified(0L);\n MockFile.createTempFile(\"XWax/^f 7+28\", \"aGOrh>Aw.!CP+#R/\", (File) mockFile0);\n LinkedList<FileFilter> linkedList0 = new LinkedList<FileFilter>();\n MultipleFileFilter multipleFileFilter0 = new MultipleFileFilter(linkedList0);\n FileFilter[] fileFilterArray0 = new FileFilter[0];\n MultipleFileFilter multipleFileFilter1 = new MultipleFileFilter(fileFilterArray0);\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder1 = fileIterator_FileIteratorBuilder0.fileFilter(multipleFileFilter0);\n mockFile0.setWritable(false, false);\n FileIterator fileIterator0 = fileIterator_FileIteratorBuilder1.build();\n // Undeclared exception!\n try { \n fileIterator0.next();\n fail(\"Expecting exception: NoSuchElementException\");\n \n } catch(NoSuchElementException e) {\n //\n // no more files\n //\n verifyException(\"org.jcvi.jillion.core.util.FileIterator\", e);\n }\n }", "title": "" }, { "docid": "72f797198ab592bf4f0284f0e3d8582d", "score": "0.510953", "text": "public void validate() throws Exception {\n pdfSource.seek(0);\n String firstLine = readLine(pdfSource);\n //TODO: discuss this validation logic\n if (firstLine == null || !(firstLine.matches(\"%PDF-1\\\\.[1-7]\") || firstLine.matches(\"%PDF-2.0\"))) {\n PDFValidationError error = new PDFValidationError(\"First line of pdf file must contain valid pdf header (6.1.2)\");\n errors.add(error);\n }\n\n String secondLine = readLine(pdfSource);\n if (secondLine.charAt(0) != PFConstants.COMMENT) {\n PDFValidationError error = new PDFValidationError(\"Second line must start with a % symbol (6.1.2)\");\n errors.add(error);\n }\n if (secondLine.length() < 5) {\n PDFValidationError error = new PDFValidationError(\"Second line must contain at least 5 bytes (6.1.2)\");\n errors.add(error);\n } else {\n for (int i = 1; i < 5; i++) {\n if (secondLine.charAt(i) <= 127) {\n PDFValidationError error = new PDFValidationError(\"Second line comment bytes values must be greater than 127 (6.1.2)\");\n errors.add(error);\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "fcb096a73f96dec40f88974b7dbd532c", "score": "0.5104763", "text": "@Test(timeout = 4000)\n public void test05() throws Throwable {\n File file0 = MockFile.createTempFile(\".ZSF;E3O~\", \"\");\n MockFile mockFile0 = new MockFile(file0, \"\");\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createNonRecursiveFileIteratorBuilder(mockFile0);\n boolean boolean0 = true;\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder1 = fileIterator_FileIteratorBuilder0.includeDirectories(true);\n mockFile0.setLastModified(1L);\n // Undeclared exception!\n try { \n fileIterator_FileIteratorBuilder1.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // rootDir must be a directory\n //\n verifyException(\"org.jcvi.jillion.core.util.FileIterator\", e);\n }\n }", "title": "" }, { "docid": "dbdfb5d73fbf912642f643201cb35497", "score": "0.5097979", "text": "@Test(timeout = 4000)\n public void test11() throws Throwable {\n MockFile mockFile0 = new MockFile(\"XWax/^f 7+28\", \"XWax/^f 7+28\");\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createNonRecursiveFileIteratorBuilder(mockFile0);\n mockFile0.setReadable(false, false);\n mockFile0.setLastModified(0L);\n File file0 = MockFile.createTempFile(\"`J8aZ\", \"aGOrh>Aw.!CP+#R/\", (File) mockFile0);\n FileFilter[] fileFilterArray0 = new FileFilter[1];\n LinkedList<FileFilter> linkedList0 = new LinkedList<FileFilter>();\n MultipleFileFilter multipleFileFilter0 = new MultipleFileFilter(linkedList0);\n fileFilterArray0[0] = (FileFilter) multipleFileFilter0;\n MultipleFileFilter multipleFileFilter1 = new MultipleFileFilter(fileFilterArray0);\n fileIterator_FileIteratorBuilder0.fileFilter(multipleFileFilter1);\n mockFile0.setWritable(false, false);\n FileIterator fileIterator0 = fileIterator_FileIteratorBuilder0.build();\n fileIterator0.setUpInitialState(file0);\n FileIterator.createNonRecursiveFileIteratorBuilder(file0);\n // Undeclared exception!\n try { \n fileIterator0.next();\n fail(\"Expecting exception: NoSuchElementException\");\n \n } catch(NoSuchElementException e) {\n //\n // no more files\n //\n verifyException(\"org.jcvi.jillion.core.util.FileIterator\", e);\n }\n }", "title": "" }, { "docid": "ddc7f3221d5126bcbd7650ade09ecf6e", "score": "0.50762767", "text": "@Test\n public void readAircraftInvalidTest5() {\n String aircraftFileContents = String.join(\":\", \"UTD302\", \"BOEING_787\",\n \"WAIT,LOAD@100,TAKEOFF,AWAY,AWAY,AWAY,LAND\", \"-10000\", \"false\", \"0\");\n try {\n ControlTowerInitialiser.readAircraft(aircraftFileContents);\n fail(\"MalformedSaveException should be caught\");\n } catch (MalformedSaveException expected) {\n System.out.println(\"Exception(if the aircraft's fuel amount is less than zero )\" +\n \" thrown correctly\");\n }\n }", "title": "" }, { "docid": "2f303b0c9d472199708550976d526ee2", "score": "0.50720024", "text": "public SectionFullException() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "d3c15a92717e8f12032913e505c04e25", "score": "0.50715333", "text": "public void testLoadFileEmptyNamespaceInXmlFile() throws Exception {\r\n try {\r\n persistence.loadFile(\"com.topcoder\", errFile2);\r\n fail(\"ConfigurationParserException should be thrown when empty namespace in the xml file.\");\r\n } catch (ConfigurationParserException cpe) {\r\n // ok\r\n }\r\n }", "title": "" }, { "docid": "31743dd11a48f23d32cc8cd282700749", "score": "0.5070617", "text": "public void testInputStreamEmpty() throws Exception {\n FileManagerNode home = account();\n FileManagerNode frog = home.addFile(\"frog\");\n try {\n frog.readContent();\n } catch (NodeNotFoundFault ouch) {\n return;\n }\n fail(\"Expected NodeNotFoundFault\");\n }", "title": "" }, { "docid": "a73be7ec224d34eabb37302d23b9dd28", "score": "0.5045485", "text": "@Test\n public void testDataFileBuildMissingDetectedFormat() throws StatefulIngestServiceException {\n businessObjectBuilder.execute(\"businessObjectBuilder:1\", state);\n\n //DataFile with missing detected format\n DataFile dataFile = (DataFile) businessObjectManager.get(dataFileThreeUri, DataFile.class);\n assertEquals(dataFile.getName(), dataFileThreeName);\n assertEquals(assertedDataFileFormat, dataFile.getFormat());\n assertEquals(fileThreeSource, dataFile.getSource());\n assertEquals(dataFileThreeSize, dataFile.getSize());\n }", "title": "" }, { "docid": "536b16b366faab73bc97a6ad4ce8bdd1", "score": "0.5035776", "text": "@Test\n\tpublic void testReadFileContainsInvalidEntries() {\n\t\tthrownss.expect(IllegalArgumentException.class);\n\t\tthrownss.expectMessage(\"Given file has non valid characters\");\n\t\t\n\t\tString validInputFilepath = resourcesPath.concat(\"numbers_non_valid.txt\");\n\t\t\n\t\tfileio.readFile(validInputFilepath);\n\t}", "title": "" }, { "docid": "5e0a2be254bdb1902d8bee07c71bb301", "score": "0.50340116", "text": "private void checkEndOfFile() {\n\t\tif (currentIndex >= data.length) {\n\t\t\tstate = LexerState.EOF;\n\t\t}\n\t}", "title": "" }, { "docid": "b3555473aa6739c0ce6fff0da84a04b8", "score": "0.5026818", "text": "@Test //good file\n public void TryFixFileTest() {\n Validator validator = new Validator(true, true);\n\n File newFile = null;\n try {\n Map<String, String> validationResult = validator.tryFixFile(validDescendIntegerFile1);\n assertTrue(validationResult.containsKey(\"Error\"));\n assertEquals(\"0\", validationResult.get(\"Error\"));\n\n assertTrue(validationResult.containsKey(\"FileName\"));\n String tempName = validationResult.get(\"FileName\");\n assertNotNull(tempName);\n\n newFile = new File(tempName);\n assertTrue(newFile.length() > 1);\n } finally {\n if (newFile != null) {\n newFile.delete();\n }\n }\n }", "title": "" }, { "docid": "88a636abd7a7d63ac1aa52eaa1241336", "score": "0.50230134", "text": "@Test \r\n\t\tpublic void shouldDismissFaultyWeekdayLineWithIllegalFirstToken() {\r\n\t\t line = \"abc Bi\";\r\n\t LineType theLineType = processor.process(line);\r\n\t assertEquals(LineType.INVALID_LINE, theLineType);\r\n\t}", "title": "" }, { "docid": "08bc826ddbe82bbad63b0c728944395a", "score": "0.50168276", "text": "@SuppressWarnings(\"ResultOfObjectAllocationIgnored\")\n public void testNonExisting()throws Exception, Exception\n {\n File tmpFile=File.createTempFile(\"image\", \".png\",FileUtil.makeQuarantineDirectory());\n \n try\n {\n new ImageResize( tmpFile);\n fail( \"did not detect missing file\");\n }\n catch( IllegalArgumentException iae)\n {\n //good\n }\n finally{\n tmpFile.delete();\n }\n }", "title": "" }, { "docid": "02774dc5b34bbbd9695ef88378534019", "score": "0.5012385", "text": "public void validate()\n {\n String loc = getFileLoc();\n \n if ((loc == null) || (loc.trim().length()==0)) {\n setValid(false);\n return;\n }\n\n //erm\n \n //does it exist?\n \n //this is not always wanted so let's leave it\n }", "title": "" }, { "docid": "67d1b31dd47b7e56e27428a76eab71d5", "score": "0.5004169", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.getASINFile(\"_\", \"U\", \"_\", \"_\");\n assertNull(file0);\n }", "title": "" }, { "docid": "018e73ea8e647a89797bcb3177320525", "score": "0.49870867", "text": "@Test\n public void testInvalidDirectoryUpdating() {\n List<FileMetadata> testList = new ArrayList<>();\n int numInput = 6;\n String[] inputFiles = {\n \"part-001.avro\",\n \"part-002.avro\",\n \"part-003.avro\",\n \"part-005.avro\",\n \"part-004.avro\",\n \"part-006.avro\"};\n long[] fileLength = {150582, 138132, 214005, 205738, 158273, 982345};\n for (int i = 0; i < numInput; i++) {\n testList.add(new FileMetadata(inputFiles[i], fileLength[i]));\n }\n String whiteList = \".*\";\n String blackList = \"\";\n String groupPattern = \"\";\n int expectedNumPartition = 6;\n int[][] expectedPartitioning = {{0}, {1}, {2}, {3}, {4}, {5}};\n\n DirectoryPartitioner directoryPartitioner =\n new DirectoryPartitioner(whiteList, blackList, groupPattern, new TestFileSystemAdapter(testList));\n Map<Partition, SystemStreamPartitionMetadata> metadataMap = directoryPartitioner.getPartitionMetadataMap(\"hdfs\", null);\n Assert.assertEquals(expectedNumPartition, metadataMap.size());\n Map<Partition, List<String>> descriporMap = directoryPartitioner.getPartitionDescriptor(\"hdfs\");\n verifyPartitionDescriptor(inputFiles, expectedPartitioning, expectedNumPartition, descriporMap);\n\n String[] updatedInputFiles = {\n \"part-001.avro\",\n \"part-002.avro\",\n \"part-003.avro\",\n \"part-005.avro\",\n \"part-007.avro\", // remove part-004 and replace it with 007\n \"part-006.avro\"};\n long[] updatedFileLength = {150582, 138132, 214005, 205738, 158273, 982345};\n testList.clear();\n for (int i = 0; i < numInput; i++) {\n testList.add(new FileMetadata(updatedInputFiles[i], updatedFileLength[i]));\n }\n directoryPartitioner =\n new DirectoryPartitioner(whiteList, blackList, groupPattern, new TestFileSystemAdapter(testList));\n try {\n directoryPartitioner.getPartitionMetadataMap(\"hdfs\", descriporMap);\n Assert.fail(\"Expect exception thrown from getting metadata. Should not reach this point.\");\n } catch (SamzaException e) {\n // expect exception to be thrown\n }\n }", "title": "" }, { "docid": "ac6c20435b7215460b7f0ed7d4dddaf3", "score": "0.4978978", "text": "protected void ignoreFirstRow() throws Exception {\n readNextToken(recordSeparator, 0, recordSeparatorLength, true);\n }", "title": "" }, { "docid": "88eee447a060708ef42d8a3044657569", "score": "0.49712586", "text": "@Test\n public void testEmptyCsvHeaders() throws IOException {\n buildFile(EMPTY_HEADERS_FILE, emptyHeaders);\n try {\n client.queryBuilder().sql(makeStatement(EMPTY_HEADERS_FILE)).run();\n fail();\n } catch (Exception e) {\n assertTrue(e.getMessage().contains(\"must define at least one header\"));\n }\n }", "title": "" }, { "docid": "e5508f132f20e9b5ac76db81943ae4a2", "score": "0.4969859", "text": "@Test\n public void testPartialRecord() throws IOException {\n File file = Files.createTempFile(\"foo-\", \".data\").toFile();\n DataOutputStream out = new DataOutputStream(new FileOutputStream(file));\n byte[] bytes = writePartialFile(out);\n\n // now verify we read 2 reads cleanly but hold off on the third\n ProtoSpout.MessageParserFactory factory = new ProtoSpout.MessageParserFactory(new ProtoSpout.TupleParser() {\n Splitter onSpace = Splitter.on(\" \");\n\n @Override\n public List<Object> parse(ByteString buffer) {\n return Lists.<Object>newArrayList(onSpace.split(buffer.toStringUtf8()));\n }\n\n @Override\n public List<String> getOutputFields() {\n throw new UnsupportedOperationException(\"Default operation\");\n }\n });\n\n StreamParser parser = factory.createParser(new FileInputStream(file));\n\n assertTrue(file.length() > 30);\n\n assertEquals(0, parser.currentOffset());\n List<Object> t = parser.nextRecord();\n\n assertEquals(2, t.size());\n assertEquals(\"test\", t.get(0));\n assertEquals(\"1\", t.get(1));\n\n t = parser.nextRecord();\n\n assertEquals(2, t.size());\n assertEquals(\"test\", t.get(0));\n assertEquals(\"2\", t.get(1));\n\n // time critical section starts here ... delay > 50ms can cause failure\n\n // first read doesn't see a full record and thus returns null\n t = parser.nextRecord();\n assertNull(t);\n\n // write the remainder now\n out.write(bytes, 6, bytes.length - 6);\n\n // so that the repeated read succeeds\n t = parser.nextRecord();\n // end of time critical section\n\n assertEquals(2, t.size());\n assertEquals(\"test\", t.get(0));\n assertEquals(\"3\", t.get(1));\n\n assertNull(parser.nextRecord());\n\n out.close();\n }", "title": "" }, { "docid": "9a27104ecfb8a927a6a62368b3531f00", "score": "0.49679366", "text": "@Test\n\tpublic void testReadFileNoFileFoundException() {\n\t\tthrowns.expect(IllegalArgumentException.class);\n\t\tthrowns.expectMessage(\"Input file does not exist\");\n\t\t\n\t\tString validInputFilepath = resourcesPath.concat(\"numbers_validpppp.txt\");\n\t\t\n\t\tfileio.readFile(validInputFilepath);\n\t}", "title": "" }, { "docid": "a82069f333b577713b1b61c23eb637c3", "score": "0.496676", "text": "@Test\n public void readTaskListInvalidTest3() {\n String aircraftFileContents = String.join(\",\", \"WAIT\", \"LOAD@-100\", \"TAKEOFF\",\n \"AWAY\", \"AWAY\", \"AWAY\", \"LAND\");\n try {\n ControlTowerInitialiser.readTaskList(aircraftFileContents);\n fail(\"MalformedSaveException should be caught\");\n } catch (MalformedSaveException expected) {\n System.out.println(\"Exception(if a task's load percentage is less than zero.) \" +\n \"thrown correctly\");\n }\n }", "title": "" }, { "docid": "612d58eb33e03a1d5e6d74ebc386324a", "score": "0.49645695", "text": "@Test(timeout = 4000)\n public void test04() throws Throwable {\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createDepthFirstFileIteratorBuilder((File) null);\n // Undeclared exception!\n try { \n fileIterator_FileIteratorBuilder0.build();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // rootDir can not be null\n //\n verifyException(\"org.jcvi.jillion.core.util.FileIterator\", e);\n }\n }", "title": "" }, { "docid": "3f440b3f85aee9da6b330954d17a94c3", "score": "0.49563852", "text": "@Test\n public void readAircraftInvalidTest6() {\n String aircraftFileContents = String.join(\":\", \"UTD302\", \"BOEING_787\",\n \"WAIT,LOAD@100,TAKEOFF,AWAY,AWAY,AWAY,LAND\", \"9999999\", \"false\", \"0\");\n try {\n ControlTowerInitialiser.readAircraft(aircraftFileContents);\n fail(\"MalformedSaveException should be caught\");\n } catch (MalformedSaveException expected) {\n System.out.println(\"Exception(if the aircraft's fuel amount is greater than \" +\n \"the aircraft's maximum fuel capacity.) thrown correctly\");\n }\n }", "title": "" }, { "docid": "6953114faf86acc62fc1a46f9a6296e4", "score": "0.4951456", "text": "@Test\n public void testNonExistentFileArgument() throws IOException {\n // Test case 1\n final File NONEXISTENT_FILE = new File(randomName+1 + \".tab\");\n String expectedMessage = \"File does not exist.\";\n\n try {\n generatorFactory.getListGenerator(NONEXISTENT_FILE);\n fail(\"Expected IllegalArgumentException to be thrown for nonexistent file argument.\");\n } catch (IllegalArgumentException e) {\n assertEquals(\"IllegalArgumentException did not have the expected error message for a nonexistent \" +\n \"file argument.\", expectedMessage, e.getMessage());\n }\n\n // Test case 2\n try {\n new TabDelimitedListGenerator(NONEXISTENT_FILE);\n fail(\"Expected IllegalArgumentException to be thrown for nonexistent file argument.\");\n } catch (IllegalArgumentException e) {\n assertEquals(\"IllegalArgumentException did not have the expected error message for a nonexistent \" +\n \"file argument.\", expectedMessage, e.getMessage());\n }\n }", "title": "" }, { "docid": "597d93d108547c168c41767ad3852590", "score": "0.495121", "text": "@Test\n public void testDataFileBuildNonMatchingFormats() throws StatefulIngestServiceException {\n businessObjectBuilder.execute(\"businessObjectBuilder:1\", state);\n\n DataFile dataFile = (DataFile) businessObjectManager.get(dataFileFourUri, DataFile.class);\n assertEquals(dataFile.getName(), dataFileFourName);\n assertEquals(pronomFormatUri, dataFile.getFormat());\n assertEquals(fileFourSource, dataFile.getSource());\n assertEquals(dataFileFourSize, dataFile.getSize());\n }", "title": "" }, { "docid": "60e8361b74fa072c3c72d6ea2a208dbd", "score": "0.49476013", "text": "public void testGetFile_DifferentSize() throws Throwable {\n rfd1=newRFD(\"some file name\", 1839, null);\n rfd2=newRFD(\"some file name\", 1223, null);\n assertTrue(! IncompleteFileManager.same(rfd1, rfd2));\n File tmp1=ifm.getFile(rfd1);\n File tmp2=ifm.getFile(rfd2);\n assertNotEquals(tmp2, tmp1);\n }", "title": "" }, { "docid": "d9f7b79576263ba1cf7f30ab90e257e8", "score": "0.494242", "text": "private static void checkForType2Errors(ArrayList<String> linesArray) throws ErrorException {\n if (linesArray.size() == COMMAND_FILE_IS_EMPTY) {\n return;\n } else if (!(FILTER).equals(linesArray.get(0))) {\n throw new ErrorException(BAD_SUBSECTION_NAME);\n }\n for (int i = 0; i < linesArray.size(); i++) {\n if (linesArray.get(i).equals(FILTER)) {\n if (i % NEW_SECTION_START == 0) {\n if (i + ORDER_SUB_SECTION_OFFSET >= linesArray.size()) {\n throw new ErrorException(BAD_FORMAT);\n }\n if (!(linesArray.get(i + ORDER_SUB_SECTION_OFFSET).equals(ORDER))) {\n throw new ErrorException(BAD_SUBSECTION_NAME);\n }\n }\n }\n if (linesArray.get(i).equals(ORDER)) {\n if (i % 4 == 0) { // ORDER placement in an organized command file\n if (!(linesArray.get(i - 2).equals(FILTER))) { // difference between order\n // subsection to it's matching filter subsection\n throw new ErrorException(BAD_SUBSECTION_NAME);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "e19567a865b670e4de012c96a0205aef", "score": "0.49394327", "text": "@Test\n public void parse_validPrefixWithEmptyArgs_throwsParseException() {\n assertParseFailure(parser, \"n/ \",\n String.format(MESSAGE_INVALID_COMMAND_FORMAT, FilterCommand.MESSAGE_USAGE));\n\n // date number prefix with empty args\n assertParseFailure(parser, \"d/ \",\n String.format(MESSAGE_INVALID_COMMAND_FORMAT, FilterCommand.MESSAGE_USAGE));\n\n // cashflow prefix with empty args\n assertParseFailure(parser, \"c/ \",\n String.format(MESSAGE_INVALID_COMMAND_FORMAT, FilterCommand.MESSAGE_USAGE));\n\n // tag prefix with empty args\n assertParseFailure(parser, \"t/ \",\n String.format(MESSAGE_INVALID_COMMAND_FORMAT, FilterCommand.MESSAGE_USAGE));\n }", "title": "" }, { "docid": "01f86814ffcb00a550997affe23fbbca", "score": "0.4931347", "text": "@Test\n public void emptyAtBeginning() throws CharacterCodingException {\n assertThat(feeder.hasInput()).isFalse();\n assertThat(feeder.isFull()).isFalse();\n assertThat(feeder.isDone()).isFalse();\n }", "title": "" }, { "docid": "88cf974c1b8123f4f47a99e70acf44ed", "score": "0.4930489", "text": "@Test\n public void testTC2() throws Exception {\n final Path p = new Path(\"/TC2/foo\");\n System.out.println((\"p=\" + p));\n // a. Create file with one and a half block of data. Close file.\n final int len1 = ((int) ((TestFileAppend3.BLOCK_SIZE) + ((TestFileAppend3.BLOCK_SIZE) / 2)));\n {\n FSDataOutputStream out = TestFileAppend3.fs.create(p, false, TestFileAppend3.buffersize, TestFileAppend3.REPLICATION, TestFileAppend3.BLOCK_SIZE);\n AppendTestUtil.write(out, 0, len1);\n out.close();\n }\n AppendTestUtil.check(TestFileAppend3.fs, p, len1);\n // Reopen file to append quarter block of data. Close file.\n final int len2 = ((int) (TestFileAppend3.BLOCK_SIZE)) / 4;\n {\n FSDataOutputStream out = TestFileAppend3.fs.append(p);\n AppendTestUtil.write(out, len1, len2);\n out.close();\n }\n // b. Reopen file and read 1.75 blocks of data. Close file.\n AppendTestUtil.check(TestFileAppend3.fs, p, (len1 + len2));\n }", "title": "" }, { "docid": "bb7ef73580bb66be43a4311168c59830", "score": "0.49277195", "text": "@Test\n public void readAircraftInvalidTest1() {\n String aircraftFileContents = String.join(\":\", \"UTD302\", \"BOEING_787\",\n \"WAIT,LOAD@100,TAKEOFF,AWAY,AWAY,AWAY,LAND\", \"10000.00\", \"false0\");\n try {\n ControlTowerInitialiser.readAircraft(aircraftFileContents);\n fail(\"MalformedSaveException should be caught\");\n } catch (MalformedSaveException expected) {\n System.out.println(\"Exception(if fewer colons (:) are detected in the\" +\n \" string than expected.) thrown correctly\");\n }\n }", "title": "" }, { "docid": "ea28aabe095fa24b338adc97652d9b43", "score": "0.49242803", "text": "@Test\n public void readAircraftInvalidTest8() {\n String aircraftFileContents = String.join(\":\", \"UTD302\", \"BOEING_787\",\n \"WAIT,LOAD@100,TAKEOFF,AWAY,AWAY,AWAY,LAND\", \"10000.00\", \"false\", \"-1000\");\n try {\n ControlTowerInitialiser.readAircraft(aircraftFileContents);\n fail(\"MalformedSaveException should be caught\");\n } catch (MalformedSaveException expected) {\n System.out.println(\"Exception(if the amount of cargo (freight/passengers) onboard\" +\n \" the aircraft is less than zero ) thrown correctly\");\n }\n }", "title": "" }, { "docid": "218dfc8d05e3847e2d085728d06c2dc5", "score": "0.49229145", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\r\n // Undeclared exception!\r\n try { \r\n TypeHandler.createFile((String) null);\r\n fail(\"Expecting exception: NullPointerException\");\r\n \r\n } catch(NullPointerException e) {\r\n //\r\n // no message in exception (getMessage() returned null)\r\n //\r\n assertThrownBy(\"java.io.File\", e);\r\n }\r\n }", "title": "" }, { "docid": "a39eeff037dd43ca674e9542166e0369", "score": "0.4911474", "text": "@Test(timeout = 4000)\n public void test044() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchASINFile(\"\", (String) null, (String) null, \".xml\");\n assertNull(fileInputStream0);\n }", "title": "" }, { "docid": "44bbec7486e52ea161ec8dfd1b1874c0", "score": "0.49059424", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n MockFile mockFile0 = new MockFile(\"\");\n FileIterator.createDepthFirstFileIteratorBuilder(mockFile0);\n mockFile0.setLastModified(0L);\n MockFile.createTempFile(\"8<*RfD{L9);x pM+~HU\", \"8<*RfD{L9);x pM+~HU\", (File) mockFile0);\n LinkedList<FileFilter> linkedList0 = new LinkedList<FileFilter>();\n LinkedList<FileFilter> linkedList1 = new LinkedList<FileFilter>();\n LinkedList<FileFilter> linkedList2 = new LinkedList<FileFilter>(linkedList1);\n LinkedList<FileFilter> linkedList3 = new LinkedList<FileFilter>();\n MultipleFileFilter multipleFileFilter0 = new MultipleFileFilter(linkedList0);\n LinkedList<FileFilter> linkedList4 = new LinkedList<FileFilter>();\n MultipleFileFilter multipleFileFilter1 = new MultipleFileFilter(linkedList3);\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createBreadthFirstFileIteratorBuilder(mockFile0);\n fileIterator_FileIteratorBuilder0.build();\n // Undeclared exception!\n try { \n MockFile.createTempFile(\"\", \"org.jcvi.jillion.core.util.iter.IteratorUtil\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // Prefix string too short\n //\n verifyException(\"org.evosuite.runtime.vfs.VirtualFileSystem\", e);\n }\n }", "title": "" }, { "docid": "ceae113d143dd8993477097cae56086f", "score": "0.49009842", "text": "private boolean isValidAudioChunk(String audioPath) {\n\t\tFile file = new File(audioPath);\n\t\tfile.exists();\n\t\tif (file.length() == 0) {\n\t\t\tfile.delete();\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "7b1b5b6c0bfdc6269005658743999ec1", "score": "0.4898201", "text": "@Test\n\tpublic void errorFromFile() throws Exception {\n\t\tProcess process = launch(\"-e\", dataFilename);\n\t\tProcessMonitor mon = new ProcessMonitor(null, process, notCancelled);\n\t\tassertProcessResult(mon, 0, \"\", data);\n\t}", "title": "" }, { "docid": "8d1a74595cc764d1980ad124b8a3c57f", "score": "0.48974797", "text": "public File moveIncomingToError(String dataSetTypeCodeOrNull);", "title": "" }, { "docid": "af95de0d279be6c5e1fe58fd7bcddc23", "score": "0.4895548", "text": "private void checkAndClean() throws FileNotFoundException, IOException {\n File logFile = new File(fileName);\n assertTrue(logFile.exists() && logFile.length() != 0);\n FileOutputStream fos = new FileOutputStream(logFile);\n fos.write(\"\".getBytes());\n fos.close();\n }", "title": "" }, { "docid": "63ec765110e7e52fe5c28b2accdcfb4e", "score": "0.48923856", "text": "@Test public void testDataFileName() throws IOException {\n assertTrue(CarbonTablePath.DataFileUtil.getPartNo(\"part-3-4-999.carbondata\").equals(\"3\"));\n assertTrue(CarbonTablePath.DataFileUtil.getTaskNo(\"part-3-4-999.carbondata\").equals(\"4\"));\n assertTrue(\n CarbonTablePath.DataFileUtil.getTimeStampFromFileName(\"part-3-4-999.carbondata\").equals(\"999\"));\n assertTrue(CarbonTablePath.DataFileUtil.getPartNo(\"/opt/apache-carbon/part-3-4-999.carbondata\").equals(\"3\"));\n assertTrue(CarbonTablePath.DataFileUtil.getTaskNo(\"/opt/apache-carbon/part-3-4-999.carbondata\").equals(\"4\"));\n assertTrue(\n CarbonTablePath.DataFileUtil.getTimeStampFromFileName(\"/opt/apache-carbon/part-3-4-999.carbondata\").equals(\"999\"));\n assertTrue(CarbonTablePath.DataFileUtil.getSegmentNo(\"part-3-4-0-999.carbondata\") == null);\n assertTrue(CarbonTablePath.DataFileUtil.getSegmentNo(\"part-3-4-0-0-999.carbondata\").equals(\"0\"));\n }", "title": "" }, { "docid": "b0225d18a7771bb5a95e9dc78ce390fc", "score": "0.4889464", "text": "private void initFile() {\n\t\tint i;\n\t\tfor (i = 0; i < _1K && /*get and inc position*/file.get() != DEFAULT; i++) ;\n\t}", "title": "" }, { "docid": "ecb570af5297cef7bde700d5f6147f5d", "score": "0.4888281", "text": "@Test\n public void testDefaultValueHandlingFromEmptyPlaceholderConfiguration() throws IOException {\n\n ConfigurationSegment rootSegment = setupPlaceholderConfiguration();\n\n assertDefaultValueBehaviorForVariousRelativePaths(rootSegment);\n\n // expected behaviour: non-existing sub-segments should be returned, but\n ConfigurationSegment segment = rootSegment.getSubSegment(NON_EXISTING_SUB_PATH);\n assertNotNull(segment);\n assertFalse(segment.isPresentInCurrentConfiguration());\n\n assertDefaultValueBehaviorForVariousRelativePaths(segment);\n }", "title": "" }, { "docid": "6937ead02320fd9443554dae8352d1d3", "score": "0.4887589", "text": "@Test\n public void readFullFile() throws Exception {\n long checksumExpected = populateInputFile(PACKET_SIZE * 10, 0, PACKET_SIZE * 10 - 1);\n mChannel.writeInbound(buildReadRequest(0, PACKET_SIZE * 10));\n checkAllReadResponses(mChannel, checksumExpected);\n }", "title": "" }, { "docid": "3bd14723cd0172d3b29ef3c3d9061a49", "score": "0.48852256", "text": "public void testLoadResourceEmptyNamespace() throws Exception {\r\n try {\r\n persistence.loadFile(\"\\t \\r \\n\", resource);\r\n fail(\"IllegalArgumentException should be thrown when the namespace is empty.\");\r\n } catch (IllegalArgumentException e) {\r\n // ok\r\n }\r\n }", "title": "" }, { "docid": "ba0b12418350569a80e15186642368f6", "score": "0.4883192", "text": "@Test(timeout = 4000)\n public void test041() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchASINFile(\"JG5r`<T~qC\", \"\\\"Eq6',cDHX!fmInz8\", \"JG5r`<T~qC\", (String) null);\n assertNull(fileInputStream0);\n }", "title": "" }, { "docid": "49a4b22351e37ba81e9e584d8208f109", "score": "0.48788828", "text": "public boolean isMultiFile() {\r\n\t\treturn lengths.length != 1;\r\n\t}", "title": "" }, { "docid": "06bcd204a7a95fd55a27cdd539e4b6f7", "score": "0.4875642", "text": "@Test(timeout = 4000)\n public void test42() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/NULL_NULL_NULL_NULL.XML\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"net.kencochrane.a4j.file.FileUtil\");\n FileInputStream fileInputStream0 = fileUtil0.fetchASINFile((String) null, (String) null, (String) null, (String) null);\n assertEquals(34, fileInputStream0.available());\n }", "title": "" }, { "docid": "db35c03d9e707e91b64bf76a5b387419", "score": "0.4874098", "text": "@Override\n\tvoid splitFile(File file, int dimensionOfEachPart) throws Exception {\n\t\tsuper.splitFile(file, (int) Math.ceil(file.length() / (dimensionOfEachPart)));\n\t}", "title": "" }, { "docid": "b1e6e3f7dfdab9e295dbffc5177b785c", "score": "0.48694527", "text": "@Override\n @Test\n public void testIncompleteReadAtEndOfMemory() throws STException {\n NFCTagUtils.printTestName(\"testIncompleteReadAtEndOfMemory\");\n\n // We can now proceed with the test\n super.testIncompleteReadAtEndOfMemory();\n }", "title": "" }, { "docid": "a09f56c696b3d4eae9ba33f0823853a6", "score": "0.48692536", "text": "@Test(timeout = 4000)\n public void test08() throws Throwable {\n String string0 = \"+o\\\\8Ss3:oX\";\n MockFile mockFile0 = new MockFile(\"+o8Ss3:oX\");\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder0 = FileIterator.createBreadthFirstFileIteratorBuilder(mockFile0);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder1 = fileIterator_FileIteratorBuilder0.includeHiddenFiles(true);\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder2 = fileIterator_FileIteratorBuilder1.includeDirectories(true);\n FileFilter[] fileFilterArray0 = new FileFilter[6];\n LinkedList<FileFilter> linkedList0 = new LinkedList<FileFilter>();\n MultipleFileFilter multipleFileFilter0 = new MultipleFileFilter(linkedList0);\n fileFilterArray0[0] = (FileFilter) multipleFileFilter0;\n MultipleFileFilter multipleFileFilter1 = new MultipleFileFilter(linkedList0);\n MultipleFileFilter multipleFileFilter2 = new MultipleFileFilter(linkedList0);\n FileIterator.FileIteratorBuilder fileIterator_FileIteratorBuilder3 = fileIterator_FileIteratorBuilder2.fileFilter(multipleFileFilter0);\n fileIterator_FileIteratorBuilder3.includeDirectories(false);\n // Undeclared exception!\n try { \n fileIterator_FileIteratorBuilder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // rootDir must be a directory\n //\n verifyException(\"org.jcvi.jillion.core.util.FileIterator\", e);\n }\n }", "title": "" }, { "docid": "403413060219f5c753929562a34c41b7", "score": "0.48647013", "text": "@Test\n\tpublic void given_CompletelyEmptyFileSet_when_RunFileOps_then_Exception() throws Exception {\n\t\tFileSet files = new FileSet();\n\n\t\texpectedException.expect(IllegalArgumentException.class);\n\t\tFileOps testOps = new FileOps(files, this);\n\t\tfinal ExecutorService threadPool = Executors.newFixedThreadPool(1);\n\t\tthreadPool.submit(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\ttestOps.run();\n\t\t\t\t} catch (final Throwable e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlatch.await();\n\t\tfail(\"Should not accept completely empty FileSet\");\n\t}", "title": "" }, { "docid": "8586da0ab3d4f1da8d7832c13b4c4d66", "score": "0.4863919", "text": "@Test\n public void readAircraftInvalidTest2() {\n String aircraftFileContents = String.join(\":\", \"UTD302\", \"BOEING_787\",\n \"WAIT,LOAD@100,TAKEOFF,AWAY\", \",AWAY,AWAY,LAND\", \"10000.00\", \"false\", \"0\");\n try {\n ControlTowerInitialiser.readAircraft(aircraftFileContents);\n fail(\"MalformedSaveException should be caught\");\n } catch (MalformedSaveException expected) {\n System.out.println(\"Exception(if more colons (:) are detected in the\" +\n \" string than expected.) thrown correctly\");\n }\n }", "title": "" }, { "docid": "276f37255a967177f3749362f4d4ba31", "score": "0.48626372", "text": "@Test\n\tpublic void cleanNotExisting() {\n\t\tFile file = new File(folder.getRoot(), \"notExisting\");\n\t\tAssertions.assertThatCode(() -> FileUtils.cleanDirectory(file, null)).isInstanceOf(IllegalArgumentException.class);\n\t}", "title": "" }, { "docid": "19ec9e268b413c73c63d59ced821fb9d", "score": "0.4856704", "text": "@Test\n\t public void mainTest5() throws Exception {\n\t File inputFile1 = createEmptyFile();\n\t \n\n\t String args[] = {\"\", \"\", \"--\", inputFile1.getPath()};\n\t inputFile1.delete();\n\t Main.main(args);\n\t //exception.expect(FileNotFoundException.class);\n\t assertEquals(\"File \" + inputFile1.getName() + \" not found\", errStream.toString().trim());\n\t assertFalse(Files.exists(Paths.get(inputFile1.getPath() + \".bck\")));\n\n\n\t }", "title": "" }, { "docid": "d3459a643edbce1d0c961735a5e4cae2", "score": "0.48466077", "text": "@Test\n public void testOpenNonExistentFile() throws Exception {\n Pair<Status, String> testDirectory = env.getTestDirectory();\n assertTrue(testDirectory.getLeft().isOk());\n\n String nonExistFile = testDirectory.getRight() + \"/non_existent_file\";\n Pair<Status, Boolean> pair = env.isFileExists(nonExistFile);\n assertTrue(pair.getLeft().isOk());\n assertFalse(pair.getRight());\n\n Pair<Status, RandomAccessFile> pair1 = env.newRandomAccessFile(nonExistFile);\n assertFalse(pair1.getLeft().isOk());\n assertNull(pair1.getRight());\n\n Pair<Status, SequentialFile> pair2 = env.newSequentialFile(nonExistFile);\n assertFalse(pair2.getLeft().isOk());\n assertNull(pair2.getRight());\n }", "title": "" }, { "docid": "49a73e9fda9f7018c56e39391344001e", "score": "0.48449552", "text": "@Test\n\t public void mainTest6() throws Exception {\n\t \tFile inputFile1 = createEmptyFile();\n\t\t \n\n\t String args[] = {\"\", \"\", \"--\"};\n\t Main.main(args);\n\t exception.expect(IllegalArgumentException.class);\n\t assertFalse(Files.exists(Paths.get(inputFile1.getPath() + \".bck\")));\n\t \n\t }", "title": "" }, { "docid": "b2ed698f97f06a0614d945b28050d290", "score": "0.4842024", "text": "@Test\n public void loadAircraftInvalidTest13() throws IOException{\n String aircraftFileContents = String.join(System.lineSeparator(), \"4\",\n \"QFA481:AIRBUS_A320:AWAY,AWAY,LAND,WAIT,WAIT,LOAD@-60,TAKEOFF,AWAY:10000.00\" +\n \":false:132\",\n \"UTD302:BOEING_787:WAIT,LOAD@100,TAKEOFF,AWAY,AWAY,AWAY,LAND:10000.00:false:0\",\n \"UPS119:BOEING_747_8F:WAIT,LOAD@50,TAKEOFF,AWAY,AWAY,AWAY,LAND:4000.00:false:0\",\n \"VH-BFK:ROBINSON_R44:LAND,WAIT,LOAD@75,TAKEOFF,AWAY,AWAY:40.00:false:4\");\n try {\n ControlTowerInitialiser.loadAircraft(new StringReader(aircraftFileContents));\n fail(\"MalformedSaveException should be caught\");\n } catch (MalformedSaveException expected) {\n System.out.println(\"Exception(if a task's load percentage is less than zero.)\" +\n \" thrown successfully\");\n }\n }", "title": "" }, { "docid": "853e07609aff05e147c34e6783e135f7", "score": "0.48360777", "text": "public void testGetFile_NoHash() throws Throwable {\n rfd1=newRFD(\"some file name\", 1839, null);\n rfd2=newRFD(\"some file name\", 1839, \n \"urn:sha1:GLSTHIPQGSSZTS5FJUPAKPZWUGYQYPFB\");\n assertTrue(IncompleteFileManager.same(rfd1, rfd2));\n File tmp1=ifm.getFile(rfd1);\n File tmp2=ifm.getFile(rfd2);\n assertEquals(tmp1, tmp2);\n }", "title": "" }, { "docid": "5635fcd89f6fc6327475be2d2f741785", "score": "0.48358834", "text": "@Test\n\tpublic void testGetError() throws IOException {\n\t\tFile archiveFile = new File(ZIP_FILE_PATH);\n\t\tTFile archiveDirectory = new TFile(archiveFile.getAbsolutePath());\n\t\tAssertions.assertThatCode(() -> FileUtils.getFile(archiveDirectory, \"test4.txt\")).isInstanceOf(IllegalArgumentException.class);\n\t}", "title": "" }, { "docid": "9f28a712752c38f5703326d557372b88", "score": "0.48350582", "text": "public void checkFields(String fileName) throws CSVFileInvalidException{\n String[] tempArray = new String[fields.length];\n\n for (int i = 0;i< fields.length;i++){\n tempArray[i] = fields[i];\n }\n\n for (int i =0;i< fields.length;i++) {\n if (fields[i].equals(\"\")) {\n throw new CSVFileInvalidException(tempArray,fileName);\n }\n }\n }", "title": "" }, { "docid": "62e4406aa4285a3bde35c289e4cb5735", "score": "0.48326218", "text": "@Test\n public void testTC1() throws Exception {\n final Path p = new Path(\"/TC1/foo\");\n System.out.println((\"p=\" + p));\n // a. Create file and write one block of data. Close file.\n final int len1 = ((int) (TestFileAppend3.BLOCK_SIZE));\n {\n FSDataOutputStream out = TestFileAppend3.fs.create(p, false, TestFileAppend3.buffersize, TestFileAppend3.REPLICATION, TestFileAppend3.BLOCK_SIZE);\n AppendTestUtil.write(out, 0, len1);\n out.close();\n }\n // Reopen file to append. Append half block of data. Close file.\n final int len2 = ((int) (TestFileAppend3.BLOCK_SIZE)) / 2;\n {\n FSDataOutputStream out = TestFileAppend3.fs.append(p);\n AppendTestUtil.write(out, len1, len2);\n out.close();\n }\n // b. Reopen file and read 1.5 blocks worth of data. Close file.\n AppendTestUtil.check(TestFileAppend3.fs, p, (len1 + len2));\n }", "title": "" }, { "docid": "2a2be49ecfca3f6517bb9ec9a2a161f5", "score": "0.48317775", "text": "@Test\r\n\tpublic final void testNonexistentFile() throws IOException, InterruptedException {\r\n\t\tfile.delete();\r\n\r\n\t\tobserver.start();\r\n\t\twaitForCompleteCycle();\r\n\t\tobserver.shutdown();\r\n\t\tobserver.join();\r\n\r\n\t\tConfiguration currentConfiguration = Logger.getConfiguration().create();\r\n\t\tassertThat(getErrorStream().nextLine(), matchesPattern(\"LOGGER ERROR\\\\: Failed to open \\\\\\\".+\\\\\\\"\"));\r\n\t\tassertEquals(DEFAULT_CONFIGURATION.getLevel(), currentConfiguration.getLevel());\r\n\t\tassertEquals(DEFAULT_CONFIGURATION.getFormatPattern(), currentConfiguration.getFormatPattern());\r\n\t\tassertEquals(DEFAULT_CONFIGURATION.getLocale(), currentConfiguration.getLocale());\r\n\t\tassertEquals(DEFAULT_CONFIGURATION.getMaxStackTraceElements(), currentConfiguration.getMaxStackTraceElements());\r\n\t\tassertThat(currentConfiguration.getWriters(), sameTypes(DEFAULT_CONFIGURATION.getWriters()));\r\n\t\tassertSame(DEFAULT_CONFIGURATION.getWritingThread(), currentConfiguration.getWritingThread());\r\n\r\n\t}", "title": "" } ]
5c9c2c14b90f01e03ec423f1b41e5878
read data read data as JavaRDD
[ { "docid": "36a7999fcceff3f474bd8a7b3efeb0e7", "score": "0.63831973", "text": "public void readRawData(){\n // read CSV data\n JavaRDD<String> rawData = spark.read()\n .option(\"header\",\"true\")\n .textFile(fileIn)\n .javaRDD();\n // remove header\n String headerVal = rawData.first();\n JavaRDD<String> rawDataFilter = rawData.filter(s->!s.contains(headerVal));\n // create row vector object\n JavaRDD<String[]> rawDataRow = rawDataFilter.map(s->s.split(\",\"));\n this.rawData = rawDataRow;\n }", "title": "" } ]
[ { "docid": "5a2229354ed253d1a883a652d66f28c6", "score": "0.73655283", "text": "public JavaRDD<String[]> getRawData() {//\n return rawData;//\n }", "title": "" }, { "docid": "38f25af2197c01e02314b7705c9b32bf", "score": "0.6661498", "text": "private JavaPairRDD<String, Iterable<String>> readData(JavaSparkContext sc) {\n\t\tJavaRDD<String> rdd = sc.textFile(this.inputFile);\n\t\tJavaPairRDD<String, Iterable<String>> pairRDD = rdd.mapToPair(s -> {\n\t\t\tString[] line = s.split(\",\");\n\t\t\tString userid = line[Constants.USER_ID];\n\t\t\tString productid = line[Constants.PRODUCT_ID];\n\t\t\treturn new Tuple2<String, String>(userid, productid);\n\t\t}).groupByKey();\n\n\t\treturn pairRDD;\t\n\t}", "title": "" }, { "docid": "d2ce989c0cd406e69609a236114b5d0c", "score": "0.630981", "text": "public ReadAsRDD(SparkSession spark, String fileIn){\n this.spark = spark;\n this.fileIn = fileIn;\n }", "title": "" }, { "docid": "9a2e0f055e2eb7c70313da784ffc3757", "score": "0.6102461", "text": "static public JavaRDD<LabeledPoint> convertToJavaRDD(List<LabeledPoint> labeledList){\n if (cxt == null) {\n parallelizeList();\n }\n\n JavaRDD<LabeledPoint> javaRDDLabeledList = cxt.parallelize(labeledList);\n\n return javaRDDLabeledList;\n\n }", "title": "" }, { "docid": "81758b10243e237fb530bec3e22de0cf", "score": "0.610048", "text": "public JavaRDD<String> etape1(String basePath) {\n JavaRDD<String> input = MultyCrieteriaDecisionMakingSparkApplication.ctx.textFile(basePath);\n // Persist the input in the memory\n input.persist(StorageLevel.MEMORY_ONLY());\n\n // Create Key Value pair , where the key is the column number and the value is the matrix numbers\n JavaPairRDD<Integer, Double> rdd2 = input.flatMapToPair((String s) -> {\n String[] records = s.split(\" \");\n ArrayList<Tuple2<Integer, Double>> list = new ArrayList<>();\n\n for (int i = 1; i < records.length; i++) {\n double multi = Double.parseDouble(records[i]);\n double tmp = multi * multi;\n\n list.add(new Tuple2<>(i, tmp));\n }\n return list;\n });\n\n // sort the result by key , and taking the maximum number from each collumn\n JavaPairRDD<Integer, Double> rdd3 = rdd2.reduceByKey((x, y) -> {\n return (x + y);\n });\n\n // sort the result by key , and taking the maximum number from each collumn\n sortedResut = rdd3.sortByKey().collect();\n\n MultyCrieteriaDecisionMakingSparkApplication.ctx.broadcast(sortedResut);\n\n JavaRDD<String> result1 = input.map((String s) -> {\n\n String[] records = s.split(\" \");\n\n for (int i = 1; i < records.length; i++) {\n double tmp = Double.parseDouble(records[i]);\n records[i] = String.valueOf(tmp / sqrt(sortedResut.get(i - 1)._2));\n\n }\n String toreturn = String.valueOf(records[0]);\n toreturn = toreturn + \" \";\n\n for (int i = 1; i < records.length - 1; i++) {\n toreturn = toreturn + String.valueOf(records[i]);\n toreturn = toreturn + \" \";\n\n }\n toreturn = toreturn + String.valueOf(records[records.length - 1]);\n\n return toreturn;\n });\n\n return result1;\n\n }", "title": "" }, { "docid": "6deb2b9ad36ca1f08451d657272514a9", "score": "0.609225", "text": "private JavaRDD<String> getRDDFromTextFile(String param, String filePath) throws FileNotFoundException, IllegalArgumentException {\n\t\tif(filePath == null) {\n\t\t\tthrow new FileNotFoundException(\"Text file path for \"+param+\" is empty\");\n\t\t} \t\n\t\tJavaRDD<String> rdd = sparkContext.textFile(filePath); \t\n\t\t\n\t\tif(rdd == null) {\n\t\t\tthrow new IllegalArgumentException(param+ \" RDD is empty\");\n\t\t}\n\t\treturn rdd;\n\t}", "title": "" }, { "docid": "56318d4673271ddd02f934c3dd31c5be", "score": "0.60134274", "text": "@Test\n public void dataLoad() {\n String pathToDataset = \"./data/Assistments_Math_2006_2007.txt\";\n DataLoad dataLoad = new DataLoadImpl();\n Map<String, String> param = new HashMap<>();\n param.put(\"datasetPath\", pathToDataset);\n Dataset<Row> dataset = dataLoad.loadData(sparkSession, DataSourceType.TSV, param);\n assertNotNull(dataset);\n System.out.println(dataset.count());\n dataset.printSchema();\n Dataset<Row> estudiantes = dataset\n //.select(\"Anon Student Id\")\n .select(\"KC (MCAS39-State_WPI-Simple)\")\n .distinct();\n System.out.println(\"KC: \" + estudiantes.count());\n// final Dataset<Row> est_hab = dataset.select(\"Anon Student Id\", \"KC(SubSkills)\");\n\n// Long sum = 0L;\n// Long cont = 0L;\n//\n// List<Row> list = estudiantes.collectAsList();\n// for (Row row : list) {\n// Long count;\n// count = est_hab\n// .filter(est_hab.col(\"Anon Student Id\").equalTo(row.getString(0)))\n// .select(\"KC(SubSkills)\").distinct()\n// .count();\n// System.out.println(\"[Estudiante: \" + row.getString(0) + \" - Habilidades: \" + count + \"]\");\n// sum += count;\n// cont++;\n// }\n// System.out.println(\"Sum: \"+sum+\" - Cont: \"+cont);\n// System.out.println(\"Promedio: \"+(double)sum/cont);\n }", "title": "" }, { "docid": "dc6674a3a763b3c2a535841b3daedf2b", "score": "0.596968", "text": "public org.apache.spark.rdd.RDD<java.lang.Object> generateFatRDD () { throw new RuntimeException(); }", "title": "" }, { "docid": "02697a8b1103fb4b1ad58527be8c5998", "score": "0.5934755", "text": "public final void testSpark() throws IOException {\n System.out.println(\"Spark test\");\n System.out.println(\"==========\");\n\n // Read the file\n String file = getClass().getClassLoader().\n getResource(\"726-unique-spams\").getPath();\n ArrayList<String> strings = DistributedGraphBuilder.readFile(file);\n\n // Parallelize the dataset in Spark\n JavaRDD<String> data = getSpark().parallelize(strings);\n\n JavaRDD<String> mapped =\n data.flatMap(new FlatMapFunction<String, String>() {\n @Override\n public Iterator<String> call(final String arg0) throws Exception {\n return new LinkedList<String>().iterator();\n }\n\n });\n\n assertEquals(0, mapped.count());\n }", "title": "" }, { "docid": "166b08efd3130bc8f54ff8702dcb34ba", "score": "0.58893806", "text": "public static void main(String[] args) {\n\t\tList<Integer> input = new ArrayList<>();\n\t\tinput.add(9);\n\t\tinput.add(16);\n\t\tinput.add(25);\n\t\tinput.add(36);\n\t\t\n\t\tLogger.getLogger(\"org.apache\").setLevel(Level.WARN);\n\t\t// Set App Name stating the Name of the app and Set master with wildcard stating the url of master\n\t\tSparkConf conf = new SparkConf().setAppName(\"Starting Spark\").setMaster(\"local[*]\");\n\t\t// Passn the conf to JavaSparkContext to read it\n\t\tJavaSparkContext sc = new JavaSparkContext(conf);\n\t\t// Pass the input to intialize RDD \n\t\tJavaRDD<Integer> myrdd = sc.parallelize(input);\n\t\t// Need to specify the RDD type\n\t\tJavaRDD<Double> sqrtRDD = myrdd.map(value -> Math.sqrt(value));\n\t\t// We need to print each value in RDD we do it with foreach() function and then print the value\n\t\tsqrtRDD.foreach(value -> System.out.println(value));\n//\t\tThe above statement can be optimized to \n//\t\tsqrtRDD.foreach(System.out::println); look for rdd.collect();\n//\t\tHow many elements in RDD\n\t\tSystem.out.println(sqrtRDD.count());\n//\t\tBut when we have to count the number of values inside the RDD with simple map and reduce\n\t\tJavaRDD<Long> singleInteger = sqrtRDD.map(value -> 1L);\n\t\tLong count= singleInteger.reduce((value1, value2)-> value1 + value2);\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n//\t\tCreating a tuple in JAVA Using Object in JavaRDD\n\t\tJavaRDD<IntergerToSquareRoot> javaObjectRDD = myrdd.map(value -> new IntergerToSquareRoot(value));\n\t\t\n//\t\tCreating tuple using Tuple2 class\n\t\tJavaRDD<Tuple2<Integer,Double>> tupleRDD = myrdd.map(value -> new Tuple2<Integer, Double>(value,Math.sqrt(value)));\n\t\t\n\t\t\n\t\tsc.close();\n\t}", "title": "" }, { "docid": "9253e61f4f2c569ad9b570c7524425db", "score": "0.5821249", "text": "public static void main(String[] args) throws IOException {\n\t\tJavaRDD<LabeledPoint> data = MLUtils.loadLibSVMFile(jsc.sc(), CSVToLibSVM.convertCSVToLibSVM(\"./input.txt\")).toJavaRDD();\n\t\t\n\t\t//All 42 Features\n//\t\tString filterString = \"duration,protocol_type,service,flag,src_bytes,dst_bytes,land,wrong_fragment,urgent,hot,num_failed_logins,logged_in,num_compromised,root_shell,su_attempted,num_root,num_file_creations,num_shells,num_access_files,num_outbound_cmds,is_host_login,is_guest_login,count,srv_count,serror_rate,srv_serror_rate,rerror_rate,srv_rerror_rate,same_srv_rate,diff_srv_rate,srv_diff_host_rate,dst_host_count,dst_host_srv_count,dst_host_same_srv_rate,dst_host_diff_srv_rate,dst_host_same_src_port_rate,dst_host_srv_diff_host_rate,dst_host_serror_rate,dst_host_srv_serror_rate,dst_host_rerror_rate,dst_host_srv_rerror_rate\";\n\t\t//Top 10 Plus Top 10 Features\n//\t\tString filterString = \"duration,protocol_type,service,flag,src_bytes,dst_bytes,land,wrong_fragment,urgent,hot,num_failed_logins,is_host_login,is_guest_login,srv_diff_host_rate,dst_host_count,dst_host_srv_count,dst_host_same_srv_rate,dst_host_diff_srv_rate,dst_host_srv_serror_rate,dst_host_srv_rerror_rate\";\n\t\t//Top 10 Features\n\t\tString filterString = \"duration,protocol_type,service,flag,src_bytes,dst_bytes,land,wrong_fragment,urgent,hot\";\n\t\t\n\t\tlog(\"------------------------------------------------ Full Data Processing ---------------------------------------\");\n\t\tanalyseData(data, filterString);\n\t\tJavaRDD<LabeledPoint> ambiguousData = jsc.parallelize(ambiguousSamples);\n\t\tJavaRDD<LabeledPoint> confidentData = jsc.parallelize(confidentSamples);\n\t\t\n\t\t\n\t\t\n\t\tlog(\"------------------------------------------------ Ambiguous Data Processing With Top 10 Plus Top 10 Features ---------------------------------------\");\n\t\t//All 42 Features\n//\t\tString ambiguousFilterString1 = \"duration,protocol_type,service,flag,src_bytes,dst_bytes,land,wrong_fragment,urgent,hot,num_failed_logins,logged_in,num_compromised,root_shell,su_attempted,num_root,num_file_creations,num_shells,num_access_files,num_outbound_cmds,is_host_login,is_guest_login,count,srv_count,serror_rate,srv_serror_rate,rerror_rate,srv_rerror_rate,same_srv_rate,diff_srv_rate,srv_diff_host_rate,dst_host_count,dst_host_srv_count,dst_host_same_srv_rate,dst_host_diff_srv_rate,dst_host_same_src_port_rate,dst_host_srv_diff_host_rate,dst_host_serror_rate,dst_host_srv_serror_rate,dst_host_rerror_rate,dst_host_srv_rerror_rate\";\n\t\t//Top 10 Plus Top 10 Features\n\t\tString ambiguousFilterString1 = \"duration,protocol_type,service,flag,src_bytes,dst_bytes,land,wrong_fragment,urgent,hot,num_failed_logins,is_host_login,is_guest_login,srv_diff_host_rate,dst_host_count,dst_host_srv_count,dst_host_same_srv_rate,dst_host_diff_srv_rate,dst_host_srv_serror_rate,dst_host_srv_rerror_rate\";\n\t\t//Top 10 Features\n//\t\tString ambiguousFilterString1 = \"duration,protocol_type,service,flag,src_bytes,dst_bytes,land,wrong_fragment,urgent,hot\";\n\t\tanalyseData(ambiguousData, ambiguousFilterString1);\n\t\t\n\n\t\t\n\t\tlog(\"------------------------------------------------ Ambiguous Data Processing With All 41 Features ---------------------------------------\");\n\t\t//All 42 Features\n\t\tString ambiguousFilterString2 = \"duration,protocol_type,service,flag,src_bytes,dst_bytes,land,wrong_fragment,urgent,hot,num_failed_logins,logged_in,num_compromised,root_shell,su_attempted,num_root,num_file_creations,num_shells,num_access_files,num_outbound_cmds,is_host_login,is_guest_login,count,srv_count,serror_rate,srv_serror_rate,rerror_rate,srv_rerror_rate,same_srv_rate,diff_srv_rate,srv_diff_host_rate,dst_host_count,dst_host_srv_count,dst_host_same_srv_rate,dst_host_diff_srv_rate,dst_host_same_src_port_rate,dst_host_srv_diff_host_rate,dst_host_serror_rate,dst_host_srv_serror_rate,dst_host_rerror_rate,dst_host_srv_rerror_rate\";\n\t\t//Top 10 Plus Top 10 Features\n//\t\tString ambiguousFilterString2 = \"duration,protocol_type,service,flag,src_bytes,dst_bytes,land,wrong_fragment,urgent,hot,num_failed_logins,is_host_login,is_guest_login,srv_diff_host_rate,dst_host_count,dst_host_srv_count,dst_host_same_srv_rate,dst_host_diff_srv_rate,dst_host_srv_serror_rate,dst_host_srv_rerror_rate\";\n\t\t//Top 10 Features\n//\t\tString ambiguousFilterString2 = \"duration,protocol_type,service,flag,src_bytes,dst_bytes,land,wrong_fragment,urgent,hot\";\n\t\tanalyseData(ambiguousData, ambiguousFilterString2);\n\t\t\n\t\t\n\t\t\n\t\tlog(\"------------------------------------------------ Confident Data Processing ---------------------------------------\");\n\t\tanalyseData(confidentData, filterString);\n\t\t\n\t\tjsc.stop();\n\t}", "title": "" }, { "docid": "da0528920a9ebacc586fa9f12d544253", "score": "0.5779894", "text": "public static void mapReduce(String inputFilePath, String outputFilePath){\n\t\tJavaRDD<String> inputFileData = context.textFile(inputFilePath);\n\t\tJavaPairRDD<String,Integer> map = inputFileData.mapToPair(\n\t\t\t\tnew PairFunction<String,String,Integer>(){\t\n\t\t\t\t\tpublic Tuple2<String, Integer> call(String arg0) throws Exception{\n\t\t\t\t\t\t//System.out.println(\"Input line : \" + arg0);\n\t\t\t\t\t\tif(!arg0.split(\",\")[0].equals(\"VendorID\")){\n\t\t\t\t\t\t\tString date = arg0.split(\",\")[1].split(\" \")[0].split(\"-\")[2];\n\t\t\t\t\t\t\tdouble longitutde = Double.parseDouble(arg0.split(\",\")[5]);\n\t\t\t\t\t\t\tdouble latitude = Double.parseDouble(arg0.split(\",\")[6]);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble LATRange = MAX_LATITUDE-MIN_LATITUDE;\n\t\t\t\t\t\t\tdouble LONGRange = MAX_LONGITUDE-MIN_LONGITUDE;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(latitude<=MAX_LATITUDE && latitude>=MIN_LATITUDE && longitutde<=MAX_LONGITUDE && longitutde>=MIN_LONGITUDE){\n\t\t\t\t\t\t\t\tint Derivedlat = (int)((latitude-MIN_LATITUDE)/UNIT_SIZE);\n\t\t\t\t\t\t\t\tint Derivedlong = (int)((longitutde-MIN_LONGITUDE)/UNIT_SIZE);\n\t\t\t\t\t\t\t\tint Deriveddate = Integer.parseInt(date)-1;\n\t\t\t\t\t\t\t\t/*if(Derivedlong >= 55){\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Longitude \"+ longitutde);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"derived Longitude \"+ Derivedlong);\n\t\t\t\t\t\t\t\t\tSystem.out.println(\" Is greater\" + (longitutde < MAX_LONGITUDE));\n\t\t\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\t\treturn new Tuple2<String, Integer>(Derivedlat+\",\"+Derivedlong+\",\"+Deriveddate, 1);\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\treturn new Tuple2<String,Integer>(\"\",0);\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\treturn new Tuple2<String,Integer>(\"\",0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}).reduceByKey(\n\t\t\t\t\t\tnew Function2<Integer,Integer,Integer>(){\n\t\t\t\t\t\t\tpublic Integer call(Integer v1, Integer v2) throws Exception{\n\t\t\t\t\t\t\t\treturn v1+v2;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\tMap<String,Integer> attributeMap = map.collectAsMap(); \n\t\tfor(Map.Entry<String, Integer> row : attributeMap.entrySet()){\n\t\t\tif(row.getKey()==null || row.getKey().equals(\"\"))\n\t\t\t\tcontinue;\n\t\t\tString[] temp = row.getKey().split(\",\");\n\t\t\tint x = Integer.parseInt(temp[0]);\n\t\t\tint y = Integer.parseInt(temp[1]);\n\t\t\tint z = Integer.parseInt(temp[2]);\n\t\t\t//System.out.println(x + \", \"+ y + \",\" + z);\n\t\t\tcoordinates[x][y][z] = row.getValue();\n\t\t\tsum += coordinates[x][y][z];\n\t\t}\n\t\tmean = (float) sum/CELL_COUNT;\n\t\t//System.out.println(\"sum : \" + sum);\n\t\t//System.out.println(\"CELL \"+ CELL_COUNT);\n\t\tSystem.out.println(\"Mean : \" + mean);\n\t\t//map.saveAsTextFile(outputFilePath);\n\t}", "title": "" }, { "docid": "179807086deeb6c720c05cc0a0d8351c", "score": "0.5764341", "text": "static Dataset<Row> getData(SparkSession spark) {\n\r\n\t\tProperties connectionProperties = new Properties();\r\n\t\tconnectionProperties.put(\"driver\", \"org.postgresql.Driver\");\r\n\t\tconnectionProperties.put(\"user\", \"postgres\");\r\n\t\tconnectionProperties.put(\"password\", \"Welcome123#\");\r\n\t\tDataset<Row> jdbcDF2 = spark.read().jdbc(\"jdbc:postgresql://localhost:5432/postgres\", \"pnet_dw.tblsparktest\",\r\n\t\t\t\tconnectionProperties);\r\n\t\t\r\n\t\treturn jdbcDF2;\r\n\t}", "title": "" }, { "docid": "fb69c91b5d8db9a85e321ee7fe19a6d0", "score": "0.57292867", "text": "public static void main(String[] args) {\n Logger.getLogger(\"org\").setLevel(Level.ERROR);\n\n SparkConf sc = new SparkConf().setAppName(\"WorstMoviesDataset\").setMaster(\"local[*]\");\n JavaSparkContext jsc = new JavaSparkContext(sc);\n\n SparkSession ss = SparkSession.builder().master(\"local[*]\").appName(\"WorstMoviesDataset\").getOrCreate();\n\n JavaRDD<String> rawData = jsc.textFile(\"src/main/resources/input/u.data\");\n JavaRDD<Row> data = rawData.map(WorstMoviesDataset::splitInfo);\n\n StructType moviesRatingStructType = DataTypes.createStructType(new StructField[] {\n DataTypes.createStructField(\"userid\", DataTypes.StringType, false, Metadata.empty()),\n DataTypes.createStructField(\"movieid\", DataTypes.StringType, false, Metadata.empty()),\n DataTypes.createStructField(\"rating\", DataTypes.StringType, false, Metadata.empty()),\n DataTypes.createStructField(\"timestamp\", DataTypes.StringType, true, Metadata.empty())}\n );\n\n Dataset<Row> dataDS = ss.createDataFrame(data, moviesRatingStructType);\n Dataset<Row> fieldsOfDataCasted = dataDS.withColumn(\"rating\", col(\"rating\").cast(\"double\"));\n\n RelationalGroupedDataset dataGroupedByMovie = fieldsOfDataCasted.groupBy(col(\"movieid\"));\n Dataset<Row> worstHundredMovies = dataGroupedByMovie.\n agg(avg(col(\"rating\")).as(\"avg_rating\"));\n\n /** Exercise! Filter out the movies those have less than 10 ratings */\n Dataset<Row> movieCount = dataGroupedByMovie.count();\n Dataset<Row> filteredWorstMovies = worstHundredMovies.join(movieCount,\"movieid\").\n filter(col(\"count\").$greater(10)).select(col(\"movieid\"), col(\"avg_rating\")).\n orderBy(col(\"avg_rating\").asc()).limit(100);\n /** Exercise! Filter out the movies those have less than 10 ratings */\n\n filteredWorstMovies.show();\n //worstHundredMovies.write().csv(\"src/main/resources/output/worst100moviesByDS.text\");\n\n ss.close();\n }", "title": "" }, { "docid": "83a2687ecaf6087c014672dc5a4e5e27", "score": "0.5643908", "text": "public static void main(String[] args) throws InterruptedException {\n\n SparkConf conf = new SparkConf()\n .setMaster(\"local[2]\")\n .setAppName(\"Lab6Ex3\");\n\n JavaStreamingContext jsc = JavaStreamingContext.getOrCreate(\"/tmp/Ex3\", () -> {\n JavaStreamingContext sc = new JavaStreamingContext(conf, Durations.seconds(60));\n\n JavaPairRDD<String,String> movies = sc.sparkContext().textFile(\"/home/bruno-santos/Desktop/G_v1GCD/datasets/title.basics.tsv.bz2\")\n .map(t -> t.split(\"\\t\"))\n .filter(t -> !t[0].equals(\"tconst\"))\n .mapToPair(t -> new Tuple2<>(t[0], t[2]))\n .cache();\n\n sc.socketTextStream(\"localhost\", 12345)\n .window(Durations.minutes(10),Durations.seconds(60))\n .transformToPair(rdd -> {\n JavaPairRDD<String, Double> res = rdd\n .map(t -> t.split(\"\\t\"))\n .mapToPair(t -> new Tuple2<>(Double.parseDouble(t[1]), t[0]))\n .sortByKey(false)\n .mapToPair(t -> new Tuple2<>(t._2,t._1))\n .join(movies)\n .mapToPair(t -> new Tuple2<>(t._2._2, t._2._1));\n return res;\n })\n .foreachRDD(rdd -> {\n List<Tuple2<String, Double>> lst = rdd.take(3);\n System.out.println(\"TOP 3: \" + lst.toString());\n });\n sc.checkpoint(\"/tmp/Ex3\");\n return sc;\n });\n\n jsc.start();\n jsc.awaitTermination();\n }", "title": "" }, { "docid": "bd973480bf0e1daf89efd4fd5abab3ac", "score": "0.54640204", "text": "public static void main(String[] args) {\n SparkConf sparkConf = new SparkConf().setMaster(\"local\").setAppName(\"STACKIT-Spark\");\n SparkSession spark = SparkSession.builder().config(sparkConf).getOrCreate();\n spark.sparkContext().setLogLevel(\"error\");\n\n // Set pathToFile to local file (e.g. \"src/main/resources/weather.csv\") if you don't want to use HDFS\n // Add hdp domain IP after \"hdfs://\" if you want it with specific domain settings\n WeatherParser weatherParser = new WeatherParser(spark, \"hdfs:///tmp/weather.csv\");\n // Set pathToFile to local file (e.g. \"src/main/resources/tripdata.csv\") if you don't want to use HDFS\n // Add hdp domain IP after \"hdfs://\" if you want it with specific domain settings\n TripDataParser tripDataParser = new TripDataParser(spark, \"hdfs:///tmp/tripdata.csv\");\n\n // Create javaRDD for weather data in weather.csv\n JavaRDD<Weather> weatherJavaRDD = weatherParser.createJavaRDD();\n Dataset<Row> weatherDf = spark.createDataFrame(weatherJavaRDD, Weather.class);\n weatherDf.createOrReplaceTempView(\"weather\");\n\n // Create javaRDD for trip data in tripdata.csv\n JavaRDD<TripData> tripDataJavaRDD = tripDataParser.createJavaRDD();\n Dataset<Row> tripDataDf = spark.createDataFrame(tripDataJavaRDD, TripData.class);\n tripDataDf.createOrReplaceTempView(\"tripdata\");\n\n // Join tripData and weather if tripData finds a weather dataset\n Dataset<Row> joined = tripDataDf.join(weatherDf, (tripDataDf.col(\"starttime\").between(weatherDf.col(\"starttime\"), weatherDf.col(\"endtime\")).and(tripDataDf.col(\"stoptime\").between(weatherDf.col(\"starttime\"), weatherDf.col(\"endtime\")))));\n // Prettify the joined dataset for later use and better visualisation\n Dataset<Row> prettyPrintJoined = joined.select(\n tripDataDf.col(\"bikeId\"),\n tripDataDf.col(\"tripDuration\"),\n tripDataDf.col(\"birthYear\"),\n tripDataDf.col(\"gender\"),\n tripDataDf.col(\"startStationName\"),\n tripDataDf.col(\"endStationName\"),\n tripDataDf.col(\"userType\"),\n tripDataDf.col(\"startTime\").alias(\"tripStartTime\"),\n tripDataDf.col(\"stopTime\").alias(\"tripStopTime\"),\n date_format(tripDataDf.col(\"startTime\"), \"HH\").alias(\"tripStartHourOfDay\"),\n dayofmonth(tripDataDf.col(\"startTime\")).alias(\"tripStartDayOfMonth\"),\n weatherDf.col(\"eventId\"),\n weatherDf.col(\"type\"),\n weatherDf.col(\"severity\")\n );\n // Show the pretty result\n prettyPrintJoined.show();\n // Group the pretty result by dayOfMonth\n RelationalGroupedDataset groupedByDayofMonth = prettyPrintJoined.groupBy(\"tripStartDayOfMonth\");\n // Count the amount of trips per Day and then sort in ascending order\n Dataset<Row> groupedByDayOfMonthAndSorted = groupedByDayofMonth.count().orderBy(prettyPrintJoined.col(\"tripStartDayOfMonth\").asc());\n // Show the result for the amount of trips per day of the month\n groupedByDayOfMonthAndSorted.show();\n\n // Group the result by type and severity\n RelationalGroupedDataset a = prettyPrintJoined.groupBy(prettyPrintJoined.col(\"type\"), prettyPrintJoined.col(\"severity\"));\n // Count the amount of trips per type/severity\n Dataset<Row> b = a.count().orderBy(prettyPrintJoined.col(\"type\").asc());\n b.show();\n\n // Group the pretty result by hourOfDay so we can figure out which time of the day has the most bike trips\n RelationalGroupedDataset groupedByHourOfDay = prettyPrintJoined.groupBy(\"tripStartHourOfDay\");\n // Count the amount of trips per hour and then sort them based on hourOfDay in ascending order\n Dataset<Row> groupedByHourOfDayAndSorted = groupedByHourOfDay.count().orderBy(prettyPrintJoined.col(\"tripStartHourOfDay\").asc());\n\n // Count the amount of trips per hour and then sort them based on count in ascending order\n Dataset<Row> groupedByHourOfDayCount = groupedByHourOfDay.count();\n Dataset<Row> groupedByHourOfDayAndCountSorted = groupedByHourOfDayCount.orderBy(groupedByHourOfDayCount.col(\"count\").desc());\n // Show the result for the amount of trips per hour of the day\n groupedByHourOfDayAndSorted.show();\n groupedByHourOfDayAndCountSorted.show(); // Display most bike trips per hour of Day\n\n // Query the average tripduration in seconds\n Dataset<Row> averageTripduration = tripDataDf.select(avg(tripDataDf.col(\"tripduration\")));\n averageTripduration.show();\n\n // Query the average tripduration in seconds BASED on gender\n // Gender: 0 = unknown, 1 = male, 2 = female\n RelationalGroupedDataset tripdurationByGender = tripDataDf.select(tripDataDf.col(\"tripduration\").cast(\"integer\"), tripDataDf.col(\"gender\")).groupBy(tripDataDf.col(\"gender\"));\n Dataset<Row> avgTripdurationByGender = tripdurationByGender.avg(\"tripduration\");\n avgTripdurationByGender.show();\n\n // Query the average tripduration in seconds BASED on usertype\n // Usertype: \"Customer\" = 24hr pass or 3day pass, \"Subscriber\" = annual member\n RelationalGroupedDataset tripdurationByUserType = tripDataDf.select(tripDataDf.col(\"tripduration\").cast(\"integer\"), tripDataDf.col(\"usertype\")).groupBy(tripDataDf.col(\"usertype\"));\n Dataset<Row> avgTripdurationByUserType = tripdurationByUserType.avg(\"tripduration\");\n avgTripdurationByUserType.show();\n\n // Query which gender is the most common to have a bike subscription\n Dataset<Row> usertypeBasedOnGender = spark.sql(\"SELECT usertype, count(gender) as genderCounter, gender FROM tripdata GROUP BY usertype, gender ORDER BY gender ASC\");\n usertypeBasedOnGender.show();\n }", "title": "" }, { "docid": "bc099473b7fab45ae14b63b1507208fa", "score": "0.5463483", "text": "JavaPairRDD<String, List<TaxonomyLineage>> getOrganismWithLineageRDD() {\n TaxonomyLineageReader lineageReader = new TaxonomyLineageReader(jobParameter, true);\n JavaPairRDD<String, List<TaxonomyLineage>> organismWithLineage = lineageReader.load();\n organismWithLineage.repartition(organismWithLineage.getNumPartitions());\n organismWithLineage.persist(StorageLevel.DISK_ONLY());\n // Count is terminal operator to have this RDD persist on disk\n log.info(\"Total no of TaxonomyLineageReader: \" + organismWithLineage.count());\n return organismWithLineage;\n }", "title": "" }, { "docid": "845aab230ef077418930169a2492970e", "score": "0.54558355", "text": "public static void example1(JavaSparkContext sparkContext) {\n\n\t\t/* Creating JavaRDD of String and caching to memory */\n\t\tJavaRDD<String> carData = sparkContext.textFile(Constants.CARS_FILE).cache();\n\n\t\t/* Filtering carData which contains CharSequence \"audi\" */\n\t\tJavaRDD<String> audiData = carData.filter(s -> s.contains(\"audi\"));\n\n\t\t/**\n\t\t * Class MyFunction implements function 'call()' for cleansing the data.\n\t\t * \n\t\t * @author neeraj\n\t\t *\n\t\t */\n\t\t@SuppressWarnings(\"serial\")\n\t\tclass MyFunction implements Function<String, String> {\n\n\t\t\t/**\n\t\t\t * Function 'call()' changes the no. of cylinders to text.\n\t\t\t * \n\t\t\t * @param s\n\t\t\t * Takes each of the records from the JavaRDD.\n\t\t\t */\n\t\t\tpublic String call(String record) {\n\t\t\t\t/* Splitting the String record to attributes. */\n\t\t\t\tString[] attList = record.split(\",\");\n\t\t\t\tif (attList[2].equals(\"4\")) {\n\t\t\t\t\tattList[2] = \"FOUR\";\n\t\t\t\t} else if (attList[2].equals(\"6\")) {\n\t\t\t\t\tattList[2] = \"SIX\";\n\t\t\t\t} else {\n\t\t\t\t\tattList[2] = \"EIGHT\";\n\t\t\t\t}\n\n\t\t\t\t/* Changing the Origin of car model to upper case. */\n\t\t\t\tattList[8] = attList[8].toUpperCase();\n\n\t\t\t\t/* Joining the attributes after cleansing */\n\t\t\t\tString str = String.join(\" \", attList);\n\t\t\t\treturn str;\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * MyFunction is called for cleansing operations using Spark Map\n\t\t * Transformation.\n\t\t */\n\t\tJavaRDD<String> cleansedData = audiData.map(new MyFunction());\n\n\t\t/* Printing the cleansed data */\n\t\tSystem.out.println(\"(Functions)Cleansed Data =\" + cleansedData.collect());\n\t}", "title": "" }, { "docid": "a5601ec77b76aaf262e6e0e1c46d0349", "score": "0.5445414", "text": "@SuppressWarnings(\"serial\")\n\tpublic static void main( String[] args )\n { \n \t\n \t//String input1 = \"/home/system/Desktop/TestData/JoinQueryInput1.csv\";\n \tString input1 =args[0];\n \t//String input2 = \"/home/system/Desktop/TestData/JoinQueryInput2.csv\";//args[1];\n \tString input2 = args[1];\n \tSparkConf conf = new SparkConf().setMaster(\"local\").setAppName(\"Group19-JoinQuery\");\n \tfinal JavaSparkContext sc = new JavaSparkContext(conf);\n \t\n \tJavaRDD<String> input1RDD = sc.textFile(input1);\n \tJavaRDD<String> input2RDD = sc.textFile(input2);\n \t \t\n \tString inputType = args[3]; //\"rectangle\";\n \t\n \tif(inputType.equals(\"point\")){\n \t\t\n \t\t//new Function(inputType, returnType)\n \tfinal JavaRDD<Id_PolygonPoints> input2Polygons = input2RDD.map(new Function<String,Id_PolygonPoints>(){\n \t\t\tpublic Id_PolygonPoints call(String coOrdinates){ Id_PolygonPoints idp = getIDPoints(coOrdinates); \n \t\t\treturn idp;}\n \t});\n \t\t\n \t\tfinal JavaRDD<Id_Point> input1Points= input1RDD.map(new Function<String,Id_Point>(){\n \t\t public Id_Point call(String oneCoOrdinates){Id_Point ip= getPoints(oneCoOrdinates);\n \t\t return ip;}\n \t\t});\n \t\tSystem.out.println(input1Points.count());\n \t\tSystem.out.println(input2Polygons.count());\n \t\tSystem.out.println(input1Points.first().id);\n \t\n \n \t\t\n \t\t\n\n \t\tfinal Broadcast<List<Id_Point>> input1Broadcast = sc.broadcast(input1Points.collect());\n \t\t \n\t\t \t \t\t \t\t\t\t\n \t\tJavaRDD<String> output = input2Polygons.map(new Function<Id_PolygonPoints,String>(){\n \t\t\tpublic String call(final Id_PolygonPoints onePolygon){ \t\t\t\t \t\t\t\t\n \t\t\t\tfinal List<Id_Point> inputBPoints= input1Broadcast.getValue(); \t\t\t\t \t\t\t\n \t\t\t\tString result=\"\";\n \t\t\t \t\t \n \t\t\t Double x_1 = onePolygon.x_1;\n \t\t\t Double y_1 = onePolygon.y_1;\n \t\t\t Double x_2 = onePolygon.x_2;\n \t\t\t Double y_2 = onePolygon.y_2;\n \t\t\t for(int i=0; i<inputBPoints.size(); i++){\n \t\t\t \tDouble x1 = inputBPoints.get(i).x1;\n \t\t\t \tDouble y1 = inputBPoints.get(i).y1;\n \t\t\t \t //if((x1-x_1) * (x1-x_2)<=0 && (y1-y_1) * (y1-y_2)<=0)\t \t \n \t\t\t \t if((x1-x_1) * (x1-x_2)<=0 && (y1-y_1) * (y1-y_2)<=0){\n \t\t\t \t\t if(result.equals(\"\"))\n \t\t\t \t\t result = result + inputBPoints.get(i).id;\n \t\t\t \t\t else\n \t\t\t \t\t\t result=result +\",\"+inputBPoints.get(i).id;\n \t\t\t \t }\n \t\t\t }\n \t\t\t\t if(result.equals(\"\"))\n \t\t\t\t\t result = \"NULL\";\n \t\t\t\t return onePolygon.id+\",\"+result; \t\t\t\t\n \t\t\t}\n \t\t}); \n \t\t\n \t\t\n \t\t//need to remove existing in output file location.\n \t\t\n \t\toutput.saveAsTextFile(args[2]);\n \t}\t\t\n \telse if(inputType.equals(\"rectangle\")){\n \t\n \t\t//new Function(inputType, returnType)\n \tfinal JavaRDD<Id_Polygon> input2Polygons = input2RDD.map(new Function<String,Id_Polygon>(){\n \t\t\tpublic Id_Polygon call(String coOrdinates){ Id_Polygon idp = getGeometry(coOrdinates); \n \t\t\treturn idp;}\n \t});\n \t\n \t\tJavaRDD<Id_Polygon> input1Polygons = input1RDD.map(new Function<String,Id_Polygon>(){\n\t\t\t\tpublic Id_Polygon call(String coOrdinates){ Id_Polygon idp = getGeometry(coOrdinates); \n\t\t\t\treturn idp; }\n \t});\n \t\t\n \t\tfinal Broadcast<List<Id_Polygon>> input1Broadcast = sc.broadcast(input1Polygons.collect());\n \t\t \n\t\t \t \t\t \t\t\t\t\n \t\tJavaRDD<String> output = input2Polygons.map(new Function<Id_Polygon,String>(){\n \t\t\tpublic String call(final Id_Polygon onePolygon){ \t\t\t\t \t\t\t\t\n \t\t\t\tfinal List<Id_Polygon> inputBPolygons= input1Broadcast.getValue(); \t\t\t\t \t\t\t\n \t\t\t\tString result=\"\";\n \t\t\t \t\t \n \t\t\t \n \t\t\t for(int i=0; i<inputBPolygons.size(); i++){\n \t\t\t \t if(inputBPolygons.get(i).g.intersects(onePolygon.g)){ //contains\n \t\t\t \t\t if(result.equals(\"\"))\n \t\t\t \t\t result = result + inputBPolygons.get(i).id;\n \t\t\t \t\t else\n \t\t\t \t\t\t result=result +\",\"+inputBPolygons.get(i).id;\n \t\t\t \t }\n \t\t\t }\n \t\t\t\t if(result.equals(\"\"))\n \t\t\t\t\t result = \"NULL\";\n \t\t\t\t return onePolygon.id+\",\"+result; \t\t\t\t\n \t\t\t}\n \t\t}); \n \t\t\n \t\t\n \t\t//need to remove existing in output file location.\n \t\t\n \t\toutput.saveAsTextFile(args[2]);\n \t\t//output.saveAsTextFile(\"/home/system/Desktop/JoinQuery.txt\"); //args[2]\n \t\t\n \t\t\n \t}\n \n \tsc.close();\n }", "title": "" }, { "docid": "f9bb89446076de39a1d645195ad58915", "score": "0.5439256", "text": "public static void main(String[] args) {\n\n\t\tSparkConf conf = new SparkConf();\n\t\tJavaSparkContext sc = new JavaSparkContext(conf.setAppName(\"Demo\")\n\t\t\t\t.setMaster(\"local\"));\n\t\tSQLContext sqlContext = new org.apache.spark.sql.SQLContext(sc);\n\t\tProperties prop = new Properties();\n\t\tprop.setProperty(\"driver\", \"com.mysql.jdbc.Driver\");\n\t\tprop.setProperty(\"user\", \"root\");\n\t\tprop.setProperty(\"password\", \"cloudera\");\n\n\t\tStructType schema = DataTypes\n\t\t\t\t.createStructType(new StructField[] {\n\t\t\t\t\t\tDataTypes.createStructField(\"id\", DataTypes.StringType,\n\t\t\t\t\t\t\t\ttrue),\n\t\t\t\t\t\tDataTypes.createStructField(\"first_name\",\n\t\t\t\t\t\t\t\tDataTypes.StringType, true),\n\t\t\t\t\t\tDataTypes.createStructField(\"last_name\",\n\t\t\t\t\t\t\t\tDataTypes.StringType, true),\n\t\t\t\t\t\tDataTypes.createStructField(\"mail\",\n\t\t\t\t\t\t\t\tDataTypes.StringType, true),\n\t\t\t\t\t\tDataTypes.createStructField(\"salary\",\n\t\t\t\t\t\t\t\tDataTypes.StringType, true),\n\t\t\t\t\t\tDataTypes.createStructField(\"phone\",\n\t\t\t\t\t\t\t\tDataTypes.StringType, true),\n\t\t\t\t\t\tDataTypes.createStructField(\"cost\",\n\t\t\t\t\t\t\t\tDataTypes.StringType, true) });\n\n\t\tSystem.out.println(\"Starting to load data...\");\n\t\tDataFrame inputDF = sqlContext.read()\n\t\t\t\t.format(\"com.databricks.spark.csv\").schema(schema)\n\t\t\t\t.option(\"header\", \"false\").option(\"delimiter\", \",\")\n\t\t\t\t.load(\"/home/cloudera/Desktop/employee.csv\");\n\t\tinputDF.show();\n\n\t\tString url = \"jdbc:/mysql://localhost:3036/test\";\n\t\tString table = \"test\";\n\n\t\t// inputDF.write().mode(\"append\").jdbc(url, table, prop);\n\n\t\tinputDF.write().mode(\"append\")\n\t\t\t\t.jdbc(\"jdbc:mysql://localhost:3306/test\", table, prop);\n\t\t/*\n\t\t * .format(\"com.mysql.jdbc.Driver\") .option(\"url\",\n\t\t * \"jdbc:/mysql://localhost:3036/test?user=root&password=cloudera\")\n\t\t * .option(\"dbtable\", table) //.option(\"tempdir\", \"s3n://\" + bucketName\n\t\t * + \"/tempAvroDir\") .mode(SaveMode.Append).save();\n\t\t */\n\n\t\tSystem.out.println(\"Ending...\");\n\n\t}", "title": "" }, { "docid": "65127aa9744d767a25726bf3b7a70e4d", "score": "0.5437737", "text": "static JavaPairRDD<String, Double> getGenesUsingTextFile(\n JavaSparkContext context,\n String inputPath,\n int numberOfPartitions) throws Exception {\n \n // read input and create the first RDD\n // JavaRDD<String>: where String = \"mapped_id,test_expression\"\n // JavaRDD<String> records = context.textFile(inputPath, 1).coalesce(3); // WORKED\n JavaRDD<String> records = context.textFile(inputPath, numberOfPartitions); // WORKED\n \n // for each record, we emit (K=mapped_id, V=test_expression)\n JavaPairRDD<String, Double> genes\n = records.mapToPair(new PairFunction<String, String, Double>() {\n @Override\n public Tuple2<String, Double> call(String rec) {\n // rec = \"mapped_id,test_expression\"\n String[] tokens = StringUtils.split(rec, \",\");\n // tokens[0] = mapped_id\n // tokens[1] = test_expression\n return new Tuple2<String, Double>(tokens[0], Double.parseDouble(tokens[1]));\n }\n });\n \n return genes;\n }", "title": "" }, { "docid": "bf6d47d7c6a33a85b6a37e6900791ff0", "score": "0.5400824", "text": "@Override\n public JavaPairRDD<String, String> prepare(final SparkSession spark) {\n JavaSparkContext jsc = new JavaSparkContext(spark.sparkContext());\n\n Map<String, String> readOverrides = new HashMap<String, String>();\n readOverrides.put(\"database\", \"lookup_tables\");\n readOverrides.put(\"collection\", \"income_lut_neigh\");\n readOverrides.put(\"readPreference.name\", \"secondaryPreferred\"); // mirar millor (!!!)\n ReadConfig readConfig = ReadConfig.create(jsc).withOptions(readOverrides);\n\n\n JavaMongoRDD<Document> rdd = MongoSpark.load(jsc);\n\n JavaPairRDD<String, String> rdd2 = rdd.mapToPair((document) ->{\n String neigh = document.getString(\"neighborhood\");\n String id = document.getString(\"_id\");\n\n\n return new Tuple2<String, String>(neigh, id);\n\n });\n\n return rdd2;\n }", "title": "" }, { "docid": "77bb67b85effe39e3341dbb2513475a6", "score": "0.53866744", "text": "private static void runBasicDataFrameExample(SparkSession spark) throws AnalysisException {\n Dataset<Row> df = spark.read().option(\"header\",\"true\").csv(\"train_data2_java.csv\");\n \n // Displays the content of the DataFrame to stdout\n df.show();\n // +----+-------+\n // | age| name|\n // +----+-------+\n // |null|Michael|\n // | 30| Andy|\n // | 19| Justin|\n // +----+-------+\n // $example off:create_df$\n\n // $example on:untyped_ops$\n // Print the schema in a tree format\n df.printSchema();\n // root\n // |-- age: long (nullable = true)\n // |-- name: string (nullable = true)\n\n // Select only the \"name\" column\n df.select(\"id\").show();\n\n // Select everybody, but increment the age by 1\n //df.select(col(\"id\"), col(\"id\").plus(1)).show();\n \n // Select pickup_latitude older than 40.76\n df.filter(col(\"pickup_latitude\").gt(40.76)).show();\n // +---+----+\n // |age|name|\n // +---+----+\n // | 30|Andy|\n // +---+----+\n\n // Count trips by vendor_id\n df.groupBy(\"vendor_id\").count().show();\n // +----+-----+\n // | age|count|\n // +----+-----+\n // | 19| 1|\n // |null| 1|\n // | 30| 1|\n // +----+-----+\n // $example off:untyped_ops$\n\n // $example on:run_sql$\n // Register the DataFrame as a SQL temporary view\n df.createOrReplaceTempView(\"df\");\n Dataset<Row> sqlDF = spark.sql(\"SELECT * FROM df limit 10 \");\n sqlDF.show();\n\n // ------------- SQL FOR EXTRACT FEATURES -------------\n df.createOrReplaceTempView(\"df\");\n Dataset<Row> sqlDF2 = spark.sql(\"SELECT id, pickup_datetime, date(pickup_datetime) as date,month(pickup_datetime) as month, date_format(pickup_datetime, 'EEEE') as dow FROM df limit 10 \");\n sqlDF2.show();\n\n // $example on:global_temp_view$\n // Register the DataFrame as a global temporary view\n df.createGlobalTempView(\"df\");\n\n // Global temporary view is tied to a system preserved database `global_temp`\n spark.sql(\"SELECT * FROM global_temp.df limit 10 \").show();\n // +----+-------+\n // | age| name|\n // +----+-------+\n // |null|Michael|\n // | 30| Andy|\n // | 19| Justin|\n // +----+-------+\n\n // Global temporary view is cross-session\n spark.newSession().sql(\"SELECT * FROM global_temp.df limit 10\").show();\n // +----+-------+\n // | age| name|\n // +----+-------+\n // |null|Michael|\n // | 30| Andy|\n // | 19| Justin|\n // +----+-------+\n // $example off:global_temp_view$\n\n \n }", "title": "" }, { "docid": "c4a03df497043467c23c5c0d3a00df5a", "score": "0.53822064", "text": "public static void main(String[] args) {\n\n Hortonworks.SparkTutorial.Read R =new Hortonworks.SparkTutorial.Read();\n Dataset<Row> df = R.read(\"src/main/resources/StudyID_6_Korea3.csv\");\n df.printSchema();\n// R.select(df,\"Age_at_Commencement\");\n// R.GroupBy(df,\"Age_at_Commencement\");\n// R.toSQL(df,\"people\",\"SELECT * FROM people\");\n// Dataset<Row> df1 = R.Combine(df,\"Policy_ID\",df,\"Benefit_ID\");\n// df1.printSchema();\n\n }", "title": "" }, { "docid": "1e661c511a197ca1c8af7e91545a2a5e", "score": "0.5375221", "text": "public void initializeRdd (org.apache.spark.rdd.RDD<?> rdd) { throw new RuntimeException(); }", "title": "" }, { "docid": "192ed395a95317c7bfd9c4666a1ce798", "score": "0.53679067", "text": "private void createJavaStreamingDStream() throws InterruptedException {\n // init Streaming context\n // =========================================\n SparkConf conf = new SparkConf().setMaster(\"local\").setAppName(\"kafka-to-spark application\");\n JavaStreamingContext ssc = new JavaStreamingContext(conf, new Duration(INTERVAL));\n\n\n // =========================================\n // Data input - get data from kafka topic\n // =========================================\n Map<String, Object> kafkaParams = new HashMap<>();\n kafkaParams.put(\"bootstrap.servers\", \"localhost:9092,anotherhost:9092\");\n kafkaParams.put(\"key.deserializer\", StringDeserializer.class);\n kafkaParams.put(\"value.deserializer\", StringDeserializer.class);\n kafkaParams.put(\"group.id\", \"use_a_separate_group_id_for_each_stream\");\n kafkaParams.put(\"auto.offset.reset\", \"latest\");\n kafkaParams.put(\"enable.auto.commit\", false);\n\n Collection<String> topics = Arrays.asList(\"test\");\n\n final JavaInputDStream<ConsumerRecord<String, String>> stream =\n KafkaUtils.createDirectStream(\n ssc,\n LocationStrategies.PreferConsistent(),\n ConsumerStrategies.<String, String>Subscribe(topics, kafkaParams)\n );\n\n\n\n\n // =========================================\n // Data process part - print every line\n // =========================================\n stream.map(record->(record.value())).print();\n\n ssc.start();\n ssc.awaitTermination();\n }", "title": "" }, { "docid": "8d18c906bb0fafa39f00220d17d694f6", "score": "0.5364231", "text": "public static void main(String[] args ) throws IOException\n\t{\n\t\tSparkConf conf = new SparkConf().setMaster(\"local[\" + NUM_THREADS + \"]\")\n\t\t\t\t.setAppName(SparkRead.class.getSimpleName());\n\t\t// Set the config\n\t\tJavaSparkContext sc = new JavaSparkContext(conf);\n\n\t\t// A hack to make sure we're not downloading the whole pdb\n\t\tProperties sysProps = System.getProperties();\n\t\t\n\t\tsysProps.setProperty(\"PDB_CACHE_DIR\", \"/home/anthony/PDB_CACHE\");\n\t\tsysProps.setProperty(\"PDB_DIR\", \"/home/anthony/PDB_CACHE\");\n\t\tAtomCache cache = new AtomCache();\n\t\tcache.setUseMmCif(true);\n\t\tcache.setFetchBehavior(FetchBehavior.FETCH_FILES);\n\t\tFileParsingParameters params = cache.getFileParsingParams();\n\t\tparams.setCreateAtomBonds(true);\n\t\tparams.setAlignSeqRes(true);\n\t\tparams.setParseBioAssembly(true);\n\t\tDownloadChemCompProvider dcc = new DownloadChemCompProvider();\n\t\tChemCompGroupFactory.setChemCompProvider(dcc);\n\t\tdcc.checkDoFirstInstall();\n\t\tcache.setFileParsingParams(params);\n\t\tStructureIO.setAtomCache(cache);\n\n\t\t// Get all the PDB IDs\n\t\tSortedSet<String> thisSet = GetRepresentatives.getAll();\n\t\tList<String> pdbCodeList = new ArrayList<String>(thisSet);\n\t\t// Now read this list in\n\t\tJavaRDD<String> distData =\n\t\t\t\tsc.parallelize(pdbCodeList)\n\t\t\t\t.filter(new Function<String, Boolean>() {\n\t\t\t\t\t\n\t\t\t\t\t/**\n\t\t\t\t\t * \n\t\t\t\t\t */\n\t\t\t\t\tprivate static final long serialVersionUID = -656847737353155798L;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Boolean call(String v1) throws Exception {\n\t\t\t\t\t\tParseFromBiojava cbs = new ParseFromBiojava();\n\t\t\t\t\t\tMap<Integer, PDBGroup> totMap = new HashMap<Integer, PDBGroup>();\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tcbs.createFromJavaStruct(v1, totMap);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t// Just return the object\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// If it doesn't fail also return the object\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t// Now collect these\n\t\tList<String> errorList = distData.collect();\n\t\tSystem.out.println(\"Number of failing objects: \"+errorList.size());\n\t\tFileWriter writer = new FileWriter(\"Errors.txt\"); \n\t\tfor(String str: errorList) {\n\t\t writer.write(str);\n\t\t}\n\t\twriter.close();\n\t\tsc.close();\n\t}", "title": "" }, { "docid": "720daddcf0701fba1d46de8f180130b0", "score": "0.530846", "text": "public static void main(String[] args) {\n // The \"modern\" way to initialize Spark is to create a SparkSession\n // although they really come from the world of Spark SQL, and Dataset\n // and DataFrame.\n //\n SparkSession spark = SparkSession\n .builder()\n .appName(\"streaming-Filtering\")\n .master(\"local[4]\")\n .getOrCreate();\n\n //\n // Operating on a raw RDD actually requires access to the more low\n // level SparkContext -- get the special Java version for convenience\n //\n JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());\n\n\n // streams will produce data every second (note: it would be nice if this was Java 8's Duration class,\n // but it isn't -- it comes from org.apache.spark.streaming)\n JavaStreamingContext ssc = new JavaStreamingContext(sc, new Duration(1000));\n\n // use the utility class to produce a sequence of 10 files, each containing 100 records\n CSVFileStreamGenerator fm = new CSVFileStreamGenerator(10, 100, 500);\n // create the stream, which will contain the rows of the individual files as strings\n // -- notice we can create the stream even though this directory won't have any data until we call\n // fm.makeFiles() below\n JavaDStream<String> streamOfRecords = ssc.textFileStream(fm.getDestination().getAbsolutePath());\n\n // use a simple transformation to create a derived stream -- the original stream of Records is parsed\n // to produce a stream of KeyAndValue objects\n JavaDStream<StreamingItem> streamOfItems = streamOfRecords.map(s -> new StreamingItem(s));\n\n // create a derived stream that only contains StreamingItem objects whose category value is MEDIUM\n JavaDStream<StreamingItem> streamOfMediumEntries =\n streamOfItems.filter(item -> item.getCategory() == StreamingItem.Category.MEDIUM);\n\n // now register a function to print the size of each batch -- notice there are fewer items in each one\n // as only the MEDIUM entries have been retained.\n streamOfMediumEntries.foreachRDD(rdd -> System.out.println(\"Item count = \" + rdd.count()));\n\n // start streaming\n System.out.println(\"*** about to start streaming\");\n ssc.start();\n\n\n Thread t = new Thread() {\n public void run() {\n try {\n // A curious fact about files based streaming is that any files written\n // before the first RDD is produced are ignored. So wait longer than\n // that before producing files.\n Thread.sleep(2000);\n\n System.out.println(\"*** producing data\");\n // start producing files\n fm.makeFiles();\n\n // give it time to get processed\n Thread.sleep(10000);\n } catch (InterruptedException ie) {\n } catch (IOException ioe) {\n throw new RuntimeException(\"problem in background thread\", ioe);\n }\n ssc.stop();\n System.out.println(\"*** stopping streaming\");\n }\n };\n t.start();\n\n try {\n ssc.awaitTermination();\n } catch (InterruptedException ie) {\n\n }\n System.out.println(\"*** Streaming terminated\");\n }", "title": "" }, { "docid": "4dfbb08ba0a42a407edc9e370ecc93c9", "score": "0.5298672", "text": "private JavaPairDStream<String, Integer> processFlumeStream(\n\t\t\tJavaReceiverInputDStream<SparkFlumeEvent> flumeStream) {\n\n\t\tJavaDStream<String[]> csvData = flumeStream\n\t\t\t\t.map(new Function<SparkFlumeEvent, String[]>() {\n\t\t\t\t\tpublic String[] call(SparkFlumeEvent event)\n\t\t\t\t\t\t\tthrows Exception {\n\t\t\t\t\t\tString line = new String(event.event().getBody()\n\t\t\t\t\t\t\t\t.array());\n\t\t\t\t\t\tlogger.info(\"Data input ---->\" + line);\n\t\t\t\t\t\tCSVReader reader = new CSVReader(\n\t\t\t\t\t\t\t\tnew StringReader(line), ',');\n\t\t\t\t\t\tString[] result = reader.readNext();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tJavaPairDStream<String, Integer> rdd = csvData.mapToPair(\n\t\t\t\tnew PairFunction<String[], String, Integer>() {\n\t\t\t\t\tpublic Tuple2<String, Integer> call(String[] x) {\n\t\t\t\t\t\treturn new Tuple2(x[1], 1);\n\t\t\t\t\t}\n\t\t\t\t}).reduceByKey(new Function2<Integer, Integer, Integer>() {\n\t\t\tpublic Integer call(Integer a, Integer b) {\n\t\t\t\treturn a + b;\n\t\t\t}\n\t\t});\n\n\t\tlogger.info(\"******** Data consumption started *********\");\n\t\tinitializeCassandra();\n\t\treturn rdd;\n\t}", "title": "" }, { "docid": "7f304884ea0497f9f4a8354b0fc6e977", "score": "0.52927464", "text": "public scala.Tuple2<java.lang.Object, java.lang.Object> getSerializedSizes (org.apache.spark.rdd.RDD<?> rdd) { throw new RuntimeException(); }", "title": "" }, { "docid": "6a87a3cb4790957d3a675cdafac04160", "score": "0.5286758", "text": "static Dataset<Row> getDataFrame(SparkSession spark, String inputFile, String type) {\n\t\tDataset<Row> tagDF = spark.read().parquet(inputFile + \"/\" + type);\n\n\t\ttagDF.printSchema();\n\n\t\tSystem.out.println(\"############################## \" + type + \" Count \" + tagDF.count());\n\t\treturn tagDF;\n\t}", "title": "" }, { "docid": "b66220d6650573e99b0c2fca6b738488", "score": "0.5232808", "text": "private ResultSet getTrainingData() {\n ResultSet trainingData = null;\n\n //query\n try {\n //load driver\n Class.forName(\"org.relique.jdbc.csv.CsvDriver\");\n\n //configure database connection\n Connection conn = null;\n\n //get execution path to detect jar execution\n String executionPath = this.getClass().getResource(\"/mit3prototype/data/mainDatabase.csv\").toExternalForm();\n\n //jar data connection\n if (executionPath.startsWith(\"jar:\")) {\n conn = DriverManager.getConnection(\"jdbc:relique:csv:class:\" + MainDbReader.class.getName());\n }\n\n //ide data connection\n else if (executionPath.startsWith(\"file:\")) {\n String path = this.getClass().getResource(\"/mit3prototype/data\").toExternalForm();\n path = path.substring(\"file:\".length());\n conn = DriverManager.getConnection(\"jdbc:relique:csv:\" + path);\n }\n\n //do the query\n conn.setAutoCommit(false);\n PreparedStatement stmt = conn.prepareStatement(\"SELECT * FROM mainDatabase\");\n trainingData = stmt.executeQuery();\n\n } catch (Exception e) { e.printStackTrace(); }\n return trainingData;\n }", "title": "" }, { "docid": "8d65872e970bbec1c0e6c73809033c84", "score": "0.5209317", "text": "public static void main(String[] args) throws Exception {\n ElapsedTimer totalTime = new ElapsedTimer();\n if (args.length < INPUT_FILE_INDEX + 1) {\n System.err.println(\"Usage: SparkProperties JavaWordCount <file>\");\n return;\n }\n\n System.out.println(\"Running on \" + SparkUtilities.getMacAddress());\n\n SparkUtilities.readSparkProperties(args[SPARK_CONFIG_INDEX]);\n SparkUtilities.setAppName(\"JavaWordCount\");\n\n JavaSparkContext ctx = SparkUtilities.getCurrentContext();\n\n\n // Add some accumulators NOTE functions extending AbstractLoggingFunctionBase register automatically\n // SparkAccumulators.createAccumulator(\"WordsMapFunction\");\n AccumulatorUtilities.getInstance().createAccumulator(\"TotalLetters\");\n final Accumulator<Statistics> letterStats = ctx.accumulator(Statistics.ZERO, \"Letter Statistics\", Statistics.PARAM_INSTANCE);\n final Accumulator<java.lang.Long> totalWords = ctx.accumulator(0L, \"Word Statistics\", LongAccumulableParam.INSTANCE);\n\n String inputPath = SparkUtilities.buildPath(args[INPUT_FILE_INDEX]);\n JavaRDD<String> lines = ctx.textFile(inputPath, 1);\n\n\n // lines = SparkUtilities.persistAndCount(\"lines\",lines);\n\n // lines = lines.repartition(NUMBER_PARTITIONS);\n\n // use my function not theirs\n JavaRDD<String> words = lines.flatMap(new WordsMapFunction());\n\n words = words.repartition(NUMBER_PARTITIONS);\n\n\n\n JavaPairRDD<String, Integer> ones = words.flatMapToPair(new PairFlatMapFunction<String, String, Integer>() {\n @Override\n public Iterable<Tuple2<String, Integer>> call(final String t) throws Exception {\n List<Tuple2<String, Integer>> holder = new ArrayList<Tuple2<String, Integer>>();\n if(!t.startsWith(\"Z\"))\n holder.add(new Tuple2<String, Integer>(t, 1));\n return holder;\n }\n });\n\n\n// JavaPairRDD<String, Integer> ones = words.mapToPair(new PairFunction<String, String, Integer>() {\n// @Override\n// public Tuple2<String, Integer> call(String s) {\n// return new Tuple2<String, Integer>(s, 1);\n// }\n// });\n\n\n ones = ones.partitionBy(new PartitionByStart());\n JavaPairRDD<String, Integer> sorted = ones.sortByKey();\n sorted = sorted.partitionBy(new PartitionByStart());\n // JavaRDD<WordNumber> answer = sorted.mapPartitions(new WordCountFlatMapFunction());\n JavaRDD<WordNumber> answer = sorted.mapPartitions(\n new FlatMapFunction<Iterator<Tuple2<String, Integer>>, WordNumber>() {\n @Override\n public Iterable<WordNumber> call(final Iterator<Tuple2<String, Integer>> t) throws Exception {\n int sum = 0;\n String word = null;\n List<WordNumber> ret = new ArrayList<WordNumber>();\n while (t.hasNext()) {\n\n Tuple2<String, Integer> next = t.next();\n String s = next._1();\n if (s.length() == 0)\n continue;\n if (word == null) {\n word = s;\n }\n else {\n if (!word.equals(s)) {\n ret.add(new WordNumber(word, sum));\n totalWords.add(1L); // accumulate total words\n letterStats.add(new Statistics(s.length())); // keep statistics on letters\n\n sum = 1;\n word = s;\n }\n }\n sum += next._2();\n }\n return ret;\n }\n }\n );\n\n List<WordNumber> answers = answer.collect();\n\n List<WordNumber> objects = answer.toArray();\n for (WordNumber o : objects) {\n System.out.println(o);\n }\n\n\n SparkAccumulators.showAccumulators(totalTime);\n java.lang.Long wordCount = totalWords.value();\n System.out.println(\"total words = \" + wordCount);\n\n Statistics value = letterStats.value();\n System.out.println(\"total words = \" + value.getNumber());\n System.out.println(\"total letters = \" + value.getSum());\n System.out.println(\"average letters = \" + String.format(\"%10.2f\", value.getAverage()));\n System.out.println(\"Sd average letters = \" + String.format(\"%10.2f\", value.getStandardDeviation()));\n System.out.println(\"Max letters = \" + value.getMax());\n\n }", "title": "" }, { "docid": "996a92c8869cd41f8aa118c9cb0db76c", "score": "0.52039844", "text": "public Dataset<Row> read() throws HiveNotEnabled {\n \n return FeaturestoreHelper.getFeaturegroupPartitions(getSpark(), name, featurestore, version);\n }", "title": "" }, { "docid": "6c2c1fb51def129507863414e292ea91", "score": "0.51988995", "text": "public static void main( String[] args )\n {\n //Initialize, need to remove existing in output file location.\n \t\n \t//Implement \n \t\n \t//Output your result, you need to sort your result!!!\n \t//And,Don't add a additional clean up step delete the new generated file...\n \tSparkConf conf=new SparkConf().setAppName(\"SpatialJoin\");\n\t\tJavaSparkContext sc =new JavaSparkContext(conf);\n\t\t//reads each line from the csv file and stores it in RDD\n\t\t\n\t\tJavaRDD<String> inputSet = sc.textFile(args[0]);\n\t\tJavaRDD<Vector> pointsSet = inputSet.map(new Function<String,Vector>()\n\t\t\t\t{\n\t\t public Vector<Double> call(String line)\n\t\t {\n\t\t String[] coordinates = line.split(\",\");\n\t\t Vector<Double> vect= new Vector<Double>(coordinates.length);\n\t\t for(String coordinate: coordinates)\n\t\t \tvect.add(Double.parseDouble(coordinate));\n\t\t \n\t\t return vect;\t\n\t\t } \n\t\t });\n\t\t//getting the second input\n\t\t\n\t\tJavaRDD<String> searchPolyStrings = sc.textFile(args[1]);\n\t\tJavaRDD<Vector> searchPolySet = searchPolyStrings.map(new Function<String,Vector>()\n\t\t\t {\n\t\t public Vector<Double> call(String line)\n\t\t {\n\t\t String[] coordinates = line.split(\",\");\n\t\t Vector<Double> vect= new Vector<Double>(coordinates.length); \n\t\t \n\t\t for(String coordinate: coordinates)\n\t\t \tvect.add(Double.parseDouble(coordinate));\n\t\t \t\n\t\t return vect;\n\t\t }\n\t\t });\n\t\t\n\t\tList<Vector> queryWindows = searchPolySet.collect();\n\t\t\n\t\t//broadcasting the query window points to all the nodes\n\t\tfinal Broadcast<List<Vector>> broadcast = sc.broadcast(queryWindows);\n\t\t\n\t\tJavaRDD<Tuple2<String,String>> windowInputTuple= pointsSet.flatMap(new FlatMapFunction<Vector,Tuple2<String,String>>()\n\t\t\t\t{\n\t\t\t\t\tpublic List<Tuple2<String, String>> call(Vector inputVect)\n\t\t\t\t\t{\n\t\t\t\t\t\tList<Tuple2<String,String>> tupleList = new ArrayList<Tuple2<String,String>>();\n\t\t\t\t\t\tList<Vector> querWindows = broadcast.value();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//iterate through every query window\n\t\t\t\t\t\tfor(Vector window: querWindows)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(containsPolygon(window,inputVect))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdouble wkey= Double.parseDouble (window.elementAt(0).toString());\n\t\t\t\t\t\t\t\tint windowKey = (int) wkey;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdouble inKey= Double.parseDouble (inputVect.elementAt(0).toString());\n\t\t\t\t\t\t\t\tint inputKey = (int) inKey;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttupleList.add(new Tuple2(String.valueOf(windowKey),String.valueOf(inputKey)));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn tupleList;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}); \n\n\t\t JavaPairRDD<String, Iterable<String>> windowInputPairs = windowInputTuple.mapToPair(new PairFunction<Tuple2<String,String>, String, String>() {\n public Tuple2<String, String> call(Tuple2<String,String> tup) {\n return new Tuple2(tup._1().toString(), tup._2().toString());\n }\n }).sortByKey().groupByKey();\n\t\t\n\t\t JavaRDD<String> finalOutput= windowInputPairs.map(new Function<Tuple2<String,Iterable<String>>,String>()\n\t\t\t\t {\n\t \t\tpublic String call(Tuple2<String,Iterable<String>> tup)\n\t \t\t{ StringBuffer sBuffer = new StringBuffer(tup._1());\n\t \t \n\t \t\t\tfor(String value: tup._2())\n\t \t\t\t{\n\t \t\t\t\tsBuffer.append(\",\");\n\t \t\t\t\tsBuffer.append(value);\n\t \t\t\t}\n\t \t\n\t \t\t\treturn sBuffer.toString();\n\t \t\t}\n\t });\n\t\t\n\t\t//reduce the function to get the output string\n\t\t deleteIfExist(args[2]);\n\t\tfinalOutput.coalesce(1).sortBy( new Function<String,String>() {\n\n\t\t\tpublic String call(String str) throws Exception {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn str;\n\t\t\t}\n\t\t\t}, true, 1 ).saveAsTextFile(args[2]);\n\t\t \n\t}", "title": "" }, { "docid": "9967868b59dd95e50df30bc3e88222e2", "score": "0.518912", "text": "public org.apache.spark.api.java.JavaRDD<java.lang.Object> predict (org.apache.spark.api.java.JavaRDD<org.apache.spark.mllib.linalg.Vector> features) { throw new RuntimeException(); }", "title": "" }, { "docid": "742baaa8452a4d958ce662894d967681", "score": "0.5183651", "text": "public void start() {\n SparkSession sparkSession = SparkSession.builder()\n .appName(\"Complex CSV with a schema to Dataframe\")\n .master(\"local\")\n .getOrCreate();\n //Step 2: Create a schema\n StructType schema = DataTypes.createStructType(new StructField[]{\n DataTypes.createStructField(\"id\", DataTypes.IntegerType, false),\n DataTypes.createStructField(\"authordId\", DataTypes.IntegerType, true),\n DataTypes.createStructField(\"bookTitle\", DataTypes.StringType, false),\n DataTypes.createStructField(\"releaseDate\", DataTypes.DateType, true),\n DataTypes.createStructField(\"url\", DataTypes.StringType, false),\n });\n //Step 3: Load the csv\n Dataset<Row> df = sparkSession.read().format(\"csv\")\n .option(\"header\", true)\n .option(\"sep\", \";\")\n .option(\"multiline\", true)\n .option(\"dateformat\", \"MM/dd/yyyy\")\n .option(\"quote\", \"*\")\n// .option(\"inferschema\",true) //as we have schema already\n\n .schema(schema) //as we already defined the schema it will tell reader to use this schema\n .load(\"Chapter07/src/main/resources/data/books.csv\");\n\n System.out.println(\"Excerpt of dataframe content\");\n df.show(7, 90);\n System.out.println(\"Dataframe's schema\");\n df.schema().printTreeString();\n\n\n }", "title": "" }, { "docid": "1eecf3b73563b9acef215f513fad1306", "score": "0.518038", "text": "public static void main(String[] args) {\n SparkConf conf = new SparkConf().setAppName(\"Activity\").set(\"spark.eventLog.enabled\", \"true\");\n\n JavaSparkContext sc = new JavaSparkContext(conf);\n SQLContext sqlContext = new SQLContext(sc);\n\n// Creates a DataFrame from a specified file\n DataFrame df = sqlContext.read().format(\"com.databricks.spark.avro\")\n .load(\"/Users/shashi/code/SparkMLApp/data/data3.avro\");\n\n// Saves the subset of the Avro records read in\n df.filter(\"xaxis > 0\").write()\n .format(\"com.databricks.spark.avro\")\n .save(\"/tmp/output\");\n\n }", "title": "" }, { "docid": "7c8c962e5c96758269155e192117c431", "score": "0.5158167", "text": "public static void main(String[] args )\n\t{\n\t\tSparkConf conf = new SparkConf().setMaster(\"local[\" + NUM_THREADS + \"]\")\n\t\t\t\t.setAppName(SparkRead.class.getSimpleName());\n\t\t// Set the config\n\t\tJavaSparkContext sc = new JavaSparkContext(conf);\n\n\t\t// A hack to make sure we're not downloading the whole pdb\n\t\tProperties sysProps = System.getProperties();\n\t\tsysProps.setProperty(\"PDB_DIR\", \"/Users/abradley/PDB_CACHE\");\n\t\tAtomCache cache = new AtomCache();\n\t\tcache.setUseMmCif(true);\n\t\tcache.setFetchBehavior(FetchBehavior.FETCH_FILES);\n\t\tFileParsingParameters params = cache.getFileParsingParams();\n\t\tparams.setCreateAtomBonds(true);\n\t\tparams.setAlignSeqRes(true);\n\t\tparams.setParseBioAssembly(true);\n\t\tChemCompGroupFactory.setChemCompProvider(new DownloadChemCompProvider());\n\t\tcache.setFileParsingParams(params);\n\t\tStructureIO.setAtomCache(cache);\n\t\t// The compressor class\n\t\tint maxStructs = 10;\n\t\tSortedSet<String> thisSet = GetRepresentatives.getAll();\n\t\tList<String> thisList = new ArrayList<String>(thisSet);\n\t\tCollections.shuffle(thisList);\n\t\tList<String> pdbCodeList = thisList.subList(0, maxStructs);\t\n\t\tJavaPairRDD<Text, BytesWritable> distData =\n\t\t\t\tsc.parallelize(pdbCodeList)\n\t\t\t\t.mapToPair(new PDBCodeToCBS())\n\t\t\t\t.flatMapToPair(new CBSToBytes())\n\t\t\t\t.mapToPair(new StringByteToTextByteWriter());\n\n\t\t// Now save this as a Hadoop sequence file\n\t\tString uri = \"Total.TEST.hadoop\";\t\t\n\t\tdistData.saveAsHadoopFile(uri, Text.class, BytesWritable.class, SequenceFileOutputFormat.class);\n\t\tsc.close();\n\t}", "title": "" }, { "docid": "a325839cf61c023e2fe4c363096595e2", "score": "0.5141257", "text": "public static void main(String[] args) {\n\t\tString masterAddr = \"spark://ec2-52-6-24-63.compute-1.amazonaws.com:7077\";\n\t\tString jarLocation = \"/root/Step-1.jar\";\n\t\tString hdfsInputPath = \"s3n://s15-p42-part1-easy/data/\";\n\t\tfinal String searchTerm = \"cloud\";\t// this is the search term\n\t\tfinal long N;\t\t// stores the total number of distinct titles\n\t\t\n\t\t// Initialize spark context:\n\t\tSparkConf sparkConf = new SparkConf().setAppName(\"Step1\").setMaster(masterAddr);\n\t\tJavaSparkContext jsc = new JavaSparkContext(sparkConf);\n\t\tjsc.addJar(jarLocation);\n\t\tJavaRDD<String> file = jsc.textFile(hdfsInputPath);\n\t\t\n\t\t// Create a JavaRDD which stores all titles:\n\t\tJavaRDD<String> titles = file.flatMap(new FlatMapFunction<String, String>() {\n\n\t\t\t@Override\n\t\t\tpublic Iterable<String> call(String line) throws Exception {\n\t\t\t\tArrayList<String> title = new ArrayList<String>(1);\n\t\t\t\tString[] split = line.split(\"\\t\");\n\t\t\t\ttitle.add(split[1]);\n\t\t\t\treturn title;\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tN = titles.distinct().count();\t// count the total no. of distinct\n\t\t\t\t\t\t\t\t\t\t// titles\n\t\t\n\t\t// Split all text into words and replace extraneous characters \n\t\t// with a space as given in the project description\n\t\t// Store the words in the form (word,title) as flatmap:\n\t\tJavaRDD<String> words = file.flatMap(new FlatMapFunction<String, String>() {\n\n\t\t\t@Override\n\t\t\tpublic Iterable<String> call(String line) throws Exception {\n\t\t\t\tString[] split = line.split(\"\\t\");\n\t\t\t\tString title = split[1];\n\t\t\t\tString text = split[3];\n\t\t\t\ttext = text.replaceAll(\"[<](.*?)[>]\", \" \");\n\t\t\t\ttext = text.toLowerCase();\n\t\t\t\ttext = text.replace(\"\\\\n\", \" \");\n\t\t\t\ttext = text.replaceAll(\"[^\\\\p{L}]+\", \" \");\n\t\t\t\ttext = text.trim();\n\t\t\t\tArrayList<String> word = new ArrayList<String>();\n\t\t\t\tStringTokenizer st = new StringTokenizer(text);\n\t\t\t\twhile(st.hasMoreTokens()){\n\t\t\t\t\tword.add(st.nextToken()+\",\"+title);\n\t\t\t\t}\n\t\t\t\treturn word;\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t// convert the above flatmap to a PairMap with (word,title) as key\n\t\t// and 1 as value\n\t\tJavaPairRDD wordCountOnes = words.mapToPair(new PairFunction<String,String,Integer>(){\n\n\t\t\t@Override\n\t\t\tpublic Tuple2<String, Integer> call(String word) throws Exception {\n\t\t\t\treturn new Tuple2<String, Integer>(word,1);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t// reduce the above PairMap by key to find how many times a word\n\t\t// appears in a specific title:\n\t\tJavaPairRDD<String, Integer> documentLevelWordCounts = wordCountOnes.reduceByKey(\n\t\t\t\t new Function2<Integer, Integer, Integer>() {\n\t\t\t\t public Integer call(Integer i1, Integer i2) {\n\t\t\t\t return i1 + i2;\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t);\n\t\t\n\t\t//documentLevelWordCounts = documentLevelWordCounts.sortByKey(true);\n\t\t\n\t\t/*documentLevelWordCounts.foreach(new VoidFunction<Tuple2<String,Integer>>(){\n\n\t\t\t@Override\n\t\t\tpublic void call(Tuple2<String, Integer> arg0) throws Exception {\n\t\t\t\tSystem.out.println(arg0._1+\"\\t\"+arg0._2);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});*/\n\t\t\n\t\t// Now we count how many times a word appears throughout all titles\n\t\t\n\t\t// For this, take out all keys i.e. (word,title) from documentLevelWordCounts\n\t\t// Keep only word from the above pair and discard titles\n\t\t// So now for every word, we will have word as key and 1 as value\n\t\t// the 1 denotes that this word has appeared in 1 distinct document\n\t\tJavaRDD<String> wordAndDocs = documentLevelWordCounts.keys();\n\t\tJavaPairRDD<String,Integer> noOfDocsContainingWord = wordAndDocs.mapToPair(new PairFunction<String,String,Integer>(){\n\n\t\t\t@Override\n\t\t\tpublic Tuple2<String, Integer> call(String key) throws Exception {\n\t\t\t\tString[] split = key.split(\",\");\n\t\t\t\treturn new Tuple2<String, Integer>(split[0],1);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t// Reduce the above PairMap by key to find out how many times a word\n\t\t// has appeared throughout all titles:\n\t\tfinal JavaPairRDD<String, Integer> docsContainingWord = noOfDocsContainingWord.reduceByKey(\n\t\t\tnew Function2<Integer, Integer, Integer>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic Integer call(Integer i1, Integer i2)\n\t\t\t\t\t\tthrows Exception {\n\t\t\t\t\treturn i1 + i2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\n\t\t/*docsContainingWord.foreach(new VoidFunction<Tuple2<String,Integer>>(){\n\n\t\t\t@Override\n\t\t\tpublic void call(Tuple2<String, Integer> arg0) throws Exception {\n\t\t\t\tSystem.out.println(arg0._1+\"\\t\"+arg0._2);\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});*/\n\t\t\n\t\t// We have documentLevelWordCounts which is PairMap that contains\n\t\t// (word,title) as key and the count of how many times this word\n\t\t// appeared in this title as value\n\t\t// What we are doing here is separate word and title and convert this \n\t\t// MapPair to hold word as key and (count,title) as value:\n\t\tJavaPairRDD<String,String> keysSeparated = documentLevelWordCounts.mapToPair(new PairFunction<Tuple2<String,Integer>,String,String>(){\n\n\t\t\t@Override\n\t\t\tpublic Tuple2<String, String> call(Tuple2<String, Integer> tuple)\n\t\t\t\t\tthrows Exception {\n\t\t\t\tString[] split = tuple._1.split(\",\");\n\t\t\t\treturn new Tuple2<String,String>(split[0],tuple._2+\",\"+split[1]);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t\t// Now keysSeparated contains word as key and (title,count) as value\n\t\t// and docsContainingWord contains word as key and total count where\n\t\t// this word occurs throughout all titles as value\n\t\t// We need to combine these both so that we can calculate tfidf easily\n\t\t// For this we do a join on both these RDDs by key:\n\t\tJavaPairRDD<String,Tuple2<String,Integer>> joinedtfidf = keysSeparated.join(docsContainingWord);\n\t\t\n\t\t/*joined.foreach(new VoidFunction<Tuple2<String,Tuple2<String,Integer>>>(){\n\n\t\t\t@Override\n\t\t\tpublic void call(Tuple2<String, Tuple2<String, Integer>> arg0)\n\t\t\t\t\tthrows Exception {\n\t\t\t\tSystem.out.println(arg0._1+\"\\t\"+arg0._2._1+\" \"+arg0._2._2);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});*/\n\t\t\n\t\t// Using the above joined RDD, we have all the values needed to \n\t\t// calculate the final tfidf for a word for each title. We have \n\t\t// tf and df values for words in joinedtfidf. The value of N was\n\t\t// calculated previously in the program and is stored in var N.\n\t\tJavaPairRDD<String,Double> finaltfidf = joinedtfidf.mapToPair(new PairFunction<Tuple2<String,Tuple2<String,Integer>>,String,Double>(){\n\n\t\t\t@Override\n\t\t\tpublic Tuple2<String, Double> call(\n\t\t\t\t\tTuple2<String, Tuple2<String, Integer>> tuple)\n\t\t\t\t\tthrows Exception {\n\t\t\t\tString[] splitTitleTf = tuple._2._1.split(\",\");\n\t\t\t\tdouble tf = Double.parseDouble(splitTitleTf[0]);\n\t\t\t\tdouble idf = (double)tuple._2._2;\n\t\t\t\tdouble tfidf = tf * Math.log(N/idf);\n\t\t\t\treturn new Tuple2<String,Double>(tuple._1+\",\"+splitTitleTf[1], tfidf);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t/*finaltfidf.foreach(new VoidFunction<Tuple2<String,Double>>(){\n\n\t\t\t@Override\n\t\t\tpublic void call(Tuple2<String, Double> tuple) throws Exception {\n\t\t\t\tSystem.out.println(tuple._1+\"\\t\"+tuple._2);\n\t\t\t}\n\t\t\t\n\t\t});*/\n\t\t\n\t\t// Finally after calculating the tfidf values for words, we need to \n\t\t// filter out results that contain the word cloud:\n\t\tJavaPairRDD<String,Double> filtered = finaltfidf.filter(new Function<Tuple2<String,Double>,Boolean>(){\n\n\t\t\t@Override\n\t\t\tpublic Boolean call(Tuple2<String, Double> tuple) throws Exception {\n\t\t\t\tif(searchTerm.equals(tuple._1.split(\",\")[0]))\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tfiltered.saveAsTextFile(\"/root/tfidffiltered\");\n\t\t\n\t\t/*filtered.foreach(new VoidFunction<Tuple2<String,Double>>(){\n\n\t\t\t@Override\n\t\t\tpublic void call(Tuple2<String, Double> tuple) throws Exception {\n\t\t\t\tSystem.out.println(tuple._1 + \"\\t\" + tuple._2);\n\t\t\t}\n\t\t\t\n\t\t});*/\n\t\t\n\t\t// Collect the filtered results in a list so that they can\n\t\t// be sorted easily:\n\t\tList<Tuple2<String,Double>> list = filtered.collect();\n\t\t\n\t\t// create a new comparator for the list to sort the results\n\t\t// in descending order of tfidf and if the tfidf are same\n\t\t// sort them by alphabetical order of title:\n\t\tlist.sort(new Comparator<Tuple2<String,Double>>(){\n\n\t\t\t@Override\n\t\t\tpublic int compare(Tuple2<String, Double> o1,\n\t\t\t\t\tTuple2<String, Double> o2) {\n\t\t\t\tif(o1._2 == o2._2){\n\t\t\t\t\treturn o1._1.split(\",\")[1].compareTo(o2._1.split(\",\")[1]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn (int) (o2._2 - o1._2);\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t// If the list size is less than 100, store the full list as tsv\n\t\t// in the form title \\t tfidf in a file named tfidf\n\t\t// Otherwise store only the top 100 results from the list in the \n\t\t// file:\n\t\ttry{\n\t\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"tfidf\", true)));\n\t\t\tif(list.size() >= 100){\n\t\t\t\tfor(int i=0;i<100;i++){\n\t\t\t\t\tTuple2<String,Double> tuple = list.get(i);\n\t\t\t\t\tout.println(tuple._1.split(\",\")[1]+\"\\t\"+tuple._2);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(Tuple2<String,Double> value:list){\n\t\t\t\t\tout.println(value._1.split(\",\")[1]+\"\\t\"+value._2);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tout.close();\n\t\t} catch (IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tjsc.stop();\t\t// Terminate the spark program\n\t}", "title": "" }, { "docid": "215febb17e2257ea57ea8c50012329ca", "score": "0.51403266", "text": "public Object execute(JavaSparkContext jsc);", "title": "" }, { "docid": "32145113bc16da3ca84f04e70e03296f", "score": "0.5132386", "text": "public Boolean test(RecordingDeviceData rdd);", "title": "" }, { "docid": "d4796a381fe9dedc83fb960c1566d26c", "score": "0.50902987", "text": "private static JavaRDD<StationDTO> stationDTOFromJsonConverter(String iFilename) {\n\t\tJavaSparkContext lJavaSparkContext = SingletonWrappers.sparkContextGetInstance();\n\t\tJavaRDD<StationDTO> lStations = lJavaSparkContext.textFile(iFilename).map(line -> {\n\n\t\t\t// clean text et attributs\n\t\t\tList<String> lUnits = Arrays.asList(line.replace(\"[{}[]]+\", \"\").split(\",\\\"\"));\n\t\t\tfor (String lTemp : lUnits) {\n\t\t\t\tlTemp = lTemp.replace(\"\\\"\", \"\");\n\t\t\t}\n\n\t\t\t// retour l'objet stationDTO\n\t\t\treturn jsonStationToObject(lUnits);\n\t\t});\n\t\treturn lStations;\n\t}", "title": "" }, { "docid": "f4138efcc3553e4ebd2b9ea5cbf54452", "score": "0.5084414", "text": "public interface IFeatureCalcalation {\n JavaPairRDD<String, Iterable<String>> getFilteredRDD(CalculationCondition condition,List<String> sheetCode, String lcraFilePath, JavaSparkContext sc) throws Exception;\n\n static List<String> getSheetRangeByWkt(String geoWkt){\n //先根据geoWkt生成MBR 选出分幅\n List<String> sheetCode=new ArrayList<String>();\n GridArchitectureInterface sheetArchitecture = GridArchitectureFactory.GetGridArchitecture(50000, \"sheet\");\n Geometry geo = GeometryEngine.geometryFromWkt(geoWkt, 0, Geometry.Type.Unknown);\n Envelope2D boundary = new Envelope2D();\n geo.queryEnvelope2D(boundary);\n// System.out.println(boundary.xmin+\" \"+boundary.ymin+\" \"+boundary.xmax+\" \"+boundary.ymax );\n Iterable<Sheet> sheetRange = ((SheetGridArchitecture) sheetArchitecture).GetRangeSheets(boundary);\n for(Sheet sheet:sheetRange){\n sheetCode.add(sheet.toString());\n }\n return sheetCode;\n }\n}", "title": "" }, { "docid": "17259576215b9c1b36b7223c06cf3182", "score": "0.5082095", "text": "public void execute() {\n\t\ttry {\n\t\t\tString[] ioPath = args[2].split(\";\");\n\t\t\tlogger.info(\"arguements for Partition class\" + ioPath + \" , \" + ioPath[2]);\n\n\t\t\tString[] PartitionDataPath = ioPath[1].split(\",\");\n\n\t\t\tif (ioPath[1] == null || PartitionDataPath.length < 2) {\n\t\t\t\tSystem.out.println(\"Locations for saving partitioned datsets not passed\");\n\n\t\t\t}\n\t\t\tJavaSparkContext sc = new JavaSparkContext();\n\t\t\tJavaRDD<String> data = sc.textFile(ioPath[0]);\n\t\t\tJavaRDD<String>[] partitions = data.randomSplit(\n\t\t\t\t\tnew double[] { Double.parseDouble(ioPath[2]) / 100, 1 - Double.parseDouble(ioPath[2]) / 100 });\n\t\t\tpartitions[0].saveAsTextFile(PartitionDataPath[0]);\n\t\t\tpartitions[1].saveAsTextFile(PartitionDataPath[1]);\n\t\t\tsc.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "eb9563adad57beed1511fb95e3be79e8", "score": "0.50712293", "text": "public JavaRDD<String> getSalesRddFromTextFile(String salesFilePath) throws FileNotFoundException, IllegalArgumentException {\n\t\treturn getRDDFromTextFile(SALES, salesFilePath);\n\t}", "title": "" }, { "docid": "f75c96310549835f4d066263f5d1b7af", "score": "0.5066506", "text": "@SuppressWarnings({\"unchecked\"})\n public <D extends Document> JavaRDD<D> couchbaseGet(Class<D> clazz) {\n return couchbaseGet(null, clazz);\n }", "title": "" }, { "docid": "02367cdbc64ee02e722ee30ba1c090e1", "score": "0.5052955", "text": "public <U extends java.lang.Object> void testRDD (scala.Function1<org.apache.spark.rdd.RDD<java.lang.Object>, org.apache.spark.rdd.RDD<U>> op, scala.Function1<org.apache.spark.rdd.RDD<U>, java.lang.Object> collectFunc, scala.reflect.ClassTag<U> evidence$1) { throw new RuntimeException(); }", "title": "" }, { "docid": "8e8ba9f0c1f145a7499827ac7c9306cf", "score": "0.5033477", "text": "public void read() throws ClassNotFoundException, SQLException {\n\t\tConnection con = DBConector.getCsvConnectionInstance(\"E:\\\\repos\\\\Database-Apps\\\\oracleImport\\\\src\\\\main\\\\resources\\\\\");\r\n\r\n\t\tStatement stmt = con.createStatement();\r\n\t\tResultSet rs = stmt.executeQuery(\"SELECT hei,id FROM data\");\r\n\t\twhile (rs.next()) {\r\n\t\t\tSystem.out.println(rs.getString(\"hei\"));\r\n\t\t\tSystem.out.println(rs.getString(\"id\"));\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "e0f9d80d432c0337f46697c2ed93d039", "score": "0.5031128", "text": "public org.apache.spark.rdd.RDD<scala.Tuple2<java.lang.Object, java.lang.Object>> generateFatPairRDD () { throw new RuntimeException(); }", "title": "" }, { "docid": "67425a8c7399f7580a9bcd43bad84104", "score": "0.5028668", "text": "private JavaPairRDD<String, Integer> executeJob(JavaSparkContext sc) {\n\t\tJavaPairRDD<String, Iterable<String>> intermediateResult = intermediateResult(sc)\n\t\t\t\t.filter(tupla -> {\n\t\t\t\t\tHashSet<String> coppie = new HashSet<String>();\n\t\t\t\t\tfor(String coppia : tupla._2()){\n\t\t\t\t\t\tif(!coppia.isEmpty()) {\n\t\t\t\t\t\t\tcoppie.add(coppia);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn coppie.size() > 0;\n\t\t\t\t});\n\n\t\t//ogni elemento è una stringa con <coppiaprodotti>+<userId>\n\t\t/*JavaPairRDD<String, Iterable<String>> result = intermediateResult.flatMap(tupla -> {\n\t\t\tList<String> list = new ArrayList<>();\t\t//tupla._2() è la lista delle coppie di prodotti\n\t\t\tfor(String s : tupla._2()){ \t\t//s è la coppia di prodotti\n\t\t\t\tlist.add(s+\" \"+tupla._1());\t //tupla._1() è l'utente\n\t\t\t}\n\t\t\treturn list;\n\t\t}).mapToPair(s -> {\n\t\t\tString[] line = s.split(\" \");\n\t\t\tString products = line[0];\n\t\t\tString user = line[1];\n\t\t\treturn new Tuple2<String, String>(products, user);\n\t\t}).groupByKey().sortByKey();*/\n\n\t\tJavaPairRDD<String, Iterable<String>> result = intermediateResult.mapToPair(tupla -> {\n\t\t\t//tupla._2() è la lista delle coppie di prodotti\n\t\t\tfor(String s : tupla._2()){ \t\t//s è la coppia di prodotti\n\t\t\t\treturn new Tuple2<String, String>(s, tupla._1());\n\t\t\t}\n\t\t\treturn new Tuple2<String, String>(\"\", \"\");\n\t\t}).groupByKey().sortByKey();\n\n\n\t\tJavaPairRDD<String, Integer> yearWordCount = result.mapValues(values -> {\t\t\t\n\t\t\tList<String> list = Lists.newArrayList(values.iterator());\n\t\t\treturn list.size();\t\t\n\t\t}).sortByKey();\t\n\n\t\treturn yearWordCount;\n\n\t}", "title": "" }, { "docid": "aee01639b646a4356fc526219b6279e3", "score": "0.5024432", "text": "void readData();", "title": "" }, { "docid": "e9919611004869fa3404ee0724ead85a", "score": "0.49964163", "text": "public static void main(String[] args){\n\t\tSparkConf conf=new SparkConf().setAppName(\"Simple Application\");\n\t\tconf.setMaster(\"local\");\n//\t\tString sparkConf=System.getenv(\"SPARK_HOME\");\n//\t\tSystem.out.println(sparkConf);\n//\t\tJavaSparkContext sc=new JavaSparkContext(master, \"SparkOnHBase\", System.getenv(\"SPARK_HOME\"));\n\t\tString logFile=\"/Users/luhao/spark_practice/logFile\";\n\t\tJavaSparkContext sc=new JavaSparkContext(conf);\n\t\tJavaRDD<String> logData=sc.textFile(logFile).cache();\n\t\t\n\t\tlong numAs=logData.filter(new Function<String, Boolean>() {\n\t\t\t@Override\n\t\t\tpublic Boolean call(String s) throws Exception {\n\t\t\t\treturn s.contains(\"a\");\n\t\t\t}\n\t\t}).count();\n\t\t\n\t\tlong numSs=logData.filter(new Function<String, Boolean>() {\n\t\t\t@Override\n\t\t\tpublic Boolean call(String s) throws Exception{\n\t\t\t\treturn s.contains(\"s\");\n\t\t\t}\n\t\t}).count();\n\t\t\n\t\tSystem.out.println(\"The lines which contains \\\"a\\\" are :\"+numAs);\n\t\tSystem.out.println(\"The lines which contains \\\"s\\\" are :\"+numSs);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "b756308e50e88c43ba0746a1607089d6", "score": "0.49923134", "text": "public <U extends java.lang.Object> void testRDDPartitions (scala.Function1<org.apache.spark.rdd.RDD<java.lang.Object>, org.apache.spark.rdd.RDD<U>> op, scala.Function1<org.apache.spark.rdd.RDD<U>, java.lang.Object> collectFunc, scala.reflect.ClassTag<U> evidence$2) { throw new RuntimeException(); }", "title": "" }, { "docid": "49f9d8c1a7439832538a74b86e6547ac", "score": "0.49915156", "text": "public JavaPairRDD<Attack,Integer> identifySourceQuantity(JavaRDD<Attack> attacksDataset);", "title": "" }, { "docid": "b9979e328811e6d7983621f4e86bb78e", "score": "0.49761894", "text": "private JavaPairRDD<String,String> getObjectsOfSubjects(DataFrame records) throws Exception{\n\n\t\treturn records.filter(records.col(\"object\").isin(nextQueryArray.stream().toArray())).toJavaRDD().mapToPair(\n\t\tnew PairFunction<Row,String,String>(){\n\n\n\t\t\t@Override\n\t\t\tpublic Tuple2<String, String> call(Row row) throws Exception {\n\n\n\t\t\t\treturn new Tuple2<String, String>(row.getString(0), row.getString(1));\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "4dad7575bfe6b87617e5c916d8fee515", "score": "0.49171287", "text": "public static void example2(JavaSparkContext sparkContext) {\n\n\t\t/* Creating JavaRDD of String and caching to memory */\n\t\tJavaRDD<String> carData = sparkContext.textFile(Constants.CARS_FILE).cache();\n\n\t\t/**\n\t\t * Class MyFunction2 implements function 'call()' to get the mileage of\n\t\t * each car.\n\t\t * \n\t\t * @author neeraj\n\t\t *\n\t\t */\n\t\t@SuppressWarnings(\"serial\")\n\t\tclass MyFunction2 implements Function<String, String> {\n\n\t\t\t/**\n\t\t\t * Function 'call()' returns the mileage of each car.\n\t\t\t * \n\t\t\t * @param s\n\t\t\t * Takes each of the records from the JavaRDD.\n\t\t\t */\n\t\t\tpublic String call(String record) {\n\n\t\t\t\t/* Splitting the String record to attributes. */\n\t\t\t\tString[] attList = record.split(\",\");\n\n\t\t\t\tif (attList.length > 1) {\n\t\t\t\t\tif (attList[1].equals(\"MPG\"))\t// Header text .\n\t\t\t\t\t\treturn \"0\";\n\t\t\t\t\treturn attList[1];\t\t\t\t// Mileage.\n\t\t\t\t} else\n\t\t\t\t\treturn record;\t\t\t\t\t\t// Intermediate sum of mileage.\n\t\t\t}\n\t\t}\n\n\t\t/* Creating MyFunction2 object. */\n\t\tMyFunction2 myFunc = new MyFunction2();\n\n\t\t/*\n\t\t * Calculating Average Mileage. (Reduce operation returns the sum of\n\t\t * mileage.)\n\t\t */\n\t\tfloat average = Float\n\t\t\t\t.valueOf(carData.reduce((x, y) -> String.valueOf(Float.valueOf(myFunc.call(x)) + Float.valueOf(myFunc.call(y)))))\n\t\t\t\t/ (-1 + carData.count());\n\n\t\t/* Printing Average. */\n\t\tSystem.out.println(\"(Functions)Average =\" + average);\n\n\t}", "title": "" }, { "docid": "0c8c10434c8958ddc98b8201f3aa9dd8", "score": "0.49060935", "text": "public List readData( File selectedFile) {\n try {\r\n datalist =\r\n Files.lines( Paths.get(selectedFile.toString())). //Stream of each line\r\n map(l -> new DataModel(l)). // DataModel object for each line\r\n collect(Collectors.toList()); //put the Datamodel objects in a list\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return datalist;\r\n }", "title": "" }, { "docid": "d66e8c90efaf0c4e96fcabe9bb87e5c9", "score": "0.48901734", "text": "@Override\n\tpublic JavaRDD<Result> getResultRDD(JavaRDD<TripDataItem> input) {\n\t\tJavaRDD<Tuple3<LocalDateTime, Long, Double>> flattened = flattenTripsToPeriodSecondsAndSpeeds(\n\t\t\t\tinput);\n\t\t// Then, the average speeds of trips per period are calculated,\n\t\t// where the weight of a trip is its duration within the period\n\t\tJavaPairRDD<LocalDateTime, Double> averages = getWeightedAverages(\n\t\t\t\tflattened);\n\t\t// Finally, these averages are transformed into a sorted RDD of Result\n\t\t// objects.\n\t\tJavaRDD<Result> periodAvgSpeeds = averages.repartition(1).sortByKey()\n\t\t\t\t.map(kv -> new Result(TripDateUtils.dateToString(kv._1),\n\t\t\t\t\t\tkv._2));\n\t\treturn periodAvgSpeeds;\n\t}", "title": "" }, { "docid": "4c1b2d773766cec56b8e7ff8d1668cdf", "score": "0.48690033", "text": "public static void main(String[] args) {\n\t\t\n\t\tconf = new SparkConf().setAppName(\"Group8-GeometryUnion\");\n\t\tsc = new JavaSparkContext(conf);\n\t\t\n\t\t/*\n\t\t * ParseString\n\t\t * Parse the input file and return a list of Geometry Object\n\t\t * and store the result in a JavaRDD.\n\t\t */\n\t\tinput = sc.textFile(args[0]);\n\t\tinputRectangle = input.mapPartitions(new ParseString());\n\t\t\n\t\t/*\n\t\t * Local Union\n\t\t * Perform Cascaded union on the list of Geometry objects returned\n\t\t * in the above step and store the result in a JavaRDD.\n\t\t */\n\t\tlocalUnion = inputRectangle.mapPartitions(new CascadedUnion());\t\n\t\trectanglesRDD=localUnion.repartition(1);\n\t\t\n\t\t/*\n\t\t * Global Union\n\t\t * Perform Cascaded union on the list of Geometry objects returned\n\t\t * in the above step and store the result in a JavaRDD.\n\t\t */\n\t\t\n\t\tglobalUnion = rectanglesRDD.mapPartitions(new CascadedUnion());\n\t\tfinalResult = globalUnion.mapPartitions(new FinalResult());\t\n\t\t\n\t\t/*\n\t\t * Save the result as a text file using JavaRDD.\n\t\t */\n\t\t\n\t\tfinalResult.saveAsTextFile(args[1]);\n\t}", "title": "" }, { "docid": "28e8649d71f91890b9531a60b37ac6b9", "score": "0.48604226", "text": "public static ReadFileResult readAllDataSetFile() {\n try {\n InputStreamReader inputStreamReaderInputs = new InputStreamReader(new FileInputStream(new File(\"src/com/cefetmg/perceptron/dataset/dollar/files/entradas_dolar_horas_mod.txt\")));\n BufferedReader bufferedReaderInputs = new BufferedReader(inputStreamReaderInputs);\n\n int trainingDataSetSize = 18;\n int testDataSetSize = 9;\n\n String line;\n Double[][] inputs = new Double[trainingDataSetSize][];\n Double[][] outputs = new Double[trainingDataSetSize][];\n Double[][] testingInput = new Double[testDataSetSize][];\n Double[][] testingOutput = new Double[testDataSetSize][];\n int index = 0;\n while ((line = bufferedReaderInputs.readLine()) != null) {\n\n String[] inputVector = line.split(\"\\\\s+\");\n List<Integer> ignoredColumns = Arrays.asList(0, 10, 11);\n Double[] input = new Double[inputVector.length - ignoredColumns.size() - 1];\n Double[] output = new Double[1];\n\n int inputIndex = 0;\n for (int i = 0; i < inputVector.length; i++) {\n if (!ignoredColumns.contains(i)) {\n if (i == inputVector.length - 1) {\n output[0] = Double.parseDouble(inputVector[i]);\n } else {\n input[inputIndex] = Double.parseDouble(inputVector[i]);\n inputIndex++;\n }\n }\n }\n\n\n if (index < trainingDataSetSize) {\n inputs[index] = input;\n outputs[index] = output;\n } else {\n testingInput[index - trainingDataSetSize] = input;\n testingOutput[index - trainingDataSetSize] = output;\n }\n\n index++;\n }\n\n return new ReadFileResult(inputs, outputs, testingInput, testingOutput);\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "84092b8b45e4234d6dc3c5cdb9a59cb6", "score": "0.4847804", "text": "public double ExactSearchRDD(iSAX_Index index, JavaRDD<Integer> timestamp,JavaRDD<Double> values, String ts_name, int start, int stop);", "title": "" }, { "docid": "0024ed6aa47a885f336ca284fd2a8f3c", "score": "0.484079", "text": "public JavaRDD<String> getCustomerRddFromTextFile(String customerFilePath) throws FileNotFoundException, IllegalArgumentException {\n\t\treturn getRDDFromTextFile(CUSTOMER, customerFilePath);\n\t}", "title": "" }, { "docid": "21bc91f3c6a6903a4faa44cdd7174518", "score": "0.48229846", "text": "public static void readAll() {\n\t\tBufferedReader bufferReader = null;\n\t\ttry {\n\t\t\tbufferReader = new BufferedReader(new FileReader(new File(DATASET_PATH)));\n\t\t\tString available;\n\t\t\tbufferReader.readLine();\n\t\t\twhile((available = bufferReader.readLine()) != null) {\n\t\t\t\t\n\t\t\t\tString arr[] = available.split(\"\\t\", 2);\n\n\t\t\t\tSystem.out.println(Integer.parseInt((String)arr[0].trim()));\n\t\t\t\tSystem.out.println(arr[1]);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (bufferReader != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbufferReader.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b47953119c4b0786165f677bd66c41f1", "score": "0.48064297", "text": "public double ApproximateSearchRDD(iSAX_Index index, JavaRDD<Integer> timestamp,JavaRDD<Double> values,String ts_name, int start, int stop);", "title": "" }, { "docid": "97c3156725ca9eeaee5d89f99b607a90", "score": "0.48059332", "text": "public <T> JavaRDD<T> mongoJavaRDD(IMongoDeepJobConfig<T> config) {\n return new MongoJavaRDD<T>(mongoRDD(config));\n }", "title": "" }, { "docid": "5cb6932bf101daf012c324ad62522645", "score": "0.47941354", "text": "@Parameters\n\tpublic static Collection<Object[]> data() {\n\t\tObject[][] data = new Object[][] {\n\n\t\t\t\t// ----------------Category Partition--------------------------\n\n\t\t\t\t{ Schema.create(Type.INT), 1, 1, true, true }, { Schema.create(Type.FLOAT), 1.0F, 1.1F, true, false },\n\t\t\t\t{ Schema.create(Type.LONG), 1L, 1L, true, true }, { Schema.create(Type.DOUBLE), 1.0, 1.1, true, false },\n\t\t\t\t{ Schema.create(Type.STRING), \"c\", \"a\", true, false }, // modificato per coverage linea 1153\n\t\t\t\t{ Schema.create(Type.BYTES), ByteBuffer.allocate(1), ByteBuffer.allocate(2), true, false },\n\t\t\t\t{ Schema.create(Type.BOOLEAN), true, true, true, true },\n\t\t\t\t{ SchemaUtils.generateFixedSchema(), CreateDatumUtils.createFixedDatum(0),\n\t\t\t\t\t\tCreateDatumUtils.createFixedDatum(1), true, false },\n\t\t\t\t{ SchemaUtils.generateRecordDatumSchema(), CreateDatumUtils.createRecordDatum(\"joe\", \"black\"),\n\t\t\t\t\t\tCreateDatumUtils.createEnumSymbolDatum(\"ONE\"), true, new Exception() },\n\t\t\t\t{ SchemaUtils.generateMapSchema(), 1, CreateDatumUtils.createMapDatum(\"Pari\", \"Dispari\", 2, 4, 3),\n\t\t\t\t\t\tfalse, new AvroRuntimeException(\"Can't compare maps!\") },\n\t\t\t\t{ SchemaUtils.generateEnumSchema(), CreateDatumUtils.createEnumSymbolDatum(\"ONE\"),\n\t\t\t\t\t\tCreateDatumUtils.createEnumSymbolDatum(\"TWO\"), true, false },\n\t\t\t\t{ SchemaUtils.generateArraySchema(), CreateDatumUtils.createArrayDatum(1, 2, 3),\n\t\t\t\t\t\tCreateDatumUtils.createArrayDatum(1, 2, 4), true, false },\n\t\t\t\t{ SchemaUtils.generateUnionSchema(), CreateDatumUtils.createUnionDatum(null, 23),\n\t\t\t\t\t\tCreateDatumUtils.createUnionDatum(1, 23), true, false },\n\t\t\t\t{ Schema.create(Type.NULL), null, null, true, true },\n\t\t\t\t{ null, 1, \"c\", new NullPointerException(), new NullPointerException() },\n\n\t\t\t\t// --------------------------Coverage Strutturale---------------------------\n\t\t\t\t{ SchemaUtils.generateRecordDatumSchema(), 1, CreateDatumUtils.createEnumSymbolDatum(\"ONE\"), false,\n\t\t\t\t\t\tnew Exception() }, // linea 562\n\t\t\t\t{ SchemaUtils.generateRecordSchema(), CreateDatumUtils.createRecordDatum(\"joe\", \"black\"),\n\t\t\t\t\t\tCreateDatumUtils.createEnumSymbolDatum(\"ONE\"), false, new Exception() }, // linea 566\n\t\t\t\t{ SchemaUtils.generateEnumSchema(), CreateDatumUtils.createFixedDatum(1),\n\t\t\t\t\t\tCreateDatumUtils.createEnumSymbolDatum(\"ONE\"), false, new Exception() }, // linea 571\n\t\t\t\t{ SchemaUtils.generateArraySchema(), 1, 1, false, true }, // linea 575\n\t\t\t\t{ SchemaUtils.generateArraySchema(), CreateDatumUtils.createArrayDatum(\"1\", \"2\", \"4\"),\n\t\t\t\t\t\tCreateDatumUtils.createArrayDatum(\"1\", \"2\"), false, false }, // linea 578 e linea 1141\n\t\t\t\t{ SchemaUtils.generateMapSchema(), CreateDatumUtils.createMapDatum(\"Pari\", \"Dispari\", 2, 4, 3),\n\t\t\t\t\t\tCreateDatumUtils.createMapDatum(\"Pari\", \"Dispari\", 2, 4, 3), true,\n\t\t\t\t\t\tnew AvroRuntimeException(\"Can't compare maps!\") }, // linea 588\n\t\t\t\t{ SchemaUtils.generateMapSchema(),\n\t\t\t\t\t\tCreateDatumUtils.createMapDatum(\"Vocali\", \"Consonanti\", \"a\", \"e\", \"s\"),\n\t\t\t\t\t\tCreateDatumUtils.createMapDatum(\"Vocali\", \"Consonanti\", \"a\", \"e\", \"s\"), false,\n\t\t\t\t\t\tnew AvroRuntimeException(\"Can't compare maps!\") }, // linea 587\n\t\t\t\t{ SchemaUtils.generateFixedSchema(), CreateDatumUtils.createFixedDatum(1),\n\t\t\t\t\t\tCreateDatumUtils.createFixedDatum(1), false, true }, // linea 597\n\t\t\t\t{ SchemaUtils.generateFixedSchema(), 1, 1, false, true }, // linea 597\n\t\t\t\t{ null, null, 1, new NullPointerException(), new NullPointerException() }, // linea 613\n\t\t\t\t{ Schema.create(Type.NULL), \"a\", 1, false, true }, // linee 1151 e 613\n\t\t\t\t{ Schema.create(Type.STRING), new Utf8(\"c\"), 1, true, false }, // linea 1153\n\t\t\t\t{ Schema.create(Type.STRING), 1, new Utf8(\"a\"), false, false }, // linea 1153\n\t\t\t\t{ Schema.create(Type.STRING), 1, 1, false, true }, // linea 1153\n\t\t\t\t{ Schema.create(Type.STRING), new Utf8(\"c\"), new Utf8(\"a\"), true, false }, // linea 1153\n\t\t\t\t{ SchemaUtils.generateRecordDatumSchema(), CreateDatumUtils.createRecordDatum(\"joe\", \"black\"),\n\t\t\t\t\t\tCreateDatumUtils.createRecordDatum(\"joe\", \"black\"), true, true }, // linea 1127\n\t\t\t\t{ SchemaUtils.generateArraySchema(), CreateDatumUtils.createArrayDatum(\"1\", \"2\"),\n\t\t\t\t\t\tCreateDatumUtils.createArrayDatum(\"1\", \"2\", \"3\"), false, false }, // linea 1141\n\t\t\t\t{ SchemaUtils.generateArraySchema(), CreateDatumUtils.createArrayDatum(\"1\", \"2\", \"3\"),\n\t\t\t\t\t\tCreateDatumUtils.createArrayDatum(\"1\", \"2\", \"3\"), false, true }, // linea 1141\n\t\t\t\t// linea 876\n\t\t\t\t{ SchemaUtils.generateUnionSchema(), CreateDatumUtils.createUnionDatum(1, 23),\n\t\t\t\t\t\tCreateDatumUtils.createUnionDatum(\"s\", 23), true,\n\t\t\t\t\t\tnew UnresolvedUnionException(SchemaUtils.generateUnionSchema(),\n\t\t\t\t\t\t\t\tCreateDatumUtils.createUnionDatum(\"s\", 23)) },\n\t\t\t\t// linea 594\n\t\t\t\t{ SchemaUtils.generateUnionSchema(), CreateDatumUtils.createUnionDatum(\"a\", 23),\n\t\t\t\t\t\tCreateDatumUtils.createUnionDatum(1, 23), false,\n\t\t\t\t\t\tnew UnresolvedUnionException(SchemaUtils.generateUnionSchema(),\n\t\t\t\t\t\t\t\tCreateDatumUtils.createUnionDatum(1, 23)) },\n\n\t\t\t\t// --------------------------Mutation Testing..................................\n\t\t\t\t// mutazione true linea 572\n\t\t\t\t{ SchemaUtils.generateEnumSchema(), CreateDatumUtils.createEnumSymbolDatum(\"UNO\"),\n\t\t\t\t\t\tCreateDatumUtils.createEnumSymbolDatum(\"TWO\"), false, new NullPointerException() },\n\t\t\t\t{ Schema.create(Type.BYTES), 1, 1, false, true }, // mutazione true linea 601\n\t\t\t\t{ Schema.create(Type.LONG), \"a\", \"a\", false, true }, // mutazione true linea 605 e 1036\n\t\t\t\t{ Schema.create(Type.FLOAT), \"a\", \"a\", false, true }, // mutazione true linea 607 e 1043\n\t\t\t\t{ Schema.create(Type.DOUBLE), \"a\", \"a\", false, true }, // mutazione true linea 609 e 1050\n\t\t\t\t{ Schema.create(Type.BOOLEAN), \"a\", \"a\", false, true }, // mutazione true linea 611 e 1057\n\t\t\t\t// mutazioni linea 1003, 1012\n\t\t\t\t{ SchemaUtils.generateRecordDatumSchemaForMutation(), CreateDatumUtils.createRecordDatumMutation(\"joe\"),\n\t\t\t\t\t\tCreateDatumUtils.createRecordDatumMutation(\"joe\"), false, new UnresolvedUnionException(\n\t\t\t\t\t\t\t\tSchemaUtils.generateUnionSchema(), CreateDatumUtils.createRecordDatumMutation(\"joe\")) },\n\n\t\t};\n\n\t\treturn Arrays.asList(data);\n\t}", "title": "" }, { "docid": "1f1d2eb02eac0dd5142ab4d1d11c48bf", "score": "0.47892922", "text": "public static void main(String[] args) throws FileNotFoundException { \n\n // instantiate Spark\n SparkConf conf = new SparkConf().setMaster(\"local[*]\").setAppName(\"ImportPdbFiles\");\n JavaSparkContext sc = new JavaSparkContext(conf);\n\n // read PDB files recursively starting the specified directory\n JavaPairRDD<String, StructureDataInterface> structures = MmtfImporter.importPdbFiles(args[0], sc);\n\n structures.foreach(t -> System.out.println(t._1));\n System.out.println(\"Number of structures read: \" + structures.count());\n // structures.foreach(t -> TraverseStructureHierarchy.demo(t._2));\n \n // save as an MMTF-Hadoop Sequence File\n // MmtfWriter.writeSequenceFile(mmtfPath, sc, structures);\n\n // close Spark\n sc.close(); \n }", "title": "" }, { "docid": "0103bf508e24fc7c36c386204d978ad1", "score": "0.47464865", "text": "public interface SparkStatsCalculator {\n\n ModelStats calculate(JavaSparkContext jsc, JavaRDD<String> data, PMML pmml, Params params);\n}", "title": "" }, { "docid": "3c6d73e7e6d5a8570fdb46c2a3d20e38", "score": "0.47437462", "text": "public static JavaPairRDD<Tuple2<String, String>, FlightData> getFlightIdsToDataAccordance(JavaRDD<FlightData> flights){\r\n return flights.mapToPair(flight -> new Tuple2<>(\r\n new Tuple2<>(flight.getOriginId(), flight.getDestinationId()),\r\n flight\r\n )\r\n );\r\n }", "title": "" }, { "docid": "87dfe5178f1251aad1f379c380489654", "score": "0.47416258", "text": "public static void main(String[] args) throws InterruptedException {\n SparkConf sparkConf = new SparkConf().setAppName(\"SparkStreamingWithKafka\").setMaster(\"local[4]\");\n JavaStreamingContext javaStreamingContext = new JavaStreamingContext(sparkConf, new Duration(2000));\n\n Map<String, Integer> topicMap = new HashMap<String, Integer>();\n topicMap.put(\"sparkStreaming\", 1);\n //Passing Kafka configuration and Map of topics to get Stream of data\n JavaPairReceiverInputDStream<String, String> javaReceiverPairInputDStream = KafkaUtils.createStream(javaStreamingContext,\"localhost:2181\",\"test-consumer-group\", topicMap);\n //Mapping Stream of data to lines\n JavaDStream<String> lines = javaReceiverPairInputDStream.map(new Function<Tuple2<String, String>, String>() {\n @Override\n public String call(Tuple2<String, String> tuple2) throws Exception {\n return tuple2._2;\n }\n });\n //Filtering lines to have Hollywood incident.\n JavaDStream<String> filteredLines = lines.filter(new Function<String, Boolean>() {\n @Override\n public Boolean call(String s) throws Exception {\n return s.contains(\"Hollywood\");\n }\n });\n\n filteredLines.print();\n javaStreamingContext.start();\n javaStreamingContext.awaitTermination();\n }", "title": "" }, { "docid": "e8c67f53f1b69488680285da3f79617b", "score": "0.47405848", "text": "public void runInSpark(File sparkLibPath) throws Exception {\r\n checkPath(sparkLibPath, (dir, name) -> name.startsWith(SPARK_LIB) && name.endsWith(\".jar\"));\r\n\r\n // Set up output directory\r\n File output;\r\n\r\n if (outputDirectory != null) {\r\n if (outputDirectory.isAbsolute()) {\r\n output = outputDirectory;\r\n }\r\n else {\r\n output = new File(projectDirectory, outputDirectory.getPath());\r\n }\r\n } else {\r\n output = new File(projectDirectory, \"output\");\r\n }\r\n\r\n if (!output.exists()) {\r\n System.out.println(\"Output directory \" + output.getPath()\r\n + \" does not exist\");\r\n return;\r\n }\r\n\r\n // Get all xml files in the output folder (possible model files)\r\n ArrayList<File> xmlFiles = FileUtils.findAllFiles(output, \"xml\", false);\r\n if (xmlFiles.size() == 0) {\r\n throw new Exception(\"No model files in the output directory: \" + output.getPath());\r\n }\r\n\r\n//\t\tStringBuilder cmd = new StringBuilder(\r\n//\t\t\t\t\"java -Xmx512m -Xms128m -jar \");\r\n//\t\tcmd.append('\"');\r\n//\t\tcmd.append(sparkExternalPath.getPath());\r\n//\t\tcmd.append('\"');\r\n//\r\n//\t\tcmd.append(\" \\\"\");\r\n//\t\tcmd.append(xmlFiles.get(0).getPath());\r\n//\t\tcmd.append('\"');\r\n\r\n//\t\tSystem.out.println(cmd);\r\n// String[] cmd = {\r\n// String.join(File.separator, sparkExternalPath.getParentFile().getParent(), \"bin\", \"spark-gui\"),\r\n// xmlFiles.get(0).getPath()\r\n// };\r\n String[] cmd = {\r\n \"java\", \"-jar\",\r\n getJars(sparkLibPath, new String[] { SPARK_LIB }),\r\n xmlFiles.get(0).getPath()\r\n };\r\n\r\n System.out.println(String.join(\" \", cmd));\r\n Process proc = Runtime.getRuntime().exec(cmd);\r\n\r\n//\t\t\t\tnew String[] { \"java\", \"-Xmx512m\", \"-Xms128m\",\r\n//\t\t\t\t\t\t\"-Dsun.java2d.d3d=false\", \"-jar\", sparkExternalPath.getPath(),\r\n//\t\t\t\t\t\txmlFiles.get(0).getPath() });\r\n\r\n InputStream inputStream = proc.getInputStream();\r\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\r\n final BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\r\n\r\n inputStream = proc.getErrorStream();\r\n final BufferedReader errReader = new BufferedReader(\r\n new InputStreamReader(inputStream));\r\n\r\n // Read streams in separate threads\r\n new Thread(new LineReader(bufferedReader)).start();\r\n new Thread(new LineReader(errReader)).start();\r\n\r\n }", "title": "" }, { "docid": "2ba6ae0e000a032d5a482988bdaad21e", "score": "0.47321454", "text": "public static void main(String[] args) {\n\t\tString name = \"Schema Demo\";\n\t\tApplication app = new Application();\n\t\tSparkSession spark = getSparkInstance(app, name);\n\t\tread_csv_defined_schema(spark);\n\t\tparseMultiLineJsonLines(spark);\n\t\tparseSimpleJsonLines(spark);\n\t\tcloseSparkSession( spark , app);\n\t\t\n\n\t}", "title": "" }, { "docid": "c4da5e1e37c15098a1674b3581e0f48e", "score": "0.47320738", "text": "public static void readExternalHive(SparkSession spark) {\n\n Dataset<Row> namesDF = spark.sql(\"SELECT * FROM trans_hive_spark limit 10\");\n namesDF.show();\n\n }", "title": "" }, { "docid": "5600ffb0bd2699ff00111368200cc7a5", "score": "0.47094262", "text": "public List<Double> getThreshold(RecordingDeviceData rdd)throws Exception;", "title": "" }, { "docid": "f635e264a4695846836c4412aba805fa", "score": "0.47069183", "text": "private void readData() throws IOException {\n\t\tString fileName = \"dataset/ecoli.csv\";\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));\n\t\tSystem.out.println(\"Reading \" + fileName + \"...\");\n\t\tString[][] dataset = in.lines().map(line -> line.split(\",\")).toArray(String[][]::new);\n\t\tin.close();\n\t\t\n\t\tclasses = new HashMap<>();\n\t\tn = dataset.length - 1;\n\t\tm = dataset[0].length - 1;\n\t\tf = new double[n][m];\n\t\ty = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m + 1; j++) {\n\t\t\t\tString value = dataset[i + 1][j];\n\t\t\t\tif (j < m) {\n\t\t\t\t\tf[i][j] = Double.parseDouble(value);\n\t\t\t\t} else {\n\t\t\t\t\tclasses.putIfAbsent(value, classes.size());\n\t\t\t\t\ty[i] = classes.get(value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a7bd8d4c48ccef1af0fb1c6245e2028f", "score": "0.4702229", "text": "@Nonnull\r\n public static JavaPairRDD<String, String> parseFastaFile(@Nonnull String path, @Nonnull JavaSparkContext ctx) {\r\n Class inputFormatClass = FastaInputFormat.class;\r\n Class keyClass = String.class;\r\n Class valueClass = String.class;\r\n\r\n return ctx.newAPIHadoopFile(\r\n path,\r\n inputFormatClass,\r\n keyClass,\r\n valueClass,\r\n ctx.hadoopConfiguration()\r\n );\r\n\r\n }", "title": "" }, { "docid": "7c35446a96bb323ce118463fdc6c5dff", "score": "0.46963412", "text": "@Override\n public void call(JavaRDD<String> messagesRdd) throws Exception { \n if(messagesRdd!=null) { \n if(vtiStatement == null) {\n messagesRdd.foreachPartition(new SavePartition(this.spliceJdbcUrl,this.spliceSchema, this.spliceTable, this.vtiClassName));\n } else {\n messagesRdd.foreachPartition(new SavePartition(this.spliceJdbcUrl,this.vtiStatement));\n }\n } \n }", "title": "" }, { "docid": "82968afbffcbf6518490ce9417e7336e", "score": "0.46920216", "text": "public org.apache.spark.rdd.RDD<java.lang.Object> predict (org.apache.spark.rdd.RDD<org.apache.spark.mllib.linalg.Vector> features) { throw new RuntimeException(); }", "title": "" }, { "docid": "5fe482fe9b1c964de40e82e0c1ed8754", "score": "0.4669532", "text": "static public JavaSparkContext parallelizeList(){\n if (cxt == null) {\n // Set up context\n SparkConf conf = new SparkConf().setAppName(\"Ensemble\").setMaster(\"local\");\n cxt = new JavaSparkContext(conf);\n }\n\n return cxt;\n }", "title": "" }, { "docid": "23378122c399d4cadbabca34e25ad2ea", "score": "0.46604884", "text": "public static void main(String[] args) throws InterruptedException {\n\t\tSparkConf conf = new SparkConf().setMaster(\"local[2]\").setAppName(\"StreamingApp\");\n\t\t\n\t\t// This configuration is set to serialize the ConsumerRecord class which is not serializable\n\t\t// Everything inside the forEachRDD method should be serializable as it will be\n\t\t// transferred across nodes\n\t\tconf.set(\"spark.serializer\", \"org.apache.spark.serializer.KryoSerializer\");\n\t\tconf.registerKryoClasses(new Class[] {ConsumerRecord.class});\n\t\t\n\t\t// Elasticsearch Configurations\n\t\tconf.set(\"es.index.auto.create\", \"true\");\n\t\tconf.set(\"es.nodes\", \"localhost\");\n\t\tconf.set(\"es.port\",\"9200\");\n\t\tconf.set(\"es.http.timeout\",\"5m\");\n\t\tconf.set(\"es.scroll.size\",\"50\");\n\t\t\n\t\t// The default behavior is retaining the grouping columns\n\t\t// We can change it by setting the below configuration to false\n//\t\tconf.set(\"spark.sql.retainGroupColumns\", \"false\");\n\t\tJavaStreamingContext jssc = new JavaStreamingContext(conf, Durations.seconds(1));\n\n\t\tLogger.getLogger(\"org\").setLevel(Level.OFF);\n\t\tLogger.getLogger(\"akka\").setLevel(Level.OFF);\n\n\t\t//------------ Kafka configurations -------------------\n\t\tMap<String, Object> kafkaParams = new HashMap<>();\n\t\t\n\t\t// the addresses of the Kafka brokers in a \"bootstrap\" Kafka cluster that a Kafka \n\t\t// client connects to initially to bootstrap itself.\n\t\tkafkaParams.put(\"bootstrap.servers\", \"localhost:9092,anotherhost:9092\");\n\t\t\n\t\t// Message key and value deserializers\n\t\tkafkaParams.put(\"key.deserializer\", LongDeserializer.class);\n\t\tkafkaParams.put(\"value.deserializer\", StringDeserializer.class);\n\t\t\n\t\t// name of the consumer group\n\t\tkafkaParams.put(\"group.id\", \"group_id\");\n\t\t\n\t\t// What to do when there is no initial offset in Kafka \n\t\t// or if the current offset does not exist any more on the server\n\t\t// latest: automatically reset the offset to the latest offset\n\t\tkafkaParams.put(\"auto.offset.reset\", \"latest\");\n\t\t\n\t\t// Whether to commit the offset periodically automatically (true)\n\t\t// or to call commit method on the consumer manually (false)\n\t\t// In our case messages polled by the consumer may not yet have resulted in a Spark output yet\n\t\t// So we set the config to false and set the offsets manually after inserting data in ES (This is not managed yet)\n//\t\tkafkaParams.put(\"enable.auto.commit\", false); \n\n\t\tCollection<String> topics = Arrays.asList(\"Sandra\");\n\t\t\n\t\t// Creating the stream from kafka\n\t\tJavaInputDStream<ConsumerRecord<Long, String>> stream = KafkaUtils.createDirectStream(jssc,\n\t\t\t\tLocationStrategies.PreferConsistent(), // related to the distribution of partitions\n\t\t\t\tConsumerStrategies.<Long, String>Subscribe(topics, kafkaParams));\n\t\t\n\t\t\n\t\t// Creating the windowed stream\n\t\t// 1st argument is the window length, 2nd is the slide interval\n\t\tJavaDStream<ConsumerRecord<Long, String>> windowedStream = stream.window(new Duration(30000), new Duration(30000));\n\t\t\n\t\t// Loop over the windowed stream we made to map the records inside each RDD\n\t\t// to our business object (JSONOutputDTO)\n\t\twindowedStream.foreachRDD((rdd) -> {\n\t\t\t\n\t\t\t\n\t\t\tif(!rdd.isEmpty()) {\n\t\t\t\t// Get the singleton instance of SparkSession\n\t\t\t\tSparkSession spark = SparkSession.builder().config(rdd.context().getConf()).getOrCreate();\n\n\t\t\t\t// Looping over the records of each RDD to \n\t\t\t\t// convert RDD[ConsumerRecord] to RDD[JSONObj}\n\t\t\t\tJavaRDD<JSONOutputDTO> mappedRdd = rdd.map((consumerRecord) -> {\n\t\t\t\t\t// Creating json object\n\t\t\t\t\tSystem.out.println(\"Parsing JSON of record: \" + consumerRecord.key());\n\t\t\t\t\tJSONOutputDTO outputJSON = new ObjectMapper().readValue(consumerRecord.value(), JSONOutputDTO.class);\n\t\t\t\t\t\n\t\t\t\t\treturn outputJSON;\n\t\t\t\t}).cache();\n\t\t\t\t// cache is added so that the mapping processing would take place only once and be cached\n\t\t\t\t\n\t\t\t\t// Creating the dataset to compute on from our mapped RDD\n\t\t\t\tDataset<Row> windowDataFrame = spark.createDataFrame(mappedRdd, JSONOutputDTO.class);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"The table operated on....\");\n\t\t\t\tSystem.out.println(\"Count = \"+ windowDataFrame.count());\n\t\t\t\twindowDataFrame.show();\n\t\t\t\t\n\t\t\t\t// Do operations on the dataset\n\t\t\t\tSystem.out.println(\"The table after grouping and aggregations....\");\n\t\t\t\tDataset<Row> operatedOnDS = windowDataFrame.groupBy(\"destinationIP\", \"sourceIP\", \"routerIP\", \"inInterface\", \"outInterface\")\n\t\t\t\t\t\t.agg(max(windowDataFrame.col(\"packetsCount\")), sum(\"octetsCount\"));\n\t\t\t\tSystem.out.println(\"Count = \" + operatedOnDS.count());\n\t\t\t\toperatedOnDS.show();\n\t\t\t\t\n\t\t\t\t// Dataset must be mapped to RDD<NetflowRecordDTO> to be inserted in ES\n\t\t\t\t// because the schema can't be inferred from the Dataset\n\t\t\t\t// Mapping the dataset to RDD<NetflowRecordDTO>\n\t\t\t\tJavaRDD<NetflowRecordDTO> recordsRDD = operatedOnDS.javaRDD().map((row) -> {\n\t\t\t\t\tNetflowRecordDTO netflowRecord = new NetflowRecordDTO();\n\t\t\t\t\tnetflowRecord.setDestinationIP(row.getString(0));\n\t\t\t\t\tnetflowRecord.setSourceIP(row.getString(1));\n\t\t\t\t\tnetflowRecord.setRouterIP(row.getString(2));\n\t\t\t\t\tnetflowRecord.setInInterface(row.getInt(3));\n\t\t\t\t\tnetflowRecord.setOutInterface(row.getInt(4));\n\t\t\t\t\tnetflowRecord.setMaxPacketsCount(row.getLong(5));\n\t\t\t\t\tnetflowRecord.setSumOctetsCount(row.getLong(6));\n\t\t\t\t\treturn netflowRecord;\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Saving to ES.....\");\n\t\t\t\tJavaEsSpark.saveToEs(recordsRDD, \"netflow_records/records\");\n\t\t\t\t\n//\t\t\t\t((CanCommitOffsets) stream.inputDStream()).commitAsync(offsetRanges);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t// When these lines are executed, Spark Streaming only sets up the computation\n\t\t// it will perform after it is started\n\t\t// and no real processing has started yet. To start the processing after all the\n\t\t// transformations have been setup,\n\t\t// we finally call start method.\n\t\tjssc.start();\n\t\tjssc.awaitTermination();\n\n\t\tjssc.close();\n\t}", "title": "" }, { "docid": "ebf66223b8835d9cc96e4a78eb612d17", "score": "0.4659889", "text": "public static void main(String[] args) {\n\t\tSparkSession spark = SparkSession\n\t\t\t\t .builder()\n\t\t\t\t .master(\"local\")\n\t\t\t\t .appName(\"Java Spark SQL basic example\")\n\t\t\t\t //.config(\"spark.some.config.option\", \"some-value\")\n\t\t\t\t .getOrCreate();\n\t\t\n\t\t\n\t\tSystem.out.println(\"------ start -------\");\n\t\tDataset<Row> result1 = spark.read().text(\"src/main/resources/data/compare/a.txt\");\n\t\tDataset<Row> result2 = spark.read().text(\"src/main/resources/data/compare/b.txt\");\n\n\t\tSystem.out.println(\"------ start -------2\");\n\t\t\n\t\t\n\t\tresult1 = result1.withColumn(\"test\",result1.col(\"value\").substr(0, 5));\n\t\tresult1 = result1.withColumn(\"test2\",result1.col(\"value\").substr(5, 5)); \n\t\t\n\t\tresult2 = result2.withColumn(\"test\",result2.col(\"value\").substr(0, 5));\n\t\tresult2 = result2.withColumn(\"test2\",result2.col(\"value\").substr(5, 5)); \n\t\t\n\t\tresult1.show();\n\t\tresult2.show();\n\t\ttry{\n\t\t\tresult1.createTempView(\"result1_view\");\n\t\t\tresult2.createTempView(\"result2_view\");\n\t\t\t\n\t\t\tDataset<Row> sqlDF = spark.sql(\"SELECT * FROM result1_view v1 full outer join result2_view v2 on v1.test = v2.test\" );\n\t\t\tsqlDF.show();\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"------ End ---------\");\n\t\tspark.close();\n\n\t}", "title": "" }, { "docid": "901106fb18f9ac5455fcd726d6c80e55", "score": "0.46363366", "text": "public PartitionedSerializedPairBuffer (int metaInitialRecords, int kvBlockSize, org.apache.spark.serializer.SerializerInstance serializerInstance) { throw new RuntimeException(); }", "title": "" }, { "docid": "4eedd1776dd2ee5da8261ab73acddaf8", "score": "0.4635932", "text": "public boolean readData(String filepath) {\n\ttry {\n\t Data = ConverterUtils.DataSource.read(filepath);\n\t Data.setClassIndex(27);\n//\t Data.setClassIndex(Data.numAttributes()-1);\n\t Result = new Instances(Data,0);\n\t Result.setClassIndex(Result.numAttributes()-1);\n\t} catch (Exception ex) {\n\t System.out.println(ex);\n\t return false;\n\t}\n\treturn true;\n }", "title": "" }, { "docid": "2c83575da5b8f380b11554581752bdc0", "score": "0.4635611", "text": "public void insert_raw_RDD(JavaRDD<Integer> timestamp,JavaRDD<Double> values, String ts_name, Path path);", "title": "" }, { "docid": "7697fdf01c12d1b3738a1d3622aebd7c", "score": "0.46152857", "text": "private JavaSparkContext connectSpark()\n\t{\n\t\t// Setting insert size to \"1\" to avoid non-flushing due to\n\t\t// low-throughput streaming\n\t\tSparkConf conf = new SparkConf()\n\t\t\t.setAppName(sparkAppName)\n\t\t\t.set(\"spark.cores.max\", String.valueOf(sparkCoresMax))\n\t\t\t.set(\"spark.executor.memory\", sparkExecutorMemory)\n\t\t\t.set(GPUdbWriter.PROP_GPUDB_HOST, gpudbHost)\n\t\t\t.set(GPUdbWriter.PROP_GPUDB_PORT, String.valueOf(gpudbPort))\n\t\t\t.set(GPUdbWriter.PROP_GPUDB_THREADS, String.valueOf(gpudbThreads))\n\t\t\t.set(GPUdbWriter.PROP_GPUDB_TABLE_NAME, gpudbTargetTableName)\n\t\t\t.set(GPUdbWriter.PROP_GPUDB_INSERT_SIZE, \"1\");\n\n\t\tJavaSparkContext sc = new JavaSparkContext(conf);\n\n\t\treturn sc;\n }", "title": "" }, { "docid": "0b22afa5164cb1f42dcf1dd5344ef259", "score": "0.46061355", "text": "public static void readDB(String master) {\n\t\tSparkSession spark = SparkSession.builder().appName(\"gl.spark\").master(master).getOrCreate();\n\t\tProperties properties = new Properties();\n\t\tproperties.setProperty(\"user\", \"root\");\n\t\tproperties.setProperty(\"password\", \"password\");\n\t\tproperties.put(\"driver\", \"com.mysql.cj.jdbc.Driver\");\n\t\tDataset<Row> df = spark.read().jdbc(\"jdbc:mysql://localhost:3306/spark_poc?useSSL=false\", \"Person\", properties);\n\t\tdf.show();\n\t}", "title": "" }, { "docid": "dd47f3d167a9eabbe5d584da4e0e72a9", "score": "0.4586275", "text": "public static List<RankList> readInput(String inputFile, boolean mustHaveRelDoc, boolean useSparseRepresentation) {\n/* 178 */ List<RankList> samples = new ArrayList<>();\n/* 179 */ int countRL = 0;\n/* 180 */ int countEntries = 0;\n/* */ \n/* */ try {\n/* 183 */ String content = \"\";\n/* 184 */ BufferedReader in = FileUtils.smartReader(inputFile);\n/* */ \n/* 186 */ String lastID = \"\";\n/* 187 */ boolean hasRel = false;\n/* 188 */ List<DataPoint> rl = new ArrayList<>();\n/* */ \n/* 190 */ while ((content = in.readLine()) != null) {\n/* */ DenseDataPoint denseDataPoint;\n/* 192 */ content = content.trim();\n/* 193 */ if (content.length() == 0) {\n/* */ continue;\n/* */ }\n/* 196 */ if (content.indexOf(\"#\") == 0) {\n/* */ continue;\n/* */ }\n/* 199 */ if (countEntries % 10000 == 0) {\n/* 200 */ System.out.print(\"\\rReading feature file [\" + inputFile + \"]: \" + countRL + \"... \");\n/* */ }\n/* 202 */ DataPoint qp = null;\n/* */ \n/* 204 */ if (useSparseRepresentation) {\n/* 205 */ SparseDataPoint sparseDataPoint = new SparseDataPoint(content);\n/* */ } else {\n/* 207 */ denseDataPoint = new DenseDataPoint(content);\n/* */ } \n/* 209 */ if (lastID.compareTo(\"\") != 0 && lastID.compareTo(denseDataPoint.getID()) != 0) {\n/* */ \n/* 211 */ if (!mustHaveRelDoc || hasRel)\n/* 212 */ samples.add(new RankList(rl)); \n/* 213 */ rl = new ArrayList<>();\n/* 214 */ hasRel = false;\n/* */ } \n/* */ \n/* 217 */ if (denseDataPoint.getLabel() > 0.0F)\n/* 218 */ hasRel = true; \n/* 219 */ lastID = denseDataPoint.getID();\n/* 220 */ rl.add(denseDataPoint);\n/* 221 */ countEntries++;\n/* */ } \n/* */ \n/* 224 */ if (rl.size() > 0 && (!mustHaveRelDoc || hasRel)) {\n/* 225 */ samples.add(new RankList(rl));\n/* */ }\n/* 227 */ in.close();\n/* 228 */ System.out.println(\"\\rReading feature file [\" + inputFile + \"]... [Done.] \");\n/* 229 */ System.out.println(\"(\" + samples.size() + \" ranked lists, \" + countEntries + \" entries read)\");\n/* */ }\n/* 231 */ catch (Exception ex) {\n/* */ \n/* 233 */ throw RankLibError.create(\"Error in FeatureManager::readInput(): \", ex);\n/* */ } \n/* 235 */ return samples;\n/* */ }", "title": "" }, { "docid": "a2a3e6d609281883616a56accff82ad7", "score": "0.4568145", "text": "public RectangleRDD(JavaSparkContext spark, String InputLocation,Integer Offset,String Splitter,Integer partitions)\n\t{\n\t\t//final Integer offset=Offset;\n\t\tthis.setRawRectangleRDD(spark.textFile(InputLocation,partitions).map(new RectangleFormatMapper(Offset,Splitter)).cache());\n\t}", "title": "" }, { "docid": "afd6a34651de6162207939b82e133c25", "score": "0.45636556", "text": "public static Object readData() {\n\n\t\t// Does the persistent store exist?\n\t\tFile file = new File(storageFile);\n\t\tif (!file.exists()) {\n\t\t\treturn null;\n\t\t}\n\n\t\t// Yes, so let's deserialize the object\n\t\tXStream x = new XStream();\n\n\t\t// Security Framework Initialization - Introduced as part of XStream Version\n\t\t// Upgrade to resolve com.thoughtworks.xstream.security.ForbiddenClassException\n\t\t// while data retrieval from XML\n\n\t\t// clear out existing permissions and set own ones\n\t\tx.addPermission(NoTypePermission.NONE);\n\t\t// allow any type from the given package\n\t\t// x.allowTypesByWildcard(new String[] { \"control.*\", \"model.*\" }); //Commented\n\t\t// as part of Della04 and added AnyTypePermission.ANY line, analyze later on\n\t\tx.addPermission(AnyTypePermission.ANY);\n\n\t\tObject result = null;\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(file));\n\t\t\tObjectInputStream oin = x.createObjectInputStream(in);\n\t\t\tresult = oin.readObject();\n\t\t\toin.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.out.println(\"IO exception reading \" + storageFile);\n\t\t\tSystem.exit(0);\n\t\t} catch (ClassNotFoundException ex) {\n\t\t\tSystem.out.println(\"Class not found exception while reading \" + storageFile);\n\t\t\tSystem.exit(0);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "46ecf4db4436b26cff25f46680a21bc0", "score": "0.45565173", "text": "@Override\n\tpublic void readData() {\n\t\t\n\t}", "title": "" }, { "docid": "1e27025533228bf6db5f41a679ebf905", "score": "0.4548976", "text": "public static Data loadData(Dataset dataset, FileSystem fs, Path fpath) throws IOException {\r\n FSDataInputStream input = fs.open(fpath);\r\n Scanner scanner = new Scanner(input, \"UTF-8\");\r\n\r\n List<Instance> instances = new ArrayList<>();\r\n\r\n DataConverter converter = new DataConverter(dataset);\r\n\r\n while (scanner.hasNextLine()) {\r\n String line = scanner.nextLine();\r\n if (!line.isEmpty()) {\r\n Instance instance = converter.convert(line);\r\n if (instance != null) {\r\n instances.add(instance);\r\n } else {\r\n // missing values found\r\n log.warn(\"{}: missing values\", instances.size());\r\n }\r\n } else {\r\n log.warn(\"{}: empty string\", instances.size());\r\n }\r\n }\r\n\r\n scanner.close();\r\n return new Data(dataset, instances);\r\n }", "title": "" }, { "docid": "a8f3f0938fc8ffc1786a4e3c97d504bf", "score": "0.45488706", "text": "@Override\n protected Object readFully() throws IOException {\n return get1DJavaArray(variable.read()); // May be already cached by the UCAR library.\n }", "title": "" }, { "docid": "746bb69c9ff45a091eebc3a2377ad5fd", "score": "0.45440978", "text": "public DataSet getTrainDataSet();", "title": "" }, { "docid": "26be864e50222a91eccff50582b7f15f", "score": "0.45426393", "text": "private IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\tFile file = new File(\"src/test/resources/factura_detalle.xml\");\r\n\t\tIDataSet dataSet = new FlatXmlDataSet(file);\r\n\t\treturn dataSet;\r\n\t}", "title": "" }, { "docid": "da4fab8349f60d0c0c62a972c8c271e7", "score": "0.4540201", "text": "private JavaPairRDD<Integer, Sale> pairSalesRdd(JavaRDD<String> salesRdd, String delimiter) throws Exception {\n\t\tJavaPairRDD<Integer, Sale> idSales = salesRdd.mapToPair(s -> {\n String[] words = s.split(Pattern.quote(delimiter));\n Sale sale = new Sale(words[1], Long.parseLong(words[0]), Long.parseLong(words[2])); \n return new Tuple2<Integer, Sale>(Integer.parseInt(words[1]), sale);\n\t\t});\n\t\treturn idSales;\n\t}", "title": "" }, { "docid": "ed672c15ae2a15eac015160b385f4d42", "score": "0.4537149", "text": "public Dataset<Row> run(Dataset dataset) {\n Configuration configuration = ConfigurationUtils.getInstance().getConfiguration(this.sparkRunnerConfig);\n List<String> predictionVars = configuration.getModelPredictionConfiguration().getPredictionVariables();\n List<Column> usedColumns = new ArrayList<>();\n for(String var : predictionVars) {\n usedColumns.add(new Column(var));\n }\n dataset = dataset.select(BpmnaiUtils.getInstance().asSeq(usedColumns));\n\n //go through pipe elements\n // Define processing steps to run\n final PreprocessingRunner preprocessingRunner = new PreprocessingRunner();\n\n for(PipelineStep ps : pipelineManager.getOrderedPipeline()) {\n preprocessingRunner.addPreprocessorStep(ps);\n }\n\n // Run processing runner\n Dataset<Row> resultDataset = preprocessingRunner.run(dataset, this.sparkRunnerConfig);\n\n writeConfig();\n\n return resultDataset;\n }", "title": "" }, { "docid": "602c3cdc684417e229ba2003fccc330f", "score": "0.45104665", "text": "public static void main(String[] args) throws IOException {\n DatumReader<Employee> employeeDatumReader= new SpecificDatumReader<>(Employee.class);\n\n //here this class reads the serialized data from file Employee.avro\n DataFileReader<Employee> employeeDataFileReader= new DataFileReader<>(\n new File(\"/home/shubham-fretron/IdeaProjects/Avro_Demo/src/main/avro/Employee.avro\"), employeeDatumReader);\n\n Employee emp=null;\n while(employeeDataFileReader.hasNext()){\n emp = employeeDataFileReader.next(emp);\n System.out.println(emp.toString());\n }\n }", "title": "" }, { "docid": "d179535682754a3ed7a5a6bbf1e09fdd", "score": "0.4501261", "text": "public void write(JavaRDD<Map<String,Object>> rdd)\n\t{\n\t\trdd.foreachPartition\n\t\t(\n\t\t\tnew VoidFunction<Iterator<Map<String,Object>>>()\n\t\t\t{\n\t\t\t\tprivate static final long serialVersionUID = 1519062387719363984L;\n\t\t\t\tprivate List<Map<String,Object>> records = new ArrayList<>();\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void call(Iterator<Map<String,Object>> recordSet)\n\t\t\t\t{\n\t\t\t\t\twhile (recordSet.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tMap<String,Object> record = recordSet.next();\n\t\t\t\t\t\tif (record != null)\n\t\t\t\t\t\t\twrite(records, record);\n\t\t\t\t\t}\n\t\t\t\t\tflush(records);\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t}", "title": "" }, { "docid": "af2673ebd3dfbe8282d0446e5bca84e4", "score": "0.44924515", "text": "private JavaPairRDD<Integer, Customer> pairCustomerRdd(JavaRDD<String> customerRdd, String delimiter) throws Exception {\n\t\tJavaPairRDD<Integer, Customer> idCustomers = customerRdd.mapToPair(s -> {\n String[] words = s.split(Pattern.quote(delimiter));\n Customer customer = new Customer(words[4]);\n return new Tuple2<Integer, Customer>(Integer.parseInt(words[0]), customer);\n\t\t});\n\t\treturn idCustomers;\n\t}", "title": "" } ]
26de184245ff55360b75b2eac10e5af3
This method was generated by MyBatis Generator. This method sets the value of the database column t_order.receive_name
[ { "docid": "e34be029ab00bd63f4f1f9b607e76f16", "score": "0.6614624", "text": "public void setReceiveName(String receiveName) {\n this.receiveName = receiveName == null ? null : receiveName.trim();\n }", "title": "" } ]
[ { "docid": "d7c18a8fdddf145baae9548f59bf5264", "score": "0.5480795", "text": "public String getReceiveName() {\n return receiveName;\n }", "title": "" }, { "docid": "3b52b0719f2a647b385b87075591a6e3", "score": "0.5419201", "text": "public void setReceiveAddress(String receiveAddress) {\n this.receiveAddress = receiveAddress == null ? null : receiveAddress.trim();\n }", "title": "" }, { "docid": "195209f2174ffd927d777ba8ebc962a2", "score": "0.5415383", "text": "public void setReceivePhoneNameDetail(String receivePhoneNameDetail) {\r\n this.receivePhoneNameDetail = receivePhoneNameDetail == null ? null\r\n : receivePhoneNameDetail.trim();\r\n }", "title": "" }, { "docid": "9b77585cece8d59bfc7ec419ec161db2", "score": "0.5385723", "text": "public void setReceiverName(String receiverName) {\r\n\t\tthis.receiverName = receiverName;\r\n\t}", "title": "" }, { "docid": "5935b896fd6abb41fe5a4395665fa9bb", "score": "0.52804154", "text": "public void setReceiveMobile(String receiveMobile) {\n this.receiveMobile = receiveMobile == null ? null : receiveMobile.trim();\n }", "title": "" }, { "docid": "fcbbae79b557c7852f0a23c78ff2f070", "score": "0.51210624", "text": "public void setReceiverName(String rName, String trackNum)\r\n {\r\n for(int i = 0; i < shipmentNumber; i++)\r\n {\r\n if(cargoShipments[i].trackingNumber == trackNum)\r\n {\r\n cargoShipments[i].receiverName = rName;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "af13c94347fb7621bf1081134ce8f3f9", "score": "0.5115595", "text": "public String getReceiverName(){\r\n \treturn receiverName;\r\n }", "title": "" }, { "docid": "525d67869245bdfc92251e1c00c2b8e3", "score": "0.508055", "text": "@FXML\r\n private void txtOrderItemName_change(Event t) {\r\n if (curItemBean == null || txtOrderItemName.getText().isEmpty())\r\n return;\r\n curItemBean.setName(txtOrderItemName.getText());\r\n cmdSaveChanges.setDisable(false);\r\n //refreshColumn(colItemName);\r\n }", "title": "" }, { "docid": "a36656eef649cf6ff36a4682dc4d8245", "score": "0.5046982", "text": "public void setReceiver(final String newReceiver) {\r\n\tthis.receiver = new AgentName(newReceiver);\r\n}", "title": "" }, { "docid": "f0dd9f3c64210cbd8ed5d033b8ff6b97", "score": "0.4988444", "text": "public void setReceivedDate(Date receivedDate) {\n\t\tthis.receivedDate = receivedDate;\n\t}", "title": "" }, { "docid": "6748cfdb0e05d2b368cc8fc6e1c73321", "score": "0.4918472", "text": "public void setReceivedSerialNumber(String receivedSerialNumber) {\n _receivedSerialNumber = receivedSerialNumber ;\n }", "title": "" }, { "docid": "96dc4734947b3f868828a2a87f273c70", "score": "0.4896275", "text": "@Override\n\tpublic void receiveOrder(long order_id) {\n\t\tString receiveTime = String.valueOf(System.currentTimeMillis()/1000);\n\t\torderMapper.receiveOrder(order_id,receiveTime);\n\t}", "title": "" }, { "docid": "22b52232626dcc8a8520b4b840632628", "score": "0.48911196", "text": "public String getReceivedByName() {\r\n\t\t\r\n\t\treturn getStringProperty(\"ReceivedByName\");\r\n\t}", "title": "" }, { "docid": "5b6c8c886868ce2ea5366d894ce51bef", "score": "0.48422557", "text": "public static String fieldReceiverName() {\r\n\t\treturn \"RECEIVER_NAME\";\r\n\t}", "title": "" }, { "docid": "3e3fcecbc533db53733c11511fe704dd", "score": "0.47780257", "text": "public abstract void set_RetrievalName(String paramString);", "title": "" }, { "docid": "1900691059274b94e38df316f0cb4388", "score": "0.476162", "text": "public void setBalAmtToReceive(String balAmtToReceive) {\n this.balAmtToReceive = balAmtToReceive;\n }", "title": "" }, { "docid": "fda81c918827cd44d3a6a1f6d8662602", "score": "0.46893272", "text": "public void setOrderedByName(String val) {\n // ProtectBlock setOrderedByName\n // ProtectBlock End\n this.orderedByName = val;\n }", "title": "" }, { "docid": "d9ccc91dc752b9ba9c5497fa16abded9", "score": "0.468118", "text": "public void setReceiver(String receiver) {\n this.receiver = receiver == null ? null : receiver.trim();\n }", "title": "" }, { "docid": "2e079bf84c849f570a3f2daafd5b1f2d", "score": "0.4671377", "text": "public void setReceiveEmail(Boolean receiveEmail) {\n\t\tthis.receiveEmail = receiveEmail;\n\t}", "title": "" }, { "docid": "b5c8ad4c0dd9343806b2e922f4a1fa52", "score": "0.4655077", "text": "public void setOrder(java.lang.String value){\n return; //TODO codavaj!!\n }", "title": "" }, { "docid": "ee72bf8a586694bedbce26d9bc75c6bb", "score": "0.46471196", "text": "public int update(MessageReceivedDO messageReceived) throws DataAccessException {\n \tif (messageReceived == null) {\n \t\tthrow new IllegalArgumentException(\"Can't update by a null data object.\");\n \t}\n\n\n return getSqlMapClientTemplate().update(\"MS-MESSAGE-RECEIVED-UPDATE\", messageReceived);\n }", "title": "" }, { "docid": "c2b81b7bf04afa4d99690eda8565c3bb", "score": "0.4608496", "text": "private void setMessageToSent(String msg) {\n\t\tmsgToSend = \"\";\n\t\tmsgToSend = msg;\n\t\tSystem.out.println(\"mesage to send in the Message block\" + msg);\n\t\tsendMessage(msgToSend);\n\t}", "title": "" }, { "docid": "a74a9a04b08441631f70cf496e6bc139", "score": "0.45911545", "text": "public MenuCriteria setServerNameOrder(String serverNameOrder) {\n this.serverNameOrder = serverNameOrder;\n putSort(\"server_name\", serverNameOrder);\n return this;\n }", "title": "" }, { "docid": "31deec0559278520d6ce07d8ac871c2a", "score": "0.45892996", "text": "public String getReceiverName() {\r\n\t\treturn receiverName;\r\n\t}", "title": "" }, { "docid": "dec55cecefc94b8a6c8d82d2bb6ff94d", "score": "0.45844907", "text": "@Override\r\n\tpublic void setReceiverSiteName(String receiverSiteName)\r\n\t{\r\n\t\tthis.receiverSiteName = receiverSiteName;\r\n\t}", "title": "" }, { "docid": "bcb4d2389ac88b118ad86374c0a07b5a", "score": "0.4581727", "text": "public void setBName(String aName) {\n bName = aName;\n }", "title": "" }, { "docid": "e2da2b4bab545d50e50deafae867b088", "score": "0.4581399", "text": "public void setValueColumnName(String name) throws Exception;", "title": "" }, { "docid": "495ed514dbefe3a8bfed2b340af9903c", "score": "0.4571256", "text": "private void setName () {\n\t\t\tthis.name =name;\n\t\t}", "title": "" }, { "docid": "10f70d089565880b53a4bce26d1582b6", "score": "0.45643082", "text": "public void lookupName(MessageBroker msgBroker) {\n String rKey = Val.chkStr(this.getResourceKey());\n if (rKey.length() > 0) {\n String rVal = Val.chkStr(msgBroker.retrieveMessage(rKey));\n if (rVal.length() > 0) {\n boolean hadName = (Val.chkStr(this.getName()).length() > 0);\n if (!hadName || !rVal.startsWith(\"??\")) {\n this.setName(rVal);\n } \n }\n }\n }", "title": "" }, { "docid": "0407c545f349da0035938b0a1dee78f9", "score": "0.45412472", "text": "@Override\n\tpublic void receive(String message) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "e45cb94114568b5ba1df956c43032eff", "score": "0.45410085", "text": "public void setReceiverId(String receiverId) {\n this.receiverId = receiverId == null ? null : receiverId.trim();\n }", "title": "" }, { "docid": "ff06a0545c02a805d618933a0e440dbf", "score": "0.45378593", "text": "public void editOrderOlID(int orderId, String orderName)\n {\n try\n {\n Class.forName(driver);\n Connection conn = DriverManager.getConnection(url);\n Statement st = conn.createStatement();\n\n st.executeUpdate(\"UPDATE OrderLines SET orderID = \" + orderId\n + \" WHERE productName = '\" + orderName + \"'\");\n\n System.out.println(\"OrderID in OrderLines updated\");\n }\n\n catch (Exception ex)\n {\n System.out.println(\"OrderID in OrderLines not updated\");\n System.out.println(ex.getMessage());\n }\n\n }", "title": "" }, { "docid": "b5dd4f4483a48dcdc699ad0f210a17a6", "score": "0.4528949", "text": "public void setColumnName(String colname) {\n columnName = colname;\n }", "title": "" }, { "docid": "740b6b00512288202d813270387b6f58", "score": "0.45253897", "text": "public void setTeleName(String teleName) {\n this.teleName = teleName;\n }", "title": "" }, { "docid": "13bd0f0ec9be1bc82acfd6ff84a3f330", "score": "0.45248485", "text": "public void setReceiveAddressId(Integer receiveAddressId) {\n\t\tthis.receiveAddressId = receiveAddressId;\n\t}", "title": "" }, { "docid": "fae80660137934b1ae1e11c81ff8caf2", "score": "0.4524728", "text": "public void setReceiverSurname(String rSurname, String trackNum)\r\n {\r\n for(int i = 0; i < shipmentNumber; i++)\r\n {\r\n if(cargoShipments[i].trackingNumber == trackNum)\r\n {\r\n cargoShipments[i].receiverSurname = rSurname;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "4c94ac79545acb626650c6c4dafa8366", "score": "0.45078564", "text": "public void setNameColumn(String nameColumn) {\r\n this.nameColumn = nameColumn == null ? null : nameColumn.trim();\r\n }", "title": "" }, { "docid": "b121171c311153ebb8ce47c0c7dc5041", "score": "0.4504233", "text": "public void setReceivePhoneDetail(String receivePhoneDetail) {\r\n this.receivePhoneDetail = receivePhoneDetail == null ? null : receivePhoneDetail.trim();\r\n }", "title": "" }, { "docid": "259e2998019d7e30338bff9cfa191047", "score": "0.45012262", "text": "@Override\n public void setName(String value) {\n composerName = value;\n }", "title": "" }, { "docid": "1f933baa57a35179089497346bb76090", "score": "0.44989046", "text": "public void setAmountReceived(BigDecimal amountReceived) {\n this.amountReceived = amountReceived;\n }", "title": "" }, { "docid": "fb0defc5b0f4e032e5f748c477eef68c", "score": "0.44910803", "text": "public void setName(String name) {\n set(\"Name\", name);\n }", "title": "" }, { "docid": "3078a4353fd24d1587b22acc1543dd5a", "score": "0.44813025", "text": "public void setLastName(java.lang.String param){\n localLastNameTracker = true;\n \n this.localLastName=param;\n \n\n }", "title": "" }, { "docid": "60de9a2ac5f2246d81fcdd91654677a3", "score": "0.44614697", "text": "public void setName(String to) {\n\t\tthis.name=to;\n\t}", "title": "" }, { "docid": "d67b2039025732bed08e7c8ed75ed4aa", "score": "0.44571477", "text": "public void setName(String name) {\n\t\tif (name == null) {\n\t\t\tthrow new DomainException(\"Invalid table name!\");\n\t\t}\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "6325568a1681d67bc3e209fee0602f74", "score": "0.44562158", "text": "void setname(String nameIn){\n name=nameIn;\n }", "title": "" }, { "docid": "d8dc772238bdc9b109e82c556cb7b70d", "score": "0.44443035", "text": "public void setOMTSOrderID(String OMTSOrderID) throws FIFException {\n\t\tif ((OMTSOrderID == null) || (OMTSOrderID.trim().length() == 0)) {\n\t\t\tthrow new FIFException(\n\t\t\t\t\t\"Cannot set request list OMTSOrderID because the passed \"\n\t\t\t\t\t\t\t+ \"in name is null or empty\");\n\t\t}\n\t\tthis.OMTSOrderID = OMTSOrderID;\n\t}", "title": "" }, { "docid": "ecf921082bb88713868aacd0f74f2067", "score": "0.44417652", "text": "public String getReceivePhoneNameDetail() {\r\n return receivePhoneNameDetail;\r\n }", "title": "" }, { "docid": "a8068d83f36f99955d0a332bf413838f", "score": "0.44269782", "text": "public void set_name(String name) {this.name = name;}", "title": "" }, { "docid": "6a0755360ab41bf0f0232007277acf64", "score": "0.44156134", "text": "public void setPosOrderSender(String posOrderSender) {\n this.posOrderSender = posOrderSender == null ? null : posOrderSender.trim();\n }", "title": "" }, { "docid": "3378ff3f0e833c759eacbcf766d8fabc", "score": "0.44031048", "text": "public void setName(String name) {\r\n if (name == null || \"\".equals(name)) {\r\n this.mName = this.mJID;\r\n this.mName = StringUtils.parseName(this.mName);\r\n if (this.mName == null || \"\".equals(this.mName))\r\n this.mName = this.mJID;\r\n } else {\r\n this.mName = name;\r\n }\r\n }", "title": "" }, { "docid": "7a92bc8158cb54e10738f83cbf4bb490", "score": "0.43923718", "text": "public long insert(MessageReceivedDO messageReceived) throws DataAccessException {\n \tif (messageReceived == null) {\n \t\tthrow new IllegalArgumentException(\"Can't insert a null data object into db.\");\n \t}\n \t\n getSqlMapClientTemplate().insert(\"MS-MESSAGE-RECEIVED-INSERT\", messageReceived);\n\n return messageReceived.getReceivedId();\n }", "title": "" }, { "docid": "3780140a3a843cbfaa8bd25755cee382", "score": "0.43911418", "text": "@RequestMapping(value = \"/saveReceiveQty.htm\", method = RequestMethod.GET)\n\tpublic void saveReceiveQty(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\t// //System.out.println(\"inside Receive Save\");\n\t\tString index = request.getParameter(\"index\");\n\t\tString receiveQty = request.getParameter(\"recQty\");\n\t\tString packOm = request.getParameter(\"packOm\");\n\t\t// //System.out.println(\"request.getParameter(\\\"index\\\")\"+request.getParameter(\"index\"));\n\t\t// //System.out.println(\"request.getParameter(\\\"receiveQty\\\")\"+request.getParameter(\"recQty\"));\n\n\t\tif (order.getOrderType().equalsIgnoreCase(\"ZUB\")) {\n\t\t\tif (orderDetailBackup != null && orderDetailBackup.size() > 0) {\n\t\t\t\tif (receiveQty != null && receiveQty != \"\")\n\t\t\t\t\torderDetailBackup.get(Integer.parseInt(index) - 1)\n\t\t\t\t\t\t\t.setReceivedQty(receiveQty);\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (orderDetailBackup != null && orderDetailBackup.size() > 0) {\n\t\t\t\tif (receiveQty != null && receiveQty != \"\")\n\t\t\t\t\torderDetailBackup.get(Integer.parseInt(index) - 1)\n\t\t\t\t\t\t\t.setReceivedQty(receiveQty);\n\t\t\t\tif (packOm != null && packOm != \"\")\n\t\t\t\t\torderDetailBackup.get(Integer.parseInt(index) - 1).setOM(\n\t\t\t\t\t\t\tpackOm);\n\t\t\t\torderDetailBackup.get(Integer.parseInt(index) - 1).setSaveFlag(\n\t\t\t\t\t\t\"Y\");\n\n\t\t\t\t// String msg=\"Deleted\";\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "c30ea66c3b34a0e9f6f6339376f731ac", "score": "0.43892637", "text": "public void setSender(final String newSender) {\r\n\tthis.sender = new AgentName(newSender);\r\n}", "title": "" }, { "docid": "980ec3523129411bcc479e511b584898", "score": "0.43882665", "text": "void setItemName(String text) {\r\n\t\tspecifiedTradeProduct.getName().add(Text.create(text));\r\n\t\tsuper.setSpecifiedTradeProduct(specifiedTradeProduct);\r\n\t}", "title": "" }, { "docid": "f5b81a87413a2782080846646d931da3", "score": "0.43870413", "text": "public void onNameReceived(String name){\n\t\tsymbol=game.addPlayerAndGetSymbol(name);\n\t\tsendSymbolAndGameState(symbol);\n\t}", "title": "" }, { "docid": "294f0a05686055e6625bf3101eb52f95", "score": "0.43745154", "text": "public Builder setReceiver(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n receiver_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e2e04ca0dbc5660b912e21155283dc9e", "score": "0.4371214", "text": "@Override\r\npublic void setReceiver(final dima.basicagentcomponents.AgentIdentifier newReceiver) {\r\n\tthis.receiver = newReceiver;\r\n}", "title": "" }, { "docid": "5d01cf0578522c92b2e67f99cb2aaa3b", "score": "0.43679124", "text": "public void setDateSent(String dateSent)\r\n\t{\r\n\t\tthis.dateSent = new SimpleStringProperty(dateSent);\r\n\t}", "title": "" }, { "docid": "c2e811747e8a3e80fff332a1aaf2b713", "score": "0.436233", "text": "protected void setName(String name){\r\n\t\tthis.name=name;\r\n\t}", "title": "" }, { "docid": "93462bf309f25f614d673ca314f718e0", "score": "0.43606734", "text": "public void setPlayerTwoName(String inName){\n\t\tplayerTwo = inName;\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "title": "" }, { "docid": "5ee30eafe46db64631c9831b4c9f63cf", "score": "0.43574214", "text": "public void setName(java.lang.String name) {\n this.name = name;\n this.addProperty(\"name\",name);\n }", "title": "" }, { "docid": "7affaeca590100dab20bea0514b47701", "score": "0.43490988", "text": "public void setName(String mName) {\r\n\t\t name = mName;\r\n\t }", "title": "" }, { "docid": "7281707dedb4d421a8b02e65f12f8836", "score": "0.43484378", "text": "public void setName(String name) {\n\t\tString old = this.name;\n\t\tthis.name=name;\n\t\tfirePropertyChange(\"name\",old,name);\n\t}", "title": "" }, { "docid": "2824cc72ad60a695544328790639be63", "score": "0.43480283", "text": "public void xsetPeerAgentName(org.apache.xmlbeans.XmlString peerAgentName)\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(PEERAGENTNAME$48);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(PEERAGENTNAME$48);\n }\n target.set(peerAgentName);\n }\n }", "title": "" }, { "docid": "35a44f6112fd2d78b230e56d93f5b998", "score": "0.43476626", "text": "public void setName (String name){\n this.name = name;\n\n }", "title": "" }, { "docid": "398cb4be4a3d9021f6070b93de636428", "score": "0.43418637", "text": "public void setColumnName(String columnName) {\r\n this.columnName = columnName;\r\n }", "title": "" }, { "docid": "4f92163e5519bedb85f1753eb2075a7d", "score": "0.43387276", "text": "public void setUserName(String userName) {\n\t\tsuper.setMsgItem(\"dbuser\", userName);\n\t}", "title": "" }, { "docid": "bec82ce151461d1c99d02ae9273ee52b", "score": "0.43320164", "text": "@Override\n public void sendToPending(String name) {\n \n }", "title": "" }, { "docid": "abe9be8d5ab5896167c984e31cdf71a4", "score": "0.43316442", "text": "public void setIsReceive(Boolean isReceive) {\r\n this.isReceive = isReceive;\r\n }", "title": "" }, { "docid": "8c362ffc084087342a0fbe2c4b2045ad", "score": "0.43292242", "text": "public void setColumnName(ColumnName columnName) {\n this.columnName = columnName;\n }", "title": "" }, { "docid": "4ab762f823a9f98fdefbabe45b88984b", "score": "0.43230602", "text": "public Builder setReceivingAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n receivingAddress_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "81520ac8a823e62921c68a7363f6d313", "score": "0.43228516", "text": "public void setName(final String name) {\r\n\t\tthis.name=(name!=null)?name:\"\";\r\n\t}", "title": "" }, { "docid": "d8e2daeb7d0332f8d9619f49a3079ab6", "score": "0.4322067", "text": "void setName(String name)\n\t\t\t\t{\n\t\t\t\t\tthis.name = name;\n\t\t\t\t}", "title": "" }, { "docid": "e856d72e1b3ec04517c483e75acd5ed2", "score": "0.43122017", "text": "public void setName(java.lang.String name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$2);\n }\n target.setStringValue(name);\n }\n }", "title": "" }, { "docid": "c6e5366dd0d072d4012cce4fc03ac08d", "score": "0.4311312", "text": "public void setMinecartName(String par1Str)\n {\n this.entityName = par1Str;\n }", "title": "" }, { "docid": "8a4c3b8fb27ec319da545056171abd33", "score": "0.43104246", "text": "public void setMappedName(String mappedName) {\n this.mappedName = mappedName;\n }", "title": "" }, { "docid": "61acf8a7eae1e3d8ba4d2fe5deff5554", "score": "0.43057168", "text": "@Override\r\n\tpublic String setName(String name) {\n\t\treturn name;\r\n\t}", "title": "" }, { "docid": "422f3749f8cbeb656d6e39acc7ab9f9b", "score": "0.43056145", "text": "final public void setName(String name) {\n monNom = name;\n }", "title": "" }, { "docid": "aee83878446af378d70c9dc1d81f950a", "score": "0.4301665", "text": "private void setName(String name) {\n this.mName = name;\n }", "title": "" }, { "docid": "303ad207688cb11cfe83be85238aa59b", "score": "0.42973787", "text": "public void setCreated(java.lang.String created)\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(CREATED$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CREATED$12);\n }\n target.setStringValue(created);\n }\n }", "title": "" }, { "docid": "f9b6be8c8b84b5abc308a9d82512ad30", "score": "0.42965978", "text": "public void insert(String nomGroupe,Personne Receive) throws SQLException {\n\t\tString req = \"INSERT INTO GroupeChat VALUES(?,?,?,?)\";\n\t\tPreparedStatement ps = DBConfig.getInstance().getConn().prepareStatement(req);\n\t\tps.setString(1,nomGroupe);\n\t\tps.setString(2, Receive.getNomComptePers());\n\t\tps.setString(3,null);\n\t\tps.setString(4,null);\n\t\tps.executeUpdate();\n\t\t\n\t\t// si la conversation a deja commencé \n\t\tString reqSelect = \"SELECT Message,origine_Message FROM GroupeChat \"\n\t\t\t\t+ \"WHERE NomGroupe = ?\"; \n\t\tPreparedStatement psSelect = DBConfig.getInstance().getConn().prepareStatement(reqSelect);\n\t\tpsSelect.setString(1,nomGroupe);\n\t\tResultSet rs = psSelect.executeQuery();\n\t\trs.next();\n\t\t// on récupere le dernier message envoyé \n\t\tif (!rs.wasNull()) {\n\t\t\tString reqUpdate = \"UPDATE GroupeChat SET Message= ? ,origine_Message = ?\"\n\t\t\t\t\t+ \"WHERE NomGroupe = ? AND Pers_Receive = ? \";\n\t\t\tPreparedStatement psUpdate = DBConfig.getInstance().getConn().prepareStatement(reqUpdate);\n\t\t\tpsUpdate.setString(1,rs.getString(1));\n\t\t\tpsUpdate.setString(2,rs.getString(2));\n\t\t\tpsUpdate.setString(3,nomGroupe);\n\t\t\tpsUpdate.setString(4,Receive.getNomComptePers());\n\t\t\tpsUpdate.executeUpdate();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "ba5297085960f45b7cd34dd45a46d514", "score": "0.4294984", "text": "public void setReceiverid(String receiverid) {\n this.receiverid = receiverid == null ? null : receiverid.trim();\n }", "title": "" }, { "docid": "542c71795f81a87fe56381cf00ef49d5", "score": "0.4293177", "text": "public void setName(String name) {\n\t\tlistName = name;\n\t}", "title": "" }, { "docid": "3da6c1dc285e8773d05b57afc0964e6f", "score": "0.4291452", "text": "public void setName(String name) {\n\t\tsetAttribute(\"name\", name); \n\t}", "title": "" }, { "docid": "2337b28697e557bfeead0cbca5a2f5ec", "score": "0.42906263", "text": "public void setlName(String t){\n this.lName = t;\n }", "title": "" }, { "docid": "2e0f453faddde0d27ee0c23a0f2ba4b2", "score": "0.42880547", "text": "private void setOrder(Team team){\n order = team;\n }", "title": "" }, { "docid": "09c115ef18fe5e0a2da00941aaa86ef4", "score": "0.42857358", "text": "public ScGridColumn<AcSentInterchangeVo> newSentFileFileNameColumn()\n {\n return newSentFileFileNameColumn(\"Sent File File Name\");\n }", "title": "" }, { "docid": "ccbfe15626bcd9ae752bae71dfc2d536", "score": "0.4282978", "text": "public void setBillresname(String newBillresname) {\n\tbillresname = newBillresname;\n}", "title": "" }, { "docid": "750b2128accab2137dd6638c4d3515f9", "score": "0.42827168", "text": "public void setName(String name){\r\n\t\tthis.name=name;\r\n\t}", "title": "" }, { "docid": "0030459e9628ada3c43156045e38916a", "score": "0.42822465", "text": "public void setReceived(long value) {\n this.received = value;\n }", "title": "" }, { "docid": "1b0fccda52cd88ff626347bf9b69519c", "score": "0.428192", "text": "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$2);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "title": "" }, { "docid": "16532ae1ae7ee69198c8adb5b4f909c5", "score": "0.42806858", "text": "@Override\n public String addMemeber(String orderId, String username) {\n return null;\n }", "title": "" }, { "docid": "fd303a5b1ac1995b1837491259e6beff", "score": "0.4280195", "text": "public void setName(String name)\n {\n this.name = name;\n \n putProperty(KEY_NAME, this.name);\n \n setInitials(StringUtil.getInitials(name));\n }", "title": "" }, { "docid": "d15e31560db57ef21fca25314dcc4740", "score": "0.4275186", "text": "public void setOrderedCountryName(String val) {\n // ProtectBlock setOrderedCountryName\n // ProtectBlock End\n this.orderedCountryName = val;\n }", "title": "" }, { "docid": "475b2a7900f927c6ce96fadf415478e9", "score": "0.42734355", "text": "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$6);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "title": "" }, { "docid": "c34934605441eed4a746e7ef76236520", "score": "0.42698866", "text": "public void setName(String name)\n\t{\n\t\t this.name=name;\n\n\t\t this.keyModified.put(\"name\", 1);\n\n\t}", "title": "" }, { "docid": "c34934605441eed4a746e7ef76236520", "score": "0.42698866", "text": "public void setName(String name)\n\t{\n\t\t this.name=name;\n\n\t\t this.keyModified.put(\"name\", 1);\n\n\t}", "title": "" }, { "docid": "f16699f20470d9d9e47f1112c51b403a", "score": "0.42681083", "text": "public void setSendDate(Date sendDate) {\n this.sendDate = sendDate;\n }", "title": "" }, { "docid": "394912b76bec99bf5fafdf2291649aa7", "score": "0.42665333", "text": "public void handleREBIND(Message receiveMessage) {\n\t\tString name=receiveMessage.getObjectID();\n\t\tObject ob =receiveMessage.getReturnVal();\n\t\tString ans=\"\";\n\t\tMessage mes=null;\n\t\t//generate ror\n\t\tRemoteObjectReference ror= new RemoteObjectReference(Server.reg.ipaddr,Server.reg.port,ob.getClass().getName(),name);\n\t\t// if service exist we rebind\n\t\tif(Server.reg.mp.containsKey(name)){\n\t\t\tans=\"rebind successfully!\";\n\t\t\tmes = new Message(ans,msgType.REBINDOK);\n\t\t}\n\t\t// if not we should bind the service\n\t\telse{\n\t\t\tans=\"service not exist, bind this service!\";\n\t\t\tmes = new Message(ans,msgType.REBINDINFO);\n\t\t}\n\t\t// both cases we are doing the same way\n\t\tServer.reg.realmp.put(name,ob);\n\t\tServer.reg.mp.put(name,ror);\n\t\ttry {\n\t\t\tsend(mes);\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "title": "" }, { "docid": "83f72a394b10636db758ffee9a9d44e9", "score": "0.4264527", "text": "@PropertyListener\r\n @Override\r\n public void setName(String name) {\r\n this.name = name;\r\n }", "title": "" } ]
f6cbdd397152d89dbe533fc6e0497783
Gibt den Items ein Bild, ein Titel und eine ChannelID
[ { "docid": "dccb158f1d5e7f29d31949523c769cb8", "score": "0.0", "text": "private ArrayList<ImageItem> getData() {\n final ArrayList<ImageItem> imageItems = new ArrayList<>();\n TypedArray imgs = getResources().obtainTypedArray(R.array.image_ids);\n for (int i = 0; i < imgs.length(); i++) {\n Bitmap bitmap = BitmapFactory.decodeResource(getResources(), imgs.getResourceId(i, -1));\n imageItems.add(new ImageItem(bitmap,namesofrappers[i],idsofrappers[i]));\n }\n return imageItems;\n }", "title": "" } ]
[ { "docid": "825d902921c226ea8fda9f608bc10a37", "score": "0.599969", "text": "@Override\n public int getItemCount() {\n return channelList.size();\n }", "title": "" }, { "docid": "94f1407efed0fccf99d7f7c04165ba08", "score": "0.59892845", "text": "public int getItemID() { return itemID; }", "title": "" }, { "docid": "58610af1c1a1ba67c708a3319fb608d6", "score": "0.57745385", "text": "@Override\r\n public void getSubItems( int iItemID, CreativeTabs creativeTabs, List list )\r\n {\r\n \tfor ( int iColor = 0; iColor < 16; iColor++ )\r\n \t{\r\n \t\tlist.add( new ItemStack( iItemID, 1, iColor ) );\r\n \t}\r\n }", "title": "" }, { "docid": "0d0fd71a5a853e3055a5b2ece8688455", "score": "0.56436634", "text": "public void getItems() {\n\t\t\n\t}", "title": "" }, { "docid": "f1b1ca33cf5886446a0464d3ae8e8d69", "score": "0.5548896", "text": "public void fillItemList() {\n\n\t\t/* Add non-consumables / equipables */\n\t\taddItemToList(new Item(Item.HAND, \"Apply papers\", \"Welcome at Saxion.\",\n\t\t\t\t5, 5, 5, false, 10));\n\t\t/* Add consumables */\n\t\taddItemToList(new Item(Item.FOOD, \"Koffie\",\n\t\t\t\t\"Take a sip and feel renewed!\", 2, 20, 2, true, 50));\n\t\taddItemToList(new Item(Item.FOOD, \"Chocolade\",\n\t\t\t\t\"Keep it away from my apple\", -30, 20, 2, true, 10));\n\t}", "title": "" }, { "docid": "8b073dabef922da01ea155528ef3f30a", "score": "0.5527491", "text": "@Override \r\n public Object getItem(int arg0) {\n return items.get(arg0); \r\n }", "title": "" }, { "docid": "d5e30810b1c49bf7e9bdd3871a95a99f", "score": "0.55259264", "text": "private void addItem(CayenneItem item) throws CayenneException {\n int channel = item.getChannel();\r\n if (channels.contains(channel)) {\r\n throw new CayenneException(\"Channel id \" + channel + \" need to be unique!\");\r\n }\r\n // add the item\r\n channels.add(channel);\r\n message.add(item);\r\n }", "title": "" }, { "docid": "5696c49cd5ffcb0521079aa84881a9da", "score": "0.55153584", "text": "public void getAllItems()\r\n\t{\r\n\t\tfor (int i = 0; i < items.size(); i++)\r\n\t\t{\r\n\t\t\tint itemNo = i + 1;\r\n\t\t\tSystem.out.println(itemNo + \": \" + items.get(i));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f6cde7a65812d9551e71eb79bf5f229d", "score": "0.55119836", "text": "public String getItemID(){\n return itemID;\n }", "title": "" }, { "docid": "a1a63c8c2d826b2a5828960bd489c6dc", "score": "0.54886395", "text": "protected BeanItem<Transporte> getItemBIC() throws Exception {\n\n\t\tif (itemBI == null) {\n\t\t\titemBI = new BeanItem<Transporte>(new Transporte());\n\t\t}\n\t\treturn itemBI;\n\t}", "title": "" }, { "docid": "e1731d225f13e251d550b53b176786d3", "score": "0.5486802", "text": "@Override\n\tprotected Set<Integer> getItemIds() {\n\t\tBayesRuleKB brKb = (BayesRuleKB)kb;\n\t\treturn brKb.itemIds;\n\t}", "title": "" }, { "docid": "a0c5c5783f947e57355de0800e30d22f", "score": "0.5480232", "text": "private YTunerVideoItem getDetailsChannelID(int channel_id){\n\t\t \n\t\t Iterator it = channelListing.categories.iterator();\t\t\t\t\t\t\t\t\t\t\n\t\t\twhile (it.hasNext()) {\t\t\t\t\t\t\t\t\n\t\t\t\tYTunerListingObject.Category arrCatDetails = (YTunerListingObject.Category) it.next();\n\t\t\t\tArrayList<YTunerListingObject.Channel> arrChannels = (ArrayList) arrCatDetails.channels;\n\t\t\t\t//int category_id = arrCatDetails.get(\"channels\")category_id\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tIterator it2 = arrChannels.iterator();\n\t\t\t\twhile (it2.hasNext()) {\n\t\t\t\t\tYTunerListingObject.Channel arrChannDetails = (YTunerListingObject.Channel) it2.next();\n\t\t\t\t\tif(arrChannDetails.channel_id == Integer.valueOf(channel_id)){\n\t\t\t\t\t\t\n\t\t\t\t\t\t return new YTunerVideoItem(\"\"\n\t\t\t\t\t\t \t\t,arrCatDetails.category_id\n\t\t\t\t\t\t \t\t,arrCatDetails.category_name\n\t\t\t\t\t\t \t\t,arrCatDetails.category_number\t\t\t\t\t\t\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t,arrChannDetails.channel_id\n\t\t\t\t\t\t \t\t,arrChannDetails.channel_name.toString()\n\t\t\t\t\t\t \t\t,arrChannDetails.channel_number.toString()\n\t\t\t\t\t\t \t\t,arrChannDetails.channel_subnumber\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\t,\"\"\n\t\t\t\t\t\t\t\t\t,new ArrayList()\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\t\n\t\t \n\t\t return null;\n\t }", "title": "" }, { "docid": "373e8742657f45cffe66006e6bbb3320", "score": "0.5445279", "text": "public List<Item> getItem() { return item; }", "title": "" }, { "docid": "1bcf99b50f1e54a70fb921597fdf554c", "score": "0.5429664", "text": "public MsgAdapter(List<Items_list> items, Context context) {\n this.items = items;\n this.context = context;\n }", "title": "" }, { "docid": "5cea956e99b5dda33c5fb78b3618be0b", "score": "0.54150313", "text": "public void updateItems() {\n int i;\n if (this.mItems != null) {\n if ((this.mAccessPoints == null || this.mAccessPoints.length <= 0) && WifiTile.this.mSignalCallback.mInfo.enabled) {\n WifiTile.this.fireScanStateChanged(true);\n } else {\n WifiTile.this.fireScanStateChanged(false);\n }\n if (WifiTile.this.mSignalCallback.mInfo.enabled) {\n QSDetailItems.Item[] items = null;\n if (this.mAccessPoints == null || this.mAccessPoints.length <= 0) {\n this.mItems.setEmptyState(R.drawable.ic_qs_wifi_detail_empty, R.string.quick_settings_wifi_detail_empty_text);\n } else {\n items = new QSDetailItems.Item[this.mAccessPoints.length];\n for (int i2 = 0; i2 < this.mAccessPoints.length; i2++) {\n AccessPoint ap = this.mAccessPoints[i2];\n QSDetailItems.Item item = new QSDetailItems.Item();\n item.tag = ap;\n item.icon = WifiTile.this.mWifiController.getIcon(ap);\n item.line1 = ap.getSsid();\n item.line2 = ap.isActive() ? ap.getSummary() : null;\n if (ap.getSecurity() != 0) {\n i = R.drawable.ic_qs_wifi_lock;\n } else {\n i = -1;\n }\n item.icon2 = i;\n items[i2] = item;\n }\n }\n this.mItems.setItems(items);\n } else {\n this.mItems.setEmptyState(R.drawable.ic_qs_wifi_detail_empty, R.string.wifi_is_off);\n this.mItems.setItems(null);\n }\n }\n }", "title": "" }, { "docid": "ce6287809791412b31b55a64e86f87ec", "score": "0.5408049", "text": "@Override\n public Object getItem(int i) { return listItem.get(i); }", "title": "" }, { "docid": "9b70eb2bc276ce205cea4c2f69c236ac", "score": "0.53922015", "text": "@SideOnly(Side.CLIENT)\n @Override\n public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> subItems)\n {\n for (EnumBottleContents contents : EnumBottleContents.values()) {\n int contentBits = contents.getMetadata();\n int fullnessBits = EnumBottleFullness.FULL.getMetadata();\n int metadata = contentBits | (fullnessBits << 2);\n ItemStack subItemStack = new ItemStack(this, 1, metadata);\n subItems.add(subItemStack);\n }\n }", "title": "" }, { "docid": "aa25c5e57396edadac65ef5d9309a71f", "score": "0.5388146", "text": "public AdaptyHolder(List<Item> nItem) {\r\n this.nItem = nItem;\r\n }", "title": "" }, { "docid": "a133d90119e3196b350406d877e180e6", "score": "0.5387214", "text": "@Override\n public CategoryBO getItem(int position) {\n return data.get(position);\n }", "title": "" }, { "docid": "e3e2d358897847803ef6a363e7ffa579", "score": "0.5380671", "text": "@Override\n public Item getItemDropped(int var1, Random var2, int var3)\n {\n return null;//Item.getItemFromBlock(FABlockRegistry.feederActive);\n }", "title": "" }, { "docid": "71c3cf794e1d3511f69d88ebb7340dc2", "score": "0.5376772", "text": "public ArrayList<Items> getItemList(){\n ArrayList<Items> itemList = new ArrayList<Items>();\n Connection conToDatabase = getConnection();\n String sqlQuery = \"SELECT * FROM items\";\n \n Statement statementToDisplay;\n ResultSet resultDisplay;\n \n try {\n \n statementToDisplay = conToDatabase.createStatement();\n resultDisplay = statementToDisplay.executeQuery(sqlQuery);\n Items item;\n while(resultDisplay.next()){\n item = new Items(resultDisplay.getInt(\"id\"),resultDisplay.getString(\"name\"),Float.parseFloat(resultDisplay.getString(\"prices\")),resultDisplay.getString(\"shop_name\"),resultDisplay.getString(\"shop_address\"),resultDisplay.getString(\"added_date\"),resultDisplay.getBytes(\"image\"));\n itemList.add(item);\n } \n } catch (SQLException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n } \n return itemList; \n }", "title": "" }, { "docid": "07de1593f43a9de758e8fd1ee67432ff", "score": "0.5367091", "text": "public String getListItemByChannelTypeId() {\n List<CommItemsCounterBean> lstItemFees = new ArrayList<CommItemsCounterBean>();\n HttpServletRequest req = getRequest();\n String schannelTypeId = (String) req.getSession().getAttribute(\"channelTypeId\");\n Long channelTypeId = null;\n try {\n if ((schannelTypeId != null) && (!schannelTypeId.equals(\"\"))) {\n channelTypeId = Long.parseLong(schannelTypeId);\n } else {\n channelTypeId = collectFeesForm.getChannelTypeId();\n }\n //get list item ung voi channelType\n\n lstItemFees = getListItem();\n\n req.getSession().removeAttribute(\"lstItemFees\");\n req.getSession().setAttribute(\"lstItemFees\", lstItemFees);\n\n return \"listItemFees\";\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n req.getSession().removeAttribute(\"lstChannelFees\");\n req.getSession().removeAttribute(\"channelTypeId\");\n req.getSession().setAttribute(\"channelTypeId\", channelTypeId);\n\n return null;\n }", "title": "" }, { "docid": "b3f5460cea9b0d38aeca9860381a3869", "score": "0.53596437", "text": "@Override\n public void onBindViewHolder(@NonNull ViewHolder viewHolder, int i) {\n // get the item index\n Item item = items.get(i);\n // set item name into name Text view\n viewHolder.text_name.setText(item.getItem_name());\n // set one of the three item information and fill into Text view\n switch (item.getItem_flag()){\n case num:\n viewHolder.text_num.setText(item.getItem_num());\n break;\n case tab:\n viewHolder.text_num.setText(item.getItem_tab());\n break;\n case time:\n viewHolder.text_num.setText(item.getItem_time());\n break;\n }\n // it will generate a sidebar, a picture, on the left of item layout\n // there are totally two colors and will be changed one by one\n // Glide is used to load the picture in a quicker way\n if(i%2!=0){\n Glide.with(context).load(R.mipmap.list_icon_background1).into(viewHolder.imageView);\n }\n else\n Glide.with(context).load(R.mipmap.list_icon_background).into(viewHolder.imageView);\n }", "title": "" }, { "docid": "0af9556463e8a97f9e029269b51a2e9a", "score": "0.5348571", "text": "public String getItem_id()\r\n\t{\r\n\t\treturn item_id;\r\n\t}", "title": "" }, { "docid": "10343cc61aa39451bfdcdffe9fd6c3e1", "score": "0.5345605", "text": "@Override\n public void handlePublishedItems(ItemPublishEvent<Item> items) {\n\n }", "title": "" }, { "docid": "1bc69e8a68916694fb356b15699e119d", "score": "0.53451866", "text": "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n final Channel channel = channelList.get(position);\n// holder.mTextView.setText(mDataset[position]);\n holder.textView.setText(channel.getChannelInfo().getTitle() + StringUtils.LINE_SEPARATOR + channel.getChannelInfo().getShortDescription());\n ImageLoader imageLoader = ImageLoader.getInstance();\n\n ImageBundle imageBundle = channel.getImageBundle();\n String url = null;\n if(!imageBundle.getImageItunes().e()){\n url = imageBundle.getImageItunes().d().getHref();\n\n }else if(!imageBundle.getImageRss().e()){\n url = imageBundle.getImageRss().d().getUrl();\n }\n if(StringUtils.hasLength(url)) {\n imageLoader.displayImage(url, holder.imageView);\n }\n\n holder.itemView.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n presenter.onChannelSelected(channel);\n }\n });\n }", "title": "" }, { "docid": "6a7ead640763b2c6ed63a256448eb8f1", "score": "0.53406215", "text": "public String getItemID() {\n return itemID;\n }", "title": "" }, { "docid": "dec1a2c250bd7ddf76958597b94b13c7", "score": "0.533155", "text": "@Override\n /**\n * Método en el cual se asignan los datos de la lista a los views del holder\n */\n public void onBindViewHolder(Plato_ViewHolder holder, int i) {\n holder.nombre.setText(items.get(i).getNombre());\n holder.cantidad.setText(String.valueOf(items.get(i).getCantidad()));\n\n\n }", "title": "" }, { "docid": "1838a45ec08de23ee52dcf6c22e5d303", "score": "0.5323148", "text": "public void sendInterItems() {\n\t\tplayer.getPackets().sendItems(665, items);\n\t\tdouble random = Utils.getRandomDouble(100);\n\t\tif (random < 1.0) {\n\t\t\tsuperRare = new int[] { 0 };\n\t\t\tprizeId = (int) superRare[(int) (Math.random() * superRare.length)];\n\t\t\t// super rare\n\t\t} else if (random < 5.0) {\n\t\t\trares = new int[] { 4, 8 };\n\t\t\tprizeId = (int) rares[(int) (Math.random() * rares.length)];\n\t\t\t// rare\n\t\t} else if (random < 35.0) {\n\t\t\t// uncommon\n\t\t\tuncommon = new int[] { 2, 6, 9, 11 };\n\t\t\tprizeId = (int) uncommon[(int) (Math.random() * uncommon.length)];\n\t\t} else {\n\t\t\t// common\n\t\t\tcommon = new int[] { 1, 3, 5, 7, 10, 12 };\n\t\t\tprizeId = (int) common[(int) (Math.random() * common.length)];\n\t\t}\n\t}", "title": "" }, { "docid": "9d10fcf5a69fe6f790857d5a4cd19ea5", "score": "0.53215283", "text": "public void downloadChannels() {\n\n /*\n channelDataSet = new ArrayList<Channel>();\n List<String> temp = BackendAPI.getInstance().getChans();\n\n for (String k : temp) {\n\n Channel c = new Channel(k, \"\");\n channelDataSet.add(c);\n }\n */\n channelDataSet = BackendAPI.getInstance().channelObjects;\n\n }", "title": "" }, { "docid": "8fb32b6ba08807a55aec83dbf57607d0", "score": "0.53120637", "text": "@Override\n\t\t\t\t\t\tpublic void onItemLoaded(Connector c,\n\t\t\t\t\t\t\t\tcom.libraryclient.content.Item i) {\n\t\t\t\t\t\t}", "title": "" }, { "docid": "4b0d41dda927d81852b3eb9c78d88553", "score": "0.5304607", "text": "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\t\tbundle.putInt(\"cid\", Integer.parseInt(listItems.get(x).get(\"cid\").toString()));\r\n\t\t\t\t\tbundle.putInt(\"scid\", Integer.parseInt(listDesc.get(arg2).get(\"scid\").toString()));\r\n\t\t\t\t\tbundle.putString(\"scname\", listDesc.get(arg2).get(\"name\").toString());\r\n\t\t\t\t\tonFragmentDo(TYPE_TO_BOOK_CATEGORY_LIST, bundle);\r\n\t\t\t\t}", "title": "" }, { "docid": "53fc74b223424897abba4da2beabb068", "score": "0.5303324", "text": "public void whatItems()\r\n\t{\r\n\t\tfor (int i = 0; i < items.size(); i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"There is a \" + items.get(i).getName() + \" here\" + items.get(i).getStats());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ee273da2c80b1bea7a731be72ce5924d", "score": "0.5299227", "text": "public static void registerItems()\n\t{\n Registry.register(Registry.ITEM, new Identifier(Bumblezone.MODID, \"porous_honeycomb_block\"), new BlockItem(POROUS_HONEYCOMB, new Item.Settings().group(BZ_ITEM_GROUP)));\n Registry.register(Registry.ITEM, new Identifier(Bumblezone.MODID, \"filled_porous_honeycomb_block\"), new BlockItem(FILLED_POROUS_HONEYCOMB, new Item.Settings().group(BZ_ITEM_GROUP)));\n\t}", "title": "" }, { "docid": "99d4870ef8805318a09b78fdf2611bc6", "score": "0.5276422", "text": "public String getItem_id() {\n return item_id;\n }", "title": "" }, { "docid": "cba65819175fd1c9d6821f710405082d", "score": "0.5273822", "text": "void pasarAProductListData(CategoriaItem item);", "title": "" }, { "docid": "dae5e20b6a6da1e220a4615bbefb039e", "score": "0.52696353", "text": "@Override\n public Object getItem(int arg0) {\n return mItemList.get(arg0);\n }", "title": "" }, { "docid": "ff38dbe407dec4268a4b1b1b4471b997", "score": "0.5268854", "text": "@Override\n\t\t\tpublic void checkReceiveItem(List<Itembean> items) {\n\n\t\t\t}", "title": "" }, { "docid": "e87fb263f93454f9c826d0303f34b921", "score": "0.5264416", "text": "@Override\n @SuppressWarnings(\"unchecked\")\n public List<I> getItemIds() {\n return (List<I>)super.getItemIds();\n }", "title": "" }, { "docid": "ae2174d50af5bd25519b13c0de5e0f37", "score": "0.52618283", "text": "protected int getDropItemId() {\n\t\treturn Item.blazeRod.itemID;\n\t}", "title": "" }, { "docid": "300145867f30a8b951b6349a3ac55837", "score": "0.5260587", "text": "@Override\r\n \tprotected int getDropItemId()\r\n \t{\r\n \t\treturn Block.cloth.blockID;\r\n \t}", "title": "" }, { "docid": "e36122e50fb10e03fc17ded3bc316c94", "score": "0.52576023", "text": "public ItemAdapter(List<Item> pitems){\n this.items = pitems;\n }", "title": "" }, { "docid": "b5487e4c8bffeb43b2a5258acb55c730", "score": "0.52573603", "text": "public Integer getItem_id() {\n return item_id;\n }", "title": "" }, { "docid": "bd7cc26bfa239ddcb877f96ad43bdc75", "score": "0.52563566", "text": "private List<Items> readItems(Long id) {\n\t\tList<Items> items = new ArrayList<>();\n\t\tList<Long> itemsID = new ArrayList<>();\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(\"SELECT * FROM ordersI WHERE OrderI_ID = \" + id);) {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\titemsID.add(resultSet.getLong(\"Item_key\"));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\tfor (Long i : itemsID) {\n\t\t\titems.add(this.itemsDao.read(i));\n\n\t\t}\n\t\treturn items;\n\t}", "title": "" }, { "docid": "efcdef7f9fa76c00aff6a4515508ddc7", "score": "0.52556735", "text": "public java.lang.String getItemID() {\r\n return itemID;\r\n }", "title": "" }, { "docid": "77584296c9e3a28670b8f8c93f59436c", "score": "0.5255419", "text": "@Override\n public void onBindViewHolder(@NonNull BoutiqueViewHolder boutiqueViewHolder, int position) {\n DisplayItems boutiqueStockView=inventory.get(position);\n\n\n boutiqueViewHolder.name.setText(boutiqueStockView.getItemName());\n boutiqueViewHolder.color.setText(boutiqueStockView.getColorNo());\n boutiqueViewHolder.quantity.setText(boutiqueStockView.getQuantity());\n boutiqueViewHolder.price.setText(boutiqueStockView.getPrice());\n\n }", "title": "" }, { "docid": "0adcb9a85ec2bd6d827844cc278b5d0c", "score": "0.5251021", "text": "protected BeanItem<ComprobanteFondoModeloItem> getItemBIC() throws Exception {\n\n\t\tif (itemBI == null) {\n\t\t\titemBI = new BeanItem<ComprobanteFondoModeloItem>(new ComprobanteFondoModeloItem());\n\t\t}\n\t\treturn itemBI;\n\t}", "title": "" }, { "docid": "2ce5bc6f27f97847d56e9abe25c54d48", "score": "0.52429754", "text": "public int getId(){\n return Item_Id;\n }", "title": "" }, { "docid": "fe412d0d154977f10f48feecf5efea53", "score": "0.5242416", "text": "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn msgDataList.get(arg0);\n\t}", "title": "" }, { "docid": "b6454525ff50d1b5d99dd2782b3a90b1", "score": "0.5242249", "text": "@java.lang.Override\n public POGOProtos.Rpc.ItemProto getItems(int index) {\n return items_.get(index);\n }", "title": "" }, { "docid": "5128623606e298392445fd137dd357f6", "score": "0.52421504", "text": "@Override\r\n\t@SideOnly(Side.CLIENT)\r\n\tpublic void getSubItems(Item itemIn, CreativeTabs tab, NonNullList<ItemStack> subItems)\r\n\t{\r\n\t\t\r\n\r\n\t\tif(this.block instanceof BlockStoneSlab) {\r\n\r\n\t\t\tfor(int i = 0; i < 10; i++)\r\n\t\t\t\tsubItems.add(new ItemStack(itemIn, 1, i));\r\n\t\t} else if(this.block instanceof BlockOldLog) {\r\n\r\n\t\t\tfor(int i = 12; i < 16; i++) {\r\n\t\t\t\tsubItems.add(new ItemStack(itemIn, 1, i));\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(this.block instanceof BlockNewLog) {\r\n\r\n\t\t\tfor(int i = 12; i < 14; i++) {\r\n\t\t\t\tsubItems.add(new ItemStack(itemIn, 1, i));\r\n\t\t\t}\r\n\t\t} else if(this.block instanceof BlockFarmland) {\r\n\t\t\tsubItems.add(new ItemStack(itemIn, 1, 0));\r\n\t\t\tsubItems.add(new ItemStack(itemIn, 1, 7));\r\n\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tthis.block.getSubBlocks(itemIn, tab, subItems);\r\n\r\n\t\t}\r\n\r\n\t\tif(this.block instanceof BlockStoneSlabNew) {\r\n\r\n\t\t\tsubItems.add(new ItemStack(itemIn, 1, 0));\r\n\t\t\tsubItems.add(new ItemStack(itemIn, 1, 8));\r\n\r\n\r\n\t\t}\r\n\t\tif(this.block instanceof BlockWoodSlab) {\r\n\r\n\t\t\tfor(int i = 0; i < 6; i++) {\r\n\t\t\t\tsubItems.add(new ItemStack(itemIn, 1, i));\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "c64fb81d258035ad8cff4536312b58dd", "score": "0.5241873", "text": "private int getItemIDforObj(Item item)\r\n {\r\n int lclItemID = 0;\r\n\r\n for (Item i : itemList) {\r\n if (i.equals(item)) {\r\n lclItemID = i.getItemID();\r\n break;\r\n }\r\n }\r\n return lclItemID;\r\n }", "title": "" }, { "docid": "ca7c5a86a0e61ba105d38da47a4801ef", "score": "0.5233573", "text": "public int getItemID() {\n\t\treturn itemID;\n\t}", "title": "" }, { "docid": "d9c35505ffcde14a76fe4cece919aaa2", "score": "0.5230901", "text": "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tToast.makeText(mContext, position + \"\", 0).show();\n\t\t\t\tmoreRecipes mr = tngou.get(position);\n\t\t\t\t// 0,count 1,description\n\t\t\t\t// 2,food 3,id\n\t\t\t\t// 4,img 5,keywords 6,name\n\t\t\t\tArrayList<String> li=new ArrayList<String>();\n\t\t\t\tli.add(mr.count);\n\t\t\t\tli.add(mr.description);\n\t\t\t\tli.add(mr.food);\n\t\t\t\tli.add(mr.id);\n\t\t\t\tli.add(mr.img);\n\t\t\t\tli.add(mr.keywords);\n\t\t\t\tli.add(mr.name);\n//\t\t\t\tintent.putStringArrayListExtra(\"ok\", li);\n//\t\t\t\tstartActivity(intent);\n\t\t\t\tMessage msg=new Message();\n\t\t\t\tmsg.what=1;\n\t\t\t\tmsg.obj=li;\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t}", "title": "" }, { "docid": "3635c5303a3cc183ce1dda7ae15dd6ff", "score": "0.5221706", "text": "@Override\n public int getItemId()\n {\n return itemId;\n }", "title": "" }, { "docid": "119cb8f861954dbd5d82aaddf7b8bbeb", "score": "0.5217177", "text": "@Override\n\t\tpublic Bid getItem(int position) {\n\t\t\treturn bidList.get(position);\n\t\t}", "title": "" }, { "docid": "1d4a978705e2b5428eee5e8a4630b5fe", "score": "0.5214987", "text": "@Override\n public Object getItem(int arg0) {\n return goodsBeanList.get(arg0);\n }", "title": "" }, { "docid": "d25181e59f0ec90fc8ef6f00e79a9a8f", "score": "0.521346", "text": "public void showItems()\r\n\t{\n\t\t\r\n\t\tif (itemCount > 0)\r\n\t\t{\r\n\t\t\tint count = 1;\r\n\t\t\tSystem.out.println(\"Here are the items you can pick up:\");\r\n\t\t\tfor (Item i1 : itemList)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(count + \": \" + i1.getName() + \" (size \" + i1.getSize() + \",value \" + i1.getValue() + \")\");\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"~~There are no items in the room.\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "1a930632e139cda67d10a86eda525b40", "score": "0.520603", "text": "public void onBindViewHolder(ChannelHolder channelHolder, int i) {\n C7573i.m23587b(channelHolder, \"holder\");\n ((C38343b) this.f99613a.get(i)).mo95741a(channelHolder.f99619a, this.f99615c);\n channelHolder.f99620b.setText(((C38343b) this.f99613a.get(i)).mo95740c());\n channelHolder.itemView.setOnClickListener(new C38376a(this, i));\n if (((C38343b) this.f99613a.get(i)).mo95748g()) {\n View view = channelHolder.itemView;\n C7573i.m23582a((Object) view, \"holder.itemView\");\n view.setAlpha(((C38343b) this.f99613a.get(i)).mo95747f());\n return;\n }\n View view2 = channelHolder.itemView;\n C7573i.m23582a((Object) view2, \"holder.itemView\");\n view2.setAlpha(1.0f);\n }", "title": "" }, { "docid": "1e01623cbac277bd38455059c63eb33c", "score": "0.5189096", "text": "private Item getItem(Item[] items, boolean toShowList) {\n if (toShowList) {\n System.out.println(buildItemsString(items));\n }\n\n Item tempItem = null;\n\n while (tempItem == null) {\n try {\n System.out.println(\"Put in command number, please\");\n int commandNumber = scanner.nextInt();\n tempItem = items[commandNumber];\n\n logger.info(String.format(\"Selected command is %s\", tempItem.getName()));\n } catch (Exception e) {\n System.out.println(ERROR_MESSAGE);\n scanner = new Scanner(System.in);\n }\n }\n return tempItem;\n }", "title": "" }, { "docid": "40976471862d04f8e6596ca3077656d9", "score": "0.51885986", "text": "private void Items() throws DatatypeConfigurationException {\n\t\tSet<ItemReader> set = monitor.getItems(null, 0, 3000);\n\n\t\t// For each Item print related data\n\t\tfor (ItemReader item : set) {\n\n\t\t\tif (item instanceof BookReader) {\n\t\t\t\tBookReader book = (BookReader) item;\n\t\t\t\tMyBookType b = new MyBookType();\n\t\t\t\tb.setPublisher(book.getPublisher());\n\t\t\t\tGregorianCalendar gc = new GregorianCalendar();\n\t\t\t\tgc.set(GregorianCalendar.YEAR, book.getYear());\n\t\t\t\tb.setYear(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\tb.setISBN(book.getISBN());\n\t\t\t\tb.setTitle(item.getTitle());\n\n\t\t\t\tif (item.getSubtitle() != null)\n\t\t\t\t\tb.setSubtitle(item.getSubtitle());\n\t\t\t\tfor (String a : item.getAuthors())\n\t\t\t\t\tb.getAuthor().add(a);\n\n\t\t\t\tb.setId(myHash(item.getTitle(), book.getYear()));\n\n\t\t\t\tSet<ItemReader> citingItems = item.getCitingItems();\n\t\t\t\tList<String> cit = new ArrayList<>();\n\t\t\t\tfor (ItemReader citing : citingItems) {\n\t\t\t\t\tcit.add(citing.getTitle());\n\t\t\t\t\tInteger id = 0;\n\n\t\t\t\t\tif (citing instanceof ArticleReader) {\n\n\t\t\t\t\t\tid = myHash(((ArticleReader) citing).getJournal().getTitle(),\n\t\t\t\t\t\t\t\t((ArticleReader) citing).getIssue().getYear());\n\n\t\t\t\t\t} else if (citing instanceof BookReader) {\n\n\t\t\t\t\t\tid = myHash(citing.getTitle(), ((BookReader) citing).getYear());\n\n\t\t\t\t\t}\n\n\t\t\t\t\tb.getCitedBy().add(id);\n\t\t\t\t}\n\t\t\t\tif (!Citation.containsKey(item.getTitle())) {\n\t\t\t\t\tCitation.put(item.getTitle(), cit);\n\t\t\t\t}\n\n\t\t\t\tbiblio.getBook().add(b);\n\n\t\t\t}\n\t\t\tif (item instanceof ArticleReader) {\n\t\t\t\tArticleReader article = (ArticleReader) item;\n\t\t\t\tMyArticleType a = new MyArticleType();\n\t\t\t\ta.setJournal(article.getJournal().getISSN());\n\t\t\t\ta.setIssue(myIssueHash(article.getIssue().getNumber(), article.getIssue().getYear()));\n\t\t\t\ta.setTitle(item.getTitle());\n\n\t\t\t\tif (item.getSubtitle() != null)\n\t\t\t\t\ta.setSubtitle(item.getSubtitle());\n\t\t\t\tfor (String au : item.getAuthors()) {\n\t\t\t\t\ta.getAuthor().add(au);\n\t\t\t\t}\n\n\t\t\t\ta.setId(myHash(article.getJournal().getTitle(), article.getIssue().getYear()));\n\t\t\t\t\n\t\t\t\tif(Issues.containsKey(myIssueHash(article.getIssue().getNumber(), article.getIssue().getYear()))) //ISSUE\n\t\t\t\t{\n\t\t\t\t\tIssues.get(myIssueHash(article.getIssue().getNumber(), article.getIssue().getYear())).add(a.getId());\n\t\t\t\t} else {\n\t\t\t\t\tSet<Integer> l = new HashSet<Integer>();\n\t\t\t\t\tl.add(a.getId());\n\t\t\t\t\tIssues.put(myIssueHash(article.getIssue().getNumber(), article.getIssue().getYear()), l);\n\t\t\t\t}\n\n\t\t\t\tSet<ItemReader> citingItems = item.getCitingItems();\n\t\t\t\tList<String> cit = new ArrayList<>();\n\t\t\t\tfor (ItemReader citing : citingItems) {\n\t\t\t\t\tcit.add(citing.getTitle());\n\n\t\t\t\t\tInteger id = 0;\n\n\t\t\t\t\tif (citing instanceof ArticleReader) {\n\n\t\t\t\t\t\tid = myHash(((ArticleReader) citing).getJournal().getTitle(),\n\t\t\t\t\t\t\t\t((ArticleReader) citing).getIssue().getYear());\n\n\t\t\t\t\t} else if (citing instanceof BookReader) {\n\n\t\t\t\t\t\tid = myHash(citing.getTitle(), ((BookReader) citing).getYear());\n\n\t\t\t\t\t}\n\n\t\t\t\t\ta.getCitedBy().add(id);\n\t\t\t\t}\n\t\t\t\tif (!Citation.containsKey(item.getTitle())) {\n\t\t\t\t\tCitation.put(item.getTitle(), cit);\n\t\t\t\t}\n\n\t\t\t\tbiblio.getArticle().add(a);\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ddf42b1891080ba45eda7c431dccfc50", "score": "0.5184404", "text": "@Override\n public List<Item> items() {\n return items;\n }", "title": "" }, { "docid": "cc9fccc62fd55e381cc5ab301649270e", "score": "0.5183006", "text": "void bindData(final ListElement item){\n iconImage.setImageResource(item.getImagen());\n titulo.setText(item.getTitulo());\n kcal.setText(item.getKcal());\n }", "title": "" }, { "docid": "91f4bde920bd65d65d0d3478fce4224a", "score": "0.51817346", "text": "public final int getItemID() {\n\t\treturn itemID;\n\t}", "title": "" }, { "docid": "5f828676100cbedc92f58e1b38ae5be5", "score": "0.51789105", "text": "protected int getDropItemId()\n {\n return 0;\n }", "title": "" }, { "docid": "5f828676100cbedc92f58e1b38ae5be5", "score": "0.51789105", "text": "protected int getDropItemId()\n {\n return 0;\n }", "title": "" }, { "docid": "2708d9a9fca376781298520dcb92c983", "score": "0.51778394", "text": "private void getItem(int id) {\n\t\tConnection connection = SQLiteConnection.Connector();\n\t\ttry {\n\t\t\tString query = \"select * from menu where itemid = ?\";\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, id);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\tif(resultSet.next()) {\n\t\t\t\tcomboCategory.setValue(resultSet.getString(\"category\"));\n\t\t\t\ttxtItem.setText(resultSet.getString(\"item\"));\n\t\t\t\tBigDecimal price = new BigDecimal(resultSet.getString(\"price\"));\n\t\t\t\ttxtPrice.setText(NumberFormat.getCurrencyInstance().format(price));\n\t\t\t}\n\t\t} catch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tconnection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "46b9f1162b5a43143187db2ab6346213", "score": "0.5174857", "text": "@SideOnly(Side.CLIENT)\n public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems)\n {\n \tItemStack itemstack = new ItemStack(itemIn, 1);\n applyEntityIdToItemStack(itemstack, \"0\");\n subItems.add(itemstack);\n }", "title": "" }, { "docid": "a1aeb5d9e5cadcab0a515f7b792bf2a7", "score": "0.51672196", "text": "public ListItemController(Channel channel) {\n this.channel = channel;\n }", "title": "" }, { "docid": "10f7a6ebfa8e796d65ebe1150357c993", "score": "0.51652056", "text": "@Override\n public void bindRebuildHideseat(ArrayList<ItemInfo> items) {\n //TODO liuhao it should mHideseat\n //mHotseat.resetLayout();\n bindItems(items, 0, items.size());\n }", "title": "" }, { "docid": "4f0c884f610acea407c8c6956357f58e", "score": "0.515912", "text": "ie.gmit.ds.Item getItems(int index);", "title": "" }, { "docid": "82bc7f804a95a91a8a9355eed9fdc3d3", "score": "0.51561856", "text": "public static void listItems() {\t\n\t\tBufferedWriter outstream = null;\n\t\tFile itemlist = new File(listsDir.toString() + File.separator + \"itmes.txt\");\n\t\tif(itemlist.exists()) itemlist.delete(); \n\t\ttry {\n\t\t\toutstream = new BufferedWriter(new \n\t\t\t\t\tFileWriter(itemlist.toString()));\n\t\t\t\n\t\t\tfor(Object item : Item.REGISTRY){ \n\t\t\t\tString name = Item.REGISTRY.getNameForObject((Item) item).toString();\n\t\t\t\tif(true) {\n\t\t\t\t\toutstream.write(name);\n\t\t\t\t\toutstream.newLine();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(outstream != null) outstream.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"[DLDUNGEONS] Error: Could not write file items.txt\");\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "602c21b5de72d3acc37be84d29a367b8", "score": "0.5149681", "text": "public boolean dropItem(Item it){\n\t\t//buscamos si existe un elemento en el contenedor y sino esta en el contenemos \n\t\t//retornamos si se a podido añadir correctamente\n\t\t\treturn this.contenedor.addItem(it);\t\n\t}", "title": "" }, { "docid": "1e198f4de498b425733ce647305dd697", "score": "0.51476586", "text": "@Override\n public Object getItem(int arg0) {\n return arg0;\n }", "title": "" }, { "docid": "de9c7a56a770973f8390be770debef7a", "score": "0.51472425", "text": "private void loadItemData() {\n dl.setRowCount(0);\n try {\n ArrayList<ItemDTO> listofItems = new ItemController().getAllItem();\n for (ItemDTO item : listofItems) {\n Object[] dataset = {item.getIid(), item.getItemName(), item.getItemQty(), item.getItemPrice()};\n dl.addRow(dataset);\n }\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(ItemView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "4049a783cba55e7e7cf01f97abc1c4de", "score": "0.51402843", "text": "public Auction getDetails(int ItemID);", "title": "" }, { "docid": "db948c1e6cb51e2f061b9aa3b129531e", "score": "0.5138908", "text": "@Override\n\t\tpublic Object getItem(int arg0) {\n\t\t\treturn ivItems[arg0];\n\t\t}", "title": "" }, { "docid": "ec099a01c2871d1430d10e97ded0c99a", "score": "0.5135431", "text": "@Override\n public void transfer(Inventorised other, InventoryItem... items) throws IllegalArgumentException, IllegalStateException{\n try {\n for (int i=0; i < items.length;i++){\n InventoryItem item = items[i];\n if (!this.backpackContent.contains(item)) {\n throw new IllegalStateException(\"Cannot transfer items not in backpack.\");\n } else if(!other.canContain(item)) {\n throw new IllegalArgumentException(\"You cannot add this item. It's too heavy!\");\n } else {\n this.backpackContent.remove(item);\n item.setHolder(null);\n other.add(item);\n }\n }\n } catch (IllegalArgumentException e){\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "819df24383feb4c706b56b2afbc61f62", "score": "0.5134074", "text": "public void updateItem() {\r\n if (mWildernessItems.size() == 0) {\r\n mWildernessItems.add(null);\r\n } else {\r\n mWildernessItems.remove(null);\r\n }\r\n if (mAdapter == null) {\r\n mAdapter = new WildernessAdapter(mWildernessItems);\r\n mItemRecyclerView.setAdapter(mAdapter);\r\n } else {\r\n mAdapter.setItems(mWildernessItems);\r\n mAdapter.notifyDataSetChanged();\r\n }\r\n }", "title": "" }, { "docid": "37cda9f5f2322cda0290fe1f427670e4", "score": "0.51327366", "text": "@Override\r\n\tpublic boolean onContextItemSelected(MenuItem item) {\r\n\t\tLog.i(\"BrowseChannelsActivity\", \"Start onContextItemSelected()\");\r\n\r\n\t\tAdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item\r\n\t\t\t\t.getMenuInfo();\r\n\t\tint menuItemId = item.getItemId();\r\n\t\t// check for selected option\r\n\t\tif (menuItemId == MENU_SUBSCRIBE) {\r\n\t\t\tfinal int position = info.position;\r\n\t\t\tChannelEntry entry = channels.get(position);\r\n\t\t\tChannelDao channelDao = new ChannelDao(getApplicationContext());\r\n\t\t\tChannel channel = new Channel();\r\n\t\t\tchannel.setNameChannel(entry.getTitle());\r\n\t\t\tchannel.setDescribes(entry.getDescription());\r\n\t\t\tchannel.setThumnail(entry.getImage());\r\n\t\t\tchannel.setUri(entry.getLink());\r\n\t\t\tchannel.setIdRealChannel(entry.getIdReal());\r\n\t\t\tchannel.setCommentCount(entry.getCommentCount());\r\n\t\t\tchannel.setVideoCount(entry.getVideoCount());\r\n\t\t\tchannel.setViewCount(entry.getViewCount());\r\n\t\t\tchannel.setUpdated(entry.getUpdated());\r\n\t\t\tchannelDao.insertChannel(channel);\r\n\r\n\t\t\tif (channel.getIdChannel() > 0) {\r\n\t\t\t\tToast.makeText(this, \"Subscribed\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tLog.i(\"BrowseChannelsActivity\", \"End onContextItemSelected()\");\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "561506ab785ebdb211fcf20264cfeb12", "score": "0.5128219", "text": "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn clist.get(arg0);\n\t}", "title": "" }, { "docid": "4163bb0c82d425ba2192cf976371ac6a", "score": "0.5127644", "text": "ibc.core.channel.v1.ChannelOuterClass.IdentifiedChannel getChannels(int index);", "title": "" }, { "docid": "b524f854faf12bea8a72850a1f2a324b", "score": "0.51261497", "text": "Item getItem(int id);", "title": "" }, { "docid": "d44489c62dcba2486d13a8e286056cdd", "score": "0.5125247", "text": "public int getItemId();", "title": "" }, { "docid": "cf081c9220962ec2672e6e056822bd85", "score": "0.51246893", "text": "@Override \r\n public Object getItem(int arg0) {\n return arg0; \r\n }", "title": "" }, { "docid": "af9803ba1149e824e76c15f01e3acfa0", "score": "0.51231354", "text": "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn items.get(arg0);\n\t}", "title": "" }, { "docid": "af9803ba1149e824e76c15f01e3acfa0", "score": "0.51231354", "text": "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn items.get(arg0);\n\t}", "title": "" }, { "docid": "1f51b4676dd3b36c6c947ea29d94adfe", "score": "0.51229626", "text": "private static void pollFeeder(Item theItem) {\n/* 96 */ if (theItem.getTemplateId() == 1434) {\n/* */ \n/* 98 */ long delay = System.currentTimeMillis() - 14400000L;\n/* 99 */ if (delay > theItem.getData()) {\n/* */ \n/* */ \n/* 102 */ if (theItem.isEmpty(true) || (theItem.getAllItems(true)).length < cretCount) {\n/* */ \n/* */ \n/* */ try {\n/* 106 */ for (Item item : theItem.getParent().getAllItems(true))\n/* */ {\n/* 108 */ if (item.getTemplateId() == 1436)\n/* */ {\n/* 110 */ for (Item chickens : item.getAllItems(true))\n/* */ {\n/* 112 */ unload(chickens);\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 117 */ } catch (NoSuchItemException ex) {\n/* */ \n/* 119 */ logger.log(Level.WARNING, ex.getMessage(), (Throwable)ex);\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 124 */ Item[] foodEaten = theItem.getAllItems(true);\n/* 125 */ for (int x = 0; x < cretCount; x++)\n/* */ {\n/* 127 */ Items.destroyItem(foodEaten[x].getWurmId());\n/* */ }\n/* */ } \n/* 130 */ theItem.setData(System.currentTimeMillis());\n/* */ } \n/* */ } \n/* */ }", "title": "" }, { "docid": "c51d30dfa5c6d92bbe9e4ffc5d486d84", "score": "0.51228285", "text": "@Override\n \t\t\tpublic void onItemClick(AdapterView<?> parent, final View view,\n \t\t\t\t\tint position, long id) {\n \t\t\t\tif(baseElement==null){\n \t\t\t\t\taddShortCut(R.id.bt_raccourci_envoyer, adapter.getListAID().get(position));\n \t\t\t\t}else{\n \t\t\t\t\tres.getContext().sendElement(adapter.getListAID().get(position), baseElement.getModel().getAgent());\n \t\t\t\t}\n \t\t\t\n \t\t\t}", "title": "" }, { "docid": "6f8aa078721cefae1d42855a5ec4785b", "score": "0.5117201", "text": "@Override\n protected int getSeedItem()\n {\n return TcItem.soybeans.itemID;\n }", "title": "" }, { "docid": "2e04dfb883456c1ab9891c02a1ba6304", "score": "0.51148117", "text": "@Override\n public Object getItem(int arg0) {\n return lists.get(arg0);\n }", "title": "" }, { "docid": "c4b8cd32ebe3363e42d3b6577c46b6d7", "score": "0.5111859", "text": "public void lootItem(Items item){\n\t\tint temp=-1;\n\t\tfor(int i=0;i<10;i++){\n\t\t\tif(this.backpack.get(i).getName().equals(\"EMPTY\")){\n\t\t\t\ttemp=i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(temp==-1){\n\t//\t\tSystem.out.println(\"the backpack is full\");\n\t\t}\n\t\telse{\n\t\t\tthis.backpack.set(temp,item);\n\t\t}\n\t}", "title": "" }, { "docid": "0f893eca92ee8fb03c58bf8fedf93fb4", "score": "0.51113784", "text": "@Override\n\tprotected int getDropItemId()\n\t{\n\t\treturn Item.gunpowder.itemID;\n\t}", "title": "" }, { "docid": "5c0d3dba04a6461ab750ddc580e56909", "score": "0.51083857", "text": "public void listItem() {\n\t\tif(this.listItem.isEmpty()){\n\t\t\tSystem.out.println(\"Le lieu est vide\");\n\t\t}\n\t\telse{\n\t\t\tfor(Item i : this.listItem){\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "2607c28d8f6aa47a0e7c4f00f3bf7060", "score": "0.51056117", "text": "void setItemBusRenderer(IPartItem i);", "title": "" }, { "docid": "11ad507926e7567a8aa72f6937d96836", "score": "0.5104602", "text": "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn mGrid2Info.get(arg0);\n\t}", "title": "" }, { "docid": "4c7eb60473b4393fd773a884984a47b0", "score": "0.5096682", "text": "public void onBindViewHolder(b bVar, int i) {\n h.e(bVar, \"holder\");\n bVar.c((ScanItem) this.nj.get(i));\n }", "title": "" }, { "docid": "bac96fc903187498fb4bf24ad3e353a2", "score": "0.5091102", "text": "private Object getitemslist(Item items) {\t\t\nConnection c = null;\t\t\nPreparedStatement ps = null;\nResultSet rs=null;\nItemsListResponse itemsList = new ItemsListResponse();\nArrayList<Item> itemslist = new ArrayList<Item>();\nString getqry=\"select * from master_item_m where brand_id=? and product_id = ? and category_id = ? and subcategory_id = ?\";\ntry {\nc = ConnectionHelper.getConnection();\nps = c.prepareStatement(getqry);\nps.setString(1, items.getBrandID());\nps.setString(2, items.getProductID());\nps.setString(3, items.getCategoryID());\nps.setString(4, items.getSubcategoryID());\nrs=ps.executeQuery();\n\nwhile(rs.next())\n{\n\tItem obj = new Item();\n\tobj.setBrandID(rs.getString(\"brand_id\"));\n\tobj.setModelNumber(rs.getString(\"Model_Number\"));\n\tobj.setProductID(rs.getString(\"product_id\"));\n\tobj.setDescription(rs.getString(\"description\"));\n\tobj.setCategoryID(rs.getString(\"category_id\"));\n\tobj.setSubcategoryID(rs.getString(\"subcategory_id\"));\n\tobj.setSpecification(rs.getString(\"Specification\"));\n\tobj.setItemID(rs.getString(\"item_id\"));\n\titemslist.add(obj);\n}\nitemsList.setResponseCode(\"200\");\nitemsList.setItemsList(itemslist);\n\n} catch (Exception e) {\nreturn new ErrorMessage().getErrorResponse(\"100\");\n}\nfinally\n{\nConnectionHelper.close(c);\t\ntry {\n\tif(ps!=null)ps.close();\n\tif(rs!=null)rs.close();\n} catch (SQLException e) {\n}\n}\nreturn itemsList;\n}", "title": "" }, { "docid": "5c94d7fed295040b32f4371e4df98b8b", "score": "0.5086807", "text": "private void addItems() {\n ItemDTO item1 = new ItemDTO(\"GameBoy\", new Money(\"2000\"), \"0001\", \"Console\", new VATRate(25));\n ItemDTO item2 = new ItemDTO(\"Tetris\", new Money(\"340\"), \"0002\", \"Game\",new VATRate(12));\n ItemDTO item3 = new ItemDTO(\"Super Mario 2\", new Money(\"290\"), \"0003\", \"Game\",new VATRate(25));\n ItemDTO item4 = new ItemDTO(\"Mario figure\", new Money(\"96\"), \"0004\", \"Collectable\",new VATRate(12));\n ItemDTO item5 = new ItemDTO(\"Zelda\", new Money(\"300\"), \"0005\", \"Game\",new VATRate(12));\n ItemDTO item6 = new ItemDTO(\"AAA batteries\", new Money(\"25\"), \"0006\", \"Misc\",new VATRate(6));\n\n availableItems.add(new GroupedItem(item1, 4));\n availableItems.add(new GroupedItem(item2, 3));\n availableItems.add(new GroupedItem(item3,6));\n availableItems.add(new GroupedItem(item4, 1));\n availableItems.add(new GroupedItem(item5, 4));\n availableItems.add(new GroupedItem(item6, 2));\n }", "title": "" }, { "docid": "ec2b629c26101fef3ccaff5d256b1a45", "score": "0.5084523", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if(isConnected()){\n getAllMessages(allMessageThreads.threads.get(position).id, allMessageThreads.threads.get(position).title);\n } else{\n Toast.makeText(MessageThreadsActivity.this, \"Please Connect to Internet\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "2b2a8b50c842bc467acf430fd57377e2", "score": "0.50838095", "text": "public void setItem_id(Integer item_id) {\n this.item_id = item_id;\n }", "title": "" } ]
5a0a9a04c2c382c84f5cb5e9d867bf6a
Force get list of crafters using this container
[ { "docid": "8dbd41edc755abf86d91153bbf9606d3", "score": "0.70137215", "text": "public static ArrayList<?> getCrafters(Container cont)\n {\n \ttry\n \t{\n \tField craftField = Container.class.getDeclaredField(\"field_75149_d\");\n \tcraftField.setAccessible(true);\n \treturn (ArrayList<?>)craftField.get(cont);\n \t} catch(Exception e)\n \t{\n \t\ttry\n \t\t{\n\t \tField craftField = Container.class.getDeclaredField(\"crafters\");\n\t \tcraftField.setAccessible(true);\n\t \treturn (ArrayList<?>)craftField.get(cont);\n \t\t} catch(Exception e1)\n \t\t{\n \t\tRecipeResearch.logger.log(Level.ERROR, \"Unable to get crafters for Container\", e1);\n \t\treturn null;\n \t\t}\n \t}\n }", "title": "" } ]
[ { "docid": "1a05e01e6fcc0a6fa972a716756fa1b9", "score": "0.5415372", "text": "public List getParents() throws TorqueException \n {\n return getParents(true);\n }", "title": "" }, { "docid": "786ea77af8d54f09e79faecfcf972436", "score": "0.53733724", "text": "private List<Component> getFocusTraversalCycle(Container paramContainer) {\n/* 106 */ ArrayList<Component> arrayList = new ArrayList();\n/* 107 */ enumerateCycle(paramContainer, arrayList);\n/* 108 */ return arrayList;\n/* */ }", "title": "" }, { "docid": "3ee8f817e876573346eef5a50b956287", "score": "0.52541435", "text": "@Override\n\tpublic List<K> getPreOrderTraversal() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "012ea9000fd47f899136c6f2a3b502c1", "score": "0.51872903", "text": "public ContainedObjectsIterator() {\n\t\t\tsuper();\n\t\t\t_classListIterator = classDefinitionList().iterator();\n\t\t\t_entityListIterator = entityList().iterator();\n\t\t\t_relationListIterator = relationList().iterator();\n\t\t}", "title": "" }, { "docid": "cd1d5f7a34733e8f73fa1f64b1740f88", "score": "0.5170991", "text": "@Override\n\tpublic Iterator<T> getPreorderIterator() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f124db31c8d9bc9a38dd959f0638887e", "score": "0.51509905", "text": "@Override\n\tpublic Iterator<T> getPreorderIterator()\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1f5e96114c90300aec8efc645bc16443", "score": "0.51063323", "text": "public PrecedingWalker(LocPathIterator locPathIterator)\n {\n super(locPathIterator);\n }", "title": "" }, { "docid": "4c676d6fc1f05447504fc115e76b88ab", "score": "0.50707066", "text": "public List<InitContainerDefinition> initContainers() {\n return this.innerProperties() == null ? null : this.innerProperties().initContainers();\n }", "title": "" }, { "docid": "6ba4ae7aabdc1854446e7d4ac98bea95", "score": "0.5049112", "text": "@Override\n\tpublic List<K> getInOrderTraversal() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5f6b3d161ebf1a4737dc4118033ae743", "score": "0.50311285", "text": "private InheritanceChain() {\n childMap = buildChildMap(Theme.this);\n yielded = Sets.newHashSet();\n stack = Lists.newLinkedList(); // we will remove from the middle occasionally\n stack.add(Theme.this);\n }", "title": "" }, { "docid": "7bb3aed09ab51615967b03fdc80d80c5", "score": "0.5018109", "text": "@Override\n\tpublic List<CategoryDTO> bringCategories() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9d18902aee36bcdcec476aabed665134", "score": "0.5014802", "text": "protected void beforeFindAll() {\n return;\n }", "title": "" }, { "docid": "339044aad3a62e9e387edcf19b58ce1a", "score": "0.500693", "text": "CycList getSiblings(Fort cycFort) throws CycConnectionException, CycApiException;", "title": "" }, { "docid": "2eb51d30035d1384374f23c6f06f52b2", "score": "0.5004642", "text": "public Iterable<Namespace> addedForward() {\n if (added[depth].length == 0) {\n return EMPTYITER;\n }\n return new NamespaceIterable(added[depth], true);\n }", "title": "" }, { "docid": "0c308890f0d0f018873d22eb684350b7", "score": "0.4983937", "text": "CycList getInstanceSiblings(CycObject cycFort) throws CycConnectionException, CycApiException;", "title": "" }, { "docid": "a1f2823553943de25907988817b13005", "score": "0.49822596", "text": "public LinkedList<T> preorderTraversal(){\n\t\tLinkedList<T> traversal = new LinkedList<T>();\n\t\tpreorderTraversal(root, traversal);\n\t\treturn traversal;\n\t}", "title": "" }, { "docid": "677aab7fa714b5052565efeccb214760", "score": "0.49343926", "text": "@Override\n\tpublic Iterator<T> iteratorPreOrder() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "638a8e2292c1224dd8a97ff26e657a83", "score": "0.49232003", "text": "public Iterable<Position<E>> preorder()\n {\n List<Position<E>> snapshot = new ArrayList<>();\n\n if(!isEmpty())\n {\n preorderSubtree(root(), snapshot); // fill the snapshot recursively\n }\n\n return snapshot;\n }", "title": "" }, { "docid": "867d3f95eaf7c17a83b80287d68019a8", "score": "0.4917962", "text": "List<Node> getPredecessors();", "title": "" }, { "docid": "7bbbd6ecdfde7f800cf96db1697818d6", "score": "0.49002942", "text": "@Override\r\n\tpublic List<KeyValuePair<Key, Value>> preOrderTraversal() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "221f1194a511f79c8ded8cb3abe1a40c", "score": "0.49000826", "text": "public List<Container> containers() {\n return this.innerProperties() == null ? null : this.innerProperties().containers();\n }", "title": "" }, { "docid": "f6dc2d11216fc5982f3d032e4f1505cc", "score": "0.4896354", "text": "public Collection<Dependency> getClientDependencies() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "5d60632a03f86458665ac09300ddfca9", "score": "0.4889762", "text": "List<Character> getSiblings();", "title": "" }, { "docid": "ac12f15cfe57e98e4aeb1213c5b38928", "score": "0.48868808", "text": "public Set getDirectlyInvolvedObjects() {\n Set set = new HashSet();\n\n if (_list != null) {\n set.addAll(_list);\n }\n\n return set;\n }", "title": "" }, { "docid": "e86b635d4600602b9cdbaff122e1f87b", "score": "0.48767796", "text": "Iterable<? extends Node> getReferencesForDominators();", "title": "" }, { "docid": "6a8901732e1a48515d692341128e5662", "score": "0.48592398", "text": "private List<Segment> anywhere() {\n return Collections.emptyList();\n }", "title": "" }, { "docid": "f6d00bf414fbd6163539669e20af3538", "score": "0.48581275", "text": "public List<IXPathObject> getPrecedingSiblingAxisList() {\n\t\tif (((XPathObject) this.parent) == null) { /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t* have no parent, so I\n\t\t\t\t\t\t\t\t\t\t\t\t\t* should be document root\n\t\t\t\t\t\t\t\t\t\t\t\t\t*/\n\t\t\tif (this instanceof Document)\n\t\t\t\treturn null;\n\t\t\telse {\n\t\t\t\tthis.printObject();\n\t\t\t\tthrow new RuntimeException(this.getElementName() + \" should have a parent.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tIterator i = ((XPathObject) this.parent).getChildAxis().iterator();\n\t\tList<IXPathObject> result = new ArrayList<IXPathObject>();\n\n\t\twhile (i.hasNext()) {\n\t\t\tIXPathObject element = (IXPathObject) i.next();\n\n\t\t\tif (element.equals(this))\n\t\t\t\treturn result;\n\t\t\telse\n\t\t\t\tresult.add(0,element);\n\t\t}\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "51f5da50d93310723981b820c1ed0aa7", "score": "0.48384994", "text": "public void setListToBegin() {\n iterator = entries.iterator();\n currentEntry = null;\n if (iterator.hasNext())\n currentEntry = (ClasspathEntry) iterator.next();\n }", "title": "" }, { "docid": "f8cf12f0ce693f2ba83be3ee57fa2693", "score": "0.48335767", "text": "public List<Parent> viewParents();", "title": "" }, { "docid": "bb44adde434ccea1c0feb465c532ce77", "score": "0.48207936", "text": "@Override\n public @NotNull Iterator<Namespace> iterator() {\n return new ForwardWalker(scope[depth]);\n }", "title": "" }, { "docid": "017ef96c750aac4dbc81bcb588247fd0", "score": "0.4814593", "text": "CycList getInstanceSiblings(CycObject cycFort, CycObject mt)\n throws CycConnectionException, CycApiException;", "title": "" }, { "docid": "9755c13b36d0a4ff0d33964484ce8b4e", "score": "0.4809523", "text": "@Override\n public List<Text> getSiblings() {\n return new ArrayList<>(Collections.singleton(this));\n }", "title": "" }, { "docid": "71284556e337e4f8dacb198054b2e12f", "score": "0.48023897", "text": "public List<Container> readContainers() {\n try {\n return readContainers(defaultComparator);\n } catch (final Throwable t) {\n throw panic(t);\n }\n }", "title": "" }, { "docid": "ee2e2b9a1948113a273d88d99e9b3a8f", "score": "0.48007226", "text": "CycList getSiblings(Fort cycFort, CycObject mt) \n throws CycConnectionException, CycApiException;", "title": "" }, { "docid": "9414e2932e17e487d66deb6dcac91119", "score": "0.47907916", "text": "List<Object> getBreadCrumbList();", "title": "" }, { "docid": "779926af53bb29a41168f110fffa5903", "score": "0.47843936", "text": "List<Plugin> getPluginChains();", "title": "" }, { "docid": "368ea84b669d4a1e7e1725eaa32e92fa", "score": "0.47686097", "text": "public Iterator preOrderIterator() {\n\t\treturn new PreOrderIterator();\n\t}", "title": "" }, { "docid": "d50cf31591db7fd5a31eaaaacda9c66a", "score": "0.4754501", "text": "public Vector<CommandFilterI> getPreWaitFilterChain() {\n return preWaitFilterChain;\n }", "title": "" }, { "docid": "5fb08e8206d2861b4abe4456974afc42", "score": "0.47501612", "text": "List<K> getPreOrderTraversal();", "title": "" }, { "docid": "e21af01a503b10b6994c6543a134459c", "score": "0.47492078", "text": "@Transactional(readOnly = true)\n public List<ImpotMensuelDTO> findParentsWithoutChildren() {\n log.debug(\"Request to get all ImpotMensuels parent without children\");\n return impotMensuelRepository.findParents().stream()\n .map(impotMensuelMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "title": "" }, { "docid": "04b0282a0db191140a669b921f411491", "score": "0.473782", "text": "public Iterator getPreOrderIterator(){\n\t\t// Initializes a LinkedList to be sent to the Iterator's constructor method.\n\t\tLinkedList<BinarySearchTree<E>> preOrderList = new LinkedList<BinarySearchTree<E>>(); \n\t\t\n\t\t// Fills that list with the BSTs added in the preorder order. \n\t\tpreOrderAdd(preOrderList); \n\t\t\n\t\t// Calls constructor of Iterator\n\t\tIterator preOrderIterator = new Iterator(preOrderList); \n\t\t\n\t\treturn preOrderIterator;\n\t}", "title": "" }, { "docid": "40f74e89ff4656f802c5cfac80869d53", "score": "0.4736347", "text": "public List getHeads()\n {\n ArrayList l = new ArrayList(); l.addAll(heads);\n return Collections.unmodifiableList(l);\n }", "title": "" }, { "docid": "ee699a70f5b046d4f65b51605a743945", "score": "0.47353145", "text": "@Override\r\n\tpublic Iterable<Position<E>> preorder() {\r\n\t\tList<Position<E>> snapshot = new ArrayList<>();\r\n\t\tif (!isEmpty()) {\r\n\t\t\tpreorderSubTree(root(), snapshot);\r\n\t\t}\r\n\t\treturn snapshot;\r\n\t}", "title": "" }, { "docid": "d9a9c5d2de0b22a8d23145d3e8d9b6af", "score": "0.47272146", "text": "public void traversePreOrder() {\n traversePreOrder(head);\n }", "title": "" }, { "docid": "85e18a85c93c359812a99f6cfb3f9712", "score": "0.47135514", "text": "public ArrayList<SingleOntologyNode> getDirectParentNodes() {\n\t\treturn OntologyService.getInstance().getDirectParentNodes(this);\n\t}", "title": "" }, { "docid": "a7eedc8f24f4c785888add5327cd535d", "score": "0.4713118", "text": "CycList getSpecSiblings(Fort cycFort) throws CycConnectionException, CycApiException;", "title": "" }, { "docid": "fcbb02f85deee793d9320e6a2d4759b5", "score": "0.47112247", "text": "public PreOrderIterator()\n\t\t{\n\t\t\tif(root!=NULL_NODE)\n\t\t\t{\n\t\t\t\tnodeStack.push(root); // push the root to the stack if not NULL_NODE\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8879b28e9f208536bfb94c8d73e8a409", "score": "0.4706063", "text": "@Pure\n\tpublic static Iterator<URL> getStartClasspath() {\n\t\treturn new PathIterator(System.getProperty(\"java.class.path\")); //$NON-NLS-1$\n\t}", "title": "" }, { "docid": "97e6f78bb0776f998b22a84212f6ebc7", "score": "0.47037664", "text": "public String preOrderTraversal();", "title": "" }, { "docid": "d40b3e1124995b2f7ceff3ecc712c630", "score": "0.4692908", "text": "public Iterator figuresFromFront() {\n return _zlist.figuresFromFront();\n }", "title": "" }, { "docid": "d2b0857c9c4a8bf49f8329a8c516e822", "score": "0.46815768", "text": "List<? extends ReferenceWithMetaTradeState> getBefore();", "title": "" }, { "docid": "172a9d5157addc3f4fbea9bc59475ca3", "score": "0.46797442", "text": "public List<IXPathObject> getPrecedingAxisList() {\n\t\tList<IXPathObject> result = new ArrayList<IXPathObject>();\n\t\tList<IXPathObject> precedingSibling = this.getPrecedingSiblingAxisList();\n\n\t\tif(precedingSibling != null)\n\t\t\tresult.addAll(precedingSibling);\n\t\tfor(IXPathObject element : this.getAncestorAxisList()) {\n\t\t\tresult.addAll(element.getPrecedingSiblingAxisList());\n\t\t}\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "07661805c3836829eccf4bcc80b9463d", "score": "0.46755707", "text": "private Collection<Map.Entry<Resource, String>> incoming() {\n List<Resource> refs = getReferencingNodes(true);\n if (isTopLevel() && refs.isEmpty()) {\n return Collections.emptyList();\n }\n List<Map.Entry<Resource, String>> rval = new ArrayList<>(refs.size()+1);\n if (!isTopLevel()) {\n rval.add(new AbstractMap.SimpleImmutableEntry<>(getParentPrivileged(), getName()));\n }\n // need privileged access to parents at this point... method must not throw a security exception\n for (Resource ref: refs) {\n \t\trval.add(new AbstractMap.SimpleImmutableEntry<>(((ResourceBase) ref).getParentPrivileged(), ref.getName()));\n }\n return rval;\n }", "title": "" }, { "docid": "98776af8ea4ab2d4409b66f7d6b4a959", "score": "0.46692502", "text": "public void setPreorder() {\n list.clear();\n preorder(t.getRoot());\n }", "title": "" }, { "docid": "a0d465a804bb439d1aebccd6f14fde0b", "score": "0.46649754", "text": "@Override\n\tpublic EList<Classifier> allParents() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f72cb2bdc49e2faf08c10bf0b4a66120", "score": "0.46626446", "text": "public synchronized Set<String> getPathMarkersCrossed() {\n if (driveControlState_ != DriveControlState.PATH_FOLLOWING_CONTROL) {\n return null;\n } else {\n return pathFollowingController_.getMarkersCrossed();\n }\n }", "title": "" }, { "docid": "c140068b672980c6585c34aa2ac1cd13", "score": "0.46584707", "text": "public ArrayList<Integer> preorderTraverse() {\n\t\t\n\t}", "title": "" }, { "docid": "bd70a65ae774121c49c03b00f9f61340", "score": "0.46541455", "text": "protected Iterator<? extends Node> getHiddenVisitorChildren()\n {\n checkPopulated();\n List<Iterator<? extends Node>> iterators = new ArrayList<Iterator<? extends Node>>();\n iterators.add(super.getHiddenVisitorChildren());\n iterators.add(getRecursiveCompilationUnitIterator());\n return new CompoundIterator<Node>(iterators.iterator());\n }", "title": "" }, { "docid": "2c51c625c6f7d1fca0fccccfe390434d", "score": "0.46470964", "text": "@Override\n\tpublic List<Entity> DepthSerach(String slozeniUpit) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "42deaf4d78e8fa781cc8b38c843792a7", "score": "0.4646852", "text": "@Override\n\tpublic List<Class<? extends Filter>> dependClasses() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6a871b0197757a8b0e7405a3e021e465", "score": "0.4642421", "text": "public Vector<CommandFilterI> getPreReleaseFilterChain() {\n return preReleaseFilterChain;\n }", "title": "" }, { "docid": "b871a607f01f09281a98eb7ae213d190", "score": "0.46407977", "text": "public Iterator<E> preorderIterator()\n\t{\n\t\treturn new preorderIterator<E>(this);\n\t}", "title": "" }, { "docid": "495042d6dbaf0e704825e3fbd6a97aed", "score": "0.4632393", "text": "@Override\n\tpublic List<K> getPostOrderTraversal() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6e592da11f663bd295ebedc5b2e37600", "score": "0.46248776", "text": "public Iterator<T> preOrderIterator() {\r\n\t\t// TODO Auto-generated method stub.\r\n\t\t\r\n\t\treturn new PreOrderIterator();\r\n\t}", "title": "" }, { "docid": "6211d4a95725934ba54de16d96798f78", "score": "0.46247485", "text": "protected List< Class< ? >> getListHandledClasses() {\n return listHandledClasses;\n }", "title": "" }, { "docid": "ddd14aa5b4ebec249782ca73f09913cd", "score": "0.46241152", "text": "public List deepEntityList() {\n\t\ttry {\n\t\t\t_workspace.getReadAccess();\n\n\t\t\tLinkedList result = new LinkedList();\n\n\t\t\t// This might be called from within a superclass constructor,\n\t\t\t// in which case there are no contained entities yet.\n\t\t\tif (_containedEntities != null) {\n\t\t\t\tIterator entities = _containedEntities.elementList().iterator();\n\n\t\t\t\twhile (entities.hasNext()) {\n\t\t\t\t\tComponentEntity entity = (ComponentEntity) entities.next();\n\n\t\t\t\t\tif (!entity.isClassDefinition()) {\n\t\t\t\t\t\tif (entity.isOpaque()) {\n\t\t\t\t\t\t\tresult.add(entity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresult.addAll(((CompositeEntity) entity)\n\t\t\t\t\t\t\t\t\t.deepEntityList());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn result;\n\t\t} finally {\n\t\t\t_workspace.doneReading();\n\t\t}\n\t}", "title": "" }, { "docid": "169a2d52b11a9f84e2f62f180e89b923", "score": "0.46161875", "text": "@Override\n\tpublic List<DecoratorTree> getDecorators() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ce1e42c6445544dca148012664b9ac84", "score": "0.45971742", "text": "private static List<JcrNode> getParents(JcrNode node, ParentLimiter parentLimiter) {\n List<JcrNode> result = new ArrayList<JcrNode>();\n JcrNode p = node.getParent();\n while (p.getDepth() > 0 && (parentLimiter == null || !parentLimiter.isFinalParent(node, p))) {\n result.add(0, p);\n p = p.getParent();\n }\n return result;\n }", "title": "" }, { "docid": "f60a8a51a4b4bba6abcf4094a97e1afe", "score": "0.4590242", "text": "public List<CoordinadorEntity> getCoordinadors() {\r\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todas las coordinador\");\r\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\r\n List<CoordinadorEntity> coordinador = persistence.findAll();\r\n LOGGER.log(Level.INFO, \"Termina proceso de consultar todas las coordinador\");\r\n return coordinador;\r\n }", "title": "" }, { "docid": "0c05a9055fc4dd9bbba7a854ac547680", "score": "0.45881364", "text": "public List<Parent> getAllParents() {\n return parents;\n }", "title": "" }, { "docid": "a4c33be7436dbdcc5d443ac68fb28528", "score": "0.45861924", "text": "List<Character> getParents();", "title": "" }, { "docid": "8485a63d34dcb24e1d27e2a101b0a2e7", "score": "0.4577748", "text": "protected ActionContainer findParentContainer()\n {\n return (ActionContainer) findAncestorWithClass(parentClasses);\n }", "title": "" }, { "docid": "a3873f84f6c0eed1eeddd1217b4b485d", "score": "0.4558865", "text": "public List<SyntaxTreeNode> getSiblings()\n\t{\n\t\treturn (parent == null) ? null : parent.getChildren();\n\t}", "title": "" }, { "docid": "39c206c232e6d0d38627ad9a8ced7ac4", "score": "0.4558691", "text": "default public Iterable<Figure> preorderIterable() {\n\n return new Iterable<Figure>() {\n\n @Override\n public Iterator<Figure> iterator() {\n return new PreorderIterator(Figure.this);\n }\n };\n }", "title": "" }, { "docid": "4e4579d5f2c71f1e888e3c51108306bc", "score": "0.45585966", "text": "protected DLNode<T> getFront() {\n return front;\n }", "title": "" }, { "docid": "bfe92cc7e53ba407d6d1c34b08e54bb9", "score": "0.45464092", "text": "List<Category> findParents(Long id);", "title": "" }, { "docid": "ac9ebdca4bb9569524d1198dc777fa8f", "score": "0.45419532", "text": "List<Category> findRootCategories();", "title": "" }, { "docid": "408df9277fd76e9cd05903e6f5e58e82", "score": "0.45392114", "text": "private static List<EObject> ancestors(EObject obj) {\n\t\tList<EObject> ancestors = new ArrayList<EObject>();\n\t\twhile (obj != null) {\n\t\t\tancestors.add(obj);\n\t\t\tobj = obj.eContainer();\n\t\t}\n\t\treturn ancestors;\n\t}", "title": "" }, { "docid": "92d36847532f8769b9ac6beac072d533", "score": "0.45266905", "text": "@Override\n\tpublic List<ContextInfoModel> findFileByDrafter_S(String Drafter) {\n\t\treturn ContextInfoModelDAO.findFileByDrafter_S(Drafter);\n\t}", "title": "" }, { "docid": "e3f961f3b6b4b1072f0f22d405ed8855", "score": "0.45259246", "text": "public List<Force> getForces(){\n\t\treturn Collections.unmodifiableList(forceList);\n\t}", "title": "" }, { "docid": "b0eec73e8cb0b2ed0dde0b6a133a497c", "score": "0.4524182", "text": "@Override\n\tpublic List<Contato> listContatos() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4c882c2fe40f4415a6e2f44b64482c55", "score": "0.45179638", "text": "Collection<String> findParents(String id) throws DriveRemovedException, RepositoryException;", "title": "" }, { "docid": "24c6c66f24049eb6721a2d71dfac9e79", "score": "0.45028946", "text": "@Override\n\tpublic List<? extends ContentAssemblyItem> getDescendantObjectsFiltered(\n\t\t\tUser user, ContentAssemblyNodeContainer caNodeContainer,\n\t\t\tContentAssemblyItemFilter filter) throws RSuiteException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "48885e899cc09b5efc37c139ac43689a", "score": "0.45027456", "text": "protected void beforeList() {\r\n\t}", "title": "" }, { "docid": "52ceeb5a407b73f5259647f18c8d11bc", "score": "0.44968823", "text": "public List<IXPathObject> getAncestorOrSelfAxisList() {\n\t\tList<IXPathObject> result = new ArrayList<IXPathObject>();\n\t\tIXPathObject node = this;\n\t\tdo {\n\t\t\tif (node != null) {\n\t\t\t\tresult.add(node);\n\t\t\t\tnode = node.getParent();\n\t\t\t}\n\t\t} while (node != null);\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "5a0f6cc69e9771cd7a4bd11bd962a9c1", "score": "0.44965872", "text": "List<DwellingPlace> getPlacesSeparatedFromParents(@NonNull LocalDate onDate) {\n List<DwellingPlace> results = new ArrayList<>();\n for (DwellingPlace place : getPlacesAttachedToParents()) {\n Person owner = place.getOwner(onDate);\n if (owner != null && place.getParent().getOwner(onDate) == null) {\n results.add(place);\n } else if (owner == null && place.getParent().getOwner(onDate) != null) {\n results.add(place);\n } else if (owner != null && !owner.equals(place.getParent().getOwner(onDate))) {\n results.add(place);\n }\n }\n return results;\n }", "title": "" }, { "docid": "a9cc3e7b756f3ccbe0848f421c96b022", "score": "0.4496202", "text": "public List<Controller> getControllers() {\r\n if (_controllers == null) {\r\n _controllers = new ArrayList<Controller>(1);\r\n }\r\n return _controllers;\r\n }", "title": "" }, { "docid": "fd30ae93135cdb87973109a5b0db071b", "score": "0.44961584", "text": "@Override\r\n\tpublic List<KeyValuePair<Key, Value>> inOrderTraversal() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "e632bc650288abd198d4061998b68145", "score": "0.44758058", "text": "private Iterable<Node> nodes() {\n Deque<Node> nodes = new ArrayDeque<>();\n for (Node node = head; node != null; node = node.next)\n nodes.push(node);\n\n return nodes;\n }", "title": "" }, { "docid": "342a7b99e41b7b7ba7d7088f1d02e518", "score": "0.4475524", "text": "public List<Contato> all() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6b9da1d4d40ce6f50d0ade550789a610", "score": "0.44750175", "text": "List<String> getParents();", "title": "" }, { "docid": "fb037b3fc6b2f7f6b0b7a6222a51fa5e", "score": "0.44701347", "text": "@Override\n\tpublic List<K> getLevelOrderTraversal() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "22c1f7c0ddf11bc1b09285c93ef5dedc", "score": "0.44700027", "text": "Before getBefore();", "title": "" }, { "docid": "e0d0934fe2c03021a766e3edda6b53f5", "score": "0.44678572", "text": "public Iterator<T> iteratorPreOrder();", "title": "" }, { "docid": "ac553efb94b5a9e8cecea930ead01a4a", "score": "0.4467778", "text": "@Override\n\tpublic EList<Classifier> parents() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "40aae81f389d0297016b4956c1e04b24", "score": "0.4458958", "text": "@ModelAttribute(\"categories\")\r\n\tpublic List<Category> initializeCategories() {\r\n\t\treturn categoryService.listAllRootCategories();\r\n\t}", "title": "" }, { "docid": "12c7c2782b01ee703766798fc884d5d0", "score": "0.44577256", "text": "CycList getSpecSiblings(Fort cycFort, CycObject mt) throws CycConnectionException, CycApiException;", "title": "" }, { "docid": "2d0f897d17e247bf5b8bf2ababbecc1b", "score": "0.44556627", "text": "public List<Category> viewTrendingCategories() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "828fba129652d5b0b3373733138daf7b", "score": "0.445444", "text": "@Override\n\tprotected List<Controlador> getAllObjects() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bc813cf52e515dde49654c677ef01e1f", "score": "0.44445488", "text": "public List<String> getCssHrefs() {\n return parser.getCssHrefs();\n }", "title": "" } ]
eb79cb92d10ff896566734957e25e657
ResponseCallback interface methods notifies activity..
[ { "docid": "13621d6da1ebe4a64d7903ea511a4742", "score": "0.0", "text": "@Override\r\n public void onSuccess(String joke) {\r\n jokeTextView.setText(joke);\r\n Logger.d(\"Activity: onSuccess of getJoke method is called\");\r\n }", "title": "" } ]
[ { "docid": "0deb3789d3cfadb94ea52374016da95d", "score": "0.7230273", "text": "void registerResponseCallback(ResponseCallback callback);", "title": "" }, { "docid": "995543233c6b48d8108cefa8bd893500", "score": "0.7185948", "text": "public interface RequestCallBack {\n public void onSuccsee(String result);\n\n}", "title": "" }, { "docid": "beb762a1520d4db065a479653b35d243", "score": "0.7176673", "text": "void onCallback();", "title": "" }, { "docid": "177cef578eac471a53089baecc6c0314", "score": "0.71643674", "text": "public void onRequestResponseCompleted();", "title": "" }, { "docid": "c7833e498970caf32e1798ee8d41b902", "score": "0.70768297", "text": "@Override\r\n public void onResponse(String response) {\n resultInterface.onTaskComplete(response);\r\n\r\n\r\n }", "title": "" }, { "docid": "002ecdd9f93d2618af9843b2dda11ae2", "score": "0.70667887", "text": "public abstract void responseCallback();", "title": "" }, { "docid": "063a47396ff448e3c2dce9b72d12e715", "score": "0.6884616", "text": "public interface CallBackImpl {\n void messDialog2Activity(String data);\n}", "title": "" }, { "docid": "f60d99f90642375e0a43f4b0f370cee6", "score": "0.6835011", "text": "@Override\n public void onResponse(String response) throws RemoteException {\n handler.post(new Runnable() {\n @Override\n public void run() {\n callback.onResponse(response);\n }\n });\n }", "title": "" }, { "docid": "78663eb0d386c7b9e9a4b219df2bd75c", "score": "0.67708045", "text": "@Override\n public void onResponse(String response) {\n callback.onSuccess(response);\n }", "title": "" }, { "docid": "1ca5852f196a22b171d5bff5b86c7c47", "score": "0.67525727", "text": "void onCompleted();", "title": "" }, { "docid": "d0f58d59fc1a420dc71cd723a95ca4ef", "score": "0.67418313", "text": "public void onMessageComplete();", "title": "" }, { "docid": "be7f82351804e90ee5792814caca5e26", "score": "0.6739362", "text": "void onCall(String parameters, ResultCallBack callBack);", "title": "" }, { "docid": "9b75a0a357f257227d9fd798ce7a6ecf", "score": "0.67324126", "text": "public interface RequestCallback {\n void onResult(JSONArray object);\n}", "title": "" }, { "docid": "0e1a7bacbadb454a0592699db9b4362a", "score": "0.67303103", "text": "public interface CallBackListener {\n public void onFinish(String response);\n public void onError(Exception e);\n}", "title": "" }, { "docid": "f17490440001f2d0ebf1047f981e0015", "score": "0.67216575", "text": "public interface OnMakeMeetupTaskCompleted {\n void onTaskCompleted(String message);\n}", "title": "" }, { "docid": "f5a81a81a9ed363a6b480cc714f902e5", "score": "0.66964513", "text": "public interface OnInfoCompletedListner {\n\n public void onSuccess(String data);\n public void onFailure(String errorMessage);\n}", "title": "" }, { "docid": "1e1482164768d9bf92e3488c95d749c9", "score": "0.66897255", "text": "public interface CallOnResponsetListener {\n void onSuccess(Call call, Response response);\n}", "title": "" }, { "docid": "412c8fc7ada597feaf2caf69652d8f88", "score": "0.66697216", "text": "public interface JsonObjectCallBackListener {\n\n void onResponse(JSONObject jsonObject);\n\n void onError(String messageError);\n\n}", "title": "" }, { "docid": "c2cfe361f38980deccd86917755ea219", "score": "0.665431", "text": "public interface OnCompleteCallback {\n public void onComplete();\n public void onError();\n}", "title": "" }, { "docid": "c70e9f9ab749e581ba3939a22df60d4d", "score": "0.6654269", "text": "@Override\n public void onResponse(JSONObject response) {\n\n callback.onSuccessResponse(response); // callback de la Interface\n\n String messageResponse = \"\";\n\n try {\n messageResponse = response.getString(\"message\");\n\n } catch (JSONException e) {\n Log.i(\" MyTag JSONException\", String.valueOf(e.getMessage()));\n }\n\n if (!messageResponse.equals(\"\")){ // muestra el mensaje\n Toast.makeText(context, messageResponse, Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "26a1e2919168fa80799f7a3d55f0c52a", "score": "0.66538554", "text": "public interface VoiceCallBack {\n void onSuccess(String result);\n}", "title": "" }, { "docid": "6ca75560fc5a0b24a61d3a307a8e875f", "score": "0.664434", "text": "@Override\n public void onResponse(JSONObject response) {\n\n callback.onSuccessResponse(response); // callback de la Interface\n\n String messageResponse = \"\";\n\n try {\n messageResponse = response.getString(\"message\");\n\n } catch (JSONException e) {\n Log.i(\" MyTag JSONException\", String.valueOf(e.getMessage()));\n }\n\n if (!messageResponse.equals(\"\")){ // muestra el mensaje\n Toast.makeText(context, messageResponse, Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "625b003999ce879cd1f397a2ce09666c", "score": "0.6637466", "text": "public interface OkhttpCallBack {\n public void setOnCallBack(String data);\n}", "title": "" }, { "docid": "804c66b5851ac0a3b5b80e55302232bd", "score": "0.66282487", "text": "public interface Callbacks{\n void updateChatUI(byte [] data, byte [] nickname, byte [] geolocationData);\n void returnToMainNoConnection();\n }", "title": "" }, { "docid": "0a839becd127829fd7a0d2940515a992", "score": "0.6627748", "text": "@Override\r\n\t\t\t\t\tpublic void onCallBackExecuteMethod(String result) {\n\t\t\t\t\t}", "title": "" }, { "docid": "b14abb6515393d795bd0b783b8462622", "score": "0.66174096", "text": "public interface Callback\n {\n public void response(String result);\n }", "title": "" }, { "docid": "7722c79ff5f7bc65e9d43ca3629eb95a", "score": "0.6613665", "text": "void onResponse(Object respContent);", "title": "" }, { "docid": "f486e4426fb169ccd43971ee32b3302c", "score": "0.66090393", "text": "interface NetworkRequestCallback{\n void onCompleted(String result);\n }", "title": "" }, { "docid": "2e8bcbcbab0f5e15c62ae45b46577128", "score": "0.65918857", "text": "public interface HttpCallbackListener {\r\n void onFinish(String response);\r\n void onError(Exception e);\r\n}", "title": "" }, { "docid": "53bee8f0f0c78f99665ce5be8930a0e4", "score": "0.65857065", "text": "protected void onPostExecute(String strResponse){\n listener.ResponseReceived(strResponse);\n }", "title": "" }, { "docid": "17f2c6d9d7cb7f53880e02e825155260", "score": "0.6581622", "text": "public interface RequestListener {\n\n void onPostExecuteConnectError(TypeActionConnection keyType);\n\n void onPostExecuteError(TypeActionConnection key_connect, int errorCode, String msg);\n\n void onPostExecuteSuccess(TypeActionConnection key_connect, String response, String message);\n}", "title": "" }, { "docid": "ac2eb765ac2eaab8669f55fe6cb99a9e", "score": "0.6569815", "text": "public interface OnResponseListener {\n //分享成功的回调\n void onSuccess();\n\n //分享取消的回调\n void onCancel();\n\n //分享失败的回调\n void onFail(String message);\n}", "title": "" }, { "docid": "9b8283798b1717438c52243128091a3b", "score": "0.6543682", "text": "public interface ChatViewCallback{\n\n void setLoginSucces();\n\n void newUserConnect(User user);\n\n void onUserDisconnect(String id);\n\n void newMessage(Message msg);\n\n void userInChat(User user);\n\n\n\n}", "title": "" }, { "docid": "af5a0c57d01d92ab228637e8f40891c7", "score": "0.65429044", "text": "public void onTaskComplete(String msg);", "title": "" }, { "docid": "d68f6523708f6018adcc196dc56dda7c", "score": "0.65297496", "text": "@Override\n public void onResponse(JSONObject response) {\n\n callback.onSuccessResponse(response); // callback de la Interface\n\n String messageResponse = \"\";\n\n try {\n messageResponse = String.valueOf(response.get(\"message\"));\n\n } catch (JSONException e) {\n Log.i(\" MyTag JSONException\", String.valueOf(e.getMessage()));\n }\n\n if (!messageResponse.equals(\"\")){ // muestra el mensaje\n // Toast.makeText(context, messageResponse, Toast.LENGTH_LONG).show();\n }\n }", "title": "" }, { "docid": "5405c50c106dceaee3bc4965d0f44154", "score": "0.6525465", "text": "@Override\n\tpublic void onTaskCompleted(int id_request) {\n\t\t\n\t}", "title": "" }, { "docid": "0cff662a049f7529a92adc3615070d05", "score": "0.6521821", "text": "void onCompleted(boolean success);", "title": "" }, { "docid": "b0ce51b84746f1bb9e94287b9ec5f784", "score": "0.652038", "text": "public void callAsyncCallback(String text){\n \n}", "title": "" }, { "docid": "293484bf769c6ca36e29981429c6af28", "score": "0.6512782", "text": "@Override\r\n\t\t\tpublic void onFinish() {\n\t\t\t\tpCallBack.onFinish();\r\n\t\t\t}", "title": "" }, { "docid": "4fdf2eb639c39285250468732a0049db", "score": "0.6512145", "text": "public interface AnySDKListener {\n void onCallBack(int code, String msg);\n}", "title": "" }, { "docid": "b71bdc5f772f04eb9d881934d5be72c9", "score": "0.65106344", "text": "@Override\r\n\tpublic void onRemoteCallComplete(String json, int code) {\n\r\n\t}", "title": "" }, { "docid": "27eb2c9e42d44cc7e799edc4a31d748d", "score": "0.6509087", "text": "public interface CallBack {\n\n void onSuccessed();\n\n void onError();\n}", "title": "" }, { "docid": "e588739a82c9d4ccb5dedae654fbf342", "score": "0.6506133", "text": "public interface HttpCallbackListener {\n void onFinish(String response);\n void onError(Exception e);\n}", "title": "" }, { "docid": "e588739a82c9d4ccb5dedae654fbf342", "score": "0.6506133", "text": "public interface HttpCallbackListener {\n void onFinish(String response);\n void onError(Exception e);\n}", "title": "" }, { "docid": "e588739a82c9d4ccb5dedae654fbf342", "score": "0.6506133", "text": "public interface HttpCallbackListener {\n void onFinish(String response);\n void onError(Exception e);\n}", "title": "" }, { "docid": "e588739a82c9d4ccb5dedae654fbf342", "score": "0.6506133", "text": "public interface HttpCallbackListener {\n void onFinish(String response);\n void onError(Exception e);\n}", "title": "" }, { "docid": "283025b84bd37cadf209ec90bbf84870", "score": "0.65044266", "text": "@Override\n public void onResponse(Object arg0) {\n try {\n JSONObject js = new JSONObject(arg0.toString());\n parseJson(js);\n gfdcallback.success(talks);\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n\n System.out.println(\"8888\"+arg0.toString());\n }", "title": "" }, { "docid": "c8d9d28712ad8ccd7250b1c96eacc16e", "score": "0.650313", "text": "public interface FurtherReadingCallBack {\n\n\n\n\n void onSuccess(FurtherReadingData furtherReadingData);\n\n void onFailure(String message);\n}", "title": "" }, { "docid": "2da774fd59569fb3e6784b33da61e099", "score": "0.65028566", "text": "public interface IPlayRecommendCallBack {\n public void onResultData(int status, List<ContentInfo> data);//-1 失败,0 成功,1 开始获取\n}", "title": "" }, { "docid": "a02678befc6d02baadd8e3954e4e9d42", "score": "0.6499305", "text": "public interface AsyncCallback {\n\tpublic void callback(String json);\n}", "title": "" }, { "docid": "990e1b986410860ee585a8cff4752dd8", "score": "0.64891034", "text": "public interface OnDialogFinishedListener {\n\n void onDialogFinished(boolean isChose, int requestCode);\n}", "title": "" }, { "docid": "46302a804327a9abf840aa6ed00a9c0f", "score": "0.6484715", "text": "@Override\n public void onSuccess(Void voyd) {\n }", "title": "" }, { "docid": "68f825ce99146c01e9b20960cb5d8d12", "score": "0.64666027", "text": "@Override\n public void onResponse(Call call, Response response) throws IOException {\n Log.d(TAG, \"onResponse: done\");\n }", "title": "" }, { "docid": "a56272da0b9a01db15b74f77f4319ad5", "score": "0.6461984", "text": "public interface OnSpeechGetResultListener {\n void response(String json);\n}", "title": "" }, { "docid": "16f133d5e62d292f05edc5bb490470bc", "score": "0.64498454", "text": "public interface IAsynCompletedListener {\n public void asyncComplete(boolean success,int statusCode, long returnId);\n}", "title": "" }, { "docid": "997a68790e8e4c108ccf737d86f6e20e", "score": "0.6445781", "text": "public interface HttpResponseListenerSon {\n\n\n\n public void onSuccess(String methodName, String content);\n}", "title": "" }, { "docid": "3ff72a0e63bdb669fb476f02e1536e6c", "score": "0.6445056", "text": "public void onFinish();", "title": "" }, { "docid": "3363fd94530bc9a08b1b591ebc99807c", "score": "0.64449805", "text": "@Override\n \t public void onResponse(JSONObject response) {\n \t // result = Activity.RESULT_OK;\n \t // successfully finished\n \t result = Activity.RESULT_OK;\n \t Intent intent = new Intent(NOTIFICATION);\n\t\t // intent.putExtra(FILEPATH, outputPath);\n\t\t intent.putExtra(RESULT, result);\n\t\t sendBroadcast(intent);\n \t \tStopService();\n \t \t// makeSampleHttpRequest();\n \t \t// pDialog.dismiss();\n \t }", "title": "" }, { "docid": "a7f0084d8b501afa1aede6eb5645ee98", "score": "0.6441395", "text": "public interface Callback extends MediaSessionCompatApi23.Callback {\n /* synthetic */ void onCommand(String str, Bundle bundle, ResultReceiver resultReceiver);\n\n /* synthetic */ void onCustomAction(String str, Bundle bundle);\n\n /* synthetic */ void onFastForward();\n\n /* synthetic */ boolean onMediaButtonEvent(Intent intent);\n\n /* synthetic */ void onPause();\n\n /* synthetic */ void onPlay();\n\n /* synthetic */ void onPlayFromMediaId(String str, Bundle bundle);\n\n /* synthetic */ void onPlayFromSearch(String str, Bundle bundle);\n\n void onPrepare();\n\n void onPrepareFromMediaId(String str, Bundle bundle);\n\n void onPrepareFromSearch(String str, Bundle bundle);\n\n void onPrepareFromUri(Uri uri, Bundle bundle);\n\n /* synthetic */ void onRewind();\n\n /* synthetic */ void onSeekTo(long j);\n\n /* synthetic */ void onSetRating(Object obj);\n\n /* synthetic */ void onSetRating(Object obj, Bundle bundle);\n\n /* synthetic */ void onSkipToNext();\n\n /* synthetic */ void onSkipToPrevious();\n\n /* synthetic */ void onSkipToQueueItem(long j);\n\n /* synthetic */ void onStop();\n }", "title": "" }, { "docid": "01f37a105e5c23d8a0ba8b465fa644f2", "score": "0.643296", "text": "void onCareTeamPatientComplete();", "title": "" }, { "docid": "11aefcd2f54e57123e14a6f888e79956", "score": "0.6413261", "text": "public interface FriendMissionDefaultCallback {\n\n void handleMessage(int errorCode);\n}", "title": "" }, { "docid": "62fe84740777dadcd584ff92b9a12602", "score": "0.6406769", "text": "public interface CreateAnnouncementCallback\n{\n void success(RideAnnouncement announcment);\n\n void fail(String message);\n}", "title": "" }, { "docid": "6a1d618c8bcb36a3e527e5e7071a61c5", "score": "0.6401237", "text": "public interface OnFeedBackListener {\n\n void onSuccess(Object object);\n void onFail(Object object);\n\n\n\n}", "title": "" }, { "docid": "bb77b32533a9f96576b0c6acca12d68d", "score": "0.6399888", "text": "@Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n Log.d(\"asd\", \"---------------- this is response : \" + response);\n\n try {\n JSONObject serverResp = new JSONObject(response.toString());\n System.out.println(serverResp.toString());\n obCallback.accept(serverResp);\n } catch (JSONException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "9b752ff2a1fb1d600a15bac15501f112", "score": "0.6397408", "text": "public void onPresenceCallback(String resource, int result);", "title": "" }, { "docid": "7629d0ad5b2689c02ecedda6e505e75e", "score": "0.63955325", "text": "private static void onPresenceCallback(String resource, int errorValue) {\n if (null != s_presenceListener) {\n Log.i(\"ThingsManagerCallback : onPresenceCallback\",\n \"Received Callback from JNI\");\n s_presenceListener.onPresenceCallback(resource, errorValue);\n }\n }", "title": "" }, { "docid": "a558a6cf799184901b137cfc46292777", "score": "0.63870066", "text": "public interface RemoteTaskResponseListener {\n\n}", "title": "" }, { "docid": "355ebe92a17d78345d566967d1a7acbc", "score": "0.6386722", "text": "public interface UserDetailCallback extends ActivityCallback{\n void openACkFragment();\n void startMap(int requestCode);\n}", "title": "" }, { "docid": "ad9dfe1b5861c3821f1b829c7cd6020f", "score": "0.6385491", "text": "public interface CheckPositionCallbackReceiver {\n public void receiveData(String mobile_id, String task_id,String description, String latitude, String longitude, String done, String distance);\n}", "title": "" }, { "docid": "5f61bbe27d2d39ca2df7350763df2bf0", "score": "0.6377718", "text": "public void onFinished();", "title": "" }, { "docid": "2378a79b3af8591b114caa1f61b584e1", "score": "0.637519", "text": "public interface OnlineChatCallback extends BaseCallback {\n\n public void onMessageSent();\n\n}", "title": "" }, { "docid": "28aee334ebe1a4ba7df1efe0aec73c34", "score": "0.6371079", "text": "public interface IHttpResponseListener {\n\t/**\n\t * This method call when it receive the server response data and pass the\n\t * callback to it's parent class.\n\t * \n\t * @param responseData\n\t * server response data\n\t */\n\tpublic void postHttpResponse(String responseData);\n\n\t/**\n\t * This method use to callback the server response to provisioner class.If\n\t * server response is null or any exception occured this method fire the\n\t * callback to provisioner class\n\t */\n\tpublic void postErrorResponse();\n\n}", "title": "" }, { "docid": "50402adf031ac087f5643b634f61a278", "score": "0.6368676", "text": "void onResponse(T t);", "title": "" }, { "docid": "73599ad3af9f368c503bf5c8b67ca8c7", "score": "0.6353411", "text": "@Override\n\t \t\t\t\t\t\t\tpublic void onResponse(ApiResponse response) {\n\t \t\t\t\t\t\t\t\tfinish();\t\t\n\t \t\t\t\t\t\t\t}", "title": "" }, { "docid": "c5bb4f75583a7db4dd71552798903ae1", "score": "0.63470906", "text": "public interface OnCompleteListener {\n\n void onComplete();\n\n void onFailure();\n\n}", "title": "" }, { "docid": "194d7bf599faca86cee55eee19d137bf", "score": "0.6340598", "text": "@Override\n\t\t\t\t\t\t\tpublic void onDataCallBack(String request, int code) {\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "d83b1064b4e4f95f28555c61edc096f0", "score": "0.6339164", "text": "public interface OnStartMeetingFinishedListener {\n public void onStartMeetingFinished(JSONObject jsonObject);\n\n}", "title": "" }, { "docid": "f8b2dd354cb3594f2819c8d40096063d", "score": "0.6336649", "text": "public interface OnShareCallBack {\n\n void onSuccess();\n\n}", "title": "" }, { "docid": "8bb29a0f2f55c6d31ec0f562c3a08425", "score": "0.6333294", "text": "public interface HttpRequestCallbackListener {\n void onFinish(String result);\n void onError(Exception e);\n}", "title": "" }, { "docid": "79db851783432b32e072027dde3aa664", "score": "0.63323224", "text": "public interface OnBaseGetNetDataListener {\n public void onBegin();\n public void onSuccess(Object object);\n public void onError(String msg);\n}", "title": "" }, { "docid": "37dd8d10ec4b3c3eec4b3808f52f578b", "score": "0.6328054", "text": "public interface ResponseCallback {\n public void onSuccess(Object object);\n public void onError(Request request, Exception e);\n}", "title": "" }, { "docid": "0ae437aee0f535466354ed511e966f48", "score": "0.63248575", "text": "@Override\r\n\t\t\tpublic void onComplete(Platform arg0, int arg1, HashMap<String, Object> arg2) {\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"complete\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n//\t\t\t\tStringRequest rq=new StringRequest(Method.POST,ConstantSet.addUserAddress, new Listener<String>() {\r\n//\r\n//\t\t\t\t\t@Override\r\n//\t\t\t\t\tpublic void onResponse(String response) {\r\n//\t\t\t\t\t\t// TODO Auto-generated method stub\r\n//\t\t\t\t\t\t\r\n//\t\t\t\t\t\tSystem.out.println(response);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}, new Response.ErrorListener() {\r\n//\r\n//\t\t\t\t\t@Override\r\n//\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\r\n//\t\t\t\t\t\t// TODO Auto-generated method stub\r\n//\t\t\t\t\t\tSystem.out.println(\"fail\");\r\n//\t\t\t\t\t}\r\n//\t\t\t\t})\r\n//\t\t\t\t\t\t{\r\n//\t\t\t\t\t@Override\r\n//\t\t\t\t\tprotected Map<String, String> getParams() throws AuthFailureError {\r\n//\t\t\t\t\t\t// TODO Auto-generated method stub\r\n//\t\t\t\t\t\t\r\n//\t\t\t\t\t\tMap<String,String> map=new HashMap<String,String>();\r\n//\t\t\t\t\t\tmap.put(\"act\",\"shareemoji\");\r\n//\t\t\t\t\t\tmap.put(\"emojiid\",emojiid);\r\n//\t\t\t\t\t\tmap.put(\"user_id\",ConstantSet.userId);\r\n//\t\t\t\t\t\treturn map;\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\t\t};\r\n//\t\t\t\tMyApplication.getRq().add(rq);\r\n\t\t\t}", "title": "" }, { "docid": "0a3df5f102fa3bf0b3af18a28a972be2", "score": "0.6324488", "text": "public interface MessageCallback {\n\n void onMessageReceived(String message);\n}", "title": "" }, { "docid": "37693eaf0995b7283c24e7bf6420d8f3", "score": "0.6323", "text": "public interface OnTaskCompleted {\n void onTaskCompleted();\n}", "title": "" }, { "docid": "4d43e1f840abd1cb59045b8563da9163", "score": "0.632217", "text": "public void onResponse(String response, String methodName) {\r\n dismissProgress();\r\n\r\n Log.e(\"response\", response);\r\n if (response == null || response.equals(\"\")) {\r\n return;\r\n } else if (methodName.equals(\"userPrefencesUpdate\")) {\r\n try{\r\n JSONObject jsonObject = new JSONObject(response);\r\n if (!jsonObject.getBoolean(\"error\")) {\r\n //done\r\n\r\n SharedPreferences.Editor pre = getPreferences().edit();\r\n pre.putString(RequestParamUtils.REGISTER, \"registerdiscoverypreference\");\r\n pre.commit();\r\n\r\n Toast.makeText(this, getResources().getString(R.string.info_updated_successfully), Toast.LENGTH_SHORT).show();\r\n Intent intent = new Intent(this, DiscoveryPreferencesActivity.class);\r\n startActivity(intent);\r\n\r\n } else {\r\n Toast.makeText(this, jsonObject.getString(\"message\"), Toast.LENGTH_SHORT).show();\r\n }\r\n } catch (Exception e) {\r\n Log.e(\"error\", e.getMessage());\r\n }\r\n }\r\n }", "title": "" }, { "docid": "a3ee3d976cbdc919055e096d82fb8502", "score": "0.63178897", "text": "@Override\n public void onCallBack(String data) {\n Log.i(TAG, \"发送成功 \" + data);\n }", "title": "" }, { "docid": "639fd166a8acc4b4f42cd458b7744038", "score": "0.6313495", "text": "@Override\n\t\t\tpublic void onCompleted() {\n\t\t\t\tresponseObserver.onCompleted();\n\t\t\t}", "title": "" }, { "docid": "d0fabc297ce22acfd8f4a63deab9a596", "score": "0.63128436", "text": "public interface PostsResponseCallback {\n void onPostsResponseCallback(ArrayList<PostsInfo> postsInfos);\n}", "title": "" }, { "docid": "9a79f91baa3d69870dd24d8856da9f57", "score": "0.6311606", "text": "@Override\n public void onStatusNotify(RETURN_STATUS status, String str_response) {\n\n }", "title": "" }, { "docid": "0f6287bbccd2c041fc193300fc13811a", "score": "0.6310544", "text": "@Override\n public void onResponse(Call call, Response response) throws IOException {\n }", "title": "" }, { "docid": "0f6287bbccd2c041fc193300fc13811a", "score": "0.6310544", "text": "@Override\n public void onResponse(Call call, Response response) throws IOException {\n }", "title": "" }, { "docid": "2fd4d7ce4f57742cf3cb5428e6134dbf", "score": "0.6306058", "text": "public interface RequestCallBack extends Serializable {\n\n void onSuccess(String requestId, HttpResponse response);\n\n void onFailure(String requestId, Throwable throwable, HttpResponse errorResponse);\n\n void onFinish(String requestId);\n }", "title": "" }, { "docid": "24cb254e4f696878931af6b28b237f00", "score": "0.6305046", "text": "interface GetUserCallBack {\n public abstract void done();\n}", "title": "" }, { "docid": "8c2a8199c4c6656ee2c159ec8bd3dbdc", "score": "0.6299832", "text": "public void onAsyncWebRequestCompleted();", "title": "" }, { "docid": "3ef847ec9ed884f34b86c8b229391d56", "score": "0.62981063", "text": "public interface OnDataRecievedListener {\n void onDataRecieved(Response response, Object object);\n}", "title": "" }, { "docid": "340f210e6c74c219028bd2244254e82d", "score": "0.6294958", "text": "public interface HttpCallBack {\n\n void onSuccess(String json,NetThead thread);\n\n void onFail(String message,NetThead thread);\n}", "title": "" }, { "docid": "714f46788882c9c01875d55fbfc00459", "score": "0.6294159", "text": "public interface TestCallBack {\n public void success(String info);\n public void error();\n}", "title": "" }, { "docid": "f7a8f7638185f8b6e6290cf43f4d9a1b", "score": "0.62938213", "text": "@Override\n\tpublic void onCallback(Object pCallbackValue) {\n\t}", "title": "" }, { "docid": "d6f07b455aad3ff229c18eb7e3b70e12", "score": "0.62936306", "text": "public interface IOnAplFinishCallback {\n void onAplFinish();\n}", "title": "" }, { "docid": "6c330f213ef2140ea8a5e4177904c7b1", "score": "0.6285483", "text": "public interface OnFinishListener {\n\n void onFinish();\n\n}", "title": "" }, { "docid": "f3ef2d860b01cfc102d7e6e4de556d2b", "score": "0.62851906", "text": "public interface OnTaskCompleted{\n void onTaskCompleted(Object obj);\n}", "title": "" } ]
5436c8a39bf0646c12077f9e4bb729f6
The request builder for this collection of ThreatAssessmentResult
[ { "docid": "11ae4072342da237aabd0955941c2c1a", "score": "0.53950673", "text": "public ThreatAssessmentResultCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {\n super(requestUrl, client, requestOptions, ThreatAssessmentResultCollectionResponse.class, IThreatAssessmentResultCollectionPage.class);\n }", "title": "" } ]
[ { "docid": "c55841c00199a7ffb96d38310707c8b9", "score": "0.5321049", "text": "public IThreatAssessmentResultCollectionRequest expand(final String value) {\n addQueryOption(new com.microsoft.graph.options.QueryOption(\"$expand\", value));\n return (ThreatAssessmentResultCollectionRequest)this;\n }", "title": "" }, { "docid": "4b245c01b1114ce9de236e3a563a28e9", "score": "0.49297112", "text": "public pb4server.QueryAllianceReqListAskRt.Builder getQueryAllianceReqListAskRtBuilder() {\n return getQueryAllianceReqListAskRtFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "f3dca251f11cd11edcd6e3785f74632c", "score": "0.48500025", "text": "IItemInsightsRequestBuilder insights();", "title": "" }, { "docid": "f78ac02460f1e3c282b9ef28ed088337", "score": "0.4838514", "text": "public restful.api.metric.analyzer.cli.model.generated.internal.Model.RequestBody.Builder getRequestBodiesBuilder(\n int index) {\n return getRequestBodiesFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "2eba525385d687ebf7dac690b6b41df7", "score": "0.47648746", "text": "public IThreatAssessmentResultCollectionRequest select(final String value) {\n addQueryOption(new com.microsoft.graph.options.QueryOption(\"$select\", value));\n return (ThreatAssessmentResultCollectionRequest)this;\n }", "title": "" }, { "docid": "2d97d79af6fb64d96ad960b4b68958fe", "score": "0.47232676", "text": "public IThreatAssessmentResultCollectionRequest filter(final String value) {\n addQueryOption(new com.microsoft.graph.options.QueryOption(\"$filter\", value));\n return (ThreatAssessmentResultCollectionRequest)this;\n }", "title": "" }, { "docid": "41b9f7550922f7ec29aac19f608fb365", "score": "0.46719223", "text": "public EntitledResultSetDTO getEntitledAttributes(String subjectName, String resourceName,\n String subjectId, String action, boolean enableChildSearch)\n throws EntitlementException {\n String cacheKey = \"\";\n\n if (cachingEnable) {\n\n cacheKey = (subjectId != null ? subjectId : \"\") + (subjectName != null ? subjectName : \"\") +\n (resourceName != null ? resourceName : \"\") +\n (action != null ? action : \"\") + enableChildSearch;\n SearchResult searchResult = policySearchCache.getFromCache(cacheKey);\n\n if (searchResult != null) {\n return searchResult.getResultSetDTO();\n }\n }\n\n AttributeDTO subjectAttributeDTO;\n boolean hierarchicalResource = false;\n EntitledResultSetDTO resultSetDTO = new EntitledResultSetDTO();\n Set<EntitledAttributesDTO> resultSet = new HashSet<EntitledAttributesDTO>();\n\n if (subjectName != null && subjectName.trim().length() > 0) {\n subjectAttributeDTO = new AttributeDTO();\n subjectAttributeDTO.setCategory(PDPConstants.SUBJECT_CATEGORY_URI);\n subjectAttributeDTO.setAttributeValue(subjectName);\n subjectAttributeDTO.setAttributeDataType(PDPConstants.STRING_DATA_TYPE);\n if (subjectId != null && subjectId.trim().length() > 0) {\n subjectAttributeDTO.setAttributeId(subjectId);\n } else {\n subjectAttributeDTO.setAttributeId(PDPConstants.SUBJECT_ID_DEFAULT);\n }\n } else {\n throw new EntitlementException(\"Error : subject value can not be null\");\n }\n\n if (getResponse(Arrays.asList(subjectAttributeDTO))) {\n EntitledAttributesDTO dto = new EntitledAttributesDTO();\n dto.setAllActions(true);\n dto.setAllResources(true);\n EntitledResultSetDTO setDTO = new EntitledResultSetDTO();\n setDTO.setEntitledAttributesDTOs(new EntitledAttributesDTO[]{dto});\n return setDTO;\n }\n\n for (PolicyFinderModule module : finderModules) {\n if (module.isDefaultCategoriesSupported() &&\n PolicyFinderModule.COMBINATIONS_BY_CATEGORY_AND_PARAMETER ==\n module.getSupportedSearchAttributesScheme()) {\n Map<String, Set<AttributeDTO>> requestMap = module.\n getSearchAttributes(null, new HashSet<AttributeDTO>(Arrays.asList(subjectAttributeDTO)));\n\n for (Map.Entry<String, Set<AttributeDTO>> entry : requestMap.entrySet()) {\n Set<AttributeDTO> attributeDTOs = entry.getValue();\n if (attributeDTOs != null) {\n Set<AttributeDTO> actions = new HashSet<AttributeDTO>();\n Set<AttributeDTO> resources = new HashSet<AttributeDTO>();\n Set<AttributeDTO> requestAttributes = new HashSet<AttributeDTO>();\n if (resourceName != null && resourceName.trim().length() > 0) {\n AttributeDTO resourceAttribute = new AttributeDTO();\n resourceAttribute.setAttributeValue(resourceName);\n resourceAttribute.setAttributeDataType(PDPConstants.STRING_DATA_TYPE);\n resourceAttribute.setAttributeId(PDPConstants.RESOURCE_ID_DEFAULT);\n resourceAttribute.setCategory(PDPConstants.RESOURCE_CATEGORY_URI);\n resources.add(resourceAttribute);\n hierarchicalResource = true;\n }\n\n AttributeDTO resourceScopeAttribute = new AttributeDTO();\n resourceScopeAttribute.setAttributeValue(PDPConstants.RESOURCE_DESCENDANTS);\n resourceScopeAttribute.setAttributeDataType(PDPConstants.STRING_DATA_TYPE);\n resourceScopeAttribute.setAttributeId(PDPConstants.RESOURCE_SCOPE_ID);\n resourceScopeAttribute.setCategory(PDPConstants.RESOURCE_CATEGORY_URI);\n\n for (AttributeDTO attributeDTO : attributeDTOs) {\n if (PDPConstants.ENVIRONMENT_CATEGORY_URI.equals(attributeDTO.getCategory()) ||\n PDPConstants.ENVIRONMENT_ELEMENT.equals(attributeDTO.getCategory())) {\n requestAttributes.add(attributeDTO);\n attributeDTO.setAttributeId(PDPConstants.ENVIRONMENT_ID_DEFAULT);\n requestAttributes.add(attributeDTO);\n } else if (PDPConstants.ACTION_CATEGORY_URI.equals(attributeDTO.getCategory()) ||\n PDPConstants.ACTION_ELEMENT.equals(attributeDTO.getCategory())) {\n if (action != null && action.trim().length() > 0) {\n attributeDTO.setAttributeValue(action);\n }\n actions.add(attributeDTO);\n attributeDTO.setAttributeId(PDPConstants.ACTION_ID_DEFAULT);\n actions.add(attributeDTO);\n } else if ((PDPConstants.RESOURCE_CATEGORY_URI.equals(attributeDTO.getCategory()) ||\n PDPConstants.RESOURCE_ELEMENT.equals(attributeDTO\n .getCategory())) &&\n !hierarchicalResource) {\n attributeDTO.setAttributeId(PDPConstants.RESOURCE_ID_DEFAULT);\n resources.add(attributeDTO);\n }\n }\n\n if (resultSetDTO.getMessage() == null) {\n List<String> entitledActions = new ArrayList<String>();\n for (AttributeDTO actionDTO : actions) {\n List<AttributeDTO> currentRequestAttributes =\n new ArrayList<AttributeDTO>();\n currentRequestAttributes.add(subjectAttributeDTO);\n currentRequestAttributes.add(actionDTO);\n if (getResponse(currentRequestAttributes)) {\n EntitledAttributesDTO dto = new EntitledAttributesDTO();\n dto.setAllResources(true);\n dto.setAction(actionDTO.getAttributeValue());\n resultSet.add(dto);\n entitledActions.add(actionDTO.getAttributeValue());\n }\n }\n\n for (AttributeDTO resource : resources) {\n if (PDPConstants.RESOURCE_CATEGORY_URI.equals(resource.getCategory())\n || PDPConstants.RESOURCE_ELEMENT.equals(resource.getCategory())) {\n\n boolean allActionsAllowed = false;\n\n int noOfRequests = 1;\n if (enableChildSearch) {\n noOfRequests = 0;\n }\n\n while (noOfRequests < 2) {\n List<AttributeDTO> currentRequestAttributes =\n new ArrayList<AttributeDTO>();\n for (AttributeDTO dto : requestAttributes) {\n currentRequestAttributes.add(dto);\n }\n if (noOfRequests < 1) {\n currentRequestAttributes.add(resourceScopeAttribute);\n }\n currentRequestAttributes.add(subjectAttributeDTO);\n currentRequestAttributes.add(resource);\n\n if (getResponse(currentRequestAttributes)) {\n EntitledAttributesDTO dto = new EntitledAttributesDTO();\n dto.setResourceName(resource.getAttributeValue());\n dto.setAllActions(true);\n resultSet.add(dto);\n allActionsAllowed = true;\n }\n noOfRequests++;\n }\n\n if (allActionsAllowed) {\n continue;\n }\n\n for (AttributeDTO actionAttributeDTO : actions) {\n\n if (entitledActions.contains(actionAttributeDTO.getAttributeValue())) {\n continue;\n }\n\n noOfRequests = 1;\n if (enableChildSearch) {\n noOfRequests = 0;\n }\n while (noOfRequests < 2) {\n List<AttributeDTO> currentRequestAttributes =\n new ArrayList<AttributeDTO>();\n for (AttributeDTO dto : requestAttributes) {\n currentRequestAttributes.add(dto);\n }\n if (noOfRequests < 1) {\n currentRequestAttributes.add(resourceScopeAttribute);\n }\n currentRequestAttributes.add(subjectAttributeDTO);\n currentRequestAttributes.add(resource);\n currentRequestAttributes.add(actionAttributeDTO);\n\n if (getResponse(currentRequestAttributes)) {\n EntitledAttributesDTO dto = new EntitledAttributesDTO();\n dto.setResourceName(resource.getAttributeValue());\n dto.setAction(actionAttributeDTO.getAttributeValue());\n resultSet.add(dto);\n }\n noOfRequests++;\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n resultSetDTO.setEntitledAttributesDTOs(resultSet.\n toArray(new EntitledAttributesDTO[resultSet.size()]));\n\n if (cachingEnable) {\n SearchResult result = new SearchResult();\n result.setResultSetDTO(resultSetDTO);\n policySearchCache.addToCache(cacheKey, result);\n if (log.isDebugEnabled()) {\n int tenantId = CarbonContext.getThreadLocalCarbonContext().getTenantId();\n log.debug(\"PDP Decision Cache Updated for tenantId \" + tenantId);\n }\n }\n return resultSetDTO;\n }", "title": "" }, { "docid": "12cb16b8f1fed3a495ad6a60236236f2", "score": "0.46586913", "text": "@POST(\"UserAssessment/getAssessmentList \")\n Call<JsonArray> getAssessmentTrainer(@Body AssessmentTrainerFromReportReq assessmentTrainerFromReportReq);", "title": "" }, { "docid": "c5774705bcb98abcc18f3387c8ed7157", "score": "0.46221316", "text": "private SkillApplyQueryReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "4c1faff5076e32e1db14a377c01283f3", "score": "0.45927322", "text": "public Builder setSimilarTo(Student student) {\n\n this.studentToBuild.firstName = student.firstName;\n this.studentToBuild.lastName = student.lastName;\n this.studentToBuild.otherNames = student.otherNames;\n this.studentToBuild.birthday = student.birthday;\n this.studentToBuild.gender = student.gender;\n this.studentToBuild.passportNumber = student.passportNumber;\n this.studentToBuild.taxIdNumber = student.taxIdNumber;\n this.studentToBuild.registrationAddress =\n student.registrationAddress;\n this.studentToBuild.email = student.email;\n this.studentToBuild.phoneNumber = student.phoneNumber;\n this.studentToBuild.numberInCaseOfEmergency =\n student.numberInCaseOfEmergency;\n this.studentToBuild.privilege = student.privilege;\n this.studentToBuild.contract = student.contract;\n this.studentToBuild.isUkrainian = student.isUkrainian;\n this.studentToBuild.fullTime = student.fullTime;\n this.studentToBuild.isMilitary = student.isMilitary;\n this.studentToBuild.faculty = student.faculty;\n this.studentToBuild.speciality = student.speciality;\n this.studentToBuild.groupNumber = student.groupNumber;\n this.studentToBuild.NameOfGroupLeader = student.NameOfGroupLeader;\n this.studentToBuild.lastNameOfGroupLeader =\n student.lastNameOfGroupLeader;\n this.studentToBuild.phoneNumberOfGroupLeader =\n student.phoneNumberOfGroupLeader;\n this.studentToBuild.sportsClubs = student.sportsClubs;\n this.studentToBuild.scienceWork = student.scienceWork;\n this.studentToBuild.inUniversityBoard = student.inUniversityBoard;\n this.studentToBuild.isDriverLicense = student.isDriverLicense;\n this.studentToBuild.liveInDorm = student.liveInDorm;\n return this;\n }", "title": "" }, { "docid": "6b29de30de4fc143fd7096c8b39c11b1", "score": "0.4569624", "text": "public RecipientsAnticipationsResponse build() {\r\n return recipientsAnticipationsResponse;\r\n }", "title": "" }, { "docid": "aead00b698a62ffaf17b7cbfe1cc2037", "score": "0.45487937", "text": "public ActionSender sendSkills() {\n\t\tfor (int i = 0; i < Skills.getSkillCount(); i++) {\n\t\t\tsendSkill(i);\n\t\t}\n\t\treturn this;\n\t}", "title": "" }, { "docid": "1247b489e90144b7169b505175e51047", "score": "0.4524877", "text": "WithCreate withAssessmentType(AssessmentType assessmentType);", "title": "" }, { "docid": "fcafd47b24debd92127dd0f5210bd168", "score": "0.45240828", "text": "interface WithAssessmentType {\n /**\n * Specifies the assessmentType property: BuiltIn if the assessment based on built-in Azure Policy\n * definition, Custom if the assessment based on custom Azure Policy definition.\n *\n * @param assessmentType BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the\n * assessment based on custom Azure Policy definition.\n * @return the next definition stage.\n */\n WithCreate withAssessmentType(AssessmentType assessmentType);\n }", "title": "" }, { "docid": "8a5c9932945040351abb7987e64cb11b", "score": "0.4508439", "text": "public RecipientsAnticipationsResponseBuilder() {\r\n recipientsAnticipationsResponse = new RecipientsAnticipationsResponse();\r\n }", "title": "" }, { "docid": "9628d4afbc1b3a33cbeb4314c684a722", "score": "0.44762227", "text": "@Override\r\n public String toString() {\r\n return \"BulkUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest [\"\r\n + \"customerId=\" + customerId + \", customAttribute=\" + customAttribute\r\n + \", idempotencyKey=\" + idempotencyKey + \"]\";\r\n }", "title": "" }, { "docid": "a529d829c23fe23120bcc929515d67c9", "score": "0.44609892", "text": "IDataClassificationServiceRequest buildRequest(final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions);", "title": "" }, { "docid": "17931174ea946bb83ea7b16b8ce1c6de", "score": "0.44536373", "text": "public static GeneralCategoryRecommendationPagedQueryResponseBuilder builder() {\n return GeneralCategoryRecommendationPagedQueryResponseBuilder.of();\n }", "title": "" }, { "docid": "27caacb38db1f2af6eb65982fb327da9", "score": "0.44454542", "text": "public BulkModifyRequestBuilder() {\n super(new BulkModifyRequestType());\n }", "title": "" }, { "docid": "81bf2b91cbcc536b7daa091d640f4984", "score": "0.44438392", "text": "protected RequestSpecification requestSpecs() {\n return given()\n .contentType(ContentType.JSON)\n .accept(ContentType.JSON)\n .log().everything();\n }", "title": "" }, { "docid": "eede73edab9fec32bfa99e97e5c9da9c", "score": "0.44035074", "text": "public pb4server.AllianceActivityScoreAddAskRt.Builder getAllianceActivityScoreAddAskRtBuilder() {\n return getAllianceActivityScoreAddAskRtFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "7592f3a356f76764aac3395eecea0eed", "score": "0.43923834", "text": "ServerVulnerabilityAssessmentInner innerModel();", "title": "" }, { "docid": "f5839af4aa7c44de463af4505bfb9182", "score": "0.4372311", "text": "private FetchWaiterListRequest fetchWaiterListRequest() {\n\n\n FetchWaiterListRequest fetchWaiterListRequest = new FetchWaiterListRequest();\n fetchWaiterListRequest.setRest_id(restid);\n\n Log.w(TAG,\"FetchWaiterListRequest\"+ new Gson().toJson(fetchWaiterListRequest));\n return fetchWaiterListRequest;\n\n }", "title": "" }, { "docid": "b24307b392aa147b4349ddd27f95c2f2", "score": "0.43701234", "text": "private SkillListReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "e843b40d26ea947a8b07cd13a9333bd9", "score": "0.43538836", "text": "public IThreatAssessmentResultCollectionRequest top(final int value) {\n addQueryOption(new com.microsoft.graph.options.QueryOption(\"$top\", value + \"\"));\n return (ThreatAssessmentResultCollectionRequest)this;\n }", "title": "" }, { "docid": "89e1713de84313d56c9dd7c65ccc5662", "score": "0.433635", "text": "@Test\n\tpublic void searchAssessmentItem() {\n\t\tString contentString = \"{ \\\"request\\\": { \\\"metadata\\\": { \\\"filters\\\": [ {\\\"property\\\" : \\\"template_id\\\", \\\"operator\\\": \\\"=\\\", \\\"value\\\": \\\"domain_3490\\\"} ] }, \\\"sortOrder\\\": [ {\\\"sortField\\\": \\\"code\\\", \\\"sortOrder\\\": \\\"DESC\\\"} ], \\\"startPosition\\\": 0, \\\"resultSize\\\": 10 } }\";\n\t\tString path = \"/v1/assessmentitem/search\";\n\t\ttry {\n\t\t\tactions = this.mockMvc.perform(MockMvcRequestBuilders.post(path).header(\"user-id\", \"ilimi\")\n\t\t\t\t\t.contentType(MediaType.APPLICATION_JSON).content(contentString));\n\t\t\tAssert.assertEquals(200, actions.andReturn().getResponse().getStatus());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tResponse resp = jsonToObject(actions);\n\t\tAssert.assertEquals(\"successful\", resp.getParams().getStatus());\n\t}", "title": "" }, { "docid": "fa3c435ff93411bba02a7743c0226b18", "score": "0.43316522", "text": "public QuerySloRequest() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "e6f8374feb33d626b6ca32822e8c199d", "score": "0.43207154", "text": "public pb4server.QueryAllianceListAskRt.Builder getQueryAllianceListAskRtBuilder() {\n return getQueryAllianceListAskRtFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "166d50555f756f0888e9553c038144d0", "score": "0.43160328", "text": "public UpdateAutomaticAnticipationSettingsRequest build() {\r\n return updateAutomaticAnticipationSettingsRequest;\r\n }", "title": "" }, { "docid": "fa9fcf97f913606df6b74d48a2dbc25b", "score": "0.43094862", "text": "private RequestWithList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "b1d0ae893dd550de10c9fe954a80c5d2", "score": "0.4306492", "text": "public com.funcy.g01.base.proto.service.FriendProtoBuffer.FriendReqVoProto.Builder getFriendReqsBuilder(\n int index) {\n return getFriendReqsFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "7a0b3264b7cd2bff3b07ab884d26f859", "score": "0.4306329", "text": "public static ClassifierOptionsRequest createClassifierOptionsRequest() {\n ClassifierOptionsRequest classifierOptionsRequest = new ClassifierOptionsRequest();\n classifierOptionsRequest.setEvaluationMethodReport(new EvaluationMethodReport());\n classifierOptionsRequest.setEvaluationMethodReport(createEvaluationMethodReport());\n classifierOptionsRequest.setDataHash(\n DigestUtils.md5DigestAsHex(RELATION_NAME.getBytes(StandardCharsets.UTF_8)));\n return classifierOptionsRequest;\n }", "title": "" }, { "docid": "dffd18c57ddabebe7539b4633b929dc5", "score": "0.4305964", "text": "public Object getProspectCampaignSpecificationRequestActionTaskRecord() {\n return prospectCampaignSpecificationRequestActionTaskRecord;\n }", "title": "" }, { "docid": "bb335f03cfe573fb7ca2c50c9c9d2bd0", "score": "0.4279921", "text": "public edu.usfca.cs.dfs.messages.Messages.StorageLocationRequest.Builder getStorageLocationRequestBuilder() {\n return getStorageLocationRequestFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "9d171c695f00da48bfc63377a0ee627b", "score": "0.42790818", "text": "@RequestMapping(value = \"/postSurvey\", method = RequestMethod.POST, consumes = \"application/json\")\r\n \tpublic void postSurvey(@RequestBody List<MarketSurvey> lstSurvey) {\r\n\t\tlog.info(\"\");\r\n \t\tlog.info(\"Market Survey Consumer: GOT /postSurvey:\");\r\n \t\tlog.info(\"SUBSCRIPTION:\");\r\n \t\tlog.info(\"size={}\", lstSurvey.size());\r\n \t\t\r\n \t\tlstSurvey.stream().forEach(t-> {\r\n \t \t\tlog.info(\"----------------------------------\");\r\n \t \t\tlog.info(\"Survey:\");\r\n \t \t\tlog.info(\"Subject={}\", t.getSubject());\r\n \t \t\tlog.info(\"Id={}\", t.getId());\r\n \t \t\tlog.info(\"Age={}\", t.getAge());\r\n \t \t\tlog.info(\"Gender={}\", t.getGender());\r\n \t \t\tlog.info(\"Income={}\", t.getIncome());\r\n \t \t\tlog.info(\"Currency={}\", t.getCurrency());\r\n \t \t\tlog.info(\"County={}\", t.getCountry());\r\n \t \t\tlog.info(\"Any other data={}\", t.getAnyData());\r\n \t \t\tlog.info(\"----------------------------------\");\r\n \t\t});\r\n \t\t\r\n \t}", "title": "" }, { "docid": "948b3386a733d435bf9e18f944e01e9f", "score": "0.42717448", "text": "private HttpRequest _buildGetAnticipationsRequest(\r\n final String recipientId,\r\n final Integer page,\r\n final Integer size,\r\n final String status,\r\n final String timeframe,\r\n final DateTime paymentDateSince,\r\n final DateTime paymentDateUntil,\r\n final DateTime createdSince,\r\n final DateTime createdUntil) throws IOException, APIException {\r\n //the base uri for api requests\r\n String _baseUri = Configuration.baseUri;\r\n\r\n //prepare query string for API call\r\n StringBuilder _queryBuilder = new StringBuilder(_baseUri + \"/recipients/{recipient_id}/anticipations\");\r\n\r\n //process template parameters\r\n Map<String, Object> _templateParameters = new HashMap<String, Object>();\r\n _templateParameters.put(\"recipient_id\", recipientId);\r\n APIHelper.appendUrlWithTemplateParameters(_queryBuilder, _templateParameters);\r\n\r\n //process query parameters\r\n Map<String, Object> _queryParameters = new HashMap<String, Object>();\r\n if (page != null) {\r\n _queryParameters.put(\"page\", page);\r\n }\r\n if (size != null) {\r\n _queryParameters.put(\"size\", size);\r\n }\r\n if (status != null) {\r\n _queryParameters.put(\"status\", status);\r\n }\r\n if (timeframe != null) {\r\n _queryParameters.put(\"timeframe\", timeframe);\r\n }\r\n if (paymentDateSince != null) {\r\n _queryParameters.put(\"payment_date_since\", DateTimeHelper.toRfc8601DateTime(paymentDateSince));\r\n }\r\n if (paymentDateUntil != null) {\r\n _queryParameters.put(\"payment_date_until\", DateTimeHelper.toRfc8601DateTime(paymentDateUntil));\r\n }\r\n if (createdSince != null) {\r\n _queryParameters.put(\"created_since\", DateTimeHelper.toRfc8601DateTime(createdSince));\r\n }\r\n if (createdUntil != null) {\r\n _queryParameters.put(\"created_until\", DateTimeHelper.toRfc8601DateTime(createdUntil));\r\n }\r\n APIHelper.appendUrlWithQueryParameters(_queryBuilder, _queryParameters);\r\n //validate and preprocess url\r\n String _queryUrl = APIHelper.cleanUrl(_queryBuilder);\r\n\r\n //load all headers for the outgoing API request\r\n Map<String, String> _headers = new HashMap<String, String>();\r\n _headers.put(\"user-agent\", BaseController.userAgent);\r\n _headers.put(\"accept\", \"application/json\");\r\n\r\n\r\n //prepare and invoke the API call request to fetch the response\r\n HttpRequest _request = getClientInstance().get(_queryUrl, _headers, null,\r\n Configuration.basicAuthUserName, Configuration.basicAuthPassword);\r\n\r\n // Invoke the callback before request if its not null\r\n if (getHttpCallBack() != null) {\r\n getHttpCallBack().OnBeforeRequest(_request);\r\n }\r\n\r\n return _request;\r\n }", "title": "" }, { "docid": "556a4b5248170e3147cdb2b02313a541", "score": "0.4269638", "text": "public MultiRequestCreator(ESQueryBuilder<?> queryBuilder) {\n super(queryBuilder);\n }", "title": "" }, { "docid": "7aea786a286b0ef93d536ddbd60e7c3d", "score": "0.42687625", "text": "public IThreatAssessmentResultCollectionRequest orderBy(final String value) {\n addQueryOption(new com.microsoft.graph.options.QueryOption(\"$orderby\", value));\n return (ThreatAssessmentResultCollectionRequest)this;\n }", "title": "" }, { "docid": "f85320a4a486fea7f2bf3b91de80c836", "score": "0.4259171", "text": "public pb4server.QueryAllianceBossLivenessAskRt.Builder getQueryAllianceBossLivenessAskRtBuilder() {\n return getQueryAllianceBossLivenessAskRtFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "88b716f4882bcf6725bf8176e53e502f", "score": "0.4238818", "text": "public static EvaluationRequest createEvaluationRequest() {\n EvaluationRequest request = new EvaluationRequest();\n request.setEvaluationMethod(EvaluationMethod.TRAINING_DATA);\n request.setData(loadInstances());\n request.setClassifier(new KNearestNeighbours());\n return request;\n }", "title": "" }, { "docid": "f765dbc8c3d138a2f4e5b50ee1182eb4", "score": "0.42344326", "text": "private PBSkillResultResp(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "32e3f1d965f87a03e17f853cf35fea4e", "score": "0.42330366", "text": "public pb4server.SendAllianceMassAskRt.Builder getSendAllianceMassAskRtBuilder() {\n return getSendAllianceMassAskRtFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "ce9df1efa50e3d01431a68ef47da0110", "score": "0.4230333", "text": "@Nonnull\n public com.microsoft.graph.networkaccess.requests.EnrichedAuditLogsRequestBuilder enrichedAuditLogs() {\n return new com.microsoft.graph.networkaccess.requests.EnrichedAuditLogsRequestBuilder(getRequestUrlWithAdditionalSegment(\"enrichedAuditLogs\"), getClient(), null);\n }", "title": "" }, { "docid": "79fbff208cf06d32390804a1a5056e90", "score": "0.42077723", "text": "private SkillApplyQueryResp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "cb877671824c2f3aa51c098507fc5d86", "score": "0.42043903", "text": "IAssessment createAssessment();", "title": "" }, { "docid": "08d86111eed188001a6a70d25c2f2551", "score": "0.42038265", "text": "public pb4server.QueryAllianceInfoAskRt.Builder getQueryAllianceInfoAskRtBuilder() {\n return getQueryAllianceInfoAskRtFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "e9c758ee30a888a004acf924fe855c6a", "score": "0.4199546", "text": "public restful.api.metric.analyzer.cli.model.generated.internal.Model.Response.Builder getResponsesBuilder(\n int index) {\n return getResponsesFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "9060e6650c058f5507060ef387c013e0", "score": "0.4195276", "text": "interface WithStartTime {\n /**\n * Specifies startTime.\n * @param startTime The workload classifier start time for classification\n * @return the next definition stage\n */\n WithCreate withStartTime(String startTime);\n }", "title": "" }, { "docid": "c6624dedd81f4dc7507a544128263040", "score": "0.41823944", "text": "public interface IDataClassificationServiceRequestBuilder extends IRequestBuilder {\n /**\n * Creates the request\n *\n * @param requestOptions the options for this request\n * @return the IDataClassificationServiceRequest instance\n */\n IDataClassificationServiceRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions);\n\n /**\n * Creates the request with specific options instead of the existing options\n *\n * @param requestOptions the options for this request\n * @return the IDataClassificationServiceRequest instance\n */\n IDataClassificationServiceRequest buildRequest(final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions);\n\n\n IExactMatchDataStoreCollectionRequestBuilder exactMatchDataStores();\n\n IExactMatchDataStoreRequestBuilder exactMatchDataStores(final String id);\n\n IFileClassificationRequestCollectionRequestBuilder classifyFile();\n\n IFileClassificationRequestRequestBuilder classifyFile(final String id);\n\n IJobResponseBaseCollectionRequestBuilder classifyFileJobs();\n\n IJobResponseBaseRequestBuilder classifyFileJobs(final String id);\n\n ITextClassificationRequestCollectionRequestBuilder classifyText();\n\n ITextClassificationRequestRequestBuilder classifyText(final String id);\n\n IJobResponseBaseCollectionRequestBuilder classifyTextJobs();\n\n IJobResponseBaseRequestBuilder classifyTextJobs(final String id);\n\n IJobResponseBaseCollectionRequestBuilder evaluateDlpPoliciesJobs();\n\n IJobResponseBaseRequestBuilder evaluateDlpPoliciesJobs(final String id);\n\n IJobResponseBaseCollectionRequestBuilder evaluateLabelJobs();\n\n IJobResponseBaseRequestBuilder evaluateLabelJobs(final String id);\n\n IJobResponseBaseCollectionRequestBuilder jobs();\n\n IJobResponseBaseRequestBuilder jobs(final String id);\n\n IJobResponseBaseCollectionRequestBuilder labelsAndPoliciesEvaluationJobs();\n\n IJobResponseBaseRequestBuilder labelsAndPoliciesEvaluationJobs(final String id);\n\n ISensitiveTypeCollectionRequestBuilder sensitiveTypes();\n\n ISensitiveTypeRequestBuilder sensitiveTypes(final String id);\n\n ISensitivityLabelCollectionRequestBuilder sensitivityLabels();\n\n ISensitivityLabelRequestBuilder sensitivityLabels(final String id);\n\n IExactMatchUploadAgentCollectionRequestBuilder exactMatchUploadAgents();\n\n IExactMatchUploadAgentRequestBuilder exactMatchUploadAgents(final String id);\n IDataClassificationServiceClassifyExactMatchesRequestBuilder classifyExactMatches(final String text, final String timeoutInMs, final java.util.List<String> sensitiveTypeIds, final java.util.List<ContentClassification> contentClassifications);\n\n}", "title": "" }, { "docid": "101316e1fa963798696a21375855b266", "score": "0.41769123", "text": "interface WithCreate\n extends DefinitionStages.WithDisplayName,\n DefinitionStages.WithDescription,\n DefinitionStages.WithRemediationDescription,\n DefinitionStages.WithCategories,\n DefinitionStages.WithSeverity,\n DefinitionStages.WithUserImpact,\n DefinitionStages.WithImplementationEffort,\n DefinitionStages.WithThreats,\n DefinitionStages.WithPreview,\n DefinitionStages.WithAssessmentType,\n DefinitionStages.WithPartnerData {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n SecurityAssessmentMetadata create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n SecurityAssessmentMetadata create(Context context);\n }", "title": "" }, { "docid": "2e2fe60d65fb97b5cf860642e3c7932e", "score": "0.4176036", "text": "public ApiRequest createRequest() {\n return new ApiRequest(_client, this);\n }", "title": "" }, { "docid": "90e10a606b86e165e52074f74466a6bc", "score": "0.41586393", "text": "public interface RegulatoryComplianceAssessments {\n /**\n * Details and state of assessments mapped to selected regulatory compliance control.\n *\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return list of regulatory compliance assessment response as paginated response with {@link PagedIterable}.\n */\n PagedIterable<RegulatoryComplianceAssessment> list(\n String regulatoryComplianceStandardName, String regulatoryComplianceControlName);\n\n /**\n * Details and state of assessments mapped to selected regulatory compliance control.\n *\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object.\n * @param filter OData filter. Optional.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return list of regulatory compliance assessment response as paginated response with {@link PagedIterable}.\n */\n PagedIterable<RegulatoryComplianceAssessment> list(\n String regulatoryComplianceStandardName,\n String regulatoryComplianceControlName,\n String filter,\n Context context);\n\n /**\n * Supported regulatory compliance details and state for selected assessment.\n *\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object.\n * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return regulatory compliance assessment details and state along with {@link Response}.\n */\n Response<RegulatoryComplianceAssessment> getWithResponse(\n String regulatoryComplianceStandardName,\n String regulatoryComplianceControlName,\n String regulatoryComplianceAssessmentName,\n Context context);\n\n /**\n * Supported regulatory compliance details and state for selected assessment.\n *\n * @param regulatoryComplianceStandardName Name of the regulatory compliance standard object.\n * @param regulatoryComplianceControlName Name of the regulatory compliance control object.\n * @param regulatoryComplianceAssessmentName Name of the regulatory compliance assessment object.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return regulatory compliance assessment details and state.\n */\n RegulatoryComplianceAssessment get(\n String regulatoryComplianceStandardName,\n String regulatoryComplianceControlName,\n String regulatoryComplianceAssessmentName);\n}", "title": "" }, { "docid": "71549230c6cca51f02f33ccbf408f7bc", "score": "0.4157436", "text": "Assessment retrieveAssessmentByAccountNumberAndCompanyIdAndStartTime(int accountNumber, int companyId, Date startTime);", "title": "" }, { "docid": "93177a0d2a26ba31392e37b42d428b63", "score": "0.41565853", "text": "public WorkSpecificationRequest() {\n\t\t\n\t}", "title": "" }, { "docid": "87c2817a3b8794d9e003ae68f0d4136b", "score": "0.4155503", "text": "interface WithRequest {\n /**\n * Specifies request.\n * @param request An entity containing request details\n * @return the next definition stage\n */\n WithCreate withRequest(RequestContract request);\n }", "title": "" }, { "docid": "cbeab457c3d1efa6da6b366d17aa3422", "score": "0.41500607", "text": "public KeyInfoBuilder csr(CertRequestInfo certRequestInfo) {\n Set<CertRequestInfo> csrs = new HashSet<>(this.certRequests);\n csrs.add(certRequestInfo);\n this.certRequests = new ArrayList<>(csrs);\n return this;\n }", "title": "" }, { "docid": "f1371f527292f70b8ab77811a2731591", "score": "0.41391903", "text": "public com.felania.msldb.MsgSubStageRewardMustDifficultyOuterClass.MsgSubStageRewardMustDifficulty.Builder getRewardMustsBuilder(\n int index) {\n return getRewardMustsFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "bd7686edfb6aabe5aa271deca6d88372", "score": "0.413463", "text": "private Pageable constructPageSpecification(int pageIndex) {\n Pageable pageSpecification = new PageRequest(pageIndex, 10);\n return pageSpecification;\n }", "title": "" }, { "docid": "626b0658a677ea620ce5991c02e0e2eb", "score": "0.413424", "text": "ServerVulnerabilityAssessment create();", "title": "" }, { "docid": "7b9ce0ac93c62aac8e15b18919e5d3ed", "score": "0.41312885", "text": "public pb4server.QueryApplyAllianceListAskRt.Builder getQueryApplyAllianceListAskRtBuilder() {\n return getQueryApplyAllianceListAskRtFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "b1161950c9e4e16256d352f5d0928890", "score": "0.4129709", "text": "IWindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder deploySummary();", "title": "" }, { "docid": "fb96d480235bd7edd3b1376e6f2a33ab", "score": "0.41275933", "text": "public PICSRequest() {\n this(0, 0L, true);\n }", "title": "" }, { "docid": "e84445c14a5732731e20f69b79f4c4ba", "score": "0.41187268", "text": "public KnowledgeSearchRequest pageSize(Integer pageSize) {\n this.pageSize = pageSize;\n return this;\n }", "title": "" }, { "docid": "7d1f6fdd65ded7010001723fcee8f8c1", "score": "0.41116077", "text": "public DashboardParticipationMetricsReportAction() {\r\n super();\r\n \r\n setViewData(new ParticipationReportDTO());\r\n setFormData(new DashboardParticipationReportForm());\r\n }", "title": "" }, { "docid": "698fe654933655ea01506f805f986963", "score": "0.4111551", "text": "public Builder clearInterimResults() {\n copyOnWrite();\n instance.clearInterimResults();\n return this;\n }", "title": "" }, { "docid": "a04a04b76c500986837af35bed9574a4", "score": "0.41087282", "text": "private HttpRequest _buildCreateAnticipationRequest(\r\n final String recipientId,\r\n final CreateAnticipationRequest request,\r\n final String idempotencyKey) throws IOException, APIException {\r\n //the base uri for api requests\r\n String _baseUri = Configuration.baseUri;\r\n\r\n //prepare query string for API call\r\n StringBuilder _queryBuilder = new StringBuilder(_baseUri + \"/recipients/{recipient_id}/anticipations\");\r\n\r\n //process template parameters\r\n Map<String, Object> _templateParameters = new HashMap<String, Object>();\r\n _templateParameters.put(\"recipient_id\", recipientId);\r\n APIHelper.appendUrlWithTemplateParameters(_queryBuilder, _templateParameters);\r\n //validate and preprocess url\r\n String _queryUrl = APIHelper.cleanUrl(_queryBuilder);\r\n\r\n //load all headers for the outgoing API request\r\n Map<String, String> _headers = new HashMap<String, String>();\r\n if (idempotencyKey != null) {\r\n _headers.put(\"idempotency-key\", idempotencyKey);\r\n }\r\n _headers.put(\"user-agent\", BaseController.userAgent);\r\n _headers.put(\"accept\", \"application/json\");\r\n _headers.put(\"content-type\", \"application/json\");\r\n\r\n\r\n //prepare and invoke the API call request to fetch the response\r\n HttpRequest _request = getClientInstance().postBody(_queryUrl, _headers, APIHelper.serialize(request),\r\n Configuration.basicAuthUserName, Configuration.basicAuthPassword);\r\n\r\n // Invoke the callback before request if its not null\r\n if (getHttpCallBack() != null) {\r\n getHttpCallBack().OnBeforeRequest(_request);\r\n }\r\n\r\n return _request;\r\n }", "title": "" }, { "docid": "42d469634d8abf4a82b328764f8f40e0", "score": "0.41068444", "text": "public edu.usfca.cs.dfs.messages.Messages.RequestsServed.Builder getRequestServedBuilder() {\n return getRequestServedFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "87df361f997ba95ce268c7d2dc5ade9e", "score": "0.41019866", "text": "public InsertRecordsRandomRequest() {\n tableName = \"\";\n options = new LinkedHashMap<>();\n }", "title": "" }, { "docid": "b74beead06416f315fd1e4354e10d236", "score": "0.41010582", "text": "public UpdateAutomaticAnticipationSettingsRequestBuilder() {\r\n updateAutomaticAnticipationSettingsRequest = new UpdateAutomaticAnticipationSettingsRequest();\r\n }", "title": "" }, { "docid": "133a4ed0c6cd5c8996d58bf7862e1289", "score": "0.40986952", "text": "private ComplainReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "c4caa020c68bf020ee82d145f43192d2", "score": "0.4097718", "text": "public static SnomedRelationshipSearchRequestBuilder prepareSearchRelationship() {\n\t\treturn new SnomedRelationshipSearchRequestBuilder();\n\t}", "title": "" }, { "docid": "c40b51b4960006e42f45829fc49a60eb", "score": "0.40915018", "text": "public SearchRecord withTrial(Trial trial) {\n setTrial(trial);\n return this;\n }", "title": "" }, { "docid": "2a301133894418349ced2b34d34cbf9c", "score": "0.4088797", "text": "private SPiDRequest copy() {\n SPiDRequest request = new SPiDRequest(method, url, listener);\n request.retryCount = retryCount;\n request.setHeaders(headers);\n request.setQuery(query);\n request.setBody(body);\n return request;\n }", "title": "" }, { "docid": "67d3be526b96ddf642982e981cdc5166", "score": "0.4078908", "text": "public SeriesOfPerformancesDtoBuilder() {\n }", "title": "" }, { "docid": "19e069e7c9eeea64eac41d31fbf907c0", "score": "0.40738618", "text": "public SearchResponseBuilder() {\n super(new SearchResponseType());\n }", "title": "" }, { "docid": "d1e9023ad17395f2e187e7da24c73de9", "score": "0.40719974", "text": "private ListEvaluationsRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "8b283f503eeafbdcd33b418d732683ef", "score": "0.40708673", "text": "public static EvaluationRequestDataModel createEvaluationRequestData() {\n EvaluationRequestDataModel request = new EvaluationRequestDataModel();\n request.setEvaluationMethod(EvaluationMethod.TRAINING_DATA);\n Instances data = loadInstances();\n request.setDataMd5Hash(md5Hash(data));\n request.setData(data);\n request.setClassifier(new KNearestNeighbours());\n return request;\n }", "title": "" }, { "docid": "11b2befc4052a91ed2494fdbf205e57a", "score": "0.40708417", "text": "SecurityAssessmentMetadataInner innerModel();", "title": "" }, { "docid": "36e8d20932343f31d5858929af7b98a0", "score": "0.40650406", "text": "public pb4server.QueryWonderAwardRecordAskRt.Builder getQueryWonderAwardRecordAskRtBuilder() {\n return getQueryWonderAwardRecordAskRtFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "297d5a951b082503223b29a358f48c2b", "score": "0.40620053", "text": "private BulkRequest buildNewRequestFromFailures(BulkRequest bulkRequest, BulkResponse bulkResponse) {\n BulkRequest bulkRequestOfFailures = new BulkRequest();\n Set<String> failedDocIds = Arrays.stream(bulkResponse.getItems())\n .filter(BulkItemResponse::isFailed)\n .map(BulkItemResponse::getId)\n .collect(Collectors.toSet());\n bulkRequest.requests().forEach(docWriteRequest -> {\n if (failedDocIds.contains(docWriteRequest.id())) {\n bulkRequestOfFailures.add(docWriteRequest);\n }\n });\n return bulkRequestOfFailures;\n }", "title": "" }, { "docid": "00638618f7c5728a9614c4c581357438", "score": "0.40559986", "text": "public Builder clearRequest() { copyOnWrite();\n instance.clearRequest();\n return this;\n }", "title": "" }, { "docid": "0138c8a8a044949cda1c43d210401686", "score": "0.40516323", "text": "public Builder withReportDiagnosticMetrics() {\n this.shouldReportDiagnosticMetrics = true;\n return this;\n }", "title": "" }, { "docid": "ad3c300b3d2b3b387320a1035e696e4a", "score": "0.40509987", "text": "public KnowledgeSearchRequest pageNumber(Integer pageNumber) {\n this.pageNumber = pageNumber;\n return this;\n }", "title": "" }, { "docid": "1a212d2ffddb0e4dab0eae6413654adc", "score": "0.40493444", "text": "public List<Assessment> getAll() {\n return assessments.findAll();\n }", "title": "" }, { "docid": "90b025cce1adeacf695a2380a17f66a0", "score": "0.4046782", "text": "public ArrayList<TeacherRequest> getTeacherRequests() {\n\n\t\tArrayList<TeacherRequest> tRequests = new ArrayList<TeacherRequest>();\n\n\t\ttry {\n\t\t\t// create db connection\n\t\t\tcon = DBConnect.getConnection();\n\t\t\tstmt = con.createStatement();\n\t\t\t// sql query object\n\t\t\tString sql = \"SELECT * FROM teacher WHERE status = 'Not approved'\";\n\n\t\t\tStatement stmt = con.createStatement();\n\n\t\t\trs = stmt.executeQuery(sql);\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tint id = rs.getInt(1);\n\t\t\t\tString name = rs.getString(2);\n\t\t\t\tString address = rs.getString(3);\n\t\t\t\tString contact = rs.getString(4);\n\t\t\t\tString email = rs.getString(5);\n\t\t\t\tString status = rs.getString(8);\n\t\t\t\tString qualification = rs.getString(9);\n\n\t\t\t\tTeacherRequest tr = new TeacherRequest(id, name, address, contact, email, status, qualification);\n\t\t\t\tSystem.out.println(tr.getId());\n\t\t\t\ttRequests.add(tr);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t\t\t/** logger class messege **/\n\t\t\tLOGGER.log(Level.SEVERE, e.getMessage());\n\t\t}\n\n\t\treturn tRequests;\n\t}", "title": "" }, { "docid": "cb4a0dd5fa0840cdfd85090707d5dd0b", "score": "0.403816", "text": "public TemplateListingResponse build() {\n if (!templates.build().isEmpty()) {\n Preconditions.checkArgument(this.template == null && this.count != null && this.totalCount != null);\n }\n return new TemplateListingResponse(this);\n }", "title": "" }, { "docid": "f4fd0e972ad1edcba223460be9d834c1", "score": "0.4031701", "text": "public AssessmentMainModel prepareModel(Locale locale) {\n\n AssessmentMainModel csrAssessmentModel = new AssessmentMainModel();\n\n /** Get the language Translator from the Application Context * */\n TranslateHelper langHelper = (TranslateHelper) appCtxt\n .getBean(\"langHelper\");\n\n /** The Image Base path for the instruction page image * */\n String imageBase = \"/execmap/I18n/\" + locale.getLanguage()\n + \"/images/csrX/\";\n \n /** The Base Path for the Navigation Images* */\n String linkImageBase = \"/execmap/I18n/\" + locale.getLanguage()\n + \"/images/LINKS/\";\n\n ImageTextAssessmentModel csrInstructionModel =\n new ImageTextAssessmentModel();\n\n String subHeader = langHelper.getExecmapMessage(\"generic.csrheading\",\n locale);\n\n /** Set the Sub Header attribute for csr Assessment Trigram question number\n * andimage link url for the navigation options* */\n csrInstructionModel.setSubHeader(subHeader);\n csrInstructionModel.setQuestionNo(0);\n csrInstructionModel.setLinkImageUrl(linkImageBase);\n\n /**\n * Set the path for the image to be shown on the instruction page\n */\n List textorurlListInst = new ArrayList();\n textorurlListInst.add(imageBase+\"csr_inst.gif\");\n csrInstructionModel.setTextOrUrl(textorurlListInst);\n /** set the answering instruction for cfs assessment Trigram * */\n String answerinstruction = langHelper.getAssesmentMessage(\n \"csrx.activityinstruction8\", locale);\n\n /** Set the Time attribute for EMS Assessment Trigram * */\n csrInstructionModel.setTime(new String(langHelper.getAssesmentMessage(\n \"csrx.timer\", locale)));\n\n /** Set the Instruction attribute for csr Assessment Trigram * */\n List<String> instructionList = new ArrayList<String>();\n\n instructionList.add(new String(langHelper.getAssesmentMessage(\n \"csrx.activityinstruction1\", locale)));\n instructionList.add(new String(langHelper.getAssesmentMessage(\n \"csrx.activityinstruction2\", locale)));\n instructionList.add(new String(langHelper.getAssesmentMessage(\n \"csrx.activityinstruction3\", locale)));\n instructionList.add(new String(langHelper.getAssesmentMessage(\n \"csrx.activityinstruction4\", locale)));\n instructionList.add(new String(langHelper.getAssesmentMessage(\n \"csrx.activityinstruction7\", locale)));\n\n csrInstructionModel.setInstruction(instructionList);\n csrInstructionModel.setAnswerInstruction(answerinstruction);\n\n /** Set the Answer Instruction attribute for csr Assessment Trigram * */\n List<String> instructionList1 = new ArrayList<String>();\n instructionList1.add(langHelper.getAssesmentMessage(\n \"csrx.activityinstruction7\", locale));\n instructionList1.add(langHelper.getAssesmentMessage(\n \"csrx.activityinstruction8\", locale));\n\n /** Set the model for 1st Assessment for csr * */\n ImageTextAssessmentModel csrAssessmentModel1 =\n new ImageTextAssessmentModel();\n\n csrAssessmentModel1.setSubHeader(subHeader);\n csrAssessmentModel1.setLinkImageUrl(linkImageBase);\n\n List<String> textorurlList1 = new ArrayList<String>();\n\n textorurlList1.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.questiontext10.questiontext\", locale)));\n textorurlList1.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.questiontext11.questiontext\", locale)));\n textorurlList1.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.questiontext12.questiontext\", locale)));\n\n csrAssessmentModel1.setTextOrUrl(textorurlList1);\n csrAssessmentModel1.setQuestionNo(1);\n csrAssessmentModel1.setInstruction(instructionList1);\n\n /** Set the Answer Options for 1st csr Assessment* */\n List<String> answerOptions = new ArrayList<String>();\n answerOptions.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.choiceimage10.choice\", locale)));\n answerOptions.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.choiceimage12.choice\", locale)));\n answerOptions.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.choiceimage11.choice\", locale)));\n answerOptions.add(new String(langHelper.getExecmapMessage(\n \"cmu3a.cmu3a.choicetext02.choice\", locale)));\n answerOptions.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.choiceimage14.choice\", locale)));\n\n csrAssessmentModel1.setQuestionOptions(answerOptions);\n\n /** Set the model for 2nd Assessment for csr * */\n ImageTextAssessmentModel csrAssessmentModel2 =\n new ImageTextAssessmentModel();\n\n csrAssessmentModel2.setSubHeader(subHeader);\n csrAssessmentModel2.setLinkImageUrl(linkImageBase);\n\n List<String> textorurlList2 = new ArrayList<String>();\n textorurlList2.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.questiontext10.questiontext\", locale)));\n textorurlList2.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.questiontext31.questiontext\", locale)));\n textorurlList2.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.questiontext12.questiontext\", locale)));\n\n csrAssessmentModel2.setTextOrUrl(textorurlList2);\n csrAssessmentModel2.setQuestionNo(2);\n csrAssessmentModel2.setInstruction(instructionList1);\n\n /** Set the Answer Options for 2nd csr Assessment* */\n List<String> answerOptions2 = new ArrayList<String>();\n answerOptions2.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage10.choice\", locale)));\n answerOptions2.add(new String(langHelper.getExecmapMessage(\n \"cmu4a.cmu4a.choicetext114.choice\", locale)));\n answerOptions2.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.choiceimage32.choice\", locale)));\n answerOptions2.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.choiceimage33.choice\", locale)));\n answerOptions2.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.choiceimage34.choice\", locale)));\n\n csrAssessmentModel2.setQuestionOptions(answerOptions2);\n\n /** Set the model for 3rd Assessment for csr * */\n ImageTextAssessmentModel csrAssessmentModel3 =\n new ImageTextAssessmentModel();\n\n csrAssessmentModel3.setSubHeader(subHeader);\n csrAssessmentModel3.setLinkImageUrl(linkImageBase);\n\n List<String> textorurlList3 = new ArrayList<String>();\n textorurlList3.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.questiontext40.questiontext\", locale)));\n textorurlList3.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.questiontext41.questiontext\", locale)));\n textorurlList3.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.questiontext22.questiontext\", locale)));\n\n csrAssessmentModel3.setTextOrUrl(textorurlList3);\n csrAssessmentModel3.setQuestionNo(3);\n csrAssessmentModel3.setInstruction(instructionList1);\n\n /** Set the Answer Options for 3rd csr Assessment* */\n List<String> answerOptions3 = new ArrayList<String>();\n answerOptions3.add(new String(langHelper.getExecmapMessage(\n \"generic.start\", locale)));\n answerOptions3.add(new String(langHelper.getExecmapMessage(\n \"cmu4a.cmu4a.choicetext32.choice\", locale)));\n answerOptions3.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.choiceimage42.choice\", locale)));\n answerOptions3.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.choiceimage43.choice\", locale)));\n answerOptions3.add(new String(langHelper.getExecmapMessage(\n \"csr1.csr1.choiceimage44.choice\", locale)));\n csrAssessmentModel3.setQuestionOptions(answerOptions3);\n\n /** Set the model for 4th Assessment for csr * */\n ImageTextAssessmentModel csrAssessmentModel4 =\n new ImageTextAssessmentModel();\n\n csrAssessmentModel4.setSubHeader(subHeader);\n csrAssessmentModel4.setLinkImageUrl(linkImageBase);\n\n List<String> textorurlList4 = new ArrayList<String>();\n textorurlList4.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.questiontext40.questiontext\", locale)));\n textorurlList4.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.questiontext41.questiontext\", locale)));\n textorurlList4.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.questiontext42.questiontext\", locale)));\n\n csrAssessmentModel4.setTextOrUrl(textorurlList4);\n csrAssessmentModel4.setQuestionNo(4);\n csrAssessmentModel4.setInstruction(instructionList1);\n\n /** Set the Answer Options for 4th csr Assessment* */\n List<String> answerOptions4 = new ArrayList<String>();\n answerOptions4.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage40.choice\", locale)));\n answerOptions4.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage41.choice\", locale)));\n answerOptions4.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage42.choice\", locale)));\n answerOptions4.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage43.choice\", locale)));\n answerOptions4.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage44.choice\", locale)));\n csrAssessmentModel4.setQuestionOptions(answerOptions4);\n\n /** Set the model for 5th Assessment for csr * */\n ImageTextAssessmentModel csrAssessmentModel5 =\n new ImageTextAssessmentModel();\n\n csrAssessmentModel5.setSubHeader(subHeader);\n csrAssessmentModel5.setLinkImageUrl(linkImageBase);\n\n List<String> textorurlList5 = new ArrayList<String>();\n textorurlList5.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.questiontext60.questiontext\", locale)));\n textorurlList5.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.questiontext61.questiontext\", locale)));\n textorurlList5.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.questiontext62.questiontext\", locale)));\n\n csrAssessmentModel5.setTextOrUrl(textorurlList5);\n csrAssessmentModel5.setQuestionNo(5);\n csrAssessmentModel5.setInstruction(instructionList1);\n\n /** Set the Answer Options for 5th csr Assessment* */\n List<String> answerOptions5 = new ArrayList<String>();\n answerOptions5.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage60.choice\", locale)));\n answerOptions5.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage61.choice\", locale)));\n answerOptions5.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage62.choice\", locale)));\n answerOptions5.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage63.choice\", locale)));\n answerOptions5.add(new String(langHelper.getExecmapMessage(\n \"csr2.csr2.choiceimage64.choice\", locale)));\n\n csrAssessmentModel5.setQuestionOptions(answerOptions5);\n\n /**\n * Add the Instruction Model and the AssessmentModel to the\n * csrAssessmentModel\n */\n\n List<ImageTextAssessmentModel> csrList =\n new ArrayList<ImageTextAssessmentModel>();\n\n csrList.add(csrInstructionModel);\n csrList.add(csrAssessmentModel1);\n csrList.add(csrAssessmentModel2);\n csrList.add(csrAssessmentModel3);\n csrList.add(csrAssessmentModel4);\n csrList.add(csrAssessmentModel5);\n\n csrAssessmentModel.setInstructionModel(csrList);\n\n return csrAssessmentModel;\n }", "title": "" }, { "docid": "4299991d993c023394e4d81c718fec92", "score": "0.40316957", "text": "public Builder clearQueryAllianceReqListAskRt() {\n if (queryAllianceReqListAskRtBuilder_ == null) {\n if (msgCase_ == 37) {\n msgCase_ = 0;\n msg_ = null;\n onChanged();\n }\n } else {\n if (msgCase_ == 37) {\n msgCase_ = 0;\n msg_ = null;\n }\n queryAllianceReqListAskRtBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "d8d4cc853cae098d00f0e23fe2c9abab", "score": "0.4022874", "text": "private Builder() {\n super(Energistics.Protocol.StoreNotification.NotificationRequest.SCHEMA$);\n }", "title": "" }, { "docid": "e2871e76119e027ec6de324f16c5f633", "score": "0.40217453", "text": "public iroha.protocol.Responses.SignatoriesResponse.Builder getSignatoriesResponseBuilder() {\n return getSignatoriesResponseFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "52ebebee04e60d4b4460a19a4b5abb10", "score": "0.40186188", "text": "private RequestStudentScreen(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "ea0256f6040fa0d3106f644f71976136", "score": "0.40106156", "text": "private void buildCriteria()\r\n\t{ \r\n\t\tList<String> studentGrades = new ArrayList<String>(Arrays.asList(GRADES));\r\n\t\t/*\r\n\t\t * Build a criteria that will find the students to calculate attendance and credit totals for the student.\r\n\t\t */\r\n\t\tm_studentCriteria = new Criteria();\r\n\t\t//m_studentCriteria.addIn(SisStudent.COL_GRADE_LEVEL, studentGrades);\r\n\r\n\t\tif (m_currentStudent != null)\r\n\t\t{\r\n\t\t\t/*\r\n\t\t\t * Running for one student\r\n\t\t\t */\r\n\t\t\tm_studentCriteria.addEqualTo(X2BaseBean.COL_OID, m_currentStudent.getOid());\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (isSchoolContext())\r\n\t\t\t{\r\n\t\t\t\tm_studentCriteria.addEqualTo(SisStudent.COL_SCHOOL_OID, ((SisSchool) getSchool()).getOid());\r\n\t\t\t}\r\n\r\n\t\t\tString activeCode = PreferenceManager.getPreferenceValue(getOrganization(),\r\n\t\t\t\t\tSystemPreferenceDefinition.STUDENT_ACTIVE_CODE);\r\n\t\t\tm_studentCriteria.addEqualTo(SisStudent.COL_ENROLLMENT_STATUS, activeCode);\r\n\r\n\t\t\tString queryBy = (String) getParameter(QUERY_BY_PARAM).toString() ; \r\n\r\n\t\t\tswitch (queryBy)\r\n\t\t\t{\r\n\t\t\tcase \"100\": // Current selection\r\n\t\t\t\tm_studentCriteria = getCurrentCriteria();\r\n\t\t\t\tbreak; \r\n\t\t\tdefault: \r\n\t\t\t\t// No additional criteria (this is the case for \"All\")\r\n\t\t\t\tbreak;\r\n\t\t\t} \r\n\t\t\t//\taddUserCriteria(m_studentCriteria, queryBy, queryString, null, null);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fb50212015141fc6d36b02a617e12802", "score": "0.4007904", "text": "public fzmsupply.Api.RequestExamineAsset.Builder getExamineAssetBuilder() {\n return getExamineAssetFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "2ca39e2a58603df3851869b0cd7d928c", "score": "0.3999676", "text": "public org.thingsboard.server.gen.transport.TransportProtos.TsKvProto.Builder getClientAttributeListBuilder(\n int index) {\n return getClientAttributeListFieldBuilder().getBuilder(index);\n }", "title": "" }, { "docid": "103a7dc12cb342945a79344d4f4b5fd8", "score": "0.39952633", "text": "public List<SurveyQuestion> getAll();", "title": "" }, { "docid": "01ce695981c31ea0e41545c325af4293", "score": "0.39937836", "text": "public static ShoppingListSetTextLineItemCustomTypeActionBuilder builder() {\n return ShoppingListSetTextLineItemCustomTypeActionBuilder.of();\n }", "title": "" }, { "docid": "8974d5c98a011332ca0aae871e4bcb12", "score": "0.39919302", "text": "public protocol.rpc.CodeActionResponse.PartialResult.Builder getPartialResultBuilder() {\n return getPartialResultFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "df02d0c4e73f12aa14b2c20e599d2f53", "score": "0.39917785", "text": "public AuditMitigationActionExecutionMetadata withStartTime(java.util.Date startTime) {\n setStartTime(startTime);\n return this;\n }", "title": "" }, { "docid": "a77f541bf2c6294faba7cfd661b099e8", "score": "0.3989622", "text": "@Test\n\tpublic void createAssessmentItemWithoutOptions() {\n\t\tString request = \"{ \\\"request\\\": { \\\"assessment_item\\\": { \\\"identifier\\\": \\\"LP_UT_\" + rn\n\t\t\t\t+ \"\\\", \\\"objectType\\\": \\\"AssessmentItem\\\", \\\"metadata\\\": { \\\"code\\\": \\\"test.mtf_mixed_1\\\", \\\"name\\\": \\\"MTF Question 1\\\", \\\"type\\\": \\\"mtf\\\", \\\"template\\\": \\\"mtf_template_3\\\", \\\"qlevel\\\": \\\"MEDIUM\\\", \\\"title\\\": \\\"ಕೊಟ್ಟಿರುವ ಸಂಖ್ಯೆಗಳನ್ನು ಇಳಿಕೆ ಕ್ರಮದಲ್ಲಿ ಜೋಡಿಸಿರಿ.\\\", \\\"question\\\":\\\"2080\\\", \\\"model\\\":{ \\\"data0\\\":\\\"23450\\\", \\\"data1\\\":\\\"23540\\\" }, \\\"rhs_options\\\": [ { \\\"value\\\": {\\\"type\\\": \\\"text\\\", \\\"asset\\\": \\\">\\\"} }, { \\\"value\\\": {\\\"type\\\": \\\"text\\\", \\\"asset\\\": \\\"=\\\"} }, { \\\"value\\\": {\\\"type\\\": \\\"mixed\\\", \\\"text\\\": \\\"<\\\", \\\"image\\\": \\\"image1\\\", \\\"audio\\\": \\\"audio1\\\"}, \\\"answer\\\": 0 } ], \\\"max_score\\\": 6, \\\"partial_scoring\\\": true, \\\"feedback\\\": \\\"\\\" } } } }\";\n\t\ttry {\n\t\t\tString path = \"/v1/assessmentitem\";\n\t\t\tactions = this.mockMvc.perform(MockMvcRequestBuilders.post(path).header(\"user-id\", \"ilimi\")\n\t\t\t\t\t.contentType(MediaType.APPLICATION_JSON).accept(MediaType.APPLICATION_JSON_UTF8).content(request));\n\t\t\tAssert.assertEquals(400, actions.andReturn().getResponse().getStatus());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tResponse resp = jsonToObject(actions);\n\t\tAssert.assertEquals(\"failed\", resp.getParams().getStatus());\n\t}", "title": "" }, { "docid": "685ffbfc8eb85ccb7b508fd4e474b75d", "score": "0.3988924", "text": "public Builder setInterimResults(boolean value) {\n copyOnWrite();\n instance.setInterimResults(value);\n return this;\n }", "title": "" } ]
71517b744815f6f8b38e7e86c784d214
This method was generated by MyBatis Generator. This method sets the value of the database column shop_detail.pic_url3
[ { "docid": "5bf7067b143aeb9f707a06c1516f5319", "score": "0.60874695", "text": "public void setPicUrl3(String picUrl3) {\n this.picUrl3 = picUrl3;\n }", "title": "" } ]
[ { "docid": "10f8f8bf04f4d3e4270590d279189bae", "score": "0.6076205", "text": "@Update({\n \"update shop_img\",\n \"set shop_id = #{shopId,jdbcType=VARCHAR},\",\n \"img_name = #{imgName,jdbcType=VARCHAR},\",\n \"img_url = #{imgUrl,jdbcType=VARCHAR},\",\n \"del_flag = #{delFlag,jdbcType=VARCHAR}\",\n \"where pk_id = #{pkId,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(ShopImg record);", "title": "" }, { "docid": "881e7fa133d40a5b0cb2027bd99b7302", "score": "0.605702", "text": "public void setShopPicture(String shopPicture) {\n\t\tthis.shopPicture = shopPicture;\n\t}", "title": "" }, { "docid": "ce2aefebe9bdd9cf88de3d0fddb9a10d", "score": "0.5975858", "text": "public void setPicUrl1(String picUrl1) {\n this.picUrl1 = picUrl1;\n }", "title": "" }, { "docid": "9c4620ea3b4c4917427f81e9e816424d", "score": "0.59177166", "text": "@Override\r\n\t\t\tpublic void updatePic(ComVO comVO) {\n\t\t\t\tConnection con = null;\r\n\t\t\t\tPreparedStatement pstmt = null;\r\n\t\t\t\t\r\n\t\t\t\ttry{\r\n\t\t\t\t\tcon = ds.getConnection();\r\n\t\t\t\t\tpstmt = con.prepareStatement(UPDATEPIC);\r\n\t\t\t\t\tpstmt.setBytes(1, comVO.getLogo());\r\n\t\t\t\t\tpstmt.setString(2, comVO.getCom_no());\r\n\t\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\tthrow new RuntimeException(\"A database error occured. \"\r\n\t\t\t\t\t\t\t+ se.getMessage());\r\n\t\t\t\t\t// Clean up JDBC resources\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tif (pstmt != null) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tpstmt.close();\r\n\t\t\t\t\t\t} catch (SQLException se) {\r\n\t\t\t\t\t\t\tse.printStackTrace(System.err);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (con != null) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tcon.close();\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace(System.err);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "179ce1a7555716e95fe0b55f6c4a5308", "score": "0.5903919", "text": "public void setPicUrl2(String picUrl2) {\n this.picUrl2 = picUrl2;\n }", "title": "" }, { "docid": "8b959d1dcf4181e1e23cf20988116270", "score": "0.5843378", "text": "public void setPicUrl(String picUrl) {\n this.picUrl = picUrl;\n }", "title": "" }, { "docid": "b5d03c2b94bfa282d62e52ded87d1123", "score": "0.5823576", "text": "public void setProductPicurl(String productPicurl) {\n this.productPicurl = productPicurl;\n }", "title": "" }, { "docid": "ad91e56158df3734e2cf6c71f6e70f7c", "score": "0.5816751", "text": "public String getPicUrl3() {\n return picUrl3;\n }", "title": "" }, { "docid": "eb31d13192eeee4de293e2456f62afc2", "score": "0.5751192", "text": "protected void setImage() {\n setImage( imageUrl );\n }", "title": "" }, { "docid": "e6e7a5063de778f586140de816a81d32", "score": "0.56569433", "text": "public void setPicUrl(String picUrl) {\n this.picUrl = picUrl == null ? null : picUrl.trim();\n }", "title": "" }, { "docid": "02bbcd5ccdb008984bd76924ed0a24d7", "score": "0.56404614", "text": "@Select({\n \"select\",\n \"pk_id, shop_id, img_name, img_url, del_flag\",\n \"from shop_img\",\n \"where pk_id = #{pkId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"com.linkpets.dao.ShopImgMapper.BaseResultMap\")\n ShopImg selectByPrimaryKey(Integer pkId);", "title": "" }, { "docid": "2ab9e7598c37760c57fb4161c0e23c76", "score": "0.5549448", "text": "public String getPicUrl1() {\n return picUrl1;\n }", "title": "" }, { "docid": "123710bae3a77c8c872c367a572b95a6", "score": "0.55352867", "text": "public String getPicUrl2() {\n return picUrl2;\n }", "title": "" }, { "docid": "eee09d2f8e2abeb2f82d2c00461bdd46", "score": "0.55349964", "text": "public void setPicurl(String picurl) {\n this.picurl = picurl == null ? null : picurl.trim();\n }", "title": "" }, { "docid": "a2e1ebe8d7b258cbfe1d4e990f2ada8a", "score": "0.5514126", "text": "void setPictureUrl(String imageUrl) {\n ImageLoader imageLoader = VolleySingleton.getInstance(App.getContext()).getImageLoader();\n this.picture.setImageUrl(imageUrl, imageLoader);\n }", "title": "" }, { "docid": "6890db8b7de877917bdce192304d48ac", "score": "0.54808843", "text": "public void setImageURL(String url)\n {\n imageURL = url;\n }", "title": "" }, { "docid": "2abb13a223477d35af286e89872c31cf", "score": "0.54610467", "text": "private void buildPropertyPhotos(SqlSession sqlSession,Product product, Property property) {\n\t\tArrayList<Image> imags=sqlSession.getMapper(ImageMapper.class).imagesbyproductid(new NameId(product.getId()) );\n\t\tfinal String BASE_URL=\"http://images1.flipkey.com/img/photos\"; \n\t\tPropertyPhotos photos=new PropertyPhotos();\n\t\tList<PropertyPhoto> photoList=photos.getPropertyPhoto(); int count=0;\n\t\tfor(Image img : imags ){\n\t\t\tPropertyPhoto photo=new PropertyPhoto();\n\t\t\tif(img.getName().endsWith(\"640x480\")){\n\t\t\t\tphoto.setDescription(\"\");\n\t\t\t\tphoto.setBaseUrl(BASE_URL );\n\t\t\t\tphoto.setHasFull(new HasFull());\n\t\t\t\tphoto.setPhotoFileName( img.getName() );\n\t\t\t\tList<Object> addons=photo.getOrderOrTypeOrHeight();\n\t\t\t\taddons.add(getJAXBElement(\"ta_image_width\",800));\n\t\t\t\taddons.add(getJAXBElement(\"ta_image_height\",533));\n\t\t\t\taddons.add(new JAXBElement(new QName(\"width\"),BigInteger.class, BigInteger.valueOf(640l)));\n\t\t\t\taddons.add(new JAXBElement(new QName(\"height\"),BigInteger.class, BigInteger.valueOf(426l)));\n\t\t\t\taddons.add(getJAXBElement(\"largest_image_prefix\",\"640x480\"));\n\t\t\t\taddons.add(getJAXBElement(\"ta_image_orientation\",\"landscape\"));\n\t\t\t\taddons.add(getJAXBElement(\"ta_image\",img.getUrl()));\n\t\t\t\taddons.add(getJAXBElement(\"order\",count));\n\t\t\t\tphotoList.add(photo);\n\t\t\t}else if(img.getName().endsWith(\"large\")){\n\t\t\t\tphoto.setDescription(\"\");\n\t\t\t\tphoto.setBaseUrl(BASE_URL );\n\t\t\t\tphoto.setHasFull(new HasFull());\n\t\t\t\tphoto.setPhotoFileName( img.getName() );\n\t\t\t\tList<Object> addons=photo.getOrderOrTypeOrHeight();\n\t\t\t\taddons.add(getJAXBElement(\"ta_image_width\",320));\n\t\t\t\taddons.add(getJAXBElement(\"ta_image_height\",240));\n\t\t\t\taddons.add(new JAXBElement(new QName(\"width\"),BigInteger.class, BigInteger.valueOf(320l)));\n\t\t\t\taddons.add(new JAXBElement(new QName(\"height\"),BigInteger.class, BigInteger.valueOf(240l)));\n\t\t\t\taddons.add(getJAXBElement(\"largest_image_prefix\",\"large\"));\n\t\t\t\taddons.add(getJAXBElement(\"ta_image_orientation\",\"landscape\"));\n\t\t\t\taddons.add(getJAXBElement(\"ta_image\",img.getUrl()));\n\t\t\t\taddons.add(getJAXBElement(\"order\",count));\n\t\t\t\tphotoList.add(photo);\n\t\t\t}else{\n\t\t\t\tphoto.setDescription(\"\");\n\t\t\t\tphoto.setBaseUrl(BASE_URL );\n\t\t\t\tphoto.setHasFull(new HasFull());\n\t\t\t\tphoto.setPhotoFileName( img.getName() );\n\t\t\t\tList<Object> addons=photo.getOrderOrTypeOrHeight();\n\t\t\t\taddons.add(getJAXBElement(\"ta_image_width\",200));\n\t\t\t\taddons.add(getJAXBElement(\"ta_image_height\",150));\n\t\t\t\taddons.add(new JAXBElement(new QName(\"width\"),BigInteger.class, BigInteger.valueOf(200l)));\n\t\t\t\taddons.add(new JAXBElement(new QName(\"height\"),BigInteger.class, BigInteger.valueOf(150l)));\n\t\t\t\taddons.add(getJAXBElement(\"largest_image_prefix\",\"thumb\"));\n\t\t\t\taddons.add(getJAXBElement(\"ta_image_orientation\",\"landscape\"));\n\t\t\t\taddons.add(getJAXBElement(\"ta_image\",img.getUrl()));\n\t\t\t\taddons.add(getJAXBElement(\"order\",count));\n\t\t\t\tphotoList.add(photo);\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t\tproperty.getPropertyCalendarOrPropertyAddressesOrPropertyAmenities().add(photos);\n\t}", "title": "" }, { "docid": "59f0874b47e04e46fc329ef87958fdf2", "score": "0.5455709", "text": "public void setImageURL(java.lang.String param) {\n\n if (param != null) {\n //update the setting tracker\n localImageURLTracker = true;\n } else {\n localImageURLTracker = true;\n\n }\n\n this.localImageURL = param;\n\n\n }", "title": "" }, { "docid": "59f0874b47e04e46fc329ef87958fdf2", "score": "0.5455709", "text": "public void setImageURL(java.lang.String param) {\n\n if (param != null) {\n //update the setting tracker\n localImageURLTracker = true;\n } else {\n localImageURLTracker = true;\n\n }\n\n this.localImageURL = param;\n\n\n }", "title": "" }, { "docid": "0153d54c7aab5ba96a969fba5d586ba4", "score": "0.5437465", "text": "@Insert({\n \"insert into shop_img (pk_id, shop_id, \",\n \"img_name, img_url, \",\n \"del_flag)\",\n \"values (#{pkId,jdbcType=INTEGER}, #{shopId,jdbcType=VARCHAR}, \",\n \"#{imgName,jdbcType=VARCHAR}, #{imgUrl,jdbcType=VARCHAR}, \",\n \"#{delFlag,jdbcType=VARCHAR})\"\n })\n int insert(ShopImg record);", "title": "" }, { "docid": "4a0aaeb0101c6c407929368e399f0c79", "score": "0.5436584", "text": "@Override\n public void updateStoreCoverPic() {\n }", "title": "" }, { "docid": "c124aef0e28d24cc6df8fe74af55a9ad", "score": "0.5434627", "text": "private static void setImageValue(ZSONObject zsonObject, OrmContext connect, Lunar lunar) {\n int lunarMonthNum = lunar.getMonth();\n int lunarDayNum = lunar.getDay();\n int lunarTimeNum = Objects.requireNonNull(DatabaseUtils.queryDizhiByName(lunar.getTimeZhi(), connect)).getDizhiNum();\n int monthStepNum = lunarMonthNum % 6;\n int dayStepNum = (lunarDayNum + monthStepNum - 1) % 6;\n int timeStepNum = (lunarTimeNum + dayStepNum - 1) % 6;\n int month_yinyang = Objects.requireNonNull(DatabaseUtils.queryTianganByName(lunar.getMonthGanExact(), connect)).getTianganYinyang();\n int day_yinyang = Objects.requireNonNull(DatabaseUtils.queryTianganByName(lunar.getDayGanExact(), connect)).getTianganYinyang();\n int time_yinyang = Objects.requireNonNull(DatabaseUtils.queryTianganByName(lunar.getTimeGan(), connect)).getTianganYinyang();\n setDetailText(zsonObject, timeStepNum, dayStepNum, connect);\n ImageUtils.setImage(zsonObject, 99, \"base\",0);\n ImageUtils.setImage(zsonObject, 99, \"aided\",0);\n ImageUtils.setImage(zsonObject, 99, \"assistant\",0);\n ImageUtils.setImage(zsonObject, 99, \"main\",0);\n ImageUtils.setImage(zsonObject, monthStepNum, \"aided\", 1);\n ImageUtils.setImage(zsonObject, dayStepNum, \"assistant\", 1);\n ImageUtils.setImage(zsonObject, timeStepNum, \"main\", 1);\n ImageUtils.setImage(zsonObject, month_yinyang, \"aided_flag\", 2);\n ImageUtils.setImage(zsonObject, day_yinyang, \"assistant_flag\", 2);\n ImageUtils.setImage(zsonObject, time_yinyang, \"main_flag\", 2);\n }", "title": "" }, { "docid": "3dfca911b0adb096b1262a071fee5d51", "score": "0.5433961", "text": "@Override\n protected void setResource(Bitmap resource) {\n mImgShopImg.setImageBitmap(resource);\n }", "title": "" }, { "docid": "d6fdba4547c93807e1507298324d79f9", "score": "0.5431943", "text": "public String getProductPicurl() {\n return productPicurl;\n }", "title": "" }, { "docid": "65fc0da7e905b7c00b7591d618f58cc1", "score": "0.54295725", "text": "public String getShopPicture() {\n\t\treturn shopPicture;\n\t}", "title": "" }, { "docid": "1cf68d9a276f2b2d7081fd67018d0acb", "score": "0.5412027", "text": "public void setImg(String imgpeq){\n ImageView imgView = view.findViewById(R.id.user_img);\n if(imgpeq.equals(\"default\")){\n Picasso.get().load(\"https://firebasestorage.googleapis.com/v0/b/projetodam-123d2.appspot.com/o/Imagens%2Fthumbs%2Fdefault.jpg?alt=media&token=4f5ffb2d-95d8-44bd-b6f6-bd4f19c471aa\").into(imgView);\n } else {\n Picasso.get().load(imgpeq).into(imgView);\n }\n }", "title": "" }, { "docid": "13284ab8130e663702831393cf3d16be", "score": "0.5404956", "text": "@Override\n \tpublic void saveOrUpdate(AgentPic agepic) {\n \tAgentPicDaoImpl agp=new AgentPicDaoImpl();\n \t//String url=agp.uploadToAws(file);\n \t\tString sql = \"INSERT INTO agentpic (agentid,picurl)\"\n \t\t\t\t+ \" VALUES (?, ?)\";\n \t\tjdbcTemplate.update(sql, agepic.getEmailId(),agepic.getUrl());\n\n \t}", "title": "" }, { "docid": "925a7ae851a3b85f81926492b10dde03", "score": "0.5396178", "text": "public Builder setPicurl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n picurl_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f290cae871ad1ea76303c6fc66ba4aa1", "score": "0.5386429", "text": "public void setPic(String pic) {\n this.pic = pic == null ? null : pic.trim();\n }", "title": "" }, { "docid": "aeee3858885e87d7c0aa846da50fd181", "score": "0.53694725", "text": "public void setPicUrl6(String picUrl6) {\n this.picUrl6 = picUrl6;\n }", "title": "" }, { "docid": "4c88a76396471323d17e80e43179e7f9", "score": "0.53618026", "text": "public void setPictureUrl(String pictureUrl){\n\t\tthis.pictureUrl = pictureUrl;\n\t}", "title": "" }, { "docid": "bcfb92e643b756b0e96e3b8bcfb7cc9c", "score": "0.53462946", "text": "public void setPic(Image pic);", "title": "" }, { "docid": "c69455c9c9eb62c5ea4d88f0c6636d23", "score": "0.5337244", "text": "ShopExecution updateShop(Shop shop,CommonsMultipartFile shopImg);", "title": "" }, { "docid": "8d9943a5545fda935dfcad03b53189f9", "score": "0.533514", "text": "public void setImageURL(java.lang.String[] param) {\n\n validateImageURL(param);\n\n\n if (param != null) {\n //update the setting tracker\n localImageURLTracker = true;\n } else {\n localImageURLTracker = true;\n\n }\n\n this.localImageURL = param;\n }", "title": "" }, { "docid": "d1d6202dba5c1b537e110d5af0a72644", "score": "0.5294958", "text": "protected void setImage( String imageUrl ) {\n// try {\n// Image image = Images.getCharacterImage( imageUrl );\n// setImage( image );\n// } catch ( Exception e ) {\n//// e.printStackTrace();\n// \tExceptionHandler.handleException(e);\n// }\n }", "title": "" }, { "docid": "d545aa10e2ec0db31c69f6746aef73a1", "score": "0.5293643", "text": "public void setPicUrl4(String picUrl4) {\n this.picUrl4 = picUrl4;\n }", "title": "" }, { "docid": "48a1148339d7e03c50b7cea0e2b9fdab", "score": "0.5289757", "text": "public void setImage(String image){\n this.image=image;\n\n// new version\n\n }", "title": "" }, { "docid": "09ff68cc7a6c0c710262adc1ee9cc526", "score": "0.5284665", "text": "public String getPicurl() {\n return picurl;\n }", "title": "" }, { "docid": "b73c2f6be3cb4cd42b0d23a09f0d120c", "score": "0.5275398", "text": "public String getPicUrl5() {\n return picUrl5;\n }", "title": "" }, { "docid": "f0b977e87a3a89ff774a8a4dd2b52749", "score": "0.5249025", "text": "public void setPicUrl5(String picUrl5) {\n this.picUrl5 = picUrl5;\n }", "title": "" }, { "docid": "5e047d8a6569885edb40a4e2c93d2bae", "score": "0.52368456", "text": "private void setImage(View view, URL imageUrl) {\n \n }", "title": "" }, { "docid": "1358fb0ec9cecb97aaa2f3d3eb1e7626", "score": "0.5222561", "text": "public String getPicUrl6() {\n return picUrl6;\n }", "title": "" }, { "docid": "2425407cafdc5000ee54ea3f4be92175", "score": "0.52150744", "text": "java.lang.String getPicurl();", "title": "" }, { "docid": "32c46754678a0f7f4168131be399301d", "score": "0.5199631", "text": "public void setPic(Bitmap pic){\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n // Compress image to lower quality scale 1 - 100\n pic.compress(Bitmap.CompressFormat.PNG, 20, stream);\n byte[] image = stream.toByteArray();\n\n // Create the ParseFile\n ParseFile file = new ParseFile(\"userPic.png\", image);\n\n if(parseEntry!=null){\n parseEntry.put(\"ProfilePic\", file);\n parseEntry.saveInBackground();\n }\n }", "title": "" }, { "docid": "b7a4795a054062619aff3aeb75b54245", "score": "0.519804", "text": "@Override\n public void set_pic(String json) {\n\n }", "title": "" }, { "docid": "ffa54a6f67a0b69de9d031a605b9f848", "score": "0.51803446", "text": "@Override\n public void assignPicture(Picture picture, Photographer photographer) throws DataAccessException {\n //TODO: Save\n try {\n String preStatement = \"UPDATE picture SET photographer_id = ? WHERE id = ?\";\n PreparedStatement preparedStatement = connection.prepareStatement(preStatement);\n preparedStatement.setInt(1, photographer.getId());\n preparedStatement.setInt(2, picture.getId());\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n throw new DataAccessException(\"Unable to assign Photographer to Picture\", e);\n }\n }", "title": "" }, { "docid": "47f30218f37ae680d70eea8eafd2b9e8", "score": "0.5167881", "text": "private void setPic() {\n int targetW = img.getWidth();\n int targetH = img.getHeight();\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n processedBitmap=bitmap;\n\n\t\t/* Associate the Bitmap to the ImageView */\n img.setImageBitmap(bitmap);\n img.setVisibility(View.VISIBLE);\n btnSave.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "eb5ff41ef8f3b12c026c9143de9d5448", "score": "0.51657474", "text": "private void setPic() {\n int targetW = ivPhoto.getWidth();\n int targetH = ivPhoto.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\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 Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n ivPhoto.setImageBitmap(bitmap);\n }", "title": "" }, { "docid": "4b88efbf40aa14cf83290f1e486b3ecd", "score": "0.5137801", "text": "public void setImgUrl(String imgUrl) {\n\t\tthis.imgUrl = imgUrl;\n\t}", "title": "" }, { "docid": "008dacb848d0bcbe5e48d02e6fee7b27", "score": "0.51192933", "text": "public String getPicUrl() {\n return picUrl;\n }", "title": "" }, { "docid": "008dacb848d0bcbe5e48d02e6fee7b27", "score": "0.51192933", "text": "public String getPicUrl() {\n return picUrl;\n }", "title": "" }, { "docid": "0610ac7facefdb1aa87b813dc1bd0d3d", "score": "0.51138574", "text": "public void setImageUrl(String imageUrl) {\r\n this.imageUrl = imageUrl;\r\n }", "title": "" }, { "docid": "1dada0d7e063a5d0e273937959e78ce2", "score": "0.5100382", "text": "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n\t\t/* Associate the Bitmap to the ImageView */\n mImageView.setImageBitmap(bitmap);\n mImageView.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "3926303e7e9521304ea3a934457dab26", "score": "0.50995487", "text": "public void setUserPicId(Long userPicId) {\n this.userPicId = userPicId;\n }", "title": "" }, { "docid": "761bc4537c129fd9d4133b000df23196", "score": "0.5085825", "text": "public void updateImage(String login, byte[] pic) {\r\n\t\tentityManager.createQuery(\"UPDATE ForumUser fu SET fu.pic =:pic WHERE fu.login = :login\")\r\n\t\t\t\t.setParameter(\"pic\", pic).setParameter(\"login\", login).executeUpdate();\r\n\t}", "title": "" }, { "docid": "1135bc7eab1cc96944d18e04bb492f0c", "score": "0.50828636", "text": "public void setProfilePic(String profile_pic){\n// profile_pic = profile_pic.substring(0,\n// profile_pic.length() - 2)\n// + PROFILE_PIC_SIZE;\n ImageView user_picture = (ImageView)findViewById(R.id.profile_pic);\n if (user_picture != null) {\n new LoadProfilePic(user_picture).execute(profile_pic);\n }\n }", "title": "" }, { "docid": "fb6d65b5cecda6b566be341593c1031f", "score": "0.5071931", "text": "int updateByPrimaryKeySelective(ShopImg record);", "title": "" }, { "docid": "65e9438fc32552c64cd348b0079e7d64", "score": "0.50656873", "text": "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "title": "" }, { "docid": "65e9438fc32552c64cd348b0079e7d64", "score": "0.50656873", "text": "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "title": "" }, { "docid": "65e9438fc32552c64cd348b0079e7d64", "score": "0.50656873", "text": "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "title": "" }, { "docid": "8b17c15a5a7b582708d5fddec7112eb3", "score": "0.50653416", "text": "public String getPictureUrl(){\n\t\treturn pictureUrl;\n\t}", "title": "" }, { "docid": "d409ed2a47feb22f75d36b40aee66c8c", "score": "0.5056796", "text": "public String getImg() { return \"https://kampung-anggrekid.000webhostapp.com/upload/produk/\"+img; }", "title": "" }, { "docid": "68d58de3ad91b3424ddc7e45116aea18", "score": "0.5056352", "text": "@Bindable\n public String getPhoto() {\n return mItem.getPhoto().replace(\"http\", \"https\");\n }", "title": "" }, { "docid": "3a9ad3f85d95d0f2bc76a7495415b91c", "score": "0.50536", "text": "public String getPicUrl4() {\n return picUrl4;\n }", "title": "" }, { "docid": "8da06d8a2cc0c60997334d069cbb20c9", "score": "0.5053279", "text": "private void setPic() {\n int targetW = imgUserInfoPhoto.getWidth();\n int targetH = imgUserInfoPhoto.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\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 b = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n Log.d(\"12344\", \"\" + mCurrentPhotoPath + \"123\");\n Log.d(\"12344\", \"\" + b.getWidth() + \"---123---\" + b.getHeight());\n imgUserInfoPhoto.setImageBitmap(DrawCircleView.drawCircleView01(b));\n\n\n// imgUserInfoPhoto.setImageBitmap(bitmap);\n }", "title": "" }, { "docid": "11c5a2698159c54ebec3767476f4a7ac", "score": "0.50334364", "text": "@OnClick(R.id.pic_person)\n void setPic() {\n }", "title": "" }, { "docid": "48947027010ab90d9644ac751bf6270d", "score": "0.502919", "text": "public void setDebtCustomerPP(final CardHolder holder, String photoKey){\n\n stRef.child(\"CustomersPictures\").child(userUID).child(photoKey).getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n\n Picasso.get().load(uri).into(holder.imageView_cardView_debtCustomer_customerPP);\n\n }\n });\n\n }", "title": "" }, { "docid": "98c8e6feaf6e89ecba0322d1f8fd08ff", "score": "0.50269157", "text": "private void setHouse3() {\n miniMapContext.drawImage(HOUSE3IMAGE, 0, 0, width, height);\n }", "title": "" }, { "docid": "a3d07049a800bd21459df7299bcab52b", "score": "0.5016279", "text": "private void getPackagePhotoAndSetToImageView() {\n StorageReference ref = mStorage.getReferenceFromUrl(photoUrl);\n try {\n final File localFile = File.createTempFile(\"Images\", \"bmp\");\n ref.getFile(localFile).addOnSuccessListener(new OnSuccessListener<FileDownloadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n packagePhotoBitmap = BitmapFactory.decodeFile(localFile.getAbsolutePath());\n packagePictureImageView.setImageBitmap(packagePhotoBitmap);\n enableUI();\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.e(APP_TAG, e.getMessage());\n enableUI();\n }\n });\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "33f36ce4e4ff964bf9b247f55a9ec828", "score": "0.5009998", "text": "public Builder setPicture(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n picture_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "647dfdab11c1c6deda6ae85a9349e413", "score": "0.5001797", "text": "public void setUrl(String imageUrl) {\n new ImageLoadTask().execute(imageUrl);\n //\t\tPicasso.with(mContext).load(imageUrl).into(mImageView);\n //\t\tmImageView.setVisibility(VISIBLE);\n //\t\tmLinearLayout.setVisibility(GONE);\n //\t\tmImageView.setImageBitmap(\n //\t\t\tdecodeSampledBitmapFromResource(getResources(), R.id.ic, 100, 100));\n //\t\tmImageView.setVisibility(VISIBLE);\n //\t\tmLinearLayout.setVisibility(GONE);\n\t\t/*androidAQuery.ajax(imageUrl, Bitmap.class,0,new AjaxCallback<Bitmap>(){\n\t\t\t@Override\n\t\t\tpublic void callback(String url, Bitmap object, AjaxStatus status) {\n\t\t\t\tsuper.callback(url, object, status);\n\t\t\t\tmImageView.setImageBitmap(object);\n\t\t\t\t//You will get Bitmap from object.\n\t\t\t}\n\t\t});*/\n }", "title": "" }, { "docid": "18d559b65f926fc59422dddc3521381c", "score": "0.4995758", "text": "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == GALLERY_INTENT) {\n if (resultCode == RESULT_OK) {\n businessPicture.setVisibility(View.INVISIBLE);\n requireView().findViewById(R.id.loading).setVisibility(View.VISIBLE);\n\n //get image uri to set the Image View\n businessPictureUri = data.getData();\n\n final StorageReference filePath = mStorage.getReference(\"Pictures/ProfilePictures/\" + userId + \"/\" + \"ProfilePic\" + \".jpg\");\n // we make a few steps to obtains the photo URL\n filePath.putFile(businessPictureUri).continueWithTask(task -> {\n if (!task.isSuccessful()) {\n throw Objects.requireNonNull(task.getException());\n }\n return filePath.getDownloadUrl();\n }).addOnCompleteListener(task -> {\n if(task.isSuccessful()) {\n // we have the URL !!\n businessPictureURL = Objects.requireNonNull(task.getResult()).toString();\n databaseReference.child(\"Services\").child(serviceType).child(userId).child(\"profilePicURL\").setValue(businessPictureURL);\n businessPicture.setImageURI(businessPictureUri);\n requireView().findViewById(R.id.loading).setVisibility(View.INVISIBLE);\n businessPicture.setVisibility(View.VISIBLE);\n }\n });\n }\n }\n }", "title": "" }, { "docid": "271aa7f6b052cc63b93cb0122ded04ce", "score": "0.4987139", "text": "private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n BitmapFactory.decodeFile( currentPhotoPath, 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.max( 1, 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 imageBitmap = BitmapFactory.decodeFile( currentPhotoPath, bmOptions );\n imageView.setImageBitmap( imageBitmap );\n }", "title": "" }, { "docid": "35306ce2e3faf1230c8cb8bc56a96c4c", "score": "0.4979993", "text": "public void updateImageURL(String img) {\r\n this.img = img;\r\n this.updateView();\r\n }", "title": "" }, { "docid": "e1e5ae21a8af1a42c6963a2ab4f4d210", "score": "0.49763852", "text": "@Override\r\n\tpublic boolean updateDetailPicture(String productId, \r\n\t\t\t String oldPicName, String newPicName) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\t\t\r\n\t\tProduct product = session.get(Product.class, productId);\r\n\t\tSet<ProDetailPicture> set = product.getDetailPicture();\r\n\t\t\r\n\t\tfor(ProDetailPicture pic : set){\r\n\t\t\tif(pic.getDetailPicUrl().equals(oldPicName)){\r\n\t\t\t\tProDetailPicture temp = session.get(ProDetailPicture.class, pic.getId());\r\n\t\t\t\ttemp.setDetailPicUrl(newPicName);\r\n\t\t\t\tsession.update(temp);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsession.getTransaction().commit();\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "f3fafa672ee12f865f23cb19c7304ebb", "score": "0.49672374", "text": "ShopExecution modifyShop(Shop shop, ImageHolder thumbnail) throws ShopOperationException;", "title": "" }, { "docid": "8a54dfc459edf8203824b70df7e2deb9", "score": "0.49430367", "text": "public void enablePropertyProductImageUri()\n {\n List<String> allowedValues = new LinkedList<String>();\n iPropertyProductImageUri = new PropertyString(new ParameterString(\"ProductImageUri\", allowedValues));\n addProperty(iPropertyProductImageUri);\n }", "title": "" }, { "docid": "8ca80bf1c43f1e6c25d21a53506fc811", "score": "0.49312133", "text": "public void setPhotoURL(String newPhotoURL) {\r\n\r\n this.photoURL = newPhotoURL;\r\n }", "title": "" }, { "docid": "0e8a8bcb89c2c769297793e579a5b5f5", "score": "0.49149787", "text": "int updateByPrimaryKey(MiPic record);", "title": "" }, { "docid": "63c2e6263a4cb3ec78fc193ed4d47ebc", "score": "0.49113682", "text": "public String getPictureUrl() {\n return PictureUrl;\n }", "title": "" }, { "docid": "bdca302976763fe4522ac6c98e3d7022", "score": "0.4904786", "text": "public void setImageURL(String imageURL) {\n this.imageURL = imageURL;\n }", "title": "" }, { "docid": "4ca530c63f8dab10b79f7c4e0750b43b", "score": "0.4897257", "text": "public boolean setPropertyProductImageUri(String aValue);", "title": "" }, { "docid": "0b5ed61986158a591c82e9dcb86a0ecf", "score": "0.48960766", "text": "private void setPic() {\r\n Bitmap bitmap = mImageController.getBitmapForImageView(imageView_tickAddObservation, selectedImagePath);\r\n /* Associate the Bitmap to the ImageView */\r\n imageView_tickAddObservation.setImageBitmap(bitmap);\r\n }", "title": "" }, { "docid": "9e4c46498ff496ac8cd810af806fc8df", "score": "0.48926935", "text": "public void setImage(Uri y) {\n Log.d(TAG, \"bind: \" + y);\n if (y != null) {\n Picasso.get().load(y).placeholder(R.drawable.castlethumbnail).error(R.drawable.ic_error).resize(450, 310).centerInside().into(imgView);\n } else {\n Picasso.get().load(R.drawable.ic_error).placeholder(R.drawable.castlethumbnail).error(R.drawable.ic_error).resize(450, 310).centerInside().into(imgView);\n\n }\n }", "title": "" }, { "docid": "40278bd846f5e85c9c06cda23e24fe04", "score": "0.4878091", "text": "public void setImgurl(String imgurl) {\n this.imgurl = imgurl == null ? null : imgurl.trim();\n }", "title": "" }, { "docid": "de6496b0d431c268ff3207643e398aae", "score": "0.4869626", "text": "public void addImageURL(java.lang.String param) {\n if (localImageURL == null) {\n localImageURL = new java.lang.String[]{};\n }\n\n\n //update the setting tracker\n localImageURLTracker = true;\n\n\n java.util.List list =\n org.apache.axis2.databinding.utils.ConverterUtil.toList(localImageURL);\n list.add(param);\n this.localImageURL =\n (java.lang.String[]) list.toArray(\n new java.lang.String[list.size()]);\n\n }", "title": "" }, { "docid": "749ab9064239a5f6db7a2ed18480cfd1", "score": "0.48641267", "text": "@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\t@Column(nullable = false, unique = true)\n\tpublic long getPicture_id() {\n\t\treturn picture_id;\n\t}", "title": "" }, { "docid": "5897c0c5fa20c65d16fcda5d18ca29e5", "score": "0.4861567", "text": "public void setPicPath(String picPath) {\n this.picPath = picPath == null ? null : picPath.trim();\n }", "title": "" }, { "docid": "f6557ccaba104156fbe51302f2c6e754", "score": "0.4861289", "text": "public void setPicture(String picture) {\r\n this.picture = picture == null ? null : picture.trim();\r\n }", "title": "" }, { "docid": "90bd973d233dd7b2880cf758a6c6b6a2", "score": "0.48559096", "text": "private void setPic() {\n int targetW = imgCapture.getWidth();\n int targetH = imgCapture.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\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 bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n\n imgCapture.setImageBitmap(bitmap);\n\n }", "title": "" }, { "docid": "fd730a19d36277f670867bca01cfa2a4", "score": "0.48517576", "text": "String getImageUrl() {\n return imageUrl;\n }", "title": "" }, { "docid": "4b10ab114d72c29a317afb70aef4804f", "score": "0.48480743", "text": "public void onClick(View view){\n Picasso.with(ImageAdapter.getmContext()).load(picNextItem.toString()).into(m_vwImage);\n\n if(++picPosition> ImageAdapter.mSize - 1) picPosition = 0;\n picNextItem = (ImageAdapter.getNextItemURL(picPosition).toString());\n picPrevItem = (ImageAdapter.getPrevItemURL(picPosition).toString());\n }", "title": "" }, { "docid": "f611ceb090c775c742e5459be1e51b50", "score": "0.48459378", "text": "public void setPicture(JLabel picture) {\r\n\t\tgetLayout().replace(returnComponent(\"picture\"), picture);\r\n\t\taddComponent(\"picture\", picture);\r\n\t}", "title": "" }, { "docid": "39b5638bca3c95c018e5acd65d5f86a9", "score": "0.4838916", "text": "public interface CarouselDao {\n @Insert(\"insert into carousel (url)values(#{url})\")\n int addImage(Carousel carousel);\n @SelectProvider(type = CarouselSql.class,method = \"queryCarousels\")\n List<Carousel> queryCarousel(Carousel carousel);\n @Update(\"update carousel set url=#{url} where id=#{id}\")\n int updateCarousel(Carousel carousel);\n @Delete(\"delete from carousel where id=#{id}\")\n int deCarousel(Carousel carousel);\n}", "title": "" }, { "docid": "d9d9a0f57c4e8e41f2d3284f670d1030", "score": "0.48333484", "text": "@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n reference.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n database.getReference().child(\"Users\").child(FirebaseAuth.getInstance().getUid())\n .child(\"profilepic\").setValue(uri.toString()); //through this the url of profile pic is now being inserted in the node\n\n Toast.makeText(SettingsActivity.this,\"Profile picture updated\",Toast.LENGTH_SHORT).show();\n\n }\n });\n }", "title": "" }, { "docid": "4df9ab292305a7d2d1e2dee956cfbd0d", "score": "0.4817183", "text": "@Override\n public void updateProfileImage(User user) throws DaoException {\n String sql = \"UPDATE `user` SET `profile_image` = ? WHERE `id` = ?\";\n try (PreparedStatement statement = connection.prepareStatement(sql)) {\n statement.setString(1, user.getProfileImage());\n statement.setLong(2, user.getId());\n\n statement.executeUpdate();\n } catch (SQLException e) {\n throw new DaoException(e);\n }\n }", "title": "" }, { "docid": "e6b87df8090009b64bcba40315f10eb6", "score": "0.48166907", "text": "private void setPic() {\n int targetW = 200;\n int targetH = 200;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n BitmapFactory.decodeFile(currentPhotoPath, 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.max(1, 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 Toast.makeText(MainApp.this,\"Displaying image\",Toast.LENGTH_SHORT).show();\n\n Bitmap bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n selectedImage=true;\n imageView.setImageBitmap(bitmap);\n }", "title": "" }, { "docid": "f16a8df6d96f23ed3192dbd94dcd91d6", "score": "0.4815642", "text": "public void setImage(String image);", "title": "" }, { "docid": "b587903ade3f257003527460e79518c3", "score": "0.48156324", "text": "public void save(String url, Integer productId) {\n ProductEntity productEntity = productDao.findById(ProductEntity.class, productId);\n ImageEntity imageEntity = new ImageEntity();\n imageEntity.setImage(url);\n imageEntity.setProduct(productEntity);\n imageDao.persist(imageEntity);\n }", "title": "" }, { "docid": "81d715265c7ebd762b7241efa4465066", "score": "0.48101324", "text": "public void setUrlFoto(String urlFoto) {\r\n\t\tthis.urlFoto = urlFoto;\r\n\t}", "title": "" } ]
e43fdd3bb3adb5164c9cd71cf39a7a7f
Returns true if this service is initialized, otherwise false. This service is considered initialized if the internal reference to the service is not null.
[ { "docid": "8b988bafc56e305ce0f7e7cc5ec7e527", "score": "0.0", "text": "private static boolean isInitialized(Integer storeId)\r\n\t{\r\n\t\tfinal String METHODNAME = \"isInitialized\";\r\n\t\tLOGGER.entering(CLASSNAME, METHODNAME);\r\n\t\tLOGGER.exiting(CLASSNAME, METHODNAME);\r\n\t\treturn mySelfs.containsKey(storeId);\r\n\t}", "title": "" } ]
[ { "docid": "d04f442550e493b52fe2e5340056b480", "score": "0.81604135", "text": "public boolean isInitializationStarted() {\n synchronized (mLock) {\n return mIServiceManager != null;\n }\n }", "title": "" }, { "docid": "cdf310d4089dcdea56b3d5fc95106cfd", "score": "0.75852454", "text": "public static boolean isInitialized() {\n\n return initialized;\n }", "title": "" }, { "docid": "d1b7cfd295a874355dc97bf2436e8887", "score": "0.75068563", "text": "public static boolean isInitialized() {\n return initialized;\n }", "title": "" }, { "docid": "9e1ecf48ac2ab0e67f1bffd1d6719668", "score": "0.74541265", "text": "public boolean isInitialized() {\n return initialized;\n }", "title": "" }, { "docid": "9e1ecf48ac2ab0e67f1bffd1d6719668", "score": "0.74541265", "text": "public boolean isInitialized() {\n return initialized;\n }", "title": "" }, { "docid": "9e1ecf48ac2ab0e67f1bffd1d6719668", "score": "0.74541265", "text": "public boolean isInitialized() {\n return initialized;\n }", "title": "" }, { "docid": "745c999b5b7f080e75228465c3a45197", "score": "0.74521136", "text": "public boolean isInitialized() {\n\t\treturn initialized;\n\t}", "title": "" }, { "docid": "6ccbb9f16de272ddb39e27e23ca24dea", "score": "0.7426767", "text": "public boolean isInitialized() {\n return initialized;\n }", "title": "" }, { "docid": "445699ffe3b2df61c330c0a918db0295", "score": "0.73888236", "text": "public boolean isReady() {\r\n\t\tlock.lock();\r\n\t\ttry {\r\n\t\t\treturn this.service != null;\r\n\t\t} finally {\r\n\t\t\tlock.unlock();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a18695c79d49d7423b6162423e46011e", "score": "0.73750997", "text": "public static boolean isInitialized()\n {\n return isInitialized;\n }", "title": "" }, { "docid": "d6e151d150388114acffed72d090cc07", "score": "0.7295387", "text": "public boolean isInitialized() {\n return this.initialized;\n }", "title": "" }, { "docid": "d3276e4a2bc477220f860e93c67beb0a", "score": "0.72442967", "text": "public boolean isInitialized () {\r\n\t\treturn this.getDao() != null;\r\n\t}", "title": "" }, { "docid": "1f5130ff3c174f0abef416f9300ea233", "score": "0.72286993", "text": "public boolean isInitialized() {\n\t\tif (settings != null) return true;\n\t\telse return false;\n\t}", "title": "" }, { "docid": "f7cdaf21eeb765a094f3f844e31322e6", "score": "0.7190703", "text": "public boolean getInitialized(){\r\n\t\treturn initialized;\r\n\t}", "title": "" }, { "docid": "818fe038f5213497b82b05c2db10c643", "score": "0.71202", "text": "public boolean isStarted() {\n return(svcManagerStarted.get());\n }", "title": "" }, { "docid": "02b4fc3dfda6c62b5195d2340c0c73a0", "score": "0.71100694", "text": "public static boolean isInitialized() {\n\t\treturn attackPhaseModel != null ? true : false;\n\t}", "title": "" }, { "docid": "4a8613faecbb55d59b7ae82aeb04799f", "score": "0.7058511", "text": "public boolean isInitialized();", "title": "" }, { "docid": "4a8613faecbb55d59b7ae82aeb04799f", "score": "0.7058511", "text": "public boolean isInitialized();", "title": "" }, { "docid": "4a8613faecbb55d59b7ae82aeb04799f", "score": "0.7058511", "text": "public boolean isInitialized();", "title": "" }, { "docid": "4a8613faecbb55d59b7ae82aeb04799f", "score": "0.7058511", "text": "public boolean isInitialized();", "title": "" }, { "docid": "4a8613faecbb55d59b7ae82aeb04799f", "score": "0.7058511", "text": "public boolean isInitialized();", "title": "" }, { "docid": "fba9a6ed66a95af4cf2c1312d6bd33db", "score": "0.70532", "text": "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "title": "" }, { "docid": "fba9a6ed66a95af4cf2c1312d6bd33db", "score": "0.70532", "text": "public boolean hasService() {\n return serviceBuilder_ != null || service_ != null;\n }", "title": "" }, { "docid": "d5f821db8f5e6d9c4279c95db99f97b6", "score": "0.70442885", "text": "@java.lang.Override\n public boolean hasService() {\n return service_ != null;\n }", "title": "" }, { "docid": "d5f821db8f5e6d9c4279c95db99f97b6", "score": "0.70442885", "text": "@java.lang.Override\n public boolean hasService() {\n return service_ != null;\n }", "title": "" }, { "docid": "01847792b82fa640ae31f030d4b32c54", "score": "0.7023097", "text": "public static boolean isInitialized()\n\t{\n\t\treturn DeployGate.isInitialized();\n\t}", "title": "" }, { "docid": "16ce748fc88881bb887cafc785a3e8fb", "score": "0.6989803", "text": "public boolean isServiceReady();", "title": "" }, { "docid": "aaac3e9c3f15101d800b6e4ffb84f6ec", "score": "0.6920708", "text": "@Override\n\tpublic boolean isinitialized() {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ce7597e6f2575303fb67b03e7b958161", "score": "0.69134486", "text": "public boolean isReady() {\n return initialized;\n }", "title": "" }, { "docid": "4dca2fa80d070fb82fee82b24d0c8f7d", "score": "0.68775475", "text": "public boolean isInitialized() {\n\t\treturn status[0];\n\t}", "title": "" }, { "docid": "8ebd1247234ac81db3c8f2b65ae0e780", "score": "0.68675345", "text": "public boolean isInitialised()\n {\n return initComplete;\n }", "title": "" }, { "docid": "3a5ba794ea13d08f1701b899277d63b8", "score": "0.6867407", "text": "public boolean isInit() {\n\t\treturn init;\n\t}", "title": "" }, { "docid": "0c21b8e1e5905deaca2a11570184ecd9", "score": "0.6810324", "text": "@Override\n public boolean isInitialized() {\n return true;\n }", "title": "" }, { "docid": "383f97f044673ac3ad63208c18d3476f", "score": "0.6767059", "text": "@Override\r\n\tpublic Boolean isInitialized() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "c6752af0770e36b00a53f9d26fbe37d0", "score": "0.67607117", "text": "public boolean isInitialized() throws FunkyException {\n\t\treturn getFunkyWrapper().isInitialized();\n\t}", "title": "" }, { "docid": "a3dd152259ba23de73c8e1c1dd29f141", "score": "0.6736206", "text": "@Override\r\n public boolean isInitialized() {\r\n return viewPort != null;\r\n }", "title": "" }, { "docid": "685b2717f1f0b15f7f10f72984df2456", "score": "0.6681604", "text": "public synchronized boolean isConnected() {\n return (mService != null && mConnected);\n }", "title": "" }, { "docid": "9716fbe5e9c81e4014a0b94ecb97b36b", "score": "0.6674569", "text": "public boolean isInitialized() {\n return res != null;\n }", "title": "" }, { "docid": "0482d966201050bd83e37f9d58fc1d34", "score": "0.6642176", "text": "public boolean isAccIDInitialized() {\n return accID_is_initialized; \n }", "title": "" }, { "docid": "fffa2889cb0cad93c572b265992f8003", "score": "0.6592734", "text": "public boolean hasInitiators() {\n return !initiators.isEmpty();\n }", "title": "" }, { "docid": "555c71d9afefaa17e4cef87e132b07eb", "score": "0.6582054", "text": "public boolean hasServices()\n {\n return !running && services != null && services.size() > 0;\n }", "title": "" }, { "docid": "3a365d9bf1e6992d075265630eb92e10", "score": "0.65814716", "text": "public static boolean isInitialized (Context context) {\n FileSystem fs = context.getFileSystem();\n if (fs != null) {\n return instances.get(fs) != null;\n }\n return false;\n }", "title": "" }, { "docid": "7f700b192c3269e5a25dbae1901e7ca6", "score": "0.65670484", "text": "@Override\n protected boolean isInitialized() {\n try {\n readLock.lock();\n return this.initialized;\n } finally {\n readLock.unlock();\n }\n }", "title": "" }, { "docid": "863b175dbae3b52f287d94d2652de8be", "score": "0.6551168", "text": "public boolean isInitOK()\n\t{\n\t\treturn m_initOK;\n\t}", "title": "" }, { "docid": "8096f89e91fa2f13bd21c3db003526ac", "score": "0.649447", "text": "public boolean isAccessionKeyInitialized() {\n return AccessionKey_is_initialized; \n }", "title": "" }, { "docid": "ea41abf1ff30bfae888467ce3b2645b7", "score": "0.64797366", "text": "boolean hasService();", "title": "" }, { "docid": "ea41abf1ff30bfae888467ce3b2645b7", "score": "0.64797366", "text": "boolean hasService();", "title": "" }, { "docid": "b29dc35952a3bea300091300105118c9", "score": "0.64675134", "text": "public boolean hasServices() {\n\n\t\treturn services.size() > 0;\n\t}", "title": "" }, { "docid": "966a203f36f65f1f44d7dae5e0c4a9a1", "score": "0.64378667", "text": "public boolean isInitialized(){return bInitialized;}", "title": "" }, { "docid": "9e9fd08695088c2c19f186dd001fc87c", "score": "0.6430218", "text": "public static boolean isServiceOn() {\n\t\treturn sharedPreferences.getBoolean(\"SERVICE_ON\", false);\n\t}", "title": "" }, { "docid": "3beea1f90aa9f0b1af3c726498248000", "score": "0.64283144", "text": "public boolean initialize()\n {\n return true;\n }", "title": "" }, { "docid": "6753b7741dfa75e2af648f224b8d9f9a", "score": "0.64261377", "text": "public boolean isInitializationComplete() {\n return mISupplicant != null;\n }", "title": "" }, { "docid": "e2e3c5747b2ee8eaa7a0319d95f2995b", "score": "0.64195853", "text": "public boolean initialize()\n {\n return true;\n }", "title": "" }, { "docid": "60edff149662a669594eb455a665baec", "score": "0.63884467", "text": "public static synchronized boolean isServiceRunning() {\n if (updateThread != null && updateThread.isAlive() ) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "b1fc0e22cf26e1b9d5e80ff6bde9493e", "score": "0.6387111", "text": "public abstract boolean isInitalized();", "title": "" }, { "docid": "c26670ace0f9999ae9ff417a7d185227", "score": "0.63861483", "text": "public boolean isInitialised();", "title": "" }, { "docid": "74fec706791dee1d0829b02a98aa6efc", "score": "0.63853586", "text": "public boolean isInitComponentCalled() {\n return initComponentIsCalled;\n }", "title": "" }, { "docid": "3ef16b165492101fbb06712b3f22d11b", "score": "0.6382096", "text": "public synchronized boolean isRunning() {\r\n boolean ret = false;\r\n \r\n if (service != null) {\r\n ret = service.isAlive();\r\n }\r\n return ret;\r\n }", "title": "" }, { "docid": "d1748025352e9c0eda5fb86f405f138a", "score": "0.63725394", "text": "public boolean a() {\n if (this.f300b != null) {\n return false;\n }\n ALog.w(\"StrategyCenter not initialized\", (String) null, \"isInitialized\", Boolean.valueOf(this.f299a));\n return true;\n }", "title": "" }, { "docid": "81e6ae6a2aea31b1b2baba21213225e4", "score": "0.63684684", "text": "public boolean isLoaded() {\n \ttry {\n \t\tloadPluginDependencyClass();\n \t\treturn true;\n \t} catch (Throwable t) {\n \t\treturn false;\n \t}\n }", "title": "" }, { "docid": "503883fa3c22d1760a1bafd13b3d9d9c", "score": "0.6359945", "text": "public boolean isInitialized()\r\n/* 26: */ {\r\n/* 27: 74 */ return true;\r\n/* 28: */ }", "title": "" }, { "docid": "69df3fe928ff346731d41f22290bea20", "score": "0.63044494", "text": "public boolean isAmountInitialized() {\n return amount_is_initialized; \n }", "title": "" }, { "docid": "ba5fa21ef24d0cc625926c7898eb5e30", "score": "0.6301725", "text": "public final boolean zzl() {\n if (this.zzcp) {\n return false;\n }\n if (TextUtils.isEmpty(getServiceDescriptor())) {\n return false;\n }\n if (TextUtils.isEmpty(getLocalStartServiceAction())) {\n return false;\n }\n try {\n Class<?> cls = Class.forName(getServiceDescriptor());\n return true;\n } catch (ClassNotFoundException e) {\n return false;\n }\n }", "title": "" }, { "docid": "9f21d86c2f90315c45918bb44531e3f0", "score": "0.6295431", "text": "public boolean isBeingConstructed() {\n return isBeingConstructed_native(pointer);\n }", "title": "" }, { "docid": "2e665e566777d61ecf3ffcd818a55d70", "score": "0.6243299", "text": "private boolean isInstanceLoaded() {\n\t\treturn getInstance() != null;\n\t}", "title": "" }, { "docid": "ec262ac9a284dd8adfc3cf0c1ece9df2", "score": "0.6232684", "text": "public static boolean isInitialized0(com.sun.jdi.ReferenceType a) {\n if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {\n org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallStart(\n \"com.sun.jdi.ReferenceType\",\n \"isInitialized\",\n \"JDI CALL: com.sun.jdi.ReferenceType({0}).isInitialized()\",\n new Object[] {a});\n }\n Object retValue = null;\n try {\n boolean ret;\n ret = a.isInitialized();\n retValue = ret;\n return ret;\n } catch (com.sun.jdi.InternalException ex) {\n retValue = ex;\n org.netbeans.modules.debugger.jpda.JDIExceptionReporter.report(ex);\n return false;\n } catch (com.sun.jdi.VMDisconnectedException ex) {\n retValue = ex;\n if (a instanceof com.sun.jdi.Mirror) {\n com.sun.jdi.VirtualMachine vm = ((com.sun.jdi.Mirror) a).virtualMachine();\n try {\n vm.dispose();\n } catch (com.sun.jdi.VMDisconnectedException vmdex) {}\n }\n return false;\n } catch (com.sun.jdi.ObjectCollectedException ex) {\n retValue = ex;\n return false;\n } catch (Error err) {\n retValue = err;\n throw err;\n } catch (RuntimeException rex) {\n retValue = rex;\n throw rex;\n } finally {\n if (org.netbeans.modules.debugger.jpda.JDIExceptionReporter.isLoggable()) {\n org.netbeans.modules.debugger.jpda.JDIExceptionReporter.logCallEnd(\n \"com.sun.jdi.ReferenceType\",\n \"isInitialized\",\n retValue);\n }\n }\n }", "title": "" }, { "docid": "eb2555d561b48f4bcd232f74cbe5e01c", "score": "0.62321943", "text": "public boolean initialize();", "title": "" }, { "docid": "72313d808bd894a846e202c791e24a6d", "score": "0.62204844", "text": "public boolean isFullyConfigured() {\n return fullyConfigured;\n }", "title": "" }, { "docid": "dd6b30a70311bd8b1030bf11c17321db", "score": "0.62087804", "text": "public boolean isConnected(){\n \treturn ConnectionService.this.isConnected();\n }", "title": "" }, { "docid": "ab4da8dd7e9b674a1bcb97b43bb04348", "score": "0.6185777", "text": "boolean hasServiceName();", "title": "" }, { "docid": "0bc2551cc0deb8eba72a5e5326ce4366", "score": "0.6176976", "text": "public boolean isSetIsService() {\n return EncodingUtils.testBit(__isset_bitfield, __ISSERVICE_ISSET_ID);\n }", "title": "" }, { "docid": "f2b3237af9465298b90a7bf9f6ddc173", "score": "0.6176114", "text": "public boolean isAddressInitialized() {\n return address != null && address.hasLatitude() && address.hasLongitude();\n }", "title": "" }, { "docid": "4a04cb92b35914e01c776de9796cd062", "score": "0.61749315", "text": "public boolean isSetServiceID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SERVICEID$0) != null;\n }\n }", "title": "" }, { "docid": "440e0aacb570d36b0fd16ea48b5aaeba", "score": "0.61495936", "text": "@SuppressWarnings(\"SimplifiableIfStatement\")\n\tpublic static boolean isInitialized(Object proxy) {\n\t\tif ( proxy instanceof HibernateProxy ) {\n\t\t\treturn !( (HibernateProxy) proxy ).getHibernateLazyInitializer().isUninitialized();\n\t\t}\n\t\telse if ( proxy instanceof PersistentAttributeInterceptable ) {\n\t\t\tfinal PersistentAttributeInterceptor interceptor = ( (PersistentAttributeInterceptable) proxy ).$$_hibernate_getInterceptor();\n\t\t\tif ( interceptor instanceof EnhancementAsProxyLazinessInterceptor ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse if ( proxy instanceof PersistentCollection ) {\n\t\t\treturn ( (PersistentCollection) proxy ).wasInitialized();\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "a7bf3a68f8f243ec7319c2f821cd321a", "score": "0.6113307", "text": "public boolean isLoaded() {\n return isLoaded_native(pointer);\n }", "title": "" }, { "docid": "92a659af37c710557db6c8c0440c2d3d", "score": "0.6107897", "text": "public boolean isObjectKeyInitialized() {\n return ObjectKey_is_initialized; \n }", "title": "" }, { "docid": "40971ef8b7cc7be8360ce5bf12e3d289", "score": "0.60984397", "text": "public boolean isUpdateDateInitialized() {\n return updateDate_is_initialized; \n }", "title": "" }, { "docid": "a1d7e01854956636f39215e14d86ab9d", "score": "0.60741067", "text": "private boolean init() {\n if (!initialized) {\n mParser = OpenGraphProtocolParser.parse(mRoot, mTimingInfo);\n initialized = true;\n }\n return mParser != null;\n }", "title": "" }, { "docid": "39ab0d411d2f56111cc7a833f1fd98e2", "score": "0.60627437", "text": "public boolean isInitialLoad() {\n return this.initialLoad;\n }", "title": "" }, { "docid": "856d772c0ca27924281ee4192137c258", "score": "0.60570633", "text": "public boolean isTariffidInitialized() {\n return tariffid_is_initialized; \n }", "title": "" }, { "docid": "3f1341894b2d283fa21d2539b8e37ea9", "score": "0.6045881", "text": "public boolean initialize() {\n if (sVerboseLoggingEnabled) Log.i(TAG, \"Registering ISupplicant service ready callback.\");\n synchronized (mLock) {\n if (mIServiceManager != null) {\n Log.i(TAG, \"Supplicant HAL already initialized.\");\n // Already have an IServiceManager and serviceNotification registered, don't\n // don't register another.\n return true;\n }\n mISupplicant = null;\n mISupplicantP2pIface = null;\n try {\n mIServiceManager = getServiceManagerMockable();\n if (mIServiceManager == null) {\n Log.e(TAG, \"Failed to get HIDL Service Manager\");\n return false;\n }\n if (!linkToServiceManagerDeath()) {\n return false;\n }\n /* TODO(b/33639391) : Use the new ISupplicant.registerForNotifications() once it\n exists */\n if (!mIServiceManager.registerForNotifications(\n ISupplicant.kInterfaceName, \"\", mServiceNotificationCallback)) {\n Log.e(TAG, \"Failed to register for notifications to \"\n + ISupplicant.kInterfaceName);\n mIServiceManager = null; // Will need to register a new ServiceNotification\n return false;\n }\n\n // Successful completion by the end of the 'try' block. This will prevent reporting\n // proper initialization after exception is caught.\n return true;\n } catch (RemoteException e) {\n Log.e(TAG, \"Exception while trying to register a listener for ISupplicant service: \"\n + e);\n supplicantServiceDiedHandler();\n }\n return false;\n }\n }", "title": "" }, { "docid": "9cdb5dd1963a3d03b4d8dd6b3fa295cf", "score": "0.6045263", "text": "public boolean isSiteInfoKeyInitialized() {\n return SiteInfoKey_is_initialized; \n }", "title": "" }, { "docid": "2bf9baf189c76f1f0631633ddc5eb6b8", "score": "0.60395926", "text": "public boolean isLoaded() {\n\t\treturn isLoaded;\n\t}", "title": "" }, { "docid": "5b7a86e22dee0ef51223cc5ea115b0b9", "score": "0.60363364", "text": "public boolean allowsInit();", "title": "" }, { "docid": "c157457a4debc11118fe19bdb1acec63", "score": "0.6034259", "text": "public boolean isCreateUserInitialized() {\n return createUser_is_initialized; \n }", "title": "" }, { "docid": "f229e5f1f49e9c654250750aed2d79d7", "score": "0.60325253", "text": "public boolean isServiceSuccess() {\n // In future, we might tighten this up... or not. It is a little loosey goosey, but I don't see any harm either.\n return this.communicationException == null && this.errorMessage == null && this.convioErrorCode == null;\n }", "title": "" }, { "docid": "f226b1000fbfde8c6f0da89e0f930b4a", "score": "0.6032062", "text": "@SuppressWarnings(\"BooleanMethodIsAlwaysInverted\")\n boolean getHasInit();", "title": "" }, { "docid": "add1e80e3ded7047be5ced93034da1d9", "score": "0.6029714", "text": "public boolean isDefaultService() {\n\t\treturn defaultService;\n\t}", "title": "" }, { "docid": "e422941dd20dc5743643132fc362e8eb", "score": "0.60107225", "text": "public boolean isSourceidInitialized() {\n return sourceid_is_initialized; \n }", "title": "" }, { "docid": "0bcc48ccc8bad86ddeb2c4de94cce8f5", "score": "0.60047716", "text": "public boolean isSetServiceRegistryFILENAME() {\n return this.serviceRegistryFILENAME != null;\n }", "title": "" }, { "docid": "cbff4f02e586d92fe2eb2a0c12c954f6", "score": "0.60003394", "text": "public static boolean isInstantiated() {\n return !(oaclient == null);\n }", "title": "" }, { "docid": "bc8097eef19e4a4099364fda8ff41bbe", "score": "0.599519", "text": "private boolean isInitialised() {\n if (Player.count(Player.class) > 0)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "470f14cb923422035a1009113fba1d8f", "score": "0.5994884", "text": "public boolean adServiceIsOn() {\n\t\treturn (adThreadLooper);\n\t}", "title": "" }, { "docid": "d725797374a06cae4883599bb632d982", "score": "0.59889966", "text": "public boolean isTemplateURLServiceLoaded() {\n return nativeIsTemplateURLServiceLoaded();\n }", "title": "" }, { "docid": "fcbcad8e42aa238382caf13fe7e213e0", "score": "0.5977838", "text": "public boolean isTimerServiceNull() {\n return timerService == null;\n }", "title": "" }, { "docid": "93205fbb9ec5f04d8eb59173dff255bc", "score": "0.597244", "text": "public boolean hasServiceName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "fc078be1c518040dd66057bbeb352d42", "score": "0.5971588", "text": "public boolean isCreateDateInitialized() {\n return createDate_is_initialized; \n }", "title": "" }, { "docid": "d398980b4f48363364985e8795443581", "score": "0.59663975", "text": "public boolean initWebServiceAdm() {\n\t\ttry {\n\t\t\t//this.service = new AdministrationEndPoint_Service();\n\t\t\t//this.port = service.getAdministrationEndPointPort();\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "53817227903d8cd2520d3f0a22c1a849", "score": "0.59625566", "text": "@Pure\n public static boolean is_class_initialized(Class<?> clazz) {\n debug_primitive.log(\"is_class_initialized%n\");\n return initialized_eclassses.contains(clazz.getName());\n }", "title": "" }, { "docid": "dc71e06483dd0ddac3432d4e51f1b8f9", "score": "0.59604776", "text": "boolean hasServiceConfig();", "title": "" }, { "docid": "beb530405be942b5af450e2497d50f97", "score": "0.5959265", "text": "public boolean hasServiceName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" } ]
6fc60e512fb3b455e48825a93ea9840a
Add item to the cart
[ { "docid": "e08f834c8c922f866bcc4357d479f4c4", "score": "0.0", "text": "ExecResult<Long> removeSku(long userId, long skuId);", "title": "" } ]
[ { "docid": "c30df0db51dd1e0005c7bb70b401f4b3", "score": "0.8629723", "text": "void addCartItem(CartItem cartItem);", "title": "" }, { "docid": "80302ad8a0003d85b4cf18d22eedc7ff", "score": "0.75738543", "text": "public static void add1ItemToCart() { \n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"content\\\"]/div[2]/div[1]/div/div[3]/button[1]\")).click();\n\t}", "title": "" }, { "docid": "ec5ceba728916991fa6fa86093bbd52f", "score": "0.7551112", "text": "public void addToCart(ItemInfo item) {\n int n = item.getNumToBuy();\n if (n + 1 <= item.getInventory()) {\n if (item.getCartid() != id) {\n item.setCartid(id);\n items.put(item.getId(), item);\n }\n\n item.setNumToBuy(n + 1);\n totalPrice += item.getPrice();\n item.save();\n }\n }", "title": "" }, { "docid": "673fe0210f6c17d04e4d7649c3163b37", "score": "0.74413246", "text": "public void addCartItem(String itemName, String quantity, String totalPrice, Integer position)\n throws BackendException;", "title": "" }, { "docid": "151de8aa1233e56428830c1db55d99cb", "score": "0.73909384", "text": "public void addItemToCart(String title) {\n if (this.items == null) {\n this.items = new HashMap<>();\n }\n //2. check existed of product\n int quantity = 1;\n if (this.items.containsKey(title)) {\n quantity = this.items.get(title) + 1;\n }\n\n this.items.put(title, quantity);\n }", "title": "" }, { "docid": "20668cc037f93dc5d48e415a4dc7754e", "score": "0.7281179", "text": "public void addToCart() {\n // Workaround for explicit waiting\n try { Thread.sleep(1000); } catch (InterruptedException e) {}\n this.addToCartButton.click();\n }", "title": "" }, { "docid": "4a05eb120b47925f169b5385bf2dc766", "score": "0.72315854", "text": "public void addToCart() throws Exception {\n\n\t\tproductPageObject.clickAddToCartButton();\n\n\t}", "title": "" }, { "docid": "97bb4e8c1b7c52fbda2fd479882f57d3", "score": "0.7223788", "text": "public void addItemToCart(String title) {\r\n cartListModel.addElement(title);\r\n }", "title": "" }, { "docid": "09030566b5ca620baf795863861b8c3c", "score": "0.71944135", "text": "public void addToClientCart() {\n String client_id = getToken(\"Enter client id\");\n String product_id = getToken(\"Enter product id\");\n int product_quantity = getNumber(\"Enter product quantity\");\n warehouse.addToClientCart(client_id, product_id, product_quantity);\n }", "title": "" }, { "docid": "72a9382c45a7f36e3d96c87ea9576d3e", "score": "0.71941334", "text": "public void addCartItem(String itemName, String quantity, String totalPrice, Integer pos) throws DatabaseException {\n if(liveCart == null){\r\n liveCart = new ShoppingCart(new LinkedList<ICartItem>());\r\n }\r\n \r\n IProductSubsystem productSubsystem = new ProductSubsystemFacade();\r\n Integer productId = productSubsystem.getProductIdFromName(itemName);\r\n CartItem item = new CartItem(null,productId, \r\n liveCart.getCartItems().size(),quantity, \r\n totalPrice,false);\r\n if(pos == null) liveCart.addItem(item);\r\n else liveCart.insertItem(pos, item);\r\n }", "title": "" }, { "docid": "6b06f7fa3217a4ad99c93b0e11f14556", "score": "0.7170873", "text": "public void addItem(ShopItem item) {\r\n items.add(item);\r\n }", "title": "" }, { "docid": "12f3d5a3992122888b011679ba16c5ac", "score": "0.7140102", "text": "public boolean addToCart() throws IOException{\n boolean itemAdded = false;\n try {\n String originalContext = driver.getContext();\n driver.context(\"NATIVE_APP\");\n\n commonUtil.scrollDown();\n Thread.sleep(1000);\n purchase.addCart.click();\n\n itemAdded = true;\n Reporter.log(\"Item added to cart.\");\n\n wait.until(ExpectedConditions.visibilityOf(purchase.viewCart));\n purchase.viewCart.click();\n\n logger.info(\"Add item to cart and view in checkout\");\n Thread.sleep(5000);\n\n driver.context(originalContext);\n }\n catch (Exception e){\n logger.error(\"Exception\", e);\n commonUtil.takeScreenshot();\n }\n\n return itemAdded;\n }", "title": "" }, { "docid": "74af57c6a2232a9e2e0ae1adefaa7d65", "score": "0.71370393", "text": "public void addProductToCartByPID(Product product) {\n\r\n\t\tcart.add(product);\r\n\t\t\r\n\t\tsetCart(cart);\r\n\t\t//System.out.println(\"\"+cart);\r\n\t\t//System.out.println(\"addtocart\" + product);\r\n\t\t\r\n\t\t//System.out.println(\"get cart\" + cart);\r\n\t\t//return cart;\r\n\t\t\r\n\t\r\n}", "title": "" }, { "docid": "b07f7994e4934e6099d3995f5cd85f22", "score": "0.7133871", "text": "@Override\n\tpublic void addCartItem(String cart_item_id, int cart_quantity, int cart_user_id) {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tint items_id = 0;\n\t\t\t/*Item item = new Item();\n\t\t\titem.setItemId(cart_item_id);\n\t\t\tItemDetails itemDetails = new ItemDAOImplementation().getItem(item);\n\t\t*/\n\t\t\tDBConnection dbConnection = new DBConnection();\n\t\t\tString ssql = \"SELECT items_id FROM items where item_id='\" + cart_item_id + \"'\";\n\t\t\tSystem.out.println(ssql);\n\t\t\tPreparedStatement sps = dbConnection.connect().prepareStatement(ssql);\n\t\t\tResultSet rs = sps.executeQuery();\n\t\t\tif(rs.next()) \n\t\t\t\titems_id = rs.getInt(1);\n\t\t\tsps.close();\n\t\t\trs.close();\n\t\t\tdbConnection.disconnect();\n\t\t\t\n\t\t\t//pushps\n\t\t\tSystem.out.println(items_id);\n\t\t\t\n\t\t\tboolean newItem = true; \n\t\t\t\n\t\t\tssql = \"SELECT cart_quantity FROM carts where cart_item_id=\" + items_id +\" AND cart_user_id=\"+cart_user_id;\n\t\t\tSystem.out.println(ssql);\n\t\t\tsps = dbConnection.connect().prepareStatement(ssql);\n\t\t\trs = sps.executeQuery();\n\t\t\t\n\t\t\t\n\t\t\tif (rs.next()) { \n\t\t\t\t\n\t\t\t\tnewItem = false; \n\t\t\t\tint new_cart_quantity = cart_quantity + rs.getInt(\"cart_quantity\");\n\t\t\t\tSystem.out.println(cart_quantity);\n\t\t\t\tString usql = \"UPDATE carts SET cart_quantity= \"+ new_cart_quantity +\" where cart_item_id = \"+ items_id + \" AND cart_user_id=\" + cart_user_id;\n\t\t System.out.println(usql);\n\t\t\t PreparedStatement ups = dbConnection.connect().prepareStatement(usql);\n\t\t\t ups.execute();\n\t\t\t ups.close();\n\t\t\t\t//dbConnection.disconnect();\n\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\n\t\t String isql = \"INSERT INTO carts (cart_user_id, cart_item_id, cart_quantity) VALUES (?, ?, ?)\";\n\t\t System.out.println(isql + \"iid = \" + items_id); \n\t\t \n\t\t PreparedStatement ips = dbConnection.connect().prepareStatement(isql);\n\t\t\tips.setInt(1, cart_user_id);\n\t\t\tips.setInt(2, items_id);\n\t\t\tips.setInt(3, cart_quantity);\n\t\t\t\n\t\t ips.execute();\n\t\t ips.close();\n\t\t\tdbConnection.disconnect();\n\t\t//System.out.println(\"The item added to the cart here-------------------------\");\n\t\t//return true;\n\t\t\t\t}// else ends\n\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//return false;\n\t}", "title": "" }, { "docid": "ed3d47d2270d39e8d4258328c182bab9", "score": "0.7132341", "text": "@Override\n\tpublic int addCartItem(CartItem ci) {\n\t\ttry {\n//\t\t\tSystem.out.println(\"addCartItem\");\n//\t\t\tSystem.out.println(\"CartItem: \" + ci);\n\t\t\tconnect();\n\t\t\tem.getTransaction().begin();\n\t\t\tem.persist(ci);\n\t\t\tem.getTransaction().commit();\n\t\t\treturn 1;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn 0;\n\t\t} finally {\n\t\t\tdisconnect();\n\t\t}\n\t}", "title": "" }, { "docid": "850c275d218df47770fff568e52d04e6", "score": "0.71219355", "text": "public void addNewItem(Item itemToBeAdded) {\n receipt.addNewItem(itemToBeAdded);\n }", "title": "" }, { "docid": "e95739e1faf2bdc400e6a392c229c91b", "score": "0.711897", "text": "public void addCartItem(long userId, long menuItemId);", "title": "" }, { "docid": "56dd1078bb16b7bb3d17a44860a28907", "score": "0.7118072", "text": "@Override\n public void addItem(Product product) {\n\n boolean isAdded = shopViewModel.addItemToCart(product);\n if(isAdded){\n Snackbar.make(requireView(), product.getName() + \" added to cart.\",\n Snackbar.LENGTH_LONG).setAction(\"Checkout\", new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n navController.navigate(R.id.action_productsFragment_to_cartFragment);\n }\n })\n .show();\n }else{\n Snackbar.make(requireView(), \" Max amount has been added to cart.\",\n Snackbar.LENGTH_LONG).show();\n }\n\n\n }", "title": "" }, { "docid": "2731c6c8ed5ca60cbc41ea3185bf34cc", "score": "0.7106055", "text": "public void addItem(Item item) {}", "title": "" }, { "docid": "5e8f6274d60d31f2e135fdc07b316172", "score": "0.71012", "text": "public void addProduct(Product item)\n {\n if (findProduct(item.getID()) == null){\n stock.add(item);\n }\n else{\n System.out.println(\"El producto solicitado ya existe \");\n }\n\n }", "title": "" }, { "docid": "fe77293dbdcc29350648da47c9603c5a", "score": "0.70792305", "text": "public void addToCart()\n {\n FluentWebElement button_addToCart = el(\"input\", withId(\"add-to-cart-button\"));\n button_addToCart.click();\n\n }", "title": "" }, { "docid": "fff13503b6239eaa96f91fc7e6b323ae", "score": "0.70767117", "text": "public void addCartEntry(Item item, int quantity) {\n\n if (item != null && quantity > 0) {\n for (CartEntry entry : cartEntries) {\n if (entry.getItem() == item) {\n entry.setQuantity(entry.getQuantity() + quantity);\n return;\n }\n }\n\n cartEntries.add(new CartEntry(item, quantity));\n }\n }", "title": "" }, { "docid": "018da45db9a0a10a975a8ffdf3490a74", "score": "0.7071592", "text": "@Override\n public void add(Cart cart) throws DaoException {\n List<LineItem> lineItems = cart.getCART();\n Integer cartId = cart.getId();\n for(LineItem lineItem: lineItems) {\n Integer productId = lineItem.getProduct().getId();\n Integer quantity = lineItem.getQuantity();\n try {\n PreparedStatement ps = (ConnectionManager.getConnection()).prepareStatement(\n \"INSERT INTO line_item (cart_id, product_id, quantity) VALUES(?, ?, ?);\");\n ps.setInt(1, cartId);\n ps.setInt(2, productId);\n ps.setInt(3, quantity);\n ps.execute();\n } catch (SQLException e) {\n throw new DaoException(e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "33c519722f4aa9cce2098de241d7e3e7", "score": "0.70649785", "text": "public int addToBasket(StockItem item, int quantity) {\n //amount of quantities that the customer is adding to shopping cart\n if ((item != null) && (quantity > 0)) {\n int inBasket = list.getOrDefault(item, 0);\n list.put(item, inBasket + quantity);\n }\n return 0; //means that the customer is not buying anything, return 0\n }", "title": "" }, { "docid": "4da4666b5b0b948c7d8e95b4aaf88a6f", "score": "0.7064535", "text": "public void add(ItemOrder inputItemOrder){\n\n int repeatIndex = -1; // setup an index to figure out if the item is already in the cart\n\n for (ItemOrder captured : listShoppingCart){ // scan through the cart\n if (captured.getItem().equals(inputItemOrder.getItem())){ // determine if the cart already has the item\n repeatIndex = listShoppingCart.indexOf(captured); // if it does, update the index\n }\n }\n\n if (repeatIndex != -1){\n // if the index was updated then drop and add the item\n listShoppingCart.remove(repeatIndex);\n listShoppingCart.add(inputItemOrder);\n } else {\n // if the index wasn't updated, add the item\n listShoppingCart.add(inputItemOrder);\n }\n }", "title": "" }, { "docid": "a331229579c5c09cd628869073f11b5f", "score": "0.70499986", "text": "void addItem(Item item) {\n\t catalog.add(item);\n }", "title": "" }, { "docid": "3200f687d02d71f44f5008c079db1725", "score": "0.70250344", "text": "public CartItem addToCart(int productID, int quantity){\n\t\t// Calling Other Controller (Product)\n\t\tProduct product = ProductHandler.getInstance().getProduct(productID);\n\n\t\t// Create Cart Item entitiy\n\t\tCartItem item = new CartItem(product, quantity);\n\t\tthis.listCart.add(item);\n\t\t//Returning Entity;\n\t\treturn item;\n\t}", "title": "" }, { "docid": "9321e51f4cc2911a977a789a93ed863c", "score": "0.7021648", "text": "public void add(Carte c){\n carti.add(c);\r\n }", "title": "" }, { "docid": "2cb5a187446de17117166a904480e2b1", "score": "0.6991234", "text": "public void addItemsToCart(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String userName = ((User)request.getSession().getAttribute(\"user\")).getUsername();\n String bookID = request.getParameter(\"book_id\");\n if(StringUtil.isArgumentsContainNull(userName,bookID)) return;\n CartDao cartDao = new CartDaoImpl();\n int status_code = cartDao.addCartItem(userName,bookID);\n if(status_code == 1){\n //Suceess, forward to cart page\n showCartItem(request,response);\n }else if(status_code == 2){\n //Duplicate to cart page, forward to cart page\n request.setAttribute(\"dup\",\"true\");\n Book book = new BookDaoImpl().getBookById(bookID);\n request.setAttribute(\"book\",book);\n request.getRequestDispatcher(\"book/bookdetail.jsp\").forward(request,response);\n }\n\n //request.getRequestDispatcher().forward(request,response);\n\n }", "title": "" }, { "docid": "ea455a4c417eed267a2f40183dd47fdc", "score": "0.6989016", "text": "public void addItem(Item item) {\n }", "title": "" }, { "docid": "4c57325977e4da2ba6f0848088898fb1", "score": "0.69884956", "text": "Response addToCart(String token, CartDTO dto);", "title": "" }, { "docid": "7366414d914f3726587acbe8a14f1a09", "score": "0.69853103", "text": "public void add (View v){\n Toast.makeText(this,\"added to cart\",Toast.LENGTH_LONG).show();\n }", "title": "" }, { "docid": "e7487dcc46c3392f176203149ebceb18", "score": "0.694919", "text": "void add(Item item);", "title": "" }, { "docid": "648460f547d8dcdaf3981e98460ced79", "score": "0.69247496", "text": "public void add(Product product){\n transaction.add(product);\n product.setInCart(true);\n product.setCount(product.getCount()+1);\n }", "title": "" }, { "docid": "b591275c63862039aaa97cf6491ac6b2", "score": "0.69198287", "text": "public void clickAddToCart() {\n\t\taddToCart.click();\n\t\tlog.info(\"Se hace click en el botón Add to Cart\");\n\t\ttakeScreenshot(driver);\n\t}", "title": "" }, { "docid": "9b0ee3865a7a05956f4ef780c704ab4f", "score": "0.69040096", "text": "public void addShoppingCart(String userEmail,String productID);", "title": "" }, { "docid": "54dd354a588b01592e6d4b7b79c5b6de", "score": "0.6901401", "text": "public boolean AddToCart(Cart cart) {\n\t\tif(product.Reserve(1)) {\n\t\t\treservedQtd ++;\n\t\t\tcart.AddProduct(this);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ea6ab16c1b49f6b2642b10b81f56a142", "score": "0.6889783", "text": "@Override\r\n\tpublic void addToCart(Bufcart bufcart) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\r\n\t\tsession.saveOrUpdate(bufcart);\r\n\t}", "title": "" }, { "docid": "8a497bb5a975b14d20c51d85d0dba3cf", "score": "0.68708557", "text": "@Override\n public void addProductQuantity(Product p, int quantity){\n\n for (int i = 1; i < itemsInCart.size(); i++){\n if (itemsInCart.get(i)[0] == p.getProductID()){\n itemsInCart.get(i)[1] += quantity;\n\n return;\n }\n }\n\n Integer[] newItem = {p.getProductID(), quantity};\n itemsInCart.add(newItem); // If product does not exist in cart\n }", "title": "" }, { "docid": "c286b1fa4c34a7acb96e3eb88ae4cd21", "score": "0.6868315", "text": "public boolean addProductToCart(int accountId, int productId, int quantity) {\n \tCartItem cartItem = new CartItem(accountId, productId, quantity);\n \treturn cartItemRepository.insertOne(cartItem);\n }", "title": "" }, { "docid": "c7e08970651f1dbde90abeae767d306e", "score": "0.6866562", "text": "public void addItem(Item item, int quantity) throws SQLException, ItemNotFoundException,\n InvalidQuantityException, DatabaseInsertException, InvalidInputException {\n // check if the quantity is valid\n if (quantity > 0) {\n boolean itemFound = false;\n // check if item is valid\n for (Item currentItem : DatabaseSelectHelper.getAllItems()) {\n if (currentItem.getName().equals(item.getName())) {\n itemFound = true;\n // check if item is already in the cart\n boolean cartContainsItem = false;\n for (Item cartItem : this.getItems()) {\n if (cartItem.getId() == item.getId()) {\n cartContainsItem = true;\n // multiply the price of the item * quantity\n BigDecimal priceBefore =\n BigDecimal.valueOf(cart.get(cartItem)).multiply(cartItem.getPrice());\n\n // add the quantity of the item to the current quantity\n cart.replace(cartItem, cart.get(cartItem) + quantity);\n BigDecimal priceAfter = BigDecimal.valueOf(cart.get(cartItem))\n .multiply(currentItem.getPrice()).setScale(2);\n\n // update the total\n total = total.add(priceAfter.subtract(priceBefore));\n\n break;\n }\n }\n if (!cartContainsItem) {\n // otherwise just add the item normally\n cart.put(currentItem, quantity);\n BigDecimal priceAfter = BigDecimal.valueOf(cart.get(currentItem))\n .multiply(currentItem.getPrice()).setScale(2, BigDecimal.ROUND_UP);\n\n // update the total\n total = total.add(priceAfter).setScale(2, BigDecimal.ROUND_UP);\n }\n\n }\n\n }\n if (!itemFound) {\n throw new ItemNotFoundException(\"The item could not be found!\");\n }\n\n } else {\n // if quantity is invalid throw an exception\n throw new InvalidQuantityException(\"The quantity entered is invalid!\");\n }\n }", "title": "" }, { "docid": "c35861ba2f9df2e4a198300613176271", "score": "0.6838978", "text": "@Transactional\n\tpublic void generateCartItem(CartItem cartItem) throws ParseException {\n\t\t// get cart\n\t\tCart cart = getCart();\n\t\tMap<Integer, CartItem> cartItemMap = cart.getCartItemsMap();\n\t\t// List<CartItem> list =cart.getCartItems();\n\t\t// update加入时的时间\n\t\tDate date = new Date();\n\t\tSimpleDateFormat temp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tString date2 = temp.format(date);\n\t\tDate date3 = temp.parse(date2);\n\t\tcartItem.setAddtime(date3);\n\t\t// if it exists?\n\t\tInteger pid = cartItem.getProduct().getPid();\n\t\t// find by pid\n\t\tif (cartItemMap.containsKey(pid)) {\n\t\t\t// Y-->increase the count, total\n\t\t\tCartItem oldCartItem = cartItemMap.get(pid);\n\t\t\toldCartItem.setCount(oldCartItem.getCount() + cartItem.getCount());\n\t\t\toldCartItem.setAddtime(cartItem.getAddtime());\n\t\t\tcartItemDao.update(oldCartItem);\n\t\t\tcartItemMap.put(pid, oldCartItem);\n\t\t} else {\n\t\t\t// N-->add the item to the cart, then change the total\n\t\t\tcartItemDao.save(cartItem);\n\t\t\tcartItemMap.put(pid, cartItem);\n\t\t\t// 保存购物项\n\t\t}\n\t\tServletActionContext.getRequest().getSession().setAttribute(\"cart\", cart);\n\t}", "title": "" }, { "docid": "4b468fc26b5ebab070e1a238610463af", "score": "0.68145937", "text": "public Integer add(CartModel model);", "title": "" }, { "docid": "39c7020941448bc75842dd99fe92273d", "score": "0.6801605", "text": "public void addToInventory(int quantity) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0abf8987ccfec657b0625ee1bdf5e7cc", "score": "0.67609304", "text": "public boolean addToCart(int prod_id, int cust_id) throws BusinessException;", "title": "" }, { "docid": "554234183c59d261271a1d83887912ed", "score": "0.67565036", "text": "public String addItem(ItemDTO item){\n itemName = item.getName();\n itemPrice = item.getPrice();\n runningTotal = runningTotal + itemPrice;\n createOrderLine(itemName, itemPrice);\n return saleInfo = buildString();\n }", "title": "" }, { "docid": "317415493802080c11106b0b955b9579", "score": "0.67561895", "text": "@Override\n\tpublic void addCartItem(long userId, long menuItemId) {\n\n\t\tboolean existInCart = false;\n\t\ttry {\n\t\t\tCart cart = getAllCartItems(userId);\n\t\t\tif (!(cart.getMenuItemList().isEmpty())) {\n\t\t\t\tfor (MenuItem menu : cart.getMenuItemList()) {\n\t\t\t\t\tif (menu.getId() == menuItemId) {\n\t\t\t\t\t\texistInCart = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (CartEmptyException e) {\n\n\t\t}\n\n\t\tif (!existInCart) {\n\t\t\ttry {\n\t\t\t\tConnection con = ConnectionHandler.getConnection();\n\n\t\t\t\tString Query = \"insert into cart(uid,menuid)\" + \"values (?,?) \";\n\t\t\t\tPreparedStatement stmt = con.prepareStatement(Query);\n\t\t\t\tstmt.setLong(1, userId);\n\t\t\t\tstmt.setLong(2, menuItemId);\n\t\t\t\tstmt.execute();\n\t\t\t} catch (ClassNotFoundException | IOException | SQLException ee) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tee.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * try { Connection con = ConnectionHandler.getConnection(); String Query =\n\t\t * \"insert into cart(uid,menuid)\" + \"values (?,?) \"; PreparedStatement stmt =\n\t\t * con.prepareStatement(Query); stmt.setLong(1, userId); stmt.setLong(2,\n\t\t * menuItemId); stmt.execute(); } catch (ClassNotFoundException | IOException |\n\t\t * SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); }\n\t\t */\n\n\t}", "title": "" }, { "docid": "ec10c871264d3b2c0a31146644a22d4f", "score": "0.67418104", "text": "private void AddItem() {\n\t\t\n\t}", "title": "" }, { "docid": "651c6e81f636c62a199e4ba0406dc188", "score": "0.67370296", "text": "@Override\n\tpublic boolean addCart(int productid, int productnum, int accountid) {\n\t\treturn cartDao.addCart( productid, productnum,accountid);\n\t}", "title": "" }, { "docid": "e9aeb3b5cf6806da22ed5aafa1fa7128", "score": "0.6733886", "text": "@Override\n\tpublic Cart addProductToCart(Cart cart, Product p, int quantity) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "4afae4e1076f51c5e6dfeeea37a59f0d", "score": "0.67303985", "text": "public void addItem(OrderItem item){\n\t\tSystem.out.println(String.format(\"Adding item... %-25s\" + \" quantity: \" + item.getQuantity(), item.getProduct().getName()));\n\t\tboolean found = false;\n\t\t\n\t\tif(orderItems == null){\n\t\t\torderItems = new ArrayList<OrderItem>();\n\t\t}\n\t\t\n\t\tfor(OrderItem currentItem: orderItems){\n\t\t\t//if item already exists\n\t\t\tif(currentItem.isSameProduct(item)){\n\t\t\t\t//then merge it\n\t\t\t\tcurrentItem.setQuantity(currentItem.getQuantity() + item.getQuantity());\n\t\t\t\tfound = true;\n\t\t\t}\n\t\t}\n\n\t\t\n\t\t//if item does not exist, add it\n\t\tif(found == false){\t\n\t\t\torderItems.add(item);\n\t\t}\n\t\t//update subTotal\n\t\tsubTotal = subTotal + (item.getItemTotalPrice());\n\t}", "title": "" }, { "docid": "ae1777185059a928f96aea7bb064bf13", "score": "0.67171216", "text": "public void addToInventory(Item item){\n \t//kollar om det r moneyItem, i s fall lggs penagr till men moneyitem lggs inte till inventory.\n \tif(item instanceof MoneyItem){\n \t\tsetMoney((((MoneyItem) item).getMoney() + getMoney()));\n \t}\n \telse{\n \t \tinventory.add(item);\n \t \tupdateQuests(item.getName(), this);\n \t \tsetChanged();\n \t notifyObservers(inventory); \n \t}\n }", "title": "" }, { "docid": "a7d79e8cabfb536c69f907257e50c23a", "score": "0.67160743", "text": "public void addItem(String itemName, int price, int purchaseQuantity,\n\t\t\tint atPriceQuantity) throws Exception;", "title": "" }, { "docid": "4f6e62e30f72675905b66ef9486e4a83", "score": "0.6700279", "text": "public void addItem(String itemName, int price) throws Exception;", "title": "" }, { "docid": "2c7fab86180a69f4400ce10c485f4d0f", "score": "0.669358", "text": "public void addItem(Item item){\n this.items.add(item);\n }", "title": "" }, { "docid": "a947b43ca07b2f2e9dd9f2f1bbb1bc25", "score": "0.66911805", "text": "public void addItem(Object item) {\n }", "title": "" }, { "docid": "90560de07e0fe2388ff3d61b3ad82416", "score": "0.6683362", "text": "void addItem(IItem item);", "title": "" }, { "docid": "16508829c7f3b7efa9c2123ce1cdef8b", "score": "0.66715443", "text": "public void addBookToCart(Book book){\n\t\t\n\t\t\n\t\t\tfor(int i = 0; i < cart.size(); i++){\n\t\t\t\tif(book.getTitle().equalsIgnoreCase(cart.get(i).getTitle())){\n\t\t\t\t\tcart.get(i).setQuantity(cart.get(i).getQuantity() + 1);;\n\t\t\t\t\tSystem.out.println(\"Book was added to cart\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\tbook.setQuantity(1);\n\t\tcart.add(book);\n\t\tSystem.out.println(\"Book was added to cart\");\n\n\t}", "title": "" }, { "docid": "a6ef39681af18898b1ce0c26304a305f", "score": "0.6671369", "text": "@GetMapping(\"/addToCart\")\r\n public ModelAndView addToCart(@RequestParam(\"productId\") Integer id){\r\n ModelAndView modelAndView = new ModelAndView(\"dashboard\");\r\n int itemsCart = 0;\r\n userSession.addToCart(id);\r\n for (int quantity : userSession.getShhopingCart().values()){\r\n itemsCart += quantity;\r\n }\r\n modelAndView.addObject(\"productList\" ,productList);\r\n modelAndView.addObject(\"items\" , itemsCart);\r\n return modelAndView;\r\n }", "title": "" }, { "docid": "20acc2f4bae268268fe0a0ce305e549c", "score": "0.6666456", "text": "public void addItemToPlayer(){\n this.currentPlayer.getPlayerInventory().addItemInInventory(this.currentItem);\n }", "title": "" }, { "docid": "059f83bd634194a4726bf76e04304ead", "score": "0.66566086", "text": "public void addItem(Product p) {\n _items.add(p);\n }", "title": "" }, { "docid": "8a78e8449fc810031626d6a9849be29a", "score": "0.6647143", "text": "public void add(Product product) {\n\n cartInstance.add(product);\n total +=product.getProdPrice();\n\n }", "title": "" }, { "docid": "7d2220258be1cb39a5a217da7b2bf625", "score": "0.66313696", "text": "@Override\n public void onShoppingItemSelected(ShoppingItem shoppingItem) {\n CartItem cartItem = new CartItem();\n cartItem.setProductId(shoppingItem.getId());\n cartItem.setProductImage(shoppingItem.getImage());\n cartItem.setProductName(shoppingItem.getName());\n cartItem.setProductPrice(shoppingItem.getPrice());\n cartItem.setProductQuantity(1);\n cartItem.setUserPhone(Common.currentBookingInformation.getCustomerPhone());\n\n //If user submit with empty cart\n if (Common.currentBookingInformation.getCartItemList() == null) {\n Common.currentBookingInformation.setCartItemList(new ArrayList<CartItem>());\n }\n\n //We will use this flag to update cart item quantity increase by 1\n //If all ready have item with same name in cart\n boolean flag = false;\n\n for (int i = 0; i < Common.currentBookingInformation.getCartItemList().size(); i++) {\n if (Common.currentBookingInformation.getCartItemList().get(i).getProductName().equals(shoppingItem.getName())) {\n flag = true; //Enable flag\n CartItem itemUpdate = Common.currentBookingInformation.getCartItemList().get(i);\n itemUpdate.setProductQuantity(itemUpdate.getProductQuantity() + 1);\n Common.currentBookingInformation.getCartItemList().set(i, itemUpdate); //Update list\n }\n }\n\n //If flag = false -> new item added\n if (!flag) {\n Common.currentBookingInformation.getCartItemList().add(cartItem);\n\n final Chip item = (Chip) inflater.inflate(R.layout.chip_item, null);\n item.setText(cartItem.getProductName());\n item.setTag(Common.currentBookingInformation.getCartItemList().indexOf(cartItem));\n\n item.setOnCloseIconClickListener(v -> {\n chip_group_shopping.removeView(v);\n Common.currentBookingInformation.getCartItemList().remove((int) item.getTag());\n });\n\n chip_group_shopping.addView(item);\n }\n\n // flag = true , item update\n else {\n chip_group_shopping.removeAllViews();\n loadExtraItems();\n }\n }", "title": "" }, { "docid": "cb8f4f9dc3cf8ce6538339a2c9eccb85", "score": "0.66286355", "text": "public ItemPage clickAddToCartButton() {\n addToCart.click();\n return this;\n }", "title": "" }, { "docid": "7f9dc39668da40096290f977df787bc0", "score": "0.6594953", "text": "@Override\n\tpublic boolean addCartLine(int itemId, Long cartId) {\n\t\tCartLine cartLine= new CartLine();\n\t\tcartLine.setId((long) (cartRepo.findAll().size()));\n\t\tcartLine.setCart(cartRepo.cart(cartId));\n\t\tcartLine.setItem(itemRepo.findItemById(itemId));\n\t\tcartLine.setQuantity(1);\n\t\tcartLineRepo.save(cartLine);\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d572ffd71a52ddf9b8249eb49fc27a0c", "score": "0.6576913", "text": "public void buyItem(Item item) {\n\t\tItems.add(item);\n\t\tInActiveItems.add(item);\n\t}", "title": "" }, { "docid": "790efb9ab147205265000700c937d3aa", "score": "0.6566522", "text": "public void addCarToCart(CarDetailInCartDTO dto){\n if (this.cars == null) {\n this.cars = new HashMap<>();\n }\n \n int key = dto.getPrice();\n if (this.cars.containsKey(key)) {\n int oldQuantity = this.cars.get(key).getAmountAdd();\n int quantityAdd = dto.getAmountAdd();\n this.cars.get(key).setAmountAdd(oldQuantity + quantityAdd);\n this.cars.get(key).setRentalDate(dto.getRentalDate());\n this.cars.get(key).setReturnDate(dto.getReturnDate());\n } else {\n this.cars.put(key, dto);\n }\n }", "title": "" }, { "docid": "0baa1e9006d83555d463aa75b6e1c934", "score": "0.6552016", "text": "ShoppingCartVO addBookToCart(ShoppingCartVO shoppingCart, String isbn, String purchaseType) throws SapeStoreException;", "title": "" }, { "docid": "96d623d1bee86f7f48770774e9f7e33b", "score": "0.6543484", "text": "public void addItem(Item item)\n {\n this.allItems.add(item);\n\n calculateTotal();\n setNetIncome();\n }", "title": "" }, { "docid": "80e7c3cefb672a80bc3190cbb6174454", "score": "0.6539513", "text": "@When(\"User click add an article to cart\")\n\tpublic void user_click_add_an_article_to_cart() {\n\t\tcat = new Category(driver);\n\t\tcat.selectArticle(0);\n\t}", "title": "" }, { "docid": "9db2914178315c16a32585b00b9b37b1", "score": "0.6533281", "text": "@PostMapping(\"/cart/{poolerId}\")\n public ResponseEntity<Object> addProductToCart(@PathVariable(\"poolerId\") Long poolerId,\n @RequestParam(value = \"productId\", required = true) Long productId,\n @RequestParam(value = \"quantity\", required = true) int quantity) {\n\n // find product\n Product product = productService.getProductById(productId);\n\n if (product == null) {\n return ResponseEntity.status(HttpStatus.NOT_FOUND).body(\"Product does not exist\");\n }\n\n if (quantity < 0) {\n return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(\"Quantity can not be less than zero\");\n }\n\n CartItem addedItem = cartService.addProductToCart(poolerId, productId, quantity);\n\n return ResponseEntity.ok().body(addedItem);\n }", "title": "" }, { "docid": "dd8b991fab5ae37f200bdf9b7dca4af4", "score": "0.6531056", "text": "public void add(Item item, int quantity) throws Exception {\r\n\t\titems.add(item, quantity);\r\n\t}", "title": "" }, { "docid": "9c94579a2ecf07cbd318c5401efa1554", "score": "0.6530742", "text": "public List<Product> addProductToCart(Product product) {\n\r\n\t\t\tcart.add(product);\r\n\t\t\t\r\n\t\t\t//setCart(cart);\r\n\t\t\t//System.out.println(\"\"+cart);\r\n\t\t\t//System.out.println(\"addtocart\" + product);\r\n\t\t\treturn cart;\r\n\t\t\t\r\n\t\t\t//System.out.println(\"get cart\" + cart);\r\n\t\t\t//return cart;\r\n\t\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ff202d3eddb03daf19144cc0554bdcf0", "score": "0.6529714", "text": "public void addItem(Item theItem)\n {\n items.add(theItem);\n }", "title": "" }, { "docid": "ff202d3eddb03daf19144cc0554bdcf0", "score": "0.6529714", "text": "public void addItem(Item theItem)\n {\n items.add(theItem);\n }", "title": "" }, { "docid": "ff37bcb8cf940da84d8d5ab4ed5a1acb", "score": "0.65227866", "text": "@RequestMapping(value = \"/addItem\", method = RequestMethod.POST)\r\n\tpublic String createItem(@RequestBody Item item) {\r\n\t\treturn this.cartService.addItemService(item);\r\n\t}", "title": "" }, { "docid": "a6918cca8e6a38b1bb20cf8e25ec5ef4", "score": "0.651103", "text": "@Override\n\tpublic void addItem(Item item) {\n\t\tinventory.add(item);\t\t\t\t\n\t}", "title": "" }, { "docid": "69ae6a68d4362ad7c8cb6f8cff751a4f", "score": "0.65083873", "text": "@Test(description = \"add T-SHIRT item for men to the cart\")\r\n\tpublic void tc01_addItemsToCart() {\n\t\tHomePage hp = new HomePage(driver);\r\n\t\thp.viewShop();\r\n\t\thp.moveToNewWindow();\r\n\r\n\t\tShopPage sp = new ShopPage(driver);\r\n\t\tsp.addTshirtMenItems(\"2\");\r\n\t\tYourShoppingPage ysp = new YourShoppingPage(driver);\r\n\r\n\t\tString actual = ysp.getMessageAdded();\r\n\t\tString expected = \"Item has been added to cart\";\r\n\t\tAssert.assertEquals(expected, actual);\r\n\t}", "title": "" }, { "docid": "57cac97e2229e8e236e0fa6c74ab4003", "score": "0.6496949", "text": "@Override\n\tpublic boolean addItem(OrderItem item) {\n\t\tint r= jdbcTemplate.update(\"insert into orderitem (orderid,productid,productname,productprice,quantity,subtotal) values(?,?,?,?,?,?)\",\n\t\t\t\titem.getOrderId(),item.getProductid(),item.getProductName(),\n\t\t\t\titem.getProductPrice(),item.getQuantity(),item.getSubTotal());\n\t\t\n\t\tif(r>0) return true;\n\t\telse\n\t\treturn false;\n\t}", "title": "" }, { "docid": "25b775e0c80fc0def53d971d43c88530", "score": "0.6496577", "text": "public void addItem(Item item) {\n items.add(item);\n }", "title": "" }, { "docid": "25b775e0c80fc0def53d971d43c88530", "score": "0.6496577", "text": "public void addItem(Item item) {\n items.add(item);\n }", "title": "" }, { "docid": "fa83fac02073ccccd1ae2945cebd9806", "score": "0.6491693", "text": "public Product addToCart(Product product){\r\n\t\t//add product to cart and increment count in cart\r\n\t\tif(mpCart.containsKey(product)){\r\n\t\t\tInteger count = mpCart.get(product);\r\n\t\t\tmpCart.put(product, count+1);\r\n\t\t\treturn product;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tmpCart.putIfAbsent(product, 1);\r\n\t\t\treturn product;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "fbcde4fa6332b20110cb1ec8c5067275", "score": "0.6490464", "text": "@Override\n public Boolean addItem(Item item) {\n if (item == null) {\n throw new NullPointerException();\n }\n \n if (!(item instanceof OrderLine)) { // ga boleh klo bukan OrderedMenu\n return false;\n }\n \n if (!items.containsKey(item.getId())) { // kalau sekiranya ga ada, add kan saja\n items.put(item.getId(), item);\n return true;\n }\n \n OrderLine temp = (OrderLine) items.get(item.getId());\n temp.setQuantity(temp.getQuantity() + item.getQuantity());\n temp.setNote(temp.getNote() + \"\\n\\n\" + item.getNote());\n \n return true;\n }", "title": "" }, { "docid": "307f3104397da83f20032dd93aa2672b", "score": "0.64849085", "text": "public static int addItem(Basket basket, String item, int quantity) {\n StockItem stockItem = stockList.get(item);\n if (stockItem == null) {\n System.out.println(\"We don't sell \" + item);\n return 0;\n }\n\n if (stockList.adjustReservedStock(item, quantity) != 0) {\n basket.addItem(stockItem,quantity);\n return quantity;\n }\n\n return 0;\n }", "title": "" }, { "docid": "da91b83e2a7dd24f86d33aa7bbef1c79", "score": "0.64791876", "text": "public boolean add( Item item ){\r\n\t\tboolean resp = false;\r\n\t\t\r\n\t\tint indece = buscar( item.getProduto().getCodigo() );\r\n\t\t\r\n\t\tif( indece >= 0 ){\r\n\t\t\t\r\n\t\t\tif( item.getQuantidade() > 0 )\r\n\t\t\t\tresp = juntarItemParecido( item , indece );\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\tint quantidade = item.getQuantidade();\r\n\t\t\tint qtdEstoque = item.getProduto().getQuantidade();\r\n\t\t\t\r\n\t\t\tif( quantidade <= qtdEstoque && quantidade > 0 ){\r\n\t\t\t\titens.add(item);\r\n\t\t\t\tatualizarValorTotal( item.total() );\r\n\t\t\t\tresp = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn resp;\r\n\t}", "title": "" }, { "docid": "d3e0b248efd2b5fb1233548bf9c1228f", "score": "0.64605814", "text": "@Override\n\tpublic void addItem(Item item, int quantity) {\n\t\tinventory.add(item);\t\t\n\t\tmanItemNames.add(item.getName());\n\t\tmanItemAmounts.add(quantity);\n\t}", "title": "" }, { "docid": "a3337dddb5480fe8e73ab35724f783c4", "score": "0.6455853", "text": "public void addItem(Item item) {\n this.add(item);\n }", "title": "" }, { "docid": "9374db0677c70c46dfbea0eeb50ff6ac", "score": "0.6454995", "text": "public void addItem() {\n\t\titemsList.add(produceItem());\n\t}", "title": "" }, { "docid": "8fc4ae96509c8b40cb31f7134ea88026", "score": "0.6439533", "text": "public void addItem(Item item) {\r\n\t\tinv.addItem(item);\r\n\t}", "title": "" }, { "docid": "88364a9da9b606850e8361287589c5cd", "score": "0.6434633", "text": "@Override\n\tpublic List<Menu> addToCart(Menu menu) {\n\t\tcart.add(menu);\n\t\treturn cart;\n\t}", "title": "" }, { "docid": "17fc82475bef2de47f4231ae066cb349", "score": "0.64330494", "text": "private void add(Card card, int pos){\r\n //añade una carta al inicio de la fila (siempre se le pasa la posicion 0 y desplaza a la derecha)\r\n cards.add(pos,card);\r\n card.setDraggable(false);\r\n placeCard(card);\r\n \r\n }", "title": "" }, { "docid": "cbbeb439e758baaba2b2866c47c2611b", "score": "0.6432984", "text": "public void add(T item) {\n int count = inventory.get(item);\n inventory.put(item, count + 1);\n }", "title": "" }, { "docid": "92d766e690364e3c4ad9994ce5e3d434", "score": "0.6418388", "text": "public void addItem(TI item)\n ;", "title": "" }, { "docid": "76ec0ff4ab2950df5f3dbb764140a236", "score": "0.6410631", "text": "public void addToCart(Product product) {\n searchHistory.addAll(product.getKeywords());\n cart.add(product);\n }", "title": "" }, { "docid": "8eb9f537a3016cb1ae04c6f32c231f2a", "score": "0.64006984", "text": "public void addProduct() {\n\t}", "title": "" }, { "docid": "3535fb4151bd606d6652cc287bb03f8a", "score": "0.63959634", "text": "private void addToInventory() {\n\t}", "title": "" }, { "docid": "5d4681f6574d319897fca2abcef95898", "score": "0.6391971", "text": "@Override\n public void AddToCartSuccess() {\n if(buy){\n GetBadge();\n buy = false;\n Intent i = new Intent(ProductDetailActivity.this, CartActivity.class);\n startActivity(i);\n }else{\n toastAdded();\n GetBadge();\n mShimmerViewContainer.stopShimmer();\n mShimmerViewContainer.setVisibility(View.GONE);\n }\n\n\n }", "title": "" }, { "docid": "045f1c3397c1b911fb82241848340d5d", "score": "0.63817847", "text": "@Ignore\t\n\t\t\t\t@Test\n\t\t\t\t\tpublic void addingCartItemTest()\n\t\t\t\t\t{\n\t\t\t\t\t\t\tCartItem cartItem = new CartItem();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcartItem.setProductId(1);\n\t\t\t\t\t\t\tcartItem.setUserCartId(110005);\n\t\t\t\t\t\t\tcartItem.setUsername(\"Sanjay\");\n\t\t\t\t\t\t\tcartItem.setPerProductQuantity(17);\n\t\t\t\t\t\t\tcartItem.setPerProductQuantitySubtotal(23921);\n\t\t\t\t\t\t\tcartItem.setPaymentStatus(\"NP\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tassertTrue(\"Problem in Insertion\", cartItemDAO.addingCartItem(cartItem));\n\t\t\t\t\t}", "title": "" }, { "docid": "d67a0f5daaac816a99022fba5a53deda", "score": "0.63782424", "text": "@RequestMapping(value=\"/addToCart\",method = RequestMethod.GET)\r\n\tpublic ModelAndView addToCart(@RequestParam(\"product_id\") String product_id , HttpSession session)\r\n\t{\n\t\tProduct product = productDAO.get(product_id);\r\n\r\n\t\tcart.setProductName(product.getName());\r\n\t\tcart.setStock(1);\r\n\t\tcart.setPrice(product.getPrice());\r\n\t\tString isUser = (String) session.getAttribute(\"isUser\");\r\n\t\tcart.setUser_id(isUser);\r\n\t\tcart.setId(ThreadLocalRandom.current().nextInt(100, 1000000 + 1));\r\n\t\tcart.setOrdered(0);\r\n\t\tcartDAO.save(cart);\r\n\r\n\t\tint cartItemCount = (Integer) session.getAttribute(\"cartItemCount\") + 1;\r\n\t\tsession.setAttribute(\"cartItemCount\", cartItemCount);\r\n\t\t\r\n\t\t\r\n\t\tModelAndView mv = new ModelAndView(\"/index\");\r\n\t\tmv.addObject(\"message\", \"Successfully added the product to Cart !!!\");\r\n\t\tmv.addObject(\"ShowMessage\", true);\r\n\r\n\t\treturn mv;\r\n\t}", "title": "" }, { "docid": "ce009aa3c1784930e17939865d7e0b71", "score": "0.6377732", "text": "public void addItem(Item item) {\n itemList.add(item);\n }", "title": "" }, { "docid": "1f6848810817ca14a0e3ba15c5ef303b", "score": "0.6373968", "text": "private void addToCart(final int position) {\n String tag_json_obj = \"json_obj_req\";\n Map<String, String> postParam= new HashMap<>();\n postParam.put(KEY_CUSTOMER_ID,customer_session.getCustomerID());\n postParam.put(KEY_PRODUCT_ID,products.get(position).getBook_id());\n postParam.put(KEY_BOOK_NAME,products.get(position).getBookName());\n postParam.put(KEY_PRICE ,products.get(position).getQuantity());\n postParam.put(KEY_IMG ,products.get(position).getImgUrl());\n\n final JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.POST,\n PRODUCT_URL, new JSONObject(postParam),\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n String status = response.getString(\"status\");\n\n Cart cart = products.get(position);\n\n if(status.equals(\"202\")){\n\n }\n\n if (position==products.size()-1){\n getCartProducts();\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n hideProgressDialog();\n Toast.makeText(Activity_Cart.this, \"Connection error\", Toast.LENGTH_SHORT).show();\n }\n }) {\n\n /**\n * Passing some request headers\n * */\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Content-Type\", \"application/json; charset=utf-8\");\n return headers;\n }\n\n };\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(jsonObjReq, tag_json_obj);\n\n }", "title": "" } ]
0b58d5c1f03bfe98febe12854414fde0
/ Method to verify Play Button is displayed under Active Video on the PodCast page
[ { "docid": "4d840db129849bd7b922ba7bc9f5cce7", "score": "0.7017506", "text": "public boolean isActiveVideoPlayIconDisplayed() {\n\t\tWebPageLoaded.isDomInteractive();\n\t\tWebElement activevideoplayicon = getDriver().findElement(byActiveVideoPlayIcon);\n\t\tactivevideoplayicon.syncVisible(15);\n\t\treturn activevideoplayicon.isDisplayed();\n\t}", "title": "" } ]
[ { "docid": "819510be017a38916ffdc2926a90706c", "score": "0.69713855", "text": "public boolean isPauseIconDisplayedOnActiveVideo() {\n\t\tWebPageLoaded.isDomInteractive();\n\t\tWebElement activevideopauseicon = getDriver().findElement(byActiveVideoPauseIcon);\n\t\tactivevideopauseicon.syncVisible(15);\n\t\treturn activevideopauseicon.isDisplayed();\n\t}", "title": "" }, { "docid": "e1201aeb2dd6b7b927850a946429c5e6", "score": "0.66498166", "text": "public boolean isPopUpPauseIconeDisplayed() {\n\t\tWebPageLoaded.isDomInteractive();\n\t\tWebElement popuppauseicon = getDriver().findElement(byPopUpVideoPauseIcon);\n\t\tpopuppauseicon.syncVisible(30);\n\t\tgetDriver().manage().timeouts().implicitlyWait(30,TimeUnit.SECONDS);\n\t\treturn popuppauseicon.isDisplayed();\n\t}", "title": "" }, { "docid": "bc0dec3c1965e09380cbb28ad10d3d80", "score": "0.6586453", "text": "public void clickOnPlayIconUnderPopUpWindow() {\n\t\tWebPageLoaded.isDomInteractive();\n\t\tWebElement playicon = getDriver().findElement(byPopUpVideoPlayIcon);\n\t\tplayicon.syncVisible(15);\n\t\tplayicon.click();\n\t\t\n\t}", "title": "" }, { "docid": "2cd96bb9bf9b5ad6a3ae1ad6ed6a9652", "score": "0.65031534", "text": "public abstract boolean isPlayback();", "title": "" }, { "docid": "450bd47c715cc747e69d344cfe51d3c4", "score": "0.649588", "text": "private View getBtVideo() {\n for (int i = 0; i < debugRootView.getChildCount(); i++) {\n View childView = debugRootView.getChildAt(i);\n if (childView instanceof Button) {\n if (((Button) childView).getText().toString().equalsIgnoreCase(getString(R.string.video))) {\n return childView;\n }\n }\n }\n return null;\n }", "title": "" }, { "docid": "5d80ddb9dce44a3621f257b834d804bf", "score": "0.649078", "text": "public boolean isActiveVideoSubTitleDisplayed() {\n\t\tWebPageLoaded.isDomInteractive();\n\t\tWebElement activevideosubtitle = getDriver().findElement(byActiveVideoSubTitleText);\n\t\tactivevideosubtitle.syncVisible(15);\n\t\treturn activevideosubtitle.isDisplayed();\n\t}", "title": "" }, { "docid": "5b0fba2c310971fc858eca42dfdba5c7", "score": "0.6478442", "text": "public void updatePlayPauseButton() {\n if (isVisible() && this.isAttachedToWindow) {\n boolean requestPlayPauseFocus = false;\n boolean playing = isPlaying();\n View view = this.playButton;\n int i = 8;\n boolean z = true;\n if (view != null) {\n requestPlayPauseFocus = false | (playing && view.isFocused());\n this.playButton.setVisibility(playing ? 8 : 0);\n }\n View view2 = this.pauseButton;\n if (view2 != null) {\n if (playing || !view2.isFocused()) {\n z = false;\n }\n requestPlayPauseFocus |= z;\n View view3 = this.pauseButton;\n if (playing) {\n i = 0;\n }\n view3.setVisibility(i);\n }\n if (requestPlayPauseFocus) {\n requestPlayPauseFocus();\n }\n }\n }", "title": "" }, { "docid": "11339c0567df0f892b32e0a87c7d94f8", "score": "0.6441262", "text": "protected boolean containsVideo() {\n return false;\n }", "title": "" }, { "docid": "487ad3349602f227dd87c51f16485450", "score": "0.64348173", "text": "public boolean isPopUpVideoTitleDisplayed() {\n\t\tWebPageLoaded.isDomInteractive();\n\t\tWebElement popupvideotitle = getDriver().findElement(byPopUpVideoTitleText);\n\t\tpopupvideotitle.syncVisible(15);\n\t\treturn popupvideotitle.isDisplayed();\n\t}", "title": "" }, { "docid": "ad666119f408e66ad42ec35f3d10a5f4", "score": "0.63034225", "text": "public void clickOnPopUpFirstEpisodePlayIcon() {\n\t\tWebPageLoaded.isDomInteractive();\n\t\tWebElement playicon = getDriver().findElement(byActiveVideoPopUpImage);\n\t\tplayicon.syncVisible(15);\n\t\tplayicon.jsClick();\n\t\t\n\t}", "title": "" }, { "docid": "eb3506a1b3463b9bced1ec1103b59ef0", "score": "0.6249238", "text": "public Boolean isPlayable();", "title": "" }, { "docid": "f56272c7dbae889aebc744cf5d4ff3e5", "score": "0.6180365", "text": "private void updatePlayButton(PlaybackState state) {\n\n switch (state) {\n case PLAYING:\n\n //mLoading.setVisibility(View.INVISIBLE);\n // mPlayPause.setVisibility(View.VISIBLE);\n //mPlayPause.setImageDrawable(getResources().getDrawable(R.drawable.ic_av_pause_dark));\n\n break;\n case IDLE:\n if (mLocation == PlaybackLocation.LOCAL) {\n /* if (isAPV == 1) {\n watchMovieButton.setText(getResources().getString(R.string.advance_purchase_str));\n }else {\n watchMovieButton.setText(getResources().getString(R.string.movie_details_watch_video_button_title));\n }*/\n\n } else {\n /* if (isAPV == 1) {\n watchMovieButton.setText(getResources().getString(R.string.advance_purchase_str));\n }else {\n watchMovieButton.setText(getResources().getString(R.string.movie_details_cast_now_button_title));\n }*/\n }\n //mCon\n // trollers.setVisibility(View.GONE);\n // mCoverArt.setVisibility(View.VISIBLE);\n // mVideoView.setVisibility(View.INVISIBLE);\n break;\n case PAUSED:\n //mLoading.setVisibility(View.INVISIBLE);\n /* mPlayPause.setVisibility(View.VISIBLE);\n mPlayPause.setImageDrawable(getResources().getDrawable(R.drawable.ic_av_play_dark));*/\n\n break;\n case BUFFERING:\n //mPlayPause.setVisibility(View.INVISIBLE);\n //mLoading.setVisibility(View.VISIBLE);\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "bad698a9d9a7f8ece8c242be5ed6ef60", "score": "0.6157437", "text": "@Then(\"^Admin can check Track button is present or not$\")\n\tpublic void admin_can_check_Track_button_is_present_or_not() {\n\t\toms_homepage_webelement = new OMS_Homepage(driver);\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\toms_homepage_webelement.clickOn_Track();\n\n\t}", "title": "" }, { "docid": "86840a3de36ade1b9f721c623d832295", "score": "0.6105842", "text": "public void verifyVideoOnHomePage() {\n\n\t\ttestStepInfo(\"****************************Top Video***************************************\");\n\t\ttry {\n\n\t\t\t/*\n\t\t\t * testStepPassed(\"Before Video plays\");\n\t\t\t * takeAdScreenshot(OR.vidHomePageVideo, \"Home Page Video\");\n\t\t\t */\n\t\t\twaitTime(5);\n\t\t\twaitForElement(OR.vidHomePageVideo);\n\t\t\tscrollBy(0, 2000);\n\t\t\tscrollToElement(OR.vidHomePageVideo);\n\t\t\tboolean video = elementPresent(OR.vidHomePageVideo);\n\t\t\tif (video == true) {\n\t\t\t\ttestStepPassed(\"Video Section is displayed\");\n\n\t\t\t\ttry {\n\t\t\t\t\tboolean playButton = isElementDisplayed(OR.btn_Home_Page_Video_Play_button);\n\t\t\t\t\tif (playButton == true) {\n\t\t\t\t\t\tthis.scrollToElement(OR.btn_Home_Page_Video_Play_button);\n\t\t\t\t\t\tthis.scrollBy(0, -60);\n\t\t\t\t\t\tclickOn(OR.btn_Home_Page_Video_Play_button);\n\t\t\t\t\t\t// testStepPassed(\"Video Played for 5 seconds\");\n\t\t\t\t\t\t// takeAdScreenshot(OR.vidHomePageVideo,\n\t\t\t\t\t\t// \"Home Page Video\");\n\t\t\t\t\t\t// clickOn(OR.vidHomePageVideo);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttestStepFailed(\"Video Play button is not loaded\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\ttestStepFailed(\"Video is not played\");\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\ttestStepFailed(\"Video Section is not displayed\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\ttestStepFailed(\"Error occured in the video\");\n\t\t}\n\t}", "title": "" }, { "docid": "63fef9dd46311104eae2205d7694ab21", "score": "0.6087827", "text": "boolean isPlaying();", "title": "" }, { "docid": "838cbc9c430a7fe926e83d129b32b6ee", "score": "0.6044107", "text": "@Override\n public void pause() {\n mediaPlayer.pause();\n playVideo.setVisibility(View.VISIBLE);\n playButton.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "21afc8a31b798a9c7df3436240c6db48", "score": "0.60171914", "text": "public boolean isPlaying();", "title": "" }, { "docid": "4e1ecfc4f90120c1695c3963a4472cb7", "score": "0.5960151", "text": "public void testPlaySampleButton(){\n firstBorrowSecond();\n moveToActivity();\n\n solo.clickOnView(solo.getView(R.id.play_sample_button));\n }", "title": "" }, { "docid": "253b1c6d74622dc1ae5400a01bc3606c", "score": "0.591825", "text": "@Override\n public boolean canPlayCard() {\n return true;\n }", "title": "" }, { "docid": "a66d005de4ffb2a0cf79509d6bbc78b9", "score": "0.59144384", "text": "@Override\n public void onClick(View v) {\n if (v == cvMediaCtrlStatusBtnVoice) {\n // Handle clicks for cvMediaCtrlStatusBtnVoice\n if (isJinyin) {\n updateVicoe(currentVoice, false);\n isJinyin = false;\n\n } else {\n updateVicoe(currentVoice, true);\n isJinyin = true;\n\n }\n } else if (v == cvMediaCtrlStatusBtnSwichPlayer) {\n // Handle clicks for cvMediaCtrlStatusBtnSwichPlayer\n } else if (v == cvMediaCtrlBottomBtnExit) {\n custom_video.pause();\n finish();\n // Handle clicks for cvMediaCtrlBottomBtnExit\n } else if (v == cvMediaCtrlBottomBtnVideoPre) {\n playPreVideo();\n // Handle clicks for cvMediaCtrlBottomBtnVideoPre\n } else if (v == cvMediaCtrlBottomBtnVideoStartPause) {\n startAndPause();\n // Handle clicks for cvMediaCtrlBottomBtnVideoStartPause\n } else if (v == cvMediaCtrlBottomBtnVideoNext) {\n playNextVideo();\n // Handle clicks for cvMediaCtrlBottomBtnVideoNext\n } else if (v == cvMediaCtrlBottomBtnVideoSiwchScreen) {\n if (isFullScreen) {\n setVideoType(DEFALUT);\n } else {\n setVideoType(FULLSCREEN);\n }\n }\n handler.removeMessages(HIDE_MEDIACONTROLL);\n handler.sendEmptyMessageDelayed(HIDE_MEDIACONTROLL, 4000);\n }", "title": "" }, { "docid": "4ba358c8357dcaaea7f971feeb99bf0e", "score": "0.5901931", "text": "@Test\n\tpublic void checkPlayButtonEnabledDisabled() throws Exception{\n\t\t\n\t\tAssert.assertEquals(app.getToolBar().isPlayButtonEnable(), true);\n\n\t\tapp.getTestTableController().removeAllTests();\n\n\t\tAssert.assertEquals(app.getToolBar().isPlayButtonEnable(), false);\n\t\n\t}", "title": "" }, { "docid": "db56559e979cdc774a1e0937cce0fef1", "score": "0.5879301", "text": "@Override\r\n\t\t\tpublic void playViewClick() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "801b51c15aa42f6de779bd9201d63503", "score": "0.58630854", "text": "public boolean getPlayStatus(){\n return this.isPlaying;\n }", "title": "" }, { "docid": "afef68e07fe90b273e6246321425f41e", "score": "0.58617836", "text": "protected int isPlay(int k) {\n if (\"0\".equals(themeType.getIsbuy()) & LCConstant.islogin) {\n return k = 0;\n }\n for (int r = 0; r < videoAll.getList().size(); r++) {\n // 如果是未播放的\n if (\"0\".equals(videoAll.getList().get(r).getViewstate())) {\n return r;\n // 如果是播放中的\n } else if (\"1\".equals(videoAll.getList().get(r).getViewstate())) {\n return r;\n }\n }\n\n return k;\n }", "title": "" }, { "docid": "aca6b2df7e8d4abcd7223277a0e29559", "score": "0.5850411", "text": "private void playPauseVideoRecording() {\n if(isVideoRecordingPause){\n isVideoRecordingPause=false;\n //playPauseButton.setBackgroundResource(R.drawable.ic_play_circle_outline_white_48dp);\n mediaRecorder.reset();\n stopRecordingTimer();\n }else{\n isVideoRecordingPause=true;\n //playPauseButton.setBackgroundResource(R.drawable.ic_pause_circle_outline_white_48dp);\n }\n }", "title": "" }, { "docid": "e77850b808c90af8b8ecdcd0954c93e3", "score": "0.5844163", "text": "@Override\n public void onClick(View v) {\n setPlayStatus();\n }", "title": "" }, { "docid": "ba21e9eda76961148b5ff5f30ef3bb77", "score": "0.5827407", "text": "public void playPauseBtnPressed(View view)\n {\n playback.togglePlay();\n }", "title": "" }, { "docid": "03bdcaa96d83d8bb3f7e5ea6f89c15ef", "score": "0.5822947", "text": "@FXML\n private void handlePlayTrigger() {\n if(player != null) {\n boolean playing = player.getStatus().equals(Status.PLAYING);\n if(playing) {\n player.pause();\n } else {\n player.play();\n }\n }\n }", "title": "" }, { "docid": "c50e2d9347d7d07581efda8855323aad", "score": "0.5821017", "text": "@Override\r\n\tpublic void togglePlayPause() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d9a30c6eee1c5ae7ba49f1bd94fc2b68", "score": "0.5816092", "text": "boolean hasShowRealPlayers();", "title": "" }, { "docid": "d9a30c6eee1c5ae7ba49f1bd94fc2b68", "score": "0.5816092", "text": "boolean hasShowRealPlayers();", "title": "" }, { "docid": "e032fd32a65fa793db53a79904b1d25c", "score": "0.5814551", "text": "public abstract boolean hasEmbeddedMovie();", "title": "" }, { "docid": "fe7c37682f30df434de1906cb1fda79f", "score": "0.5802158", "text": "public boolean isActiveVideoSummaryTextDisplayed() {\n\t\tWebPageLoaded.isDomInteractive();\n\t\tWebElement activevideosummary = getDriver().findElement(byActiveVideoSummaryText);\n\t\tactivevideosummary.syncVisible(15);\n\t\treturn activevideosummary.isDisplayed();\n\t}", "title": "" }, { "docid": "b374639d0c88b7fdea426a61e5971f75", "score": "0.5800867", "text": "public boolean isDateAndDurationDisplayedOnActiveVideo() {\n\t\tWebPageLoaded.isDomInteractive();\n\t\tWebElement dateandduration = getDriver().findElement(byActiveVideoDate);\n\t\tdateandduration.syncVisible(15);\n\t\treturn dateandduration.isDisplayed();\n\t}", "title": "" }, { "docid": "df3916c0f601ce4f6512c3ec67a88f86", "score": "0.57969743", "text": "@Override\n\tpublic boolean isPlaying() {\n\t\treturn mVideoView.isPlaying();\n\t}", "title": "" }, { "docid": "e3d8fcfb901ebb4fec402075158ca399", "score": "0.5771361", "text": "@Test(priority = 4)\r\n public void validateTestimonialVideos() throws InterruptedException {\r\n landingPage.playTraneVideo();\r\n //driver.manage().timeouts().implicitlyWait(8, TimeUnit.SECONDS);\r\n //landingPage.clickRightVideoArrow();\r\n //landingPage.playAustinCouchPotatoVideo();\r\n }", "title": "" }, { "docid": "936b231dc60d1dee5019ce447f6325e1", "score": "0.57636523", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tPARICHAY++;\r\n\t\t\t\tplay.setVisibility(View.INVISIBLE);\r\n\t\t\t\t// youtube_loader.loadUrl(\"http://www.youtube.com/user/colorstv/videos?query=Parichay\");\r\n\t\t\t\tyoutube_loader\r\n\t\t\t\t\t\t.loadUrl(\"http://www.youtube.com/user/colorstv/videos\");\r\n\t\t\t\t// http_side.loadUrl(\"http://gotabbie.com/media3/index.html\");\r\n\t\t\t\tvf.setDisplayedChild(11);\r\n\t\t\t}", "title": "" }, { "docid": "53824334e39580ecf8e09ac2bbd9d770", "score": "0.5752674", "text": "private void showMediaButtons(){\n mediaButtons.setVisible(true);\n }", "title": "" }, { "docid": "64f41815fe166991cf29880196172583", "score": "0.5739136", "text": "protected boolean shouldShowControls() {\n MediaController mediaController = getMediaController();\n if (mediaController == null ||\n mediaController.getMetadata() == null ||\n mediaController.getPlaybackState() == null) {\n return false;\n }\n Log.v(\"t\", mediaController.getPlaybackState().getState() + \"\");\n switch (mediaController.getPlaybackState().getState()) {\n case PlaybackState.STATE_ERROR:\n case PlaybackState.STATE_NONE:\n return false;\n default:\n return true;\n }\n }", "title": "" }, { "docid": "ab5b910214c8524311eb94f016ddd733", "score": "0.57379425", "text": "boolean hasFakeplayer();", "title": "" }, { "docid": "c0531507edc5f616558c79a5370bbb06", "score": "0.5707011", "text": "public void verifyJoinFreeButtonIsDisplayed(){\n joinFreeButton.isDisplayed();\n }", "title": "" }, { "docid": "cc863727f297d47cd17fce2f5fc15a94", "score": "0.56896734", "text": "public void onHideShowVideoButtonClicked(View view) {\n if (mFirebaseEventLogger != null) {\n // Report \"Video\" button click events to Firebase Analytics.\n mFirebaseEventLogger.reportVideoButtonClickEvent(getApplicationContext());\n }\n final int show = (Integer) view.getTag();\n if (show == 0) {\n setShowVideoView(true);\n } else {\n setShowVideoView(false);\n }\n }", "title": "" }, { "docid": "587a53c1a97243a13cb363d0ec1380fa", "score": "0.5683975", "text": "@Override\n public void onClick(View v) {\n youTubePlayer.play();\n pubMSG(\"PLAY\", Constants.ROOM_ID+\"play\");\n }", "title": "" }, { "docid": "5b8e17034515a40f6b09667498331322", "score": "0.567484", "text": "public void playOrPause() {\n LessonService.getInstance().setIsPlaying(!LessonService.getInstance().isPlaying());\n }", "title": "" }, { "docid": "90a284fef027ea66dfacc678d1377299", "score": "0.5674658", "text": "private void selectOnlyAdVideos() {\n SequenceData sequenceData = SequenceUtil.getCurrentSequence(StateMachine.SEQUENCE_TYPE.LANDING_TYPE);\n if (null == sequenceData) {\n sequenceData = SequenceUtil.getDefaultSequence(StateMachine.SEQUENCE_TYPE.LANDING_TYPE);\n SequenceUtil.updateNewSequence(sequenceData.getSequenceType(), sequenceData.getSequenceOrder());\n } else {\n //get next\n if (!SequenceUtil.isLastForVideoType(sequenceData)) {//not last , just increment the video count\n SequenceUtil.updateCurrentSequence(sequenceData);\n } else if (SequenceUtil.isLast(sequenceData.getSequenceType(), sequenceData.getSequenceOrder())) {\n sequenceData = SequenceUtil.getDefaultSequence(StateMachine.SEQUENCE_TYPE.LANDING_TYPE);\n SequenceUtil.updateNewSequence(sequenceData.getSequenceType(), sequenceData.getSequenceOrder());\n } else {\n sequenceData = SequenceUtil.getNextInSequence(StateMachine.SEQUENCE_TYPE.LANDING_TYPE, sequenceData);\n SequenceUtil.updateNewSequence(sequenceData.getSequenceType(), sequenceData.getSequenceOrder());\n }\n }\n //this steps we have sequenceData what to play\n Data data = VideoData.getVideoByType(sequenceData.getVideoType());\n if (null != data) {\n if (!this.isFinishing()) {\n if (null != data && null != data.getPath() && FileUtil.isFileExist(data.getPath())) {\n playInOtherView(data);\n } else {\n selectOnlyAdVideos();\n }\n }\n } else {\n VideoData.resetVideoSequencePlayedState(sequenceData.getVideoType());\n selectOnlyAdVideos();\n }\n }", "title": "" }, { "docid": "1437fcfa7904f336a733c644d6bbeb9f", "score": "0.5674135", "text": "public boolean isPlay() {\r\n\t\treturn play;\r\n\t}", "title": "" }, { "docid": "69d1cf865fc2c7d3158786b0f73763b4", "score": "0.56521606", "text": "@Override\n public void onPlaying() \n {\n //android.util.Log.d(\"Main_Activity.onPlaying()\", \"entry\");\n this.handler.sendEmptyMessage(MSG_UPDATEUI);\n this.play_button.setImageResource(rs.youtubebuddy.R.drawable.ic_pause_white_24dp);\n }", "title": "" }, { "docid": "8abaada653b2b3c3330ce90e65a94903", "score": "0.56490505", "text": "@Override\r\n\tpublic boolean isPlayMode() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "d28b8204b6b8aa94c7e901d95de7d3d1", "score": "0.56297386", "text": "@Test(priority = 2)\r\n public void validateWatchDemoButton() {\r\n landingPage.getWatchDemoButton().click();\r\n report.assertTrue(driver.getCurrentUrl().equals(\"https://learn.podium.com/watch3now\"),\r\n \"Watch Demo button redirect is incorrect\");\r\n driver.navigate().back();\r\n report.assertAll();\r\n }", "title": "" }, { "docid": "6b6ff0cba5a26b914f570c11f9cbae56", "score": "0.55997807", "text": "@Override\n public void onClick(View v) {\n if (PlayCount == 0) {\n setVisible();\n }\n }", "title": "" }, { "docid": "6e741cff70a3ade75a0bcbe7e16239da", "score": "0.55996996", "text": "public void clickOnFirstEpisodePlayIcon() {\n\t\tWebPageLoaded.isDomInteractive();\n\t\tWebElement playicon = getDriver().findElement(byPodcastListFirstEpisodePlayIcon);\n\t\tplayicon.syncVisible(15);\n\t\tplayicon.jsClick();\n\t\t\n\t}", "title": "" }, { "docid": "5cb0a42cd32b4089df2b407e73f30614", "score": "0.5591277", "text": "public void validateMidOfArticleVideo() {\n\t\ttestStepInfo(\"******************************* Article Video ****************************************\");\n\n\t\ttry {\n\t\t\tboolean topVideo = elementPresent(OR.vid_Reg_Article_Page_Mid_Video);\n\t\t\tif (topVideo == true) {\n\t\t\t\tgetCurrentPageURL();\n\t\t\t\ttakeAdScreenshot(OR.vid_Reg_Article_Page_Mid_Video, \"Video\");\n\t\t\t\ttestStepPassed(\"Middle Of Article Video is Displayed\");\n\t\t\t} else {\n\t\t\t\ttestStepInfo(\"Middle Of Article Video is not Displayed\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\twriteToLogFile(\"ERROR\", \"Exception: \" + e.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "470a31915ecd57da52745ef423d8a30d", "score": "0.5581204", "text": "public void onClickContent(View v) {\n activityPlayerBinding.contentLayout.setVisibility(View.VISIBLE);\n if (isInPlayCondition) {\n pause();\n }\n }", "title": "" }, { "docid": "0294515666b8256e8bf948250e181eca", "score": "0.5574689", "text": "boolean hasPlayCount();", "title": "" }, { "docid": "6dbf7c4106b1dc925ff21a75eae67519", "score": "0.5567017", "text": "public void onClickPlay(View v) {\n if (isInPlayCondition) {\n pause();\n } else {\n play();\n }\n }", "title": "" }, { "docid": "c34341726459bb71057840c434d50c1c", "score": "0.55666524", "text": "void onVideoPlayerFragmentInteraction(boolean bul);", "title": "" }, { "docid": "054079b1bf6448345095e15282f4d9a2", "score": "0.55633694", "text": "public void onClick(View v) {\n setPlayStatus();\n }", "title": "" }, { "docid": "065b43a244ad059661664985358afd55", "score": "0.55630374", "text": "public void toggleButton() {\n if (playButton.getId().equals(\"playButton\")) {\n playButton.setId(\"pauseButton\");\n }\n }", "title": "" }, { "docid": "5c98131eef2cd518c42331ea203e71ca", "score": "0.556136", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif(videoView.isPlaying()){\n\t\t\t\t\tpauseImageView.setImageResource(R.drawable.play_btn_style);\n\t\t\t\t\tvideoView.pause();\n\t\t\t\t\thandler.removeMessages(UPDATE_UI);\n\t\t\t\t}else{\n\t\t\t\t\tpauseImageView.setImageResource(R.drawable.pause_btn_style);\n\t\t\t\t\tvideoView.start();\n\t\t\t\t\thandler.sendEmptyMessage(UPDATE_UI);\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "1226996e452081ad25640e2915c857b6", "score": "0.5556072", "text": "@Test\r\n public void testEnterGameButton() {\r\n // Is not clickable because we need to manually make it clickable after playerCount reaches\r\n // baseline\r\n //onView(withId(R.id.ready_to_start)).check(matches(isClickable()));\r\n onView(withId(R.id.ready_to_start)).perform(click());\r\n }", "title": "" }, { "docid": "e3df8b6a4f079af611f3a1ca64a1921d", "score": "0.55403835", "text": "@Test\n public void isPlaying_callPlay_getTrue(){\n\n soundClipBase.play();\n Assertions.assertThat(soundClipBase.isPlaying())\n .isTrue();\n\n }", "title": "" }, { "docid": "7bc761fd6498703c5586f0c6b2ebdb3a", "score": "0.5509369", "text": "public void verifyMusicStateUnderLockScreen(){\n\t commonModule.waitForResourceId(moduleData.get(\"Pause_PLay_Button_On_Lock_Screen_State\"), 5*1000);\n\t}", "title": "" }, { "docid": "3e013d23ff6c25862f7468e9fca042e8", "score": "0.5507475", "text": "@Override\n public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {\n updateButtonVisibilities();\n\n// //// Chromecast\n// switch( playbackState ) {\n// case ExoPlayer.STATE_IDLE:\n// mPlayStatus.mCurrentState = PlayStatus.STATE_IDLE;\n// break;\n// case ExoPlayer.STATE_BUFFERING:\n// mPlayStatus.mCurrentState = PlayStatus.STATE_BUFFERING;\n// break;\n// case ExoPlayer.STATE_READY:\n// if( playWhenReady ) {\n// mPlayStatus.mCurrentState = PlayStatus.STATE_PLAYING;\n// }\n// else {\n// mPlayStatus.mCurrentState = PlayStatus.STATE_PAUSED;\n// }\n//\n// break;\n// case ExoPlayer.STATE_ENDED:\n// mPlayStatus.mCurrentState = PlayStatus.STATE_IDLE;\n// break;\n// default:\n// mPlayStatus.mCurrentState = PlayStatus.STATE_IDLE;\n// }\n// //// CC\n }", "title": "" }, { "docid": "f00121e6a79e70cb9fe2e092aaae5143", "score": "0.54995733", "text": "public void onPlayWithClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radioButtonRobot:\n if (checked) {\n playWith = 0;\n }\n break;\n\n case R.id.radioButtonOffline:\n if (checked) {\n playWith = 1;\n }\n break;\n case R.id.radioButtonOnline:\n if (checked){\n playWith = 2;\n }\n break;\n }\n }", "title": "" }, { "docid": "84bcb478df93f7f6162f4a44d7b3432b", "score": "0.5498274", "text": "private void togglePlay() {\r\n if (Player.isPlaying()) {\r\n Player.pause();\r\n this.timeline.stop();\r\n } else {\r\n if (Player.FINAL_BEAT > 0) {\r\n this.overlay.clear();\r\n Player.play();\r\n this.timeline.play();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "66b006e2e52b8130c879f7cb6cf2875a", "score": "0.5493695", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tPOPEYE++;\r\n\t\t\t\tplay.setVisibility(View.INVISIBLE);\r\n\t\t\t\tyoutube_loader\r\n\t\t\t\t\t\t.loadUrl(\"http://www.youtube.com/results?search_query=popaye+official+cartoon+videos&oq=popaye+official+cartoon+videos&aq=f&aqi=&aql=&gs_l=youtube-psuggest.3...45223l46711l0l47394l6l6l0l0l0l0l149l598l0j5l5l0.\");\r\n\t\t\t\t// http_side.loadUrl(\"http://gotabbie.com/media3/index.html\");\r\n\t\t\t\tvf.setDisplayedChild(11);\r\n\t\t\t}", "title": "" }, { "docid": "fe1f49465862aad73282d83c21c39ac4", "score": "0.54918605", "text": "private void selectMovieAdVideos() {\n SequenceData sequenceData = SequenceUtil.getCurrentSequence(StateMachine.SEQUENCE_TYPE.MOVIE_INIT_TYPE);\n if (null == sequenceData) {\n sequenceData = SequenceUtil.getDefaultSequence(StateMachine.SEQUENCE_TYPE.MOVIE_INIT_TYPE);\n SequenceUtil.updateNewSequence(sequenceData.getSequenceType(), sequenceData.getSequenceOrder());\n } else {\n //get next\n if (!SequenceUtil.isLastForVideoType(sequenceData)) {//not last , just increment the video count\n SequenceUtil.updateCurrentSequence(sequenceData);\n } else if (SequenceUtil.isLast(sequenceData.getSequenceType(), sequenceData.getSequenceOrder())) {\n //all the init videos done\n sequenceData = new SequenceData();\n sequenceData.setVideoType(VideoProvider.VIDEO_TYPE.MOVIE);\n } else {\n sequenceData = SequenceUtil.getNextInSequence(StateMachine.SEQUENCE_TYPE.MOVIE_INIT_TYPE, sequenceData);\n SequenceUtil.updateNewSequence(sequenceData.getSequenceType(), sequenceData.getSequenceOrder());\n }\n }\n //this steps we have sequenceData what to play\n Data data = VideoData.getVideoByType(sequenceData.getVideoType());\n if (!this.isFinishing()) {\n switch (sequenceData.getVideoType()) {\n case VideoProvider.VIDEO_TYPE.MOVIE:\n playInMovieView(data);\n break;\n case VideoProvider.VIDEO_TYPE.INTRO_VIDEO:\n //as this video is local , every time it will be there.So no need of else case\n if (null != data && null != data.getType()) {\n playInOtherView(data);\n }\n break;\n default:\n if (null != data && null != data.getPath() && FileUtil.isFileExist(data.getPath())) {\n playInOtherView(data);\n } else {\n selectMovieAdVideos();\n }\n break;\n }\n }\n }", "title": "" }, { "docid": "8181070285ab4969cea21be0d2b43b69", "score": "0.5487834", "text": "@Override\n public boolean isVideoCompleted() {\n return mVideoPlayer.isVideoCompleted();\n }", "title": "" }, { "docid": "e6d78e856943d23d6dd5051749898c4c", "score": "0.54827386", "text": "@Override\n public boolean isPlayerReady() {\n return mVideoPlayer.isPlayerReady();\n }", "title": "" }, { "docid": "1b7a251396c40af260e5fcac1f083a78", "score": "0.5479068", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tUTTARAN++;\r\n\t\t\t\tplay.setVisibility(View.INVISIBLE);\r\n\t\t\t\tyoutube_loader\r\n\t\t\t\t\t\t.loadUrl(\"http://www.youtube.com/user/colorstv/videos\");\r\n\t\t\t\t// http_side.loadUrl(\"http://gotabbie.com/media3/index.html\");\r\n\t\t\t\tvf.setDisplayedChild(11);\r\n\t\t\t}", "title": "" }, { "docid": "daa80303545034e9c37ffa81f3059d22", "score": "0.54774135", "text": "@Step(\"Verifying Join now button appeared\")\n\tpublic boolean verifyJoinNowButtonAppeared(){\n\t\treturn lnkJoinNow.syncPresent(3,\"false\") ;\n\t}", "title": "" }, { "docid": "d543a9fb8c87fb853a95697bffbddfad", "score": "0.54622394", "text": "public Boolean clickOcclusionPlane() {\n Boolean flag=false;\n IWebElementWrapper elt=element(\"orientationAdjustment.occlusionPlane\");\n elt.click();\n loading();\n IWebElementWrapper eltStatus=element(\"orientationAdjustment.occlusionPlaneStatus\");\n if(eltStatus.isPresent()){\n logger.info(\"show Occlusion Plane\");\n flag=true;\n }else{\n logger.info(\"hide Occlusion Plane\");\n }\n return flag;\n }", "title": "" }, { "docid": "0fe8d08457bd95f0178325d38f1ef388", "score": "0.54610604", "text": "private void m9349q() {\n this.f9333b.mo19317i(\"VideoAdView\", \"toggleMediaControlsVisibility\");\n MediaController mediaController = this.f9337f;\n if (mediaController != null) {\n if (mediaController.isShowing()) {\n this.f9337f.hide();\n } else {\n this.f9337f.show();\n }\n }\n }", "title": "" }, { "docid": "b3849658f05dc18daece17b22b16b423", "score": "0.5454855", "text": "public abstract void activateEmbeddedMovie(boolean b);", "title": "" }, { "docid": "074fa0ca028b06b3d40a7d568fee2eee", "score": "0.5454735", "text": "public void pause(){\n\t\tSTOP();\n\t\tmediaPlayer.pause();\n\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t\talert.setTitle(\"Paused!\");\n\t\talert.setHeaderText(\"Pause!\");\n\t\talert.setContentText(\"Quit or continue? (All your current process will be lost if you quit)\");\n\t\tButtonType buttonTypeOne = new ButtonType(\"Quit\");\n\t\tButtonType buttonTypeTwo = new ButtonType(\"Continue\");\n\n\t\talert.getButtonTypes().setAll(buttonTypeOne, buttonTypeTwo);\n\n\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\tif (result.get() == buttonTypeOne){\n\t\t\ttoMainMenu();\n\n\t\t} else {\n\t\t\tstart();\n\t\t\tmediaPlayer.play();\n\t\t}\n\t}", "title": "" }, { "docid": "e5a1481b154ed001f3a9f22c1eea2472", "score": "0.54385006", "text": "public boolean getPlay() {\r\n\t\treturn play;\r\n\t}", "title": "" }, { "docid": "19ca00e278548fc24f3f8261cdc7f0b1", "score": "0.5434042", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tCHHAL++;\r\n\t\t\t\tplay.setVisibility(View.INVISIBLE);\r\n\t\t\t\t// youtube_loader.loadUrl(\"http://www.youtube.com/user/colorstv/videos?query=Chhal\");\r\n\t\t\t\tyoutube_loader\r\n\t\t\t\t\t\t.loadUrl(\"http://www.youtube.com/user/colorstv/videos\");\r\n\r\n\t\t\t\t// http_side.loadUrl(\"http://gotabbie.com/media3/index.html\");\r\n\t\t\t\tvf.setDisplayedChild(11);\r\n\t\t\t}", "title": "" }, { "docid": "30b43dd8370f44766a4d3310c2ffda48", "score": "0.54265857", "text": "public boolean btnApprovePSDisplayed()\r\n\t{\r\n\t\treturn btnApprovePS.isDisplayed();\r\n\t}", "title": "" }, { "docid": "671a6dc8abca23682df9ccec1ee4cb65", "score": "0.54196596", "text": "boolean hasMainPlayerId();", "title": "" }, { "docid": "f4020a619b5da094e589f47ad2140fff", "score": "0.54166335", "text": "protected boolean shouldShowControls() {\n MediaControllerCompat mediaController = MediaControllerCompat.getMediaController(this);\n LogHelper.d(TAG, \"showShowControls eval with mediaController=\", mediaController);\n assert(mediaController != null);\n\n if (mediaController.getMetadata() == null){\n LogHelper.d(TAG, \"showShowControls=false as the metadata is null\");\n return false;\n }\n if (mediaController.getPlaybackState() == null) {\n LogHelper.d(TAG, \"showShowControls=false as the playback state is null\");\n return false;\n }\n switch (mediaController.getPlaybackState().getState()) {\n case PlaybackStateCompat.STATE_ERROR:\n case PlaybackStateCompat.STATE_NONE:\n case PlaybackStateCompat.STATE_STOPPED:\n LogHelper.d(TAG, \"showShowControls=false as the state is ERROR/NONE/STOPPED\");\n return false;\n default:\n LogHelper.d(TAG, \"showShowControls=true as state is\", mediaController.getPlaybackState().getState());\n return true;\n }\n }", "title": "" }, { "docid": "910e5b5da73bc33a09491dc6d2b77307", "score": "0.54052246", "text": "@Override\n public void onPlayBegin() {\n isPlay = true;\n }", "title": "" }, { "docid": "1c038e9511f896df87d8c6b9c96b4f64", "score": "0.5401939", "text": "@Test\n public void verifyLogCallButton(){\n WebElement logCallBtnElement=driver.findElement(logCallBtnBy);\n Assert.assertTrue(logCallBtnElement.isDisplayed());\n\n }", "title": "" }, { "docid": "85e803025f422544caf1d14f875c08e6", "score": "0.5399453", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIDOL++;\r\n\t\t\t\tplay.setVisibility(View.INVISIBLE);\r\n\t\t\t\tyoutube_loader\r\n\t\t\t\t\t\t.loadUrl(\"http://www.youtube.com/results?search_query=indian+idol+full+videos&oq=indian+idol+full+videos&aq=f&aqi=&aql=&gs_l=youtube-psuggest.3...29905l32931l0l33362l11l11l0l0l0l0l303l1518l0j7j1j1l9l0.\");\r\n\t\t\t\t// http_side.loadUrl(\"http://gotabbie.com/media3/index.html\");\r\n\t\t\t\tvf.setDisplayedChild(11);\r\n\t\t\t}", "title": "" }, { "docid": "42a98bd61c8f6a844fb1c5f34b390773", "score": "0.5398527", "text": "public void setStatusPlay() {\n AudioStream stream = driver.getStream();\n if (stream == null)\n return; \n else if (stream.getStatus() == null){\n loadNextFromQueue();\n driver.getStream().setVolume(0.66);\n }\n switch (stream.getStatus()) {\n case PAUSED:\n case STOPPED:\n case READY:\n \n stream.play();\n break;\n case STALLED:\n case PLAYING:\n // stream buffering. If we had more time, we could implement a \n // sleep, and then retry, or we could alert user media is buffering\n return;\n default:\n // in this case stream is halted, disposed, or unknown state\n // best to alert view so it can alert user and \n //create a new stream can be created\n stream.alert();\n }\n }", "title": "" }, { "docid": "76ebab1de98a13142a25ee68acb570bd", "score": "0.5392391", "text": "@Override\n public boolean isPlaying() {\n return mediaPlayer.isPlaying();\n }", "title": "" }, { "docid": "27ad2813a2307b1c00b207fb04f392b4", "score": "0.5389472", "text": "protected int isPlayed(int k) {\n if (LCConstant.userinfo != null) {\n for (int r = 0; r < videoAll.getList().size(); r++) {\n // 如果是未播放的\n if (\"0\".equals(videoAll.getList().get(r).getViewstate())) {\n return r;\n // 如果是播放中的\n } else if (\"1\".equals(videoAll.getList().get(r).getViewstate())) {\n return r;\n }\n }\n }\n return k = k + 1;\n }", "title": "" }, { "docid": "b65d90ce2e2c18ed7591af30a751d706", "score": "0.5389364", "text": "@Override\n public void onPlaying() {\n Log.d(\"**************\", \"onPlaying Entered ! ! ! !\");\n //Set flag to signify the video has started playing\n hasStartedPlaying = true;\n }", "title": "" }, { "docid": "238f268047e0b99dba1c9eeb1207f291", "score": "0.53803104", "text": "public boolean pressPlay() {\n\t\tSystem.out.println(\"The player is now playing.\");\n\t\tremote.setState(remote.getPlayingState());\n\t\tremote.setPosition(remote.getPosition()+1);\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a3c47172a95a09c22e25816038528076", "score": "0.53741646", "text": "@Override\n\t\t\t\tpublic void OnPopupPlayYouTube(Song song) {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "0aeec1c44f1ab97d13cb77dc477b4e86", "score": "0.53730917", "text": "boolean hasMediaItem();", "title": "" }, { "docid": "0aeec1c44f1ab97d13cb77dc477b4e86", "score": "0.53730917", "text": "boolean hasMediaItem();", "title": "" }, { "docid": "0995c4166ce139ab39195cd63577bca8", "score": "0.5366857", "text": "protected boolean shouldShowControls() {\n LogHelper.i(TAG, \"shouldShowControls\");\n MediaControllerCompat mediaController = MediaControllerCompat.getMediaController(this);\n if (mediaController == null ||\n mediaController.getMetadata() == null ||\n mediaController.getPlaybackState() == null) {\n return false;\n }\n switch (mediaController.getPlaybackState().getState()) {\n case PlaybackStateCompat.STATE_ERROR:\n case PlaybackStateCompat.STATE_NONE:\n case PlaybackStateCompat.STATE_STOPPED:\n return false;\n default:\n return true;\n }\n }", "title": "" }, { "docid": "77756341867006ad0dc803d1c40c4a90", "score": "0.5363227", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tNATUM++;\r\n\t\t\t\tplay.setVisibility(View.INVISIBLE);\r\n\t\t\t\t// youtube_loader.loadUrl(\"http://www.youtube.com/user/colorstv/videos?query=Na+Bole+Tum+Na+Maine+Kuch+Kaha+\");\r\n\t\t\t\tyoutube_loader\r\n\t\t\t\t\t\t.loadUrl(\"http://www.youtube.com/user/colorstv/videos\");\r\n\t\t\t\t// http_side.loadUrl(\"http://gotabbie.com/media3/index.html\");\r\n\t\t\t\tvf.setDisplayedChild(11);\r\n\t\t\t}", "title": "" }, { "docid": "da4c32792bc51f63b3b85883137a003e", "score": "0.53528774", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tDOREMON++;\r\n\t\t\t\tplay.setVisibility(View.INVISIBLE);\r\n\t\t\t\tyoutube_loader\r\n\t\t\t\t\t\t.loadUrl(\"http://www.youtube.com/results?search_query=doraemon+official+cartoon+videos&oq=doraemon+official+cartoon+videos&aq=f&aqi=&aql=&gs_l=youtube-psuggest.3...4746l11504l0l11641l21l21l1l0l0l0l219l2223l0j15j2l17l0.\");\r\n\t\t\t\t// http_side.loadUrl(\"http://gotabbie.com/media3/index.html\");\r\n\t\t\t\tvf.setDisplayedChild(11);\r\n\t\t\t}", "title": "" }, { "docid": "f81b18105e18095d137323bea8b461c8", "score": "0.5349219", "text": "public boolean getPlayWhenReady() {\n return player.getPlayWhenReady();\n }", "title": "" }, { "docid": "6c1b4b5f9509f018c0dbe4ae6c18b012", "score": "0.5346704", "text": "public void checkPrintPresent() {\n btnPrint.assertIsPresentAndVisible();\n }", "title": "" }, { "docid": "2cc3fb4dd780ee46c209a8b73d9ec4c1", "score": "0.5340749", "text": "@Override\n public boolean canPause() {\n return true;\n }", "title": "" }, { "docid": "120700258ed1a8e17673b10c2723ad55", "score": "0.5340585", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tKUCHBHI++;\r\n\t\t\t\tplay.setVisibility(View.INVISIBLE);\r\n\t\t\t\tyoutube_loader\r\n\t\t\t\t\t\t.loadUrl(\"http://www.youtube.com/results?search_query=entertainment+ke+liye+kuch+bhi+karega+full+videos&oq=entertainment+ke+liye+kuch+bhi+karega+full+videos&aq=f&aqi=p-p1&aql=&gs_l=youtube-psuggest.3..35i39.9874l13359l0l13572l13l13l0l0l0l0l292l1460l0j7j2l9l0.\");\r\n\t\t\t\t// http_side.loadUrl(\"http://gotabbie.com/media3/index.html\");\r\n\t\t\t\tvf.setDisplayedChild(11);\r\n\t\t\t}", "title": "" }, { "docid": "77304ef48acd9b88d9a7f7bd844a5c7f", "score": "0.5337183", "text": "private boolean play() {\n\n if (mPlayDevice != null && player == null) {\n VideoRenderer renderer = new AViewRenderer(getContext(), mVideoView);\n renderer.setOnVideoSizeChangedListener(this);\n\n SLDataSource source = new SLDataSource();\n\n source.setParameters(mPlayDevice.getGid(),mPlayDevice.getAccessName(),\n mPlayDevice.getAccessPwd(), 0, 3, 0);\n\n source.setDataSourceListener(this);\n\n player = new MediaPlayer();\n player.prepare();\n\n player.setDataSource(source);\n player.setDisplay(renderer);\n player.start();\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "6d4b21232912825e52d2ad4e1500bb9d", "score": "0.532805", "text": "boolean hasReferredPlayer();", "title": "" } ]
b4c94ef57e563396230bebed6c78e5fb
Set the ID of the budget.
[ { "docid": "4bebc232b28afa92bcb0bd9df9ecfdc0", "score": "0.6823703", "text": "public void setId(int id) {\n\t\t\n\t\tthis.id = id;\n\t}", "title": "" } ]
[ { "docid": "18d3246e23b0e1eaa8a1a9b336b353ff", "score": "0.7161503", "text": "public void setBudgetID(int ID) {\n\t\t\n\t\tbudget_id = ID;\n\t}", "title": "" }, { "docid": "2356574fd14b38b2d27731160b662009", "score": "0.6874916", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "3978c8e2650ac71f8217cebc8c555d2b", "score": "0.6873456", "text": "public void setId(int id)\r\n\t{\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "594ddd406b432223ead8ff843dc4df9e", "score": "0.68654805", "text": "public void setID(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "594ddd406b432223ead8ff843dc4df9e", "score": "0.68654805", "text": "public void setID(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "ecb92c6e0fa676e599099f6b0ed08da6", "score": "0.6846486", "text": "public void setId(int value)\n {\n m_id = value;\n }", "title": "" }, { "docid": "94e19d7d5f3a4ed2767d2246bd5e5e22", "score": "0.6846198", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "5320c14dad55d8f83858757f991cb65d", "score": "0.68265665", "text": "public void setId(int id)\n\t{\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "6e3402e5e29be5dbf86d0f5bf8810a30", "score": "0.6826018", "text": "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "6e3402e5e29be5dbf86d0f5bf8810a30", "score": "0.6826018", "text": "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "6e3402e5e29be5dbf86d0f5bf8810a30", "score": "0.6826018", "text": "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "6e3402e5e29be5dbf86d0f5bf8810a30", "score": "0.6826018", "text": "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "716639b9aebdacdcad4ff8a5e9642839", "score": "0.6814519", "text": "public void setId(int id) \n {\n \tthis.id = id;\n }", "title": "" }, { "docid": "e19397293233afd14b196a818917934b", "score": "0.68110526", "text": "public void setId(int id) \n\t{\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "b4bfdd788f89f2b99dc19a364bc005b8", "score": "0.6810939", "text": "public void setId(int id){\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "b4bfdd788f89f2b99dc19a364bc005b8", "score": "0.6810939", "text": "public void setId(int id){\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "b4bfdd788f89f2b99dc19a364bc005b8", "score": "0.6810939", "text": "public void setId(int id){\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "b4bfdd788f89f2b99dc19a364bc005b8", "score": "0.6810939", "text": "public void setId(int id){\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.67992073", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "1ab17ca223c9aa7615cd5de9dfe79c8b", "score": "0.67992073", "text": "public void setId(int id)\n {\n this.id = id;\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.67914987", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.67914987", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.67914987", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.67914987", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.67914987", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "370c89ec4264533d53889698d284f277", "score": "0.67914987", "text": "public void setId(int id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "faa950bca891285a105ad127bf3a8cb9", "score": "0.6790699", "text": "public void setId(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "a0109a4d426ae664ad722c997ca3b6eb", "score": "0.67882216", "text": "public void setId(final int id) {\n this.id = id;\n }", "title": "" }, { "docid": "a0109a4d426ae664ad722c997ca3b6eb", "score": "0.67882216", "text": "public void setId(final int id) {\n this.id = id;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6788007", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6788007", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6788007", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6788007", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6788007", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6788007", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "dd941c0fac47c2be665ca9de3bc2951d", "score": "0.6788007", "text": "public void setId(int value) {\n this.id = value;\n }", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "fd1e7f55cd673404a2cbd37e7766e4a6", "score": "0.6779359", "text": "public void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "27608ae5c6737c0374a9a203df262b70", "score": "0.6779078", "text": "public void setId(int id) { \n\t\tthis.id = id; \n\t}", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.6772469", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.6772469", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "e3c9bff71177b79a91171c519740b550", "score": "0.6772469", "text": "public void setId(long id) {\n this.id = id;\n }", "title": "" }, { "docid": "cf3b9e5828de1550c17efdf28541a285", "score": "0.6757694", "text": "public void setID(final int id) {\n this.id = id;\n }", "title": "" }, { "docid": "5a3d8cb16a6d32c2e41aa5ad721ee8f4", "score": "0.67549574", "text": "public void setId(long id) {\r\n this.id = id;\r\n }", "title": "" }, { "docid": "c54a2e2356a1e754469f9b9d718c5026", "score": "0.67525506", "text": "public void setId(int id) {\r\n\t\tthis.Id = id;\r\n\t}", "title": "" }, { "docid": "32860527135c7699f3247153229cef1e", "score": "0.6750465", "text": "@Override\n\tpublic void setId(int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "4376fce2b0b59b3ff23f5b67b6970666", "score": "0.6734273", "text": "public void setID(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "4376fce2b0b59b3ff23f5b67b6970666", "score": "0.6734273", "text": "public void setID(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "4376fce2b0b59b3ff23f5b67b6970666", "score": "0.6734273", "text": "public void setID(int id) {\n this.id = id;\n }", "title": "" }, { "docid": "46e96b2f2df60e6eee3dab88b90a2f32", "score": "0.6733455", "text": "public void SetID(int id)\n {\n m_id = id;\n }", "title": "" }, { "docid": "bc7e27714fe23dc639601636f3cb9dc1", "score": "0.6732425", "text": "public void setId(int id)\n\t{\n\t\tmId = id;\n\t}", "title": "" }, { "docid": "ecc28cfcfaee2b114a2227f372fdc8c0", "score": "0.6727758", "text": "public void setId(java.lang.Integer id) {\n this.id = id;\n }", "title": "" }, { "docid": "d6b4feca5b7ca8fe205e187f51dde864", "score": "0.67276496", "text": "public void setId(final int id) {\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "b40b2a3a94949b8640e3a2b2982b8fb9", "score": "0.672676", "text": "public void setId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "41a28e0ef8c922e9986a387dc29d7d55", "score": "0.6725459", "text": "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "title": "" }, { "docid": "8c2d6f767075c81c259cb7f7ac6c6b35", "score": "0.6724307", "text": "public void setId(final Object id)\n\t{\n\t\tthis.id = id;\n\t}", "title": "" }, { "docid": "946498a316562e3ac130c9a5850ef4a5", "score": "0.67236745", "text": "public void setId(int idDetalleComponenteCostoDistribucion)\r\n/* 63: */ {\r\n/* 64: 96 */ this.idDetalleComponenteCostoDistribucion = idDetalleComponenteCostoDistribucion;\r\n/* 65: */ }", "title": "" }, { "docid": "9b940c08d74c627ac79721ec20e65740", "score": "0.6720085", "text": "public void setId(int id) {\r\n\t\tthis.id=id;\r\n\t}", "title": "" }, { "docid": "e5e40506424a106f08233550ccf6c471", "score": "0.6708316", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "e5e40506424a106f08233550ccf6c471", "score": "0.6708316", "text": "public void setId(int id){\n this.id = id;\n }", "title": "" }, { "docid": "c7ab9fde31f1bbaa59fbf8a711d0b0a8", "score": "0.67052627", "text": "public void setId(int id)\n {\n this.mId = id;\n }", "title": "" }, { "docid": "c878d1620b7940d31fc41c485d563a5c", "score": "0.67024446", "text": "public void setId(int id){\n\t\tthis.id=id;\n\t}", "title": "" } ]
b61d5fd53f4889ec617a7aac6372d44d
/ access modifiers changed from: private
[ { "docid": "931ad36670b1a28fabb917c1c5d33a06", "score": "0.0", "text": "public /* synthetic */ void lambda$new$0() {\n this.mChoreographer = Choreographer.getInstance();\n }", "title": "" } ]
[ { "docid": "5d6f8db1f75beb16acd7c64687bc500c", "score": "0.6989152", "text": "private Utilitarios() {\n\t\t\n\t}", "title": "" }, { "docid": "74a4209c94e08d9f5eb0b60e580f5e04", "score": "0.6514589", "text": "@Override\r\n\tpublic void comit() {\n\t\t\r\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.6462569", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.6373846", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "b645eacb329adc01490ab5013a6c4f7f", "score": "0.63504475", "text": "@Override\n\t\t\tpublic void perfom() {\n\n\t\t\t}", "title": "" }, { "docid": "f6f56f418bd606790da6d3f972d1bd39", "score": "0.6293885", "text": "protected abstract void mo3576c();", "title": "" }, { "docid": "20020208a82a13db216fe5825a1225cb", "score": "0.6284632", "text": "private In() {\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.62531394", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "7c2f530eef910ca7368316b6425dbb09", "score": "0.6244231", "text": "@Override\n\t\t\tpublic void test12() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.6240492", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "21d672149bbdd06ba8646ddf7f7f41d1", "score": "0.6240492", "text": "@Override\n\tprotected void descansar() {\n\t\t\n\t}", "title": "" }, { "docid": "6e4c19916d6f109979d7cb7748a863ed", "score": "0.6222871", "text": "private Pa() {\n\t}", "title": "" }, { "docid": "cde330391e98279ac96876471330c12b", "score": "0.62120396", "text": "private Quick3WaysImproved() {}", "title": "" }, { "docid": "3e556c0f03a7d2509fe80fc61a60a369", "score": "0.6195507", "text": "@Override\n\t\t\t\tpublic void init() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "fcb3c4d3186fcf7a2e6567fab9b7d5e2", "score": "0.6191566", "text": "private Theora()\n\t{\n\t}", "title": "" }, { "docid": "f37aebdfc461c1965abd4e2afbc83532", "score": "0.61855257", "text": "private void apparence()\r\n\t\t{\r\n\t\t//rien\r\n\t\t}", "title": "" }, { "docid": "b366684f47b5dad8bbdfbfe044fe0841", "score": "0.6180141", "text": "private Differentiables()\r\n\t{\r\n\t}", "title": "" }, { "docid": "0aeb31da8ebac864ecfc84df5be728c9", "score": "0.6170078", "text": "@Override\r\n\tpublic void koleos() {\n\t\t\r\n\t}", "title": "" }, { "docid": "de62fd1b46f929f42678cf6311a56bf9", "score": "0.61594933", "text": "private Helper3() {}", "title": "" }, { "docid": "4541b4eaa2b2871ab4c98fc297f4dede", "score": "0.61586666", "text": "@Override\n\tpublic void descer() {\n\t\t\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.6154269", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.6150298", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "80762458b54fe841d7e4f99e4de13990", "score": "0.6150298", "text": "@Override\n\tprotected void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.6146851", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "03dec34dcb010fb4f8aaffffeb038a5c", "score": "0.60952157", "text": "@Override\r\n public void atacar() {\n \r\n }", "title": "" }, { "docid": "29b7c46d508e598b82559ba09507bb88", "score": "0.60857844", "text": "private void fooPrivate()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "1ed144b4d2aead457255ab8ddb73ac57", "score": "0.6048248", "text": "@Override\r\n\tpublic void limpar() {\n\r\n\t}", "title": "" }, { "docid": "ff2a26de6775216e86ea92e547fb9c42", "score": "0.60375583", "text": "@Override\n\tpublic void manobrar() {\n\t\t\n\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.6009583", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "a8466bdc481ff3361d07776f72a6ad5a", "score": "0.6006729", "text": "@Override\n\tpublic void fliegen() {\n\t\t\n\t}", "title": "" }, { "docid": "690c3795eb018aa9906a3ed189d8e3a0", "score": "0.6002167", "text": "@Override\n\tpublic void atacar() {\n\n\t}", "title": "" }, { "docid": "10dc6a272887f1695aec639a085f1c0d", "score": "0.5995784", "text": "private I000033() {\r\n\t}", "title": "" }, { "docid": "fb7e6b2a89843e694a13571c31377718", "score": "0.5983858", "text": "public void mo19849a() {\n }", "title": "" }, { "docid": "01084478d2aaee960e0f17c9424b4491", "score": "0.5982124", "text": "@Override\n\t\t\tpublic void a() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a2886dcb1a8e2640d74d74c777df3b70", "score": "0.59793586", "text": "private Preprocessing() {\n\t}", "title": "" }, { "docid": "8f8f55754a50ef47c9d93a9353835678", "score": "0.5978982", "text": "private CL() {\n\t}", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.59712934", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "b14cffacd51e1ce2462cbb7320ae9815", "score": "0.5970642", "text": "@Override\n\tprotected void preInilize() {\n\t\t\n\t}", "title": "" }, { "docid": "6a7a55dd8ae8cdba0cc87c14e8d2d926", "score": "0.59690857", "text": "@Override\n\tprotected void readImpl()\n\t{}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5960403", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5960403", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "b1cf16017c8057c0255a9ad368ecaee5", "score": "0.59594554", "text": "@Override\r\n\tprotected void init() {\n\r\n\t}", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.59499854", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "c6bc5d71695bfc44366c74f6f0fe2368", "score": "0.59493965", "text": "@Override\n\tvoid retoceder() {\n\t\t\n\t}", "title": "" }, { "docid": "6510d3dea6a26c84e16ad2630e8f6b44", "score": "0.5947931", "text": "public abstract void mo34648b();", "title": "" }, { "docid": "d5fc964e118f8f0b5fe588463f39638b", "score": "0.5947479", "text": "private I000055() {\r\n\t}", "title": "" }, { "docid": "5e0e2126cce752937c0f81a67aa334dc", "score": "0.59385794", "text": "public abstract void mo24779b();", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.5935143", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "8a2f3b349a25374b05205f9955000cb0", "score": "0.59256405", "text": "public void omzet(){\n\t}", "title": "" }, { "docid": "613a3e1e6e5657c279f3d776498946fc", "score": "0.5921513", "text": "@Override\n public boolean hasAccess() { return true; }", "title": "" }, { "docid": "bece1cb15bffa2bef147ff4606323003", "score": "0.59104747", "text": "private void m49836B() {\n }", "title": "" }, { "docid": "2e8b0d8bb9fd62c1559ca4b277c6505c", "score": "0.59050125", "text": "@Override\n\tpublic void 이체() {\n\t\t\n\t}", "title": "" }, { "docid": "7a1e3a6ca521e8942d973a45c2453c9d", "score": "0.5904775", "text": "private void hrekj$kjfsadf(){}", "title": "" }, { "docid": "0937d68649ead8a506d57d8aacb2a3ec", "score": "0.59041625", "text": "public yav mo18855c() {\n throw new UnsupportedOperationException(\"This method must be overwritten by subclasses\");\n }", "title": "" }, { "docid": "573e777b1723411d46abc7892cb5caea", "score": "0.59031993", "text": "public void mo5608a() {\n }", "title": "" }, { "docid": "a133a640950fe7cdfa2a61ba6813a824", "score": "0.5899317", "text": "private UtilsEta () {\n\t}", "title": "" }, { "docid": "7dc226c2dd73339594b9a5d78d538a9b", "score": "0.58984023", "text": "public void soigner() {\n\t\t\n\t}", "title": "" }, { "docid": "c612bcadafd393d086f44fd19558a8be", "score": "0.5897505", "text": "@Override\r\n\tpublic void inicialize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "59851a33d448503de430d7dd3ec24744", "score": "0.589663", "text": "public abstract void mo56577c();", "title": "" }, { "docid": "50eb8922149b6987def0b49575615f5e", "score": "0.5892761", "text": "@Override\n protected void getExras() {\n }", "title": "" }, { "docid": "d3f774182d4215967c63b04db821b349", "score": "0.58782774", "text": "@Override\r\n\tpublic void munul() {\n\t\t\r\n\t}", "title": "" }, { "docid": "dcde0efa54aad27c4f25595b5d9256c7", "score": "0.5877405", "text": "private ListaBezeroak() {\n\t\t\n\t}", "title": "" }, { "docid": "f8978d93b84e5118882a4ff5e000e716", "score": "0.5871283", "text": "private void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.5871263", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "36e400a516499204257ae497b7df4f8f", "score": "0.5869455", "text": "private Util() {}", "title": "" }, { "docid": "36e400a516499204257ae497b7df4f8f", "score": "0.5869455", "text": "private Util() {}", "title": "" }, { "docid": "dee303fafc30b6ec462be8ffd28bd001", "score": "0.58686376", "text": "private ArrayProcessing() {\r\n\t}", "title": "" }, { "docid": "bcc647eaea257a78c8d339a2668f39eb", "score": "0.5867463", "text": "@Override\r\n\tpublic void thirsty() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a147e931a0b23fd21b8e6b39e13d9778", "score": "0.58666015", "text": "@Override\n\tprotected void alimentar() {\n\t\t\n\t}", "title": "" }, { "docid": "a147e931a0b23fd21b8e6b39e13d9778", "score": "0.58666015", "text": "@Override\n\tprotected void alimentar() {\n\t\t\n\t}", "title": "" }, { "docid": "e243121bbc16b3ba9b5e62781a738c7d", "score": "0.58656025", "text": "public void mo11469p() {\n }", "title": "" }, { "docid": "6d3e31b51e003bbd4ee2d821878a610c", "score": "0.58623546", "text": "public abstract Object mo31296b();", "title": "" }, { "docid": "5f91b2a2aa11208980e47b7595abb282", "score": "0.5857951", "text": "private void attaquerBase() {\n\t\t\n\t}", "title": "" }, { "docid": "2f3e7c4f4d0072a55c8e0187be049a27", "score": "0.5857189", "text": "public void mo9610b() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5852225", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "e0b943b1b36797b4d7440bb3c831107f", "score": "0.5850777", "text": "public void mo37302a() {\n }", "title": "" }, { "docid": "252960e025bfa106bbe3903b4e4cbd3c", "score": "0.5849227", "text": "public void mo35709a() {\n }", "title": "" }, { "docid": "21e61184019c922f5da8587e8d5be3f6", "score": "0.5843201", "text": "@Override\n\tprotected void readImpl() {\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.58361727", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.58361727", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "838dc67d0cf43779c25a49159bb003e7", "score": "0.58336204", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "54eb3d6fac8a3fe6b41250d21697abda", "score": "0.58318704", "text": "@Override\n protected void work() {\n }", "title": "" }, { "docid": "73ffd108140c756e1eaa8948af3a83b4", "score": "0.58272785", "text": "public void mo10177b() {\n }", "title": "" }, { "docid": "9e3b9f67f6df4ff7587902e76540dbce", "score": "0.58251506", "text": "@Override\n\tpublic void nadar() {\n\t}", "title": "" }, { "docid": "8a25055bb85939ca272f2502bebb1975", "score": "0.5821266", "text": "private Public() {\n\t\tsuper(\"PUBLIC\");\n\t}", "title": "" }, { "docid": "0ccd1a94868b2a5e1981c87bb769fb7a", "score": "0.5816494", "text": "private AmigoUtil() {\r\n\t}", "title": "" }, { "docid": "4218376ad671a7e613b2d401e5484e2d", "score": "0.58134294", "text": "@Override\n\t\t\tpublic void accept(Visitor visitor) {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5812744", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "dc1657290d0ea23e425359ba9180d2df", "score": "0.58059996", "text": "void mo1443a() {\n }", "title": "" }, { "docid": "7ebeba1e8e017bd5c5f35e3441ce9e41", "score": "0.580242", "text": "public void mo25886s() {\n }", "title": "" }, { "docid": "b7e98de900f4657495e91d5ff4bd6bd6", "score": "0.5800399", "text": "@Override\r\n\tpublic void init(){\r\n\t}", "title": "" }, { "docid": "284ac07ef82f773c595770328b9c243a", "score": "0.57980627", "text": "private UnsagaModCore(){\n\n\t}", "title": "" }, { "docid": "26f5f5a2b6aec189e64599f0c469c2c2", "score": "0.5797554", "text": "private Transformations() {\n }", "title": "" }, { "docid": "e4ec072a8b16e284aebf85d28ec89ef5", "score": "0.57971495", "text": "public void mo5203c() {\n }", "title": "" } ]
b0d83c2233dacacb1e3359755dd493be
This method was generated by MyBatis Generator. This method returns the value of the database column B_RS_RY.IPJYQSDZ
[ { "docid": "f1ab54dd91fefe355dff3bc0463feb21", "score": "0.5684447", "text": "public String getIpjyqsdz() {\n return ipjyqsdz;\n }", "title": "" } ]
[ { "docid": "b843feb28f1cff252984174880ab3f88", "score": "0.5932302", "text": "public JYYXQ getJYYXQ() {\n return jYYXQ;\n }", "title": "" }, { "docid": "22735a8e040e0c8741751807838aa40d", "score": "0.5731355", "text": "public static Object $$$StrINDRPBESTVORSetupColumnId(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPBESTVORSetup\",4));\n }", "title": "" }, { "docid": "fae77e36cf74af8d005991d8590fb10f", "score": "0.5425241", "text": "public org.tempuri.ReturnExTable getGetYbJsjgFdjjResult() {\r\n return getYbJsjgFdjjResult;\r\n }", "title": "" }, { "docid": "c02c3a8939c8216840927d006967af7a", "score": "0.5410409", "text": "public String getPosZ() {\n/* 328 */ return \"SELECT POSZ FROM COINS WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "1dfeee9530865ab4d58854c94fb29b94", "score": "0.5350531", "text": "public static Object $$$StrINANGPKQuantityOfColli(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",19));\n }", "title": "" }, { "docid": "ef140b21c39b6720f698148e1f8d9d3c", "score": "0.52867186", "text": "public static Object $$$StrINDRPDEMANDShippedQuantity(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",26));\n }", "title": "" }, { "docid": "74eab76a597caf395b5e53e710ab9413", "score": "0.52767026", "text": "public String getJP_Yayoi_DrAcct () \n\t{\n\t\treturn (String)get_Value(COLUMNNAME_JP_Yayoi_DrAcct);\n\t}", "title": "" }, { "docid": "255b4e245d8f4c1a66a19191d58fd052", "score": "0.52484024", "text": "public static Object $$$StrINANGPKRebate(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",7));\n }", "title": "" }, { "docid": "0ee355f3703ad0974ec6cf0199717e40", "score": "0.5241427", "text": "public int getJP_Yayoi_DrAmt () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_JP_Yayoi_DrAmt);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "edbf08a90cf677dd65c8d13b4f5892d2", "score": "0.5240427", "text": "public String getPosXYZ() {\n/* 268 */ return \"SELECT POSX, POSY, POSZ FROM COINS WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "8d86141408bbd405141830563696fa83", "score": "0.52173656", "text": "public String getIpjyjsdz() {\n return ipjyjsdz;\n }", "title": "" }, { "docid": "b7c9c31d843900cdacfa2528555c361e", "score": "0.52082074", "text": "public static Object $$$StrINDRPSYSManualPlanRuleQ(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPSYS\",46));\n }", "title": "" }, { "docid": "321a6886c6446119ec33e8da87eb81f7", "score": "0.52071", "text": "public static Object $$$StrINDRPUMVZWPickedAt(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",17));\n }", "title": "" }, { "docid": "205185571316eb22d170c5cbc27e46f1", "score": "0.5202311", "text": "public static Object $$$StrINANGPKExchangeRate(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",78));\n }", "title": "" }, { "docid": "c00cbc8b39d55c929a5d27ae478d4de3", "score": "0.51890624", "text": "public static Object $$$StrINANGPKVAT(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",21));\n }", "title": "" }, { "docid": "1968c778915dea62146310d02815b571", "score": "0.5187931", "text": "public java.lang.String getUnExcuteBrbqJyyzResult() {\r\n return unExcuteBrbqJyyzResult;\r\n }", "title": "" }, { "docid": "108c809fb2005427af2075735796cbd7", "score": "0.5184673", "text": "public String getZoneId() {\n/* 100 */ return \"SELECT ZONEID FROM COINS WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "e0875008e1b1a3d898d71fb0203f6222", "score": "0.5172172", "text": "public static Object $$$StrINDRPUMVZWLocation(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",null,1));\n }", "title": "" }, { "docid": "488eff1e2f03bd2726459fb54c4548a2", "score": "0.51649624", "text": "public static Object $$$StrINDRPBESTVORMinLIOrderQty(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPBESTVOR\",41));\n }", "title": "" }, { "docid": "13d3f161af56eb435cf032148bebab5c", "score": "0.51597595", "text": "public static Object $$$StrINDRPDEMANDDateShipped(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",61));\n }", "title": "" }, { "docid": "549aca18744ea83041e7ccb94e401080", "score": "0.51413316", "text": "public static Object $$$StrINWEAUFVORColliPerQuantity(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INWEAUFVOR\",3));\n }", "title": "" }, { "docid": "bd238e7b0298e6ef9c079631ca66627b", "score": "0.51304984", "text": "public static Object $$$StrINDRPSYSCalculateATP(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPSYS\",39));\n }", "title": "" }, { "docid": "d948da63102e91c9f3b9e2854e812e0f", "score": "0.51164204", "text": "public static Object $$$StrINDRPUMVZWTargetQuantity(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",5));\n }", "title": "" }, { "docid": "ebcd21e5508588ef8d60e932f60dc5ca", "score": "0.5114063", "text": "public static Object $$$StrINDRPARAPrintInColumn(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPARA\",39));\n }", "title": "" }, { "docid": "6280ea0ae3707c9629c924d94a0af0c6", "score": "0.5113554", "text": "public String getSizeY() {\n/* 434 */ return \"SELECT SIZEY FROM COINS WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "597ba99268f967d8227b480b560c547b", "score": "0.50978374", "text": "public final String mo4982Fj() {\n int i;\n AppMethodBeat.m2504i(128704);\n String str = \",\";\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(this.ddx);\n stringBuffer.append(str);\n stringBuffer.append(this.ddc);\n stringBuffer.append(str);\n stringBuffer.append(this.ddd);\n stringBuffer.append(str);\n if (this.ddY != null) {\n i = this.ddY.value;\n } else {\n i = -1;\n }\n stringBuffer.append(i);\n stringBuffer.append(str);\n stringBuffer.append(this.ddz);\n stringBuffer.append(str);\n stringBuffer.append(this.ddA);\n stringBuffer.append(str);\n stringBuffer.append(this.cVR);\n stringBuffer.append(str);\n stringBuffer.append(this.ddB);\n stringBuffer.append(str);\n stringBuffer.append(this.ddC);\n stringBuffer.append(str);\n stringBuffer.append(this.dbX);\n String stringBuffer2 = stringBuffer.toString();\n mo74164VX(stringBuffer2);\n AppMethodBeat.m2505o(128704);\n return stringBuffer2;\n }", "title": "" }, { "docid": "fd42da6a6f4865449aea695f984d2718", "score": "0.509472", "text": "public static Object $$$StrINDRPUMLKWEmployee(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMLKW\",3));\n }", "title": "" }, { "docid": "13d9df961f08b36709f1fdfdaaf6a8ad", "score": "0.50927633", "text": "public static Object $$$StrINDRPARAPrintInColumn6(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPARA\",51));\n }", "title": "" }, { "docid": "adedacc5d0de510015860452406625cd", "score": "0.508071", "text": "public static Object $$$StrINDRPUMVZWDemand1(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",12));\n }", "title": "" }, { "docid": "616e024b449ac9880486ac5acba2f9d2", "score": "0.5077194", "text": "public static Object $$$StrINANGPKSurchargeDiscount(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",5));\n }", "title": "" }, { "docid": "3630ffa28335b1bd899ce7528786081e", "score": "0.50763637", "text": "public static Object $$$StrINAUFLAYBYLevySourceRecord(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INAUFLAYBY\",18));\n }", "title": "" }, { "docid": "272dd9824aadfcb59af272a1be9fa471", "score": "0.5075775", "text": "public static Object $$$StrINDRPUMVZWItemNo(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",3));\n }", "title": "" }, { "docid": "b229436e10ed6499077810ef0b991c0e", "score": "0.5075366", "text": "public static Object $$$StrINDRPARAPrintInColumn17(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPARA\",190));\n }", "title": "" }, { "docid": "1df6f6fceddaf56a5f7b1085b3befc33", "score": "0.50734687", "text": "public String mo25495q() {\n return this.f15093I;\n }", "title": "" }, { "docid": "8dcc1eb829e229aa65fa0d446a1456c7", "score": "0.5070849", "text": "public static Object $$$StrINKUNDEBankCode2(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INKUNDE\",116));\n }", "title": "" }, { "docid": "48eb36b6c075066b1895b8149109545e", "score": "0.50640464", "text": "public static Object $$$StrINDRPARAPrintInColumn2(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPARA\",43));\n }", "title": "" }, { "docid": "508f2b64df9e2d5271e5d04018c5b5fd", "score": "0.505367", "text": "public static Object $$$StrINDRPUMVZWPickedFrom(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",18));\n }", "title": "" }, { "docid": "b87d52a8d13b8dae0ff18f38f088dfe2", "score": "0.5053409", "text": "public String getPosXY() {\n/* 280 */ return \"SELECT POSX, POSY FROM COINS WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "bdf071c75521085c343196a7405b0f39", "score": "0.5048175", "text": "public static Object $$$StrINDRPUMVZWStockLocation(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",1));\n }", "title": "" }, { "docid": "8472cfb8a916f636b415a3b633162f65", "score": "0.5041574", "text": "public char getSj() {\n\t\treturn this.sj;\n\t}", "title": "" }, { "docid": "319c280192776b207c541545122ed59e", "score": "0.50415134", "text": "public static Object $$$StrINDRPUMVZWDemand(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",null,2));\n }", "title": "" }, { "docid": "0a44796d2cbe6707c6b563dc9830f6ec", "score": "0.5039079", "text": "public static Object $$$StrINDRPARAPrintInColumn4(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPARA\",47));\n }", "title": "" }, { "docid": "745d7efc68d129ba4e1c8f6363dcaee1", "score": "0.5030578", "text": "public static Object $$$StrINANGPZDownPayment(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPZ\",1));\n }", "title": "" }, { "docid": "6641f19e98bce65363b51f5ed4bfc905", "score": "0.5029672", "text": "public static Object $$$StrINANGPKPriceForeignCurrency(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",68));\n }", "title": "" }, { "docid": "0c88ae5b3ae371c191e684834fcc1d02", "score": "0.5024342", "text": "public static Object $$$StrINDRPUMVZWOrder1(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",13));\n }", "title": "" }, { "docid": "9a37dcdfefd487d13a94fb0d02d10b26", "score": "0.50229853", "text": "public static Object $$$StrINDRPUMVZWPickSequence(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",2));\n }", "title": "" }, { "docid": "78b9922ea8ec254d78f3735cc2bf763e", "score": "0.50197905", "text": "public String getSizeZ() {\n/* 446 */ return \"SELECT SIZEZ FROM COINS WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "31de7235a82a590f6140370f04f28313", "score": "0.50187176", "text": "public static Object $$$StrINDRPUMVZWPickedQuantity(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",16));\n }", "title": "" }, { "docid": "369456026eedfdbb7de093cdca518e29", "score": "0.5013438", "text": "public static Object $$$StrINAUFPXLDRPIDNo(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INAUFPXL\",200));\n }", "title": "" }, { "docid": "8f58040f47044ca870ad37069c69d34b", "score": "0.5013337", "text": "public static Object $$$StrINDRPDEMANDFREE136(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",136));\n }", "title": "" }, { "docid": "ea4a68993272ed3f4c1ea37f376e2239", "score": "0.5012549", "text": "public static Object $$$StrINDRPARAPrintInColumn7(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPARA\",53));\n }", "title": "" }, { "docid": "6912612ba9fb62e5517c2cd27b7be5fd", "score": "0.5005691", "text": "public static Object $$$StrINANGPKShippingInstruction(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",71));\n }", "title": "" }, { "docid": "d670e5f9c1a22f647e575192a6ac1842", "score": "0.50039494", "text": "public static Object $$$StrINIssueCustomerID(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INIssue\",22));\n }", "title": "" }, { "docid": "b598d07a301e6743db11c78a6f43d333", "score": "0.5000117", "text": "public static Object $$$StrINDRPARAPrintInColumn8(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPARA\",55));\n }", "title": "" }, { "docid": "8ccaaba515227e2e6c08bcf092778c35", "score": "0.49912268", "text": "public static Object $$$StrINANGPKFreightCondition(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",15));\n }", "title": "" }, { "docid": "7e299028eaecc66121fe1748d6c01bc8", "score": "0.4990105", "text": "public String getPosY() {\n/* 316 */ return \"SELECT POSY FROM COINS WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "84d71c16d03fa90b2fd81a013edbcca3", "score": "0.49874896", "text": "public String getPosX() {\n/* 292 */ return \"SELECT POSX FROM COINS WHERE WURMID=?\";\n/* */ }", "title": "" }, { "docid": "8979b1be2644022f3a710b8d0513960b", "score": "0.49797228", "text": "public final String mo4982Fj() {\n int i;\n AppMethodBeat.m2504i(128684);\n String str = \",\";\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(this.ddx);\n stringBuffer.append(str);\n stringBuffer.append(this.ddc);\n stringBuffer.append(str);\n stringBuffer.append(this.ddd);\n stringBuffer.append(str);\n if (this.ddN != null) {\n i = this.ddN.value;\n } else {\n i = -1;\n }\n stringBuffer.append(i);\n stringBuffer.append(str);\n stringBuffer.append(this.ddz);\n stringBuffer.append(str);\n stringBuffer.append(this.ddA);\n stringBuffer.append(str);\n stringBuffer.append(this.cVR);\n stringBuffer.append(str);\n stringBuffer.append(this.ddB);\n stringBuffer.append(str);\n stringBuffer.append(this.ddC);\n stringBuffer.append(str);\n stringBuffer.append(this.dbX);\n String stringBuffer2 = stringBuffer.toString();\n mo74164VX(stringBuffer2);\n AppMethodBeat.m2505o(128684);\n return stringBuffer2;\n }", "title": "" }, { "docid": "00d04e609b0694b5f9eec188395590b0", "score": "0.4977916", "text": "public static Object $$$StrINDRPDEMANDFREE138(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",138));\n }", "title": "" }, { "docid": "bb629db85680dccb4cdd37fda4ca6479", "score": "0.4976502", "text": "public static Object $$$StrINDRPDEMANDFREE148(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",148));\n }", "title": "" }, { "docid": "fe27b5134de054da70802f8eed4d3cd3", "score": "0.49761307", "text": "private static String getResultSetValue(ResultSet rs, int index) throws SQLException {\n Object obj = rs.getObject(index);\n return (obj == null) ? null : convertUtilsBean.convert(obj);\n }", "title": "" }, { "docid": "442a05e33f6ce905e2ec93be63081799", "score": "0.49702692", "text": "public static Object $$$StrINDRPSUPPLYDateShipped(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPSUPPLY\",61));\n }", "title": "" }, { "docid": "09467b871783cb591d5d29b1fccbbb78", "score": "0.49668166", "text": "public static Object $$$StrINDRPSYSNegATPOutsideLeadTime(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPSYS\",36));\n }", "title": "" }, { "docid": "f5dc8560881f66b578c1c4589570a2a2", "score": "0.49661282", "text": "public static Object $$$StrINAUFLAYBYExpiryDate(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INAUFLAYBY\",13));\n }", "title": "" }, { "docid": "cccf4f1c1f150f204f1cebf73b9c2c5c", "score": "0.4961481", "text": "public StrColumn getPdbxSiftsXrefDbRes() {\n return delegate.getColumn(\"pdbx_sifts_xref_db_res\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "a7e88459d37e4f0f73689fd9ca63d905", "score": "0.49578464", "text": "public static Object $$$StrINDRPDEMANDQuantity(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",5));\n }", "title": "" }, { "docid": "de5962eba420b4a142fa722c3f7e6248", "score": "0.495681", "text": "public static Object $$$StrINFIBBUCHTaxID(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INFIBBUCH\",18));\n }", "title": "" }, { "docid": "3e9430e1ef1c7b0f5f8d8291d8b88b95", "score": "0.49536735", "text": "public static Object $$$StrINERECHPayeeBankCode(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INERECH\",102));\n }", "title": "" }, { "docid": "ebdf6adc2167d76cbc141276dbfed1cd", "score": "0.4952698", "text": "public static Object $$$StrINDRPDEMANDSourcedQuantity(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",80));\n }", "title": "" }, { "docid": "d8b0f30741195f16fd65d6f5593b5196", "score": "0.49521855", "text": "public static Object $$$StrINDRPUMVZWRequestingLocation(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",7));\n }", "title": "" }, { "docid": "b01dcb3ad4b2398e270f3915698e02c8", "score": "0.49512485", "text": "public static Object $$$StrINANGPKInputVATPurchase(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",30));\n }", "title": "" }, { "docid": "22f81377beca8462ff7bad281d757bc2", "score": "0.49496356", "text": "public static Object $$$StrINDRPBESTVORFREE7(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPBESTVOR\",48));\n }", "title": "" }, { "docid": "88da469a1910d4e3321207e1c12471ed", "score": "0.49493065", "text": "public static Object $$$StrINKUNDEBankCode1(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INKUNDE\",106));\n }", "title": "" }, { "docid": "d6a011bc0622f1bcc35e7475a3d58d29", "score": "0.4949172", "text": "public static Object $$$StrINWEAUFVORExchangeRate(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INWEAUFVOR\",111));\n }", "title": "" }, { "docid": "63f10a3afbe10ad12970ecf093ea25d2", "score": "0.49481675", "text": "public static Object $$$StrINKONDbisErfassungstag(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INKOND\",9));\n }", "title": "" }, { "docid": "63f159d8f970655f9d833ae8273bdfd2", "score": "0.4947522", "text": "public static Object $$$StrINDRPDEMANDFREE137(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",137));\n }", "title": "" }, { "docid": "49361f4f0b6547aeda59474abf6354d3", "score": "0.49457142", "text": "public static Object $$$StrINDRPDEMANDPlannedShippingDate(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",40));\n }", "title": "" }, { "docid": "717412ac63f33a71c1102551c2c72150", "score": "0.4941161", "text": "public static Object $$$StrINDRPUMVZWItemName(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPUMVZW\",4));\n }", "title": "" }, { "docid": "222248b3cb153dc47d9e55bed570e7b5", "score": "0.493627", "text": "public static String getDbValue(ResultSet rs, String columnName) {\n String retVal = \"\";\n \n try {\n Object o = rs.getObject(columnName);\n if (o != null)\n retVal = o.toString();\n }\n catch (SQLException e) {\n throw new RuntimeException(\"Unable to get result set value for column '\" + columnName + \"'\");\n }\n \n return retVal;\n }", "title": "" }, { "docid": "d6a7f219dd8e6b8148cf0db1de6a43c6", "score": "0.49361083", "text": "@Override\n\t\t\tpublic String mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\treturn rs.getString(\"fk_country\");\n\t\t\t}", "title": "" }, { "docid": "24c87ce71033d081c2379e46de9b5d4d", "score": "0.49336278", "text": "public int getResourceID()\n {\n return myRow.getIntColumn(\"resource_id\");\n }", "title": "" }, { "docid": "0e0f5df37c56bc23d5a1b4c85810360a", "score": "0.49332178", "text": "public static Object $$$StrINDRPBESTVORFREE8(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPBESTVOR\",49));\n }", "title": "" }, { "docid": "45d88e0399e6df7c37bf7b36dc9868b1", "score": "0.4929494", "text": "public static Object $$$StrINANGPKQuotationNumber(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",null,1));\n }", "title": "" }, { "docid": "e0c3ffb61bfd82f4158f8832df0e9126", "score": "0.4928725", "text": "public static Object $$$StrINAUFLAYBYPostCode(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INAUFLAYBY\",5));\n }", "title": "" }, { "docid": "fd686c997074f8c7dcac512490b4a811", "score": "0.49250174", "text": "public static Object $$$StrINANGPQuantityColli(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGP\",130));\n }", "title": "" }, { "docid": "7ab8e1404da0a56c435cf4427f6b1c34", "score": "0.49222198", "text": "public static Object $$$StrINKUNDEKRCustomerNo(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INKUNDEKR\",null,1));\n }", "title": "" }, { "docid": "406d024d2c33c1157bc09b8f597d36b6", "score": "0.49201596", "text": "public static Object $$$StrINDRPBESTVORFREE6(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPBESTVOR\",47));\n }", "title": "" }, { "docid": "05a141a6f86ac12c78ab7fc1808d7bfb", "score": "0.49200976", "text": "public static Object $$$StrINDRPARAPrintInColumn1(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPARA\",41));\n }", "title": "" }, { "docid": "60f66f0ec7549fd9bbc20012d1d3b0e1", "score": "0.4919028", "text": "public static Object $$$StrINDRPSUPPLYPlannedShipDate(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPSUPPLY\",40));\n }", "title": "" }, { "docid": "25a19a2297cd63be310edea551d3750a", "score": "0.4918032", "text": "public static Object $$$StrINDRPDEMANDFREE145(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",145));\n }", "title": "" }, { "docid": "08cc6d97701085766c0a2758789d1ed0", "score": "0.49128804", "text": "public String mo45537v() {\n return this.f42612Q;\n }", "title": "" }, { "docid": "1fc789372c9d6d515ac6975b7d79f322", "score": "0.49114248", "text": "public String getJyxm() {\n return jyxm;\n }", "title": "" }, { "docid": "3f4be488494d0eb3227e573af9f4b8f6", "score": "0.49111468", "text": "public static Object $$$StrINANGPKRebateDays(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",9));\n }", "title": "" }, { "docid": "fd19d6e5388f2de0af91f88227f4f34a", "score": "0.49077266", "text": "public java.lang.String getOjdbc() {\n return ojdbc;\n }", "title": "" }, { "docid": "13956e5b14602ca6aa152ece687624a7", "score": "0.49064985", "text": "public static Object $$$StrINKONDbisErfassungstag1(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INKOND\",12));\n }", "title": "" }, { "docid": "067b103c2f838410aa64030f69223657", "score": "0.49062783", "text": "public static Object $$$StrINWEAUFColliPerQuantity(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INWEAUF\",3));\n }", "title": "" }, { "docid": "874983a59fe3bf8784bd1bb62bfd4e28", "score": "0.4906201", "text": "public static Object $$$StrINANGPKDeliveryQuantityFullLot(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INANGPK\",18));\n }", "title": "" }, { "docid": "9c0fb9597815d64a67affb7b47aec765", "score": "0.490602", "text": "public static Object $$$StrINDRPARAPrintInColumn18(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPARA\",199));\n }", "title": "" }, { "docid": "1b5522e4f49ba4e49503c4be9934ae88", "score": "0.4905776", "text": "public static Object $$$StrINAUFPTDRPIDNo(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INAUFPT\",200));\n }", "title": "" }, { "docid": "63310a9b716e37ceed3fedaa5be0e3b1", "score": "0.4905371", "text": "public static Object $$$StrINDRPDEMANDFREE129(mContext m$) {\n return (m$.fnc$(\"COMConst.GetPropertyName\",\"INDRPDEMAND\",129));\n }", "title": "" } ]
40c86c5d88c519ee1c58b92023d7403b
Resources allocated to mongos hosts. .yandex.cloud.mdb.mongodb.v1.Resources resources = 2;
[ { "docid": "c65d33cb164692c8382f7c793e7ceba3", "score": "0.0", "text": "public Builder clearResources() {\n if (resourcesBuilder_ == null) {\n resources_ = null;\n onChanged();\n } else {\n resources_ = null;\n resourcesBuilder_ = null;\n }\n\n return this;\n }", "title": "" } ]
[ { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7299066", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7299066", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7299066", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7299066", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7299066", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.729769", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7297622", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7297622", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7297622", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7297622", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "9fb93f1c3cba3e5720617dbf6b44f2f5", "score": "0.7297622", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.64683485", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.6467646", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.646498", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.646498", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.646498", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.646498", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "ff2636bc102c992e6230ebd114b911b9", "score": "0.646498", "text": "yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.ResourcesOrBuilder getResourcesOrBuilder();", "title": "" }, { "docid": "b5cda832cee16213be99c0ad03f0dee1", "score": "0.62308997", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.6049735", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.6049735", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.6049735", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.6049735", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.6049735", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60491794", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60491794", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60491794", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60491794", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60491794", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" }, { "docid": "8f84d0569bc396b551054177ca09752a", "score": "0.60482806", "text": "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources getResources() {\n return resources_ == null ? yandex.cloud.api.mdb.mongodb.v1.ClusterOuterClass.Resources.getDefaultInstance() : resources_;\n }", "title": "" } ]
562817fba2581815bf6689c11d098f59
Check if the move may be performed.
[ { "docid": "7b1ee5c66b086af9bb08e4ffbd147d27", "score": "0.0", "text": "public boolean check(Pack source, Card card);", "title": "" } ]
[ { "docid": "61f485ee765e7ca80b96d68dd6ba2183", "score": "0.7909075", "text": "public boolean canMove()\r\n {\n return true;\r\n }", "title": "" }, { "docid": "f17a476b5d815b100a98ff1721b5cdab", "score": "0.7908492", "text": "@Override\n public boolean canMove() {\n return move;\n }", "title": "" }, { "docid": "48ea4df4be39c1ec5007f17c5745ff85", "score": "0.7871744", "text": "private boolean isMove() {\r\n return jumpPossible() || movePossible();\r\n }", "title": "" }, { "docid": "930e41df30293017b4fdcef8dc92f9f9", "score": "0.78007036", "text": "boolean hasMove();", "title": "" }, { "docid": "f5d293ec741a1854d32ee6f871adffb1", "score": "0.775034", "text": "boolean legalMove(Move mov) {\n //FIXME\n return true;\n }", "title": "" }, { "docid": "c092aede50ff560c4d2c8073fb81e8fd", "score": "0.7743403", "text": "private boolean isMove() {\n return false; // FIXME\n }", "title": "" }, { "docid": "ebff903e3e553d3d916614d4e00189f4", "score": "0.7640775", "text": "protected boolean isMove() {\n return false;\n }", "title": "" }, { "docid": "02dc30aa4afcf97daf97577188da978d", "score": "0.75681955", "text": "public boolean isMove()\r\n\t{\r\n\t\treturn moveX >= 0 && moveY >= 0;\r\n\t}", "title": "" }, { "docid": "4f2b71e30550ad2853ac93bb3ce86a2a", "score": "0.7374353", "text": "public boolean isMoveRunning();", "title": "" }, { "docid": "b5e362b9480bfcefa2a2af7b15e33de5", "score": "0.72942746", "text": "public boolean canMove()\r\n {\r\n Grid<Actor> gr = getGrid();\r\n if ( gr == null ) \r\n {\r\n return false;\r\n }\r\n Location loc = getLocation();\r\n Location next = loc.getAdjacentLocation( getDirection() );\r\n Location after = next.getAdjacentLocation( getDirection() );\r\n if ( !gr.isValid( after ) )\r\n { \r\n return false;\r\n }\r\n \r\n Actor neighbor = gr.get( after );\r\n if ( neighbor instanceof Edible )\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return neighbor == null;\r\n }\r\n }", "title": "" }, { "docid": "007318d02d866ee88a82878b40cd0028", "score": "0.7283086", "text": "public boolean verifyMove() {\n\t\tif(checkDirection() && (checkConnectivity() || board.firstMove) && checkDictionary()) {\n\t\t\tlockTiles();\n\t\t\tacross = false;\n\t\t\tdown = false;\n\t\t\tdirection = \"\";\n\t\t\t\n\t\t\tif(board.firstMove) {\n\t\t\t\tboard.firstMove = false;\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "bc776039c0d9ab8fb3d268dd33ebc60c", "score": "0.72795147", "text": "public abstract boolean canMove(int x, int y);", "title": "" }, { "docid": "e2257db3e0ed629001d8a24aaa1ae530", "score": "0.72594947", "text": "public boolean hasAlreadyPerformedMove() {\n return alreadyPerformedMove;\n }", "title": "" }, { "docid": "dcdcde61ab41b7cd59d13fd9302b55d2", "score": "0.7214466", "text": "public boolean isLegalMove() {\n return iterator().hasNext();\n }", "title": "" }, { "docid": "dcdcde61ab41b7cd59d13fd9302b55d2", "score": "0.7214466", "text": "public boolean isLegalMove() {\n return iterator().hasNext();\n }", "title": "" }, { "docid": "20cb78252cb154f7b1ca00ec623ffa5d", "score": "0.72100276", "text": "public boolean shoudMove()\n\t{\n\t\treturn shoudMove;\n\t}", "title": "" }, { "docid": "6e6f81c8386457f0b4182d3383f64e1f", "score": "0.71682835", "text": "public boolean hasMove() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "d4c48e19037521e3a07aabfeb2825406", "score": "0.71280676", "text": "public boolean doMove();", "title": "" }, { "docid": "c857eb977e0751deeb571266ad93e770", "score": "0.71244895", "text": "boolean hasMoveData();", "title": "" }, { "docid": "b0bebc8f7c5744b521069adaefb000cc", "score": "0.7099694", "text": "public boolean shouldContinueExecuting() {\n if (this.field_220864_a.getNavigator().noPath()) {\n return false;\n } else {\n return this.field_220864_a.getAttackTarget() == null && !this.field_220866_c.withinDistance(this.field_220864_a.getPositionVec(), (double)(this.field_220864_a.getWidth() + (float)this.field_220868_e)) && !this.field_220869_f;\n }\n }", "title": "" }, { "docid": "8ba9ff06d4ee50e2ca086ad335fec717", "score": "0.7098795", "text": "public boolean hasMove() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "title": "" }, { "docid": "c74386a401fc914656c309ab62781a4d", "score": "0.70854944", "text": "public boolean possibleMoves() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fbcf62ab46057102f3940dd0bb42de60", "score": "0.70811594", "text": "public abstract boolean isValidMove(Move move);", "title": "" }, { "docid": "1ce556f811b929eb9813ffaf3a9ca186", "score": "0.7067398", "text": "public abstract boolean moveable();", "title": "" }, { "docid": "311f828dd246dd20244a68f0e51d15cf", "score": "0.70046705", "text": "@Override\r\n\tpublic boolean isLegalMove(int row, int col, char move) {\r\n\t\tboolean isMoveLegal = true;\r\n\t\treturn isMoveLegal;\r\n\t}", "title": "" }, { "docid": "5038c9856f77a56fe645fe01d6f9d294", "score": "0.7003226", "text": "boolean isLegal(Move move) {\n if (_turn == EMP) {\n return false;\n } else if (move == null) {\n return false;\n } else if (pieceCountAlong(move) != move.length()) {\n return false;\n } else if (blocked(move)) {\n return false;\n }\n return move != null;\n }", "title": "" }, { "docid": "9bde5e38450d09715a9997952398e7fa", "score": "0.6992338", "text": "private boolean moveWillLeaveInCheck(Position position) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c867a007a958df6e2e8a4b9933805c40", "score": "0.69919515", "text": "boolean isLegal(Move move) {\n if (move == null) {\n return false;\n }\n if (move.length() != pieceCountAlong(move)) {\n return false;\n }\n if (blocked(move)) {\n return false;\n }\n int c = move.getCol0();\n int r = move.getRow0();\n if (get(c, r) != _turn) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "18980654e55670c5317d07fdcccd991f", "score": "0.69857484", "text": "protected abstract boolean doneMoveAction();", "title": "" }, { "docid": "46022924514f416c1ba47bc6d428dcf8", "score": "0.697348", "text": "boolean legalMove(Move mov) {\r\n if (mov.isJump()) {\r\n return checkJump(mov, false);\r\n } else {\r\n if (jumpPossible()) {\r\n return false;\r\n }\r\n if (_whoseMove == WHITE && mov.row0() == '5') {\r\n return false;\r\n }\r\n if (_whoseMove == BLACK && mov.row0() == '1') {\r\n return false;\r\n }\r\n if (_board[mov.fromIndex()] != _whoseMove) {\r\n return false;\r\n }\r\n if (_board[mov.toIndex()] != EMPTY) {\r\n return false;\r\n }\r\n if (_whoseMove == WHITE && mov.row1() < mov.row0()) {\r\n return false;\r\n }\r\n if (_whoseMove == BLACK && mov.row1() > mov.row0()) {\r\n return false;\r\n }\r\n if (abs(mov.col0() - mov.col1()) > 2\r\n || abs(mov.row0() - mov.row1()) > 2) {\r\n return false;\r\n }\r\n if (abs(mov.col0() - mov.col1()) + abs(mov.row0()\r\n - mov.row1()) == 3) {\r\n return false;\r\n }\r\n if (mov.row0() != mov.row1() && mov.col0() != mov.col1()\r\n && mov.fromIndex() % 2 == 1) {\r\n return false;\r\n }\r\n for (int i = moveList.size() - 1; i >= 0; i--) {\r\n Move prevMove = moveList.get(i);\r\n if (mov.fromIndex() == prevMove.fromIndex()\r\n || (mov.fromIndex() == prevMove.toIndex()\r\n && mov.toIndex() != prevMove.fromIndex())) {\r\n return true;\r\n }\r\n if (mov.fromIndex() == prevMove.toIndex()\r\n && mov.toIndex() == prevMove.fromIndex()) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "99853325a22ef3176ff18cb4717159ef", "score": "0.6958742", "text": "protected abstract boolean move();", "title": "" }, { "docid": "da0faa34d4777b60709c19705c778602", "score": "0.6953067", "text": "@Override\r\n public boolean canMove()\r\n {\r\n Grid<Actor> gr = getGrid();\r\n if (gr == null)\r\n return false;\r\n Location loc = getLocation();\r\n Location next = loc.getAdjacentLocation(getDirection());\r\n if (!gr.isValid(next))\r\n return false;\r\n Actor neighbor = gr.get(next);\r\n\r\n return ((neighbor == null) || (neighbor instanceof Food)) || !(neighbor instanceof Monster);\r\n }", "title": "" }, { "docid": "80ff687b5e942fc7a3005ef64a66bd5d", "score": "0.694236", "text": "public boolean isLegalMove(int row, int column) {\n if (isEmptyHorizontalMove(row, column) || isEmptyVerticalMove(row, column)) { \n return true; \n }\n return false; \n }", "title": "" }, { "docid": "0dfcb835dd064540445b6d9eafa52857", "score": "0.69270116", "text": "@Override\n\tpublic boolean isMoveLegal(int currX, int currY, int nextX, int nextY) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "12da87cdfb96a72ac17772e2902eec88", "score": "0.6915399", "text": "private boolean canContinueRunning()\r\n\t{\r\n\t\tboolean status = false;\r\n\t\tif (moveDirection == Direction.LEFT)\r\n\t\t\tstatus = carPosition.get() >= ROAD_END ? false : true;\r\n\t else\r\n\t\t status = carPosition.get() <= 0 ? false : true;\r\n\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "1b7509fd874186027b27e22890a96aa8", "score": "0.69124097", "text": "public boolean move(Move move) {\n if (!legalMoves().contains(move)) {\n // don't do anything if move isn't legal\n // NOTE: might choose to remove this check when\n // code that is using board class is verified\n // to not give illegal moves - this will\n // improve performance\n return false;\n }\n\n // pass on move after verifying that move is legal\n moveNoCheck(move);\n return true;\n }", "title": "" }, { "docid": "2277db754572deb2e21c70a0a75fc709", "score": "0.6911067", "text": "boolean isKingNotAbleToMoveOutOfCheck() {\n\t\treturn findAllSafeMoveLocations().isEmpty();\n\t}", "title": "" }, { "docid": "0b0dd170b6c18184a451ef4d1b5668ad", "score": "0.68740416", "text": "public void checkMoveDuringTurn() throws DefeatException {\n if (Arrays.equals(currentPlayer.getWorker(workerID).getPosition(), startingPosition))\n throw new DefeatException(currentPlayer.getUsername());\n }", "title": "" }, { "docid": "c603ccc341a7b6a3d95e31ee406dce67", "score": "0.6868573", "text": "@Override\n protected boolean isFinished() {\n return !RobotMap.ELEV_MOVING;\n }", "title": "" }, { "docid": "372a59376e53d445914b66b4dd9d8059", "score": "0.6857527", "text": "boolean check_move() {\n boolean matches = false;\n if (user_sequence[current_move] == level_sequence[current_move])\n matches = true;\n return matches;\n }", "title": "" }, { "docid": "616204f1ab743029988576470d547c5c", "score": "0.6833624", "text": "private boolean isMoveValid(Move move) throws PositionOutOfGridException\r\n\t{\r\n\t\tCar movedCar = this.cars.get(getCarFromFrontPosition(move.getFrontOfMovedCar()));\r\n\t\tif (movedCar == NULL)\r\n\t\t\treturn false;\r\n\r\n\t\tDirection directionOfMovedCar = movedCar.getCarDirection();\r\n\t\tif (move.getAxis()==Axis.HORIZONTAL)\r\n\t\t{\r\n\t\t\tint nbOfCaseMoved = move.numberOfCaseMoved(Axis.HORIZONTAL);\r\n\t\t\tif (nbOfCaseMoved != 0)\r\n\t\t\t{\r\n\t\t\t\treturn (isSegmentFree(nbOfCaseMoved, directionOfMovedCar, move));\r\n\t\t\t}\r\n\t\t\telse return false;\r\n\t\t}\r\n\t\telse if (move.getAxis()==Axis.VERTICAL)\r\n\t\t{\r\n\t\t\tint nbOfCaseMoved = move.numberOfCaseMoved(Axis.VERTICAL);\r\n\t\t\tif (nbOfCaseMoved != 0)\r\n\t\t\t{\r\n\t\t\t\treturn (isSegmentFree(nbOfCaseMoved, directionOfMovedCar, move));\r\n\t\t\t}\r\n\t\t\telse return false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "a497920cd7f46c8a4ff0dcbd68f1bc02", "score": "0.68289715", "text": "public boolean isMovementLegal(final Movement theMove) {\n\t\tObjects.requireNonNull(theMove, \"Movements must be non-null!\");\n\t\treturn myTiles.containsKey(myCurrTile.getPointForMovement(theMove));\n\t}", "title": "" }, { "docid": "86cfe4a3c03b09e544216ad23b0fb5ef", "score": "0.6818178", "text": "private boolean movePossible() {\n\t\tif(horizontalMergePossible() || verticalMergePossible()) {\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn !(getNonEmptyTiles().size() == cells.size());\n\t\t}\n\t}", "title": "" }, { "docid": "f49ba23e6c6e73a58811dfe558ab3534", "score": "0.68154824", "text": "boolean canMoveByHand();", "title": "" }, { "docid": "1ae54f1ed7f2abc539d8c43833d4888c", "score": "0.68068355", "text": "@Override\r\n\tpublic boolean canMove(int x, int y) {\n\t\treturn (Math.abs(x) <= 1 && Math.abs(y) <= 1);\r\n\t}", "title": "" }, { "docid": "ddc14e8aea10bed79cfb1819c8ba5f2f", "score": "0.6796565", "text": "@Override\n boolean canDoMovement(Board board, int goToX, int goToY) {\n return false;\n }", "title": "" }, { "docid": "ac5844672d4bda5062edb3b7b16d4128", "score": "0.67562205", "text": "public boolean canMoveTo(Direction dir) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4e93e05105982e381ca9f40ed23c189e", "score": "0.67456967", "text": "@Override\n public boolean isOver() {\n return getPossibleMoves().isEmpty();\n }", "title": "" }, { "docid": "ddca6253ab2e389a60a29161b18e9540", "score": "0.6743265", "text": "boolean canUndoMove() {\n return this.pastBoards.size() != 0;\n }", "title": "" }, { "docid": "9c013cb3b87da8883c156c3d6c79a44b", "score": "0.6736994", "text": "protected boolean isPossibleMove(Move move)\n\t{\n\t\t// Check if on start position is a piece.\n\t\t// Check if the end position is free.\n\t\tPiece piece = getPiece(move.getStart());\n\t\tif(piece==null || !isFreePosition(move.getEnd()))\n\t\t\treturn false;\n\n\t\tint turn = piece.isWhite()? 1: -1;\n\t\tint xs = move.getStart().getX();\n\t\tint ys = move.getStart().getY();\n\t\tint xe = move.getEnd().getX();\n\t\tint ye = move.getEnd().getY();\n\n\t\t// Check if normal move and check if jump move.\n\t\tboolean normalmove = ((xe-xs)*turn==1 && ye-ys==0) || ((ye-ys)*turn==1 && xe-xs==0);\n\t\tPosition xin = new Position(xs+turn, ys);\n\t\tPosition yin = new Position(xs, ys+turn);\n\t\tboolean jumpmove = ((xe-xs)*turn==2 && ye-ys==0 && !isFreePosition(xin) && getPiece(xin).isWhite()!=piece.isWhite())\n\t\t\t|| ((ye-ys)*turn==2 && xe-xs==0 && !isFreePosition(yin) && getPiece(yin).isWhite()!=piece.isWhite());\n\t\tif(!normalmove && !jumpmove)\n\t\t\treturn false;\n\t\t/*if(!(((xe-xs)*turn==1 && ye-ys==0) || ((ye-ys)*turn==1 && xe-xs==0))\n\t\t\t&& !(((xe-xs)*turn==2 && ye-ys==0 && isFreePosition(new Position(xs+turn, ys)))\n\t\t\t|| ((ye-ys)*turn==2 && xe-xs==0 && isFreePosition(new Position(xs, ys+turn)))))\n\t\t\treturn false;*/\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a6439b696f63ea972af1cd4797a8afcb", "score": "0.6730199", "text": "@Override\n public int[] canMove() {\n int[] legalMoveArr = checkLegality(canMoveBishopRookQueen(2));\n return legalMoveArr;\n }", "title": "" }, { "docid": "c990ed359ee8dc41d24084522ee6b394", "score": "0.6719711", "text": "private boolean canMove(Position position) {\n\t\tChessPiece p = (ChessPiece)getBoard().piece(position);\n\t\t// verificar se a peca p nao é nula, ou seja existe a peca ali, OU se nao é uma peca adversária. \n\t\treturn p == null || p.getColor() != getColor();\n\t}", "title": "" }, { "docid": "98b7d04f0e31653a98a67709da794011", "score": "0.67170763", "text": "public static boolean isMoving() {\n return false; // sVirtualScreenManager != null && sVirtualScreenManager.isMoving();\n }", "title": "" }, { "docid": "2e20f4ec27ddecb86c2e406da5135f85", "score": "0.6705953", "text": "public boolean isWaitingMove() {\n if(waitingMoveThread != null)\n return waitingMoveThread.isWaiting();\n return false;\n }", "title": "" }, { "docid": "1f4f08f61e70adfa9e592073674c5dc5", "score": "0.6704305", "text": "boolean legalMoveAI(Move mov) {\r\n if (mov.isJump()) {\r\n return checkJumpAI(mov, false);\r\n } else {\r\n if (_whoseMove == WHITE && mov.row0() == '5') {\r\n return false;\r\n }\r\n if (_whoseMove == BLACK && mov.row0() == '1') {\r\n return false;\r\n }\r\n if (_board[mov.fromIndex()] != _whoseMove) {\r\n return false;\r\n }\r\n if (_board[mov.toIndex()] != EMPTY) {\r\n return false;\r\n }\r\n if (_whoseMove == WHITE && mov.row1() < mov.row0()) {\r\n return false;\r\n }\r\n if (_whoseMove == BLACK && mov.row1() > mov.row0()) {\r\n return false;\r\n }\r\n if (abs(mov.col0() - mov.col1()) > 2\r\n || abs(mov.row0() - mov.row1()) > 2) {\r\n return false;\r\n }\r\n if (abs(mov.col0() - mov.col1()) + abs(mov.row0()\r\n - mov.row1()) == 3) {\r\n return false;\r\n }\r\n if (mov.row0() != mov.row1() && mov.col0() != mov.col1()\r\n && mov.fromIndex() % 2 == 1) {\r\n return false;\r\n }\r\n for (int i = moveList.size() - 1; i >= 0; i--) {\r\n Move prevMove = moveList.get(i);\r\n if (mov.fromIndex() == prevMove.fromIndex()\r\n || (mov.fromIndex() == prevMove.toIndex()\r\n && mov.toIndex() != prevMove.fromIndex())) {\r\n return true;\r\n }\r\n if (mov.fromIndex() == prevMove.toIndex()\r\n && mov.toIndex() == prevMove.fromIndex()) {\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "4178365d7c14f3c3c79e8574b50664e9", "score": "0.6697892", "text": "public boolean move(){\n System.out.println(\"Warcaby: ruch \" + moves);\n return ++moves != MOVES; //!!!!!!!!! E\n }", "title": "" }, { "docid": "f7037310d6dc40adc88bfa076cbd6003", "score": "0.66951764", "text": "public boolean turnOnMove();", "title": "" }, { "docid": "f7037310d6dc40adc88bfa076cbd6003", "score": "0.66951764", "text": "public boolean turnOnMove();", "title": "" }, { "docid": "8aea51a1ec4e77969ac0da0d8de1af55", "score": "0.6684521", "text": "private boolean isSafeMove(int row, int col)\n\t{\n\t\t//This method just calls all the checks (diagonals and left of the row), if they're true, then true\n\t\tif(checkLeft(row, col) && checkLowerDiag(row, col) && checkUpperDiag(row, col))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "9523e710040c4c8b31f93eaa83eff9f5", "score": "0.6683558", "text": "@Override\n\tpublic void checkMove()\n\t{\n\t\tif(canMove())\n\t\t{\n\t\t\tint xMove = 0;\n\t\t\tint yMove = 0;\n\n\t\t\t// To revert back to original position if position outside bounds.\n\t\t\tint tempX = getLocation().getX();\n\t\t\tint tempY = getLocation().getY();\n\n\t\t\tKeyInputListener keyInputListener = getGame().getKeyInputListener();\n\t\t\tif (keyInputListener.downKey)\n\t\t\t\tyMove = speed;\n\t\t\tif (keyInputListener.upKey)\n\t\t\t\tyMove = -speed;\n\t\t\tif (keyInputListener.leftKey)\n\t\t\t\txMove = -speed;\n\t\t\tif (keyInputListener.rightKey)\n\t\t\t\txMove = speed;\n\n\t\t\tgetLocation().setX(getLocation().getX() + xMove);\n\n\t\t\tif (collides(false) && !GameSettings.levelBuildMode)\n\t\t\t{\n\t\t\t\tgetLocation().setX(tempX);\n\t\t\t\txMove = 0;\n\t\t\t}\n\n\t\t\tgetLocation().setY(getLocation().getY() + yMove);\n\n\t\t\tif (collides(false) && !GameSettings.levelBuildMode)\n\t\t\t{\n\t\t\t\tgetLocation().setY(tempY);\n\t\t\t\tyMove = 0;\n\t\t\t}\n\n\t\t\tmoving = yMove != 0 || xMove != 0;\n\n\t\t\tif (getGame().getCurrentLevel().getGameCamera().moveGameCamera(this))\n\t\t\t{\n\t\t\t\tgetGame().getCurrentLevel().getGameCamera().move(xMove, yMove);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6802937444b58555bc8f0264137ca3e9", "score": "0.6669619", "text": "public boolean isValidMove(Point check) {\n \tif (!isValidMoveBasic(check)) return false;\n \tComputerAgent temp = agentGrid.get(check);\n \tif (temp != null && temp.isMoveable()) {\n \t\tDirection dir = player.getDirection();\n \t\tPoint bol;\n \t\tswitch (dir) {\n\t\t\tcase LEFT:\n\t\t\t\tbol = new Point(check.x-1, check.y);\n\t\t\t\tif (!isValidMoveBoulder(bol)) return false;\n\t\t\t\tbreak;\n\t\t\tcase RIGHT:\n\t\t\t\tbol = new Point(check.x+1, check.y);\n\t\t\t\tif (!isValidMoveBoulder(bol)) return false;\n\t\t\t\tbreak;\n\t\t\tcase UP:\n\t\t\t\tbol = new Point(check.x, check.y-1);\n\t\t\t\tif (!isValidMoveBoulder(bol)) return false;\n\t\t\t\tbreak;\n\t\t\tcase DOWN:\n\t\t\t\tbol = new Point(check.x, check.y+1);\n\t\t\t\tif (!isValidMoveBoulder(bol)) return false;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n \t}\n \treturn true;\n }", "title": "" }, { "docid": "fe907b248bd62f74449b81466afbc799", "score": "0.6664543", "text": "@Override\n protected boolean canMove(int playerIdx) {\n return playerIdx == currState.getWhoseTurn();\n }", "title": "" }, { "docid": "859f321ec6e64a076cc474bdc7955bdf", "score": "0.66597277", "text": "@Override\n public boolean isValidMove(int arg) {\n // Setting up movement direction to be checked\n int colMove = 0;\n int rowMove = 0;\n if (arg == GestureDetectGridView.SWIPE_DIRECTION_ARG.get(\"Up\")) {\n rowMove = -1;\n } else if (arg == GestureDetectGridView.SWIPE_DIRECTION_ARG.get(\"Down\")) {\n rowMove = 1;\n } else if (arg == GestureDetectGridView.SWIPE_DIRECTION_ARG.get(\"Left\")) {\n colMove = -1;\n } else if (arg == GestureDetectGridView.SWIPE_DIRECTION_ARG.get(\"Right\")) {\n colMove = 1;\n }\n // Return true if a non-empty box is found that can be moved into an empty space\n for (int row = 0; row < boardSize; row++) {\n for (int col = 0; col < boardSize; col++) {\n if (0 <= row + rowMove && row + rowMove < boardSize && 0 <= col + colMove && col + colMove < boardSize) {\n int curExponent = board.getBox(row, col).getExponent();\n int adjExponent = board.getBox(row + rowMove, col + colMove).getExponent();\n if (curExponent != 0 && (adjExponent == 0 || curExponent == adjExponent)) {\n return true;\n }\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "55c0f8e5aa783bd85092eefa71668139", "score": "0.66557145", "text": "@Override\n\tpublic boolean validMove(int x, int y) {\n\t\treturn (World.getTile(x, y).IsWalkable && \n\t\t\t\tMath.abs(x - Location.x) <= 1 && \n\t\t\t\tMath.abs(y - Location.y) <= 1);\n\t}", "title": "" }, { "docid": "af86825433373b1899b22645b48b4b12", "score": "0.6645374", "text": "@Override\n public boolean isLegalCaptureMove(int row, int column) {\n return isLegalNonCaptureMove(row, column);\n }", "title": "" }, { "docid": "68ec23384f095011d9bce63a9730dd2e", "score": "0.6639722", "text": "public boolean shouldExecute() {\n this.func_220861_j();\n return this.func_220862_g() && this.func_220863_h() && this.field_220864_a.getAttackTarget() == null;\n }", "title": "" }, { "docid": "317bb2a8cd6fa622650a6c8874e26b6c", "score": "0.66336024", "text": "private boolean checkIfValidMove(Position fromP, Position toP) {\n if (!curP.validateMove(game.getSquare(fromP).getPosition(), toP)) {\n System.out.println(\"That piece cannot move there, please \" +\n \"select a highlighted position\");\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "538e547d5ee858f390b5cffe76d3acba", "score": "0.6622754", "text": "@Test\r\n\tpublic void testMove() {\r\n\t\tboolean checkWork = false;\r\n\t\ttry {\r\n\t\t\tboolean manual = false;\r\n\t\t\trobot.move(1, manual);\r\n\t\t\tcheckWork = true;\r\n\t\t} catch(Exception e) {\r\n\t\t\tassert false;\r\n\t\t\tcheckWork = false;\r\n\t\t}finally {\r\n\t\t\tassertTrue(checkWork);\r\n\t\t}\r\n\t\t\r\n\t\tassertTrue(robot.batteryLev == 2495.0f);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2745659791ee7a7b237f7fc2d803f18c", "score": "0.66135657", "text": "public boolean shouldExecute()\r\n\t{\r\n\t\treturn this.theOcelot.isTamed() && !this.theOcelot.isSitting() && this.theOcelot.getRNG().nextDouble() <= 0.006500000134110451D && this.findTargetCoords();\r\n\t}", "title": "" }, { "docid": "836267a3cc91458e1a1632c0694ffbcb", "score": "0.6608401", "text": "public boolean canJump() {\n\t\tif (this.getActionPoints() == 0)\n\t\t\treturn false;\n\t\tif (this.getDirection() > Math.PI && this.getDirection() < Math.PI*2)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "985cb2981a7b0b316da2949bda867bdd", "score": "0.6598558", "text": "public boolean isSolvable() { return moves != -1; }", "title": "" }, { "docid": "9f3c316dfb7b04321615c8074c0cc880", "score": "0.6594117", "text": "public abstract boolean canMoveTo(ChessBoard chessBoard, CommonMove proposedMove);", "title": "" }, { "docid": "c24b5761e6645204ecb34570efb738dd", "score": "0.65870404", "text": "public boolean move() {\n boolean validMove = false;\n if (positions == null) {\n return validMove;\n }\n if (getCellValue(currentRow, currentColumn) == 0) {\n positions[currentRow][currentColumn] |= CLIENT_PLAYER;\n validMove = true;\n }\n return validMove;\n }", "title": "" }, { "docid": "c905d1a5bfcdcbb196bbecefe802d49e", "score": "0.6586065", "text": "private boolean isValidMove(float x, float y){\n //System.out.println(x);\n return !(x < 0 || x > WIDTH-1 || y < 0 || y > HEIGHT-1);\n }", "title": "" }, { "docid": "ebb0b7f3dc8a80ccf56984a57f77b568", "score": "0.6584148", "text": "public boolean canMove(int i, int j) {\n \treturn basicCheck(i,j) && straight(i,j) && noLeap(i, j) && validPos(i, j);\n }", "title": "" }, { "docid": "a98ccd56cb40d0c70a9611af9012ac8d", "score": "0.6576732", "text": "public boolean movementAllowed() {\n if (this.dx == -1) {\n if (map[this.y][this.x - 1].getWall()) {\n return false;\n }\n } else if (this.dx == 1) {\n if (map[this.y][this.x + 1].getWall()) {\n return false;\n }\n } else if (this.dy == -1) {\n if (map[this.y - 1][this.x].getWall()) {\n return false;\n }\n } else if (this.dy == 1) {\n if (map[this.y + 1][this.x].getWall()) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "8ca32fa983a847593791140742b17fef", "score": "0.65669274", "text": "public void moveIfWaiting() {\n\t\tlong time = System.currentTimeMillis();\n\t\tif (this.waitingMouseMove != null) {\n\t\t\tthis.onMouseMoveNow(waitingMouseMove, time, false);\n\t\t\treturn;\n\t\t}\n\t\tif (this.waitingTouchMove != null) {\n\t\t\tthis.onTouchMoveNow(waitingTouchMove, time, false);\n\t\t}\n\t}", "title": "" }, { "docid": "6c3c23a37d71de6b983c0f4fdd202b62", "score": "0.6560274", "text": "public boolean canMoveFrom(Direction dir) {\n\t\treturn true;\n\t}", "title": "" }, { "docid": "6262f15d5f260913c9b369c33873dfe3", "score": "0.65583116", "text": "private boolean validateMove(int move){\n\t\tboolean isLegal = false;\n\t\tif(move >= 0 && move < board.length && board[move] == 0)\n\t\t\tisLegal = true;\n\t\treturn isLegal;\n\t}", "title": "" }, { "docid": "5d7cbe4aeaf5f376c38d8ff51f473023", "score": "0.6555358", "text": "private boolean cannotMove() {\n\t\tfor (int i = 1; i <= bins; i++) {\n\t\t\tif (players[currentPlayer][i] > 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "78513ab56fa4bfbfe2a80ee507c0e9e0", "score": "0.6553214", "text": "public boolean move();", "title": "" }, { "docid": "77ecf9ad9e8d056afbe8c233f603b7f3", "score": "0.6543836", "text": "public boolean canMove(Direction dir)\n throws GameActionException\n {\n if (!rc.canMove(dir))\n {\n return false;\n }\n MapLocation next = rc.getLocation().add(dir);\n if (next.distanceSquaredTo(enemyHQ) < RobotType.HQ.attackRadiusSquared)\n {\n return false;\n }\n for (int i = 0; i < enemyTowers.length; i++)\n {\n if (next.distanceSquaredTo(enemyTowers[i]) < RobotType.TOWER.attackRadiusSquared)\n {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "6fddb62f57a0c81478c84ed8bfeb7e04", "score": "0.65274596", "text": "@Override\n\tpublic void hasMoved(Move m) {\n\n\t}", "title": "" }, { "docid": "bc09013d1caf3b9f44052e8dafa57d0f", "score": "0.6523384", "text": "private boolean checkValidMove(Point point) {\n int row = (int)point.getX();\n int col = (int)point.getY();\n int emptyRow = (int)getEmptySpace().getX();\n int emptyCol = (int)getEmptySpace().getY();\n\n if (row < 0 || row >= puzzle.getDimensions()) {\n return false;\n }\n\n if (row != emptyRow && row != emptyRow + 1 && row != emptyRow - 1) {\n return false;\n }\n\n if (col < 0 || col >= puzzle.getDimensions()) {\n return false;\n }\n\n if (col != emptyCol && col != emptyCol + 1 && col != emptyCol - 1) {\n return false;\n }\n\n if (row != emptyRow && col != emptyCol) {\n return false;\n }\n\n if (row == emptyRow && col == emptyCol) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "f9c00a22b0960588a1525883c875bee5", "score": "0.6521311", "text": "public boolean noMoreMoves() {\r\n\t\tif (noValidMovesCount == 2) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c1b8eb4c86002c2f67c5ac3b023748b8", "score": "0.65161735", "text": "public boolean trainCanMove() {\r\n \t\tif (locomotive == null)\r\n \t\t\treturn false;\r\n \t\tif (carriages.size() == 0)\r\n \t\t\treturn true;\r\n \t\treturn locomotive.power() > getTotalWeigth();\r\n \t}", "title": "" }, { "docid": "27bb140e6a06d6db8f7dbb170c2c9d47", "score": "0.65109134", "text": "private boolean canMove(int direction, int numSteps) {\n\t\tif(this.hasMoved) { // can only move once\n\t\t\treturn false;\n\t\t} else if(this.isFighting) { // if fighting, can't move where another critter exists\n\t\t\tif(numSteps == WALK) {\n\t\t\t\tif(look(direction, WALK))\n\t\t\t\t\treturn false;\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t} else if(numSteps == RUN){\n\t\t\t\tif(look(direction, RUN))\n\t\t\t\t\treturn false;\n\t\t\t\telse\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3db94c5b73fb03a757788ab8891a7927", "score": "0.6510771", "text": "void maybeMove() {\n if (currentFloor == ElevatorControlSystem.MAX_FLOOR) {\n return;\n }\n\n // If in Moving state\n if (currentServingPickupRequest != null) {\n if (currentDestination > currentFloor) {\n currentDirection = Direction.UP;\n currentFloor ++;\n }\n else if (currentDestination < currentFloor) {\n currentDirection = Direction.DOWN;\n currentFloor --;\n }\n }\n }", "title": "" }, { "docid": "874fa393c3b7e709da74b0e0475e5cba", "score": "0.6508387", "text": "public boolean checkMove(int move) {\r\n if (move < Util.NORTH || move > Util.WEST) {\r\n return false;\r\n }\r\n if (gameMap[player.getX()][player.getY()] instanceof Mob) {\r\n player.setAlive(false);\r\n // Controller.deadGame(\"Slime\");\r\n }\r\n int newX = Util.newX(player.getX(), move);\r\n int newY = Util.newY(player.getY(), move);\r\n if (newX < 0 || newY < 0 || newX >= mapWidth \r\n || newY >= mapHeight || gameMap[newX][newY] instanceof Wall) {\r\n return false;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "45bc4c12e740f8be9e534f997f78a1a4", "score": "0.6504316", "text": "@Override\n public boolean isValidMove(CardStack stack)\n {\n return false;\n }", "title": "" }, { "docid": "d2790deb65b63eabfd44094e987323b3", "score": "0.64997077", "text": "@Override\n\tpublic boolean isValidMove(int col) {\n\t\treturn !isColumnFull(col);\n\t}", "title": "" }, { "docid": "1dbe4cabd47aac9cc8f9861b4aaffeea", "score": "0.6499277", "text": "boolean canMove(GridLocation locationToTest);", "title": "" }, { "docid": "90e12a7fe979e6ee19cf9bf1adc7e60a", "score": "0.6498781", "text": "public abstract void isCapturePossible(Coordinate from, Coordinate to) throws InvalidMoveException;", "title": "" }, { "docid": "2690e4a46c96841d0e2d03fa0652a22b", "score": "0.64954185", "text": "boolean move();", "title": "" }, { "docid": "0118db5b3395b39d31873d380b0e37f9", "score": "0.6494062", "text": "public boolean hasMoves() {\n\t\treturn !history.isEmpty();\n\t}", "title": "" }, { "docid": "f575c94a8b2607783b9a069f2ff0e631", "score": "0.6491557", "text": "public boolean shouldExecute()\n {\n if (this.theEntity.isWithinHomeDistanceCurrentPosition())\n {\n return false;\n }\n else\n {\n ChunkCoordinates var1 = this.theEntity.getHomePosition();\n Vec3 var2 = RandomPositionGenerator.findRandomTargetBlockTowards(this.theEntity, 16, 7, this.theEntity.worldObj.getWorldVec3Pool().getVecFromPool((double)var1.posX, (double)var1.posY, (double)var1.posZ));\n\n if (var2 == null)\n {\n return false;\n }\n else\n {\n this.movePosX = var2.xCoord;\n this.movePosY = var2.yCoord;\n this.movePosZ = var2.zCoord;\n return true;\n }\n }\n }", "title": "" }, { "docid": "f1fe89e9d1489ccb087af81f23a46672", "score": "0.64824367", "text": "static boolean tryMove( Direction dir )\n throws GameActionException\n {\n\tif( tryMove( dir, 20, 3 ) )\n\t {\n\t\tm_direction_history.push_back( dir );\n\t\tm_location_history.push_back( m_location );\n\t\tm_location = rc.getLocation();\n\t\treturn true;\n\t }\n\treturn false;\n }", "title": "" }, { "docid": "976843e0e63f800fb9805c8c4c4d02c6", "score": "0.6474532", "text": "public void noValidMoves() {\r\n\t\tnoValidMovesCount++;\r\n\t}", "title": "" }, { "docid": "a6a5d66d694479a759ad093cb039b14c", "score": "0.6470441", "text": "public boolean canMove(Location space)\r\n\t{\r\n\t\t\t\r\n\t\tGrid<Actor> gr = getGrid();\r\n\t\tif (gr == null)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tif(!gr.isValid(space))\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tArrayList<Location> moves = listValidMoves();\r\n\t\tfor(int iCounter = 0; iCounter < moves.size(); iCounter++)\r\n\t\t{\r\n\t\t\tif (moves.get(iCounter).equals(space))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "41cf28a63298528bd5a0649514411fbe", "score": "0.64644766", "text": "public boolean moveCheck() {\n coords = activeShape.shapeCoordinates();\n //check if board position is filled below shape\n for (int i = 0; i < 4; i++) {\n int xPosition = (int) coords.get(i).x;\n int yPosition = (int) coords.get(i).y + 1; //checking the position below\n //see if the position below is filled\n if (xPosition >= 0 && xPosition < 10 && yPosition >= 0) {\n if (board[xPosition][yPosition] == 1) {\n return false;\n }\n }\n }\n return true; //none of the board position below are taken\n }", "title": "" }, { "docid": "bfe52ba20682162f7ba795099ed78ed0", "score": "0.646284", "text": "@Override\r\n\tpublic boolean canMoveThrough(){\r\n\t\treturn false;\r\n\t}", "title": "" } ]
d4b9fe22bcb166d5a421de3320e88565
Prints the board to console.
[ { "docid": "b436cc3940034eacec214579b402bcfc", "score": "0.7559732", "text": "public void print() {\n\t\tfor ( int i = 0; i < board.length; i++ )\n {\n for ( int j = 0; j < board[i].length; j++ )\n {\n String s = board[i][j].toString() + \" \";\n System.out.print( s );\n }\n System.out.println( \"\" );\n }\n System.out.println( \"Score: \" + score );\n\t}", "title": "" } ]
[ { "docid": "c1a03bb7107466704c3e285b92cb28b1", "score": "0.85031545", "text": "private void printGameBoard() {\n System.err.println(\"\\n\" + board + \"\\n\");\n }", "title": "" }, { "docid": "f25d7be3b80988f904f6ed52f30c3d54", "score": "0.8468683", "text": "public void printBoard()\n {\n System.out.println(this.board.printBoard());\n }", "title": "" }, { "docid": "a0e6b5ac3ab70b53b1876249270f3150", "score": "0.84459627", "text": "public static void printBoard() {\n System.out.println(\" \" + board[0] + \" | \" + board[1] + \" | \" + board[2] + \"\\n===+===+===\\n\" + \" \" + board[3] + \" | \" + board[4] + \" | \" + board[5] + \"\\n===+===+===\\n\" + \" \" + board[6] + \" | \" + board[7] + \" | \" + board[8] + \"\\n\"); // print all the board cells\n }", "title": "" }, { "docid": "0003d369b4ab075ef568933afdc9eddd", "score": "0.8277203", "text": "public void printBoard() {\r\n for (int i = 0; i < BOARD_WIDTH; i++)\r\n {\r\n for (int j = 0; j < BOARD_HEIGHT; j++)\r\n {\r\n System.out.print(board[i][j] + \" \");\r\n }\r\n System.out.print(\"\\n\");\r\n }\r\n System.out.println();\r\n }", "title": "" }, { "docid": "07c21c1fcb6a55859c44f5ff4cf7a3ba", "score": "0.8247116", "text": "private void printBoard()\r\n\t{\r\n\t\tfor (int y = 0; y < drawingBuffer[0].length; y++)\r\n\t\t{\r\n\t\t\tfor (int x = 0; x < drawingBuffer.length; x++)\r\n\t\t\t{\r\n\t\t\t\tprint(drawingBuffer[x][y].toString());\r\n\t\t\t}\r\n\t\t\tprintln();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4ddabacfa8513a71925125c914385bd6", "score": "0.821142", "text": "public void printBoard();", "title": "" }, { "docid": "e3ddec443ecca09d39b4ec587fe499e2", "score": "0.8083767", "text": "public void printBoard() {\n for (int i = 0; i < BOARD_LENGTH; i++) {\n for (int j = 0; j < BOARD_LENGTH; j++) {\n System.out.print(board[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println(\"--------\");\n System.out.println(\"1 2 3 4\");\n }", "title": "" }, { "docid": "8fdec60c1a4788ee6036e3384538568e", "score": "0.8018062", "text": "public void printBoard() {\r\n System.out.println(\"\\r\\n\" + \" \\t1\\t2\\t3\");\r\n for (int row = 0; row < board.length; row++) {\r\n String output = (char)('a' + row) + \"\\t\";\r\n for (int column = 0; column < board[0].length; column++) {\r\n if (board[row][column] == BLANK) {\r\n output += \" \\t\";\r\n } else if (board[row][column] == X_MOVE) {\r\n output += \"X\\t\";\r\n } else if (board[row][column] == O_MOVE) {\r\n output += \"O\\t\";\r\n }\r\n }\r\n System.out.println(output);\r\n }\r\n }", "title": "" }, { "docid": "93ec198d8de42735863d7ae0e0574c8d", "score": "0.8000373", "text": "public void printBoard() {\n for (int i = 0; i < height; i++) {\n out.print(i + \":\\t\");\n for (int j = 0; j < width; j++) {\n out.print(board[i][j] + \"\\t\");\n }\n out.println(\"\");\n }\n out.println(\"\");\n }", "title": "" }, { "docid": "bd5ce60208aa950f96c7c811473fbd6b", "score": "0.79808503", "text": "public void printBoard() {\r\n System.out.println(\"My board is: \" + tokens);\r\n\r\n }", "title": "" }, { "docid": "8b29dfb7814a444c591cb921fad883eb", "score": "0.7975797", "text": "public void printBoard() {\n\t\tfor (int c = 0; c < board.length; c++) {\n\t\t\tfor (int i = 0; i < board[c].length; i++) {\n\t\t\t\tSystem.out.print(board[c][i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "title": "" }, { "docid": "d8b7e64e1b3a38777a6f24db33361cdb", "score": "0.79666364", "text": "void printBoard() {\r\n\t\tfor (int i = 0; i < board.length; i++) {\r\n\t\t\tSystem.out.println();\r\n\t\t\tfor (int j = 0; j < board[0].length; j++) {\r\n\t\t\t\tSystem.out.print(board[i][j]);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "5eaf4bdc8cdf2f82ef8fe04e9bca3ccc", "score": "0.79473674", "text": "public void print()\n\t{\n\t\tfor(int i = 0; i < this.yDim; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < this.xDim; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(board[i][j] + \" \"); \n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "80a58c1b5cc41f51ff2be7b4e543bf13", "score": "0.7946188", "text": "public void printBoard() {\n\t\t//same print style from the game of life\n\t\tSystem.out.print(\" \");\n\t\tfor (int col = 1; col <= numcols; col++) {\n\t\t\tif (col/10 > 0) {\n\t\t\t\tSystem.out.print(col/10);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\" \");\n\t\tfor (int col = 1; col <= numcols; col++) {\n\t\t\tSystem.out.print(col%10);\n\t\t}\n\t\tSystem.out.println();\n\t\tfor (int row = 1; row <= numrows; row++) {\n\t\t\tif (row < 10) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(row + \": \");\n\t\t\tfor (int col = 1; col <= numcols; col++) {\n\t\t\t\tSystem.out.print(board[row][col]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "556ae2543d9cea37d26fa691acc65151", "score": "0.7888023", "text": "public void print()\n {\n\t\n for(int r=0; r<ROW; r++)\n {\n for(int c=0; c<COL; c++)\n { \n System.out.print(gameBoard[r][c]);\n }\n System.out.println();\n } \n System.out.println();\n }", "title": "" }, { "docid": "bd161857558e98cbab23008eb02a9a18", "score": "0.7877608", "text": "public void printGameBoard() {\r\n\r\n System.out.println(\" -----------------\");\r\n\r\n for (int i = 0; i < NOF_ROWS; i++) {\r\n\r\n System.out.print(\" | \");\r\n\r\n for (int j = 0; j < NOF_COLS; j++) {\r\n\r\n System.out.print(this.playBoard[i][j] + \" \");\r\n\r\n }\r\n System.out.println(\"| \");\r\n\r\n }\r\n System.out.println(\" -----------------\");\r\n\r\n }", "title": "" }, { "docid": "d68df13b34235e4ca4dc3d9ed888a411", "score": "0.7840113", "text": "public static void printBoard() {\n\t\tSystem.out.println(\"\\nChess board w/Solution:\");\n\t\tSystem.out.println(\"----------------------\\n\");\n\t\tSystem.out.print(\"Column #: \");\n\t\tfor (int c=0; c<NCOLS; c++) {\n\t\t\tSystem.out.printf(\" %1d \", c);\n\t\t}\n\t\tfor (int r=0; r<NROWS; r++) {\n\t\t\tSystem.out.printf(\"\\nRow #%1d: \", r);\n\t\t\tfor (int c=0; c<NCOLS; c++) {\n\t\t\t\tif (chessBoard[r][c]) {\n\t\t\t\t\tSystem.out.print(\" Q \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" _ \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "c1c62b45413f866681439212af859feb", "score": "0.77890396", "text": "public void printBoard()\n {\n System.out.println(\"------------------------------------------\");\n System.out.println(\"*| A | B | C | D | E | F | G | H |\");\n for (int i=0; i<8; i++)\n {\n System.out.println(\"------------------------------------------\");\n System.out.print(i+1);\n for (int j=0; j<8; j++)\n {\n switch (boardGame[i][j].getColor())\n {\n case \"noColor\":\n System.out.print(\"| \");\n break;\n case \"black\":\n System.out.print(\"| \\u25EF \");\n break;\n case \"white\":\n System.out.print(\"| \\u2B24 \");\n break;\n }\n }\n System.out.print(\"|\");\n System.out.println();\n }\n System.out.println(\"------------------------------------------\");\n }", "title": "" }, { "docid": "713ab20aa23070178d1a5f10010aa480", "score": "0.77832", "text": "void printBoard(Board board);", "title": "" }, { "docid": "666ab3a36a2d8f07602fb973242cb131", "score": "0.7765196", "text": "public void printBoard() {\n System.out.println(\"Turn \" + nowPlayer);\n System.out.println();\n System.out.println(\"Player 2(Black)\");\n System.out.println();\n System.out.println(\"\\t0\\t1\\t2\\t3\\t4\\t5\\t6\\t7\");\n for (int i = 7; i > -1; i--) {\n System.out.print(i + \"\\t\");\n for (int j = 0; j < 8; j++) {\n if (board[i][j] == null) {\n System.out.print(\"..\" + \"\\t\");\n } else {\n System.out.print(board[i][j].getSymbol() + board[i][j].getColor().substring(0, 1).toLowerCase() + \"\\t\");\n }\n }\n System.out.println();\n System.out.println();\n }\n System.out.println(\"Player 1(White)\");\n\n }", "title": "" }, { "docid": "626d095c7666b9d09f9a574eb07d9b70", "score": "0.7755834", "text": "public void printBoard() {\n System.out.print(\" \");\n for (int i = 0; i < 8; i++)\n System.out.printf(\"%d \", i);\n System.out.println();\n for (int i = 0; i < 8; i++) {\n for (int j = -1; j < 8; j++) {\n if (j == -1) {\n System.out.printf(\"%d \", i);\n continue;\n } else if (board[i][j] instanceof ChessPiece) {\n if (board[i][j].isObstacle)\n System.out.print(\"*\");\n else if (board[i][j].color == 0)\n System.out.print(\"+\");\n else\n System.out.print(\"-\");\n } else {\n System.out.print(\"o\");\n }\n if (j < 7)\n System.out.print(\" \");\n }\n System.out.println();\n }\n System.out.println();\n }", "title": "" }, { "docid": "5c87f76ce735c2c6b074de64565b4040", "score": "0.7749633", "text": "void printBoard()\n\t{\n\t\tSystem.out.println();\n\t\tfor(int i=1; i<=9; i++)\n\t\t{\n\t\t\tSystem.out.print(\" \"+A[i]+\" \");\n\t\t\tif(i%3!=0)\n\t\t\t\tSystem.out.print(\"|\");\n\t\t\tif(i==3 || i==6)\n\t\t\t\tSystem.out.println(\"\\n---+---+---\");\t\t\t\t\t\t\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t}", "title": "" }, { "docid": "9c6d67ea72416c61f8096692e0dbbfef", "score": "0.77344584", "text": "private void printBoard(){\n\t\tfor (int i = 0; 3 > i; i++){\n\t\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t\tfor (int j = 0; 3 > j; j++){\n\t\t\t\tSystem.out.print(Character.toString(board[i][j]) + \" \");\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\");\n\t\t\n\t}", "title": "" }, { "docid": "760d84e969a605f9342c1554aba86522", "score": "0.7719202", "text": "private void print() {\n\t\tString output = \"0,1,2,3,4,5,6\\n\";\n\t\tPiece[][] boardToOutput = board.currentBoard();\n\t\tfor (int i = 0; i < boardToOutput.length; i++) {\n\t\t\tfor (int j = 0; j < boardToOutput[i].length; j++) {\n\t\t\t\tif (boardToOutput[i][j].type() == Type.EMPTY) {\n\t\t\t\t\toutput += \" ,\";\n\t\t\t\t} else if (boardToOutput[i][j].type() == Type.CROSS) {\n\t\t\t\t\toutput += \"x,\";\n\t\t\t\t} else {\n\t\t\t\t\toutput += \"o,\";\n\t\t\t\t}\n\t\t\t}\n\t\t\toutput += \"\\n\";\n\n\t\t}\n\t\tinputOutput.output(output);\n\t}", "title": "" }, { "docid": "e78a17f0daaac1836711a290742a2fdf", "score": "0.7705283", "text": "private void printBoard() {\r\n\t for (int i = 0; i < 8; i++) {\r\n\t \tfor (int j = 0; j < 8; j++) {\r\n\t \t\tif (boardArray[i][j].getPiece() != null) {\r\n\t \t\t\tSystem.out.print(boardArray[i][j].getPiece().getName() + \"\\t\");\r\n\t \t\t} else {\r\n\t \t\tSystem.out.print(boardArray[i][j].getPiece() + \"\\t\");\r\n\t \t\t}\r\n\t \t} //j\r\n\t \tSystem.out.println();\r\n\t } //i\r\n\t \r\n\t}", "title": "" }, { "docid": "1bf8934aa131395b36bab9ecd286f3f1", "score": "0.76934206", "text": "public void printBoard() {\n for (int i = 0; i < row; i++) {\n String seprator = \"\";\n String boardLine = \"\";\n for (int j = 0; j < col; j++) {\n seprator += \"+------\";\n }\n\n seprator += \"+\";\n System.out.println(seprator);\n\n for (int k = 0; k < col; k++) {\n Piece currentPiece = this.get(col * i + k + 1).getState();\n String currentPos = currentPiece == null ? \"\" + (col * i + k + 1) : currentPiece.toString();\n\n boardLine += \"|\" + emptyStringGenerator(6 - currentPos.length());\n // System.out.println(\"this.get(i + j + 1): \" + (col * i + k + 1));\n\n boardLine += currentPos;\n }\n boardLine += \"|\";\n System.out.println(boardLine);\n\n if (i == row - 1) {\n System.out.println(seprator);\n }\n }\n }", "title": "" }, { "docid": "d556598bfb4a27b57c1283e1c4e45259", "score": "0.7686285", "text": "public void showBoard(){\n for(int i = 0; i<this.N; i++){\n System.out.print(\"|\");\n for(int j=0;j<this.N;++j){\n System.out.print(this.board[i][j] + \"|\");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "12890d4b32d740f34cf44483d40ead60", "score": "0.7672616", "text": "public void printBoard(Board board) {\n\t\tif (!active)\n\t\t\treturn;\n\n\t\tint[][] gameBoard = board.getBoard();\n\t\tfor (int r = board.height - 1; r >= 0; r--) {\n\t\t\tprintln(Arrays.toString(gameBoard[r]));\n\t\t}\n\t}", "title": "" }, { "docid": "6b1838e407fd4e8ecf738e5cd04c6482", "score": "0.7641724", "text": "public void printBoard() {\n for (Pit p : board) {\n System.out.println(p.getPlayer() + \" : \" + p.getStones());\n }\n }", "title": "" }, { "docid": "a25726a9c0e8404d7b8615ec3a376c1e", "score": "0.7636256", "text": "public void print(){\r\n int i,j;\r\n for (i = 0; i < 8; i++){\r\n for (j = 0; j < 8; j++)\r\n System.out.print(board[i][j]+\" \");\r\n System.out.println();\r\n }\r\n System.out.println(\"\\n\"+toFEN(true)+\"\\n\");\r\n }", "title": "" }, { "docid": "d914bea6d22f22b7f592dc478e38a1ce", "score": "0.7632995", "text": "public void printBoardToConsole(){\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n System.out.printf(\"[\" + (board[i][j].isAlive() ? 1 : 0) + \"] \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "e3f2223199df164af5cd7d95da53debe", "score": "0.76226014", "text": "public void print() {\n for (int i = 0; i < rows; i++) {\n for (int k = 0; k < columns; k++) {\n System.out.print(gameBoard[i][k] + \" \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "f3dfb290b726957927066d4fcab6b90e", "score": "0.7611371", "text": "public void displayGameBoard() {\n\t\t// Display the current state of the board but move it down the console to reduce screen clutter\n\t\tSystem.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"+\n\t\t\"Current Board\\n\"+\"---------------------------------------------------------\");\n\t\tSystem.out.println(\"\\n\"+Arrays.deepToString(gameBoard).replace(\"], \", \"\\n\").replace(\"[\", \"\").replace(\"]\", \"\").replaceAll(\",\",\"\"));\n\t}", "title": "" }, { "docid": "6570448d16535f268dbe438929fc3065", "score": "0.7607445", "text": "private static void printBoard(int[][] board) {\n \t\tint boardSize = board.length;\n \t\tSystem.out.println(\"\\nYour Magic Board is:\");\n \t\tSystem.out.print(\" \");\n \t\tfor (int i=0; i<(boardSize)*4-1; i++) {\n \t\t\tSystem.out.print(\"-\");\n \t\t}\n \t\tSystem.out.print(\"\\n\");\n \t\tfor (int i=0; i<board.length; i++) {\n \t\t\tSystem.out.print(\"| \");\n \t\t\tfor (int j=0; j< board[i].length; j++) {\n \t\t\t\t\n \t\t\t\tSystem.out.print(board[i][j]);\n \t\t\t\tif (j == board[i].length-1) {\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t\tSystem.out.print(\" \");\n \t\t\t}\n \t\t\tSystem.out.println(\" |\");\n \t\t\t\n \t\t\tif (i == board.length-1) {\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\telse\n \t\t\t\tSystem.out.println(\"\\n\");\n \t\t}\n \t\tSystem.out.print(\" \");\n \t\tfor (int i=0; i<=boardSize; i++) {\n \t\t\tSystem.out.print(\"---\");\n \t\t}\n \t\tSystem.out.print(\"\\n\\n\");\n \t}", "title": "" }, { "docid": "abbeea4fde9a1024eb72e48adc194067", "score": "0.7603149", "text": "public void printBoard()\n {\n board.printBoard();\n System.out.println(\"The case to solve is this: \" +\n murderDescription.getFullDescription()); \n }", "title": "" }, { "docid": "bf44adef5e67c697c0e22a8ed5e805bc", "score": "0.7600043", "text": "public static void printBoard()\n {\n\tSystem.out.println(\"\");\n\tfor(int i=0; i<board.length; i++){\n\t for(int j=0; j<board.length; j++){\n\t\t//Add vertical board dividers\n\t\tif (j==3 || j==6) {System.out.print(\"| \");}\n\t\t//Print 0 as a blank space\n\t\tif (board[i][j]==0) System.out.print(\" \");\n\t\telse System.out.print(board[i][j]+\" \"); \n\t }\n\t //Add horizontal board dividers\n\t if (i==2 || i==5) {System.out.print\n\t\t (\"\\n----------------------\");}\n\t System.out.println(\"\");\n\t}\n\tSystem.out.println(\"\");\n }", "title": "" }, { "docid": "12c417e701483e8f079c2afc1f80bca4", "score": "0.7587379", "text": "public void printOnScreen() {\r\n for (Square[] row : board) {\r\n for (Square square : row) {\r\n if (square.isEmpty()) {\r\n System.out.print(\" .\");\r\n } else if (square.isWhite()) {\r\n System.out.print(\" \" + square.getName().toUpperCase());\r\n } else {\r\n System.out.print(\" \" + square.getName().toLowerCase());\r\n }\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }", "title": "" }, { "docid": "4ab9598a391d0dfe5cff896838c19dc0", "score": "0.7571719", "text": "public void printBoard() {\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board.length; j++) {\n\n if(this.getTile(i,j).getTerrain() != null) {\n System.out.print(\" T \");\n }\n else if (this.getPiece(i,j) != null)\n System.out.print(this.getPiece(i,j).toString());\n else\n System.out.print(\" 0 \");\n }\n System.out.println();\n }\n System.out.println();\n }", "title": "" }, { "docid": "57e351c8dc0d5b561cde8356a54b5819", "score": "0.7563844", "text": "public void printBoard() {\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n System.out.print(board[i][j] + \" \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "6ce6dafe2e20c4880c844628f084ce8c", "score": "0.75616366", "text": "public void printBoard(Board board) {\n System.out.printf(\"%n\");\n System.out.println(\" 0 1 2\");\n for (int i = 0; i < 3; i++) {\n System.out.println(\" | | \");\n System.out.printf(\"%d \", i);\n for (int j = 0; j < 3; j++) {\n if (j != 0) {\n System.out.print(\"|\");\n } else {\n System.out.print(\"\");\n }\n Position position = new Position(i, j);\n String cellString = getCellString(board, position);\n System.out.print(cellString);\n System.out.print(\"\");\n }\n System.out.printf(\"%n\");\n if (i != 2) {\n System.out.println(\" _____|_____|_____\");\n } else {\n System.out.println(\" | | \");\n }\n }\n System.out.printf(\"%n\");\n }", "title": "" }, { "docid": "2112f7d63ce81ff9b50b761954c2542b", "score": "0.7559986", "text": "private static void printBoard() {\n String printable = \"\";\n for(String[] row : field) {\n for (String cell : row) {\n printable += cell + \" \";\n }\n printable += \"\\n\";\n }\n System.out.println(printable);\n }", "title": "" }, { "docid": "848618ffe04e1814ac4c3502eefb4ec1", "score": "0.75460696", "text": "public void print() {\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board[i].length; j++) {\n\t\t\t\tif (board[i][j] == 1) {\n\t\t\t\t\tSystem.out.print(\" X \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}", "title": "" }, { "docid": "cf32dc38b72b9260e16b2ed6e83de158", "score": "0.7530186", "text": "private static void displayBoard() {\r\n\t\tSystem.out.println();\r\n\r\n\t\tfor (int row = 0; row < 8; row++) {\r\n\t\t\tfor (int col = 0; col < 8; col++) {\r\n\t\t\t\tif (chessBoard[row][col] != null) {\r\n\t\t\t\t\tSystem.out.print(chessBoard[row][col]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif ((row % 2 == 0 && col % 2 == 0) || (row % 2 != 0 && col % 2 != 0)) { // black\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// spaces\r\n\t\t\t\t\t\tSystem.out.print(\"## \");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (col == 7) {\r\n\t\t\t\t\tSystem.out.print(8 - row + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\" a b c d e f g h\");\r\n\t\tSystem.out.println();\r\n\r\n\t}", "title": "" }, { "docid": "9c19deb92643fb708cb7253acbc957c4", "score": "0.7518572", "text": "public static String printBoard() {\r\n String b = \"\";\r\n for (int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[0].length; j++) {\r\n if (board[i][j] == null) {\r\n b += \" \";\r\n } else {\r\n if (board[i][j].isWhite)\r\n b += \"\\u2659\";\r\n else\r\n b += \"\\u265F\";\r\n }\r\n }\r\n b += \"n\";\r\n }\r\n return b;\r\n }", "title": "" }, { "docid": "25a835767f03629638103a16147ff3d6", "score": "0.75138324", "text": "public void print() {\n for (int n = 0; n < COLS; n++)\n System.out.print(\"\\t\\u001B[1m\" + (n + 1) + \"\\u001B[39m\");\n for (int m = 0; m < ROWS; m++) {\n System.out.print(\"\\n\\u001B[1m\" + (m + 1) + \"\\u001B[39m\");\n for (int n = 0; n < COLS; n++) {\n switch (playerBoard[m][n]) {\n case -1:\n System.out.print(\"\\t\\u001B[1m\\u001B[31mF\\u001B[39m\");\n break;\n case 0:\n System.out.print(\"\\t?\");\n break;\n case 1:\n switch (computerBoard[m][n]) {\n case 0:\n System.out.print(\"\\t\\u001B[37m0\\u001B[39m\");\n break;\n case 1:\n System.out.print(\"\\t\\u001B[1m\\u001B[36m1\\u001B[39m\");\n break;\n case 2:\n System.out.print(\"\\t\\u001B[1m\\u001B[32m2\\u001B[39m\");\n break;\n case 3:\n System.out.print(\"\\t\\u001B[1m\\u001B[91m3\\u001B[39m\");\n break;\n case 4:\n System.out.print(\"\\t\\u001B[1m\\u001B[34m4\\u001B[39m\");\n break;\n case 5:\n System.out.print(\"\\t\\u001B[1m\\u001B[33m5\\u001B[39m\");\n break;\n case 6:\n System.out.print(\"\\t\\u001B[1m\\u001B[35m6\\u001B[39m\");\n break;\n case 7:\n System.out.print(\"\\t\\u001B[1m\\u001B[96m7\\u001B[39m\");\n break;\n case 8:\n System.out.print(\"\\t\\u001B[1m\\u001B[31m8\\u001B[39m\");\n break;\n }\n break;\n }\n }\n }\n System.out.println();\n }", "title": "" }, { "docid": "fb1eed877bd732179cbf26507f37cc98", "score": "0.7408508", "text": "public void showBoard() {\n\n for (int i = 0; i < gameBoard.length; i++) {\n for (int j = 0; j < gameBoard[i].length; j++) {\n System.out.print(gameBoard[i][j] + \" \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "1f8c18042c265769484e1137b16f10bb", "score": "0.73756397", "text": "public void display()\n\t{\n\t\tfor (char[] rowArray: board)\n\t\t{\n\t\t\tSystem.out.print(\"|\");\n\t\t\tfor (char cell: rowArray)\n\t\t\t\tSystem.out.print(cell + \"|\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"---------------\");\t\n\t\tSystem.out.println(\" 1 2 3 4 5 6 7\");\n\t}", "title": "" }, { "docid": "b0c6c2f1bf705f46668fe4fa1553a5ca", "score": "0.7374723", "text": "public void printBoard(){\n for(int i =0;i<6;i++){\n for(int j=0;j<6;j++){\n System.out.print(board[i][j].toString()+\" \");\n if(j==2)\n System.out.print(\"| \");\n }\n System.out.println();\n if(i==2)\n System.out.println(\"-------------------------\");\n }\n }", "title": "" }, { "docid": "6b76c2c67402c5afa3b0d3f21781282b", "score": "0.73204803", "text": "public void printBoard(Board board) {\n for(int i = nRow-1; i >= 0; i--) {\n for(int j = 0; j < nCol; j++) {\n MapComponent block = new Coordinates(j,i,board).getTopBlock();\n\n if(block.hasWorkerOnTop()) {\n System.out.print(playerToColor.get(block.getWorkerOnTop().getPlayer().getNickname()) + block.getLevel() + ANSI_RESET + \" \");\n }\n else {\n System.out.print(block.getLevel() + \" \");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "title": "" }, { "docid": "9a6da4d4866880e77ec3eb898fb7f27b", "score": "0.7320009", "text": "private static void printBoard(BoardArray brd){\n\t\tfor (int row = 0; row<brd.getRow(); row++){\n\t\t\tfor (int col = 0; col<brd.getCol(); col++){\n\t\t\t\tSystem.out.print(brd.getPiece(row,col) + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "d5f34940b2fd285954136b1338129c97", "score": "0.7302827", "text": "public void printBoard(PrintStream output) {\n Cell[][] printBoard=board;\n\n for (int i=0;i<dimension;i++) {\n for (int x=0;x<dimension;x++) {\n\n //print the char value of a cellStatus int key\n output.print(mapToChar.get(printBoard[i][x].getVal()));\n\n //print space after each cell unless last cell\n if (x<(dimension-1)) {\n output.print(' ');\n }\n }\n\n output.print('\\n');\n }\n output.print('\\n');\n }", "title": "" }, { "docid": "410c5514795c411e31ea48ec103623be", "score": "0.7300246", "text": "public static void print() {\n int rows = 8;\n for(int i = 0; i < 8; i++) {\n for(int j = 0; j < 8; j++) {\n System.out.print(board[i][j] + \" \");\n }\n System.out.println(rows);\n rows--;\n }\n for(char a = 'a'; a <= 'h'; a++) {\n System.out.print(\" \" + a + \" \");\n }\n System.out.println(\"\");\n System.out.println(\"\");\n if(inCheck && !checkMate) {\n System.out.println(\"Check\");\n }\n if(isCheckMate()) {\n String winner = ((whoseTurn % 2 == 0) ? \"Black wins\" : \"White wins\");\n System.out.println(\"Checkmate\");\n System.out.println(winner);\n }\n else {\n System.out.print((whoseTurn % 2 == 0) ? \"Whites move: \" : \"Blacks move: \");\n }\n }", "title": "" }, { "docid": "054a61b0d6e5f9ab2789ffec93227fcb", "score": "0.7271261", "text": "static void printBoard(int[][] board) {\n if (board == null) {\n System.out.println(\"No assignment\");\n return;\n }\n for (int i = 0; i < 9; i++) {\n if (i == 3 || i == 6) {\n System.out.println(\"----+-----+----\");\n }\n for (int j = 0; j < 9; j++) {\n if (j == 2 || j == 5) {\n System.out.print(board[i][j] + \" | \");\n } else {\n System.out.print(board[i][j]);\n }\n }\n System.out.print(\"\\n\");\n }\n }", "title": "" }, { "docid": "8cbd7ec1ce8ac7ef9ec14152ea7f5fb2", "score": "0.72683626", "text": "public void displayBoard()\n {\n System.out.println();\n for (int i = 0; i < boardSize; ++i)\n {\n for (int j = 0; j < boardSize; ++j)\n {\n if (board[i][j]==1)\n System.out.print(\"X \");\n else if (board[i][j]==2)\n System.out.print(\"O \");\n else\n System.out.print(\". \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "f5cdff1cea319d57e278a26023c01c3a", "score": "0.72631824", "text": "public void displayBoard() {\r\n for (int i = 0; i < 3; i++) {\r\n for (int j = 0; j < 3; j++) {\r\n System.out.printf(\"%3c\",theBoard[i][j]);\r\n\r\n }\r\n System.out.println(\"\");\r\n }\r\n }", "title": "" }, { "docid": "9c7b353531ad03647b49b283a3ef0ad7", "score": "0.7258015", "text": "public static void printBoard() {\r\n String x_partition = \"\";\r\n for(int length =0 ; length<ROWS;++length){\r\n x_partition+= (length==0)? \"---\" : \"----\";\r\n }\r\n\r\n for (int row = 0; row < ROWS; ++row) {\r\n for (int col = 0; col < COLS; ++col) {\r\n printCell(board[row][col]); // print each of the cells\r\n if (col != COLS - 1) {\r\n System.out.print(\"|\"); // print vertical partition\r\n }\r\n }\r\n System.out.println();\r\n\r\n if (row != ROWS - 1) {\r\n System.out.println(x_partition); // print horizontal partition\r\n }\r\n }\r\n System.out.println();\r\n }", "title": "" }, { "docid": "400ce5f53aaa422b56260268db4d034e", "score": "0.72543377", "text": "public void writeBoard() {\n\n int[][] configuration = board.getBoardConfiguration();\n\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n output(String.valueOf(configuration[i][j]) + \" \");\n }\n output(\"\\n\");\n }\n\n output(\"\\n\");\n }", "title": "" }, { "docid": "8eb14735ed080a509f9f83b01285ae3c", "score": "0.7252946", "text": "public static void DisplayBoard() {\n\t\t for (int row = 0; row < 3; ++row) {\n\t for (int col = 0; col < 3; ++col) {\n\t if (col == 2) {\n\t System.out.print(board[row][col]);// print vertical partition\n\t }\n\t else\n\t\t System.out.print(board[row][col] + \" | \" );// print vertical partition\n\n\t }\n\t System.out.println();\n\t if (row != 2) {\n\t System.out.println(\"------------\");// print horizontal partition\n\t }\n\t \n\t }\n\t System.out.println();\n\t }", "title": "" }, { "docid": "d0fc087dc7ff543d4a24628348f79da2", "score": "0.72398126", "text": "public void printBoardAndResult() {\r\n String result = \"\";\r\n for (Cell[] row : board) {\r\n for (Cell c : row) {\r\n result += \" \" + c;\r\n }\r\n result += \"\\n\";\r\n }\r\n System.out.println(result);\r\n System.out.println(\"Player Turn: \" + playerTurn);\r\n System.out.println(\"Total Turns: \" + totalTurns);\r\n System.out.println(\"Player Score: \" + playerScore);\r\n System.out.println(\"Comp Score: \" + compScore);\r\n }", "title": "" }, { "docid": "9ac50423d35d4f3fb37dbb3a21c1865c", "score": "0.72388685", "text": "public void print()\r\n {\r\n System.out.print(\"+\");\r\n for (int i = 0; i < board[0].length; i++)\r\n System.out.print(\"-\");\r\n System.out.print(\"+\");\r\n System.out.println();\r\n for (int i = 0; i < board.length; i++)\r\n {\r\n System.out.print(\"|\");\r\n for (int j = 0; j < board[i].length; j++)\r\n if (board[i][j] == 0)\r\n {\r\n System.out.print(\" \");\r\n }\r\n else {\r\n System.out.print(board[i][j]);\r\n }\r\n System.out.println(\"|\");\r\n }\r\n System.out.print(\"+\");\r\n for (int i = 0; i < board[0].length; i++)\r\n System.out.print(\"-\");\r\n System.out.print(\"+\");\r\n System.out.println();\r\n }", "title": "" }, { "docid": "a360dfef33766cd95ce45d47f87d8e3f", "score": "0.7210202", "text": "public void printBoard() {\n boolean firstRow = true;\n System.out.print(\" \");\n for (int i = 1; i <= 8; i++) {\n System.out.printf(\"%d \", i);\n }\n System.out.println();\n for (int i = 0; i < 8; i++) {\n if (firstRow) {\n firstRow = false;\n System.out.print(\" \");\n for (int n = 0; n < 49; n++) {\n System.out.print('-');\n }\n System.out.println();\n }\n boolean firstColumn = true;\n printRowCoordinate(i);\n for (int j = 0; j < 8; j++) {\n if (firstColumn) {\n firstColumn = false;\n System.out.print(\"|\");\n }\n System.out.print(\" \" + board[i][j] + \" |\");\n }\n System.out.println();\n System.out.print(\" \");\n for (int n = 0; n < 49; n++) {\n System.out.print('-');\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "e4ea4f2b9bfe1afd84742d2ca041678d", "score": "0.71984005", "text": "public void print() {\n\n\t\tfor(int j = 0; j < ysize; j++)\n\t\t{\n\t\t\tfor(int i = 0; i < xsize; i++)\n\t\t\t{\n\t\t\t\tif(GetRoom(i, j) != null)\n\t\t\t\t{\n\t\t\t\t\tif(graph[i][j].right == Connection.Connected)\n\t\t\t\t\t\tConsole.Write(\"X - \");\n\t\t\t\t\telse Console.Write(\"X \");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tConsole.Write(\" \");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tConsole.WriteLine();\n\n\t\t\tfor(int i = 0; i < xsize; i++)\n\t\t\t{\n\t\t\t\tif(GetRoom(i, j) != null)\n\t\t\t\t{\n\t\t\t\t\tif(graph[i][j].down == Connection.Connected)\n\t\t\t\t\t\tConsole.Write(\"| \");\n\t\t\t\t\telse Console.Write(\" \");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tConsole.Write(\" \");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tConsole.WriteLine();\n\t\t}\n\n\t}", "title": "" }, { "docid": "a410bf00ad5946c5b65ac5a4b0d36eb0", "score": "0.71844304", "text": "public void printBoard() {\n for (int row = 0; row < boardArray.length; row++) {\n for (int column = 0; column < boardArray[row].length; column++) {\n if (boardArray[row][column] == 0) {\n System.out.printf(\"%2c\" + \" \", (char) 32);\n } else {\n System.out.printf(\"%2d\" + \" \", boardArray[row][column]);\n }\n }\n System.out.println(\"\");\n }\n }", "title": "" }, { "docid": "9d42d472e1dd6e6eced1ab0d7bea72a5", "score": "0.717923", "text": "private void makeAndDisplayBoard()\r\n\t{\r\n\t\tgenerateBoard();\r\n\t\tprintBoard();\r\n\t}", "title": "" }, { "docid": "5559c6e8bc621a8a56d95f866ac2e45d", "score": "0.71767724", "text": "public String showBoard(){\n\tStringBuffer sb = new StringBuffer();\n\tfor (byte[] row : board){\n\t for (byte square : row){\n\t\tif (square == X){\n\t\t sb.append(\"X\\t\");\n\t\t}\n\t\telse if (square == O){\n\t\t sb.append(\"O\\t\");\n\t\t}\n\t\telse \n\t\t sb.append(\"-\\t\");\n\t }\n\t sb.append(\"\\n\");\n\t}\n\treturn sb.toString();\n }", "title": "" }, { "docid": "8b86c726e83a88a87fdb755c317fd1df", "score": "0.7127151", "text": "public void showBoard(int clear){\n\t\tpainting = true;\n\t\t\n\t\tif (this.getConsoleMode()) {\t\n\t\t\tif (clear > 0) {\n\t\t\t\tSystem.out.print(\"\\033[H\\033[2J\");\n\t\t\t\tSystem.out.flush();\n\t\t\t}else{\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4\\n\");\n\t\t\tfor (int row=0; row<15; row++) {\n\t\t\t\tSystem.out.print(row%10+\" \");\n\t\t\t\tfor (int col=0; col<15; col++) {\n\n\t\t\t\t\tBloque temp = getBlock(row,col);\n\t\t\t\t\tif (temp == null) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\telse if( temp instanceof BloqueColor)\n\t\t\t\t\t{\n\t\t\t\t\t\tBloqueColor temp2 = (BloqueColor)temp;\n\t\t\t\t\t\tSystem.out.print(temp2.getColor()+\" \");\n\t\t\t\t\t}\n\t\t\t\t\telse if (temp instanceof BloqueComodin) \n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"& \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\" \"+row%10);\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4\");\n\n\t\t\tSystem.out.print(\"Te quedan R: \"+this.meta[0]);\n\t\t\tSystem.out.print(\", B: \"+this.meta[1]);\n\t\t\tSystem.out.print(\", O: \"+this.meta[2]);\n\t\t\tSystem.out.print(\", G: \"+this.meta[3]);\n\t\t\tSystem.out.println(\", Y: \"+this.meta[4]);\n\t\t}\n\t\telse{\n\t\t\tthis.window.updateBoard(this);\n\t\t}\n\n\t\ttry{\n\t\t\tThread.sleep(time);\n\t\t}catch ( InterruptedException e){\n\t\t\tSystem.out.print(\"No se puede esperar\");\n\t\t}\n\t\tpainting = false;\n\t}", "title": "" }, { "docid": "968d3cd1448cc2d2b9f5e448aa1d905b", "score": "0.7092157", "text": "static void printBoard(int[][][] board) {\n for (int i = 0; i < num_solutions; i++) {\n for (int j = 0; j < num_rows; j++) {\n for (int k = 0; k < num_cols; k++) {\n System.out.printf(\" %d \", board[i][j][k]);\n }\n System.out.printf(\"\\n\");\n }\n System.out.printf(\"\\n\");\n }\n System.out.printf(\"\\n\");\n }", "title": "" }, { "docid": "7e63ece0690c5f6ba7a8a5bca23d1dca", "score": "0.70703065", "text": "public static void show()\r\n {\r\n for(int i=0;i<board.length;i++)\r\n {\r\n for(int j=0;j<board[0].length;j++)\r\n {\r\n if(board[i][j].getPiece()!=null)\r\n {\r\n System.out.print(board[i][j].getPiece().getType());\r\n }\r\n else\r\n System.out.print(\" \");\r\n \r\n }\r\n System.out.println();\r\n }\r\n }", "title": "" }, { "docid": "c5f5a1b919e85c3b026a8389c09d0627", "score": "0.7056401", "text": "public void printBoard(int[][] board) {\n\t\tfor (int r = 0; r < 7; r++) {\n\t\t\tfor (int c = 0; c < 7; c++) {\n\t\t\t\tif (board[r][c] == -1) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(board[r][c] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "a5d0cfb644c49396087bf36e64d599e0", "score": "0.7051664", "text": "public void printBoard(char[][] board) {\n\t\tSystem.out.println();\n\t\t// first line\n\t\tfor (int l = 0; l < board.length + 5; l++) {\n\t\t\tSystem.out.print(\" \");// shift to start\n\t\t}\n\t\tfor (int j = 0; j < board[0].length; j++) {\n\t\t\tSystem.out.print(j);// x indexes\n\t\t\tif (j < 10) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t// second line\n\t\tfor (int l = 0; l < board.length + 3; l++) {\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tfor (int j = 0; j < board[0].length; j++) {\n\t\t\tSystem.out.print(\" -\");// separator\n\t\t}\n\t\tSystem.out.println();\n\t\t// the board\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int l = i; l < board.length - 1; l++) {\n\t\t\t\tSystem.out.print(\" \");// fill with left-hand spaces\n\t\t\t}\n\t\t\tif (i < 10) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\n\t\t\tSystem.out.print(i + \"/ \");// index+separator\n\t\t\tfor (int j = 0; j < board[0].length; j++) {\n\t\t\t\tSystem.out.print(board[i][j] + \" \");// value in the board\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "8e093de70d4f8017c6e7d661104a279e", "score": "0.7048549", "text": "public void drawBoard() {\n\t\t\tSystem.out.println(\" A B C D E F G H I J\");\n\t\t\tfor (int i = 0; i <= boardArray.length-1; i++) {\n\t\t\t\tSystem.out.print(i + 1 + \" \");\n\t\t\t\tfor (int j = 0; j <= boardArray[i].length-1; j++) {\n\t\t\t\t\t//if there is a ship at the coordinate, do not print 'S'\n\t\t\t\t\tif (boardArray[i][j] != 'S') {\n\t\t\t\t\t\tSystem.out.print(boardArray[i][j] + \" \");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.print(boardArray[i][j] + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.print('\\n');\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0a0634046dadff3812d7d9c7d7ea417a", "score": "0.70426655", "text": "public static void draw(char[][] board) {\n\tSystem.out.println(\"---------\");\n\tfor (int i=0; i < 3; i++) {\n\t System.out.print(\"| \");\n\t for( int j=0; j < 3; j++) {\n\t\t System.out.print(board[i][j] + \" \");\n\t }\n\t System.out.print(\"|\");\n System.out.println();\n\t}\n\tSystem.out.println(\"---------\");\n }", "title": "" }, { "docid": "5165502ace7b78303bbcf3537d9e2ad9", "score": "0.70359993", "text": "public void printBoard() {\t\t\t\t\t\t//reveal=true;\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"+----------------------------------------------------------------------+\");\r\n\t\tSystem.out.println(\"| MASTER 1 2 3 4 5 6 7 8 9 10 |\");\r\n\t\tSystem.out.println(\"+-------+ +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+\");\r\n\t\tfor (int row = 0; row < 4; row++) {\r\n \r\n \t// reveal the master pegs\r\n\t\t\tif (reveal) System.out.printf(\"| %c | |\", master.getPeg(row).getLetter());\r\n\t\t\telse System.out.print(\"| *** | |\");\r\n\t\t\tfor (int col = 0; col < 10; col++) {\r\n\t\t\t\tchar c = pegArray[col].getPeg(row).getLetter();\r\n\t\t\t\tif (c != 'X') System.out.printf(\" %c |\", c);\r\n\t\t\t\telse System.out.printf(\" |\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"+-------+ +-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+\");\r\n\t\t}\r\n\t\tSystem.out.print(\"| Exact \");\r\n\t\tfor (int col = 0; col < 10; col++) {\r\n\t\t\tint num = master.findMatches(master, pegArray, col, TOTALPEGS);\r\n\t\t\tif (num > -1) System.out.printf(\" %d \", num);\r\n\t\t\telse System.out.printf(\" \");\r\n\t\t}\r\n\t\tSystem.out.println(\"|\");\r\n\t\tSystem.out.print(\"| Partial \");\r\n\t\tfor (int col = 0; col < 10; col++) {\r\n\t\t\tint num;\r\n\t\t\tif(master.findMatches(master, pegArray, col, TOTALPEGS)==4)\r\n\t\t\t\tnum = 0;\r\n\t\t\telse\r\n\t\t\t\tnum = master.findPartials(master, pegArray, col, TOTALPEGS);\r\n\t\t\tif (num > -1) System.out.printf(\" %d \", num);\r\n\t\t\telse System.out.printf(\" \");\r\n\t\t}\r\n\t\tSystem.out.println(\"|\");\r\n\t\tSystem.out.println(\"+----------------------------------------------------------------------+\");\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "f731c00f09d0e584b5644194113c323f", "score": "0.70211256", "text": "public static void showGameBoard()\n\t{\n\n\t\tSystem.out.printf(\" \");\n\t\tfor(int row = 0; row < gameBoard.length; row++)\n\t\t{\n\t\t\tSystem.out.printf(ALPHA_TRANSLATE.charAt(row) + \" \");\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\n\t\t// Prints the column numbers and the cells contents.\n\n\t\tfor(int row = 0; row < gameBoard.length; row++)\n\t\t{\n\t\t\t\n\t\t\tSystem.out.printf((row+1) + \" \");\n\t\t\tfor(int col = 0; col < gameBoard[row].length; col++)\n\t\t\t{\n\t\t\t\tSystem.out.print(gameBoard[row][col]);\n\t\t\t\tSystem.out.printf(\" \");\t\t\n\t\t\t}\t\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "7fa202c218e70650599e2bbee508192f", "score": "0.7003968", "text": "public static void printBoard(int[][] board) {\n\t\t\n\t\t// print top row\n\t\tSystem.out.printf(\"%7d\", 0);\n\t\tfor (int i = 1; i < board[0].length; i++ ) {\n\t\t\tSystem.out.printf(\"%3d\", i);\n\t\t}\n\t\tSystem.out.println();\n\t\tfor(int i = 0; i < 5 + 3*board[0].length; i++) {\n\t\t\tSystem.out.print(\"-\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tSystem.out.printf(\"%-3d|\", i);\n\t\t\tfor (int j = 0; j < board[i].length; j++) {\n\t\t\t\tSystem.out.printf(\"%3d\", board[i][j]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "dea817535305e60c213071c5a67952d0", "score": "0.699401", "text": "public void printComplete() {\n for (int n = 0; n < COLS; n++)\n System.out.print(\"\\t\\u001B[1m\" + (n + 1) + \"\\u001B[39m\");\n for (int m = 0; m < ROWS; m++) {\n System.out.print(\"\\n\\u001B[1m\" + (m + 1) + \"\\u001B[39m\");\n for (int n = 0; n < COLS; n++) {\n if (playerBoard[m][n] == -1) {\n System.out.print(computerBoard[m][n] == -1 ?\n \"\\t\\u001B[1m\\u001B[31mF\\u001B[39m\" :\n \"\\t\\u001B[1m\\u001B[33mF\\u001B[39m\");\n } else {\n switch (computerBoard[m][n]) {\n case -1:\n System.out.print(\"\\t\\u001B[1m\\u001B[31mX\\u001B[39m\");\n break;\n case 0:\n System.out.print(\"\\t\\u001B[37m0\\u001B[39m\");\n break;\n case 1:\n System.out.print(\"\\t\\u001B[1m\\u001B[36m1\\u001B[39m\");\n break;\n case 2:\n System.out.print(\"\\t\\u001B[1m\\u001B[32m2\\u001B[39m\");\n break;\n case 3:\n System.out.print(\"\\t\\u001B[1m\\u001B[91m3\\u001B[39m\");\n break;\n case 4:\n System.out.print(\"\\t\\u001B[1m\\u001B[34m4\\u001B[39m\");\n break;\n case 5:\n System.out.print(\"\\t\\u001B[1m\\u001B[33m5\\u001B[39m\");\n break;\n case 6:\n System.out.print(\"\\t\\u001B[1m\\u001B[35m6\\u001B[39m\");\n break;\n case 7:\n System.out.print(\"\\t\\u001B[1m\\u001B[96m7\\u001B[39m\");\n break;\n case 8:\n System.out.print(\"\\t\\u001B[1m\\u001B[31m8\\u001B[39m\");\n break;\n }\n }\n }\n }\n System.out.println();\n }", "title": "" }, { "docid": "5dd21d771f92c8e9f3b70092c0e320a5", "score": "0.69900304", "text": "public void printBoard(Piece[][] gameBoard, Board boardclass){\n drawBoard();\n fillBoardWithPieces(gameBoard, boardclass);\n if(boardclass.lastPieceToMove.getColor().equals(\"Black\")){\n System.out.println(\" A B C D E F G H\");\n }\n else\n System.out.println(\" H G F E D C B A\");\n System.out.println(\" ________________________\");\n for(int i=0;i<board.length;i++){\n if(boardclass.lastPieceToMove.getColor().equals(\"Black\")){\n System.out.print((Math.abs(i-8)) +\" |\");\n }\n else{\n System.out.print((i+1) +\" |\");\n }\n for(int j=0;j<board[i].length;j++){\n System.out.print(board[i][j]);\n if(j==7){\n if(boardclass.lastPieceToMove.getColor().equals(\"Black\")){\n System.out.println(\"|\" + (Math.abs(i-8)));\n }\n else{\n System.out.println(\"|\" + (i+1));\n }\n if(i<7)\n System.out.println(\" | |\");\n } \n } \n }\n System.out.println(\" --------------------------\");\n if(boardclass.lastPieceToMove.getColor().equals(\"Black\")){\n System.out.println(\" A B C D E F G H\");\n }\n else\n System.out.println(\" H G F E D C B A\");\n }", "title": "" }, { "docid": "847246ce29b72bf5982e88b6e495f6aa", "score": "0.6977914", "text": "public static void BoardPrinter(int board[][][][]) {\n\t\tint i,j,k,l;\n\t\t/*\n\t\t * i is big row, j is big column, k is small row, l is small column\n\t\t * order: i,k,j,l\n\t\t * Will be slightly different from standard thinking\n\t\t * because it has to print each full row at a time\n\t\t */\n\t\tfor (i=0;i<3;i++) {\n\t\t\tfor (k=0;k<3;k++) {\n\t\t\t\tfor (j=0;j<3;j++) {\n\t\t\t\t\tfor (l=0;l<3;l++) {\n\t\t\t\t\t\tswitch (board [i][j][k][l]) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tprint(\"*\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tprint(\"X\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tprint(\"O\");\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//end of l loop\n\t\t\t\t\t}\n\t\t\t\t\t//end of j loop\n\t\t\t\t\t//Print out a divider between squares of the same horizontal level\n\t\t\t\t\tprint(\"|\");\n\t\t\t\t}\n\t\t\t\t//end of k loop\n\t\t\t\tprintln(\"\");\n\t\t\t}\n\t\t\t//end of i loop\n\t\t\t//print out a divider between the large rows, but only on the first two loop\n\t\t\t//iterations, not on the last one, otherwise there would be a line under the grid\n\t\t\tif (i<2) {\n\t\t\tprintln(\"____________\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8adb69673d19091052a6d778956e3f9d", "score": "0.69752145", "text": "public static void updateBoard(){\n System.out.println(\"Turn: \" + turns); // print vertical partition\n for (int row = 0; row < ROWS; ++row) {\n for (int col = 0; col < COLS; ++col) {\n printCell(gameBoard[row][col]); // print each of the cells\n if (col != COLS - 1) {\n System.out.print(\"|\"); // print vertical partition\n }\n }\n System.out.println();\n if (row != ROWS - 1) {\n System.out.println(\"-----------\"); // print horizontal partition\n }\n }\n System.out.println();\n }", "title": "" }, { "docid": "48ec8259544a684fa680b5dc17e754d0", "score": "0.69746166", "text": "public void printBoard(Board board,int depth) {\n\t\tprintln(\"Depth = \" + depth);\n\t\tif (!active)\n\t\t\treturn;\n\t\t\t\t\n\t\tint[][] gameBoard = board.getBoard();\n\t\tfor (int[] row : gameBoard) {\n\t\t\tprintln(Arrays.toString(row));\n\t\t}\n\t}", "title": "" }, { "docid": "d5afe11a70aa279dd519fea43c07fcb3", "score": "0.69614804", "text": "public static void showBoard(String[][] board)\n {\n for (int row = 0; row < board.length; row++)\n {\n for (int cols = 0; cols < board[0].length; cols++)\n {\n System.out.print(\" \"+ board[row][cols]);\n }\n System.out.println();\n }\n \n }", "title": "" }, { "docid": "579b82f0e0630448b42f5281f27f14c2", "score": "0.6953997", "text": "public void printBoard(State state) {\r\n\t\tint i = 0;\r\n\t\tint j = 0;\r\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7\");\r\n\t\tfor (String[] s : state.getState()) {\r\n\t\t\tSystem.out.print(i + \" \");\r\n\t\t\ti++;\r\n\t\t\tfor (String str : s) {\r\n\t\t\t\tSystem.out.print(str + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "d535da986466a3fcac165155693e9810", "score": "0.6948745", "text": "public static void printBoard(String[][] board) {\n\t\tint l = board.length ; // the length property of an array gives it size or the number of element in the array\n\t\tfor (int i = 0; i < l; i++) { // post increment i++ means we use the initial value of i then we increment\n\t\t\tSystem.out.println(\"-------------\");\n\t\t\tfor (int j = 0; j < l ; j++) {\n\t\t\t\tif (board[i][j] == null) {\n\t\t\t\t\tboard[i][j] = \" \";\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"| \"+ board[i][j] + \" \" );\n\t\t\t}\n\t\t\tSystem.out.println(\"|\");\n\t\t\tif (i == l-1) {\n\t\t\t\tSystem.out.println(\"-------------\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "9e9b570eb5da87495ce8283f41476e05", "score": "0.69165164", "text": "private void displayToConsole()\n {\n int row, col;\n \n // top row border\n System.out.println();\n for (col = 0; col < BarcodeImage.MAX_WIDTH + 2; col++)\n System.out.print(\"-\");\n System.out.println();\n \n // now each row from 0 to MAX_WIDTH, adding border chars\n for (row = 0; row < BarcodeImage.MAX_HEIGHT; row++)\n {\n System.out.print(\"|\");\n for (col = 0; col < BarcodeImage.MAX_WIDTH; col++)\n System.out.print(boolToString(this.image_data[row][col]));\n System.out.println(\"|\");\n }\n \n // bottom\n for (col = 0; col < BarcodeImage.MAX_WIDTH + 2; col++)\n System.out.print(\"-\");\n System.out.println();\n }", "title": "" }, { "docid": "89637231704cadd13d376ac4722179fc", "score": "0.6890952", "text": "public static void main(String[] args) {\n Board b = new Board(new int[][] {{1, 0}, {2, 3}});\r\n StdOut.println(b.toString());\r\n StdOut.println(\"Hamming : \" + b.hamming());\r\n StdOut.println(\"Manhattan : \" + b.manhattan());\r\n \r\n StdOut.println(\"--------------\");\r\n for (Board nb : b.neighbors()) {\r\n StdOut.println(\"--------------\");\r\n StdOut.println(nb.toString());\r\n StdOut.println(\"Hamming : \" + nb.hamming());\r\n StdOut.println(\"Manhattan : \" + nb.manhattan());\r\n }\r\n \r\n StdOut.println(\"---- twin ----\");\r\n StdOut.println(b.twin().toString());\r\n }", "title": "" }, { "docid": "27386dabaf2bc3ce9525723056ff8613", "score": "0.68886834", "text": "public void show() {\r\n System.out.println(\"------------------------\");\r\n for (int i = 0; i < boardLength; i++) {\r\n for (int j = 0; j < boardLength; j++) {\r\n System.out.print(boardArray[i][j].getLetterChar() + \" \");\r\n }\r\n System.out.println();\r\n }\r\n System.out.println(\"------------------------\");\r\n }", "title": "" }, { "docid": "df127500c529acf3c23a06111c6f07c1", "score": "0.6884304", "text": "public void PrintGrid() {\n for (int i = 0; i < this.row; i++) {\n String boardGraph = \"|\";\n for (int j = 0; j < this.column; j++) {\n if(this.board[i][j] == null || !this.board[i][j].getState()) {\n boardGraph += \".\";\n }\n else {\n boardGraph += \"*\";\n }\n }\n\n boardGraph += \"|\";\n System.out.println(boardGraph);\n }\n\n System.out.println();\n }", "title": "" }, { "docid": "d6e4c3d1fd3fe2e4e6e3a54ab5ffb302", "score": "0.6879885", "text": "public void displayBoard() {\n\t\tfor (int r = 0; r < boardSize; r++) {\n\t\t\tfor (int c = 0; c < boardSize; c++) {\n\t\t\t\tif (grid[r][c] == 2){\t//if field is a miss\n\t\t\t\t\tSystem.out.print(\" M\");\n\t\t\t\t}\n\t\t\t\telse if(grid[r][c] == 3){//if field is a hit\n\t\t\t\t\tSystem.out.print(\" !\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\" ~\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "title": "" }, { "docid": "e56c430ef1cf0bd7a5a9a9c3c81bb95e", "score": "0.68721825", "text": "public static void board(Game game) {\n\n System.out.println(\" | 0 1 2 3 4 5 6 7 8 9 10\");\n System.out.println(\"----------------------------------------------\");\n for (int y=0 ; y<game.SIZE ; y++) {\n\n if (y<10) {\n System.out.print(y+\" | \");\n }\n else {\n System.out.print(y+\"| \");\n }\n\n for (int x=0 ; x<game.SIZE ; x++) {\n if (!game.grid[y][x].isFree()) {\n switch (game.getPawnOnSquare(x, y).getColor()) {\n case BLACK:\n System.out.print(\"X\");\n break;\n case WHITE:\n System.out.print(\"O\");\n break;\n case ZEN:\n System.out.print(\"Z\");\n break;\n }\n }\n else {\n System.out.print(\".\");\n }\n System.out.print(\" \");\n }\n if (y<10) {\n System.out.print(\"\\n |\\n\");\n }\n else {\n System.out.println();\n }\n }\n System.out.println();\n\n }", "title": "" }, { "docid": "d86c3dce4af5b0dfe37e63736398288a", "score": "0.6866973", "text": "public void displayBoard(char[][] board){\n\t\tfor (int row = 0; row < board.length; row++){\n\t\t\tfor (int column = 0; column < board[0].length; column++){\n\t\t\t\tSystem.out.print(board[row][column]);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "387005cb8d4a2eb699c2aa2dbba0d75e", "score": "0.68609154", "text": "public void print() {\r\n\t\tSystem.out.print(toString());\r\n\t}", "title": "" }, { "docid": "8f5924a449912014eb43dbc69efbcabd", "score": "0.68530965", "text": "public void print(){\r\n\t\tfor (int x = 1; x < 65; x++){\r\n\t\t\tSystem.out.print(brickGrid[x] + \" \");\r\n\t\t\tif(x%8 == 0)\r\n\t\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "44ceb851a7ed76ff985cda49112f43d0", "score": "0.6840599", "text": "public void print(){\n\t System.out.println(toString());\n\t }", "title": "" }, { "docid": "039711d71f7a1a2dc73d96cd56027b1f", "score": "0.6830805", "text": "public static void printNextBoard(Card[][] board) {\n System.out.print(\"\\n\");\n for (Card[] b : board) {\n for (Card c : b) {\n if (c.isCollected()) {\n System.out.print(\"\\t\");\n System.out.print(\" | | \");\n System.out.print(\"\\t\");\n }\n else if (c.isFaceUp()) {\n System.out.print(\"\\t\");\n System.out.print(\" | \" + c.getID() + \" | \");\n System.out.print(\"\\t\");\n }\n else {\n System.out.print(\"\\t\");\n System.out.print(\" | * | \");\n System.out.print(\"\\t\");\n }\n }\n System.out.print(\"\\n\");\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }", "title": "" }, { "docid": "4f1b539f742ec7942f8cbda7c15764f1", "score": "0.68086106", "text": "public String toString() {\n\t\treturn _board.toString();\n\t}", "title": "" }, { "docid": "59dccc7e0f03ea01ee1faea2d5557fe8", "score": "0.6790461", "text": "public void print() {\n\t\tSystem.out.println(toString());\n\t}", "title": "" }, { "docid": "d985a1da78fdd28af5eb16625cc1f25f", "score": "0.6785754", "text": "public final void print() {\n System.out.println(toString());\n }", "title": "" }, { "docid": "df04d122a46258465ea40369443289b0", "score": "0.6777318", "text": "public String displayBoard() {\n\t\tStringBuilder build = new StringBuilder();\n\t\tfor (int r = 0; r < gameBoard.length; r++) {\n\t\t\tbuild.append(\"| \");\n\t\t\tfor (int c = 0; c < gameBoard[r].length; c++)\n\t\t\t\tbuild.append(gameBoard[r][c] + \" | \");\n\t\t\tif (r == 0) {\n\t\t\t\tbuild.append(\"\\t\\t 1 | 2 | 3 |\");\n\t\t\t} else if (r == 1) {\n\t\t\t\tbuild.append(\"\\t\\t 4 | 5 | 6 |\");\n\t\t\t} else {\n\t\t\t\tbuild.append(\"\\t\\t 7 | 8 | 9 |\");\n\t\t\t}\n\t\t\tbuild.append(\"\\n_____________\");\n\t\t\tbuild.append(\"\\t\\t __________ \\n\");\n\t\t}\n\n\t\treturn build.toString();\n\t}", "title": "" }, { "docid": "7d202f5c6acac5e131b6177d818964c8", "score": "0.6775242", "text": "public void displayBoard(Player player) {\n\t\tHashtable<String, Integer> board = new Hashtable<String, Integer>();\n\t\tSystem.out.println(player.toString() + \"'s board:\");\n\t\tboard = player.getBoard();\n\t\tfor (String val : ((Hashtable<String,Integer>) board).keySet()) {\n\t\t System.out.println(val + \":\" + board.get(val));\n\t\t}\n\t}", "title": "" }, { "docid": "1f4110e513b22979b77a4b521f5f9f1e", "score": "0.676455", "text": "public void printCanvas() {\n\t\tfor (int row = 0; row < getCANVAS().length; row++) {\n\t\t\tfor (int col = 0; col < getCANVAS()[0].length; col++) {\n\t\t\t\tSystem.out.print(\" \" + getCANVAS()[row][col] + \"|\");\n\t\t\t}\n\t\t\tSystem.out.println(row);\n\t\t}\n\t\tint cont = 0;\n\t\t\n\t\tString line = \"\";\n\t\tString numbers = \"\";\n\t\t\n\t\twhile (cont < getCANVAS()[0].length) {\n\t\t\tline = line + \"___\";\n\t\t\tnumbers = numbers + String.format(\"%1$-\" + 3 + \"s\", cont);\n\t\t\tcont++;\n\t\t}\n\t\tSystem.out.println(line);\n\t\tSystem.out.println(numbers);\n\n\t}", "title": "" } ]
de3308ed3c37c841c2686634db09f2b8
Assume an object moving from line.start() to line.end(). If this object will not collide with any of the collidables in this collection, return null. Else, return the information about the closest collision that is going to occur.
[ { "docid": "a2db1e557ad8883ab2b333678c103c6b", "score": "0.70668817", "text": "public CollisionInfo getClosestCollision(Line trajectory) {\r\n\r\n //initializations:\r\n Point collisionPoint = new Point(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);\r\n Collidable collisionObject = null;\r\n\r\n //find the closet collision point from all collidables objects available\r\n\r\n //copying the lists here is necessary to prevent \"ConcurrentModificationException\"\r\n //explained here: https://stackoverflow.com/questions/18448671/how-to-avoid-\r\n // concurrentmodificationexception-while-removing-elements-from-arr\r\n List<Collidable> currentCollidables = new ArrayList<>(this.collidables); //do not change this line\r\n for (Collidable collidable : currentCollidables) {\r\n\r\n //save the collision point with the collidable object\r\n Point intersectionWithCollidable =\r\n trajectory.closestIntersectionToStartOfLine(collidable.getCollisionRectangle());\r\n\r\n\r\n //save the closest point as the collision point:\r\n if (intersectionWithCollidable != null && intersectionWithCollidable.distance(trajectory.start())\r\n < collisionPoint.distance(trajectory.start())) {\r\n collisionPoint = intersectionWithCollidable;\r\n collisionObject = collidable;\r\n }\r\n }\r\n\r\n return new CollisionInfo(collisionPoint, collisionObject);\r\n }", "title": "" } ]
[ { "docid": "d92bee327df723122f0528a23ac0a306", "score": "0.7357765", "text": "public CollisionInfo getClosestCollision(Line trajectory) {\n Point closestPoint = null;\n Collidable temp = null;\n for (Collidable c : collidables) {\n if (!c.getCollisionRectangle().intersectionPoints(trajectory).isEmpty()) {\n Point p = trajectory.closestIntersectionToStartOfLine(c.getCollisionRectangle());\n if (closestPoint == null) { // first assigning\n closestPoint = p;\n temp = c;\n }\n if (trajectory.start().distance(p) < trajectory.start().distance(closestPoint)) { //compare distance\n closestPoint = p;\n temp = c;\n }\n }\n }\n if (closestPoint != null) { // there was intersection\n return new CollisionInfo(closestPoint, temp);\n }\n return null;\n }", "title": "" }, { "docid": "3e07966c7c26ec546731d82834458aab", "score": "0.73121166", "text": "public CollisionInfo getClosestCollision(Line trajectory) {\n Point closestPoint = null;\n List<Point> collisionPoints = new ArrayList<Point>();\n List<Collidable> collisionObjects = new ArrayList<Collidable>();\n double dis;\n List<Collidable> list = new ArrayList<Collidable>(this.collidables);\n Collidable closestObject = null;\n // Find all collisions.\n for (Collidable collidable : list) {\n Point point = trajectory.closestIntersectionToStartOfLine(collidable.getCollisionRectangle());\n if (point != null) {\n collisionPoints.add(point);\n collisionObjects.add(collidable);\n }\n }\n // If there is no collision return null.\n if (collisionPoints.isEmpty()) {\n return null;\n }\n // Find the closest.\n closestPoint = collisionPoints.get(0);\n closestObject = collisionObjects.get(0);\n dis = trajectory.start().distance(collisionPoints.get(0));\n for (int i = 1; i < collisionPoints.size(); i++) {\n if (trajectory.start().distance(collisionPoints.get(i)) < dis) {\n closestPoint = collisionPoints.get(i);\n closestObject = collisionObjects.get(i);\n dis = trajectory.start().distance(collisionPoints.get(i));\n }\n }\n return new CollisionInfo(closestPoint, closestObject);\n }", "title": "" }, { "docid": "1e345a896e2547254396714457f6ff25", "score": "0.7298032", "text": "public CollisionInfo getClosestCollision(Line trajectory) {\r\n //if the Collidable list isn't empty\r\n if (this.collidableList.size() > 0) {\r\n //set the Collidable and the point. at the begging-the first object in the list\r\n Collidable close = this.collidableList.get(0);\r\n Point closest = trajectory.closestIntersectionToStartOfLine((Rectangle)\r\n this.collidableList.get(0).getCollisionRectangle());\r\n //run on all over the list and get the Collidable and the point\r\n for (int i = 1; i < this.collidableList.size(); i++) {\r\n Point p = trajectory.closestIntersectionToStartOfLine((Rectangle)\r\n this.collidableList.get(i).getCollisionRectangle());\r\n Collidable rec = this.collidableList.get(i);\r\n //if there is a point intersection with the object\r\n if (p != null) {\r\n if (closest != null) {\r\n //get the distance between the 2 points and equals them.\r\n if (p.distance(trajectory.end()) < closest.distance(trajectory.end())) {\r\n //put the closest point into closest and the save the rectangle in close\r\n closest = p;\r\n close = rec;\r\n }\r\n //if closest is null\r\n } else {\r\n //put the value of the point into closest and save the maching rectangle\r\n closest = p;\r\n close = rec;\r\n }\r\n }\r\n }\r\n //if there is value in closest\r\n if (closest != null) {\r\n //save the point and the rectangle in CollisionInfo and return\r\n CollisionInfo colli = new CollisionInfo(closest, close);\r\n return colli;\r\n }\r\n }\r\n //is there isn't value-return null\r\n return null;\r\n }", "title": "" }, { "docid": "b12048b456cf1ee9c3e818c5ce8173d3", "score": "0.7286626", "text": "public CollisionInfo getClosestCollision(Line trajectory) {\n ArrayList<CollisionInfo> collidedPoints = new ArrayList<>();\n for (Collidable c : collidables) {\n CollisionInfo tmp = new CollisionInfo(c, trajectory);\n if (tmp.collisionPoint() != null) {\n collidedPoints.add(tmp);\n }\n }\n if (collidedPoints.size() == 0) {\n return null;\n }\n double distA = collidedPoints.get(0).collisionPoint().distance(trajectory.start()), distB;\n CollisionInfo x = collidedPoints.get(0);\n for (int i = 1; i < collidedPoints.size(); i++) {\n distB = collidedPoints.get(i).collisionPoint().distance(trajectory.start());\n if (distA > distB) {\n x = collidedPoints.get(i);\n }\n }\n return x;\n }", "title": "" }, { "docid": "89382d7e734a605285e3e136dd34e50c", "score": "0.7241135", "text": "public CollisionInfo getClosestCollision(Line trajectory) {\r\n boolean isFirstCheck = true;\r\n if (list.isEmpty()) {\r\n return null;\r\n } else {\r\n Collidable collidableObj = null;\r\n Point closestCoalitionPoint = null;\r\n for (Collidable col : list) {\r\n Rectangle rectangle = col.getCollisionRectangle();\r\n Point temp = trajectory.closestIntersectionToStartOfLine(rectangle);\r\n if (temp != null) {\r\n if (isFirstCheck) {\r\n collidableObj = col;\r\n closestCoalitionPoint = temp;\r\n isFirstCheck = false;\r\n } else {\r\n if (trajectory.start().distanceTo(temp)\r\n < trajectory.start().distanceTo(closestCoalitionPoint)) {\r\n closestCoalitionPoint = temp;\r\n collidableObj = col;\r\n }\r\n }\r\n }\r\n\r\n }\r\n if (closestCoalitionPoint == null) {\r\n return null;\r\n }\r\n return new CollisionInfo(closestCoalitionPoint, collidableObj);\r\n\r\n }\r\n }", "title": "" }, { "docid": "746c5e364c342f8aab6bf1434d3e0edd", "score": "0.7195456", "text": "public CollisionInfo getClosestCollision(Line trajectory) {\r\n //trajectory end defined as the next point,\r\n // that the ball gonna hit.\r\n // ant trajectory start defined as the current point.\r\n Point bestPoint = null;\r\n Collidable closest = null;\r\n double shortestDistance = Double.POSITIVE_INFINITY;\r\n //loop for all the collidable objects\r\n for (int recIndex = 0; recIndex < this.collidable.size(); recIndex++) {\r\n //adding to the array -> maximum of 2 intersectionPoints with the rectangle\r\n List<Point> collisionPointsList = this.collidable.get(recIndex).getCollisionRectangle()\r\n .intersectionPoints(trajectory);\r\n if (collisionPointsList != null) {\r\n for (int k = 0; k < collisionPointsList.size(); k++) {\r\n double dis = collisionPointsList.get(k).distance(trajectory.start());\r\n if (dis < shortestDistance) {\r\n shortestDistance = dis;\r\n // the closest point of collide\r\n bestPoint = collisionPointsList.get(k);\r\n // the closest object to collide\r\n closest = this.collidable.get(recIndex);\r\n this.cornerHit = false;\r\n } else if (dis == shortestDistance) {\r\n // hitted the corner of 2 bricks\r\n this.cornerHit = true;\r\n }\r\n }\r\n }\r\n }\r\n if (bestPoint == null) {\r\n return null;\r\n }\r\n CollisionInfo info = new CollisionInfo(bestPoint, closest);\r\n return info;\r\n }", "title": "" }, { "docid": "fc26eb5244e40575b4a53a2d2ae529d3", "score": "0.70489913", "text": "public CollisionInfo getClosestCollision(Line trajectory) {\n CollisionInfo closestPointInfo = null;\n int index = -1;\n Point closestInterPt = null;\n Point tempPoint;\n for (int i = 0; i < this.collidableList.size(); i++) {\n Rectangle rect = this.collidableList.get(i).getCollisionRectangle();\n tempPoint = trajectory.closestIntersectionToStartOfLine(rect);\n if (tempPoint == null) {\n continue;\n }\n if (closestInterPt == null) {\n index = i;\n closestInterPt = tempPoint;\n }\n if (trajectory.start().distance(tempPoint) < trajectory.start().distance(closestInterPt)) {\n index = i;\n closestInterPt = tempPoint;\n }\n }\n if (index == -1) {\n return null;\n }\n closestPointInfo = new CollisionInfo(closestInterPt, this.collidableList.get(index));\n return closestPointInfo;\n }", "title": "" }, { "docid": "c00fe7ec7587229d71c2cb296f070b46", "score": "0.64619994", "text": "private GObject getCollidingObject() {\n\t\tif (getElementAt(ball.getX(), ball.getY()) != null)\n\t\t\treturn getElementAt(ball.getX(), ball.getY());\n\t\telse if (getElementAt(ball.getX() + BALL_RADIUS, ball.getY()) != null)\n\t\t\treturn getElementAt(ball.getX() + BALL_RADIUS, ball.getY());\n\t\telse if (getElementAt(ball.getX(), ball.getY() + BALL_RADIUS) != null)\n\t\t\treturn getElementAt(ball.getX(), ball.getY() + BALL_RADIUS);\n\t\telse if (getElementAt(ball.getX() + BALL_RADIUS, ball.getY() + BALL_RADIUS) != null)\n\t\t\treturn getElementAt(ball.getX() + BALL_RADIUS, ball.getY() + BALL_RADIUS);\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "68b8eba1d510bcd544797604f767a116", "score": "0.6304712", "text": "private GObject getCollidingObject()\n\t{\n\t\tdouble ball_left_topx = ball.getX();\n\t\tdouble ball_left_topy = ball.getY();\n\n\t\tdouble ball_right_topx = ball_left_topx + ball.getWidth();\n\t\tdouble ball_right_topy = ball_left_topy;\n\n\t\tdouble ball_left_bottomx = ball_left_topx;\n\t\tdouble ball_left_bottomy = ball_left_topy - ball.getHeight();\n\n\t\tdouble ball_right_bottomx = ball_left_bottomx + ball.getWidth();\n\t\tdouble ball_right_bottomy = ball_left_bottomy;\n\n\t\tif (getElementAt(ball_left_topx, ball_left_topy) != null)\n\t\t{\n\t\t\treturn (getElementAt(ball_left_topx, ball_left_topy));\n\t\t}\n\n\t\telse if (getElementAt(ball_right_topx, ball_right_topy) != null)\n\t\t{\n\n\t\t\treturn (getElementAt(ball_right_topx, ball_right_topy));\n\t\t}\n\t\telse if (getElementAt(ball_left_bottomx, ball_left_bottomy) != null)\n\t\t{\n\t\t\treturn(getElementAt(ball_left_bottomx, ball_left_bottomy));\n\t\t}\n\t\telse if (getElementAt(ball_right_bottomx, ball_right_bottomy) !=null)\n\t\t{\n\t\t\treturn(getElementAt(ball_right_bottomx, ball_right_bottomy));\n\t\t}\n\t\telse \n\t\t\treturn (null);\n\n\t}", "title": "" }, { "docid": "b706005a8d2e2cf818af1ed827dc790d", "score": "0.6239032", "text": "private GObject getCollidingObject()\n { \n\t if(getElementAt(ball.getX(),ball.getY())!=null)\n\t {\n\t\treturn (getElementAt(ball.getX(),ball.getY())); \n\t }\n\t else if(getElementAt(ball.getX()+(2*BALL_RADIUS),ball.getY())!=null)\n\t {\n\t\t return (getElementAt(ball.getX()+(2*BALL_RADIUS),ball.getY()));\n\t }\n\t else if(getElementAt(ball.getX(),ball.getY()+(2*BALL_RADIUS))!=null)\n\t {\n\t\t return (getElementAt(ball.getX(),ball.getY()+(2*BALL_RADIUS)));\n\t }\n\t else if (getElementAt(ball.getX()+(2*BALL_RADIUS),ball.getY()+(2*BALL_RADIUS))!=null)\n\t {\n\t\t return (getElementAt(ball.getX()+(2*BALL_RADIUS),ball.getY()+(2*BALL_RADIUS)));\n\t }\n\t else \n\t {\n\t\t return null;\n\t }\n }", "title": "" }, { "docid": "00ab3942b97c2f39346e7c6120599938", "score": "0.6200501", "text": "private GObject getCollidingObject(){\n\t\tif (getElementAt(Ball.getX(), Ball.getY()) != null){\n\t\t\treturn getElementAt(Ball.getX(), Ball.getY());\n\t\t\t\n\t\t} else if (getElementAt(Ball.getX() + 2*BALL_RADIUS, Ball.getY()) != null){\n\t\t\treturn getElementAt(Ball.getX() + 2*BALL_RADIUS, Ball.getY());\n\t\t\t\n\t\t} else if (getElementAt(Ball.getX() + 2*BALL_RADIUS, Ball.getY() + 2*BALL_RADIUS) != null){\t\t\n\t\t\treturn getElementAt(Ball.getX() + 2*BALL_RADIUS, Ball.getY() + 2*BALL_RADIUS);\n\t\t\t\n\t\t} else if (getElementAt(Ball.getX(), Ball.getY() + 2*BALL_RADIUS) != null){\t\n\t\t\treturn getElementAt(Ball.getX(), Ball.getY() + 2*BALL_RADIUS);\n\t\t\t\n\t\t} else {return null;}\t\t\t\n\t}", "title": "" }, { "docid": "ccb029cfdf2cc325a1ce2ff3e02ba3cd", "score": "0.6108945", "text": "public GObject getObjectCollision(){\n\t\tif(getElementAt(ball.getX(),ball.getY()) != null)return getElementAt(ball.getX(),ball.getY());\n\t\telse if(getElementAt(ball.getX()+BALL_RADIUS,ball.getY()) != null)return getElementAt(ball.getX()+BALL_RADIUS,ball.getY());\n\t\telse if(getElementAt(ball.getX(),ball.getY()+BALL_RADIUS) != null)return getElementAt(ball.getX(),ball.getY()+BALL_RADIUS);\n\t\telse if(getElementAt(ball.getX()+BALL_RADIUS,ball.getY()+BALL_RADIUS) != null)return getElementAt(ball.getX()+BALL_RADIUS,ball.getY()+BALL_RADIUS);\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1638b4847ef23902e71643496eb9921c", "score": "0.5977483", "text": "public MovingObjectPosition collisionRayTrace(World worldIn, BlockPos pos, Vec3 start, Vec3 end) {\n/* 151 */ return null;\n/* */ }", "title": "" }, { "docid": "09787ee191d5e0a187ce5e4771debf17", "score": "0.5733702", "text": "Item findCollidingElement() {\n for (Item item : displayedItems.keySet()) {\n if (item.collision(paintView)) {\n return item;\n }\n }\n return null;\n }", "title": "" }, { "docid": "9208a8ee5d493a65c278422fb5e6178a", "score": "0.5696503", "text": "public Point closestIntersectionToStartOfLine(Rectangle rect) {\r\n List<Point> intersectionPoints = rect.intersectionPoints(this);\r\n Point closestPoint;\r\n if (intersectionPoints.size() == 0) {\r\n return null;\r\n }\r\n closestPoint = intersectionPoints.get(0);\r\n for (int i = 0; i < intersectionPoints.size(); i++) {\r\n Point point = intersectionPoints.get(i);\r\n if (point.distance(this.start) < closestPoint.distance(this.start)) {\r\n closestPoint = point;\r\n }\r\n }\r\n if (closestPoint != null) {\r\n return closestPoint;\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "f2161b0754470c044042b4421fb1911a", "score": "0.56365824", "text": "public Point intersection(OpticObject o) {\n\t\tif(source == o)\n\t\t\treturn null;\n\t\tLineEquations r = new LineEquations(x, y, xBound, yBound);\n\t\tAxis ax = o.getObstruction();\n\t\tLine2D.Double line = new Line2D.Double(x, y, xBound, yBound);\n\n\t\tif(ax == null) {\n\t\t\tif(o instanceof CurvedMirror) {\n\t\t\t\tCurvedMirror c = (CurvedMirror)o;\n\t\t\t\tArc2D.Double arc = c.getArc();\n\t\t\t\tList<Point> points = getCircleLineIntersectionPoint(new Point(x, y), new Point(xBound, yBound), c.getArcCenter(), 2 * c.getFocus());\n\t\t\t\tif(points.size() > 1) {\n\t\t\t\t\tPoint p1 = points.get(0);\n\t\t\t\t\tPoint p2 = points.get(1);\n\t\t\t\t\tif(arc.intersects(p1.x - 2, p1.y - 2, 4, 4) && (Math.abs(p1.x - x) > 4 || Math.abs(p1.y - y) > 4) && line.intersects(p1.x - 2, p1.y - 2, 4, 4))\n\t\t\t\t\t\treturn p1;\n\t\t\t\t\tif(arc.intersects(p2.x - 2, p2.y - 2, 4, 4) && (Math.abs(p2.x - x) > 4 || Math.abs(p2.y - y) > 4) && line.intersects(p2.x - 2, p2.y - 2, 4, 4))\n\t\t\t\t\t\treturn p2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(o instanceof Prism) {\n\t\t\t\treturn prismIntersection(o);\n\t\t\t}\n\t\t\tif(o instanceof Obstacle) {\n\t\t\t\tObstacle obs = (Obstacle)o;\n\t\t\t\tArrayList<Point> ints = new ArrayList();\n\t\t\t\tif(obs.getRectangle().intersectsLine(x, y, xBound, yBound)) {\n\t\t\t\t\treturn obstacleIntersection(obs.getX(), obs.getY(), obs.width, obs.height);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(o instanceof Target) {\n\t\t\t\tTarget t = (Target)o;\n\t\t\t\tList<Point> points2 = getCircleLineIntersectionPoint(new Point(x, y), new Point(xBound, yBound), t.getCenter(), t.radius);\n\t\t\t\tif(points2.size() > 1) {\n\t\t\t\t\tPoint p1 = points2.get(0);\n\t\t\t\t\tPoint p2 = points2.get(1);\n\t\t\t\t\tif(Point2D.distance(p1.x, p1.y, x, y) < Point2D.distance(p2.x, p2.y, x, y) && line.intersects(p1.x - 2, p1.y - 2, 4, 4))\n\t\t\t\t\t\treturn p1;\n\t\t\t\t\tif(Point2D.distance(p1.x, p1.y, x, y) > Point2D.distance(p2.x, p2.y, x, y) && line.intersects(p2.x - 2, p2.y - 2, 4, 4))\n\t\t\t\t\t\treturn p2;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn null ;\n\t\t}\n\t\telse {\n\t\t\tLineEquations a = new LineEquations(ax.xBound1, ax.yBound1, ax.xBound2, ax.yBound2);\n\t\t\tint intX = (int)a.getIntersectionX(r);\n\t\t\tint intY = (int)a.getIntersectionY(r);\n\t\t\tif(Line2D.linesIntersect((double)x, (double)y, (double) xBound, (double) yBound, (double) ax.xBound1, (double) ax.yBound1, (double) ax.xBound2, (double) ax.yBound2))\n\t\t\t\treturn ( new Point(intX, intY) );\n\t\t\treturn null;\n\t\t}\n\n\t}", "title": "" }, { "docid": "da88541e68cab6cc559abc03bddbf63b", "score": "0.56166077", "text": "private void checkLineCollision() {\n float length = (float) Math.sqrt(direction[0] * direction[0] + direction[1] * direction[1]);\n //loop through the grid\n for (int i = 0; i < getGrid().getWidth(); i++) {\n for (int j = 0; j < getGrid().getWidth(); j++) {\n if (getGrid().isInnerborder(i, j) || getGrid().isOuterborder(i, j)) {\n float dx = getCoordinate(0) - i;\n float dy = getCoordinate(1) - j;\n float lengthNew = (float) Math.sqrt(dx * dx + dy * dy);\n //if gridpoint is closer to the qix than COLLISIONSIZE revert the qix\n if (lengthNew < COLLISIONSIZE) {\n dx /= lengthNew;\n dy /= lengthNew;\n dx *= length;\n dy *= length;\n setDirection(dx, 0);\n setDirection(dy, 1);\n return;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "394b465c9c7e3173366c902c1489a843", "score": "0.55839753", "text": "synchronized public Point getLastCollision() {\n\t\treturn lastCollision;\n\t}", "title": "" }, { "docid": "73c3a3ecae3b4ca556cb77831b8c256a", "score": "0.55804485", "text": "public Point closestIntersectionToStartOfLine(Rectangle rect) {\r\n List<Point> points = rect.intersectionPoints(this);\r\n\r\n if (points.isEmpty()) {\r\n return null;\r\n } else {\r\n Point currentP = points.get(0);\r\n Point newP = null;\r\n for (int i = 1; i < points.size(); i++) {\r\n newP = points.get(i);\r\n if (currentP.distance(this.start()) > newP.distance(this.start())) {\r\n currentP = newP;\r\n }\r\n }\r\n return currentP;\r\n }\r\n }", "title": "" }, { "docid": "5face24bf1d308f9eaf90a1872c51183", "score": "0.5547139", "text": "public abstract void collide(Object object, ListIterator thisObject, ListIterator collidedObject);", "title": "" }, { "docid": "0444afbf4ebe679aea5593c82e00a1be", "score": "0.551015", "text": "public Point intersectionWith(Line other) {\n if (this.isIntersecting(other)) {\n double det1And2 = det(this.start.getX(), this.start.getY(), this.end.getX(), this.end.getY());\n double det3And4 = det(other.start.getX(), other.start.getY(), other.end.getX(), other.end.getY());\n double x1LessX2 = this.start.getX() - this.end.getX();\n double y1LessY2 = this.start.getY() - this.end.getY();\n double x3LessX4 = other.start.getX() - other.end.getX();\n double y3LessY4 = other.start.getY() - other.end.getY();\n double det1Less2And3Less4 = det(x1LessX2, y1LessY2, x3LessX4, y3LessY4);\n if (det1Less2And3Less4 == 0) {\n // the denominator is zero so the lines are parallel and there's either\n // no solution (or multiple solutions if the lines overlap) so return null.\n return null;\n }\n double x = (det(det1And2, x1LessX2, det3And4, x3LessX4) / det1Less2And3Less4);\n double y = (det(det1And2, y1LessY2, det3And4, y3LessY4) / det1Less2And3Less4);\n return new Point(x, y);\n }\n return null;\n }", "title": "" }, { "docid": "5cbde59f68094ccdcff3d807206495c0", "score": "0.5488219", "text": "public Point closestIntersectionToStartOfLine(Rectangle rect) {\n if (rect.intersectionPoints(this).isEmpty()) {\n return null;\n } else {\n Point closestIntersectionPoint = rect.intersectionPoints(this).get(0);\n for (int i = 0; i < rect.intersectionPoints(this).size(); i++) {\n if (this.start().distance(rect.intersectionPoints(this).get(i))\n < this.start().distance(closestIntersectionPoint)) {\n closestIntersectionPoint = rect.intersectionPoints(this).get(i);\n }\n }\n return closestIntersectionPoint;\n }\n }", "title": "" }, { "docid": "092d08df4270d3dc53b9020218d20a28", "score": "0.54862994", "text": "public Point closestIntersectionToStartOfLine(Rectangle rect) {\n List<Point> interPoints = rect.intersectionPoints(this);\n //no intersections\n if (interPoints.isEmpty()) {\n return null;\n }\n //1 intersection\n if (interPoints.size() == 1) {\n return interPoints.get(0);\n }\n //more than 1 intersection\n Point closestInter = interPoints.get(0);\n for (int i = 0; i < interPoints.size(); i++) {\n //find shortest distance\n if (interPoints.get(i).distance(this.start) <= closestInter.distance(this.start)) {\n closestInter = interPoints.get(i);\n }\n }\n return closestInter;\n }", "title": "" }, { "docid": "6cc9a38f544666627dfa3ff4c15b243e", "score": "0.5456099", "text": "private Intersection[] intersect(RectTile tile, Line line)\n {\n if (line == null)\n {\n String msg = Logging.getMessage(\"nullValue.LineIsNull\");\n Logging.logger().severe(msg);\n throw new IllegalArgumentException(msg);\n }\n\n if (tile.ri.vertices == null)\n return null;\n\n // Compute 'vertical' plane perpendicular to the ground, that contains the ray\n Vec4 normalV = line.getDirection().cross3(globe.computeSurfaceNormalAtPoint(line.getOrigin()));\n Plane verticalPlane = new Plane(normalV.x(), normalV.y(), normalV.z(), -line.getOrigin().dot3(normalV));\n if (!tile.getExtent().intersects(verticalPlane))\n return null;\n\n // Compute 'horizontal' plane perpendicular to the vertical plane, that contains the ray\n Vec4 normalH = line.getDirection().cross3(normalV);\n Plane horizontalPlane = new Plane(normalH.x(), normalH.y(), normalH.z(), -line.getOrigin().dot3(normalH));\n if (!tile.getExtent().intersects(horizontalPlane))\n return null;\n\n Intersection[] hits;\n ArrayList<Intersection> list = new ArrayList<Intersection>();\n\n int[] indices = new int[tile.ri.indices.limit()];\n double[] coords = new double[tile.ri.vertices.limit()];\n tile.ri.indices.rewind();\n tile.ri.vertices.rewind();\n tile.ri.indices.get(indices, 0, indices.length);\n tile.ri.vertices.get(coords, 0, coords.length);\n tile.ri.indices.rewind();\n tile.ri.vertices.rewind();\n\n int trianglesNum = tile.ri.indices.capacity() - 2;\n double centerX = tile.ri.referenceCenter.x;\n double centerY = tile.ri.referenceCenter.y;\n double centerZ = tile.ri.referenceCenter.z;\n\n // Compute maximum cell size based on tile delta lat, density and globe radius\n double cellSide = tile.getSector().getDeltaLatRadians() * globe.getRadius() / density;\n double maxCellRadius = Math.sqrt(cellSide * cellSide * 2) / 2; // half cell diagonal\n\n // Compute maximum elevation difference - assume cylinder as Extent\n double elevationSpan = ((Cylinder)tile.getExtent()).getCylinderHeight();\n\n // TODO: ignore back facing triangles?\n // Loop through all tile cells - triangle pairs\n int startIndice = (density + 2) * 2 + 6; // skip firts skirt row and a couple degenerate cells\n int endIndice = trianglesNum - startIndice; // ignore last skirt row and a couple degenerate cells\n int k = -1;\n for (int i = startIndice; i < endIndice; i += 2)\n {\n // Skip skirts and degenerate triangle cells - based on indice sequence.\n k = k == density - 1 ? -4 : k + 1; // density x terrain cells interleaved with 4 skirt and degenerate cells.\n if (k < 0)\n continue;\n\n // Triangle pair diagonal - v1 & v2\n int vIndex = 3 * indices[i + 1];\n Vec4 v1 = new Vec4(\n coords[vIndex++] + centerX,\n coords[vIndex++] + centerY,\n coords[vIndex] + centerZ);\n\n vIndex = 3 * indices[i + 2];\n Vec4 v2 = new Vec4(\n coords[vIndex++] + centerX,\n coords[vIndex++] + centerY,\n coords[vIndex] + centerZ);\n\n Vec4 cellCenter = Vec4.mix3(.5, v1, v2);\n\n // Test cell center distance to vertical plane\n if (Math.abs(verticalPlane.distanceTo(cellCenter)) > maxCellRadius)\n continue;\n\n // Test cell center distance to horizontal plane\n if (Math.abs(horizontalPlane.distanceTo(cellCenter)) > elevationSpan)\n continue;\n\n // Prepare to test triangles - get other two vertices v0 & v3\n Vec4 p;\n vIndex = 3 * indices[i];\n Vec4 v0 = new Vec4(\n coords[vIndex++] + centerX,\n coords[vIndex++] + centerY,\n coords[vIndex] + centerZ);\n\n vIndex = 3 * indices[i + 3];\n Vec4 v3 = new Vec4(\n coords[vIndex++] + centerX,\n coords[vIndex++] + centerY,\n coords[vIndex] + centerZ);\n\n // Test triangle 1 intersection w ray\n Triangle t = new Triangle(v0, v1, v2);\n if ((p = t.intersect(line)) != null)\n {\n list.add(new Intersection(p, false));\n }\n\n // Test triangle 2 intersection w ray\n t = new Triangle(v1, v2, v3);\n if ((p = t.intersect(line)) != null)\n {\n list.add(new Intersection(p, false));\n }\n }\n\n int numHits = list.size();\n if (numHits == 0)\n return null;\n\n hits = new Intersection[numHits];\n list.toArray(hits);\n\n final Vec4 origin = line.getOrigin();\n Arrays.sort(hits, new Comparator<Intersection>()\n {\n public int compare(Intersection i1, Intersection i2)\n {\n if (i1 == null && i2 == null)\n return 0;\n if (i2 == null)\n return -1;\n if (i1 == null)\n return 1;\n\n Vec4 v1 = i1.getIntersectionPoint();\n Vec4 v2 = i2.getIntersectionPoint();\n double d1 = origin.distanceTo3(v1);\n double d2 = origin.distanceTo3(v2);\n return Double.compare(d1, d2);\n }\n });\n\n return hits;\n }", "title": "" }, { "docid": "91b85b6c6951f66e66594e91238c8d78", "score": "0.54525065", "text": "@Override\n public void didCollideWith(Entity e) {\n Rectangle2D.Double intersectionBounds = new Rectangle2D.Double();\n Rectangle2D.intersect(getHitbox(), e.getHitbox(), intersectionBounds);\n Point2D.Double d = Utilities.invert(Utilities.normalize(getVelocity()));\n\n while (getHitbox().intersects(e.getHitbox())) {\n moveBy(d);\n }\n\n if (intersectionBounds.getMinY() == e.getHitbox().getBounds().getMinY() && canCollideWith(e)) {\n // hit the top of the object\n hitGround();\n } else if (intersectionBounds.getMaxY() == e.getHitbox().getBounds().getMaxY()) {\n // hit the bottom of the object\n velocity.y = 0;\n } else if (intersectionBounds.getMinX() == e.getHitbox().getBounds().getMinX()) {\n // hit the right of the object\n velocity.x = 0;\n } else if (intersectionBounds.getMaxX() == e.getHitbox().getBounds().getMaxX()) {\n // hit the left of the object\n velocity.x = 0;\n }\n }", "title": "" }, { "docid": "bed5187e485dc0254e5d941655812687", "score": "0.5449644", "text": "public Point closestIntersectionToStartOfLine(Rectangle rect) {\n List<Point> list = new ArrayList<Point>();\n Line line = new Line(this.start, this.end);\n\n list = rect.intersectionPoints(line); // might be problematic\n\n if (list.isEmpty()) {\n return null;\n }\n int listIndex = list.size();\n double distance = list.get(0).distance(this.start);\n Point minDistancePoint = list.get(0);\n for (int i = 0; i < listIndex; i++) {\n double temp = list.get(i).distance(this.start);\n if (temp <= distance) {\n distance = temp;\n minDistancePoint = list.get(i);\n }\n }\n return minDistancePoint;\n }", "title": "" }, { "docid": "68de47324d1f568084957360602934ff", "score": "0.5438738", "text": "public Point intersectionWith(Line other) {\r\n double x;\r\n double y;\r\n if (!(this.isIntersecting(other))) {\r\n return null;\r\n }\r\n\r\n // If lines are parallel\r\n if (this.slope() == other.slope()) {\r\n\r\n // Check if lines are vertical\r\n if (this.slope() == Double.POSITIVE_INFINITY) {\r\n\r\n // If lines are uniting\r\n if ((Math.min(this.start().getY(), this.end().getY())\r\n < Math.max(other.start().getY(), other.end().getY()))\r\n && (Math.max(this.start().getY(), this.end().getY())\r\n > Math.min(other.start().getY(), other.end().getY()))) {\r\n return null;\r\n\r\n // Lines have one intersection point\r\n } else if (Math.min(this.start().getY(), this.end().getY())\r\n == Math.max(other.start().getY(), other.end().getY())) {\r\n if (this.start().getY() < this.end().getY()) {\r\n return this.start();\r\n } else {\r\n return this.end();\r\n }\r\n } else {\r\n if (this.start().getY() > this.end().getY()) {\r\n return this.start();\r\n } else {\r\n return this.end();\r\n }\r\n }\r\n\r\n // Otherwise - not vertical\r\n } else {\r\n\r\n // If lines are uniting\r\n if ((Math.min(this.start().getX(), this.end().getX())\r\n < Math.max(other.start().getX(), other.end().getX()))\r\n && (Math.max(this.start().getX(), this.end().getX())\r\n > Math.min(other.start().getX(), other.end().getX()))) {\r\n return null;\r\n\r\n // Lines have one intersection point\r\n } else if (Math.min(this.start().getX(), this.end().getX())\r\n == Math.max(other.start().getX(), other.end().getX())) {\r\n if (this.start().getX() < this.end().getX()) {\r\n return this.start();\r\n } else {\r\n return this.end();\r\n }\r\n } else {\r\n if (this.start().getX() > this.end().getX()) {\r\n return this.start();\r\n } else {\r\n return this.end();\r\n }\r\n }\r\n }\r\n } else {\r\n\r\n // If one line is vertical\r\n if (this.slope() == Double.POSITIVE_INFINITY) {\r\n x = this.equation();\r\n y = other.slope() * x + other.equation();\r\n } else if (other.slope() == Double.POSITIVE_INFINITY) {\r\n x = other.equation();\r\n y = this.slope() * x + this.equation();\r\n\r\n // If none of the lines are vertical\r\n } else {\r\n x = ((-1) * this.equation() + other.equation()) / (this.slope() - other.slope());\r\n y = this.slope() * x + this.equation();\r\n }\r\n return new Point(x, y);\r\n }\r\n }", "title": "" }, { "docid": "ff692f10460795f36aef0d2601b77d5d", "score": "0.5411317", "text": "private static float MoveBackToCollisionPoint(float frameDuration, Ship object1, Actor object2, float distanceAtFrameEnd, float collisionDistance)\n\t{\n\t float object1PosAtFrameStart_X = (float)(object1.position.x - object1.heading.x * frameDuration);\n\t float object1PosAtFrameStart_Y = (float)(object1.position.y - object1.heading.y * frameDuration);\n\t float object1PosAtFrameStart_Z = (float)(object1.position.z - object1.heading.z * frameDuration);\n\t Vector3 object1PosAtFrameStart = new Vector3(object1PosAtFrameStart_X, object1PosAtFrameStart_Y, object1PosAtFrameStart_Z);\n\n\t float object2PosAtFrameStart_X = (float)(object2.position.x - object2.heading.x * frameDuration);\n\t float object2PosAtFrameStart_Y = (float)(object2.position.y - object2.heading.y * frameDuration);\n\t float object2PosAtFrameStart_Z = (float)(object2.position.z - object2.heading.z * frameDuration);\n\t Vector3 object2PosAtFrameStart = new Vector3(object2PosAtFrameStart_X, object2PosAtFrameStart_Y, object2PosAtFrameStart_Z);\n\n\t // Calculate the distance between the objects at the start of the frame.\n\t Vector3 differenceAtFrameStart = object2PosAtFrameStart.sub(object1PosAtFrameStart);\n\t float distanceAtFrameStart = differenceAtFrameStart.len();\n\n\t // Calculate the total change in distance during the frame, and the required change to reach the collision.\n\t float distanceTotalDelta = distanceAtFrameEnd - distanceAtFrameStart;\n\t float distanceDeltaToCollision = collisionDistance - distanceAtFrameStart;\n\n\t // Calculate the percentage change to the collision and after the collision.\n\t float percentageDeltaToCollision = distanceDeltaToCollision / distanceTotalDelta;\n\t float percentageDeltaAfterCollision = 1 - percentageDeltaToCollision;\n\n\t // Calculte the time before and after the collision in the frame.\n\t double millisecondsToCollision = frameDuration * percentageDeltaToCollision;\n\t float millisecondsAfterCollision = (float)(frameDuration * percentageDeltaAfterCollision);\n\n\t // Calculate and move the objects to their positions at the point of collision.\n\t float object1PosAtCollision_X = (float)(object1PosAtFrameStart_X + object1.heading.x * millisecondsToCollision);\n\t float object1PosAtCollision_Y = (float)(object1PosAtFrameStart_Y + object1.heading.y * millisecondsToCollision);\n\t float object1PosAtCollision_Z = (float)(object1PosAtFrameStart_Z + object1.heading.z * millisecondsToCollision);\n\t Vector3 object1PosAtCollision = new Vector3(object1PosAtCollision_X, object1PosAtCollision_Y, object1PosAtCollision_Z);\n\t object1.position=(object1PosAtCollision);\n\n\t float object2PosAtCollision_X = (float)(object2PosAtFrameStart_X + object2.heading.x * millisecondsToCollision);\n\t float object2PosAtCollision_Y = (float)(object2PosAtFrameStart_Y + object2.heading.y * millisecondsToCollision);\n\t float object2PosAtCollision_Z = (float)(object2PosAtFrameStart_Y + object2.heading.z * millisecondsToCollision);\n\t Vector3 object2PosAtCollision = new Vector3(object2PosAtCollision_X, object2PosAtCollision_Y, object2PosAtCollision_Z);\n\t object2.position=(object2PosAtCollision);\n\n\t return millisecondsAfterCollision;\n\t}", "title": "" }, { "docid": "ea85b03edab387c7997356f937bc395e", "score": "0.53994584", "text": "public Obstacle rectCollide(Rect rect){\n for(Obstacle ob : obstacles)\n if(ob.rectCollide(rect))\n return ob;\n return null;\n }", "title": "" }, { "docid": "43c6765e976552c7765524fa5eaeb63e", "score": "0.53948945", "text": "public Point closestIntersectionToStartOfLine(Rectangle rect) {\n java.util.List<Point> points = rect.intersectionPoints(this);\n\n // if this line does not intersect with the rectangle\n if (points.isEmpty()) {\n return null;\n }\n\n Point closestPoint = points.get(0);\n for (int i = 1; i < points.size(); i++) {\n if (this.start.distance(points.get(i)) < this.start.distance(closestPoint)) {\n closestPoint = points.get(i);\n }\n }\n return closestPoint;\n }", "title": "" }, { "docid": "8c34dc7c9225b724e595ccc5dd4f603f", "score": "0.53710157", "text": "public CollisionInfo getIntersection(Triangle other) {\r\n \t\t\tfloat d_0_0 = other.normal.dot(a) - other.intercept;\r\n \t\t\tfloat d_0_1 = other.normal.dot(b) - other.intercept;\r\n \t\t\tfloat d_0_2 = other.normal.dot(c) - other.intercept;\r\n \t\t\tif (Math.abs(d_0_0) < EPSILON)\r\n \t\t\t\td_0_0 = 0;\r\n \t\t\tif (Math.abs(d_0_1) < EPSILON)\r\n \t\t\t\td_0_1 = 0;\r\n \t\t\tif (Math.abs(d_0_2) < EPSILON)\r\n \t\t\t\td_0_2 = 0;\r\n \t\t\tif (d_0_0 != 0 && d_0_1 != 0 && d_0_2 != 0 && Math.signum(d_0_0) == Math.signum(d_0_1) && Math.signum(d_0_1) == Math.signum(d_0_2))\r\n \t\t\t\treturn null;\r\n \t\t\t\r\n \t\t\tfloat d_1_0 = normal.dot(other.a) - intercept;\r\n \t\t\tfloat d_1_1 = normal.dot(other.b) - intercept;\r\n \t\t\tfloat d_1_2 = normal.dot(other.c) - intercept;\r\n \t\t\tif (Math.abs(d_1_0) < EPSILON)\r\n \t\t\t\td_1_0 = 0;\r\n \t\t\tif (Math.abs(d_1_1) < EPSILON)\r\n \t\t\t\td_1_1 = 0;\r\n \t\t\tif (Math.abs(d_1_2) < EPSILON)\r\n \t\t\t\td_1_2 = 0;\r\n \t\t\tif (d_1_0 != 0 && d_1_1 != 0 && d_1_2 != 0 && Math.signum(d_1_0) == Math.signum(d_1_1) && Math.signum(d_1_1) == Math.signum(d_1_2))\r\n \t\t\t\treturn null;\r\n \r\n \t\t\t// Coplanar, assume no collision\r\n \t\t\tif (d_0_0 == 0 && d_0_1 == 0 && d_0_2 == 0)\r\n \t\t\t\treturn null;\r\n \t\t\t\r\n \t\t\tLine line = calculateLineOfIntersection(other);\r\n \t\t\tTPair r0 = calculateRegionOfIntersection(line, d_0_0, d_0_1, d_0_2);\r\n \t\t\tTPair r1 = other.calculateRegionOfIntersection(line, d_1_0, d_1_1, d_1_2);\r\n \t\t\t\r\n \t\t\tif (r0.t1 < r1.t0 || r0.t0 > r1.t1)\r\n \t\t\t\treturn null;\r\n \t\t\t\r\n \t\t\tVector3f contactPoint = new Vector3f();\r\n \t\t\tif (r0.t0 >= r1.t0 && r0.t1 <= r1.t1)\r\n \t\t\t\tcontactPoint.scaleAdd((r0.t0 + r0.t1) / 2, line.direction, line.point);\r\n \t\t\telse if (r0.t0 <= r1.t0 && r0.t1 >= r1.t1)\r\n \t\t\t\tcontactPoint.scaleAdd((r1.t0 + r1.t1) / 2, line.direction, line.point);\r\n \t\t\telse if (r0.t0 < r1.t0)\r\n \t\t\t\tcontactPoint.scaleAdd((r0.t1 + r1.t0) / 2, line.direction, line.point);\r\n \t\t\telse\r\n \t\t\t\tcontactPoint.scaleAdd((r0.t0 + r1.t1) / 2, line.direction, line.point);\r\n \t\t\t\r\n \t\t\tassert(Math.abs(normal.dot(contactPoint) - intercept) < 0.01);\r\n \t\t\tassert(Math.abs(other.normal.dot(contactPoint) - other.intercept) < 0.01);\r\n \t\t\t\r\n \t\t\tfloat penetration = Float.NEGATIVE_INFINITY;\r\n \t\t\tboolean useThisNormal = false;\r\n \t\t\tif (d_0_0 <= 0 && d_0_0 >= penetration)\r\n \t\t\t\tpenetration = d_0_0;\r\n \t\t\tif (d_0_1 <= 0 && d_0_1 >= penetration)\r\n \t\t\t\tpenetration = d_0_1;\r\n \t\t\tif (d_0_2 <= 0 && d_0_2 >= penetration)\r\n \t\t\t\tpenetration = d_0_2;\r\n \t\t\tif (d_1_0 <= 0 && d_1_0 >= penetration) {\r\n \t\t\t\tpenetration = d_1_0;\r\n \t\t\t\tuseThisNormal = true;\r\n \t\t\t}\r\n \t\t\tif (d_1_1 <= 0 && d_1_1 >= penetration) {\r\n \t\t\t\tpenetration = d_1_1;\r\n \t\t\t\tuseThisNormal = true;\r\n \t\t\t}\r\n \t\t\tif (d_1_2 <= 0 && d_1_2 >= penetration) {\r\n \t\t\t\tpenetration = d_1_2;\r\n \t\t\t\tuseThisNormal = true;\r\n \t\t\t}\r\n \t\t\tVector3f contactNormal;\r\n \t\t\tif (useThisNormal)\r\n \t\t\t\tcontactNormal = new Vector3f(normal);\r\n \t\t\telse {\r\n \t\t\t\tcontactNormal = new Vector3f(other.normal);\r\n \t\t\t\tcontactNormal.negate();\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\treturn new CollisionInfo(contactPoint, contactNormal, -penetration);\r\n \t\t}", "title": "" }, { "docid": "ff233f3081dd3fb2326deab4a2795d38", "score": "0.5369244", "text": "public void collide(Entity entity) {\n/* 189 */ if (entity instanceof EntityBoat) {\n/* 190 */ if ((entity.getBoundingBox()).minY < (getBoundingBox()).maxY) {\n/* */ \n/* 192 */ if (!isSameVehicle(entity)) {\n/* 193 */ VehicleEntityCollisionEvent event = new VehicleEntityCollisionEvent((Vehicle)getBukkitEntity(), (Entity)entity.getBukkitEntity());\n/* 194 */ this.world.getServer().getPluginManager().callEvent((Event)event);\n/* */ \n/* 196 */ if (event.isCancelled()) {\n/* */ return;\n/* */ }\n/* */ } \n/* */ \n/* 201 */ super.collide(entity);\n/* */ } \n/* 203 */ } else if ((entity.getBoundingBox()).minY <= (getBoundingBox()).minY) {\n/* */ \n/* 205 */ if (!isSameVehicle(entity)) {\n/* 206 */ VehicleEntityCollisionEvent event = new VehicleEntityCollisionEvent((Vehicle)getBukkitEntity(), (Entity)entity.getBukkitEntity());\n/* 207 */ this.world.getServer().getPluginManager().callEvent((Event)event);\n/* */ \n/* 209 */ if (event.isCancelled()) {\n/* */ return;\n/* */ }\n/* */ } \n/* */ \n/* 214 */ super.collide(entity);\n/* */ } \n/* */ }", "title": "" }, { "docid": "e41fd0d36babf5cff44a1ca88a2f35e8", "score": "0.5354721", "text": "public double[] getPositionCollisionBoundary(Object object) throws ModelException;", "title": "" }, { "docid": "dd72e7c37d6bf771ce97c6e26eca8910", "score": "0.53245884", "text": "public double getTimeCollisionBoundary(Object object) throws ModelException;", "title": "" }, { "docid": "688f2a5c9b33616a60493008f3273e01", "score": "0.5321817", "text": "static Point maxMovement(Circle mover, Point target, Shape obstacle) {\n Segment path = new Segment(mover.getCenter(), target);\n Point maxMove = target;\n \n if (obstacle instanceof Circle) {\n Circle obs = (Circle) obstacle;\n Segment obstacleToPath = perpendicularThrough(path, obs.getCenter());\n double distanceToPath = obstacleToPath.length();\n double distanceBetweenCenters = mover.getRadius() + obs.getRadius();\n \n if (distanceToPath > distanceBetweenCenters) {\n return target; // no collision\n }\n \n // TODO: rename variables\n // closest is the point on path closest to obstacle\n // stopPoint is where the center of mover will be after moving\n Point closest = obstacleToPath.getEnd();\n double distanceToStopPoint =\n sqrt(sq(distanceBetweenCenters) - sq(distanceToPath));\n maxMove =\n closest.translation(path.direction().reverse(), distanceToStopPoint);\n } else if (obstacle instanceof ConvexPolygon) {\n ConvexPolygon obs = (ConvexPolygon) obstacle;\n for (Point corner : obs.getCorners()) {\n Segment perp = perpendicularThrough(path, corner);\n double perpDistance = perp.length();\n if (perpDistance > mover.getRadius()) {\n continue;\n }\n \n Point closest = perp.getEnd();\n double centerDestinationToClosest =\n sqrt(sq(mover.getRadius()) - sq(perpDistance));\n Point centerDestination = closest.translation(\n path.direction().reverse(),\n centerDestinationToClosest\n );\n \n if (isShorterMovement(centerDestination, maxMove, path)) {\n maxMove = centerDestination;\n }\n }\n \n for (Segment side : obs.getSides()) {\n Point sidePathIntersection =\n lineIntersection(side, path);\n if (sidePathIntersection == null) {\n continue;\n }\n double sidePathAngle =\n interiorRadians(path.direction(), side.direction());\n double hypoteneuse = mover.getRadius() / sin(sidePathAngle);\n Point centerDestination = sidePathIntersection.translation(\n path.direction().reverse(),\n hypoteneuse\n );\n \n if (\n distance(mover.getCenter(), centerDestination) >\n distance(mover.getCenter(), sidePathIntersection)\n ) {\n continue; // side is facing the wrong way for a collision to occur\n }\n \n Segment destinationRadius =\n perpendicularThrough(side, centerDestination);\n \n if (!side.contains(destinationRadius.getEnd())) {\n continue;\n }\n \n if (isShorterMovement(centerDestination, maxMove, path)) {\n maxMove = centerDestination;\n }\n }\n }\n \n return maxMove;\n }", "title": "" }, { "docid": "8b3c50e9b7091299899c3be243e190c4", "score": "0.5311549", "text": "public Point collisionPoint() {\r\n return this.collisionPoint;\r\n }", "title": "" }, { "docid": "4c4df385c8669ee109a2ade3b6ea2be8", "score": "0.5294596", "text": "public Point determinePointOfIntersection(Node n){\n\t\tif (n instanceof Line){\n\t\t\tboolean linesDoIntersect;\n\t\t\t//4 points from 2 lines\n\t\t\t//call these points p and p2 for the 1st line\n\t\t\t//and q and q2 for the 2nd line\n\t\t\tPoint[] pPoints = LineOps.createPointsFromLine((Line)n);\n\t\t\tPoint p = pPoints[0];\n\t\t\tPoint p2 = pPoints[1];\n\t\t\tPoint[] qPoints = LineOps.createPointsFromLine(this);\n\t\t\tPoint q = qPoints[0];\n\t\t\tPoint q2 = qPoints[1];\n\t\t\t\n\t\t\tPoint r = LineOps.subtractPoints(p2, p);\n\t\t\tPoint s = LineOps.subtractPoints(q2, q);\n\n\t\t\tfloat uNumerator = LineOps.crossProduct(LineOps.subtractPoints(q, p), r);\n\t\t\tfloat denominator = LineOps.crossProduct(r, s);\n\n\t\t\tfloat u = uNumerator / denominator;\n\t\t\tfloat t = LineOps.crossProduct(LineOps.subtractPoints(q, p), s) / denominator;\n\n\t\t\tlinesDoIntersect = (t >= 0) && (t <= 1) && (u >= 0) && (u <= 1) && denominator != 0;\n\t\t\tif (linesDoIntersect){\n\t\t\t\t//calculate the point of intersection by figuring out how long along one of the lines...\n\t\t\t\t//we have to go to find the intersection\n\t\t\t\tPoint tr = new Point((int)(t*r.x),(int)(t*r.y));\n\t\t\t\treturn LineOps.addPoints(p,tr);\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "f87494f208eb0add77e1c788554bfa47", "score": "0.52701795", "text": "public GameObject detectCollisions(Rectangle r);", "title": "" }, { "docid": "70e7f1b09cbc428633ed508c2414f597", "score": "0.5262094", "text": "private void collisionCheck() {\n Iterator<Bullet> iterB = stage.bullets.iterator();\n while (iterB.hasNext()){\n Bullet bullet = iterB.next();\n if(bullet.hitbox.overlaps(this.hitbox)) {\n if(bullet.team != this.team) {\n iterB.remove();\n }\n }\n }\n\n Iterator<Ship> iterS = stage.ships.iterator();\n while (iterS.hasNext()){\n Ship ship = iterS.next();\n if(ship.hitbox.overlaps(this.hitbox)) {\n if(ship.team != this.team) {\n ship.hp = 0;\n }\n }\n }\n }", "title": "" }, { "docid": "3be3b7ec28e2e8ff8e455513c865929e", "score": "0.5261381", "text": "public interface CollisionManager {\r\n\t\r\n /**\r\n * Retrieve the intersecting object under the given node.\r\n * @param ray The <code>Ray</code> to check with.\r\n * @param root The root <code>Node</code> to check against.\r\n * @param reference The <code>Class</code> reference of the expected object.\r\n * @param iterate True if all intersected objects should be checked. Otherwise only the first is checked.\r\n * @return The <code>Spatial</code> that is of the given reference <code>Class</code>.\r\n */\r\n public Spatial getIntersectObject(Ray ray, Node root, Class<? extends Spatial> reference, boolean iterate);\r\n\r\n /**\r\n * Retrieve the intersection point with the given ray and spatial in either\r\n * world coordinate system or local coordinate system of the given spatial\r\n * based on the given flag value. The intersection result is stored in the\r\n * given vector and returned. If the given store is null, a new vector instance\r\n * is created and returned with the intersection result.\r\n * @param ray The <code>Ray</code> to check with.\r\n * @param parent The parent <code>Spatial</code> to check against.\r\n * @param store The <code>Vector3f</code> to store the intersection result in.\r\n * @param local True if the intersection should be converted to local coordinate system of the parent.\r\n * @return If hit, the <code>Vector3f</code> intersection is returned. Otherwise <code>null</code> is returned.\r\n */\r\n public Vector3f getIntersection(Ray ray, Spatial parent, Vector3f store, boolean local);\r\n \r\n /**\r\n * Retrieve the valid destination point based on the given coordinate values.\r\n * @param x1 The x coordinate of the starting position in the given spatial's local coordinate system.\r\n * @param z1 The z coordinate of the starting position in the given spatial's local coordinate system.\r\n * @param x2 The x coordinate of the clicking position in the given spatial's local coordinate system.\r\n * @param z2 The z coordinate of the clicking position in the given spatial's local coordinate system.\r\n * @param spatial The <code>Spatial</code> instance to check against.\r\n * @return The valid <code>Vector3f</code> destination.\r\n */\r\n public Vector3f getDestination(float x1, float z1, float x2, float z2, Spatial spatial);\r\n\r\n /**\r\n * Validate if there is any static objects between the given points.\r\n * @param x1 The x coordinate of the starting position in the given spatial's local coordinate system.\r\n * @param z1 The z coordinate of the starting position in the given spatial's local coordinate system.\r\n * @param x2 The x coordinate of the clicking position in the given spatial's local coordinate system.\r\n * @param z2 The z coordinate of the clicking position in the given spatial's local coordinate system.\r\n * @param spatial The <code>Spatial</code> instance to check against.\r\n * @return True if there is no occlusion objects. False otherwise.\r\n */\r\n public boolean validate(float x1, float z1, float x2, float z2, Spatial spatial);\r\n}", "title": "" }, { "docid": "e01c74f61d8defe393ca19784b3a769a", "score": "0.5258943", "text": "public CollisionBox collide(CollisionBox box){\n for (CollisionBox b : list) {\n if (b==box)\n continue;\n if (checkCollision(box, b))\n return b;\n }\n return null;\n }", "title": "" }, { "docid": "fa2a878ef745e23860844a7e057a2c4e", "score": "0.5240057", "text": "public boolean isHeadCollidingWithBody() {\n \tfor (int i = 1; i < snake.size(); i++) {\n \t\tif (snake.get(i).getLocation().equals(head.getLocation())){\n \t\t\treturn true;\n \t\t}\n \t}\n \n return false;\n }", "title": "" }, { "docid": "244b99a555e35b469af7a7460f59441f", "score": "0.5220238", "text": "public Vector3f getCollisionVector();", "title": "" }, { "docid": "c0e66e4f46fad3ddd4f9febb9200b99d", "score": "0.52073056", "text": "public void collision()\r\n\t{\n\t\tit=myu.walls.iterator();\r\n\t\t\t\r\n\t\t//gravity\r\n\t\t\t\r\n\t\t\t\r\n\t\t//for(int i=0;i<col.size();i++)\r\n\t\twhile(it.hasNext())\r\n\t\t{\r\n\t\t\tc=(Collider) it.next();\r\n\t\t\tlowleft.x=c.x; lowleft.y=c.y;\r\n\t\t\ttopleft.x=c.x; topleft.y=c.y+c.height;\r\n\t\t\tlowright.x=c.x+c.width; lowright.y=c.y;\r\n\t\t\ttopright.x=c.x+c.width; topright.y=c.y+c.height;\r\n\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//check x-axis \r\n\t\t\t//left collision\t\t\t\r\n\t\t\t//if(Math.abs(pos.x-lowright.x)<10) //per evitare concorrenze tra attivazione collisione laterale o top\\bottom, si attiva quella pił vicina\r\n\t\t\tif(pos.x<=lowright.x && pos.x>lowleft.x)\r\n\t\t\t{\t\r\n\t\t\t\tif((pos.y>=lowright.y&&pos.y<topright.y)||(pos.y+ph>lowright.y&&pos.y+ph<=topright.y))\r\n\t\t\t\t{\r\n\t\t\t\t\talive = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//right collision\r\n\t\t\t//if(Math.abs(pos.x+pw-lowleft.x)<10)\r\n\t\t\tif(pos.x+pw>=lowleft.x&&pos.x+pw<lowright.x)\r\n\t\t\t{\t//Gdx.app.log(\"a\",\"a\"+c.name);\r\n\t\t\t\tif((pos.y>=lowleft.y&&pos.y<topleft.y)||((pos.y+ph>lowleft.y)&&(pos.y+ph<topleft.y)))\r\n\t\t\t\t{\r\n\t\t\t\t\talive = false;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t\tif(ascending)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(Math.abs(pos.y+ph-lowleft.y)<10)\r\n\t\t\t\t\t\tif((pos.y+ph>lowleft.y)&&(pos.y+ph<topleft.y))\r\n\t\t\t\t\t\t\tif(((pos.x>lowleft.x)&&(pos.x<lowright.x))||((pos.x+pw>lowleft.x)&&(pos.x+pw<lowright.x)))\r\n\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}\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t\tif(descending)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(Math.abs(pos.y-topleft.y)<10)\r\n\t\t\t\t\t\t\tif(pos.y<=topleft.y&&pos.y>lowleft.y)\r\n\t\t\t\t\t\t\t\tif((pos.x>=topleft.x && pos.x<=topright.x)||(pos.x+pw>=topleft.x&&pos.x+pw<=topright.x))\r\n\t\t\t\t\t\t\t\t{\r\n\t\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\t\t\r\n\t\t\t}*/\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eb51fcb1e221c63f395da72b8d29a32c", "score": "0.5188499", "text": "public static Intersection closestIntersectionBox(Point source, Point target, List<Wall> walls, Vec2Double objectSize, Debug debug){\r\n Point leftDownCorner = source.offset(-objectSize.x/2, -objectSize.y/2);\r\n Point leftUpCorner = leftDownCorner.offset(0, objectSize.y);\r\n Point rightUpCorner = leftDownCorner.offset(objectSize);\r\n Point rightDownCorner = leftDownCorner.offset(objectSize.x, 0);\r\n\r\n Point leftDownTarget = target.offset(-objectSize.x/2, -objectSize.y/2);\r\n Point leftUpTarget = leftDownTarget.offset(0, objectSize.y);\r\n Point rightUpTarget = leftDownTarget.offset(objectSize);\r\n Point rightDownTarget = leftDownTarget.offset(objectSize.x, 0);\r\n\r\n List<Pair<Point, Intersection>> intersections = new ArrayList<>(4);\r\n intersections.add(new Pair<>(leftDownCorner, closestIntersection(leftDownCorner, leftDownTarget, walls, debug)));\r\n intersections.add(new Pair<>(leftUpCorner, closestIntersection(leftUpCorner, leftUpTarget, walls, debug)));\r\n intersections.add(new Pair<>(rightUpCorner, closestIntersection(rightUpCorner, rightUpTarget, walls, debug)));\r\n intersections.add(new Pair<>(rightDownCorner, closestIntersection(rightDownCorner, rightDownTarget, walls, debug)));\r\n\r\n Pair<Point, Intersection> closest = null;\r\n for (int i = 0; i < intersections.size(); i++) {\r\n Pair<Point, Intersection> pointToInt = intersections.get(i);\r\n if(debug != null && pointToInt.another != null){\r\n //debug.draw(new CustomData.Rect(intersections.get(i).another.point, new Vec2Double(0.1f, 0.1f), ColorFloat.WHITE));\r\n }\r\n if(closest == null || closest.another == null || pointToInt.another != null\r\n && pointToInt.another.point.buildVector(pointToInt.one).length()\r\n < closest.another.point.buildVector(closest.one).length()){\r\n closest = pointToInt;\r\n }\r\n }\r\n\r\n if(closest == null || closest.another == null){\r\n return null;\r\n }\r\n\r\n Intersection centerPositionOnCol = null;\r\n if(closest.one == leftDownCorner){\r\n centerPositionOnCol = new Intersection(closest.another.point.offset(objectSize.x/2, objectSize.y/2), closest.another.wall);\r\n } else if(closest.one == leftUpCorner){\r\n centerPositionOnCol = new Intersection(closest.another.point.offset(objectSize.x/2, -objectSize.y/2), closest.another.wall);\r\n } else if(closest.one == rightUpCorner){\r\n centerPositionOnCol = new Intersection(closest.another.point.offset(-objectSize.x/2, -objectSize.y/2), closest.another.wall);\r\n } else if(closest.one == rightDownCorner) {\r\n centerPositionOnCol = new Intersection(closest.another.point.offset(-objectSize.x/2, objectSize.y/2), closest.another.wall);\r\n }\r\n\r\n return centerPositionOnCol;\r\n }", "title": "" }, { "docid": "1d00a3182a5734f0f1312287ae263d14", "score": "0.51809716", "text": "public Point intersectionWith(Line other) {\r\n if (this.start.getX() == this.end.getX() && other.start.getX() != other.end.getX()) {\r\n if ((other.start().getX() <= this.start.getX() && other.end.getX() >= this.start.getX())\r\n || (other.start().getX() >= this.start.getX() && other.end.getX() <= this.start.getX())) {\r\n double yOnLine = other.slope() * (this.start.getX() - other.start.getX()) + other.start.getY();\r\n if (yOnLine >= this.start.getY() && yOnLine <= this.end.getY()\r\n || yOnLine <= this.start.getY() && yOnLine >= this.end.getY()) {\r\n return new Point(this.start.getX(), yOnLine);\r\n }\r\n }\r\n }\r\n if (other.start.getX() == other.end.getX() && this.start.getX() != this.end.getX()) {\r\n if ((this.start().getX() >= other.start.getX() && this.end.getX() <= other.start.getX())\r\n || (this.start().getX() <= other.start.getX() && this.end.getX() >= other.start.getX())) {\r\n double yOnLine = this.slope() * (other.start.getX() - this.start.getX()) + this.start.getY();\r\n if (yOnLine >= other.start.getY() && yOnLine <= other.end.getY()\r\n || yOnLine <= other.start.getY() && yOnLine >= other.end.getY()) {\r\n return new Point(other.start.getX(), yOnLine);\r\n }\r\n }\r\n }\r\n if (this.slope() == other.slope()) {\r\n return null;\r\n }\r\n double intersectX = (this.slope() * this.start.getX() - other.slope() * other.end.getX() + other.end.getY()\r\n - this.start.getY()) / (this.slope() - other.slope());\r\n double intersectY = ((this.slope() * intersectX) - (this.slope() * this.start.getX())) + this.start.getY();\r\n Point intersectPoint = new Point(intersectX, intersectY);\r\n if (intersectPoint.getX() <= this.maxPoint().getX() && intersectPoint.getX() >= this.minPoint().getX()\r\n && intersectPoint.getX() <= other.maxPoint().getX()\r\n && intersectPoint.getX() >= other.minPoint().getX()) {\r\n return intersectPoint;\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "562c65a4eacfb5578131ff2b9b6fcbe9", "score": "0.5170602", "text": "public interface CollisionComponent {\n\n /**\n * Used to get the entity associated.\n * @return {@link Entity}\n */\n Entity getFollowedEntity();\n /**\n * Used to determine the area occupied by the entity.\n * @return a {@link Rectangle}\n */\n Rectangle getHitbox();\n /**\n * Used to determine the area occupied by the entity \n * while it is moving up.\n * @return a {@link Rectangle}\n */\n Rectangle getTopHitbox();\n /**\n * Used to determine the area occupied by the entity\n * while it is moving down.\n * @return a {@link Rectangle}\n */\n Rectangle getBottomHitbox();\n /**\n * Used to determine the area occupied by the entity\n * while it is moving left.\n * @return a {@link Rectangle}\n */\n Rectangle getLeftHitbox();\n /**\n * Used to determine the area occupied by the entity\n * while it is moving right.\n * @return a {@link Rectangle}\n */\n Rectangle getRightHitbox();\n /**\n * Used to notify the entity a {@link Collision}.\n * @param c {@link Collision}\n */\n void notifyCollision(Collision c);\n}", "title": "" }, { "docid": "ddc084f67cf509fcdd8b4239b417ca30", "score": "0.51626396", "text": "public Collidable collisionObject() {\r\n return this.colidObj;\r\n }", "title": "" }, { "docid": "368cb1a1762db5504c8eb1e4690fdbf6", "score": "0.5154607", "text": "public interface Intersectable {\n\n /**\n * @param r ray to check intersection with\n * @return null if ray does not hit, or intersection if it does.\n */\n Intersection intersectRay(Ray r);\n\n static Intersection closestIntersection(Ray r, List<? extends Intersectable> renderableList) {\n Intersection closest = null;\n\n // Loop over all the objects we could intersect with\n for (Intersectable renderable : renderableList) {\n Intersection intersection = renderable.intersectRay(r);\n\n // if we intersect\n if (intersection != null) {\n\n // Check if object is closer as current closest object and greater than epsilon (usually self intersection)\n if ((closest == null || intersection.distance < closest.distance) && intersection.distance > 1e-2) {\n closest = intersection;\n }\n }\n }\n\n JRay.statistics.intersections += renderableList.size();\n\n return closest;\n }\n}", "title": "" }, { "docid": "f9b9aca838d44f0f02c7cbe7fa2db3c7", "score": "0.5148968", "text": "private int collideWithRay(Ray ray) {\n TempVars vars = TempVars.get();\n try {\n boolean notEntirelyClipped;\n Vector3f diff = vars.vect1.set(ray.origin).subtractLocal(this.center);\n Vector3f direction = vars.vect2.set(ray.direction);\n float[] t = vars.fWdU;\n t[0] = 0.0f;\n t[1] = Float.POSITIVE_INFINITY;\n float saveT0 = t[0];\n float saveT1 = t[1];\n boolean bl = notEntirelyClipped = this.clip(direction.x, - diff.x - this.xExtent, t) && this.clip(- direction.x, diff.x - this.xExtent, t) && this.clip(direction.y, - diff.y - this.yExtent, t) && this.clip(- direction.y, diff.y - this.yExtent, t) && this.clip(direction.z, - diff.z - this.zExtent, t) && this.clip(- direction.z, diff.z - this.zExtent, t);\n if (notEntirelyClipped && (t[0] != saveT0 || t[1] != saveT1)) {\n if (t[1] > t[0]) {\n int n = 2;\n return n;\n }\n int n = 1;\n return n;\n }\n int n = 0;\n return n;\n }\n finally {\n vars.release();\n }\n }", "title": "" }, { "docid": "b2757dfe13b9474f1d651bc62b0bc35a", "score": "0.5137941", "text": "public Entity getTouching(Entity entity) {\r\n\t\tfor (Entity e : entities) {\r\n\t\t\tif(entity.isTouching(e) && entity != e) {\r\n\t\t\t\treturn e;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "761dab800b192418e9333e258dbfeaf1", "score": "0.51292515", "text": "public AxisAlignedBB getCollisionBox(Entity p_70114_1_) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "441cc15143696ebcabba659b1e00d3c3", "score": "0.5124353", "text": "public CollisionGeometry getFirstCollider(CollisionGeometry g) {\n\t\tint rad = getTileRadius(g.getRadius());\n\t\tint px = getTileX(g.getCenterX());\n\t\tint py = getTileY(g.getCenterY());\n\t\t\n\t\tfor (int x = -rad; x <= rad; x++) {\n\t\t\tfor (int y = -rad; y <= rad; y++) {\n\t\t\t\tint tileX = px+x;\n\t\t\t\tint tileY = py+y;\n\t\t\t\t\n\t\t\t\tfor (CollisionGeometry other : getCollisionTile(tileX, tileY).geometries) {\n\t\t\t\t\tif (other == g) continue;\n\t\t\t\t\tif (other.owner == g.owner) continue;\n\t\t\t\t\t\n\t\t\t\t\tfloat dx = g.getCenterX() - other.getCenterX();\n\t\t\t\t\tfloat dy = g.getCenterY() - other.getCenterY();\n\t\t\t\t\t\n\t\t\t\t\tfloat dr = g.getRadius() + other.getRadius();\n\t\t\t\t\t\n\t\t\t\t\tif (dx*dx + dy*dy < dr*dr && canCollide(g, other) && g.isIntersectingWith(other)) { // Shortcut Evaluation - yay\n\t\t\t\t\t\treturn other;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (tileX >= 0 && tileX < mapwidth && tileY >= 0 && tileY < mapheight) {\n\t\t\t\t\tCollisionGeometry other = tileCollisionBoxes[tileX][tileY];\n\t\t\t\t\tif (canCollide(g, other) && g.isIntersectingWith(other)) {\n\t\t\t\t\t\treturn other;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8b6ccd4eb3b0138ca53595284f807a72", "score": "0.51241744", "text": "public void collideWithTile(TileCollision tileCollision);", "title": "" }, { "docid": "3d6fad11588e1533bff6df0a99d0d5b5", "score": "0.51222175", "text": "public void collisionDetection() {\n int[] playerPosition = player.getPosition();\n ArrayList<Agent> toBeRemoved = new ArrayList<Agent>();\n\n for (Agent agent : this.agents) {\n int[] vampirePosition = agent.getPosition();\n if ((vampirePosition[0] == playerPosition[0]) &&\n (vampirePosition[1] == playerPosition[1])) {\n toBeRemoved.add(agent);\n }\n }\n this.agents.removeAll(toBeRemoved);\n this.vampires -= toBeRemoved.size();\n }", "title": "" }, { "docid": "572961a9cc559a751bf73280c051264f", "score": "0.51164734", "text": "public CollisionGeometry getFirstHardCollider(List<CollisionGeometry> g) {\n\t\tfor (CollisionGeometry geo : g) {\n\t\t\tCollisionGeometry result = getFirstHardCollider(geo);\n\t\t\tif (result != null)\n\t\t\t\treturn result;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7c9f1b36f1cc4cf540aecca8347e43ef", "score": "0.5112994", "text": "public interface Linecastable2D {\n\n /** Intersect the given line against the boundaries in this instance, returning a\n * list of all intersections in order of increasing position along the line. An empty\n * list is returned if no intersections are discovered.\n * @param line line the line to intersect\n * @return a list of computed intersections in order of increasing position\n * along the line\n */\n default List<LinecastPoint2D> linecast(final Line line) {\n return linecast(line.span());\n }\n\n /** Intersect the given line subset against the boundaries in this instance, returning\n * a list of all intersections in order of increasing position along the line. An empty\n * list is returned if no intersections are discovered.\n * @param subset line subset to intersect\n * @return a list of computed intersections in order of increasing position\n * along the line\n */\n List<LinecastPoint2D> linecast(LineConvexSubset subset);\n\n /** Intersect the given line against the boundaries in this instance, returning\n * the first intersection found when traveling in the direction of the line from\n * infinity.\n * @param line the line to intersect\n * @return the first intersection found or null if no intersection\n * is found\n */\n default LinecastPoint2D linecastFirst(final Line line) {\n return linecastFirst(line.span());\n }\n\n /** Intersect the given line subset against the boundaries in this instance, returning\n * the first intersection found when traveling in the direction of the line subset\n * from its start location.\n * @param subset line subset to intersect\n * @return the first intersection found or null if no intersection\n * is found\n */\n LinecastPoint2D linecastFirst(LineConvexSubset subset);\n}", "title": "" }, { "docid": "607e5b211edbffaf765703707f416b4c", "score": "0.51067", "text": "public static PathIntersection findIntersection(PathObject pathObject,\n float start1x, float start1z,\n float disp1x, float disp1z,\n float start2x, float start2z,\n float disp2x, float disp2z) {\n float det = disp2x * disp1z - disp2z * disp1x;\n float diffx = start2x - start1x;\n float diffz = start2z - start1z;\n if (det * det > 1.0f) {\n float invDet = 1.0f / det;\n float where1 = (disp2x * diffz - disp2z * diffx) * invDet;\n float where2 = (disp1x * diffz - disp1z * diffx) * invDet;\n if (where1 >= 0f && where1 <= 1.0f &&\n where2 >= 0f && where2 <= 1.0f)\n return new PathIntersection(pathObject, where1, where2, \n new MVVector(start2x, 0, start2z), \n new MVVector((start2x + disp2x), 0, (start2z + disp2z)));\n }\n return null;\n }", "title": "" }, { "docid": "aabaf83a519b19957bdc53c82d9717b1", "score": "0.50987387", "text": "protected void updatePos() {\n\t\tsuper.updatePos();\n\t\tfloat v = getSpeed();\n\t\tfloat diste, dists;\n\t\tCoords pos = getPos();\n\t\tRoad r = getRoad();\n\t\tdists = (float) Math.sqrt(Coords.distSqrd(pos, start.getCoords()));\n\t\tdiste = (float) Math.sqrt(Coords.distSqrd(pos, end.getCoords()));\n\t\tif(crossed) {\n\t\t\tsynchronized(ts) {\n\t\t\t\t//System.out.println(\"REMOVE \"+this+\" dir \" + listenerDir);\n\t\t\t\tts.removeListener(lis, listenerDir);\n\t\t\t\tcrossed = false;\n\t\t\t\tobs = null;\n\t\t\t}\n\t\t}\n\t\telse if(obs!=null) {\n\t\t\tfloat d = (float) Math.abs(Math.sqrt(Coords.distSqrd(getPos(), obs.getPos())) - 2*obs.getLength());\n\t\t\tif(d == 0)\n\t\t\t\td = 1;\n\t\t\ta = (float) (Math.pow(obs.getSpeed(),2) - v*v)/(2*d);\n\t\t\t//System.out.println(\"Obstacle Detected!\"+obs.getSpeed()+\" \"+getSpeed()+\" \" + this + \" car: \"+obs+\" dist = \"+d + \" a = \"+ a);\n\t\t\t//if(obs.getSpeed() < v)\n\t\t\t\t//a = (float) (obs.getSpeed() - v)*5;\n\t\t\t//System.out.println(obs.getSpeed()+\" \"+v);\n\t\t}\n\t\telse if((diste < 1.5*RoadGrid.LANE_WIDTH && !atInter) || diste+dists > dist) {\n\t\t\tif( v!= 0) {\n\t\t\t\tif((diste-RoadGrid.LANE_HALF_WIDTH) == 0)\n\t\t\t\t\ta = (float) Math.floor(-Math.pow(v,2)/2);\n\t\t\t\telse\n\t\t\t\t\ta = (float) Math.floor((-Math.pow(v,2)/(2*(diste-RoadGrid.LANE_HALF_WIDTH))));\n\t\t\t}\n\t\t\tatInter = true;\n\t\t\tatIntersection();\n\t\t}\n\t\telse if(atInter) {\n\t\t\t//accelerate(0);\n\t\t\tif(occupied) {\n\t\t\t\toccupied = false;\n\t\t\t\tatIntersection();\n\t\t\t}\n\t\t}\n\t\telse if(diste < dist/4) {\n\t\t\t//System.out.println(\"one-fourth\" + this);\n\t\t\tif(v>=10) {\n\t\t\t\tif((diste-RoadGrid.LANE_HALF_WIDTH) == 0)\n\t\t\t\t\ta = (float) Math.floor(-Math.pow(v,2)/2);\n\t\t\t\telse\n\t\t\t\t\ta = (float) Math.floor((-Math.pow(v,2)/(2*(diste-RoadGrid.LANE_HALF_WIDTH))));\n\t\t\t}\n\t\t\telse if(v<10 && obs==null)\n\t\t\t\ta = (float)(r.getSpeedLimit() - v)*5;\n\t\t}\n\t\telse {\n\t\t\ta = (float)(r.getSpeedLimit() - v)*5;\n\t\t}\n\t\taccelerate(a,0);\n\t\t\n\t}", "title": "" }, { "docid": "15fc384c722d10abbc505c400f90fac4", "score": "0.50955284", "text": "@Override\n public void collisionDetector(LinkedList<GameObject> objects) \n {\n \n }", "title": "" }, { "docid": "914b8cf5f3c9d32062270ce7d3ab3a34", "score": "0.50791585", "text": "public void checkCollisionLazer(){\n // left \n // check\n if (game.spaceship.leftLine.isVisible() == true) {\n // find rectangle\n \n if (getBounds().intersects(lineBound)){\n // take damage\n \n // indicate that it was hit by the player\n \n }\n }\n \n // right\n if (game.spaceship.rightLine.isVisible() == true) {\n // find rectangle\n \n if (getBounds().intersects(lineBound)){\n // take damage\n \n // indicate that it was hit by the player\n \n }\n }\n \n // up\n if (game.spaceship.upLine.isVisible() == true) {\n // find rectangle\n \n if (getBounds().intersects(lineBound)){\n // take damage\n \n // indicate that it was hit by the player\n \n }\n }\n \n // down\n if (game.spaceship.downLine.isVisible() == true) {\n // find rectangle\n \n if (getBounds().intersects(lineBound)){\n // take damage\n \n // indicate that it was hit by the player\n \n }\n }\n }", "title": "" }, { "docid": "25287be4de54978d4b3b2eafbdd54de4", "score": "0.507695", "text": "private GeoPoint findClosestIntersection(Ray ray) {\r\n\t\tList<GeoPoint> points = scene.getGeometries().findIntersections(ray);\r\n\t\tif (points == null)\r\n\t\t\treturn null;\r\n\t\tPoint3D p0 = ray.getHead();\r\n\t\treturn pointClosestTo(points, p0);\r\n\t}", "title": "" }, { "docid": "6e497fe1fd843ad4a89dec00abb194e7", "score": "0.50759697", "text": "@Override\r\n\tpublic boolean intersects(Line line) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "ac7ad2d85b8e6df1e7ae8ff7338b8f13", "score": "0.5070615", "text": "@Override\n public MovingObjectPosition collisionRayTrace(World world, int x, int y,\n int z, Vec3 startVec, Vec3 endVec) {\n BlockPos pos = BlockPos.of(x, y, z, world);\n if (isMirroring(pos)) {\n return pos.getBlock().collisionRayTrace(world, x, y, z, startVec,\n endVec);\n } else {\n return super.collisionRayTrace(world, x, y, z, startVec, endVec);\n }\n }", "title": "" }, { "docid": "ee5c5a2909c1e32aecdd8d08cdfa2dd8", "score": "0.5065545", "text": "private GObject getCollidingObject (double a,double b) {\n\t\tgetElementAt(a,b);\n\t\tGObject collider = null;\n\t\tif (getElementAt(a,b) != null) {\n\t\t\tcollider = getElementAt(a,b);\n\t\t}\n\t\tif (getElementAt((a + 2*BALL_RADIUS),b) !=null) {\n\t\t\tcollider = getElementAt((a + 2*BALL_RADIUS),b);\n\t\t}\n\t\tif (getElementAt((a + 2*BALL_RADIUS),(b + 2*BALL_RADIUS)) !=null) {\n\t\t\tcollider = getElementAt((a + 2*BALL_RADIUS),(b + 2*BALL_RADIUS));\n\t\t}\n\t\tif (getElementAt(a,(b + 2*BALL_RADIUS)) !=null) {\n\t\t\tcollider = getElementAt(a,(b + 2*BALL_RADIUS));\n\t\t}\n\t\treturn collider;\n\t}", "title": "" }, { "docid": "66d19eb1311b1cb285b76c2b5e63f10e", "score": "0.5061396", "text": "public AxisAlignedBB getCollisionBox(Entity par1Entity)\n {\n return null;\n }", "title": "" }, { "docid": "2f3e99cb44bc5c7bfa1cef216ed20e05", "score": "0.50543875", "text": "public Point intersectionWith(Line other) {\n Line line1 = this;\n Line line2 = other;\n //find the slope\n Double m1 = line1.lineSlope();\n Double m2 = line2.lineSlope();\n //if the lines are parallel/intersect at many points\n if (m1 == m2) {\n return null;\n }\n //if line1 is vertical\n if (m1 == null) {\n return line1.verticalInter(line2);\n } else if (m2 == null) {\n //if line2 is vertical\n return line2.verticalInter(line1);\n }\n //find coordinates\n double x1 = line1.start.getX();\n double x3 = line2.start.getX();\n double y1 = line1.start.getY();\n double y3 = line2.start.getY();\n //the mathematical formula to find the x intersection (if the lines were infinite)\n double xInter = (m1 * x1 - y1 - m2 * x3 + y3) / (m1 - m2);\n //check if the x inter is in the lines' range\n if ((!line1.isInXRange(xInter)) || (!line2.isInXRange(xInter))) {\n return null;\n }\n //find the y inter\n double yInter = m1 * (xInter - x1) + y1;\n Point intersection = new Point(xInter, yInter);\n intersection.setX(fixDeviation(intersection.getX(), 7));\n intersection.setY(fixDeviation(intersection.getY(), 7));\n return intersection;\n }", "title": "" }, { "docid": "5046e95f5b17a79598c097d7d0a33327", "score": "0.5053619", "text": "public void collide();", "title": "" }, { "docid": "1a1f546193eeff5bfaea73a350760f5f", "score": "0.50516325", "text": "@Override\n public boolean isColliding(Entity entity, int time) {\n //System.out.println(entity.getType() + \" \" + entity.nextPosition(time));\n //System.out.println(getEntity(entity.nextPosition(time)));\n// return entity.isColliding(collisionGetEntity(entity.nextPosition(time), entity.getVelocity()), time); //testing code here for nicer collisions\n\n return entity.isColliding(getEntity(entity.nextPosition(time)), time);\n\n// for (Entity e : getSurroundings(entity.nextPosition(time))) {\n// if (e != null && e.isColliding(entity, time)) {\n// return true;\n// }\n// }\n// return false;\n }", "title": "" }, { "docid": "ebd05101740ed03eaa7aaeff64f1fb59", "score": "0.50487846", "text": "private void collision() {\n\t\tfor (int i = 0; i < brownMeteors.length; i++) {\n\t\t\tif (distance(brownMeteors[i].getLayoutX() + ENTITIES_SIZE / 2,\n\t\t\t\t\tbrownMeteors[i].getLayoutY() - ENTITIES_SIZE / 2, player.getLayoutX() + ENTITIES_SIZE / 2,\n\t\t\t\t\tplayer.getLayoutY() - ENTITIES_SIZE / 2) <= ENTITIES_SIZE) { //if intersection happens between brownMeteor and the player\n\t\t\t\tshowScoreDecrease(brownMeteors[i].getLayoutX());\n\t\t\t\tsetNewElementPosition(brownMeteors[i]); //relocation\n\n\t\t\t\t// Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter;\n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t// player vs grey Meteor\n\t\tfor (int i = 0; i < greyMeteors.length; i++) {\n\t\t\tif (distance(greyMeteors[i].getLayoutX() + ENTITIES_SIZE / 2,\n\t\t\t\t\tgreyMeteors[i].getLayoutY() - ENTITIES_SIZE / 2, player.getLayoutX() + ENTITIES_SIZE / 2,\n\t\t\t\t\tplayer.getLayoutY() - ENTITIES_SIZE / 2) <= ENTITIES_SIZE) { //if intersection happens between greyMeteor and the player\n\t\t\t\tshowScoreDecrease(greyMeteors[i].getLayoutX());\n\t\t\t\tsetNewElementPosition(greyMeteors[i]); //relocation\n\n\t\t\t\t// Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter;\n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\n\t\t// laser vs brown Meteor\n\t\tfor (int i = 0; i < lasers.size(); i++) {\n\t\t\tfor (int j = 0; j < brownMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif (lasers.get(i).getBoundsInParent().intersects(brownMeteors[j].getBoundsInParent())) { // bounds of a\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// node in\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// it's\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// parent\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// coordinates\n\t\t\t\t\tsetNewElementPosition(brownMeteors[j]); // relocation\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i)); //removes the laser from the window\n\t\t\t\t\tlasers.remove(i); // removes this laser from arraylist \n\t\t\t\t\tSystem.out.println(lasers.size());\n\n\t\t\t\t\t// Update score +\n\t\t\t\t\tsc.score += 1;\n\t\t\t\t\tbreak; // kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < lasers.size(); i++) {\n\t\t\tfor (int j = 0; j < greyMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif (lasers.get(i).getBoundsInParent().intersects(greyMeteors[j].getBoundsInParent())) { // bounds of a\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// node in it's\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// parent\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// coordinates\n\t\t\t\t\tsetNewElementPosition(greyMeteors[j]);// relocation\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));//removes the laser from the window\n\t\t\t\t\tlasers.remove(i);// removes this laser from arraylist \n\t\t\t\t\tSystem.out.println(lasers.size());\n\n\t\t\t\t\t// Update score +\n\t\t\t\t\tsc.score += 1;\n\t\t\t\t\tbreak; // kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "3dd6147e3e530956fc2fa6c9e8cbf53a", "score": "0.5048755", "text": "public void collision() {\n for (int i = 0; i < handler.getObject().size(); i++) {\n\n GameObject tempObject = handler.getObject().get(i);\n\n if(tempObject.getId() == ID.Block) {\n\n if(!placeFree((int) (x + velX), y, getBounds(), tempObject.getBounds())) {\n velX = 0;\n }\n\n if(!placeFree(x, (int) (y + velY), getBounds(), tempObject.getBounds())) {\n velY = 0;\n }\n }\n\n if(tempObject.getId() == ID.Crate) {\n\n if(getBounds().intersects(tempObject.getBounds())) {\n level.incAmmo(10);\n handler.removeObject(tempObject);\n SoundEffect.CRATE.play();\n }\n }\n\n if(tempObject.getId() == ID.Totem) {\n\n if(getBounds().intersects(tempObject.getBounds())) {\n // Remove totem and wizard from play.\n handler.removeObject(tempObject);\n handler.removeObject(this);\n // Iterate to next level and play sound effect.\n SoundEffect.LEVEL.play();\n GamePanel gamePanel = (GamePanel) game.getFrame().getPanel(\"game\");\n game.incLevelNumber();\n // Show load screen then build next level\n game.pauseGame();\n game.getFrame().showLoadScreen(2000);\n game.resumeGame();\n gamePanel.changeLevel();\n }\n }\n\n // Switch statement determines ID of object collision.\n switch (tempObject.getId()) {\n case Minion:\n case Ent:\n case Horizontal:\n case Vertical:\n if(getBounds().intersects(tempObject.getBounds())) {\n // If any of these enemies are contacted, decrement HP.\n level.decHp();\n }\n default:\n break;\n }\n }\n }", "title": "" }, { "docid": "8b4831c14c5bae16d0e9bdcd3d184325", "score": "0.50440276", "text": "@Override\n public Velocity hit(Ball hitter, Point collisionPoint, Velocity currentVelocity) {\n double dx = currentVelocity.getDx();\n double dy = currentVelocity.getDy();\n double velocity = Math.sqrt(dx * dx + dy * dy);\n double newWidth = this.rectangle.getWidth() / PARTS;\n Line part1 = new Line(this.rectangle.getUpperLeft(), new Point(this.rectangle.getUpperLeft().getX() + newWidth,\n this.rectangle.getUpperLeft().getY()));\n Line part2 = new Line(part1.end(), new Point(part1.end().getX() + newWidth, part1.end().getY()));\n Line part3 = new Line(part2.end(), new Point(part2.end().getX() + newWidth, part2.end().getY()));\n Line part4 = new Line(part3.end(), new Point(part3.end().getX() + newWidth, part3.end().getY()));\n Line part5 = new Line(part4.end(), new Point(this.rectangle.getUpperLeft().getX()\n + this.rectangle.getWidth(), part4.end().getY()));\n /*if (Math.abs(this.rectangle.getUpperLeft().getX() - collisionPoint.getX()) <= EP\n || Math.abs(this.rectangle.getUpperLeft().getX() + this.rectangle.getWidth()\n - collisionPoint.getX()) <= EP) {\n return new Velocity(CHANGE_VELOCITY * dx, dy);\n }*/\n if (Math.abs(this.rectangle.getUpperLeft().getY() - collisionPoint.getY()) <= EP) {\n //|| Math.abs(this.rectangle.getUpperLeft().getY() + this.rectangle.getHeight()\n //- collisionPoint.getY()) <= EP) {\n if (part1.inXRange(collisionPoint.getX())) {\n return Velocity.fromAngleAndSpeed(PART_ONE_ANGLE, velocity);\n }\n if (part2.inXRange(collisionPoint.getX())) {\n return Velocity.fromAngleAndSpeed(PART_TWO_ANGLE, velocity);\n }\n if (part3.inXRange(collisionPoint.getX())) {\n return new Velocity(dx, CHANGE_VELOCITY * dy);\n }\n if (part4.inXRange(collisionPoint.getX())) {\n return Velocity.fromAngleAndSpeed(PART_FOUR_ANGLE, velocity);\n }\n if (part5.inXRange(collisionPoint.getX())) {\n return Velocity.fromAngleAndSpeed(PART_FIVE_ANGLE, velocity);\n }\n }\n return currentVelocity;\n }", "title": "" }, { "docid": "752f88f56c6a15799e71e9deebbda6b4", "score": "0.5041871", "text": "private Point intersectionWithEqualSlope(Line other) {\n // if the start and the end of the other line is on this line, we have more than one intersection point -> null\n if (this.containsPoint(other.start()) && this.containsPoint(other.end())) {\n return null;\n }\n // if the start and the end of this line is on the other line, we have more than one intersection point -> null\n if (other.containsPoint(this.start()) && other.containsPoint(this.end())) {\n return null;\n }\n // if the start of this line is the start of the other line and the end of this line is not on the other line.\n if (this.start.equals(other.start()) && !other.containsPoint(this.end)) {\n return this.start;\n }\n // if the start of this line is the end of the other line and the end of this line is not on the other line.\n if (this.start.equals(other.end()) && !other.containsPoint(this.end)) {\n return this.start;\n }\n // if the end of this line is the end of the other line and the start of this line is not on the other line.\n if (this.end.equals(other.end()) && !other.containsPoint(this.start)) {\n return this.end;\n }\n // if the end of this line is the start of the other line and the start of this line is not on the other line.\n if (this.end.equals(other.start()) && !other.containsPoint(this.start)) {\n return this.end;\n }\n return null;\n }", "title": "" }, { "docid": "fff5ce6633b01b1b1fc4048b8c03f895", "score": "0.50321627", "text": "@Override\n\tpublic ArrayList<ICollider> getCollisionList() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1d1585d05d433bf459fc988c8d06eaeb", "score": "0.5031695", "text": "public CollisionGeometry getFirstCollider(List<CollisionGeometry> g) {\n\t\tfor (CollisionGeometry geo : g) {\n\t\t\tCollisionGeometry result = getFirstCollider(geo);\n\t\t\tif (result != null)\n\t\t\t\treturn result;\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "dd0e9e9175d0b38c039b497d82259d23", "score": "0.503091", "text": "@Override\n\tpublic Polygon getCollisionShape() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6d43ef77bf38d00910fe5c08035ad58c", "score": "0.502912", "text": "public static AbstractObject findNearestEnergySource(Toroidal2DPhysics space, Ship ship) {\r\n\t\tdouble minDistance = Double.MAX_VALUE;\r\n\t\tAbstractObject bestObject = null;\r\n\t\t\r\n\t\tBase minBase = findNearestBase(space, ship);\r\n\t\tdouble minBaseDist = Double.MAX_VALUE;\r\n\t\tif(minBase != null) {\r\n\t\t\tminBaseDist = space.findShortestDistance(ship.getPosition(), minBase.getPosition());\r\n\t\t}\r\n\t\tif(DEBUG) {\r\n\t\t\tSystem.out.println(\"Min Base: \"+ (minBase == null ? \"null\" : minBase.getId()+\", Dist: \"+minBaseDist));\r\n\t\t}\r\n\t\t\r\n\t\tAiCore minCore = findNearestAiCore(space, ship);\r\n\t\tdouble minCoreDist = Double.MAX_VALUE;\r\n\t\tif(minCore != null) {\r\n\t\t\tminCoreDist = space.findShortestDistance(ship.getPosition(), minCore.getPosition());\r\n\t\t}\r\n\t\tif(DEBUG) {\r\n\t\t\tSystem.out.println(\"Min Core: \"+ (minCore == null ? \"null\" : minCore.getId()+\", Dist: \"+minCoreDist));\r\n\t\t}\r\n\t\t\r\n\t\tBeacon minBeacon = findNearestBeacon(space, ship);\r\n\t\tdouble minBeaconDist = Double.MAX_VALUE;\r\n\t\tif(minBeacon != null) {\r\n\t\t\tminBeaconDist = space.findShortestDistance(ship.getPosition(), minBeacon.getPosition());\r\n\t\t}\r\n\t\tif(DEBUG) {\r\n\t\t\tSystem.out.println(\"Min Beacon: \"+ (minBeacon == null ? \"null\" : minBeacon.getId()+\", Dist: \"+minBeaconDist));\r\n\t\t}\r\n\t\t\r\n\t\tminDistance = minBaseDist;\r\n\t\tif(minCoreDist < minDistance) {\r\n\t\t\tminDistance = minCoreDist;\r\n\t\t\tbestObject = minCore;\r\n\t\t}\r\n\t\tif(minBeaconDist < minDistance) {\r\n\t\t\tminDistance = minBeaconDist;\r\n\t\t\tbestObject = minBeacon;\r\n\t\t}\r\n\t\t\r\n\t\tif(bestObject != null) {\r\n\t\t\tif(DEBUG) {\r\n\t\t\t\tSystem.out.println(\"Targetting energy source \" + bestObject.getId());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn bestObject;\r\n\t}", "title": "" }, { "docid": "c690d962a839285eefeb448310ddff7a", "score": "0.50259656", "text": "public void collision(){\n\n\t\t// a lot of semi-functional \"if\" statements for hit detection of bird VS pipe\n\t\t\n\t\tif (Charlocy <= pipelocy+ pipeheight && (Charlocx + 25 >= pipelocx && Charlocx <= pipelocx+pipewidth-3)){\n\t\t\tgameoversequence= true;\n\t\t}\n\t\tif (Charlocy+ 30 >= SCREENY-bottompipeh + 3 && (Charlocx + 25 >= pipelocx && Charlocx <= pipelocx+pipewidth-3)){\n\t\t\tgameoversequence= true;\n\t\t}\n\n\t\tif (Charlocy >= SCREENY- 275){\n\t\t\tCharlocy= 0;\n\t\t\t\n\t\t\tgameoversequence= true;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "b013be2e6d3e29eb0cd01d2ebb8708b1", "score": "0.50199693", "text": "public void collision() {\r\n\t\tIterator<String> itr = Game.collisionTiles.get(new Integer(0)).keySet().iterator();\r\n\t\twhile(itr.hasNext()) {\r\n\t\t\tString cur = itr.next();\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < Game.collisionTiles.get(new Integer(0)).get(cur).size(); i+=2) {\r\n\t\t\t\tif(getBounds().intersects(new Rectangle(Game.collisionTiles.get(new Integer(0)).get(cur).get(i), Game.collisionTiles.get(new Integer(0)).get(cur).get(i+1),\r\n\t\t\t\t\t\t48, 48))) {\r\n\t\t\t\t\tif(velX < 0) {\r\n\t\t\t\t\t\tx = Game.clampUpLeft((int)x, Game.collisionTiles.get(new Integer(0)).get(cur).get(i) + 42);\r\n\t\t\t\t\t\tthis.setVelX((int)this.getVelX()*-1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(velX > 0){\r\n\t\t\t\t\t\tx = Game.clampDownRight((int)x, Game.collisionTiles.get(new Integer(0)).get(cur).get(i)-250);\r\n\t\t\t\t\t\tthis.setVelX((int)this.getVelX()*-1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "540c822e6a7b5b027b512f1c269fd927", "score": "0.5016314", "text": "public @Nullable BlockPos findFirst(EntityPlayer playerIn)\n\t{\n\t\tfor(BaseArea area : areas)\n\t\t{\n\t\t\tif(area.getOwner().equals(playerIn.getUniqueID()))\n\t\t\t{\n\t\t\t\treturn area.getPosition();\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0ae9b2ae1d3ee8e3d4d64be70e25553f", "score": "0.50081587", "text": "public void collide(Helicopter h)\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "c292a1a0fe9e6e33fc57b54fcfb979b5", "score": "0.5003426", "text": "@Override\n public void collideWObstacle(Obstacle obj) {\n }", "title": "" }, { "docid": "9cd05a207f665ab22afda11c2b91613a", "score": "0.50029314", "text": "public Point2D.Double intersectWith (HoughLine hl2) {\n\t\t\tHoughLine hl1 = this;\n\t\t\tdouble th1 = hl1.getAngle();\n\t\t\tdouble th2 = hl2.getAngle();\n\t\t\tif (th1 == th2)\treturn null;\n\t\t\tdouble r1 = hl1.getRadius();\n\t\t\tdouble r2 = hl2.getRadius();\n\t\t\tdouble s = 1 / Math.sin(th2 - th1);\n\t\t\tdouble x = uc + s * (r1 * Math.sin(th2) - r2 * Math.sin(th1));\n\t\t\tdouble y = vc + s * (r2 * Math.cos(th1) - r1 * Math.cos(th2));\n\t\t\treturn new Point2D.Double(x,y);\n\t\t}", "title": "" }, { "docid": "933b6396b1a0073fee2d5e4b399e7c90", "score": "0.49986693", "text": "public static void Collide(float frameDuration, Ship object1, Actor object2)\n\t{\n\t Vector3 difference = object1.position.sub(object2.position);\n\t float distanceAtFrameEnd = difference.len();\n\t frameDuration=frameDuration*100000;\n\t // Calculate the distance that a collision would occur at.\n\t float collisionDistance = (object1.SHIP_RADIUS / 2f) + (object2.INVADER_RADIUS / 2f);\n\n\t // Check of the objects are closer that the collision distance.\n\t if (distanceAtFrameEnd < collisionDistance)\n\t {\n\t // Move both objects back to the exact point of collision.\n\t float millisecondsAfterCollision = MoveBackToCollisionPoint(frameDuration, object1, object2, distanceAtFrameEnd, collisionDistance);\n\t if (Stardust3d.DEBUG)\n\t\t\t\tSystem.out.println(LOG_TAG + \"milli after coll: \" + millisecondsAfterCollision);\n\t // Calculate the normal of the collision plane.\n\t Vector3 normalPlane = difference;\n\t normalPlane.nor();\n\n\t // Calculate the collision plane.\n\t Vector3 collisionPlane = new Vector3(-normalPlane.x, normalPlane.y,normalPlane.z);\n\n\t // Calculate prior velocities relative the the collision plane and normal.\n\t float n_vel1 = (normalPlane.dot( object1.heading));\n\t float c_vel1 =(collisionPlane.dot(object1.heading));\n\t float n_vel2 = (normalPlane.dot( object2.heading));\n\t float c_vel2 = (collisionPlane.dot(object2.heading));\n\n\t // Calculate the scaler velocities of each object after the collision.\n\t float n_vel1_after = ((n_vel1 * (object1.mass - object2.mass)) + (2 * object2.mass * n_vel2)) / (object2.mass + object1.mass);\n\t float n_vel2_after = ((n_vel2 * (object2.mass - object1.mass)) + (2 * object1.mass * n_vel1)) / (object2.mass + object1.mass);\n\t //float velObject2Tangent_After = c_vel2;\n\t //float velObject1Tangent_After = c_vel1;\n\n\t // Convert the scalers to vectors by multiplying by the normalised plane vectors.\n\t Vector3 vec_n_vel2_after = normalPlane.mul(n_vel2_after );\n\t Vector3 vec_c_vel2 = collisionPlane.mul(c_vel2);\n\t Vector3 vec_n_vel1_after = normalPlane.mul(n_vel1_after);\n\t Vector3 vec_c_vel1 = collisionPlane.mul(c_vel1);\n\n\t // Combine the vectors back into a single vector in world space.\n\t Vector3 vel1_after = vec_n_vel1_after.add(vec_c_vel1);\n\t Vector3 vel2_after = vec_n_vel2_after.add(vec_c_vel2);\n\n\t // Reapply the move-back from before the collision (using the post collision velocity)\n\t Vector3 object1AdjustedPositionAfterCollision = object1.position.add(vel1_after.mul( millisecondsAfterCollision));\n\t Vector3 object2AdjustedPositionAfterCollision = object2.position.add(vel2_after.mul(millisecondsAfterCollision));\n\n\t // Set the objects new positions and velocities.\n\t object1.position=(object1AdjustedPositionAfterCollision);\n\t object1.heading= vel1_after;\n\t object2.position=object2AdjustedPositionAfterCollision;\n\t object2.heading= vel2_after;\n\t }\n\t}", "title": "" }, { "docid": "1207338971183565eef9ad56d68c18d4", "score": "0.4992352", "text": "public Rectangle getCollisionRectangle() {\n return this.hitbox;\n }", "title": "" }, { "docid": "7cfbb1944f21e23e69a4b21121da9640", "score": "0.49922317", "text": "private static Vector3 intersectionOfVerticalLines(final LineSegment lineSegment1, final LineSegment lineSegment2) {\n if (lineSegment1.distanceTo(lineSegment2) > 0.0) {\n return null;\n }\n\n if (isOnVerticalLine(lineSegment2.getTopPoint(), lineSegment1)) {\n return lineSegment2.getTopPoint();\n }\n\n return null;\n }", "title": "" }, { "docid": "ec7671e01867602730bfb73dd2958909", "score": "0.49848574", "text": "public Point intersectionWith(Line other) {\n // if the lines do not intersect\n if (!this.isIntersecting(other)) {\n return null;\n }\n\n // if lines are are identical\n if (this.equals(other)) {\n // if both lines are one point\n if (this.start.equals(this.end)) {\n return this.start;\n }\n return null;\n }\n // if this lines is one point, and the second line contains it\n if (this.start.equals(this.end) && other.containsPoint(this.start)) {\n return this.start;\n }\n // if the other lines is one point, and this line contains it\n if (other.start().equals(other.end()) && this.containsPoint(other.start())) {\n return other.start();\n }\n\n // if the slopes are equal.\n if (Point.doubleEquals(this.getSlope(), other.getSlope())) {\n return intersectionWithEqualSlope(other);\n }\n\n // if the no length intersection is on the lines.\n Point noLengthIntersection = this.noLengthIntersection(other);\n if (this.containsPoint(noLengthIntersection) && other.containsPoint(noLengthIntersection)) {\n return this.noLengthIntersection(other);\n }\n\n // else, the is more then one intersection. so we return null.\n return null;\n }", "title": "" }, { "docid": "219d8195bd81a17baee484a85b55188e", "score": "0.49808392", "text": "public Block blockExistsAt(float x, float y){\n\t\tfor(int i = 0; i < level.solids.size(); i++){\n\t\t\tBlock solid = level.solids.get(i);\n\t\t\tif(solid != this && isColliding(solid, x, y)){\n\t\t\t\treturn solid;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f67ea917e39c40afb4abd77484b60556", "score": "0.49745905", "text": "private void checkCollisionWall(ArrayList<Wall> wallList, ListIterator<Entity> thisObject) {\n //The line of the wall rotated so that the ray is along the y axis.\n Line2D.Double rotatedLine;\n //Iterator for checking all of the walls.\n\n //A temporary wall object to reference the wall being checked.\n Wall wall;\n\n //Iterate through the array of walls and check if the entity collides with it.\n for(ListIterator<Wall> collidedObject = wallList.listIterator(); collidedObject.hasNext();) {\n //Store the wall being checked.\n wall = collidedObject.next();\n\n //Check for collisions with the wall if it is visible.\n if(wall.getVisible()) {\n //Check if the entity hits the sides of the wall. If it does, call the 'collide' method.\n if(wall instanceof UnbreakableWall)\n if (FastMath.isPointInCircle(wall.getPoint1(), position, this.getHitCircleRadius()))\n this.collide(wall.getPoint1(), thisObject, collidedObject);\n else if(FastMath.isPointInCircle(wall.getPoint2(), position, this.getHitCircleRadius()))\n this.collide(wall.getPoint2(), thisObject, collidedObject);\n\n //Copy the line of the wall.\n rotatedLine = wall.getLine();\n //Rotate the line around the entity so that it is vertical.\n FastMath.rotate(rotatedLine, this.position, -wall.getAngle());\n\n //If the distance to the line is less than the hit circle radius and the line is next to the entity, call the 'collide' method.\n if (Math.abs(rotatedLine.x1 - this.position.x) < this.getHitCircleRadius()\n && ((rotatedLine.y1 >= this.position.y - this.getHitCircleRadius()\n && rotatedLine.y2 <= this.position.y) || (rotatedLine.y1 <= this.position.y\n && rotatedLine.y2 >= this.position.y))) {\n //Pass the iterator in case the entity needs to delete the wall.\n this.collide(wall, thisObject, collidedObject);\n }\n }\n }\n }", "title": "" }, { "docid": "20aa8dc7bfdeee417fa39e9b29de3a75", "score": "0.49671015", "text": "private double collisionWithPlayer() {\n Player curPlayer = this.mainSketch.getCurrentActivePlayer();\n float xDifference = Math.abs(this.pos.x - curPlayer.getPos().x);\n float yDifference = Math.abs(this.pos.y - curPlayer.getPos().y);\n\n // distance between player and this must be sum of their radii for collision\n float distanceNeededForCollision = (this.diameter / 2) + (curPlayer.getDiameter() / 2);\n\n // pythagorean theorem\n boolean isAtCollisionDistance =\n Math.sqrt(Math.pow(xDifference, 2) + Math.pow(yDifference, 2)) <= distanceNeededForCollision;\n\n if (isAtCollisionDistance) {\n return Math.atan2(yDifference, xDifference);\n } else {\n return -1.0;\n }\n }", "title": "" }, { "docid": "d3ca7a39296c8a0e39ea7f00c578bab4", "score": "0.49658474", "text": "public boolean isIntersecting(Line other) {\n // Return false if either of the lines have zero length\n if ((this.start.getX() == this.end.getX() && this.start.getY() == this.end.getY())\n || (other.start.getX() == other.end.getX() && other.start.getY() == other.end.getY())) {\n return false;\n }\n // Fastest method, based on Franklin Antonio's \"Faster Line Segment Intersection\"\n double ax = this.end.getX() - this.start.getX();\n double ay = this.end.getY() - this.start.getY();\n double bx = other.start.getX() - other.end.getX();\n double by = other.start.getY() - other.end.getY();\n double cx = this.start.getX() - other.start.getX();\n double cy = this.start.getY() - other.start.getY();\n double alphaNumerator = by * cx - bx * cy;\n double commonDenominator = ay * bx - ax * by;\n if (commonDenominator > 0) {\n if (alphaNumerator < 0 || alphaNumerator > commonDenominator) {\n return false;\n }\n } else if (commonDenominator < 0) {\n if (alphaNumerator > 0 || alphaNumerator < commonDenominator) {\n return false;\n }\n }\n double betaNumerator = ax * cy - ay * cx;\n if (commonDenominator > 0) {\n if (betaNumerator < 0 || betaNumerator > commonDenominator) {\n return false;\n }\n } else if (commonDenominator < 0) {\n if (betaNumerator > 0 || betaNumerator < commonDenominator) {\n return false;\n }\n }\n if (commonDenominator == 0) {\n // The lines are parallel.\n // Check if they're collinear.\n double y3LessY1 = other.start.getY() - this.start.getY();\n double collinearityTestForP3 = this.start.getX() * (this.end.getY() - other.start.getY())\n + this.end.getX() * (y3LessY1) + other.start.getX() * (this.start.getY()\n - this.end.getY());\n // If p3 is collinear with p1 and p2 then p4 will also be collinear,\n // since p1-p2 is parallel with p3-p4\n if (collinearityTestForP3 == 0) {\n // The lines are collinear\n return true;\n }\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "88108ef07591da7a86a8920ea079d855", "score": "0.49655676", "text": "public void checkCollisionLazer(){\n // left \n // check\n if (game.spaceship.leftLine.isVisible() == true) {\n // find rectangle\n GRectangle lineBound = spaceship.leftLine.getBounds();\n lineBound.translate(spaceship.getX(),spaceship.getY());\n \n if (getBounds().intersects(lineBound)){\n takeDamage(1);\n hitByPlayer = true;\n }\n }\n \n // right\n if (game.spaceship.rightLine.isVisible() == true) {\n // find rectangle\n GRectangle lineBound = spaceship.rightLine.getBounds();\n lineBound.translate(spaceship.getX(),spaceship.getY());\n \n if (getBounds().intersects(lineBound)){\n takeDamage(1);\n hitByPlayer = true;\n }\n }\n \n // up\n if (game.spaceship.upLine.isVisible() == true) {\n // find rectangle\n GRectangle lineBound = spaceship.upLine.getBounds();\n lineBound.translate(spaceship.getX(),spaceship.getY());\n \n if (getBounds().intersects(lineBound)){\n takeDamage(1);\n hitByPlayer = true;\n }\n }\n \n // down\n if (game.spaceship.downLine.isVisible() == true) {\n // find rectangle\n GRectangle lineBound = spaceship.downLine.getBounds();\n lineBound.translate(spaceship.getX(),spaceship.getY());\n \n if (getBounds().intersects(lineBound)){\n takeDamage(1);\n hitByPlayer = true;\n }\n }\n }", "title": "" }, { "docid": "a86661838a4b3639cc5a4452a0b59a9e", "score": "0.49643838", "text": "public Vector3D getCartesianIntersectionPoint(final Line line, final Vector3D close,\n final Frame frame, final AbsoluteDate date) {\n\n // transform line and close to body frame\n final StaticTransform frameToBodyFrame =\n frame.getStaticTransformTo(bodyFrame, date);\n final Line lineInBodyFrame = frameToBodyFrame.transformLine(line);\n\n // compute some miscellaneous variables\n final Vector3D point = lineInBodyFrame.getOrigin();\n final double x = point.getX();\n final double y = point.getY();\n final double z = point.getZ();\n final double z2 = z * z;\n final double r2 = x * x + y * y;\n\n final Vector3D direction = lineInBodyFrame.getDirection();\n final double dx = direction.getX();\n final double dy = direction.getY();\n final double dz = direction.getZ();\n final double cz2 = dx * dx + dy * dy;\n\n // abscissa of the intersection as a root of a 2nd degree polynomial :\n // a k^2 - 2 b k + c = 0\n final double a = 1.0 - e2 * cz2;\n final double b = -(g2 * (x * dx + y * dy) + z * dz);\n final double c = g2 * (r2 - ae2) + z2;\n final double b2 = b * b;\n final double ac = a * c;\n if (b2 < ac) {\n return null;\n }\n final double s = FastMath.sqrt(b2 - ac);\n final double k1 = (b < 0) ? (b - s) / a : c / (b + s);\n final double k2 = c / (a * k1);\n\n // select the right point\n final Vector3D closeInBodyFrame = frameToBodyFrame.transformPosition(close);\n final double closeAbscissa = lineInBodyFrame.getAbscissa(closeInBodyFrame);\n final double k =\n (FastMath.abs(k1 - closeAbscissa) < FastMath.abs(k2 - closeAbscissa)) ? k1 : k2;\n return lineInBodyFrame.pointAt(k);\n\n }", "title": "" }, { "docid": "31a6d1265570bea088c497f47ec59c04", "score": "0.49635473", "text": "public Point getClosestObjectPosition(ArrayList<Point> objectPositions)\n {\n if(objectPositions==null || objectPositions.size()==0)\n {\n return null;\n }\n objectPositions = objectPositions.stream().\n filter(position->getDistanceToStart(position)!=-1).\n collect(Collectors.toCollection(ArrayList::new)); //only objects that can be reached in a path\n if(objectPositions.size()==0)\n {\n return null;\n }\n Point closestObjectPosition = objectPositions.get(0);\n for(Point objectPosition : objectPositions)\n {\n if(getDistanceToStart(objectPosition) < getDistanceToStart(closestObjectPosition))\n {\n closestObjectPosition = objectPosition;\n }\n }\n return closestObjectPosition;\n }", "title": "" }, { "docid": "f1d4ebf0ef35d0f6551a7b42504dfb78", "score": "0.49630895", "text": "public static boolean interiorLineLineCollision(Vector a, Vector b, Vector c, Vector d) {\n // create relative direction vectors of the two line segments\n Vector a2b = Vector.sub(b, a);\n Vector c2d = Vector.sub(d, c);\n\n // calculate the vectors from the second line segment start to the first line segment start\n // and calculate the vector from the second line segment end to the first line segment end\n Vector c2a = Vector.sub(a, c);\n Vector d2b = Vector.sub(b, d);\n\n // calculate the perpendicular lines to the original line segments (+ 90 deg)\n Vector p1 = a2b.perpi();\n Vector p2 = c2d.perpi();\n\n // calculate relative direction values\n\n // this is a multi step equation\n // Dot a refers to the first Dot product and dot b refers to the second dot product\n // The dot product gives a value that is relative to the angle and distance that two vectors might share\n // A higher dot product means that either the angle of the two vectors on the unit circle is closer or the\n // length that vector is going is higher.\n //\n // If the ca dot with p1 is greater than the cd dot with p1 then the three lines ca, cd, and ab\n // must form an enclosed triangle.\n // The length of p1 is proportional to ab.\n // Then p1 effectively creates a measuring vector to dot ca and cd to, to measure if the vector ca goes in enough of\n // the direction of the p1 normal to separate the vector cd from ab.\n // If either dots are negative that means that vector ab cd form two almost parallel lines that do not intersect\n // the same rules apply to ha and hb.\n\n float ha = Vector.dot(c2a, p1) / Vector.dot(c2d, p1);\n float hb = Vector.dot(d2b, p2) / Vector.dot(a2b, p2);\n\n return ha > 0.0 && ha < 1 && hb > 0.0 && hb < 1;\n }", "title": "" }, { "docid": "77d3985615f19b42aeb9683df8397e9b", "score": "0.49619544", "text": "public MovingObjectPosition collisionRayTrace(World var1, int var2, int var3, int var4, Vec3 var5, Vec3 var6)\n {\n TileMultipart var7 = (TileMultipart)CoreLib.getTileEntity(var1, var2, var3, var4, TileMultipart.class);\n\n if (var7 == null)\n {\n return null;\n }\n else\n {\n int var8 = var7.getPartsMask();\n MovingObjectPosition var10 = null;\n int var12 = -1;\n double var13 = 0.0D;\n\n while (var8 > 0)\n {\n int var9 = Integer.numberOfTrailingZeros(var8);\n var8 &= ~(1 << var9);\n var7.setPartBounds(this, var9);\n MovingObjectPosition var11 = super.collisionRayTrace(var1, var2, var3, var4, var5, var6);\n\n if (var11 != null)\n {\n double var15 = var11.hitVec.squareDistanceTo(var5);\n\n if (var10 == null || var15 < var13)\n {\n var13 = var15;\n var10 = var11;\n var12 = var9;\n }\n }\n }\n\n if (var10 == null)\n {\n return null;\n }\n else\n {\n var7.setPartBounds(this, var12);\n var10.subHit = var12;\n return var10;\n }\n }\n }", "title": "" }, { "docid": "230339bcae4eb05817c8d2d07abd556d", "score": "0.49615005", "text": "public boolean collide(MoveableShape other) {\n return false;\n }", "title": "" }, { "docid": "25bff2a9db90ffe248f230bdbc5c9801", "score": "0.4954618", "text": "private void checkCollisionEntity(ArrayList<Entity> entityList, ListIterator<Entity> thisObject) {\n //The distance between the two entities squared.\n double actualDistSquared;\n //The distance where the two entities touch squared.\n double minDistSquared;\n\n //Iterator for checking all of the entities.\n ListIterator<Entity> collidedObject = entityList.listIterator();\n //A temporary entity object to reference the entity being checked.\n Entity entity;\n\n //Iterate through the array of entities and check if the entity collides with it.\n while(collidedObject.hasNext()) {\n //Store the wall being checked.\n entity = collidedObject.next();\n\n //Prevent collisions between an entity and itself.\n if(this != entity) {\n //Calculate the two distances.\n actualDistSquared = Math.pow(entity.position.x - this.position.x, 2) + Math.pow(entity.position.y - this.position.y, 2);\n minDistSquared = Math.pow(entity.getHitCircleRadius() + this.getHitCircleRadius(), 2);\n\n //If the entities collide, call the collide method of this entity.\n if (actualDistSquared < minDistSquared)\n //Pass the iterator in case this entity needs to delete the other.\n this.collide(entity, thisObject, collidedObject);\n }\n }\n }", "title": "" }, { "docid": "cff7fcf3bd919213457b033c118b2d7d", "score": "0.4953828", "text": "public void checkCollisions() {\n\t\tfor (Obstacle obs : obstacles.getList()) {\n\t\t\tif (obs != null && obs.intersects(player)) {\n\t\t\t\tif(!(player.canPassWalls() && obs.isSolid()))\n\t\t\t\t\tplayer.collide(obs);\n\t\t\t}\n\t\t}\n\t\t// los enemigos con los obstaculos\n\t\tfor (Enemy enemy : enemies) {\n\t\t\tfor (Obstacle obs : obstacles.getList()) {\n\t\t\t\tif (obs != null && obs.intersects(enemy)) {\n\t\t\t\t\tif(!(enemy.canPassWalls() && obs.isSolid()))\n\t\t\t\t\t\tenemy.collide(obs);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\t// los enemigos con las llamas\n\t\t\tfor (Enemy enemy : enemies) {\n\t\t\t\tfor (Entity flare : flares) {\n\t\t\t\t\tif (flare.intersects(enemy)) {\n\t\t\t\t\t\tenemy.hurt(flare, 10);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// el jugador con las llamas\n\t\t\tfor (Entity flare : flares) {\n\t\t\t\tif (flare.intersects(player)) {\n\t\t\t\t\tif (!player.isInvincible())\n\t\t\t\t\t\tplayer.touchedBy(flare);\n\t\t\t\t\t// break;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// las bombas con las llamas\n\t\t\tfor (Entity bomb : bombs) {\n\t\t\t\tfor (Entity flare : flares) {\n\t\t\t\t\tif (flare.intersects(bomb)) {\n\t\t\t\t\t\tbomb.touchedBy(flare);\n\t\t\t\t\t\t// break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ConcurrentModificationException e) {\n\t\t}\n\n\t\t\n\t\t// los enemigos con las bombas\n\t\tfor (Enemy enemy : enemies) {\n\t\t\tfor (Bomb bomb : bombs) {\n\t\t\t\tif (bomb != null) {\n\t\t\t\t\tif (bomb.intersects(enemy)) {\n\t\t\t\t\t\tif (bomb.isOut(enemy) && !enemy.canPassBombs()) {\n\t\t\t\t\t\t\tenemy.collide(bomb);\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\tbomb.setOut(enemy);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// el jugador con las bombas\n\t\tfor (Bomb bomb : bombs) {\n\t\t\tif (bomb != null) {\n\t\t\t\tif (bomb.intersects(player)) {\n\t\t\t\t\tif (!bomb.isOut(player) && ! player.canPassBombs()) {\n\t\t\t\t\t\tplayer.collide(bomb);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tbomb.setOut(player);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// el jugador con los enemigos\n\t\tfor (Enemy enemy : enemies) {\n\t\t\tif (enemy != null && enemy.intersects(player)) {\n\t\t\t\tenemy.touchedBy(player); // Normal\n\t\t\t\t//player.touchedBy(enemy); // Bomberman se carga a todos\n\t\t\t\t//break;\n\t\t\t}\n\t\t}\n\n\t\t// el jugador con los power ups\n\t\tfor (Iterator<PowerUps> it = powerups.iterator(); it.hasNext();) {\n\t\t\tPowerUps powerup = it.next();\n\t\t\tif (powerup != null && powerup.intersects(player)) {\n\t\t\t\tplayer.addPowerUp(powerup);\n\t\t\t\tif (powerup.removed)\n\t\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// el jugador con la salida\n\t\tif (player.intersects(exit) && ((Exit) exit).isActive() /*&& exit.getBounds().contains(player.getBounds())*/) {\n\t\t\tbombs.clear();\n\t\t\tplayer.touchedBy(exit);\n\t\t\tplaying = false;\n\t\t\t//System.out.println(\"Level Complete\");\n\t\t}\n\t}", "title": "" }, { "docid": "3399132811e3959aba64958c05de7bda", "score": "0.49520203", "text": "public void predictColl(Thing t){\r\n\t\t\r\n\t\tdouble x = t.getPoint().x;\r\n\t\tdouble y = t.getPoint().y;\r\n\t\t\r\n\t\tgravity(t);\r\n\t\tlateralMove(t);\r\n\t\t//System.out.println(x + \" \" + y);\r\n\t\t\r\n\t\tfor(Thing other: ((DrawComponent)c).getList()){\r\n\t\t\tint counter = 0;\r\n\t\t\twhile(isColliding(t, other) && counter < 25){\r\n\t\t\t\tx = x - .1 * t.getHV();\r\n\t\t\t\ty = y - .1 * t.getVV();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tcounter++;\r\n\t\t\t\t\r\n\t\t\t\t//x += 5;\r\n\t\t\t\t//y += 5;\r\n\t\t\t\tt.setPoint(new Point((int)Math.round(x), (int)Math.round(y)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "title": "" } ]
18a61cdcfe75d6e0043c90a1a52cf8e1
synchronized method if Synchronized is replaced with public then thee order of printing will be random
[ { "docid": "9daeceff61700c69901566f45f9b715a", "score": "0.0", "text": "synchronized void PrintTable(int val){\n for(int i = 0; i < 5; i++){\n System.out.println(val*i);\n try{\n Thread.sleep(400);\n }catch(Exception e){System.out.println(e);}\n }\n }", "title": "" } ]
[ { "docid": "8fe59cd4a59bc8edafa06b064d28508e", "score": "0.664876", "text": "synchronized\tstatic void read()\n\t {\n\t System.out.println(\n\t \"a=\" + a + \" b=\" + b +\" \"+ Thread.currentThread().getId());\n\t }", "title": "" }, { "docid": "182ff7c82309a7020c4aae504d6eda85", "score": "0.6238123", "text": "public void synchronizedMethod() {\t\r\n\t\tfinal List<String> list=new ArrayList<String>();\r\n\t\tfinal List<String> synList=Collections.synchronizedList(list);\r\n\t\tfinal Object dedicatedLock=new Object();\r\n\t\tThread tOne=new Thread(new Runnable(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() { // only one thread enters this block at a time\r\n\t\t\t\tsynchronized(dedicatedLock){ // block one\r\n\t\t\t\tfor(int i=0;i<5;i++){\r\n\t\t\t\t\tSystem.out.println(synList.add(\"add one \"+i)+ \" one\");\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tThread tTwo=new Thread(new Runnable(){\r\n\r\n\t\t\t// even if the run method is synchronized \r\n\t\t\t// and if the synchronized ( dedicatedLock ) is commented out\r\n\t\t\t// then it means the run method takes 'this' as the lock i.e., the object of the method as lock and not the dedicatedLock as lock\r\n\t\t\t// so two different lock objects doesnt give proper synchronization\r\n\t\t\t@Override\r\n\t\t\tpublic synchronized void run() {// only one thread enters this block at a time\r\n\t\t\t\t//synchronized(dedicatedLock){ //block two\r\n\t\t\t\tfor(int i=0;i<5;i++){\r\n\t\t\t\t\tSystem.out.println(synList.add(\"add two \"+i)+\" two\");\r\n\t\t\t\t}\r\n\t\t\t\t//}\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\t\r\n\t\t\r\n\t\ttTwo.start(); // starts first\r\n\t\ttOne.start(); // starts next\r\n\t\ttry {\r\n\r\n\t\t\ttOne.join(); //InterruptedException\r\n\t\t\ttTwo.join();//InterruptedException\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// without .join() executes before thread starts\r\n\t\t// with .join() executes after thread starts\r\n\t\tSystem.out.println(synList.size() +\" \"+synList); \r\n\r\n\t}", "title": "" }, { "docid": "30b2796f04ec54eb9dd8e6fcfa102c67", "score": "0.62164867", "text": "public void synchronizedOfThisMethod() {\t\r\n\t\tfinal List<String> list=new ArrayList<String>();\r\n\t\tfinal List<String> synList=Collections.synchronizedList(list);\r\n\t\t//final Object dedicatedLock=new Object();\r\n\t\tThread tOne=new Thread(new Runnable(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic synchronized void run() { // only one thread enters this block at a time\r\n\t\t\t\t//synchronized(dedicatedLock){ // block one\r\n\t\t\t\tfor(int i=0;i<5;i++){\r\n\t\t\t\t\tSystem.out.println(synList.add(\"add one \"+i)+ \" one\");\r\n\t\t\t\t}\r\n\t\t\t\t//}\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tThread tTwo=new Thread(new Runnable(){\r\n\r\n\t\t\t// even if the run method is synchronized \r\n\t\t\t// and if the synchronized ( dedicatedLock ) is commented out\r\n\t\t\t// then it means the run method takes 'this' as the lock i.e., the object of the method as lock and not the dedicatedLock as lock\r\n\t\t\t// both the run methods have different object as their lock, i.e., tTwo and tOne\r\n\t\t\t// so two different lock objects does not give proper synchronization\r\n\t\t\t@Override\r\n\t\t\tpublic synchronized void run() {// only one thread enters this block at a time\r\n\t\t\t\t//synchronized(dedicatedLock){ //block two\r\n\t\t\t\tfor(int i=0;i<5;i++){\r\n\t\t\t\t\tSystem.out.println(synList.add(\"add two \"+i)+\" two\");\r\n\t\t\t\t}\r\n\t\t\t\t//}\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\t\r\n\t\t\r\n\t\ttTwo.start(); // starts first\r\n\t\ttOne.start(); // starts next\r\n\t\ttry {\r\n\r\n\t\t\ttOne.join(); //InterruptedException\r\n\t\t\ttTwo.join();//InterruptedException\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t// without .join() executes before thread starts\r\n\t\t// with .join() executes after thread starts\r\n\t\tSystem.out.println(synList.size() +\" \"+synList); \r\n\r\n\t}", "title": "" }, { "docid": "1179cbcde384ce0c10c5e1d16352175c", "score": "0.615721", "text": "@Override\n\tpublic void run() {\n\n\t\tsynchronized (s) {\n\t\t\tfor (int i = 1; i <=10; i++) {\n\t\t\t\twhile (s.isPrinted()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ts.wait();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" \"\n\t\t\t\t\t\t+ s.getCount());\n\t\t\t\ts.setPrinted(true);\n\t\t\t\ts.notify();\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "ff4db596dca7d60dd49782fbc5656922", "score": "0.6147395", "text": "@Override\r\n\t\t\tpublic synchronized void run() {// only one thread enters this block at a time\r\n\t\t\t\t//synchronized(dedicatedLock){ //block two\r\n\t\t\t\tfor(int i=0;i<5;i++){\r\n\t\t\t\t\tSystem.out.println(synList.add(\"add two \"+i)+\" two\");\r\n\t\t\t\t}\r\n\t\t\t\t//}\r\n\t\t\t}", "title": "" }, { "docid": "ff4db596dca7d60dd49782fbc5656922", "score": "0.6147395", "text": "@Override\r\n\t\t\tpublic synchronized void run() {// only one thread enters this block at a time\r\n\t\t\t\t//synchronized(dedicatedLock){ //block two\r\n\t\t\t\tfor(int i=0;i<5;i++){\r\n\t\t\t\t\tSystem.out.println(synList.add(\"add two \"+i)+\" two\");\r\n\t\t\t\t}\r\n\t\t\t\t//}\r\n\t\t\t}", "title": "" }, { "docid": "3b51a3fb2d43815a5d00574356827508", "score": "0.61023784", "text": "public void run(){\n\t\tlocal.set(Math.random()+\"\"+Thread.currentThread());\n\t\t//local += \"manjit\"+Thread.currentThread()+Math.random();\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(local.get());\n\t}", "title": "" }, { "docid": "162465b6079ec462f4910f3aaa9bef33", "score": "0.60768294", "text": "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized(dedicatedLock){ // block one\r\n\t\t\t\tfor(int i=0;i<5;i++){\r\n\t\t\t\t\tSystem.out.println(synList.add(\"add one \"+i)+ \" one\");\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "c37cf95f15abd2603b1bb6f0c9c8433c", "score": "0.60008234", "text": "public void function_handling_common_resource3()\n {\n synchronized(Thrd.class){\n for (int k = 0; k < 5; ++k) \n System.out.println(\"Sync obj \" + k);\n }\n }", "title": "" }, { "docid": "4c132c69fc86f6577b6ef9c75745a6a7", "score": "0.5991849", "text": "synchronized void show(){\n\t\tThread th = Thread.currentThread();\r\n\t\tfor(int i=0;i<5;i++){\r\n\t\t\tSystem.out.println(th.getName()+\" -SHOW:\"+i+\"\\t\"+this);\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(100);\r\n\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "fd3f40b04e6d18b4bc0735e0c2a4e621", "score": "0.5991362", "text": "public static void main(String[] args) throws Exception {\n char a=194;\n System.out.println(a);\n synchronized(Demo.class){\n System.out.println();\n }\n }", "title": "" }, { "docid": "2d7f8e53f10ff309733e1e1aaa6f3ee2", "score": "0.5971763", "text": "synchronized public void call(String msg) {\n\t\tSystem.out.print(++count1 + \"[\" + msg);\n\t\ttry {\n\t\t\tThread.sleep(1000);// un secondo di pausa\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"]\" + ++count2);\n\t}", "title": "" }, { "docid": "a03e7e8bce76ad8cbd090c880d2c5453", "score": "0.58387977", "text": "@Override\n\tpublic void run() {\n\t\tsynchronized (sharedObject) {\n\t\t\t\n\t\t\tint i = 0;\n\t\t\twhile(i<20){\n\t\t\t\tif (!name.equals(Thread.currentThread().getName())) {\n\n\t\t\t\t\ttry{\n\t\t\t\t\t\tsharedObject.wait();\n\t\t\t\t\t}catch(InterruptedException ie){\n\t\t\t\t\t\tie.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(this.name.equals(Thread.currentThread().getName())){\n\t\t\t\t\tSystem.out.println(number);\n\t\t\t\t\t\n\t\t\t\t\t//share lock to t2\n\t\t\t\t\tif(Thread.currentThread().getName().equals(\"T1\")){\n\t\t\t\t\t\tname = \"T2\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(Thread.currentThread().getName().equals(\"T2\")){\n\t\t\t\t\t\tname = \"T3\";\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tname = \"T1\";\n\t\t\t\t\t}\n\t\t\t\t\ti++;\n\t\t\t\t\tsharedObject.notifyAll();\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "8613c8e868f74b7f57f36f006bb3ccc6", "score": "0.57734334", "text": "public void print() {\n\t Lib.assertTrue(Machine.interrupt().disabled());\n\n\t for (Iterator i=waitQueue.iterator(); i.hasNext(); )\n\t\tSystem.out.print((KThread) i.next() + \" \");\n\t}", "title": "" }, { "docid": "858aa2301ec08fa935dfe1e7da009d0a", "score": "0.5752444", "text": "public static void main(String[] args) throws InterruptedException {\n\n ThreadSyncronization object = new ThreadSyncronization();\n\n // 1. Demonstrating Synchronized Method\n Runnable runnable = () -> object.printNumbers(10);\n\n // Creating the executor service for running threads using runnables having the\n // synchronized method\n Thread thread1 = new Thread(runnable);\n Thread thread2 = new Thread(runnable);\n\n thread1.start();\n thread2.start();\n\n thread1.join();\n thread2.join();\n\n // 2. Demonstrating Synchronized Block\n // The two threads will not interfere while incrementing the counter due to\n // synchronized block\n\n Thread thread3 = new Thread(object);\n Thread thread4 = new Thread(object);\n\n thread3.start();\n thread4.start();\n\n thread3.join();\n thread4.join();\n }", "title": "" }, { "docid": "fd602a3a0f4ec98ae04c19a4f6120cc3", "score": "0.57283497", "text": "public void synchBlockVectorShiftsObjectToRight() {\r\n\r\n\r\n\t\tThread tTwo=new Thread(new Runnable(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic synchronized void run() { \r\n\t\t\t\tvector.add(\"Finst2\");\r\n\t\t\t\tvector.add(0, vector.get(0).replaceAll(\"Fi\", \"Bu\")+\"replace2\"); // takes time so equivalent to Thread.sleep, so executes output second\r\n\r\n\t\t\t\tsynchronized (vector) {\r\n\t\t\t\t\t//Now this \"get-if-not-empty\" operation is atomic and race condition-free.\r\n\t\t\t\t\tif (vector.size() > 0) {\r\n\t\t\t\t\t\tSystem.out.println(\"Thread 2 \"+vector.get(0));\r\n\t\t\t\t\t\tvector.add(\"Number2\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tThread tOne=new Thread(new Runnable(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic synchronized void run() { \r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//when commented out the output is \r\n\t\t\t\t\t//Thread 2 Bunst\r\n\t\t\t\t\t//Thread 1 Bunst\r\n\t\t\t\t\t//At last Bunst\r\n\t\t\t\t\t// or \r\n\t\t\t\t\t//Thread 2 Bunst\r\n\t\t\t\t\t//Thread 1 Bunst\r\n\t\t\t\t\t//At last Bunst\r\n\r\n\r\n\t\t\t\t\tThread.sleep(400);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tvector.add(\"First1\");\r\n\t\t\t\tvector.add(0, vector.get(0).replaceAll(\"Fi\", \"Bu\")+\"replace1\"); // takes time so equivalent to Thread.sleep, so executes output second\r\n\r\n\t\t\t\tsynchronized (vector) {\r\n\t\t\t\t\t//Now this \"get-if-not-empty\" operation is atomic and race condition-free.\r\n\t\t\t\t\tif (vector.size() > 0) {\r\n\t\t\t\t\t\tSystem.out.println(\"Thread 1 \"+vector.get(0));\r\n\t\t\t\t\t\tvector.add(\"Number1\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttTwo.start();\r\n\t\ttOne.start();\r\n\r\n\t\ttry {\r\n\t\t\ttOne.join();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"At last \"+vector.get(0) +\" vector contents are \"+ vector.toString());\r\n\t}", "title": "" }, { "docid": "ad67039e15151315859e0d98aa97d0b7", "score": "0.5727511", "text": "synchronized void foo() {\n }", "title": "" }, { "docid": "df8b193502233af9ab3615fcb9771638", "score": "0.5721917", "text": "public static synchronized void method_4() {\n\t}", "title": "" }, { "docid": "8bf1dc958a39605d2a7a65f0e34ddb4b", "score": "0.57190657", "text": "void sync();", "title": "" }, { "docid": "6195b979fa5a0476e38c2242a8ab3802", "score": "0.5704303", "text": "@Override\n public void lock(){\n }", "title": "" }, { "docid": "6c3fed7dd65f72ae578e7eb63fa802a6", "score": "0.56913245", "text": "@Override\n public void run() {\n\n System.out.println(VolatileDoubleLockSingleton.getInstance());\n }", "title": "" }, { "docid": "60b00fda0b7671a2d2c0c403b3d589ba", "score": "0.56821257", "text": "synchronized public void stampaCOnatatore(){\n for (int i = 5; i > 0; i--) {\r\n System.out.println(\"\\tcontatore \"+i);\r\n }\r\n }", "title": "" }, { "docid": "218c0f1375a9d0eab6fddcc9f4cd73b7", "score": "0.56809586", "text": "@Override\n\tpublic void printOrder(){\n\t\tGenericView.println(this.toString());\t\t\n\t}", "title": "" }, { "docid": "d74006c8de0f82e8405cc94f7d546f97", "score": "0.5629504", "text": "public void print(){\n\t\tSystem.out.print(printHelper());\n\t}", "title": "" }, { "docid": "625169e41c5250bcc129d1ea2c1d6022", "score": "0.56253344", "text": "@Override\n public void lock() {\n\n }", "title": "" }, { "docid": "7f902073132e1a4a5fbb59066c2eb5f1", "score": "0.56163555", "text": "private void Synchronized(FileProcessor fileProcessor2) {\n\t\r\n}", "title": "" }, { "docid": "255d2c216406bb2437948cd405a34bc7", "score": "0.5576476", "text": "@Override\r\n\tpublic void run() {\n\t\t\r\n\t\tint sayac = 0;\r\n\t\tint tahmin;\r\n\t\t/*\r\n\t\tdo\r\n\t\t{\r\n\t\t\ttahmin = (int) (Math.random() * 100 + 1);\r\n\t\t\tsayac++;\r\n\t\t\tSystem.out.println(this.getName() + \" Tahmin : \" + tahmin);\r\n\t\t}while(sayi != tahmin);\r\n\t\t\t\r\n\t\t\t\r\n\t\t System.out.println(this.getName() + \" dogru tahmin etti. Deneme Sayisi : \" + sayac + \" Sayimiz : \" + sayi);\r\n\t\t*/\r\n\t\tsynchronized(ThreadOrnek.class) // sirali bir sekilde calismasini sagladik.\r\n\t\t{\r\n\t\t\tdo\r\n\t\t{\r\n\t\t\ttahmin = (int) (Math.random() * 100 + 1);\r\n\t\t\tsayac++;\r\n\t\t\tSystem.out.println(this.getName() + \" Tahmin : \" + tahmin);\r\n\t\t}while(sayi != tahmin);\r\n\t\t\tSystem.out.println(this.getName() + \" dogru tahmin etti. Deneme Sayisi : \" + sayac + \" Sayimiz : \" + sayi);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "20b623d1a4b00e64a24e1e069293b288", "score": "0.5563377", "text": "private void print() {\n }", "title": "" }, { "docid": "37ba7425ac307e8421d24713673dec45", "score": "0.5560218", "text": "synchronized void printTable(int n){\t// this method is shared and should have a synchronized keyword before it\n\t\tfor(int i = 1; i <= 10; ++i){\n\t\t\tSystem.out.println(n + \"*\" + i + \"=\" + n*i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tThread.sleep(1000);\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e7d221d1c1fe20add75521d2d7ea67fc", "score": "0.5552947", "text": "@Override\n public void run() {\n System.out.println(this + \" \");\n }", "title": "" }, { "docid": "f9ac2b401c40246d1a77c8108dece04b", "score": "0.55393326", "text": "@Override\r\n\tpublic void run() {\n\t\tfor (int i = 0; i < 10; i++) {\r\n\r\n\t\t\tSystem.out.println(Thread.currentThread().getName() + z.getNumber());\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "b85e0bf8e9f959bfb5433f3fb66443b3", "score": "0.55117255", "text": "@Override\n\t\t\tpublic void doIt() {\n\t\t\t\tSystem.out.println(k);\n\t\t\t\tSystem.out.println(\"I always do it :)\");\n\t\t\t}", "title": "" }, { "docid": "85ba7daf0b1c85553fca0e73941cd40c", "score": "0.550883", "text": "void printStat(){\n if (!canPrint) return;\n System.out.println(\"===================================================================\");\n for(ConcurrentHashMap.Entry entry : data.getEntries()){\n System.out.println(entry.getKey() + \" \" + entry.getValue());\n }\n System.out.println(\"===================================================================\\n\\n\");\n }", "title": "" }, { "docid": "096eabf412a3b760e47f8471bf801fb8", "score": "0.5490162", "text": "public static void main(String args[]) {\n List<String> synchronizedarraylist = Collections.synchronizedList(new ArrayList<String>());\n\n //Adding elements to synchronized ArrayList\n synchronizedarraylist.add(\"Basketball\");\n synchronizedarraylist.add(\"Baseball\");\n synchronizedarraylist.add(\"Football\");\n\n System.out.println(\"Synchronized ArrayList Iteration:\");\n synchronized(synchronizedarraylist) {\n Iterator<String> iterator = synchronizedarraylist.iterator(); \n while (iterator.hasNext())\n System.out.println(iterator.next());\n }\n }", "title": "" }, { "docid": "6f986f01121840c43325120230ea60f1", "score": "0.5487997", "text": "public short synchronization() {\r\n return sync;\r\n }", "title": "" }, { "docid": "ca0e27536267337638311693c277857a", "score": "0.54868245", "text": "public void printPostOrder(){\n\n\n\n }", "title": "" }, { "docid": "6bb3a0a53b9392aac9af4be1b547dd8b", "score": "0.5479036", "text": "public static void processSynchrony2() {\n\n Thread t5 = new Thread(new Runnable() {\n @Override\n public void run() {\n for (int i = 0; i < 100; i++) {\n incrementCounter1();\n }\n }\n });\n\n Thread t6 = new Thread(new Runnable() {\n @Override\n public void run() {\n for (int i = 0; i < 100; i++) {\n incrementCounter2();\n }\n }\n });\n\n t5.start();\n t6.start();\n\n try {\n t5.join();\n t6.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n System.out.println(\"The Synchronize Counter 1 is: \" + counterSync1);\n System.out.println(\"The Synchronize Counter 2 is: \" + counterSync2);\n }", "title": "" }, { "docid": "24dbbbc84283b6a164111655baa2e408", "score": "0.5467373", "text": "public synchronized String getName(){return _name;}", "title": "" }, { "docid": "7967e6d3fa80e98a3ef7892daf88cb15", "score": "0.54607016", "text": "@Override\r\n\tpublic void run() {\n\t\twhile(true){\r\n\t\t\tSystem.out.print(Thread.currentThread().getName());\r\n\t\t\tthis.student.getStudent();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "199d6ec500d995d6d295b6bddaca4c63", "score": "0.54552275", "text": "public void print() {\n\r\n\t}", "title": "" }, { "docid": "c0272a3e0382e102f4446a51032d92ee", "score": "0.5451201", "text": "public void run() \n {\n try \n {\n // wait for all participants before performing tasks\n System.out.println(text1.replaceFirst(\"@TOKEN@\", Integer.toString(expectedParticipants)));\n enterBarrier.barrier();\n \n // perform task once all of the expected participants is present\n String currentDateAndTime = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(new Date());\n System.out.println(text2.replaceFirst(\"@TOKEN@\", this + Integer.toString(expectedParticipants)).replaceFirst(\"@TOKEN@\", currentDateAndTime));\n\n // wait for all participants to complete their task before exiting\n exitBarrier.barrier();\n System.out.println(text3);\n } \n catch(InterruptedException ie) \n {\n ie.printStackTrace();\n } \n }", "title": "" }, { "docid": "d9e02ccc0f13ec9758b27df9b31a1c82", "score": "0.54408205", "text": "public void print() {\nSystem.out.println(\"Within Print\"); \r\n}", "title": "" }, { "docid": "40c310ace6cd5c41f50785227880c55e", "score": "0.5435539", "text": "@Override\n public void run() {\n\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n }\n\n System.out.println(getSerialNumber());\n }", "title": "" }, { "docid": "3954fee029bb016359ee0f4f5de9d02a", "score": "0.5432832", "text": "@Override\n\t\tpublic void run() {\n\t\t System.out.println(\"TestThread02 is run \");\n\t\t}", "title": "" }, { "docid": "60b602037265fa479427ff25953ebd4d", "score": "0.542563", "text": "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tSystem.out.println(m);\n\t\t\t\t}", "title": "" }, { "docid": "90c107c29a74c6e90e6db7a25eb9b51d", "score": "0.5425609", "text": "public synchronized void method_2() {\n\t}", "title": "" }, { "docid": "a28368662cecab07c254f1446a941717", "score": "0.54243773", "text": "public void setSynchronized(boolean sync);", "title": "" }, { "docid": "234fb877ad67f54bb69ca858543f1733", "score": "0.54226947", "text": "private void printFlushProgress() {\n }", "title": "" }, { "docid": "bd5b326391321448671fc4f71fb394ae", "score": "0.5392694", "text": "@Override\r\npublic void run() {\n\tString name= Thread.currentThread().getName();\r\n\t\r\n\t//print line it should print the name of thread along with message we have passed\r\n\tSystem.out.println(name +\" get started\");\r\n\t\r\n\ttry {\r\n\t\t//here we are putting our main Thread on sleep\r\n\t\tThread.sleep(1000);\r\n\t\t//applying synchronized keyword and handing the exception\r\n\t\tsynchronized (txt) {\r\n\t\t\t//called the settxt method and pass the message of display \r\n\t\t\ttxt.setTxt(name+\"Notifer has done his work\");\r\n\t\t\t//txt.notify();\r\n\t\t\ttxt.notifyAll();\r\n\t\t\t\r\n\t\t}\r\n\t} catch (InterruptedException e) {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\te.printStackTrace();\r\n\t}\r\n\t\r\n\t\r\n}", "title": "" }, { "docid": "25288f71ee92851705cc637407b752de", "score": "0.5391063", "text": "public String toString() {\n Object object = this.mutex;\n // MONITORENTER : object\n // MONITOREXIT : object\n return this.m.toString();\n }", "title": "" }, { "docid": "25288f71ee92851705cc637407b752de", "score": "0.5391063", "text": "public String toString() {\n Object object = this.mutex;\n // MONITORENTER : object\n // MONITOREXIT : object\n return this.m.toString();\n }", "title": "" }, { "docid": "0261e0705cb8328f1e357311d7dc17ad", "score": "0.5385585", "text": "private static void staticMethod () {\n // JDK7 匿名内部类写法\n new Thread(new Runnable(){// 接口名\n @Override\n public void run(){// 方法名\n System.out.println(\"Thread run()\");\n }\n }).start();\n }", "title": "" }, { "docid": "e16167b8afdf35410e3b6e267a50873d", "score": "0.53798515", "text": "@Override\n public synchronized void run(){\n result = Math.log(result);\n result ++;\n roundCounter--;\n System.out.println(\"Result B: \" + result);\n }", "title": "" }, { "docid": "5cc8697594b0686559f50c62cab66587", "score": "0.5369492", "text": "@Override\r\n\tpublic void print() {\n\t\tSystem.out.println(\"In Print\");\r\n\t}", "title": "" }, { "docid": "eb23fab16512ced24389801ba48289d8", "score": "0.53681946", "text": "private static synchronized int rand__sync(int a, int b) {\n return rnd.nextInt(b - a + 1) + a;\n }", "title": "" }, { "docid": "d17872c68e43ddfd26af90e3f2e9bf6a", "score": "0.53653234", "text": "public static void parallelorederingShow() {\n\t\tList<String> peekon = Collections.synchronizedList(new ArrayList<>());\r\n\r\n\t\tList<String> strList = IntStream.range(0, 20).parallel().filter(i -> i % 2 == 0).mapToObj(String::valueOf)\r\n\t\t\t\t.peek(peekon::add).collect(Collectors.toList());\r\n\r\n\t\tSystem.out.println(peekon);\r\n\t\tSystem.out.println(strList);\r\n\t}", "title": "" }, { "docid": "dd3b3d2a0ccc73a1b6c5b1e07f00d84f", "score": "0.5362688", "text": "public void print() {\n\t\t\n\t}", "title": "" }, { "docid": "dd3b3d2a0ccc73a1b6c5b1e07f00d84f", "score": "0.5362688", "text": "public void print() {\n\t\t\n\t}", "title": "" }, { "docid": "42f5d58645aa5aaaddfecf9c1ec62d9b", "score": "0.5361559", "text": "public int[][] printArray(int lock){\n\t\tint ii = 0;\n\t\tif (lock == 1){\n\t\t\tSystem.out.println(\"sortedArray ----------------------------------------------------------------------\");\n\t\t\twhile(ii < numFields){\n\t\t\t\tSystem.out.println(Keys.get(sortedArray[ii][0]) + \" \" + sortedArray[ii][1]);\n\t\t\t\tii++;\n\t\t\t}\n\t\t}\n\t\treturn sortedArray;\n\t}", "title": "" }, { "docid": "1ff92be7ab7e31ae7c9db24656114938", "score": "0.5360264", "text": "public void print() {\n\t}", "title": "" }, { "docid": "f9f0968a5d9e3550906bb5a1d617f376", "score": "0.53564715", "text": "public void lock() {\r\n super.lock();\r\n }", "title": "" }, { "docid": "f9f0968a5d9e3550906bb5a1d617f376", "score": "0.53564715", "text": "public void lock() {\r\n super.lock();\r\n }", "title": "" }, { "docid": "f9f0968a5d9e3550906bb5a1d617f376", "score": "0.53564715", "text": "public void lock() {\r\n super.lock();\r\n }", "title": "" }, { "docid": "45190596e5df2a0618dbad49e312dc89", "score": "0.53535265", "text": "void lock();", "title": "" }, { "docid": "39750ec37b38c9cc333e9fec7dfa78ff", "score": "0.5351019", "text": "@Override\n\tpublic void print() {\n\t\t\n\t}", "title": "" }, { "docid": "39750ec37b38c9cc333e9fec7dfa78ff", "score": "0.5351019", "text": "@Override\n\tpublic void print() {\n\t\t\n\t}", "title": "" }, { "docid": "39750ec37b38c9cc333e9fec7dfa78ff", "score": "0.5351019", "text": "@Override\n\tpublic void print() {\n\t\t\n\t}", "title": "" }, { "docid": "39750ec37b38c9cc333e9fec7dfa78ff", "score": "0.5351019", "text": "@Override\n\tpublic void print() {\n\t\t\n\t}", "title": "" }, { "docid": "39750ec37b38c9cc333e9fec7dfa78ff", "score": "0.5351019", "text": "@Override\n\tpublic void print() {\n\t\t\n\t}", "title": "" }, { "docid": "39750ec37b38c9cc333e9fec7dfa78ff", "score": "0.5351019", "text": "@Override\n\tpublic void print() {\n\t\t\n\t}", "title": "" }, { "docid": "32543235138af2306a89801e84492782", "score": "0.5345133", "text": "@Override\n\tvoid print() {\n\n\t}", "title": "" }, { "docid": "32543235138af2306a89801e84492782", "score": "0.5345133", "text": "@Override\n\tvoid print() {\n\n\t}", "title": "" }, { "docid": "f06eeb1a0d921b711c2aeb4387a645a6", "score": "0.5342273", "text": "public void print() {\n int index = 0;\n int mindex = 0;\n while(index+1 != datasize) {\n System.out.print(data[index].getData() + \" \");\n int mersenne = (int)Math.pow(2, mindex+1)-1;\n if(index+1 == mersenne) {\n System.out.print(\"\\n\");\n mindex++; \n }\n index++;\n }\n }", "title": "" }, { "docid": "c95d1a9ab94e813592fe58321653d7b2", "score": "0.5339974", "text": "@Override\n\tvoid print() {\n\t}", "title": "" }, { "docid": "7978d9c9c68fa26cadbb3ed5d0d6e467", "score": "0.5338373", "text": "public static void doDemo() {\n\t\tString[] messages = new String[] { \"Hello world\", \"Bonjour\", \"Hola\", \"Prynhawn da\" };\r\n\t\t\r\n\t\tSystem.out.printf(\"[%s] Creating a CyclicBarrier that requires %d threads to reach a common point.\\n\", new Date(), messages.length);\r\n\t\tCyclicBarrier barrier = new CyclicBarrier(messages.length,\r\n\t\t\t\t new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() { System.out.println(\"ALL THREADS REACHED BARRIER!!!\"); }\r\n\t\t\t\t\t\t\t\t\t\t\t\t });\r\n\r\n\t\t// Use the CyclicBarrier for the 1st time...\r\n\t\t// Create a separate thread to process each row, to convert to UPPERCASE. \r\n\t\t// The threads must wait for each other to finish, via the CyclicBarrier.\r\n\t\tfor (int i = 0; i < messages.length; i++) {\r\n\t\t Runnable r = new MyStringProcessorWithCyclicBarrier(messages, i, true, barrier);\r\n\t\t\tnew Thread(r).start();\r\n\t\t}\r\n\t\t\r\n\t\t// Wait for all threads to have reached the barrier.\r\n\t\ttry {\r\n\t\t\tbarrier.await();\r\n\t\t} \r\n\t\tcatch (InterruptedException e) {} \r\n\t\tcatch (BrokenBarrierException e) {}\r\n\r\n\r\n\t\t// Use the CyclicBarrier for the 2nd time...\r\n\t\t// Create a separate thread to process each row, to convert to lowercase. \r\n\t\t// The threads must wait for each other to finish, via the CyclicBarrier.\r\n\t\tfor (int i = 0; i < messages.length; i++) {\r\n\t\t Runnable r = new MyStringProcessorWithCyclicBarrier(messages, i, false, barrier);\r\n\t\t\tnew Thread(r).start();\r\n\t\t}\r\n\t\t\r\n\t\t// Wait for all threads to have reached the barrier.\r\n\t\ttry {\r\n\t\t\tbarrier.await();\r\n\t\t} \r\n\t\tcatch (InterruptedException e) {} \r\n\t\tcatch (BrokenBarrierException e) {}\r\n\r\n\t\t\r\n\t\tSystem.out.printf(\"[%s] ================THE END================\\n\", new Date());\r\n\t}", "title": "" }, { "docid": "69ad5b3e699e502bf4a7b8e3f02ae772", "score": "0.5336809", "text": "@Override\n public void run(){\n for(int i = 0; i <= 100; i++){\n System.out.println(\"Thread \"+this.number+\": \"+i);\n }\n }", "title": "" }, { "docid": "6df9c8a06c443e8f04a1159226edba1b", "score": "0.53360814", "text": "public static synchronized void printNumbers() {\n for (int i = 0; i <= 5; i++) {\n System.out.println(Thread.currentThread().getName() + \": \" + i);\n try {\n //Sleep is used to simulate delay in thread operations\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "1065829a81849c39f82584ea0ff98c55", "score": "0.53358", "text": "public synchronized int getCurHumanNum(){return _currHumanNum;}", "title": "" }, { "docid": "e88606137b6b8b4d26578ef1904e47e1", "score": "0.5330382", "text": "static synchronized void fooStatic() {\n }", "title": "" }, { "docid": "c2f0a16e77500b8e0a1b3f088291e5e8", "score": "0.53275067", "text": "protected void m1()\n\t {\n\t\t \n\t System.out.println(\"fhgfgh\");\n\t \n\t }", "title": "" }, { "docid": "0a57c20ecd0b53b09eebdc1e581b279b", "score": "0.5326634", "text": "public void print()\n\t{\n\t\tTask current = this.first;\n\t\tint count = 1;\n\t\twhile (current != null)\n\t\t{\n\t\t\tif (!current.getComplete())\n\t\t\t{\n\t\t\t\tSystem.out.println(count + \". \" + current.getName());\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tcurrent = current.next;\n\t\t}\n\t}", "title": "" }, { "docid": "d05045b6445e2bfe628f008d71030ba7", "score": "0.5325871", "text": "public void myDemo16(String usernameParam, String passwordParam) {\r\n try {\r\n String anyString = new String();\r\n synchronized (anyString) {\r\n System.out.println(\"ThreadName:\" + Thread.currentThread().getName() + \" start time:\" + System.currentTimeMillis());\r\n username = usernameParam;\r\n Thread.sleep(3000);\r\n password = passwordParam;\r\n System.out.println(\"ThreadName:\" + Thread.currentThread().getName() + \" end time:\" + System.currentTimeMillis());\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "e9fc4f02bbdd39a8bc75adfba6387c21", "score": "0.532089", "text": "@Override\n public void run() {\n System.out.printf(\"Starting Thread: %s : %s\\n\", Thread.currentThread().getId(), startDate.get());\n try {\n TimeUnit.SECONDS.sleep((int) Math.rint(Math.random() * 10));\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // Writes the start date\n System.out.printf(\"Thread Finished: %s : %s\\n\", Thread.currentThread().getId(), startDate.get());\n }", "title": "" }, { "docid": "4bf5245cfbb97e962b2e78a0f4ffa1aa", "score": "0.5320855", "text": "@Override\r\n public void print() {\n }", "title": "" }, { "docid": "0c93176d7a9c63ac2042d39807bb7e18", "score": "0.5320688", "text": "@Override\n\t\t\tpublic void run() {\n\t\t\t\tfor (int i = 0; i < 20; i++) {\n\t\t\t\t\tSystem.out.println(\"我是匿名内部类\");\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "92f8e563a087499e2730dee52b12fb27", "score": "0.53182054", "text": "public void printInOrder(){\n\n\n\n\n }", "title": "" }, { "docid": "97b9377f7eaf3611c7c918012c0189bb", "score": "0.5313977", "text": "@Override void print () {\n }", "title": "" }, { "docid": "cc4ed24d5a1a37093b0e37fb59f5d47e", "score": "0.5313539", "text": "public void lock() {\n super.lock();\n }", "title": "" }, { "docid": "cc4ed24d5a1a37093b0e37fb59f5d47e", "score": "0.5313539", "text": "public void lock() {\n super.lock();\n }", "title": "" }, { "docid": "41a6395541e5a11ebd1cb7a99a08e0c9", "score": "0.53125453", "text": "@Override\r\n\tpublic void perform() {\n System.out.println(\"ÎÒÕýÔÚ±íÑÝ\");\r\n\t}", "title": "" }, { "docid": "347268be80750615ed5b90dbcf43ca8b", "score": "0.5311933", "text": "public synchronized void printBuffer() {\n\t\tSystem.out.println(\"** Print Buffer\");\n\t\tfor (int l = 0; l < nAvailable; ++l) {\n\t\t\tSystem.out.printf(\"%6d - %s\\n\", l, buffer[(nextToGet + l) % MAXSIZE].toString());\n\t\t}\t\n\t\tSystem.out.println(\"\");\n\t}", "title": "" }, { "docid": "fbd6cea24ce102a677237f2c5aca4605", "score": "0.53050363", "text": "@Test\n\tpublic void printNumbersFromNewThread() {\n\t\tList<Integer> list = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);\n\t\t\n\t\tRunnable task = () -> {\n\t\t\tlist.forEach(s -> System.out.println(Thread.currentThread().getName() + \":\" + s));\n };\n \n new Thread(task).start();\n\t\t\n\t}", "title": "" }, { "docid": "ae356b90fe30bc0bd5d98de3671844dd", "score": "0.53046393", "text": "public void print() {\n\t\trecentBlock.print();\n\t}", "title": "" }, { "docid": "63d1617315d4cc7c3362d6da9658bfa9", "score": "0.5303961", "text": "public static void main(String[] args) {\n CopyOnWriteArrayList<Object> list = new CopyOnWriteArrayList<>();\n for (int i = 0; i < 40; i++) {\n new Thread(() -> {\n list.add(UUID.randomUUID().toString().substring(0,4));\n System.out.println(list);\n },String.valueOf(i)).start();\n }\n }", "title": "" }, { "docid": "bee1efb6f49022aa756f287f14505f8f", "score": "0.5302985", "text": "public static void main(String[] args) {\n\t OddEvenLock lock = new OddEvenLock();\r\n\t printEven(lock);\r\n\t printOdd(lock);\r\n\t}", "title": "" }, { "docid": "57214d38cd37e720459583318d3c5599", "score": "0.5287464", "text": "public static void main(String[] args) {\n\t\tObject lock = new Object();\n\t\tRunnable runnable1 = new Runnable() {\n\t\t\tint counter1 = 0;\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (lock) {\n\t\t\t\t\twhile (counter1 < 50) {\n\t\t\t\t\t\tSystem.out.println(\"0\");\n\t\t\t\t\t\tcounter1 = counter1 + 1;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlock.notify();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t};\n\t\tThread thread1 = new Thread(runnable1);\n\n\t\tRunnable runnable2 = new Runnable() {\n\t\t\tint counter2 = 0;\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (lock) {\n\t\t\t\t\twhile (counter2 < 50) {\n\t\t\t\t\t\tSystem.out.println(\"1\");\n\t\t\t\t\t\tcounter2 = counter2 + 1;\n\t\t\t\t\t\tlock.notify();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tlock.wait();\n\t\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tThread thread2 = new Thread(runnable2);\n\n\t\tthread1.start();\n\t\tthread2.start();\n\t\t\n\t\t/*thread2.start();\n\t\tthread1.start();*/\n\t\t\n\t\t\t\n\n\t}", "title": "" }, { "docid": "9b9ab97361c2f4bc11427d02308bdfa6", "score": "0.52788275", "text": "@Override\r\n\tpublic void sing() {\n\t\tSystem.out.println(NAME+\"(\"+getName()+\")\"+\"소리내 웁니다\");\r\n\t}", "title": "" }, { "docid": "49fb0536b96049fa6fa08b38af9662a1", "score": "0.52783215", "text": "public synchronized void doSomeBusiness() {\n\t\t\n\t}", "title": "" }, { "docid": "58e06a300310a90e984f57424a65ed99", "score": "0.5276922", "text": "private static synchronized void synchronizedEmptyStaticMethod() {\n }", "title": "" }, { "docid": "b0d600dd46ac8c86f563caafa2c95059", "score": "0.52752167", "text": "@Override\r\n\tpublic void run() {\n\t\twhile (atmInt.get() < 50) {\r\n\t\t\t// Using Synchronzed Lock. // Make sure orders\r\n\t\t\t/*synchronized (atmInt) {\r\n\t\t\t\tif(atmInt.get() < 50) {\r\n\t\t\t\t\tatmInt.getAndAdd(1);\r\n\t\t\t\t\tSystem.out.println(\"Thread info \"+Thread.currentThread().getName() +\" Value is \" + atmInt.get());\r\n\t\t\t\t}\r\n\t\t\t}*/\r\n\t\t\tif(atmInt.get() < 50) {\r\n\t\t\t\tatomicLock.lock();\r\n\t\t\t\tatmInt.getAndAdd(1);\r\n\t\t\t\tSystem.out.println(\"Thread info \"+Thread.currentThread().getName() +\" Value is \" + atmInt.get());\r\n\t\t\t\tatomicLock.unlock();\r\n\t\t\t}\r\n\t\t\t//\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "e4e182618f448425fb5fbf8690e7bd61", "score": "0.5270779", "text": "@Override\n\tpublic void printSimple() {\n\t\t\n\t}", "title": "" } ]
d5e611958b24e74de18cad14f982b354
Function to create a menu item to place a song on the playback queue
[ { "docid": "400bddce5c9f090e44a8c063aa22729e", "score": "0.729625", "text": "private static MenuItem createPlaceSongOnQueueMenuItem(MusicPlayerManager musicPlayerManager, TreeView<Item> tree) {\n MenuItem placeSongOnQueue = new MenuItem(PLACE_SONG_ON_QUEUE);\n\n placeSongOnQueue.setOnAction((event) -> {\n List<TreeItem<Item>> treeItems = tree.getSelectionModel().getSelectedItems();\n for (TreeItem<Item> treeItem : treeItems) {\n Item item = treeItem.getValue();\n if (item instanceof Song) {\n Song song = (Song) item;\n musicPlayerManager.placeSongOnBackOfPlaybackQueue(song);\n }\n }\n });\n\n return placeSongOnQueue;\n }", "title": "" } ]
[ { "docid": "b5b60b99fe149afe675548e9a7d668be", "score": "0.7808746", "text": "private static MenuItem createPlaceSongOnQueueMenuItem(MusicPlayerManager musicPlayerManager, Item selectedItem) {\n MenuItem placeSongOnQueue = new MenuItem(PLACE_SONG_ON_QUEUE);\n\n placeSongOnQueue.setOnAction((event) -> {\n if (selectedItem != null) {\n Song song = (Song) selectedItem;\n musicPlayerManager.placeSongOnBackOfPlaybackQueue(song);\n }\n });\n\n return placeSongOnQueue;\n }", "title": "" }, { "docid": "c65a26fc793b60c62962e06d23ff6adf", "score": "0.7509828", "text": "private static MenuItem createPlaceSongOnQueueMenuItem(MusicPlayerManager musicPlayerManager, List<Song> selectedSongs) {\n MenuItem placeSongOnQueue = new MenuItem(PLACE_SONG_ON_QUEUE);\n\n placeSongOnQueue.setOnAction((event) -> {\n for (Song song : selectedSongs) {\n if (song != null) {\n musicPlayerManager.placeSongOnBackOfPlaybackQueue(song);\n }\n }\n });\n\n return placeSongOnQueue;\n }", "title": "" }, { "docid": "214f13123b490ce65ea587ad8ed546ae", "score": "0.7249506", "text": "private static MenuItem createPlaySongMenuItem(MusicPlayerManager musicPlayerManager, Item selectedItem) {\n MenuItem playSong = new MenuItem(PLAY_SONG);\n\n playSong.setStyle(\"-fx-font-weight: bold\");\n\n playSong.setOnAction((event) -> {\n if (selectedItem != null && selectedItem instanceof Song) {\n Song song = (Song) selectedItem;\n musicPlayerManager.playSongRightNow(song);\n }\n });\n\n return playSong;\n }", "title": "" }, { "docid": "bca15e1f69998045b069ff617c09e00f", "score": "0.71287024", "text": "private static MenuItem createPlaySongNextMenuItem(MusicPlayerManager musicPlayerManager, Item selectedItem) {\n MenuItem playSongNext = new MenuItem(PLAY_SONG_NEXT);\n\n playSongNext.setOnAction((event) -> {\n if (selectedItem != null && selectedItem instanceof Song) {\n Song song = (Song) selectedItem;\n musicPlayerManager.placeSongAtStartOfQueue(song);\n }\n });\n\n return playSongNext;\n }", "title": "" }, { "docid": "c895f28049dd6ca00ca78d1fc66b786b", "score": "0.6908387", "text": "private static MenuItem createPlaySongNextMenuItem(MusicPlayerManager musicPlayerManager, List<Song> selectedSongs) {\n MenuItem playSongNext = new MenuItem(PLAY_SONG_NEXT);\n\n playSongNext.setOnAction((event) -> {\n for (Song song : selectedSongs) {\n if (song != null) {\n musicPlayerManager.placeSongAtStartOfQueue(song);\n }\n }\n });\n\n return playSongNext;\n }", "title": "" }, { "docid": "26e1c5c64610695fd81224ec51b22076", "score": "0.66491485", "text": "private static MenuItem createPlaySongNextMenuItem(MusicPlayerManager musicPlayerManager, TreeView<Item> tree) {\n MenuItem playSongNext = new MenuItem(PLAY_SONG_NEXT);\n\n playSongNext.setOnAction((event) -> {\n List<TreeItem<Item>> treeItems = tree.getSelectionModel().getSelectedItems();\n for (TreeItem<Item> treeItem : treeItems) {\n Item item = treeItem.getValue();\n if (item instanceof Song) {\n Song song = (Song) item;\n musicPlayerManager.placeSongAtStartOfQueue(song);\n }\n }\n });\n\n return playSongNext;\n }", "title": "" }, { "docid": "0c098580198d23caf25ebe721dbe805c", "score": "0.6354469", "text": "private static MenuItem createAddToPlaylistMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n List<Song> selectedSongs) {\n MenuItem addToPlaylist = new MenuItem(ADD_TO_PLAYLIST);\n\n addToPlaylist.setOnAction((event) -> {\n List<Playlist> playlists = model.getM_playlists();\n Playlist selectedPlaylist = PromptUI.addSongToPlaylist(playlists, selectedSongs.get(0));\n for (Song song : selectedSongs) {\n if (song != null) {\n if (selectedPlaylist == null) {\n PromptUI.customPromptError(\"Error\", null, \"Please select a playlist!\");\n return;\n }\n model.addItemToPlaylist(song, selectedPlaylist);\n musicPlayerManager.notifyQueingObserver();\n }\n }\n });\n\n return addToPlaylist;\n }", "title": "" }, { "docid": "9c661b3c67d7e3244d7027ed3ebc64cf", "score": "0.6340688", "text": "private static MenuItem createAddToCurrentPlaylistMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n List<Song> selectedSongs) {\n MenuItem addToCurrentPlaylist = new MenuItem(ADD_TO_CURRENT_PLAYLIST);\n\n addToCurrentPlaylist.setOnAction((event) -> {\n for (Song song : selectedSongs) {\n if (song != null) {\n Playlist selectedPlaylist = model.getM_selectedPlaylist();\n if (selectedPlaylist == null) {\n PromptUI.customPromptError(\"Error\", null, \"Please select a playlist!\");\n return;\n }\n model.addItemToPlaylist(song, selectedPlaylist);\n musicPlayerManager.notifyQueingObserver();\n }\n }\n });\n\n return addToCurrentPlaylist;\n }", "title": "" }, { "docid": "f38538502225f39bb855d0088cf6258b", "score": "0.63341767", "text": "private static MenuItem createAddToPlaylistMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n TreeView<Item> tree) {\n MenuItem addToPlaylist = new MenuItem(ADD_TO_PLAYLIST);\n\n addToPlaylist.setOnAction((event) -> {\n List<Playlist> playlists = model.getM_playlists();\n List<TreeItem<Item>> treeItems = tree.getSelectionModel().getSelectedItems();\n Item first = treeItems.get(0).getValue();\n Song firstSong = (Song) first;\n Playlist selectedPlaylist = PromptUI.addSongToPlaylist(playlists, firstSong);\n for (TreeItem<Item> treeItem : treeItems) {\n Item item = treeItem.getValue();\n if (item instanceof Song) {\n Song song = (Song) item;\n if (selectedPlaylist == null) {\n PromptUI.customPromptError(\"Error\", null, \"Please select a playlist!\");\n return;\n }\n model.addItemToPlaylist(song, selectedPlaylist);\n musicPlayerManager.notifyQueingObserver();\n }\n }\n });\n\n return addToPlaylist;\n }", "title": "" }, { "docid": "28f83ca75ee3e4e94fdec97fe5308942", "score": "0.63110256", "text": "private static MenuItem createAddToCurrentPlaylistMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n TreeView<Item> tree) {\n MenuItem addToCurrentPlaylist = new MenuItem(ADD_TO_CURRENT_PLAYLIST);\n\n addToCurrentPlaylist.setOnAction((event) -> {\n List<TreeItem<Item>> treeItems = tree.getSelectionModel().getSelectedItems();\n for (TreeItem<Item> treeItem : treeItems) {\n Item item = treeItem.getValue();\n if (item instanceof Song) {\n Song song = (Song) item;\n Playlist selectedPlaylist = model.getM_selectedPlaylist();\n if (selectedPlaylist == null) {\n PromptUI.customPromptError(\"Error\", null, \"Please select a playlist!\");\n return;\n }\n model.addItemToPlaylist(song, selectedPlaylist);\n musicPlayerManager.notifyQueingObserver();\n }\n }\n });\n\n return addToCurrentPlaylist;\n }", "title": "" }, { "docid": "2d8e40b3d782f4e5e469e9deaddb13cb", "score": "0.6233349", "text": "public void menu(){\n menuMusic.loop(pitch, volume);\n }", "title": "" }, { "docid": "dbcec1f977c88882e841d8253003f148", "score": "0.62165225", "text": "MenuItem addItem(String title, Command callback);", "title": "" }, { "docid": "3a0293c421af0883aa2f70b95d1171f8", "score": "0.6192698", "text": "private void makeStockMenu() {\r\n\t\tJMenu stockMnu = new JMenu(\"Inventario\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Inventario\")) {\r\n\t\t\tisAccesible = true;\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarInventario\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Articulo\");\r\n\t\t\t\taddItem.setMnemonic('a');\r\n\t\t\t\taddItem.setToolTipText(\"Agregar rapidamente un nuevo articulo\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddStockItem(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tstockMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Inventario\",\r\n\t\t\t\t\timageLoader.getImage(\"world.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'v', \"Ver el inventario\",\r\n\t\t\t\t\tKeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), Stock.class);\r\n\t\t\tstockMnu.add(menuItem);\r\n\t\t\tstockMnu.addSeparator();\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Kardex\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Ver Kardex\", \r\n\t\t\t\t\timageLoader.getImage(\"kardexSingle.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'k', \"Ver el kardex\", null,\r\n\t\t\t\t\tKardex.class);\r\n\t\t\tstockMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tstockMnu.setMnemonic('i');\r\n\t\t\tadd(stockMnu);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "859c44cdd70d0430704a69a133cf7ef3", "score": "0.61367303", "text": "public void onLoadMenuMyPlaylistSelected();", "title": "" }, { "docid": "6d0572a8a3c9d2f5964a43fd5849d202", "score": "0.6136139", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_play) {\n\t\t\tif (playSong != null) {\n\t\t\t\tplaySong.cancel(true);\n\t\t\t}\n\t\t\tstopChants();\n\t\t\tplaySong = new playAll(this).execute();\n\t\t} else if (id == R.id.action_stop) {\n\t\t\tif (playSong != null) {\n\t\t\t\tplaySong.cancel(true);\n\t\t\t}\n\t\t\tfinal ListView listView = (ListView) findViewById(R.id.lines_of_song);\n\t\t\tif (listView != null) {\n\t\t\t\tsetDefaultBackgroundOnList(listView);\n\t\t\t}\n\t\t\tstopChants();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "b4475eeace62f39be72d761af6f0adad", "score": "0.6044846", "text": "public void actionPerformed( ActionEvent event )\n {\n bar.add( soundMenu ); \n validate();\n repaint();\n }", "title": "" }, { "docid": "8d2fb1a00b79a7f4e45167dcd0bf7265", "score": "0.59943163", "text": "private void addMediaMenu(){\n\t\t\n\t}", "title": "" }, { "docid": "cc34d000e6064aa97cde688bfbdabd0f", "score": "0.59789896", "text": "void printPlaylistMenu(){\n\t\tSystem.out.println(\"\\n\\nPlaylist Menu:\");\n\t\tSystem.out.println(\"1. Delete Song: delete <song id>\");\n\t\tSystem.out.println(\"2. Insert Song: insert <song id>\");\n\t\tSystem.out.println(\"3. Search and Insert Song: insert_search title/artist <string of words to be searched>\");\n\t\tSystem.out.println(\"4. Print Playlist: print\");\n\t\tSystem.out.println(\"5. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Main Menu: main\");\n\t\tSystem.out.print(\"Enter a Command : \");\n\t}", "title": "" }, { "docid": "f34d4813175181691e67903dc4f49fd5", "score": "0.59718317", "text": "@Override\r\n\tpublic void clicked(ItemMenuIcon icon, Player p) {\n\t\t\r\n\t}", "title": "" }, { "docid": "e520e5e93bf7fd7df7921d6b9d930350", "score": "0.5961209", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.menu_Exit:\n ExitClicked();\n break;\n case R.id.menu_sound:\n if(playSound) {\n if (soundplayer.isPlaying()) soundplayer.stop();\n soundplayer.release();\n }\n playSound = !playSound;\n if(playSound) soundplayer = MediaPlayer.create(MainActivity.this, R.raw.bell);\n if(fullGame)DBHandler.setSound(playSound);\n item.setChecked(playSound);\n break;\n case R.id.menu_NewGame:\n SelectNewGame();\n break;\n case R.id.About:\n LoadCredits();\n break;\n case R.id.QuickGame:\n StartQuickGame();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "23338a185fa61950115a8c4087614388", "score": "0.59526056", "text": "public native void addSubItem(MenuItem item);", "title": "" }, { "docid": "19ec1d80131f957c6df34d095139cb48", "score": "0.59408265", "text": "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n Intent intent = new Intent(this, AudioPlayActivity.class);\n startActivity(intent);\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "728e96b3cee7e4ce04b77f16eba9c016", "score": "0.5881915", "text": "public MenuItem add(CharSequence title);", "title": "" }, { "docid": "d6c1453abb02e523502b20f5aebd2b2f", "score": "0.5880579", "text": "@Override\n public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {\n Log.d(\"flow\" , \"pluginitemview | onCreateContextMenu\");\n if (((PluginItem) menuInfo.item).isAudio()) {\n super.onCreateContextMenu(menu, v, menuInfo);\n\n menu.add(Menu.NONE, R.id.play_now, Menu.NONE, R.string.PLAY_NOW);\n menu.add(Menu.NONE, R.id.add_to_playlist, Menu.NONE, R.string.ADD_TO_END);\n menu.add(Menu.NONE, R.id.play_next, Menu.NONE, R.string.PLAY_NEXT);\n }\n }", "title": "" }, { "docid": "9eb11a9c32c15254e252236667a34c23", "score": "0.5876985", "text": "private void makeAPlayListPressed() {\n\t\t// get all the selected options and their file paths and then store them in the file with a each file and its path \n\t\t// seperated from the next one by a a newline character so they can be split at that point.\n\n\t\tplaylist = allMedia.getSelectedValuesList();\n\n\t\t// get all the paths of the selected items and put them in a list and make sure that they are not zero\n\t\tif(playlist.size() != 0){\n\n\t\t\tJOptionPane.showMessageDialog(null,\"The making og the playlist takes couple of minutes! Please let it run in the back!\");\n\t\t\t// now open up a jfile chooser and make the user pick a directory and make a folder\n\t\t\t// with the name of the playlist.. The name of the text file is the location chosen and \n\t\t\t// the name of the playlist\n\t\t\t// open up a option pane and get the name of a playlist.\n\t\t\tplaylistName.setVisible(true);\n\t\t\tfor(Object o : playlist){\n\t\t\t\tallPathPlaylist.add(paths.get(o.toString()));\n\t\t\t}\n\t\t\twriteToFile();\n\t\t}\n\n\t}", "title": "" }, { "docid": "e06b1fd15c986499b5733de61a15ab00", "score": "0.58416045", "text": "private void giveSubjectMenuItem(@NotNull Player player) {\n YamlConfiguration config = SettingsManager.getInstance().getConfig();\n YamlConfiguration messages = SettingsManager.getInstance().getMessages();\n\n int slot = config.getInt(\"subject-gui.slot\");\n ItemStack item = player.getInventory().getItem(slot);\n\n if (item != null && item.getType() != Material.AIR) {\n Main.getInstance().getLogger().warning(\n \"Subject gui item overrides a different item. This other item will not be visible. Please \" +\n \"change the slots in the config.yml file to fix this.\"\n );\n }\n\n Material material = SettingsManager.getInstance().getMaterial(\"subject-gui.item.id\", Material.BARRIER);\n\n player.getInventory().setItem(\n slot,\n new ItemBuilder(player, material)\n .setDisplayName(MessageManager.translate(messages.getString(\"subject-gui.item.name\"),\n player))\n .setLore(MessageManager.translate(messages.getStringList(\"subject-gui.item.lores\"),\n player))\n .addContext(\"arena\", ArenaDataType.getInstance(), this.transitionSystem)\n .setClickEvent(ClickEvent.SUBJECT_GUI_CLICK)\n .build()\n );\n }", "title": "" }, { "docid": "daec1566ac9ca074c1bf05cf963926ab", "score": "0.5840672", "text": "private String addMusic() {\n\t\t// One Parameter: MusicName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|music:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}", "title": "" }, { "docid": "e7993d09c31d315adc9445a7adf13e90", "score": "0.5837639", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_play) {\n sampleMediaCodec.play(this, surface);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "e483e1d023eafcb518d5b6809e43e9fb", "score": "0.5829335", "text": "private static MenuItem createRemoveFromPlaylistMenuItem(SongManager model,\n MusicPlayerManager musicPlayerManager,\n int selectedSongIndex) {\n MenuItem removeFromPlaylist = new MenuItem(REMOVE_FROM_PLAYLIST);\n\n removeFromPlaylist.setOnAction((event) -> {\n Playlist selectedPlaylist = model.getM_selectedPlaylist();\n if (PromptUI.removeSongFromPlaylist(selectedPlaylist,\n selectedPlaylist.getSongByIndex(selectedSongIndex))) {\n boolean songToRemoveIsPlaying = (selectedSongIndex == selectedPlaylist.getM_currentSongIndex());\n\n selectedPlaylist.removeSong(selectedSongIndex);\n model.notifyPlaylistSongsObservers();\n\n if (!selectedPlaylist.isEmpty() && songToRemoveIsPlaying) {\n musicPlayerManager.playPlaylist(selectedPlaylist);\n }\n\n if (selectedPlaylist.isEmpty()) {\n musicPlayerManager.stopSong();\n musicPlayerManager.resetCurrentPlaylist();\n }\n }\n });\n\n return removeFromPlaylist;\n }", "title": "" }, { "docid": "b24b22ee3a9320343e204daeb9fd02a8", "score": "0.581793", "text": "private void selectItem(int position) {\n\t\t\tTinyDB tb = new TinyDB(this.getApplicationContext());\n\n \t\tString play_url;\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\t\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t play_url = tb.getString(\"play_url\");\n\t\t\t\tif (play_url.isEmpty()) {\n\t\t\t\t\tToast toast = Toast.makeText(this.getApplicationContext(), getString(R.string.no_brocast),\n\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\ttoast.show();\n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tIntent it = new Intent(this,MusicUi.class);\n\t\t\t\t\tstartActivity(it);\n\t\t\t\t}\n\t\t\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t\n\t\t\t play_url = tb.getString(\"play_url\");\n\t\t\t\tif (play_url.isEmpty()) {\n\t\t\t\t\tToast toast = Toast.makeText(this.getApplicationContext(), getString(R.string.no_brocast),\n\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\ttoast.show();\n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tsleeptimer();\n\t\t\t\t}\n\t\t\t\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase 3:\n\t\t\t\n\t\t\t\n\t\t\t\t\treportError();\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tbreak;\n\t \t}\n \t}", "title": "" }, { "docid": "d6d54ad2285a15cd3f5ffa8ecd598920", "score": "0.58147913", "text": "void subMenuCommand(String command){\n\t\tString[] strArray=command.split(\"\\\\s\");\n\t\tString mainCommand=strArray[0];\n\t\t\n\t\t// if - else if - else loop to check for the particular command and take actions according those commands\n\t\t\n\t\t// Block to delete the given song id from the current playlist\n\t\tif(mainCommand.equals(\"delete\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tint songID=Integer.parseInt(strArray[1]);\n\t\t\t\t\tPlaylist pl=songFile.playlistArray.get(currentPlaylistID);\n\t\t\t\t\tpl.deleteSong(new Integer(songID));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid delete command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block to insert the given song id to current playlist\n\t\telse if(mainCommand.equals(\"insert\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tint songID=Integer.parseInt(strArray[1]);\n\t\t\t\t\tif(songFile.isSongIdAvailable(songID)){//songID<songFile.songID){\n\t\t\t\t\t\tPlaylist pl=songFile.playlistArray.get(currentPlaylistID);\n\t\t\t\t\t\tpl.insertSong(new Integer(songID));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Song with the given ID does not exists!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid insert command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block to print the current playlist \n\t\telse if(mainCommand.equals(\"print\")){\n\t\t\tif(strArray.length==1){\n\t\t\t\tsongFile.printPlaylist(currentPlaylistID);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Block to sort and print the songs of the current playlist by the given song attribute \n\t\telse if(mainCommand.equals(\"sort\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length==2){\n\t\t\t\t\tString subCommand=strArray[1];\n\t\t\t\t\tif(subCommand.equals(\"artist\") || subCommand.equals(\"title\")){\n\t\t\t\t\t\tsongFile.sortPlaylistSongs(currentPlaylistID, subCommand);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid sort command!!\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Block to search the playlist for the songs with user given attributes and search terms\n\t\telse if(mainCommand.equals(\"search\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length>2){\n\t\t\t\t\tString subCommand=strArray[1];\n\t\t\t\t\t// Get search string from command\n\t\t\t\t\tString songAttributeValue=command.substring(command.indexOf(\"\\\"\")+1,command.lastIndexOf(\"\\\"\")).toLowerCase();\n\t\t\t\t\tif(subCommand.equals(\"artist\") || subCommand.equals(\"title\")){\n\t\t\t\t\t\tArrayList<Song> list=songFile.searchPlaylist(currentPlaylistID, subCommand, songAttributeValue);\n\t\t\t\t\t\tsongFile.printArrayList(list);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!! No search terms\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid search command!!\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// Block to search the for the songs and insert to the current playlist\n\t\telse if(mainCommand.equals(\"insert_search\")){\n\t\t\ttry{\n\t\t\t\tif(strArray.length>2){\n\t\t\t\t\tString subCommand=strArray[1];\n\t\t\t\t\t// Get search string from command\n\t\t\t\t\tString songAttributeValue=command.substring(command.indexOf(\"\\\"\")+1,command.lastIndexOf(\"\\\"\")).toLowerCase();\n\t\t\t\t\tif(subCommand.equals(\"artist\") || subCommand.equals(\"title\")){\n\t\t\t\t\t\tArrayList<Song> list=songFile.searchSong(subCommand, songAttributeValue);\n\t\t\t\t\t\tPlaylist playlist=songFile.playlistArray.get(currentPlaylistID);\n\t\t\t\t\t\tif(list!= null && list.size()>0){\n\t\t\t\t\t\t\tfor(Song s:list){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Inserting song:\"+s.getSongArtist());\n\t\t\t\t\t\t\t\tplaylist.insertSong(s.getSongId());\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\tSystem.out.println(\"No matching songs found!!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Invalid Command!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Invalid Command!! No search terms\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Invalid insert_search command!!\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Block for other invalid commands\n\t\telse{\n\t\t\tSystem.out.println(\"Please enter a valid command.\");\n\t\t}\n\t\t\n\t\n\t}", "title": "" }, { "docid": "df45d90b992e93e9305df765a1ba5b0e", "score": "0.581047", "text": "private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }", "title": "" }, { "docid": "a32ec560ba5b41f8b83620145d757d5f", "score": "0.57853264", "text": "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tAllSongs allSongs = new AllSongs();\n\t\t\t\t\t// AllSongs allSongs = new AllSongs();\n\t\t\t\t\tJPanel jp = allSongs.displaySongsOnThePanel(new File(playListPath), false);\n\t\t\t\t\tjavax.swing.GroupLayout allSongsLayout = new javax.swing.GroupLayout(jp);\n\t\t\t\t\tjp.setLayout(allSongsLayout);\n\t\t\t\t\tallSongsLayout.setHorizontalGroup(\n\t\t\t\t\t\t\tallSongsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 510,\n\t\t\t\t\t\t\t\t\tShort.MAX_VALUE));\n\t\t\t\t\tallSongsLayout.setVerticalGroup(\n\t\t\t\t\t\t\tallSongsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 420,\n\t\t\t\t\t\t\t\t\tShort.MAX_VALUE));\n\t\t\t\t\t// JFrame frame3 = new JFrame();\n\t\t\t\t\t// frame3.setSize(500,500);\n\t\t\t\t\t// frame3.setLocation(300,200);\n\t\t\t\t\t// frame3.add(jp);\n\t\t\t\t\t// frame3.setVisible(true);\n//\t\t\t\t\tMusicPlayer.window.add(jp);\n\t\t\t\t\tMusicPlayer.window.getContentPane().add(jp);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(playListFile));\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t\t/*\n\t\t\t\t\t * On click of crete playlist button, I should be able to\n\t\t\t\t\t * create another button and add it to the panel\n\t\t\t\t\t * ????????????\n\t\t\t\t\t */\n\n\t\t\t\t}", "title": "" }, { "docid": "30df198b06c2df9e4b92926153e49357", "score": "0.57489777", "text": "public MenuItem add(int titleRes);", "title": "" }, { "docid": "78191f84bd0d6019accbb33437a57af5", "score": "0.574562", "text": "private void newMenuItemActionPerformed() {//GEN-FIRST:event_newMenuItemActionPerformed\r\n stopSlideMenuItemActionPerformed();\r\n JFileChooser fc = new JFileChooser(\"C:\\\\\");\r\n fc.setFileFilter(new FileNameExtensionFilter(\"Album File (*.alb)\", \"alb\"));\r\n fc.showSaveDialog(null);\r\n File file = fc.getSelectedFile();\r\n controller.OnNewAlbum(file);\r\n controller.OnTimeChange(Integer.parseInt((delaySpinner.getValue().toString().trim())));\r\n }", "title": "" }, { "docid": "04bfc4dd553aa0870ba233c06593d8a0", "score": "0.5730003", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (position==0){\n mp= MediaPlayer.create(MainActivity.this,R.raw.mandi);\n mp.start();\n Toast.makeText(MainActivity.this,\"Saya Ingin Mandi\",Toast.LENGTH_SHORT).show();\n } else if (position==1){\n mp= MediaPlayer.create(MainActivity.this,R.raw.toilet);\n mp.start();\n } else {\n Toast.makeText(MainActivity.this,\"Saya Ingin ke Toilet\",Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "10514b8cdef576cf4e2aee03188dc327", "score": "0.5723711", "text": "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tif (v == null || v.getTag() == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfinal Playlist mList = new Playlist();\n\t\t\tmList.setDescribe(playlist.getDescribe());\n\n\t\t\tIterator<Integer> iterator = mOptList.keySet().iterator();\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\tPlaylistEntry value = mOptList.get(iterator.next());\n\t\t\t\tmList.addPlaylistEntry(value);\n\t\t\t}\n\n\t\t\tString tag = v.getTag().toString();\n\t\t\tif (tag.equals(CONTROL1)) // 全选\n\t\t\t{\n\t\t\t\tif (isSelectAll) {\n\t\t\t\t\tisSelectAll = false;\n\t\t\t\t\tmOptList.clear();\n\t\t\t\t} else {\n\t\t\t\t\tisSelectAll = true;\n\t\t\t\t\tmOptList.clear();\n\t\t\t\t\tfor (int m = 0; m < playlist.size(); m++) {\n\t\t\t\t\t\tTrack mTrack = playlist.getEntry(m).getTrack();\n\t\t\t\t\t\tmOptList.put(m, playlist.getEntry(m));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trenew();\n\t\t\t}\n\t\t\tif (mOptList.isEmpty()) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (tag.equals(CONTROL2)) // 播放\n\t\t\t{\n\t\t\t\tfinal MusicApplication mMusic = MusicApplication.getInstance();\n\n\t\t\t\tnew BaseTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected String doInBackground(String... params) {\n\t\t\t\t\t\tint select = 0;\n\t\t\t\t\t\tfor (int i = 0; i < mList.size(); i++) {\n\t\t\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\t\t\tselect = mMusic.fetchPlaylist()\n\t\t\t\t\t\t\t\t\t\t.addPlaylistEntry(mList.getEntry(i));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmMusic.fetchPlaylist().addPlaylistEntry(\n\t\t\t\t\t\t\t\t\t\tmList.getEntry(i));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpublishProgress(select);\n\t\t\t\t\t\treturn null;\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\t\t\t\tif (values.length == 1) {\n\t\t\t\t\t\t\tmMusic.fetchPlaylist().select(values[0]);\n\t\t\t\t\t\t\tmMusic.getPlayerEngine().openPlaylist(\n\t\t\t\t\t\t\t\t\tmMusic.fetchPlaylist());\n\t\t\t\t\t\t\tmMusic.getPlayerEngine().play();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\n\t\t\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\t\t\tsuper.onPostExecute(result);\n\t\t\t\t\t\tToast.makeText(getContext(), \"开始播放\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t};\n\n\t\t\t\t}.execute();\n\t\t\t}\n\t\t\tif (tag.equals(CONTROL3)) // 添加\n\t\t\t{\n\t\t\t\tMusicUtil.addMusicList(getContext(), mList, false);\n\t\t\t}\n\t\t\tif (tag.equals(CONTROL4)) // 删除/下载\n\t\t\t{\n\t\t\t\tif (mCollectView != null) {\n\t\t\t\t\tmCollectView.remove(mList);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tMusicUtil.deleteMusicList(getContext(), mList, playlist,\n\t\t\t\t\t\tnew OnClickListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tmOptList.clear();\n\t\t\t\t\t\t\t\trenew();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, playlist == MusicApplication.getInstance()\n\t\t\t\t\t\t\t\t.getLocalList()\n\t\t\t\t\t\t\t\t|| playlist == DownloadManager.getInstance()\n\t\t\t\t\t\t\t\t\t\t.getFinishList());\n\n\t\t\t}\n\t\t\trenew();\n\t\t}", "title": "" }, { "docid": "e23389c7fe1954161535c692e4b5bd48", "score": "0.5719872", "text": "private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }", "title": "" }, { "docid": "6d7f2ca415c5f46f75507e8ca57d4d14", "score": "0.5701412", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n\n mNowPlayingMenuItem = menu.findItem(R.id.action_now_playing);\n return true;\n }", "title": "" }, { "docid": "533add954c3010274e62c27dd078a8b4", "score": "0.5700431", "text": "private static MenuItem createRenameMenuItem(SongManager model, Item selectedItem) {\n MenuItem rename = new MenuItem(RENAME);\n\n rename.setOnAction((event) -> {\n if (selectedItem != null) {\n File fileToRename = selectedItem.getFile();\n Path newPath = PromptUI.fileRename(fileToRename);\n\n if (newPath != null) {\n try {\n model.renameFile(fileToRename, newPath);\n } catch (IOException ex) {\n PromptUI.customPromptError(\"Error\", null, \"Exception: \\n\" + ex.getMessage());\n ex.printStackTrace();\n }\n }\n }\n });\n\n return rename;\n }", "title": "" }, { "docid": "d4b03eb59b0c3581121f40253858d377", "score": "0.5699534", "text": "@Override\n public void show() {\n MenuMusic.play();\n MenuMusic.setLooping(true);\n MenuMusic.setVolume(0.4f);\n }", "title": "" }, { "docid": "01a375e0f837dec5e76c5a29de061308", "score": "0.56976175", "text": "public Menu createFileMenu();", "title": "" }, { "docid": "ac5abe4096a991f9ca3722f0a06cd900", "score": "0.56940037", "text": "void printMainMenu(){\n\t\tSystem.out.println(\"\\n\\nMarketo Music\");\n\t\tSystem.out.println(\"Main Menu\");\n\t\tSystem.out.println(\"1. Create Playlist: create <playlist name>\");\n\t\tSystem.out.println(\"2. Edit Playlist: edit <playlist id>\");\n\t\tSystem.out.println(\"3. Print Song: song <song id>\");\n\t\tSystem.out.println(\"4. Print Playlist: playlist <playlist id>\");\n\t\tSystem.out.println(\"5. Print All Songs or Playlists: print song/playlist\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"8. Quit: quit\");\n\t\tSystem.out.print(\"Enter a Command : \");\n\t}", "title": "" }, { "docid": "6da92ddb4ed5a67be2bc28928174012f", "score": "0.5684255", "text": "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tgameType = \"Quick Play\"; \n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "97518da89073eb56de790a5ae683e4b0", "score": "0.5679815", "text": "public void onClickPlayer() {\n carIcon.setOpacity(1);\n playerIcon.setOpacity(1);\n playerList.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {\n displayUserInfo(newValue);\n });\n MAIN_MENU_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }", "title": "" }, { "docid": "44270252693235df432d569d1528d5ed", "score": "0.56752044", "text": "public String gotoQueue() {\n\t\tselectedPlaylist = PlaylistMng.QUEUE_NAME;\n\t\tpassivePlaylist = playlistMng.getPlaylist(PlaylistMng.QUEUE_NAME);\n\t\treturn \"queue\";\n\t}", "title": "" }, { "docid": "c1f1f4bb139642a8413d8d9730346697", "score": "0.56417406", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.now_playing:\n startActivity(new Intent(libraryActivity.this, NowPlayingActivity.class));\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "9dba6c081004be1fd58e1c574ee18ff3", "score": "0.56386024", "text": "void changeMenuItemName(String itemName, byte type, String msgPlus);", "title": "" }, { "docid": "78008b31eb76a28a50256305f8e84b28", "score": "0.56354517", "text": "public void playSelectSong() {\n isStart = false;\n if (getCurrentSong() == 0) {\n audioList.get(getCurrentSong()).setSelect(true);\n playListAdapter.notifyItemChanged(getCurrentSong());\n }\n isPauseResume = false;\n if (player != null) {\n player.stopMedia();\n }\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n }\n }, DELAY_TIME);*/\n }", "title": "" }, { "docid": "b2fa275397e0766bf0484ffbbefbe25b", "score": "0.5633406", "text": "public void add(String nameItem)\n\t{\n\t\tmenu.add(nameItem);\n\t}", "title": "" }, { "docid": "366d3dac7a039525f4874180ba2d1caf", "score": "0.56288934", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.edit_title) {\n changePlaylistName();\n return true;\n } else if (id == R.id.remove_playlist) {\n removePlaylist();\n return true;\n } else if (id == R.id.delete_songs) {\n Intent intent = new Intent(this, PlaylistContentsDeleteActivity.class);\n intent.putExtra(PlaylistFragment.EXTRA_PLAYLIST_ID, playlist_id);\n startActivity(intent);\n } else if (id == R.id.add_songs) {\n Intent intent = new Intent(this, PlaylistContentsAddActivity.class);\n intent.putExtra(PlaylistFragment.EXTRA_PLAYLIST_ID, playlist_id);\n startActivity(intent);\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "779e3af39fd8225eb0ec245b68c5cb51", "score": "0.56263554", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_mp3_player, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "4a5518148646163260253bf8fa0d6ede", "score": "0.5614104", "text": "public void createNewItem(ActionEvent actionEvent) {\n // we will create a new item instance here (ideally we would use another window for this)\n // and then we will simply addItem() to the currently selected list\n }", "title": "" }, { "docid": "af43cb34c0e141995ea919d951b5b786", "score": "0.5600946", "text": "@EventHandler\n public void onInventoryClick(InventoryClickEvent event) {\n //if clicked outside of area, return\n if(event.getCurrentItem() == null){\n return;\n }\n\n //test if this is one of our menus\n Menu menu = null;\n Boolean ourMenu = false;\n for (Menu m : plugin.menuList) {\n if (m.getMenuName().equalsIgnoreCase(event.getClickedInventory().getName())){\n menu = m;\n ourMenu = true;\n break;\n }\n }\n\n if (!ourMenu) {\n //not our menu\n return;\n }\n\n //it is our GUI\n //stop moving item straight away\n event.setCancelled(true);\n\n Player player = (Player) event.getWhoClicked();\n\n //get item through slot that was clicked\n int clickedSlot = event.getSlot();\n Item item = menu.getItems().stream().filter((i) -> i.getSlot() == clickedSlot).findFirst().orElse(null);\n\n\n //if item clicked is null, just do nothing\n if (item == null) {\n return;\n }\n //get stored arrays\n CommandMemory savedCmds = plugin.cmdMemoryList.stream()\n .filter((cm) -> cm.uuid.equalsIgnoreCase(player.getUniqueId().toString()))\n .findFirst()\n .orElse(null);\n\n //check that we actually have the command saved\n if (savedCmds == null) {\n //command has not been saved\n plugin.console.log(\"Unable to find saved ARgs\");\n return;\n }\n\n String CommandToRun;//this string will hold every command\n\n\n //execute console commands\n for (String consoleCMD : item.getCommands()) {\n CommandToRun = consoleCMD.replace(\"{player}\", player.getName());//puts this player in the command\n //add in args\n for (Argument a : savedCmds.args) {\n CommandToRun = CommandToRun.replace(\"$arg\" + a.getArgNum(), a.getName());\n }\n\n //run command\n if (CommandToRun.contains(\"[console]\")) {\n //run as console\n plugin.getServer()\n .dispatchCommand(\n plugin.getServer().getConsoleSender(),\n CommandToRun.replace(\"[console]\", \"\").trim());\n } else if (CommandToRun.contains(\"[player]\")) {\n //run as player\n player.performCommand(CommandToRun.replace(\"[player]\", \"\").trim());\n } else if (CommandToRun.contains(\"[message]\")) {\n //message caller\n player.sendMessage(menu.getPrefix()\n + ChatColor.RESET\n + CommandToRun.replace(\"[message]\", \"\").trim());\n } else if (CommandToRun.contains(\"[close]\")) {\n //close menu\n player.closeInventory();//close invent for player\n plugin.cmdMemoryList.remove(savedCmds);\n } else if (CommandToRun.contains(\"[refresh]\")) {\n //refresh item that was clicked\n menu.refreshMenu(event);\n } else {\n //don't know how to handle.... let console know\n plugin.console.log(\"Unknown command: \" + CommandToRun);\n //let player know\n player.sendMessage(menu.getPrefix() + ChatColor.RED + \"There was a problem with running your command. Please report this.\");\n }\n }\n }", "title": "" }, { "docid": "89f942d90a77230fae5476295c0a599b", "score": "0.55949223", "text": "private void createCardsEditingItem()\n {\n cardsEditing = new JMenuItem(\"Zobrazení a úprava karet\");\n cardsEditing.setMnemonic('Z');\n cardsEditing.addActionListener(new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent e)\n {\n cards.setVisible(true);\n }\n });\n add(cardsEditing);\n }", "title": "" }, { "docid": "ba084009c0740c29dd44d7b5fa816d9f", "score": "0.5577731", "text": "@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.info){\r\n Intent intent = new Intent(context, Information.class);\r\n startActivity(intent);\r\n }\r\n else if (id == R.id.new_game) {\r\n Intent intent = new Intent(this, Startgame.class);\r\n startActivity(intent);\r\n return true;\r\n }\r\n else if(id == R.id.sound){\r\n mSound = !mSound;\r\n if(mSound == false)\r\n ((ActionMenuItemView) this.findViewById(R.id.sound)).setIcon(getResources().getDrawable(R.drawable.mute));\r\n else\r\n ((ActionMenuItemView) this.findViewById(R.id.sound)).setIcon(getResources().getDrawable(R.drawable.sound));\r\n SharedPreferences.Editor ed = mPrefs.edit();\r\n ed.putBoolean(\"mSound\", mSound);\r\n ed.apply();\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "title": "" }, { "docid": "c0da1eba67cd21f9c3efadeb8448dfc0", "score": "0.55733", "text": "public static ContextMenu buildPlaybackContextMenu(MusicPlayerManager musicPlayerManager, SongManager songManager,\n Item selectedItem) {\n ContextMenu playbackMenu = new ContextMenu();\n playbackMenu.setAutoHide(true);\n\n MenuItem playSong = createPlaySongMenuItem(musicPlayerManager, selectedItem);\n MenuItem playSongNext = createPlaySongNextMenuItem(musicPlayerManager, selectedItem);\n MenuItem placeSongOnQueue = createPlaceSongOnQueueMenuItem(musicPlayerManager, selectedItem);\n MenuItem openInLibrary = createShowInLibraryMenuItem(songManager, selectedItem);\n\n MenuItem songOptionsSeparator = new SeparatorMenuItem();\n\n playbackMenu.getItems().addAll(playSong, playSongNext, placeSongOnQueue,\n songOptionsSeparator,\n openInLibrary);\n\n return playbackMenu;\n }", "title": "" }, { "docid": "4f777d8355091df81605756676a24afd", "score": "0.5573024", "text": "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "title": "" }, { "docid": "06bc960f6692119e9a3ed41b4a07e905", "score": "0.55635154", "text": "private MenuItem makeMenuItem (String label, String command) {\n MenuItem mi = new MenuItem (label);\n mi.setActionCommand (command);\n mi.addActionListener (commandHandler);\n return mi;\n }", "title": "" }, { "docid": "da6db3bfa63dfa26669ad70d70350265", "score": "0.55602753", "text": "private static MenuItem createCenterPanelPasteMenuItem(SongManager model) {\n MenuItem paste = new MenuItem(PASTE);\n\n paste.setOnAction((event) -> {\n File dest = model.getM_selectedCenterFolder();\n if (!dest.isDirectory()) {\n PromptUI.customPromptError(\"Not a directory!\", null, \"Please select a directory as the paste target.\");\n return;\n }\n try {\n model.copyToDestination(dest);\n } catch (IOException ex) {\n PromptUI.customPromptError(\"Error\", null, \"IOException: \" + ex.getMessage());\n } catch (Exception ex) {\n PromptUI.customPromptError(\"Error\", null, \"Exception: \" + ex.getMessage());\n }\n });\n\n return paste;\n }", "title": "" }, { "docid": "dd8d4b68f5b08d47e89fdc641d612e49", "score": "0.5547541", "text": "@Override\n public void onClick(final View view) {\n PopupMenu popup = new PopupMenu(mContext, holder.btnExpand);\n //inflating menu from xml resource\n popup.inflate(R.menu.menu_expand_playlist);\n //adding click listener\n popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.nav_play:\n return true;\n case R.id.nav_rename:\n return true;\n case R.id.nav_delete:\n if (mDB.deletePlayList(playlist.getId())) {\n mDB.deleteSongPlaylist(playlist.getId());\n Toast.makeText(mContext.getApplicationContext(),\n \"Đã xóa playlist \"+playlist.getName(),Toast.LENGTH_SHORT).show();\n mIUpdateLists.updatePlaylist(); // cap nhat lai danh sach\n }\n return true;\n default:\n return false;\n }\n }\n });\n //displaying the popup\n popup.show();\n\n }", "title": "" }, { "docid": "21e3d96320d9c3b5d01d149bd0ae8383", "score": "0.5543691", "text": "public static boolean handleMenuClick(@NonNull FragmentActivity activity, @NonNull Song song, int menuItemId) {\n switch (menuItemId) {\n /*case R.id.action_add_to_playlist:\n //AddToPlaylistDialog.create(song).show(activity.getSupportFragmentManager(), \"ADD_PLAYLIST\");\n return true;\n case R.id.action_play_next:\n //MusicPlayerRemote.playNext(song);\n return true;\n case R.id.action_add_to_current_playing:\n //MusicPlayerRemote.enqueue(song);\n return true;\n case R.id.action_tag_editor:\n *//*Intent tagEditorIntent = new Intent(activity, SongTagEditorActivity.class);\n tagEditorIntent.putExtra(AbsTagEditorActivity.EXTRA_ID, song.id);\n if (activity instanceof PaletteColorHolder)\n tagEditorIntent.putExtra(AbsTagEditorActivity.EXTRA_PALETTE, ((PaletteColorHolder) activity).getPaletteColor());\n activity.startActivity(tagEditorIntent);*//*\n return true;\n case R.id.action_details:\n //SongDetailDialog.create(song).show(activity.getSupportFragmentManager(), \"SONG_DETAILS\");\n return true;\n case R.id.action_go_to_album:\n //NavigationUtil.goToAlbum(activity, song.albumId);\n return true;\n case R.id.action_go_to_artist:\n //NavigationUtil.goToArtist(activity, song.artistId);\n return true;*/\n }\n return false;\n }", "title": "" }, { "docid": "5e95c48641684160444e0a5e7ebab22e", "score": "0.55394554", "text": "public ItemMenu(JDealsController sysCtrl) {\n super(\"Item Menu\", sysCtrl);\n\n this.addItem(\"Add general good\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.GOODS);\n }\n });\n this.addItem(\"Restourant Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.RESTOURANT);\n }\n });\n this.addItem(\"Travel Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.TRAVEL);\n }\n });\n }", "title": "" }, { "docid": "243acffec8f3848538edb0b975bc05f1", "score": "0.55383754", "text": "public void initPlayerMenu() {\n Font f = new Font(\"Helvetica\", Font.BOLD, 16);\n\n menuPanel = new JPanel();\n menuPanel.setPreferredSize(new Dimension(buttonWidth, buttonHeight));\n menuPanel.setLayout(null);\n\n menuBar = new JMenuBar();\n menuBar.setPreferredSize(new Dimension(buttonWidth, buttonHeight));\n menuBar.setBounds(0, 0, buttonWidth, buttonHeight);\n menuBar.setLayout(null);\n\n playerMenu = new JMenu();\n playerMenu.setText(\"Players\");\n playerMenu.setFont(f);\n playerMenu.setBounds(0, 0, buttonWidth, buttonHeight);\n playerMenu.setBackground(new Color(0xeaf1f7));\n playerMenu.setHorizontalTextPosition(SwingConstants.CENTER);\n playerMenu.setOpaque(true);\n playerMenu.setBorder(BorderFactory.createBevelBorder(0));\n\n menuBar.add(playerMenu);\n menuPanel.add(menuBar);\n }", "title": "" }, { "docid": "ec9b27901347ac38e86ab3a41d4011dd", "score": "0.55334055", "text": "public void buildPartyAudio(int quantity){\r\n if(quantity != 0){\r\n eventRoomItems.addItem(itemFactory.constructPartyAudio());\r\n }\r\n else{\r\n eventRoomItems.addItem(null);\r\n }\r\n }", "title": "" }, { "docid": "7a4806f91dac87ea0e93330d58db096c", "score": "0.5533395", "text": "public void StartMusic(int music_id);", "title": "" }, { "docid": "0f87ba2d935e9212b36683a6fffae5f9", "score": "0.55320704", "text": "private static MenuItem createShuffleAllMenuItem(SongManager model, Item selectedItem, MusicPlayerManager musicPlayerManager) {\n MenuItem shuffleAll = new MenuItem(SHUFFLE_ALL);\n shuffleAll.setOnAction((event) -> {\n if (selectedItem != null) {\n Playlist selectedPlaylist = model.getM_selectedPlaylist();\n selectedPlaylist.shuffleAllSongs();\n model.notifyPlaylistSongsObservers();\n musicPlayerManager.notifyQueingObserver();\n\n }\n });\n return shuffleAll;\n }", "title": "" }, { "docid": "97faf93c6215ccbb0a5e04492c264709", "score": "0.5526244", "text": "@Override\n public void onClick(View v) {\n\n switch (item.getId()) {\n\n case 1:\n\n /*mp = MediaPlayer.create(context, R.raw.cameraflash);\n mp.setVolume(100, 100);\n mp.start();\n\n Intent myIntent1 = new Intent(context, NameActivity.class);\n myIntent1.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(myIntent1);*/\n\n break;\n\n case 2:\n\n /* mp = MediaPlayer.create(context, R.raw.cameraflash);\n mp.setVolume(100, 100);\n mp.start();\n\n Intent myIntent2 = new Intent(context, StartMenuV1.class);\n myIntent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(myIntent2);*/\n\n break;\n case 3:\n\n /* mp = MediaPlayer.create(context, R.raw.cameraflash);\n mp.setVolume(100, 100);\n mp.start();\n\n Intent myIntent3 = new Intent(context, StartMenuV2.class);\n myIntent3.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(myIntent3);*/\n\n break;\n }\n\n }", "title": "" }, { "docid": "0bae84919c8d4cc7a8299b44644736e3", "score": "0.55251753", "text": "public void openGUISounds(Player p){\n //gui.setItem(0, new ItemStack(Material.GRASS));\n //ItemStack grass = new ItemStack(Material.SKULL_ITEM, 1, (short) 3);\n //SkullMeta skullMeta = (SkullMeta) grass.getItemMeta();\n //skullMeta.setDisplayName(ChatColor.GRAY + \"Player: \" + ChatColor.YELLOW + p.getName());\n //skullMeta.setOwner(p.getName());\n //grass.setItemMeta(skullMeta);\n //gui.setItem(1, grass);\n //p.openInventory(gui);\n }", "title": "" }, { "docid": "6a7ed3ab592992271af04f5e82375988", "score": "0.5522251", "text": "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Word voice = color.get(position);\n releaseMediaPlayer();\n\n int result = mAudiomanager.requestAudioFocus(afChangeListener,\n // Use the music stream.\n AudioManager.STREAM_MUSIC,\n // Request permanent focus.\n AudioManager.AUDIOFOCUS_GAIN_TRANSIENT);\n\n if (result == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n //mAudioManager.registerMediaButtonEventReceiver();\n // Start playback\n //create and setup the{@link Medisplayer} for the audio resource assiciated\n //with the current word\n \n\n\n mediaPlayer = MediaPlayer.create(ColorsActivity.this, voice.getmAudioresourceid());\n mediaPlayer.start();\n\n mediaPlayer.setOnCompletionListener(mCompletionListener);\n }\n }", "title": "" }, { "docid": "d9f711b28cc1882e6de686f28cda7b7b", "score": "0.5520205", "text": "private void play() {\n MediaQueueItem item = mQueue.get(0);\n if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PENDING\n || item.getState() == MediaItemStatus.PLAYBACK_STATE_PAUSED) {\n mCurItemId = item.getItemId();\n if (mCallback != null) {\n if (item.getState() == MediaItemStatus.PLAYBACK_STATE_PENDING) {\n mCallback.onNewItem(item.getUri());\n }\n mCallback.onStart();\n }\n item.setState(MediaItemStatus.PLAYBACK_STATE_PLAYING);\n }\n }", "title": "" }, { "docid": "33bf80a863b9537b9683950ede4631e3", "score": "0.5519988", "text": "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n // Create a new intent to open the {@link TracksActivity}\n Intent nowPlayingIntent = new Intent(TracksActivity.this, NowPlayingActivity.class);\n MusicsElement element = (MusicsElement) arg0.getItemAtPosition(position);\n nowPlayingIntent.putExtra(\"element\", element.getmSongName());\n nowPlayingIntent.putExtra(\"musicElement\", element);\n // Start the new activity\n startActivity(nowPlayingIntent);\n }", "title": "" }, { "docid": "9340f3ba6897dee66e0f4d99d0039b4e", "score": "0.5517479", "text": "public UnitMenu(Dimension size, Player player) throws IOException\n\t{\n\t\tsuper(\"Map.jpg\", size);\n\t\tthis.player = player;\n\t\tinit();\n\t\tcancelButtons = new ArrayList<RectangleButton>();\n\n\t\ttitle = new TextButton(player.getName(), Main.getFont(\"Kalinga\", 18),\n\t\t\t\tnew Point(565, 40), new Dimension(150, 40), Color.white,\n\t\t\t\tnew Color(0, 0, 0, 0));\n\t\ttitle.setBorderWidth(2);\n\t\ttitle.setBorderOffset(2);\n\t\ttitle.setTextColor(Color.black);\n\t\ttitle.setBorderColor(player.getColor());\n\n\t\tgoButton = new CircleButton(new Point(640, 440), 12);\n\t\tgoButton.setHoverColor(new Color(141, 255, 40));\n\n\t\tstatDisplay = new Sprite(\"res/UI/StatDisplay.gif\");\n\t\tstatFont = Main.getFont(\"Kalinga\", 16);\n\t}", "title": "" }, { "docid": "1adc06ad810d94f394e331b47c67dc94", "score": "0.5514545", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n Intent settingsIntent = new Intent(this, SettingsActivity.class);\n startActivity(settingsIntent);\n return true;\n }\n\n if (id == R.id.action_now_playing) {\n mMediaPlayerFragment.show(getSupportFragmentManager(), MEDIA_PLAYER_FRAGMENT_TAG);\n }\n\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "5ab664c74b5b22d1fc718f58bb43b1f2", "score": "0.55137146", "text": "public void addSong(String song){\n\t\tqueueInsertion(song);\n\t}", "title": "" }, { "docid": "d13c9a8bf0cfef9b4f56fdc8b338cd42", "score": "0.5505959", "text": "private void initialMusic(){\n\n }", "title": "" }, { "docid": "2edb309e0faaa0b1e4557b1c809e65e8", "score": "0.550321", "text": "private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }", "title": "" }, { "docid": "5441f93cfd9a57212f7a29927db64918", "score": "0.5501087", "text": "@Override\n public void onClick(View view) {\n\n Toast.makeText(ChillOutMusic.this, \"Song 1\", Toast.LENGTH_LONG).show();\n Intent playerIntent = new Intent(ChillOutMusic.this, NowPlaying.class);\n\n // Start the new activity\n startActivity(playerIntent);\n }", "title": "" }, { "docid": "426e2f17ea179f56da631ce4b69e609b", "score": "0.5498946", "text": "public void play() { \r\n\t System.out.printf(\"Playing Song: artist=%-20s title=%s\\n\", artist, title);\r\n\t}", "title": "" }, { "docid": "f54450bfe1e5e715bfef17d97ecc23e7", "score": "0.54984635", "text": "public void btnPlaySong() {\n\t\tMusicApp.getAudioPlayer().playSong(track);\n\t}", "title": "" }, { "docid": "abf40e43cc05ccef438dcb14c26bd929", "score": "0.54798365", "text": "private void makeNewMusic() {\n File f = music.getFile();\n boolean playing = music.isPlaying();\n music.stop();\n music = new MP3(f);\n if (playing) {\n music.play(nextStartTime);\n }\n }", "title": "" }, { "docid": "f3ebd910f2695db198d93582d974d466", "score": "0.54698193", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.now_playing, menu);\n return super.onCreateOptionsMenu(menu);\n }", "title": "" }, { "docid": "f25bf4bb4c184dfa3899f508294ba1de", "score": "0.54667664", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t new MenuGui(new HowToPlay());\n\t\tframe.dispose();\t\t\n\t\tclip.getMusicMenu().stop();\n\t\t\n\t}", "title": "" }, { "docid": "76dc7cacf0f543a77a7cdac58073cab3", "score": "0.54638106", "text": "public StartMenu(){\n\t\tmenu.setTitle(\"COP4331 Spring '14 - Battle Ship!\");\n\t\t\n\t\t//startGame JButton will begin a new game\n\t\tstartEasyGame = new JButton(\"Start Easy Game\");\n\t\tstartEasyGame.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetSkill(0);\n\t\t\t\tplay = true;\n\t\t\t}\n\t\t});\n\t\t\n\t\tstartAdvancedGame = new JButton(\"Start Advanced Game\");\n\t\tstartAdvancedGame.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetSkill(1);\n\t\t\t\tplay = true;\n\t\t\t}\n\t\t});\n\t\t\n\t\t\t\n\t\t//exitGame JButton will end the program\n\t\texitGame = new JButton(\"Exit Game\");\n\t\texitGame.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t\t\tclose = true;\n\t\t\t}\n\t\t});\n\t\t\n\t\tmenu.add(startEasyGame);\n\t\tmenu.add(startAdvancedGame);\n\t\tmenu.add(exitGame);\t\t\n\t}", "title": "" }, { "docid": "31b9b12d64c11575a52776c7a3256e2d", "score": "0.5463156", "text": "private void createAddSongToPlayListListener() {\n MouseAdapter mouseAdapter = new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n addingSongToPlaylist = true;//this cause showAllSong method doesn't consider existing song and add a option at the end.\n addingSongPanels = new ArrayList<>();//this creates a temporary memory space which hold adding song panels.\n showAllSongs();//show all songs without songs that playlist already has.\n mouseExited(e);//turn its gui like mouse exited.\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n try {\n plusImage = ImageIO.read(new File(\"Icons/PlusSong.png\"));\n plusLabel.setIcon(new ImageIcon(plusImage));\n } catch (IOException e1) {\n JOptionPane.showMessageDialog(null, \"Error reading plus song image\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n addSongToPlayListLabel.setForeground(new Color(179, 179, 179));\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n try {\n plusImage = ImageIO.read(new File(\"Icons/PlusSong-no-select.png\"));\n plusLabel.setIcon(new ImageIcon(plusImage));\n } catch (IOException e1) {\n JOptionPane.showMessageDialog(null, \"Error reading plus song image\", \"An Error Occurred\", JOptionPane.ERROR_MESSAGE);\n }\n addSongToPlayListLabel.setForeground(new Color(120, 120, 120));\n }\n };\n plusLabel.addMouseListener(mouseAdapter);\n addSongToPlayListLabel.addMouseListener(mouseAdapter);\n }", "title": "" }, { "docid": "6fa014b67cfa8237dc46c1dbd9f7a950", "score": "0.5459606", "text": "public interface MusicCommand {\n String UTF8 = \"utf-8\";\n String MUSIC_RECORD = \"music_record\";\n String MUSIC_PLAY_MODE = \"music_play_mode\";\n int SYSTEM_ERROR = -99;\n int CLICK_PLAY_PLAY = 0;\n int CLICK_PLAY_NEXT = 1;\n int CLICK_PLAY_LAST = 2;\n int CLICK_MODE_LOOP = 3;\n int CLICK_MODE_RANDOM = 4;\n int CLICK_MODE_SINGLE = 5;\n int TOUCH_SEEKBAR_SET_MUSIC_PLAY_POSTION = 6;\n int REGISTER_MUSIC_PLAY_BAR_LISTENER = 7;\n int REGISTER_PLAYING_INFO = 8;\n int REGISTER_SEEKBAR_STATUS = 9;\n int REGISTER_MUSIC_ARRAY_READY_LISTENER = 10;\n int MUSIC_MAIN_ACTIVITY_DESTROY = 11;\n}", "title": "" }, { "docid": "aaf3812384ef0d62cd294a4f57cb69fd", "score": "0.5458271", "text": "public void createChooseGameUI()\n {\n \tHashMap<InventoryRunnable, InventoryItem> inventoryStuff = new HashMap<InventoryRunnable, InventoryItem>();\n \t\n \tInventoryRunnable gladiatorJoinRunnable = new GladiatorJoinInventoryRunnable(plugin);\n \t\n \tArrayList<String> gladiatorLore = new ArrayList<String>();\n \tgladiatorLore.add(\"FIGHT TO THE DEATH AND WIN YOUR FREEDOM\");\n \tgladiatorLore.add(\"GOOD LUCK WARRIOR!\");\n \tInventoryItem gladiatorItem = new InventoryItem(plugin, Material.SHIELD, \"GLADIATOR\", gladiatorLore, 1, true, 1);\n \tinventoryStuff.put(gladiatorJoinRunnable, gladiatorItem);\n \t\n \tchooseGameUI = new GUIInventory(plugin, \"MINIGAMES\", inventoryStuff, 3);\n }", "title": "" }, { "docid": "aace56c3ff54c2af0425e30647ca7060", "score": "0.54567856", "text": "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t if (mDrawerToggle.onOptionsItemSelected(item)) {\n\t return true;\n\t }\n\t // Handle your other action bar items...\n\t switch(item.getItemId()){\n\t case R.id.menu_add: \n\t \t // Create the ACTION_GET_CONTENT Intent\n\t /*Intent getContentIntent = FileUtils.createGetContentIntent();\n\n\t Intent intent = Intent.createChooser(getContentIntent, \"Select a file\");\n\t startActivityForResult(intent, REQUEST_CHOOSER);\n\t \tbreak;*/\n\n break;\n case R.id.menu_record:\n Intent i = new Intent(this , AudioBookMaker.class);\n startActivity(i);\n break;\n\t }\n\t return super.onOptionsItemSelected(item);\n\t}", "title": "" }, { "docid": "8b0fac6e37f5358b0fc2609e05e5b3d4", "score": "0.5445968", "text": "void startMusic(AudioTrack newSong);", "title": "" }, { "docid": "9c3725327d11ca468e89f268e3011147", "score": "0.543777", "text": "public Button(Vector2 pos, Main game, String string) {\n\n// Setting variables\n this.buttonRect = new Rectangle();\n this.pos = pos;\n this.string = string;\n this.texture = null;\n this.game = game;\n\n// Adds this button to the buttons list\n Main.buttons.add(this);\n\n// Sets text and position\n layout.setText(Main.menuFont, string, selectedColor, 0, Align.center, false);\n this.buttonRect.set(pos.x - (layout.width / 2), pos.y - layout.height, layout.width, layout.height);\n clickSound = Gdx.audio.newSound(Gdx.files.internal(\"audio/sound effects/menuChoose.wav\"));\n }", "title": "" }, { "docid": "16c0c5b72985f47f2b8bb7b2c722ef59", "score": "0.54355544", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case R.id.action_add:\n getAdapter().addToList(NameFactory.getRandomName());\n return true;\n default:\n if (isInAnimationArray(id)) {\n return changeAnimation(id);\n }\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "14726b5f31ce2716249203466f7e2696", "score": "0.5434064", "text": "private void addSongButtonActionListener(JButton addSongButton) {\n addSongButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n String songName = JOptionPane.showInputDialog(\"Enter the song name: \");\n String artist = JOptionPane.showInputDialog(\"Enter the artist's name: \");\n Song song = new Song(songName, artist);\n queue.addSong(song);\n JOptionPane.showMessageDialog(null, song.description() + \" has been successfully added to queue!\");\n }\n });\n }", "title": "" }, { "docid": "63f0c54a324a4162caae105fe4d82c61", "score": "0.54161304", "text": "void add(String prompt, UIMenuAction action);", "title": "" }, { "docid": "1474172cc3951ab8b0bd3fc8d58440de", "score": "0.54154617", "text": "public void createNewPlayer(ArrayList<MediaItem> itemList) {\n // eliminate the old player\n if (this.player != null) {\n this.player.dispose();\n }\n // Check the Playlist\n if (this.playlist == null) {\n // Generate a new playlist\n this.playlist = new Playlist(itemList, this.eventBus);\n }\n\n // Establish a player for the first song and play it.\n this.player = new MediaPlayer(this.playlist.getCurrentMedia());\n initPlay(); // recursive method\n }", "title": "" }, { "docid": "20398d11928fd2e1e1929df25d1cdff1", "score": "0.5413137", "text": "@objid (\"491beea2-12dd-11e2-8549-001ec947c8cc\")\n private static MHandledMenuItem createItem(String label, String tooltip, String iconURI) {\n MHandledMenuItem item = MMenuFactory.INSTANCE.createHandledMenuItem();\n // item.setElementId(module.getName() + commandId);\n item.setLabel(label);\n item.setTooltip(tooltip);\n item.setIconURI(iconURI);\n item.setEnabled(true);\n item.setToBeRendered(true);\n item.setVisible(true);\n return item;\n }", "title": "" }, { "docid": "41b559d1dab891e0d71c98f65f434394", "score": "0.5405894", "text": "public static void playListSongs(boolean iSelectASong)\n {\n Album actualAlbum = AlbumXmlFile.getAlbumFromDataBase(JSoundsMainWindowViewController.jlActualListSongs.getAlbumName(), true);\n\n \n if ((selectedAlbum!=null) && (!actualAlbum.getName().equals(selectedAlbum.getName())))\n {\n JSoundsMainWindowViewController.listSongs=null;\n JSoundsMainWindowViewController.listSongs=new JMusicPlayerList();\n alreadyPlaying=false;\n if((!isPlaylist) && (!shutDown))\n dontInitPlayer=true;\n }\n \n if (JSoundsMainWindowViewController.iAmPlaying && JSoundsMainWindowViewController.jlActualListSongs != null)\n { \n if (alreadyPlaying==false)\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n selectedAlbum=actualAlbum;\n \n Song actualSong = null;\n int position;\n if (!isPlaylist) //Si no estoy tratando de reproducir una lista de reproduccion.\n { \n \n \n if (actualAlbum != null)\n {\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n \n position = 0;\n \n while (songsIterator.hasNext())\n {\n actualSong = (Song) songsIterator.next();\n \n if (actualSong != null)\n {\n listSongs.addSongToPlayerList(new JMusicSong(position, UtilFunctions.removeStrangeCharacters(actualSong.getName()), UtilFunctions.removeStrangeCharacters(actualSong.getName()), actualSong.getName(), UtilFunctions.removeStrangeCharacters(actualSong.getArtist().getName()), actualSong.getArtist().getName(), UtilFunctions.removeStrangeCharacters(actualAlbum.getName()), actualAlbum.getName()));\n position++;\n }\n }\n }\n }\n else //Si es una lista de reproduccion\n {\n Album actualAlbumPlaylist = PlaylistXmlFile.getPlaylistAlbumFromDataBase(JSoundsMainWindowViewController.jlActualListSongs.getAlbumName(), true);\n \n \n if (actualAlbumPlaylist != null)\n {\n Iterator songsIterator = actualAlbumPlaylist.getSongs().iterator();\n \n position = 0;\n \n while (songsIterator.hasNext())\n {\n \n actualSong = (Song) songsIterator.next();\n \n if (actualSong != null)\n {\n listSongs.addSongToPlayerList(new JMusicSong(position, UtilFunctions.removeStrangeCharacters(actualSong.getName()), UtilFunctions.removeStrangeCharacters(actualSong.getName()), actualSong.getName(), UtilFunctions.removeStrangeCharacters(actualSong.getArtist().getName()), actualSong.getArtist().getName(), UtilFunctions.removeStrangeCharacters(actualAlbumPlaylist.getName()), actualAlbumPlaylist.getName()));\n position++;\n }\n }\n }\n } \n if (!dontInitPlayer) // Inicio el reproductor\n {\n MusicPlayerControl.initMusicPlayer(Util.JSOUNDS_LIBRARY_PATH, JSoundsMainWindowViewController.jlActualListSongs, JSoundsMainWindowViewController.jLInformationSong, JSoundsMainWindowViewController.jlActualListSongs.getjLLastPlayedSongList(), table, JSoundsMainWindowViewController.LIST_SONG_COLUMN, JSoundsMainWindowViewController.jlActualListSongs.getRowInJTable(), JSoundsMainWindowViewController.LAST_PLAYED_SONG_COLUMN);\n MusicPlayerControl.loadSongs(listSongs);\n shutDown=false;\n }\n else // El reproductor ya esta iniciado\n {\n MusicPlayerControl.loadSongs(listSongs);\n dontInitPlayer=false;\n }\n \n if (iSelectASong)\n {\n if (indexFromSearchedSong>(-1))\n {\n MusicPlayerControl.changeSongFromIndexSong(indexFromSearchedSong);\n iSelectASong=false;\n indexFromSearchedSong=-1;\n }\n else\n {\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n iSelectASong = false;\n }\n \n }\n EditSongWindow.songName =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getSongName();\n EditSongWindow.index = JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex();\n EditSongWindow.list = listSongs;\n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n MusicPlayerControl.playSong();\n alreadyPlaying = true;\n }\n if ((alreadyPlaying==true) && (iSelectASong==true) && (fixedIndex== true))\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()-1);\n \n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()-1);\n \n MusicPlayerControl.playSong();\n }\n if ((alreadyPlaying==true) && (iSelectASong==true) && (iAmPausing==true) && (!fixedIndex))\n {\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n MusicPlayerControl.playSong();\n }\n if ((alreadyPlaying==true) && (iSelectASong==true) && (iAmPlaying==true) && (!fixedIndex))\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n MusicPlayerControl.playSong();\n }\n \n }\n else\n {\n if (JSoundsMainWindowViewController.iAmPausing && JSoundsMainWindowViewController.jlActualListSongs != null)\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPlay.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = true;\n \n MusicPlayerControl.pauseSong();\n }\n else\n {\n if (JSoundsMainWindowViewController.iAmResuming && JSoundsMainWindowViewController.jlActualListSongs != null)\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n \n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.resumeSong();\n }\n \n }\n }\n }", "title": "" }, { "docid": "18f2d19610f31654a6f4fdbd0bd8c00b", "score": "0.54039884", "text": "private void menu() { \r\n\t\tSystem.out.println(\" ---------WHAT WOULD YOU LIKE TO DO?---------\");\r\n\t\tSystem.out.println(\"1) Move\");\r\n\t\tSystem.out.println(\"2) Save\");\r\n\t\tSystem.out.println(\"3) Quit\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "309d9a681cb8b4b49a891ba15296ad23", "score": "0.53946036", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_create_artist, menu);\n return true;\n }", "title": "" }, { "docid": "4578f22fe98f594ec6fe3a0c63c01c02", "score": "0.5394085", "text": "private void createMusicButton(String text) {\n music = new TextButton(text, skin);\n music.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent e, float x, float y) {\n musicClicked();\n }\n });\n table.add(music).width(120).height(60).expandX();\n setSoundButtonColor(MatchScreen.getMusicVolume() == 0, music);\n }", "title": "" }, { "docid": "9399c0eb56833c4534bfc4cfb8f688a2", "score": "0.53883946", "text": "private JMenuItem createMenuItem(JMenu parent, String text, int mnemonic, String keyStrokeText, String tooltip) {\n\t\tJMenuItem item = new JMenuItem();\n\t\t\n\t\titem.setText(text);\n\t\tif (mnemonic != -1) {\n\t\t\titem.setMnemonic(mnemonic);\n\t\t}\n\t\tif (keyStrokeText != null) {\n\t\t\tKeyStroke accelerator = KeyStroke.getKeyStroke(keyStrokeText);\n\t\t\titem.setAccelerator(accelerator);\n\t\t}\n\t\tif (tooltip != null) {\n\t\t\titem.setToolTipText(tooltip);\n\t\t}\n\t\t\n\t\tparent.add(item);\n\t\treturn item;\n\t}", "title": "" } ]
8edf79632321581e1ae1aa13b4725727
Toggles the user's administrative privileges
[ { "docid": "f1bdde58c301419b9e87899e4ab72472", "score": "0.6511546", "text": "public void setAdmin(boolean admin) {\n this.admin = admin;\n }", "title": "" } ]
[ { "docid": "0f0c7c502c586f96253379d5dfc340fe", "score": "0.7387821", "text": "void setAdmin(boolean flag);", "title": "" }, { "docid": "93552be24accd6aee8fda7f15bd33c58", "score": "0.7180796", "text": "public void setAdmin(boolean value) {\n this.admin = value;\n }", "title": "" }, { "docid": "3e6cf44d0633f8afe3f18fb1fcd0e3e1", "score": "0.7103794", "text": "public void ferAdmin() {\r\n\t\tAdmin = true;\t\t\t\t\r\n\t}", "title": "" }, { "docid": "a87262d415f9e7cc0696a86f3dd9dc9c", "score": "0.70912826", "text": "void showAdminMode(boolean adminMode);", "title": "" }, { "docid": "818d84c37e5fb46708e03aa9d1cc6501", "score": "0.6950106", "text": "public boolean setupAdminUser();", "title": "" }, { "docid": "b49345ae1293ff3be0e023df14621bdb", "score": "0.69362277", "text": "public void setAdmin() { admin = true; }", "title": "" }, { "docid": "bd564f136451724564405ea9dce858a6", "score": "0.68202186", "text": "public boolean isUserAdmin();", "title": "" }, { "docid": "97681c28490634d3dba89f40986533f7", "score": "0.6647423", "text": "public boolean isAdmin(){\n return true;\r\n }", "title": "" }, { "docid": "a11e8ac9a8fdc8764e7508b40dfe8aff", "score": "0.66450125", "text": "public void setAdmin(boolean isAdmin)\n\t{\n\t\tthis.isAdmin = isAdmin;\n\t\tsave();\n\t\t\t\n\t}", "title": "" }, { "docid": "3c7c910029d6ce6b8332ec4ac9a92dde", "score": "0.66251475", "text": "@Override\n public boolean isAdmin()\n {\n return true;\n }", "title": "" }, { "docid": "a2efef90da52a764469e7e93195df7b6", "score": "0.65929705", "text": "public void activateAdminControl() {\n\n\t\tIntent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN);\n\t\tintent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN,\n\t\t\t\tdevice_admin_comp);\n\t\tintent.putExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION,\n\t\t\t\tcontext.getString(R.string.add_admin_extra_app_text));\n\t\t((Activity) context).startActivityForResult(intent,\n\t\t\t\tREQUEST_CODE_ENABLE_ADMIN);\n\t\t// return false - don't update checkbox until we're really active\n\t\treturn;\n\t}", "title": "" }, { "docid": "9e36a1c83c6c996c33c1603da414a09c", "score": "0.65373087", "text": "@Override\r\n\tpublic boolean isAdmin() {\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "4cf7090e866abdefa6bc0f4f55d41444", "score": "0.6532651", "text": "public boolean isAdmin()\n {\n return false;\n }", "title": "" }, { "docid": "4ba1806f5cd75e8a53f923bb0749e674", "score": "0.6425574", "text": "public boolean isAdmin() { return admin; }", "title": "" }, { "docid": "e440aa2b7a55259aaa864ec6d5ccba73", "score": "0.6420752", "text": "public static boolean testTakeAdmin() {\r\n\t AccessControl acc = new AccessControl();\r\n\t acc.setCurrentUser(\"admin\");\r\n\t acc.addUser(\"Stephen\", true);\r\n\t boolean success = acc.takeAdmin(\"Stephen\");\r\n\t return success;\r\n\t}", "title": "" }, { "docid": "1fb3723eef5d7eca4f26c465f75b181f", "score": "0.641713", "text": "boolean isAdmin();", "title": "" }, { "docid": "1fb3723eef5d7eca4f26c465f75b181f", "score": "0.641713", "text": "boolean isAdmin();", "title": "" }, { "docid": "fe0f40c6b3502f8da2e8eb1e868fb7eb", "score": "0.6412027", "text": "public boolean isAdministrator() {\r\n return isAdmin;\r\n }", "title": "" }, { "docid": "d5b62e785b49bb8b61945c3f5beacf23", "score": "0.6381825", "text": "public boolean isAdmin() {\r\n\t\treturn feveUserInfo().isAdmin();\r\n\t}", "title": "" }, { "docid": "f41241d7ce2ed1733e462ee2d2338564", "score": "0.63309747", "text": "public void setAdministrador(boolean administrador) {\n this.administrador = administrador;\n }", "title": "" }, { "docid": "406451121102ea9e7b93ec50eb46a4c6", "score": "0.6323976", "text": "public boolean isAdmin(){\r\n return role.equals(\"A\");\r\n }", "title": "" }, { "docid": "13624a1b58949a293281dc45f37ca65b", "score": "0.6307372", "text": "int getIsAdmin();", "title": "" }, { "docid": "bad0c083a24a4fe6dc1470d171a401ff", "score": "0.6244413", "text": "protected boolean isFeatureAdmin(Identity identity) {\n return false;\n }", "title": "" }, { "docid": "1297a370622223a154e677ce479a9849", "score": "0.6240444", "text": "public boolean esAdmin() {\r\n\t\treturn Admin;\r\n\t}", "title": "" }, { "docid": "158f008f64c1914424d1debe3623874c", "score": "0.6235173", "text": "public void display_admin_menu() {\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++\");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"Welcome Admin, Restricted Access\");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++\");\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++\");\n\t\tSystem.out.print(\"TIME : \" + localTime);\n\t\tSystem.out.print(\" DATE : \" + localDate);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Enter Password to proceed\");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"\");\n\t\tadmin_password();\n\t}", "title": "" }, { "docid": "07f0a0d7189276506e4654f0f7febcac", "score": "0.621362", "text": "private boolean isActiveAdmin() {\n return mDPM.isAdminActive(mDeviceAdminSample);\n }", "title": "" }, { "docid": "a81b402b811e6818296643db497f6b21", "score": "0.61931527", "text": "public int getIsAdmin() {\n return isAdmin_;\n }", "title": "" }, { "docid": "ac1b38177db4f60b85f38190f38b606b", "score": "0.6184612", "text": "public void setAdministrator(boolean administrator) {\n\t\tthis.administrator = administrator;\n\t}", "title": "" }, { "docid": "a64e52101cbbbedb18dbae2d39264322", "score": "0.61811054", "text": "public int isAdmin()\r\n\t{\r\n\t\treturn admin;\r\n\t}", "title": "" }, { "docid": "046b7900a16e1d9d6e9ea4c62e32a76c", "score": "0.61642224", "text": "public boolean isAdmin() {\n return admin;\n }", "title": "" }, { "docid": "046b7900a16e1d9d6e9ea4c62e32a76c", "score": "0.61642224", "text": "public boolean isAdmin() {\n return admin;\n }", "title": "" }, { "docid": "c9c972cffc457b07b6efe10352248d42", "score": "0.6159762", "text": "public boolean isAdminProtection() {\n return false;\n }", "title": "" }, { "docid": "9850a1f1dbf0042dfe4c24d86409ca8b", "score": "0.614238", "text": "public int getIsAdmin() {\n return isAdmin_;\n }", "title": "" }, { "docid": "1962a90ca6c97e41c912faf2918bdf6e", "score": "0.6094008", "text": "@Override\n\tpublic boolean esAdministrador() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1592b78480e26344909a3bd040f70f60", "score": "0.6052684", "text": "public static boolean askAdmin(UserInfo u){\n return AdminInterface.adminInterface.admin.yesOrNo();\n }", "title": "" }, { "docid": "93d42310d25a1e020dc9ffcaf5ac85b3", "score": "0.60389453", "text": "public void setAffRestrictedAdmin(boolean AffRestrictedAdmin) {\n this.AffRestrictedAdmin = AffRestrictedAdmin;\n }", "title": "" }, { "docid": "dc9a3d490b13b039dfe3621a3d00da53", "score": "0.6036302", "text": "@Given(\"^DG admin user is on admin settings page$\")\n\tpublic void dg_admin_user_is_on_admin_settings_page() throws Throwable {\n\t\t\t\t PW_login login = new PW_login();\n\t\tdriver = login.getdata(url);\n\t\tUIHandler_1 admin_login = PageFactory.initElements(driver, UIHandler_1.class);\n\t\tdriver = admin_login.Adviser_login(driver, dg_admin_username, password);\n\t\tThread.sleep(10000);\n\t\tLog.info(\"logged in as an DG admin\");\n\t}", "title": "" }, { "docid": "90f227dafb900c91708485f1ffa76326", "score": "0.6011337", "text": "public boolean isAdministrator() {\n\t\treturn administrator;\n\t}", "title": "" }, { "docid": "b92f8563dc687b30dc54076839c7347f", "score": "0.6004186", "text": "public boolean isAffRestrictedAdmin() {\n return AffRestrictedAdmin;\n }", "title": "" }, { "docid": "b6ff3f5bb2220be77259c47559abce25", "score": "0.59884834", "text": "boolean isAdmin(User user);", "title": "" }, { "docid": "a27e779c9c8d5bfe2776a72206293ab1", "score": "0.594665", "text": "protected final void adminOnly() {\n final String self = this.auth().identity().urn().toString();\n if (!\"urn:github:526301\".equals(self)) {\n throw this.flash().redirect(\n this.uriInfo().getBaseUri(),\n \"sorry, but this entrance is \\\"staff only\\\"\",\n Level.WARNING\n );\n }\n }", "title": "" }, { "docid": "cb8ed185897de102a099c5ce16196b3d", "score": "0.59304595", "text": "@Override\n\tpublic boolean isMenuAdministrador() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b9de2f614041ffa45a7e73b4667a9491", "score": "0.5930408", "text": "public boolean getAdmin() {\n\treturn admin;\n }", "title": "" }, { "docid": "135da59750c26d2fc1ba737da1c66ecf", "score": "0.5923573", "text": "public void loginAdmin() {\r\n\t\t\r\n\t\tadminbtn.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\tbtnAdd.setVisible(true);\r\n\t\t\tbtnModify.setVisible(true); \r\n\t\t\tbtnDelete.setVisible(true);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e1b78d2ce2e919534056236cd15ff3a8", "score": "0.59182626", "text": "public void setSuperAdministrator(Boolean superAdministrator) {\r\n this.superAdministrator = superAdministrator;\r\n }", "title": "" }, { "docid": "015f5bf4537502a661fd701fe8f2a255", "score": "0.59050816", "text": "public boolean isAdmin() {\r\n\t\tif (!(authenticator.getLoggedUser() instanceof Vet)\r\n\t\t\t\t&& !(authenticator.getLoggedUser() instanceof Owner)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "fb5524314fc0d8f432dfa58465fd5860", "score": "0.5894662", "text": "public boolean isMemberOfExecuteSystemAdminActionsGroup() {\n return false;\n }", "title": "" }, { "docid": "ab58c8709b5b5fa2c687ae08e0359d78", "score": "0.58834225", "text": "public Boolean getSuperAdministrator() {\r\n return superAdministrator;\r\n }", "title": "" }, { "docid": "23d3f69c2475e8cc7f44fbd9334fb80b", "score": "0.58720016", "text": "public boolean toggleStudentAccess()\n {\n \n studentAccess = !studentAccess;\n return studentAccess;\n }", "title": "" }, { "docid": "6e533a6b2add150be3c20a68512c8bb0", "score": "0.5870158", "text": "@Secures\n\t@Admin\n\tpublic boolean isAdmin(Identity identity) {\n\t\tif (!identity.isLoggedIn()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "74acb24cee5973c2986da30b26b8317f", "score": "0.58584607", "text": "public void lockedManageAdminByUsername(String username){\n }", "title": "" }, { "docid": "a0021ad05249d776c33c66870f54f6f1", "score": "0.5838844", "text": "public boolean isUserAdmin(String userId);", "title": "" }, { "docid": "1d4d96120a8171709e84fa2e0ba31326", "score": "0.5825223", "text": "public void setAdmin(User newAdmin) {\n this.admin = newAdmin;\n }", "title": "" }, { "docid": "32391031a14cdf74767ebc83871cd5f4", "score": "0.58055776", "text": "public boolean isAdmin(Account account) {}", "title": "" }, { "docid": "64f8db1e60e3735605f8a5c71bd8f63a", "score": "0.57979447", "text": "private static void escribirMenuAdministrador() {\n\t\tSystem.out.println(\"+----------------------------------------+\");\n\t\tSystem.out.println(\"+ Bienvenido Administrador +\");\n\t\tSystem.out.println(\"+----------------------------------------+\");\n\t\tSystem.out.println(\"\\t\\t 1. Crear perfil de profesor \");\n\t\tSystem.out.println(\"\\t\\t 2. Borrar perfil de profesor\");\n\t\tSystem.out.println(\"\\t\\t 3. Modificar perfil de profesor\");\n\t\tSystem.out.println(\"\\t\\t 4. Consultar listado de profesores\");\n\t\tSystem.out.println(\"\\t\\t 5. Cerrar sesion\");\n\t}", "title": "" }, { "docid": "0cb51ea4fdbbc1ead295d361ad972928", "score": "0.5795857", "text": "public boolean isAdministrador() {\n return administrador;\n }", "title": "" }, { "docid": "864b1f0871f6725496b8a1c109b32174", "score": "0.57878095", "text": "public Boolean isUserAdmin() throws SQLException {\n\t\tBoolean result = null;\n\t\t\n\t\tif(userResult.equals(\"HR\")) {\n\t\t\tresult = true;\n\t\t} else {\n\t\t\tresult = false;\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "1b2bb28840aee6d552a612c001e9f891", "score": "0.57834095", "text": "public void setIsAdminAuthenticated(boolean isAdminAuthenticated) {\r\n this.isAdminAuthenticated = isAdminAuthenticated;\r\n }", "title": "" }, { "docid": "4166143bd33d4c830bc8c0fa7892e330", "score": "0.5776873", "text": "public Boolean getStopAdministrator() {\r\n return stopAdministrator;\r\n }", "title": "" }, { "docid": "161ce252a25e8bcc7f375e19635d098b", "score": "0.5772426", "text": "@Override\r\n public boolean checkCanByAdmin(UserDTO user) {\r\n // TODO Auto-generated method stub\r\n return false;\r\n }", "title": "" }, { "docid": "25e6fe3afc187bbad1026268a46c6c9a", "score": "0.5759268", "text": "public Builder setIsAdmin(int value) {\n \n isAdmin_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4573a52d2c004728f102bb01bca377be", "score": "0.5757983", "text": "public boolean isAdmin() {\n\t\treturn this.equals(AppUserRole.ADMIN);\n\t}", "title": "" }, { "docid": "5d5aebb4e5b8c3dd54cab41633ce31c5", "score": "0.5751167", "text": "public void Admin(int a)\n\t{\n\t\tmAdmin = a;\n\t}", "title": "" }, { "docid": "a1dcafeaeb6285fe5d91f8b6abff0c85", "score": "0.57321185", "text": "public boolean isAdmin(User theUser) {\n\t\treturn theUser.getAdminRole() == 1 ? true : false;\n\t}", "title": "" }, { "docid": "5ca1173d707942184096e1d77a083c3e", "score": "0.5727951", "text": "public void setAdminLogin(boolean adminLogin) {\r\n\t\tthis.adminLogin = adminLogin;\r\n\t}", "title": "" }, { "docid": "0c46521bdc4d3ece2f23df7b3ae0430d", "score": "0.57214457", "text": "public final boolean isRestrictedByAdmin() {\n return this.mAdmin != null;\n }", "title": "" }, { "docid": "e9a29f4dae54742028dc17f2a9bcbe16", "score": "0.5716563", "text": "public boolean getPrivilege(){\n return privilege;\n }", "title": "" }, { "docid": "b02c7dbb82f36aeba5ba2581ca208743", "score": "0.5715257", "text": "void hakAksesAdministrasi() {\n Pasien.setEnabled(true);\n Bidan.setEnabled(true);\n Kode_tindakan.setEnabled(true);\n Obat.setEnabled(true);\n }", "title": "" }, { "docid": "abe08f273b972a660cdfd531e6ded854", "score": "0.5707303", "text": "void changeRights(PersonDTO person, Boolean isAdmin);", "title": "" }, { "docid": "71ad436b9dc699b2f695af412753f75e", "score": "0.57019985", "text": "private synchronized boolean hasSystemAdminUserAccess(SecurityInfo secInfo) {\n\t\tif (userAccess(secInfo.getUser(), SecurityUtil.getAdminUsers(systemValues))\n\t\t\t\t== Access.GRANTED) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "497b78e1e3edfbabc26589f8b6d71edf", "score": "0.57001", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n String admin = LoginActivity.sharedPreferences.getString(\"uye_admin\",\"0\");\n boolean durum=false;\n if (admin.equals(\"1\"))\n {\n durum = true;\n }\n\n return durum;\n }", "title": "" }, { "docid": "e5243132b0f39acec4658b3b232d651e", "score": "0.5684256", "text": "private static void checkIfIsAdmin(String uid) {\n\n FirebaseUtil.isAdmin = false;\n DatabaseReference dbRef = mFirebaseDatabase.getReference().child(ADMINISTRATORS_REF)\n .child(uid);\n ChildEventListener eventListener = new ChildEventListener() {\n @Override\n public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {\n FirebaseUtil.isAdmin = true;\n // show menu\n thisActivity.showMenu();\n }\n\n @Override\n public void onChildChanged(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {\n\n }\n\n @Override\n public void onChildRemoved(@NonNull DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n };\n\n dbRef.addChildEventListener(eventListener);\n\n }", "title": "" }, { "docid": "d390812f60d421e14480997eea7f70a5", "score": "0.56478715", "text": "public void setStopAdministrator(Boolean stopAdministrator) {\r\n this.stopAdministrator = stopAdministrator;\r\n }", "title": "" }, { "docid": "ad0d00eed451221b7e6a25d8be091bbe", "score": "0.5626928", "text": "public void setAdmin(Admin a)\r\n\t{\r\n\t\tadmin = a;\r\n\t}", "title": "" }, { "docid": "53f9db90074b4d98ad3150ba31c5108e", "score": "0.5625815", "text": "private void checkIfUserIsSystemAdmin(HttpServletRequest request, HttpServletResponse response) throws IOException {\n UserProfile userProfile = getUserManager().getRemoteUser();\n if (userProfile == null || !getUserManager().isSystemAdmin(userProfile.getUserKey())) {\n redirectToLogin(request, response);\n return;\n }\n }", "title": "" }, { "docid": "2c95e71096b9024e802e719edc5b76aa", "score": "0.5606497", "text": "@Override\n\tpublic void menuAdministrador() {\n\t\t\n\t}", "title": "" }, { "docid": "86a0ced22673b1fbd7cdd5692c6ece8e", "score": "0.55871755", "text": "@Override\n\tpublic void updateUserAdmin(int isAdmin, int userID) {\n\t\tuserDAO.updateUserAdmin(isAdmin, userID);\n\t}", "title": "" }, { "docid": "2baca01131ced4f3e120ff03f7a6b281", "score": "0.55834186", "text": "public boolean isSystemAdmin(String modId) throws ConfigException{\n WebModule wm = getWebModule(modId);\n String resourceType = wm.getObjectType();\n if(resourceType.startsWith(SYSTEM_ADMIN_PREFIX))\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "b2b85d18f7eef233c937012a704cd5b8", "score": "0.557957", "text": "public void setGlobalPrivileges(String [] GlobalPrivileges) {\n this.GlobalPrivileges = GlobalPrivileges;\n }", "title": "" }, { "docid": "75c9ee5a6cc74c3444065d8c59509896", "score": "0.5575478", "text": "public void setAdministrator(UserStaff administrator) {\n this.administrator = administrator;\n }", "title": "" }, { "docid": "2ca574a76220f64cfbaba88dbff88e83", "score": "0.5555434", "text": "public void setAdminState(Integer AdminState)\n {\n this.m_AdminState = AdminState;\n }", "title": "" }, { "docid": "0ad1fa1c94aef56f90d9c3311f3a649c", "score": "0.55508214", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);\n\n Bundle bundle = getIntent().getExtras();\n\n if (!UserManager.getIsAdmin(this)) {\n menu.findItem(R.id.action_settings).setVisible(false);\n }\n return true;\n }", "title": "" }, { "docid": "76d40984928f548ec10d1b6189387126", "score": "0.55430657", "text": "public boolean setAdmin(String ID, boolean admin) throws PasswordException\n {\n boolean updated = false;\n User u = getUser(ID);\n if(u.setAdmin(admin)) //if admin rights change from current state\n updated = true;\n \n return updated;\n }", "title": "" }, { "docid": "9c3f5a4e158ef1cf964422e745c232be", "score": "0.55420077", "text": "protected static void toggleLoggedIn(){\n\t\tif(loggedIn){\n\t\t\tloggedIn = false;\n\t\t}else{loggedIn = true;}\n\t}", "title": "" }, { "docid": "147680e11c8dc99c52bc5e0eda27b443", "score": "0.5528424", "text": "@Override\n\tpublic void applyPrivileges() {\n\t\tGUIController.clearPane();\n\t}", "title": "" }, { "docid": "6d02f3067a0f1e372c7d995b38161179", "score": "0.55198425", "text": "public void setAllowAdminID(boolean allow) {\n _engine.setAllowAdminID(allow);\n }", "title": "" }, { "docid": "e8cd80e6a643ce636e09e2b0d8fa53e5", "score": "0.5516463", "text": "ServerAdmin getServerAdmin();", "title": "" }, { "docid": "4c57ca183fe8b4772e15e472b3957211", "score": "0.55065787", "text": "public void logoffAdminPage(){\n\t\treport.updateTestLog(\"Logout\", \"Processing Logout Functionality from Admin Page\", Status.DONE);\n\t\tAdminPg.getLogofflink().click();\n\t\t//String LgOff = dataTable.getData(\"CreateUser_Data\", \"LoggedOff\");\n\t\tif(lPage.getLoggedoffLable().getText().contains(\"Logged Off\")){\n\t\t\treport.updateTestLog(\"Logout\", \"Logout from Admin page was Successfully\", Status.PASS);\n\t\t\t\n\t\t}else{\n\t\t\treport.updateTestLog(\"Logout\", \"Logout from Admin page unsuccessful\", Status.FAIL);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "cbdfbf537a228df88d9fbff323bb6f81", "score": "0.54833496", "text": "public void setVisibility() {\n try {\n if(UserController.getUserRole().equals(\"admin\")) {\n makeOrder.setMaxHeight(0);\n makeOrder.setVisible(false);\n } else {\n manageUsers.setMaxHeight(0);\n manageUsers.setVisible(false);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "8b6c97f73ac89037a94aab884746daa9", "score": "0.54731405", "text": "public void setAdmin(final String admin) {\r\n\t\tthis.admin = admin;\r\n\t}", "title": "" }, { "docid": "c2a11b3d2c1e59d5f50245fc69a85e06", "score": "0.54629385", "text": "public User getAdministrator();", "title": "" }, { "docid": "ba9dee6eddc92bec9a58f8d0651c9d4d", "score": "0.5444829", "text": "public void setViaAdministracion(java.lang.String viaAdministracion) {\n this.viaAdministracion = viaAdministracion;\n }", "title": "" }, { "docid": "18e4f20895cb5b9b59e28b5b85fcd803", "score": "0.54357916", "text": "public boolean isAdmin() {\n if (getRequest().getRemoteUser() != null) {\n Users p = userFacade.findByEmail(getRequest().getRemoteUser());\n return usersController.isUserInRole(p, \"HOPS_ADMIN\");\n }\n return false;\n }", "title": "" }, { "docid": "f8c248fb6a3cc38d042ee8536a257090", "score": "0.5412743", "text": "public void switchRoles() {\r\n\t\thunted = !hunted;\r\n\t}", "title": "" }, { "docid": "69097cfca83d9dcda81679490f8ff8ce", "score": "0.54002994", "text": "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n User user = State.getInstance().getSignedInUser();\n getMenuInflater().inflate(R.menu.user_options, menu);\n if (null != user && user.getType() == User.Type.ADMIN) {\n menu.setGroupVisible(R.id.grp_user_edit_controls, false);\n }\n if (!currentUser.equals(State.getInstance().getSignedInUser())) {\n menu.setGroupVisible(R.id.grp_user_password_controls, false);\n }\n return true;\n }", "title": "" }, { "docid": "66b9f81c61d4dc07418089ce12bd0008", "score": "0.5398604", "text": "public void cederAdmin(Professeur professeur) {\r\n professeur.setAdmin();\r\n this.professeur.enleverAdmin();\r\n }", "title": "" }, { "docid": "febaf2a0554ff087e9b9e93a592ee62e", "score": "0.53957355", "text": "public void setIdAdminUser( int nIdAdminUser )\n {\n _nIdAdminUser = nIdAdminUser;\n }", "title": "" }, { "docid": "23c3b6510c1260d37b6bd358360a0a26", "score": "0.53899777", "text": "public boolean isAdminLogin() {\r\n\t\treturn adminLogin;\r\n\t}", "title": "" }, { "docid": "72acb09d61620fd88913cec4f46fd4ea", "score": "0.5388911", "text": "private boolean checkAdminAccess(String command) {\n return command.equals(Constants.Command.CHANGE_DISCOUNT)\n || command.equals(Constants.Command.CHANGE_ROLE)\n || command.equals(Constants.Command.LOOK_ORDER)\n || command.equals(Constants.Command.REDUCE_VISITS)\n || command.equals(Constants.Command.DELETE_USER);\n }", "title": "" }, { "docid": "48ce7ad04e92d92a4736bab76df14662", "score": "0.53826195", "text": "public final void doAction() {\n if (!isRestrictedByBase()) {\n if (isRestrictedByAdmin()) {\n RestrictedLockUtils.sendShowAdminSupportDetailsIntent(this.mContext, this.mAdmin);\n } else {\n this.mAction.run();\n }\n }\n }", "title": "" } ]
15308e11d6379351589b0848144ea289
TODO Create tests for `void eat(Food food)`
[ { "docid": "0ebef0f4bc65d540e0e996bbdb61651a", "score": "0.6341894", "text": "@Test\n public void eatTest(){\n Food onion = new Food();\n Food banana = new Food();\n dog.eat(onion);\n dog.eat(banana);\n\n\n Food expected = banana;\n Food actual = dog.getFood();\n Assert.assertEquals((expected),actual);\n }", "title": "" } ]
[ { "docid": "4095f18f53682926e85199ae0de71cc4", "score": "0.85698926", "text": "@Override\r\n\tpublic void eat(Food food) {\n\r\n\t}", "title": "" }, { "docid": "d39ea75c8967aad5f57b0eb642825cae", "score": "0.7622663", "text": "public void eat();", "title": "" }, { "docid": "bc2a50d07f641d16ca5bd90dc4b0dc72", "score": "0.7581707", "text": "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"Eating canned food today\");\n\t}", "title": "" }, { "docid": "0df789566e0c066ebba27d8324866e36", "score": "0.7534154", "text": "@Override\n\t\t\tvoid eat() {\n\t\t\t\tSystem.out.println(\"Nice Food\");\n\n\t\t\t}", "title": "" }, { "docid": "d7c796f30f8e6b19e801badc18af45bb", "score": "0.75238866", "text": "abstract public void eat();", "title": "" }, { "docid": "008ea7022e12c84f9997f641dd734b6f", "score": "0.7510466", "text": "public void eat() {\n }", "title": "" }, { "docid": "008ea7022e12c84f9997f641dd734b6f", "score": "0.7510466", "text": "public void eat() {\n }", "title": "" }, { "docid": "5c625c77f976df98568680224345d364", "score": "0.7487134", "text": "public void eat() {\n\n }", "title": "" }, { "docid": "b80ac55a8b9d3f525c761a7439ed5262", "score": "0.744146", "text": "public void eat()\n\t{\n\t\n\t}", "title": "" }, { "docid": "0eb109159fcf377f4f8415c5e1d656df", "score": "0.7411977", "text": "public abstract void eat();", "title": "" }, { "docid": "f016b3c9654adfeb052989a2efce66d7", "score": "0.73671454", "text": "void eat();", "title": "" }, { "docid": "65282c615d30d8e89c7717d616654666", "score": "0.7323501", "text": "@Override\n\tpublic void eat() {\n\t\t\n\t}", "title": "" }, { "docid": "65282c615d30d8e89c7717d616654666", "score": "0.7323501", "text": "@Override\n\tpublic void eat() {\n\t\t\n\t}", "title": "" }, { "docid": "65282c615d30d8e89c7717d616654666", "score": "0.7323501", "text": "@Override\n\tpublic void eat() {\n\t\t\n\t}", "title": "" }, { "docid": "6a61f317e9f64b3d5c19ec5878120e8c", "score": "0.7310292", "text": "@Override\r\n\tpublic void eat() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8d155204ca0721d4931da339d1be028b", "score": "0.7307112", "text": "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"Parrots Eats bird food\");\n\t\t\n\t}", "title": "" }, { "docid": "877c30da0935cbcf4c68e3aacf06651a", "score": "0.7302861", "text": "public void eat ();", "title": "" }, { "docid": "148190a1c6ea29a561ec5d1b32303ab2", "score": "0.7280325", "text": "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"Eagle Eats bird food\");\n\t\t\n\t}", "title": "" }, { "docid": "8f732a54a3d609d43c3f6189bf2816c6", "score": "0.7276972", "text": "public void eat(String food){\n\t\tif (!this.is_sleep) {\n\t\t\tSystem.out.println(this.name + \" the Dog eagerly scarfs up the \" + food + \".\");\n\t\t}\n\t}", "title": "" }, { "docid": "72e8b4801f8031ed7ed054cda7c1e94d", "score": "0.72316927", "text": "public boolean eat(Animal food) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "0eaa522efeffe88b918dd91d2c1da411", "score": "0.7230617", "text": "@Override\n public void eat() {\n System.out.println(\"I eat dog food\");\n }", "title": "" }, { "docid": "76a5cc9ad20673209a734ecae897e0a3", "score": "0.7132576", "text": "public void FeedAnimal(Food food){\n if( stomachFull() ){\n return;\n }\n int fillFood = foodEaten();\n stomach[fillFood] = food;\n }", "title": "" }, { "docid": "c3b74e307880e025211c5160ab03ab3b", "score": "0.7095125", "text": "public void eat() {\r\n System.out.println(\"I love pizza and wings.\");\r\n }", "title": "" }, { "docid": "77df3b70053e657d7c652a08dae6d61d", "score": "0.7089207", "text": "@Override\n\tpublic String eat(String food, String drink) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a6be1746b5657bcf9447740f3a5c194b", "score": "0.70474094", "text": "@Override\n public void eat(Food food, Player player, int indexChosen, int amountOfFood) {\n if (food instanceof Veggies) {\n System.out.println(\"Yum yum\");\n gainMoreEnergy(food,player,indexChosen,amountOfFood);\n\n\n } else {\n System.out.println(\"I don't want eat that\");\n }\n }", "title": "" }, { "docid": "34124d2b5183d10176d70754c29aa004", "score": "0.70440894", "text": "public void giveFood()\n\t{\n\t\tfoodCount++;\n\t}", "title": "" }, { "docid": "eab29abb552d1e48c2d23584a5cc247c", "score": "0.70244133", "text": "@Override\r\n public void eat() {\n System.out.println(\"I am eating bones\");\r\n\r\n }", "title": "" }, { "docid": "c03e704aab314e44de4ca6cda49c2dc5", "score": "0.7016499", "text": "public abstract boolean eat();", "title": "" }, { "docid": "c2ea7f5d9082a3ae15c1dfd6b605c6f1", "score": "0.6997368", "text": "public void getFood() \n {\n\t \n }", "title": "" }, { "docid": "ab551b9cd061c4a99ddcf2dc912fd890", "score": "0.6979027", "text": "public void eatEatclubFood() {\n }", "title": "" }, { "docid": "a2b747bc0dc5193ec602ad347b3c73ac", "score": "0.69469804", "text": "public void eat() {\n\t\tSystem.out.println(\"Cat is eating.\");\n\t\t\n\t}", "title": "" }, { "docid": "1f35c57d7c9e17cd414d17c41faf811d", "score": "0.6872141", "text": "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"Cat eats\");\n\t}", "title": "" }, { "docid": "6d2a466e8e961ef9af533bc32b23df80", "score": "0.6848192", "text": "public void eat() {\n\t\tSystem.out.println(\"Eating a sandwich...\");\n\t}", "title": "" }, { "docid": "ba5185167f3d12b1311f46e154d7669e", "score": "0.6841048", "text": "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"Dog eats\");\n\t}", "title": "" }, { "docid": "5f26770e4443c6a6404da4a7f3bdb01d", "score": "0.6839047", "text": "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"banana\");\n\t}", "title": "" }, { "docid": "1e0148c53a7f96eb850ba88e8af23371", "score": "0.6830993", "text": "public void eat() {\n\t\t\n\t\tSystem.out.println((name+\" the \"+type+\" eats meat\"));\n\t\t\t\n\t}", "title": "" }, { "docid": "fa249716cc850906ef246da9446fe65b", "score": "0.68028474", "text": "public void eat () {\n System.out.println(\"He's eating everything\" );\n }", "title": "" }, { "docid": "55ae237a13c7a4db58d78c4b3e6b3f29", "score": "0.67898464", "text": "public final void eat() {\n\t\tSystem.out.println(\"Animals eat\");\n\t}", "title": "" }, { "docid": "961f6d79bedc448f63aed61558b62609", "score": "0.67846", "text": "@Override\r\n\t\t\tvoid eat() {\n\t\t\t\tSystem.out.println(\"Cats will eat\");\t\r\n\t\t\t}", "title": "" }, { "docid": "7d7d0a15abde773afdef1501115ce480", "score": "0.673536", "text": "public static void replenishFood(){\n\t}", "title": "" }, { "docid": "8844f8423540fc49ed239ca2bbff56ac", "score": "0.67286015", "text": "private void eatAllFood(){\n\t\tList<Food> snacks = this.getWorld().overlapWithFood(this.getPosition(), this.getRadius());\n\t\tfor (Food snack : snacks)\n\t\t\tthis.eat(snack);\n\t}", "title": "" }, { "docid": "9eff2449e561cbfc7adb6a423bd4b46d", "score": "0.66777086", "text": "public void eat() {\n\t\tSystem.out.println(\"women eat\");\n\t}", "title": "" }, { "docid": "2c3d1fe92584353e29c5bfd45d0da561", "score": "0.66753393", "text": "public void actionFood() {\n\n\t\t\tSystem.out.println(T33.textDragon[0]);\n\t\t\tint n1 = Clavier.lireInt();\n\t\t\tif (nbLim(n1) == 0) {\n\t\t\t\tSystem.out.println(T33.textRepeat[1] + \"\\n\");\n\t\t\t} else {\n\t\t\t\tif (n1 == 1) {\n\t\t\t\t\tfood(nbLim(n1));\n\t\t\t\t} else {\n\t\t\t\t\tfood(nbLim(n1));\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1bfc668962d2fbefd9a1b8b7c48ef95b", "score": "0.66682285", "text": "public void eatFood(Food currFood) {\n\t\tMould.setFoundFood(true);\n//\t\tspreadToEmpty(currFood);\n//\t\tcurrFood.desaturate();\n//\t\tif (((Color) currFood.getElementRepr().getFill()).getOpacity() < DISAPPEAR_THRESH) {\n//\t\t\tMould newMould = new Mould(currFood._xPos, currFood._yPos);\n//\t\t\theadsToAdd.put(newMould, null);\n//\t\t\treplace(newMould);\n//\t\t\tMould.setFoundFood(false);\n//\t\t}\n\t}", "title": "" }, { "docid": "01c34c672b0a2ecbafe09bf55b0a4a79", "score": "0.66316056", "text": "@Override\r\n\t\tvoid eat() {\n\t\t\tSystem.out.println(\"Hippo will eat\");\r\n\t\t}", "title": "" }, { "docid": "ddfd09fdbb3abea3f09535830be72528", "score": "0.66161364", "text": "@Override\n\tpublic String getFood() {\n\t\treturn \"Sushi, Sake\";\n\t}", "title": "" }, { "docid": "df65eb6f15b58fa2dd2436ad429d57f3", "score": "0.6585737", "text": "@Override\r\n\t\t\tvoid eat() {\n\t\t\t\tSystem.out.println(\"Wolf will eat\");\r\n\t\t\t}", "title": "" }, { "docid": "a2fef36e7e0f2ae62a1ae80ecfc25897", "score": "0.6560901", "text": "@Override\r\n\tpublic void eat() {\n\t\tSystem.out.println(\"学生会吃饭\");\r\n\t}", "title": "" }, { "docid": "6168b5bee2d3418663a2092c0a5fd85a", "score": "0.6558505", "text": "@Override\r\n\tpublic void consume() {\n\t\tdessert.eat();\r\n\t}", "title": "" }, { "docid": "6168b5bee2d3418663a2092c0a5fd85a", "score": "0.6558505", "text": "@Override\r\n\tpublic void consume() {\n\t\tdessert.eat();\r\n\t}", "title": "" }, { "docid": "e07b94ad8d6e0de418a6f9bed12d58df", "score": "0.65539014", "text": "@Override\r\n\t\t\tvoid eat() {\n\t\t\t\tSystem.out.println(\"Dog will eat\");\r\n\t\t\t}", "title": "" }, { "docid": "08461bbdb518ef321805f33545b63689", "score": "0.65526736", "text": "public void eat() {\n System.out.println(\"I can eat\");\n }", "title": "" }, { "docid": "4c1fae9a102642b352afa3bcad6798eb", "score": "0.6551047", "text": "@Override\n\tvoid eat() {\n\t\tSystem.out.println(\"Bird is eating\");\n\t\t\n\t}", "title": "" }, { "docid": "d5c0cf5c4b30229a95b5c687093be7e8", "score": "0.65339893", "text": "@Override\n\tpublic void eat(String me) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "a89658dd8142accd0c2b91941df46c8b", "score": "0.6528481", "text": "public void eat() {\n System.out.println(\"Eating grass\");\n }", "title": "" }, { "docid": "62a0dd617e562af89a875a4d1777b976", "score": "0.6527604", "text": "@Override\r\n\t\t\tvoid eat() {\n\t\t\t\tSystem.out.println(\"Tiger will eat\");\r\n\t\t\t}", "title": "" }, { "docid": "39f8eab4b388638801a93c4e854f751b", "score": "0.6522817", "text": "public void eat (){\n System.out.println(\"eat with spon!!\");\n }", "title": "" }, { "docid": "4eebda0cc940c8b09690ee8a3ab257e7", "score": "0.6517974", "text": "@Override\n\tpublic void eat() {\n\t\tSystem.out.println(\"经常去偷吃东西!\");\n\t}", "title": "" }, { "docid": "52f715784d5bb593867d9dc4c2ff1949", "score": "0.6514532", "text": "public void eat(){\n\tSystem.out.println(\"i am the eat methods\");\n\t\n}", "title": "" }, { "docid": "1874a39f79274a3598c01a3ebec8b291", "score": "0.65072864", "text": "@Override\r\n\tpublic void eat() {\n\t\tSystem.out.println(\"狗吃肉。。。\");\r\n\t}", "title": "" }, { "docid": "2032c967772cf50fc0c857b8a26c53d0", "score": "0.64833504", "text": "public static void function(Animal a){\n\t\ta.eat();\n\t}", "title": "" }, { "docid": "5b5b7c565b6ec66a55cf1af8a9dd207d", "score": "0.6481836", "text": "public interface Food\n{\n void feed(Amagotchi obj);\n}", "title": "" }, { "docid": "29e98d8ad9320f66f5120c03e0741fcc", "score": "0.64763474", "text": "public void eat() \r\n\t{ \r\n\t\tSystem.out.println( \r\n\t\t\t\"This bird has eaten\"); \r\n\t}", "title": "" }, { "docid": "6fac489a2f40b3e7106a947d722756d8", "score": "0.6447183", "text": "@Override\n public void eat() {\n System.out.println(\"**Overwrote Animal EAT** --> DOG.EAT()\");\n chew();\n super.eat();\n }", "title": "" }, { "docid": "eaeac4f524ed82b3a1770d4752fd64e1", "score": "0.6445867", "text": "@Override\r\n\t\t\tvoid eat() {\n\t\t\t\tSystem.out.println(\"Lion will eat\");\r\n\t\t\t}", "title": "" }, { "docid": "706fc1cc13e807b9a200804a01bcc35b", "score": "0.64445764", "text": "public void feedRobot(int food) {\n\t\tSystem.out.println(\"You give \" + getName() + \" the food\");\n\t\tif (food == getFaveFood()) {\n\t\t\tSystem.out.println(getName() + \" happily scarfs down the food.\");\n\t\t\tSystem.out.println(\"It lets out a series of cheerful beeps.\");\n\t\t\tsetBattery(getBattery() + 10);\n\t\t\tsetHappiness(getHappiness() + 15);\n\t\t\tsetHealth(getHealth() + 15);\n\t\t} else {\n\t\t\tSystem.out.println(getName() + \" chows down. It will accept this as sustinance, it seems.\");\n\t\t\tsetBattery(getBattery() + 10);\n\t\t\tsetHappiness(getHappiness() + 5);\n\t\t\tsetHealth(getHealth() + 5);\n\t\t}\n\t}", "title": "" }, { "docid": "166c501d329da85d0354907b3f58c97a", "score": "0.6413334", "text": "@Override\n\tpublic void eat() throws ChokingOnMeDinnerException {\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "46e8089caa0bb48a56434417866c9f4d", "score": "0.6412562", "text": "public void consumeFood(int b)\n {\n food = food - b; \n }", "title": "" }, { "docid": "947e028593696105bd01401610810866", "score": "0.6408788", "text": "public void addFood(int a)\n {\n food = food + a;\n }", "title": "" }, { "docid": "b77865da300e04d7f08ce2f3a42d03f4", "score": "0.6385793", "text": "public void AddAllMeats () {\r\n String[] foods = {\"Beef\", \"Chicken\", \"Shrimp\", \"Salmon\", \"Tuna\"};\r\n FoodFactory(foods);\r\n }", "title": "" }, { "docid": "03c3f8cd44c2d664af27bd6eef44d28d", "score": "0.63847774", "text": "public void eat() {\n\t\t\n\t\tSystem.out.println((name+\" the \"+type+\" eats bone\"));\n\t\t\t\n\t}", "title": "" }, { "docid": "1264c7f1f618717869276f382a0acd0b", "score": "0.6373647", "text": "public void newFood(){\n Point p = randomFoodSpawnPoint();\n\n Random r = new Random();\n int foodIndex = r.nextInt(6)+1;\n\n switch (foodIndex){\n case 1:\n foodList.add(new Burger(context,p));\n break;\n case 2:\n foodList.add(new FriedEgg(context,p));\n break;\n case 3:\n foodList.add(new HotDog(context,p));\n break;\n case 4:\n foodList.add(new Onion(context,p));\n break;\n case 5:\n foodList.add(new Tomato(context,p));\n break;\n case 6:\n foodList.add(new Watermelon(context,p));\n break;\n }\n }", "title": "" }, { "docid": "644739a249674d199f8ea682c81e55a9", "score": "0.6371334", "text": "public double eat(double desiredFood) {\n if (!dead) {\n if (food >= desiredFood) {\n food -= desiredFood;\n updateDiameter();\n return desiredFood;\n } else {\n game.addPlantToAddQueue(new Plant(otherPlants, game));\n dead = true;\n double tempFood = food;\n food = 0;\n updateDiameter();\n return tempFood;\n }\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "c3d0953ed7eaf5bc54f9393e1f586e69", "score": "0.6366371", "text": "public static void eatPlant() {\n\t}", "title": "" }, { "docid": "fa383d2a6bbfa5320bf92ba29f76545e", "score": "0.63466835", "text": "Animal morningRoutine(Animal pet);", "title": "" }, { "docid": "29fed064225f3c360dc51f8be08e128f", "score": "0.6341591", "text": "@Override\n public void eat(){\n System.out.println(\"Le lion a bien mangé du viande.\");\n faim = false;\n }", "title": "" }, { "docid": "b42128ecbedbf197f4f31273ed2cc99a", "score": "0.63358754", "text": "@Override\r\n\tpublic Food getFood() {\n\t\treturn new Apple();\r\n\t}", "title": "" }, { "docid": "c7f81edd1eae5a2e374552b9c75685ee", "score": "0.63283414", "text": "void increaseFood(int n) {\r\n food += n;\r\n }", "title": "" }, { "docid": "712daf2d2b6e6e93187a1189aa17906b", "score": "0.6327743", "text": "Animal eveningRoutine(Animal pet);", "title": "" }, { "docid": "1afb8ed07ec76ebfdc8c824d245afe61", "score": "0.6318523", "text": "public void feed(Player p, Pet pet, Food food){\r\n pet.eat(food);\r\n for (int i = 0;i<p.getFoodItems().size();i++){\r\n if (p.getFoodItems().get(i).getName().equals(food.getName())){\r\n p.getFoodItems().remove(i);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "58517181e7f637995001359db26350c6", "score": "0.6303975", "text": "public String food();", "title": "" }, { "docid": "cee9e3ad800c8598f17c5b2a8c6f3ea8", "score": "0.6274791", "text": "public void dance(Animal animal);", "title": "" }, { "docid": "9291b35db0927858203e7848ce23b025", "score": "0.6253456", "text": "public abstract Location findFood();", "title": "" }, { "docid": "f4cbf74b3a99f428899031d2072f1eb9", "score": "0.62242454", "text": "@Override\n\tpublic void eat() {\n\t\tLog.i(\"BlackHuman\", \"eat\");\n\t}", "title": "" }, { "docid": "e305478e73d631b3b7a0192cad6a6070", "score": "0.6219879", "text": "public Food(String name, Meal meal, int calories, int carbs, int fat, int protein) {\n super(name);\n this.meal = meal;\n this.calories = calories;\n this.carbs = carbs;\n this.fat = fat;\n this.protein = protein;\n }", "title": "" }, { "docid": "ef207e55c690522a2df56e09c27e06c1", "score": "0.62080085", "text": "@Override\n\tpublic void msgHereIsYourFood() {\n\t\t\n\t}", "title": "" }, { "docid": "a057293ce763f43710498b9d808e45c2", "score": "0.6196772", "text": "@Override\n\tpublic String eat() {\n\t\treturn \"Me alimento del Sol, pero también puedo comer la comida Terrícola\";\n\t}", "title": "" }, { "docid": "715d4a5dd2965cd75e46e3f2922d4b13", "score": "0.6191248", "text": "public void act()\r\t{\r\t\t// Gazelle acts as a generic Animal would act, \r\t\t// meaning random movement\r\t\tsuper.act();\r\t}\r\t\r\t/**\r\t*\tMethod returns true if obj is a type that can eat \r\t*\tthis Animal, returns false otherwise\r\t*\t@param\tobj\tobject to be evaluated\r\t*\t@return true if obj can eat this Animal, false otherwise\r\t*/\r\tpublic boolean canItEatMe(Animal obj)\r\t{\r\t\tif(obj instanceof Predator)\r\t\t\treturn true;\r\t\treturn false;\r\t}\r\t\t\t\r\t\t\r\t/**\r\t*\tMethod returns the String form of the Animal's\r\t*\tspecies, in this case \"Gazelle\"\r\t*\t@return\tthe String \"Gazelle\"\r\t*/\r\tpublic String getSpecies()\r\t{\r\t\treturn \"Gazelle\";\r\t}\r\t\r}", "title": "" }, { "docid": "deac58dd2ef9cd410f14e11350977893", "score": "0.61849654", "text": "public boolean containsFood();", "title": "" }, { "docid": "34e7f3bf973d9324fea0b8919f1e2289", "score": "0.6183707", "text": "@Override\r\n\t\t\tpublic void foodType() {\n\t\t\t\tSystem.out.println(\"Eats Veg or Non Veg\");\r\n\t\t\t}", "title": "" }, { "docid": "d9a6c1ffcb5585c26703789a68001540", "score": "0.6173109", "text": "public void update(Food f) {\n\r\n\t}", "title": "" }, { "docid": "ec1c78474cc0de496a814af77e474527", "score": "0.616594", "text": "public Food(String name) {\n\n this.name = name;\n }", "title": "" }, { "docid": "11b412fcb1c6559355100767f6add82e", "score": "0.616524", "text": "protected void eat(double fillEnergy){\nenergy += fillEnergy;\n }", "title": "" }, { "docid": "0b042f2503d4217bf470f70b489b51a0", "score": "0.6157708", "text": "@POST\n @Timed\n @Path(\"/feed\")\n public synchronized Saying feed(@QueryParam(\"food\") Food food) {\n\n Saying eatingResponse = null;\n\n // tests if food weight is BELOW minimum permissible value, but no CAP!\n // if ((food.getWeight().compareTo(new BigDecimal(0.00)) == 1) && (food.getWeight().compareTo(BabyResource.DEFAULT_MEAL_WEIGHT_IN_POUNDS) == -1)) {\n if ((food.getWeight().compareTo(BabyResource.DEFAULT_MEAL_WEIGHT_IN_POUNDS) == -1)) {\n this.weightInPounds = this.weightInPounds.add(food.getWeight());\n this.latestSaying = new Saying(countSayings.incrementAndGet(), BabyResource.HAPPY_EAT_SAYING);\n } else {\n this.latestSaying = new Saying(countSayings.incrementAndGet(), BabyResource.UNHAPPY_EAT_SAYING);\n }\n\n return this.latestSaying;\n }", "title": "" }, { "docid": "be13aa9b44e84919f87d2425f2a34ea3", "score": "0.6139391", "text": "@Override\r\n\tpublic String eat() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "5137387c7796b5f7bb34ca66d905692d", "score": "0.61372894", "text": "private void eatFruit(List<? extends Apple> fruits) {\n fruits.forEach(fruit -> System.out.println(\"eat \" + fruit.getPulp()));\n }", "title": "" }, { "docid": "b4431e63672961842932968fb576208a", "score": "0.6122428", "text": "public void act()\n {\n deslizar();\n eat();\n Ganar();\n }", "title": "" }, { "docid": "e2bee3e1e6092d5d7aaa470c245ab649", "score": "0.6110337", "text": "@Override\n\tpublic int onLoop() {\n\t\tif (!getInventory().contains(food)){\n\t\t\tbank();\n\t\t} else {\n\t\t\t//check if we're low life and need to eat immediately\n\t\t\tif (getSkills().getBoostedLevels(Skill.HITPOINTS) < 10){\n\t\t\t\tfood.interact();\n\t\t\t} else {\n\t\t\t\t//if we need to reset (time is up, and crabs aren't attacking us anymore), reset\n\t\t\t\tif ((resetTimer.elapsed() > resetTime) && !(getLocalPlayer().isInCombat())){\n\t\t\t\t\treset();\n\t\t\t\t} else {\n\t\t\t\t//if we don't need to reset, check if we need to eat\n\t\t\t\t\tif ((foodTimer.elapsed() > eatTime) && \n\t\t\t\t\t\t\tgetSkills().getBoostedLevels(Skill.HITPOINTS) < (getSkills().getRealLevel(Skill.HITPOINTS) - hpDiff)){\n\t\t\t\t\t\teat();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//if we don't need to eat, everything is fine, sleep\n\t\t\t\t\t\tgetMouse().moveMouseOutsideScreen();\n\t\t\t\t\t\tsleep(500);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn 600;\n\t}", "title": "" }, { "docid": "c6e8dec83e7b9ed6a4a1435266170ad3", "score": "0.60900366", "text": "@Override\r\n\tpublic void eat() {\n\t\tSystem.out.println(\"我们都喜欢吃东西。。。。。。。\");\r\n\t}", "title": "" }, { "docid": "8c1e54fda80218b581e198aa90e23fec", "score": "0.6086389", "text": "@Override\n\tpublic void eat() {\n\t\tSystem.out.print(\"猫吃肉了======\");\n\t\t\n\t}", "title": "" } ]
a45ad5d10990c1d890796c54420b7bac
Created by tlh on 2016/7/29.
[ { "docid": "429b1607db5d90cd25d208bd02f4a506", "score": "0.0", "text": "public interface MvpView {\n}", "title": "" } ]
[ { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.61493814", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.60248137", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "a21047eaafcc2c1ada6326bfbe33e0ad", "score": "0.5910944", "text": "@Override\r\n public void alquilar() {\n }", "title": "" }, { "docid": "bde53ee3de9072b04cd122133e6162a1", "score": "0.5897906", "text": "public void soigner() {\n\t\t\r\n\t}", "title": "" }, { "docid": "04c0a4c3b41f5112e89f151d02135096", "score": "0.5879721", "text": "private static void auto() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f5fd4f1b89ecbb54b8b64a1b9e40552c", "score": "0.57704234", "text": "protected void mo7431b() {\n }", "title": "" }, { "docid": "f13a29996996a34a710d85285e104a7f", "score": "0.57695335", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5760882", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5760874", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5760874", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5760874", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5760874", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5760874", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5760874", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "90586632a4af36d51003a1554ebef902", "score": "0.57519436", "text": "public void mo24205Oz() {\n }", "title": "" }, { "docid": "34b43810a805e0d48661629f62b35f2b", "score": "0.57357264", "text": "@Override\r\n\tpublic void 위험물회피() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.57354367", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.5734128", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "b5dec8709a9a146ca6e5962661476057", "score": "0.5709965", "text": "private Semitones() {\n \n }", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.56860507", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "73505425d75fccf0aaca07c596941abd", "score": "0.56498116", "text": "static private void herd() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56481075", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56481075", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56481075", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56481075", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56481075", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.56481075", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.56090945", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "86ed6713ba8e5a54203c31fb8f461898", "score": "0.56015277", "text": "protected boolean func_70814_o() { return true; }", "title": "" }, { "docid": "c18c3127184f8abd7be145ddb9d4c3e6", "score": "0.56007284", "text": "@Override\r\n\tpublic void 온도내리기() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c5fa2315669c0925b60762f7cca5f0f6", "score": "0.55984676", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.55746216", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "c2b1e81a080804916a788413031e651f", "score": "0.5565078", "text": "public void mo39596a() {\n }", "title": "" }, { "docid": "c2b1e81a080804916a788413031e651f", "score": "0.5565078", "text": "public void mo39596a() {\n }", "title": "" }, { "docid": "96950fcd6668067c4f88772215663192", "score": "0.5564611", "text": "private void init() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.556293", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "40a41a107fa03a270a78b03d0bcf910d", "score": "0.55568963", "text": "private void ergebnisAuswerten() {\n\n\t}", "title": "" }, { "docid": "28fcdb48fa0b9890f9666ae29ef02f55", "score": "0.554195", "text": "private void init() {\n\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.55346346", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.553094", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "1d4f71b71db1c79dfd50a9e0bfb7c928", "score": "0.5523915", "text": "@Test\n\t\tpublic void testBugOne() {\n\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.551968", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.551968", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.551968", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.55180764", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.54978067", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.54978067", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.54978067", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.54978067", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.5493319", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fdbf96893589fef5cdd1a8fe92e98938", "score": "0.54899055", "text": "@Override\n\tpublic void enfria() {\n\n\t}", "title": "" }, { "docid": "3fb97b46c147b19f8180197325c66d34", "score": "0.5488509", "text": "@Override\n public void quite() {\n }", "title": "" }, { "docid": "6827ba40809e6f9bad9a043036edaa04", "score": "0.5487668", "text": "@Override\r\n\tpublic void dormir() {\n\t}", "title": "" }, { "docid": "4ff7fd5d2a0aebc561e81557b528262a", "score": "0.5477593", "text": "@Override\n\tprotected void initialize() {\n\n }", "title": "" }, { "docid": "ce01e16cbc1fc0a29d28a4365b63f79d", "score": "0.5476731", "text": "@Override\n\tprotected void specialFuntion() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.547572", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.547572", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.547572", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.54750735", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.54750735", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "556495e35d508ac961dae051dd40b377", "score": "0.54717016", "text": "@Override\n\tpublic void afficher() {\n\t\t\n\t}", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5463878", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "089be79d90be02605e37d2a48b09e194", "score": "0.5457738", "text": "@Override\n\tpublic void gril() {\n\n\t}", "title": "" }, { "docid": "8e056894cd061aea767d71a9c1b43d97", "score": "0.54537755", "text": "@Override\n\tpublic void init(){\n\t}", "title": "" }, { "docid": "9ee6be05232928533401d708d518b6ed", "score": "0.54466873", "text": "@Override\r\n\t\t\tpublic void enginetype() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.5439177", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "3b85481494f0d9080d2372972f6e969b", "score": "0.5436874", "text": "public void metodo24hs() {\n\r\n\t}", "title": "" }, { "docid": "6ba5badabb09f55bd648ba4977358e14", "score": "0.54341835", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "096eb77080c8c192fe461650f49ca14b", "score": "0.54335546", "text": "@Override\r\n public void catering() {\r\n\r\n }", "title": "" }, { "docid": "c52abf264dc130278399a6a822295dca", "score": "0.54326135", "text": "@Override\n\t\t\tpublic void e() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.54259175", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "f448e47f2da25727e964a3718545f012", "score": "0.54257375", "text": "public final void mo93547c() {\n }", "title": "" }, { "docid": "c937f9289f415cfdd7aefc5d621d0867", "score": "0.5421418", "text": "@Override\n protected void inicializar() {\n }", "title": "" }, { "docid": "6575bb2e40b92b7e378d5d71b5551f39", "score": "0.5414743", "text": "public void mo383a() {\n }", "title": "" }, { "docid": "296d9735cfb810561e2eb82c473c8eee", "score": "0.5413626", "text": "private void init(){ \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.54133767", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.54047066", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "81488a3212e9004be8808ba15e91f1a5", "score": "0.5400307", "text": "public final void mo93546b() {\n }", "title": "" }, { "docid": "64d7e7aa6171a58c9037c52f7f0f1382", "score": "0.5394101", "text": "public final void mo74769c() {\n }", "title": "" }, { "docid": "c58785fe9d86eba83764fba603d8ab46", "score": "0.53838456", "text": "@Override\n\tpublic void strafeL() {\n\t\t\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53822255", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53822255", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53822255", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53822255", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53822255", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53822255", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53822255", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.53822255", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "c387be8fe936bea8d505f3a779d6ba15", "score": "0.5369182", "text": "@Override\n\tpublic void actualise() {\n\t\t\n\t}", "title": "" }, { "docid": "547c78689e54ebf8a887c5f60840ef15", "score": "0.53683645", "text": "public static void initate() {\n\n\t}", "title": "" }, { "docid": "4c3b3d975dd112cd0977aeae3ca50081", "score": "0.53673357", "text": "public void mo12930a() {\n }", "title": "" }, { "docid": "6fdee6df859d02229649e9693fa28697", "score": "0.5357875", "text": "public final void mo74769c() {\n }", "title": "" }, { "docid": "b8a933b513450a6a7874821e414066eb", "score": "0.53518724", "text": "private void init() {\n\t}", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.53475577", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f275faa96cd04ca198a5a2d01888719f", "score": "0.53475577", "text": "@Override\n public void initialize() {\n \n }", "title": "" }, { "docid": "f98329c4ce112f2ebcf93e4b478576a0", "score": "0.5345321", "text": "@Override\r\n\tpublic void work4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c7e46898326a8035a77f0ef2c6d699de", "score": "0.5344017", "text": "public void mo54944s() {\n }", "title": "" }, { "docid": "6cfde2be0b51f55a421cdc3e28609c66", "score": "0.53431433", "text": "@Override\n\tprotected void salario() {\n\t\t\n\t}", "title": "" }, { "docid": "30c236da9912ee76f7962e7da2c72b59", "score": "0.5340569", "text": "@Override\n\tpublic void chante() {\n\t\t\n\t}", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.53365767", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "6f28b858823f2e868517ee6030db6fc1", "score": "0.53331137", "text": "private Kontobewegung() {}", "title": "" } ]
1bfb2e4aac96230e06031149885161f1
WHEN THE PHILOSOPHER IS THINKING HAVE THEM SLEEP FOR A RANDOM PERIOD OF TIME
[ { "docid": "dfe18840a6642dd263030f788a6fae74", "score": "0.7786192", "text": "private void thinking(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "title": "" } ]
[ { "docid": "ab3fa7a68fd80a0927007cb645e94652", "score": "0.74569273", "text": "private void eating(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "0dd659b63e470fbfaf107a831a772d70", "score": "0.7202429", "text": "public static int randomSleepTime() {\n return ThreadLocalRandom.current().nextInt(2000);\n }", "title": "" }, { "docid": "a435b192a664825295bf633eccd21d8f", "score": "0.71908605", "text": "public static void randomDelay() {\n\n Random random = new Random();\n int delay = 500 + random.nextInt(2000);\n try {\n sleep(delay);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "5a8bebaf10a2242b16fa5655d358192e", "score": "0.69716316", "text": "@Override\r\n\tpublic void doTimeStep() {\n\t\tthis.run(Critter.getRandomInt(8));\r\n\t}", "title": "" }, { "docid": "c711b3bc5e739dac4a0572ee0a138124", "score": "0.67810535", "text": "private void sleepMilliseconds(int time) {\n int multipliedParam = (int) (Math.random() * time + 1);\n\n try {\n TimeUnit.MILLISECONDS.sleep(multipliedParam);\n Log.v(\"DLASync.sleep\", \" sleep \" + multipliedParam + \" milliseconds...\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "3085172ae5c02cd47c6d698727b955e9", "score": "0.6763983", "text": "long random(long ws) {\r\n\t\treturn (System.currentTimeMillis() % ws);\r\n\t}", "title": "" }, { "docid": "be58e2fa0d5467694c9c23681fa01a26", "score": "0.67210144", "text": "private void timeSync() throws InterruptedException {\n long realTimeDateMs = currentTimeMs - System.currentTimeMillis();\n long sleepTime = periodMs + realTimeDateMs + randomJitter();\n\n if (slowdownFactor != 1) {\n sleepTime = periodMs * slowdownFactor;\n }\n\n if (sleepTime > 0) {\n Thread.sleep(sleepTime);\n }\n }", "title": "" }, { "docid": "347ff32d25c92e98a34e6fb38cc7a65f", "score": "0.6556484", "text": "public static int getRandomEventChance() {\r\n\t\treturn 10; // 1-in\r\n\t}", "title": "" }, { "docid": "5c5fa90deb598df832a68c543428a97e", "score": "0.6517419", "text": "private long sleepForRandomAmountOfTime() throws InterruptedException {\n final long backOffMillis = zeroTo(MAX_BACK_OFF_MILLIS);\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"Backing off for \" + backOffMillis + \"ms\");\n }\n Thread.sleep(backOffMillis);\n return backOffMillis;\n }", "title": "" }, { "docid": "6eb6f68b0d8afa79f0d89cc757073ee5", "score": "0.65162253", "text": "private static void delay() throws InterruptedException {\n\t\tTimeUnit.MILLISECONDS.sleep((long) (minDelay + (long)(Math.random() * ((maxDelay - minDelay) + 1))));\n\t}", "title": "" }, { "docid": "6824c018ad439418ff30461381b9d9f6", "score": "0.64531076", "text": "public static long randomTime() {\n return (random.nextInt(11) + 25)*1000;\n }", "title": "" }, { "docid": "be3a3a32db747bdc1331c8dcd39d24d7", "score": "0.6448979", "text": "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "title": "" }, { "docid": "088eb74db0aec6a9ebc70e68e5ff45e9", "score": "0.64468396", "text": "@Override\n\tpublic void sleeps() {\n\t\t\n\t}", "title": "" }, { "docid": "cd5bc8e3385074f5be4c4bf0d76e96a6", "score": "0.64445245", "text": "private void walk() throws MyException{\n try{\n Thread.sleep((long)(1+300*Math.random()));\n }catch(InterruptedException e){\n throw new MyException(\"Error: Not walking.\");\n }\n }", "title": "" }, { "docid": "db6eb2a0319e271574ba5b0fd3540c66", "score": "0.6435088", "text": "public void delay(){\n try {\n Thread.sleep((long) ((samplingTime * simulationSpeed.factor)* 1000));\n } catch (InterruptedException e) {\n started = false;\n }\n }", "title": "" }, { "docid": "9af7170edcac3a969225983ee1c863e0", "score": "0.64145714", "text": "private void randomTest(){\n\n int time = 5 ;\n\n test(time) ;\n }", "title": "" }, { "docid": "bb8ba9f8babae9006741801880423bec", "score": "0.6396182", "text": "public void delay(long waitAmount){\r\n long time = System.currentTimeMillis();\r\n while ((time+waitAmount)>=System.currentTimeMillis()){ \r\n //nothing\r\n }\r\n }", "title": "" }, { "docid": "4473145b730701e4c36e43115c082b23", "score": "0.63878244", "text": "@Override\n public int getSleepTime() {\n return this.sleepTime;\n }", "title": "" }, { "docid": "fde30de383c0f941148f19f483d21fcf", "score": "0.63790077", "text": "@Override\n\tpublic void run() {\n\n\t\tdouble d = Math.random() * 299;\n\t\tlong val = (long) d;\n\n\t\ttry {\n\t\t\tThread.sleep(val);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (Thread.currentThread().getName().equals(\"one\")) {\n\t\t\tSystem.out.println(Thread.currentThread().getName()\n\t\t\t\t\t+ \" sleep time: \" + val);\n\n\t\t} else {\n\t\t\tSystem.out.println(Thread.currentThread().getName()\n\t\t\t\t\t+ \" sleep time: \" + val);\n\t\t}\n\n\t}", "title": "" }, { "docid": "94b648128e328b6bebc0a84b36e769f5", "score": "0.6364851", "text": "private void simulateFailOrSleep() throws Exception {\n if ((failProbability != null) && (sleepProbability != null) && (sleepMilisec != null)) {\n int number = new Random().nextInt(100);\n if (number < failProbability) throw new Exception(\"Simulated Exception in Customer Service\");\n else {\n number = new Random().nextInt(100);\n if (number < sleepProbability) Thread.sleep(sleepMilisec);\n }\n }\n }", "title": "" }, { "docid": "f11b6675de5a61d5a07a08004917659b", "score": "0.63191557", "text": "public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}", "title": "" }, { "docid": "d515e0a8a8b82867dda7c02142c31ad3", "score": "0.6288257", "text": "@Override\n\tpublic Boolean call() throws Exception {\n\t\tRandom rand = new Random();\n\t\tint seconds = rand.nextInt(6);\n\t\tif (seconds == 0) {\n\t\t\t// pretend there was an error\n\t\t\tthrow new RuntimeException(\"I love the new thread stuff!!! :)\");\n\t\t}\n\t\ttry {\n\t\t\tThread.sleep(seconds * 100);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t// even = true, odd = false\n\t\treturn seconds % 2 == 0;\n\t}", "title": "" }, { "docid": "6413b29ccb4a1f809612b459aba504f6", "score": "0.6287423", "text": "@Override\n public void run() {\n if (random.nextInt(10) == 0)\n addPowerUp(random.nextInt(256));\n }", "title": "" }, { "docid": "6567389779792543221601d8a93fd755", "score": "0.6275446", "text": "public void randomSleep(String name, String surname) throws InterruptedException {\n\t\tlong randomSleepDuration = (long) (500 + Math.random() * 700);\r\n\t\tSystem.out.printf(name+\" Sleeping for %d ms ..\\n\", randomSleepDuration);\r\n\t\tThread.sleep(randomSleepDuration);\r\n\t\t}", "title": "" }, { "docid": "7e590682a6caf271af5b7f4cf7b64498", "score": "0.6249472", "text": "private void sleep() {\n\t\tSystem.out.println(\"Ape sleeping\");\n\t}", "title": "" }, { "docid": "af2ad1d06cc2ac3751e80e178048865a", "score": "0.6223829", "text": "private void changeDelay() {\n delay = ((int) (Math.random() * 10000) + 1000) / MAX_FRAMES;\n }", "title": "" }, { "docid": "9ea8b98e86b62d74714b7d6ef064eed8", "score": "0.62188464", "text": "public void tick() {\r\n\t\thunger += (10 + generateRandom());\r\n\t\tthirst += (10 + generateRandom());\r\n\t\ttemp -= (1 + generateRandom());\r\n\t\tboredom += (1 + generateRandom());\r\n\t\tcageMessiness += (1 + generateRandom());\r\n\t}", "title": "" }, { "docid": "9a34a87c34c86f83649a21d0cb2401be", "score": "0.6212742", "text": "public void sleep() {\n \t\thealth = maxHealthModifier;\n \t\ttoxicity = 0;\n \t}", "title": "" }, { "docid": "5fc5e0477a25a9796c3c53e1565aceca", "score": "0.6199529", "text": "void sleep()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2b6eae8af36a5f34e1e4c2dcfd0b0f94", "score": "0.61959136", "text": "private void doSomeThingRepeat() {\n\t\t\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\tint mHourNow = 0, mMinuteNow = 0;\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\t\tmHourNow = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\tmMinuteNow= c.get(Calendar.MINUTE);\n\t\t\t\ttime = prefs.getString(\"time\", \"\");\n\t\t\t\tString mHour = time.substring(0, 2);\n\t\t\t\tString mMinute = time.substring(3, 5) ;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint mh = Integer.parseInt(mHour);\n\t\t\t\tint mm = Integer.parseInt(mMinute);\n\t\t\t\t\t\n\t\t\t\tif (mHourNow == mh && mMinuteNow == mm) {\n\t\t\t\t\tplayMediaAlarm();\n\t\t\t\t}\n\t\t\t\t\tLog.d(\"Myservice-doSomeThingRepeat\", mHourNow +\"h\"+ mMinuteNow + \"&&\" +mHour +\"h\" + mMinute);\n\t\t\t\t\n\t\t\t}\n\t\t}, 0, UPDATE);\n\t}", "title": "" }, { "docid": "df23dbe4b681544c3756edff43a6df34", "score": "0.616339", "text": "public static int sleep(final long ms) {\n if (ms <= 0) {\n Thread.yield();\n return 0;\n }\n final long s = System.nanoTime();\n try {\n Thread.sleep((long) (ms * Random.nextDouble(VARIANCE[0], VARIANCE[1])));\n } catch (final InterruptedException ignored) {\n }\n return (int) ((System.nanoTime() - s) / 1000000L);\n }", "title": "" }, { "docid": "2ac3509cced1003164fcb31ea3bb000a", "score": "0.61633027", "text": "protected boolean performActions() {\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n // This is simulation, so we will not handle it\n }\n\n return Math.rint(Math.random()) % 20 != 0;\n }", "title": "" }, { "docid": "6540e60860b6fdaddb52575658498cff", "score": "0.6155671", "text": "public void doTimeStep() {\r\n\t\twalk(getRandomInt(8));\r\n\t\tif (getEnergy() < 6 * Params.min_reproduce_energy && getEnergy() > Params.min_reproduce_energy) {\r\n\t\t\tCritter1 child = new Critter1();\r\n\t\t\treproduce(child, getRandomInt(8));\r\n\t\t\tnumberSpawned += 1;\r\n\t\t}else if(getEnergy() < Params.min_reproduce_energy) {\r\n\t\t\treturn;\r\n\t\t}else {\r\n\t\t\tCritter1 child1 = new Critter1();\r\n\t\t\treproduce(child1, getRandomInt(8));\r\n\t\t\tCritter1 child2 = new Critter1();\r\n\t\t\treproduce(child2, getRandomInt(8));\r\n\t\t\tnumberSpawned += 2;\r\n\t\t}\t\r\n\t}", "title": "" }, { "docid": "6d8d786501be2ce9b655ddd4adc3ceb9", "score": "0.61521024", "text": "protected void sleep() {\n\t\tSystem.out.println(\"human sleep\");\n\t}", "title": "" }, { "docid": "a63497226bd9310ba28bc797341ccf3c", "score": "0.6138347", "text": "public abstract int delay();", "title": "" }, { "docid": "acde66b41e55adc92c3116b56eba9469", "score": "0.61262083", "text": "@Override\r\n\t\tpublic void run() {\n\t\t\ttry {\r\n\t\t\t\tChrono chrono = ChronoFactory.getInstance().getChrono();\r\n\t\t\t\tname=name+\"_\"+chrono.getId();\r\n\t\t\t\tlong startTime = Double.valueOf(Math.random()*1000).longValue();\r\n\t\t\t\tSystem.out.println(name+\" : startTime=\"+startTime);\r\n\t\t\t\tThread.sleep(startTime);\r\n\t\t\t\tchrono.start();\r\n\t\t\t\tThread.sleep(500);\r\n\t\t\t\tchrono.stop();\r\n\t\t\t\tSystem.out.println(name+\" : Duration=\"+chrono.getDuration());\r\n\t\t\t\tChronoFactory.getInstance().returnChrono(chrono);\r\n\t\t\t} catch (NoSuchElementException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IllegalStateException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "cd5f137687b6b2d30685090f945ed713", "score": "0.61145836", "text": "private void ai_think() {\n try {\n Thread.sleep(SLEEP_TIME);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "55a0d022cfacf86b136b611eaf03b766", "score": "0.6108262", "text": "private long goToSleep(long lastSleepTime)\n\t{\n\t\tlong diff, sleepTime;\n\t\t\n\t\tdiff = System.currentTimeMillis() - lastSleepTime;\n sleepTime = PERIOD - lastSleepTime;\n if(sleepTime <= 0)\n sleepTime = 5;\n\n try \n {\n Thread.sleep(sleepTime);\n }\n catch(InterruptedException e){}\n\n return System.currentTimeMillis();\n\t}", "title": "" }, { "docid": "9341d728e189d5ca9562e1bd6d66bba3", "score": "0.6106013", "text": "@Override\n\tpublic boolean isSleeping() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8d5e6120616b63a081a15254ece42fdb", "score": "0.6103408", "text": "private void schedulerSleep() {\n\n\t\ttry {\n\n\t\t\tThread.sleep(timeSlice);\n\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t;\n\n\t}", "title": "" }, { "docid": "febf6ca745880659bd39932da29135ae", "score": "0.6101381", "text": "public void testSleep() {\n System.out.println(\"sleep\");\n long thinkTime = 0L;\n IOUtil.sleep(thinkTime);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "af320b82785004ee6d85910b6fe4ce10", "score": "0.6086752", "text": "private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "587ed7bbb7767452769e522a4067f5a6", "score": "0.607958", "text": "private void randomDelay(double min, double max) {\n\t\ttry {\n\t\t\tdouble delaySecs = rnd.nextDouble() * (max - min) + min;\n\n\t\t\tThread.sleep((long) (delaySecs * 1000));\n\t\t} catch (InterruptedException e) {\n\t\t\t// ignore\n\t\t}\n\t}", "title": "" }, { "docid": "a0050df7c0273097c3650d5465d4e327", "score": "0.60777485", "text": "void sleep();", "title": "" }, { "docid": "a0050df7c0273097c3650d5465d4e327", "score": "0.60777485", "text": "void sleep();", "title": "" }, { "docid": "c4f35594849f2593cb66d912527ddbd3", "score": "0.6076734", "text": "private long getSleepTime()\n {\n return sleepTime;\n }", "title": "" }, { "docid": "51a6ed35d5dff0bc2ea68313d1957ec3", "score": "0.60758233", "text": "public void sleep(){\n System.out.println(\"Human Sleeps\");\n }", "title": "" }, { "docid": "422af56bc2ab51b822ee892f151df30c", "score": "0.6065771", "text": "private void sleepByScheduleTime() throws InterruptedException\n\t{\n\t\tjava.util.Calendar calendar = java.util.Calendar.getInstance();\n\t\tcalendar.setTime(new java.util.Date(System.currentTimeMillis()));\n\t\tint currHour = calendar.get(calendar.HOUR_OF_DAY);\n\t\tif ((24 - currHour) * 60 < 2 * FtpData.SCHEDULE_TIME)\n\t\t{\n\t\t\tsleep((FtpData.SCHEDULE_TIME + 1) * 60000); // 00h:01\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsleep(FtpData.SCHEDULE_TIME * 60000); // n * minutes;\n\t\t}\n\t}", "title": "" }, { "docid": "6680283efe0df517dac20fe4af2f940f", "score": "0.604145", "text": "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "title": "" }, { "docid": "76220c7d25bb8ce620a32304d1f120f8", "score": "0.60184664", "text": "@Override\n\tpublic void doTimeStep() {\n\t\tint activity = Critter.getRandomInt(3);\n\t\tif(activity == 0) {\n\t\t\twalk(Critter.getRandomInt(8));\n\t\t\tthis.moveFlag = true;\n\t\t}\n\t\telse if(activity == 1) {\t\t\t\t\n\t\t\trun(Critter.getRandomInt(8));\n\t\t\tthis.moveFlag = true;\n\t\t}\n\t\telse if(this.getEnergy() >= Params.min_reproduce_energy) {\n\t\t\tCritter4 egg = new Critter4();\n\t\t\tthis.reproduce(egg,Critter.getRandomInt(8));\n\t\t}\n\t\telse {\n\t\t}\n\t}", "title": "" }, { "docid": "31b3c597a3fe35deafa607c3df8bf7a5", "score": "0.6010791", "text": "@Test\n public void testDelay() {\n long future = System.currentTimeMillis() + (rc.getRetryDelay() * 1000L);\n\n rc.delay();\n\n assertTrue(System.currentTimeMillis() >= future);\n }", "title": "" }, { "docid": "5834e128f879298b0dcb434754adca92", "score": "0.5997866", "text": "public void sleep() {\n hunger += 1;\n fatigue = 0;\n\n if (isHungry()) {\n mood -= 1;\n } else {\n mood += 1;\n }\n\n if (!muted) {\n System.out.println(\"sleep\\t|\\tzzzZZZ *sheep*\");\n }\n }", "title": "" }, { "docid": "ce1e8020e142cb6f0e399aa8a150aa36", "score": "0.5995745", "text": "private void breathe(int period) {\n\t\ttry {\n\t\t\tThread.sleep(period);\n\t\t} catch (InterruptedException ie) {\n\t\t\tlogger.error(\"interrupted while breathing\", ie);\n\t\t}\n\t}", "title": "" }, { "docid": "62ad0e63ba5176d96b90a2801ae7bf16", "score": "0.5994734", "text": "public static void sleep(int delay) {\n try {\n \t// int delay = (int)(Math.random()*maxDelay);\n Thread.sleep(delay);\n } catch (InterruptedException e) {}\n\t}", "title": "" }, { "docid": "1b1b61c7374f8f27b7cc72cb713210f0", "score": "0.59857756", "text": "@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }", "title": "" }, { "docid": "f9e63336349911c7fd7095f282c855e0", "score": "0.59849226", "text": "private void Perform_SLEEP()\n {\n if (Utils.bit5(get_ioreg(MCUCR)))\n mSleeping = true;\n return;\n }", "title": "" }, { "docid": "5f59a8db7778826621e0fe0af77234e5", "score": "0.5978417", "text": "public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}", "title": "" }, { "docid": "899471fb0f4399f34d77fe2b6c5b1966", "score": "0.5975106", "text": "private void simulateDelay(long millis) {\n try {\n Thread.sleep(millis);\n } catch (InterruptedException ignored) {\n }\n }", "title": "" }, { "docid": "ce53d6173bae28b3cecb1f49368c504f", "score": "0.597492", "text": "@ScheduledMethod(start = 1, interval = 1, priority = 6)\n\tpublic void determineIfEating() {\n\t\tisEating = (RandomHelper.nextIntFromTo(0,100) <= CFG.diningOutPercent());\n\t}", "title": "" }, { "docid": "c50c808c8861d1e1097f623365866bef", "score": "0.59672797", "text": "public static void randomSleep(int maxDelay) {\n \tint delay = (int)(Math.random()*maxDelay);\n \tsleep(delay);\n\t}", "title": "" }, { "docid": "6fcb3f1e29ca43f31aff2d07b7bb010b", "score": "0.5944407", "text": "private void action(String action) {\n\n\t\tSystem.out.println(name + \" is \" + action);\n\n\t\ttry {\n\t\t\tThread.sleep(((long)(Math.random() * 150)));\n\t\t} catch (InterruptedException e) {\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}", "title": "" }, { "docid": "b8726ae1485f2d5d3e57627fb933b44e", "score": "0.5938843", "text": "public static void alarmTest1() {\n\tint durations[] = {1000, 10*1000, 100*1000};\n\tlong t0, t1;\n\tfor (int d : durations) {\n\t t0 = Machine.timer().getTime();\n\t ThreadedKernel.alarm.waitUntil (d);\n\t t1 = Machine.timer().getTime();\n\t System.out.println (\"alarmTest1: waited for \" + (t1 - t0) + \" ticks\");\n\t}\n }", "title": "" }, { "docid": "dd2b1e064389b47ca9d86dcee62e3a57", "score": "0.5937624", "text": "private void travelToAirport()\n {\n try\n { sleep ((long) (1 + 30000 * Math.random ()));\n }\n catch (InterruptedException e) {}\n }", "title": "" }, { "docid": "c3ddf54389157ec847c7f880760c6e52", "score": "0.59337056", "text": "private void GenerateHealth(){\t\t\n\t\t\n\t\t//Update for the health powerup\n\t\tint randGen = rand.nextInt((int)((float)HEALTH_FREQUENCY * RANDOM_DEVIATION));\n\t\trandGen = (rand.nextBoolean()) ?-randGen :randGen;\n\t\t\n\t\t//D.BUG(\"RandGen is: \" + String.valueOf(randGen));\n\t\t\n\t\tif(timeSinceLastSpawns.get(CollectibleType.Health.ordinal()).intValue() > (HEALTH_FREQUENCY + randGen)){\n\t\t\t\n\t\t\t//D.BUG(\"We have Spawned another health collectible after \" + String.valueOf(randGen + HEALTH_FREQUENCY) + \" milliseconds!\");\n\t\t\ttimeSinceLastSpawns.set(CollectibleType.Health.ordinal(), 0);\n\t\t\t\n\t\t\t//SPAWN HEALTH COLLECTIBLE HERE\n\t\t}\n\t}", "title": "" }, { "docid": "42d2f8d968f797c4025b666a6ced00da", "score": "0.59291804", "text": "public long getSleeping() { return sleeping; }", "title": "" }, { "docid": "7044625fdd3e0260a12215c80e5ddd97", "score": "0.59218746", "text": "public boolean launch() {\n\t\treturn ( Math.random() > this.explodProb);\r\n\t\t \r\n\t}", "title": "" }, { "docid": "454b5e754fabb4155f1c563fd4124bbe", "score": "0.59112304", "text": "protected abstract void timed() throws Throwable;", "title": "" }, { "docid": "190fca2946911103a001491c960d1a0e", "score": "0.5888618", "text": "@Test\n public void genRandom() {\n runAndWait(() -> genRandom(10_000, 500, 1), 32, 2000);\n runAndWait(() -> genRandom(10_000, 500, 100), 32, 2000);\n runAndWait(() -> genRandom(250_000, 4000, 50), 4, 5_000);\n }", "title": "" }, { "docid": "8019e17d778ff73ec8e9537787f0a114", "score": "0.5887701", "text": "public double nextServiceTime() {\n return (-1 / mu) * Math.log(1 - randomST.nextDouble());\n }", "title": "" }, { "docid": "233827c17e2f85e3eb227f49e0c9c60d", "score": "0.5886868", "text": "public void generateRandomEvents();", "title": "" }, { "docid": "e67024eef04ea1e1d3ca7d6912dde2a6", "score": "0.5885405", "text": "public static void randomSleep(int minDelay, int maxDelay) {\n \tint delay = (int)(minDelay + Math.random()*(maxDelay-minDelay));\n \tsleep(delay);\n\t}", "title": "" }, { "docid": "1918d3fa6d3532606da76ec3c61b2801", "score": "0.5883756", "text": "public int isSleeping(){\n\t\tif(state == \"SLEEPING\") { return 1; }\n\t\telse\t\t\t\t\t { return 0; }\n\t}", "title": "" }, { "docid": "37aed12c04bb772dfed91b5ec488a71f", "score": "0.5882291", "text": "public void waitSleep(int pTime)\n{\n\n try {Thread.sleep(pTime);} catch (InterruptedException e) { }\n\n}", "title": "" }, { "docid": "07c1f55eece98e74b123433a32c1de63", "score": "0.58810276", "text": "@Override\r\n\tpublic void doTimeStep() {\n\t\tdir = Critter.getRandomInt(8);\r\n\t\t\r\n\t\tnumSteps = Critter.getRandomInt(maxStep) + 1;\r\n\t\t\r\n\t\t//go a random number of steps in that direction\r\n\t\tfor(int i = 0; i < numSteps; i++) {\r\n\t\t\twalk(dir);\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "08798a0e2a7810ea47ac63a2aa5976ed", "score": "0.58806896", "text": "public void testPeriodic()\n\t{\n\t\tif (oi.getGunS() > 0.5)\t{\n\t\t\tdrive.TimerMove(0.3, 0.75);\n\t\t\tdrive.TimerMove(-0.3, 0.75);\n\t\t}\n\t\tlong milis = (long)(1.5 * 1000);\n \tlong time = System.currentTimeMillis();\n \twhile (System.currentTimeMillis() < time + milis)\n \t\tconveyor.setConveyor(1);\n\t\ttime = System.currentTimeMillis();\n\t\twhile (System.currentTimeMillis() < time + milis)\n\t\t\tconveyor.setConveyor(-1);\n\t\tconveyor.setConveyor(0);\n\t\ttime = System.currentTimeMillis();\n\t\twhile (System.currentTimeMillis() < time + milis)\n\t\t\tconveyor.setPlate(false);\n\t\ttime = System.currentTimeMillis();\n\t\twhile (System.currentTimeMillis() < time + milis)\n\t\t\tconveyor.setPlate(true);\n\t\telRaise.elCycle();\n\t\tLiveWindow.run();\n\t}", "title": "" }, { "docid": "4e264bcaa740b5c3e1c3c50e5f4c4dae", "score": "0.5875601", "text": "private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }", "title": "" }, { "docid": "484ba55640bf07832db602054cb04ce6", "score": "0.5873455", "text": "private String sleepString (int time){\n\t\tString sleepTime;\n\t\tif (time < 10){\n\t\t\tsleepTime = \"0\"+time;\n\t\t} \n\t\telse {\n\t\t\tsleepTime = \"\"+time; \n\t\t}\n\t\treturn sleepTime;\n\t}", "title": "" }, { "docid": "45e8720e70f18ecff5ea038d1bc1d22f", "score": "0.58699995", "text": "private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }", "title": "" }, { "docid": "e23f474ebd155c0eb2d9413cda7df688", "score": "0.58625335", "text": "public boolean isTired()\r\n \t{\r\n \t\treturn lastSleep >= TIME_SLEEP;\r\n \t}", "title": "" }, { "docid": "6421f7c522e3fcc5c5da4b7dabb39bc0", "score": "0.5852737", "text": "public boolean launch() {\n\t\treturn (Math.random() > this.explodProb);\r\n\t}", "title": "" }, { "docid": "1bf87dd05276b13accc3566e48171bea", "score": "0.5841427", "text": "private void sleep(int mul)\n {\n try {\n Thread.sleep(Driver.sleepTimeMs * mul);\n }\n catch (InterruptedException ex)\n {\n\n }\n }", "title": "" }, { "docid": "ebd6da0f97084e25ffa3a3a8d8c25192", "score": "0.5840065", "text": "int getChronicDelayTime();", "title": "" }, { "docid": "b5029cf1d84aaa7035f3b4175fe9127c", "score": "0.582805", "text": "@Override\n public long generateNewTimeToNextContract() {\n return new Random().nextInt(5);\n }", "title": "" }, { "docid": "89397f47b5f29c3e5c040ee5b28a90d5", "score": "0.58237463", "text": "private void random() {\n\n\t}", "title": "" }, { "docid": "ae6b17f79f1d84a592d8a24efae14e4b", "score": "0.5813918", "text": "public void goAdventuring() {\n\n game.createRandomMonster(4);\n if(RandomClass.getRandomTenPercent() == 5) {\n System.out.println(\"Your are walking down the road... Everything looks peaceful and calm.. Hit enter to continue!\");\n sc.nextLine();\n\n } else {\n game.battle();\n p.checkXp();\n }\n }", "title": "" }, { "docid": "2136f4ab2623533b3e323e096530f699", "score": "0.58108944", "text": "public float getSpawningChance()\n {\n return 0.1F;\n }", "title": "" }, { "docid": "e646af117fc975a9504f6ebeaab48843", "score": "0.5807132", "text": "private double generateTimeServ() throws ExceptionInvalidTimeDelay {\n if (distribution != null) {\n if (distribution.equalsIgnoreCase(\"exp\")) {\n timeServ = FunRand.exp(parametr);\n } else if (distribution.equalsIgnoreCase(\"unif\")) {\n timeServ = FunRand.unif(parametr - paramDeviation, parametr + paramDeviation);\n } else if (distribution.equalsIgnoreCase(\"norm\")) {\n timeServ = FunRand.norm(parametr, paramDeviation);\n }\n } else {\n timeServ = parametr;\n }\n return timeServ;\n }", "title": "" }, { "docid": "13550a1ac9c2ba5035372d7bbe4cbaa2", "score": "0.58062816", "text": "public static boolean isPresent() {\n // random genrate\n //double ranValue = Math.floor(Math.random() * 10 ) % 3;\n //int ranValue = 0/1;\n return 1 == new Random().nextInt(1000)%2;\n }", "title": "" }, { "docid": "c7ca2c061321fb6d86607e4496c1b918", "score": "0.5805622", "text": "public static void delay() {\n\n long ONE_SECOND = 1_000;\n\n try {\n Thread.sleep(ONE_SECOND);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "52b039e9a0a2216f61849b9cd314e78f", "score": "0.58001584", "text": "public void sleep() {\r\n System.out.println(this.animalName + \" sleeps\");\r\n }", "title": "" }, { "docid": "a10e22a1021089f8a7f04eae2fcc1fbb", "score": "0.57989925", "text": "private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }", "title": "" }, { "docid": "a10e22a1021089f8a7f04eae2fcc1fbb", "score": "0.57989925", "text": "private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }", "title": "" }, { "docid": "352af0e83e76dd792e6355333a355063", "score": "0.5791194", "text": "public static void sleepFor(float time) {\n try {\r\n Thread.sleep((int)(time*1000));\r\n } catch (InterruptedException e){\r\n }\r\n }", "title": "" }, { "docid": "b815cb7b2ee12b5583d4a984b39f2f4a", "score": "0.578313", "text": "private void sleepFor(long t) {\n\t\ttry {\n\t\t\tThread.sleep(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "9c0cae0aa598a7c5e25d4e5780b0bc63", "score": "0.57650477", "text": "public void runTime() {\n int generation = 0;\n System.out.println(\"Beginning of time\");\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // CLS\n\n while (!universeIsDead() & generation < 2000 /*& !universStable*/) {\n // CLS\n System.out.println(\"Generation : \" + generation);\n generation++;\n System.out.println(this);\n nextGeneration();\n try {\n Thread.sleep(50);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n // CLS\n System.out.println(\"Generation : \" + generation);\n System.out.println(this);\n System.out.println(\"Ending of time\");\n }", "title": "" }, { "docid": "3711a87b106505e341afd2d6ac34a993", "score": "0.5753901", "text": "public synchronized void wakeUpAll() {\n this.timeToWakeUp = true;\n try {\n wait(rand.nextInt(100)+20);\n } catch (InterruptedException e) {\n System.out.println(e);\n }\n notifyAll();\n }", "title": "" }, { "docid": "da384cae0a8d8eaeff00f0f0e8222eee", "score": "0.5742624", "text": "private static void testDelayOverhead() throws InterruptedException {\n Object m = \"\";\n int iters = 1000;\n long delay = 50;\n\n long before = System.currentTimeMillis();\n\n for (int i = 0; i < iters; i++) {\n\n synchronized (m) {\n m.wait(delay);\n }\n }\n\n long after = System.currentTimeMillis();\n\n long tottime = after - before;\n System.out.println(\"total time: \" + tottime + \"ms\");\n long ovhd = tottime - iters * delay;\n System.out.println(\"overhead: \" + ovhd + \"ms (\" + (100 * (ovhd / ((double) tottime))) + \"%)\");\n }", "title": "" }, { "docid": "b15dc437e8330ba731f9951d91ff2026", "score": "0.5737754", "text": "long getInitialDelayInSeconds();", "title": "" }, { "docid": "1c5254e6487276cf67ce5a5d2d1abf98", "score": "0.57354486", "text": "int getWaitTime();", "title": "" }, { "docid": "0483f70c13ce5899ed50c70175de5743", "score": "0.57267463", "text": "@Override\n protected void execute() {\n double timePassed = Timer.getFPGATimestamp() - timePoint;\n\n boolean rumbleOver = (state == RUMBLE && timePassed > timeOn);\n boolean breakOver = (state == BREAK && timePassed > timeOff);\n\n if (rumbleOver) {\n rumble(false);\n if (repeatCount >= 0)\n repeatCount--;\n } else if (breakOver)\n rumble(true);\n }", "title": "" } ]
98b56e609fe217433dd17bd1fc8c702e
count the no of tree entered for a given plantation
[ { "docid": "0933de41503b6c84ffab4c755e16533c", "score": "0.6818018", "text": "public long counttreeRows(int i) {\n db=this.getWritableDatabase();\n String count=TABLE_TREE_DETAIL+\n \" WHERE \"+(DbColumns.TreeDetails.Plant_id)+\"=\"+i;\n return DatabaseUtils.queryNumEntries(db,count);\n }", "title": "" } ]
[ { "docid": "8fe52fca29d39e54e6e58f3c023d0276", "score": "0.70074654", "text": "protected int treelessCount() {\n int count = 0;\n for (int i=0;i<tree.length;i++) {\n if (tree[i] == -1) count++;\n }\n return count;\n }", "title": "" }, { "docid": "e49bdfc777775dd75038d1da7a714caa", "score": "0.6805946", "text": "int getRootCount();", "title": "" }, { "docid": "dbb3ff885824cafd8d027ae587f49d14", "score": "0.67732286", "text": "public int numTrees(int n) {\n\t\treturn searchAll(n, new HashMap<Integer, Integer>());\n\t}", "title": "" }, { "docid": "7b9d13f549ba56857e1e8444941d8ead", "score": "0.6719916", "text": "public int treeSize(){\n int a = 0;\n if (children.size()==0){\n return 1;\n }\n for (GameState child: children){\n a+=child.treeSize();\n }\n if (a==0){\n scored = 1;\n }\n return a;\n }", "title": "" }, { "docid": "8cd5355ab61af67e74033871107e8c18", "score": "0.670073", "text": "@Test\n public void test() {\n assertEquals(4, countUnivalSubtrees(tree(\"5,1,5,n,n,5,n,n,5,n,5,n,n\")));\n }", "title": "" }, { "docid": "d6c208b86287d5b0c07a94d3f3035ebe", "score": "0.65579915", "text": "public static int countTree(int numKeys){\n\t\tif(numKeys <= 1){\n\t\t\treturn 1;\n\t\t}\n\t\telse{//iterate through all the values that could be root.\n\t\t\tint sum = 0;\n\t\t\tint left, right, root;\n\t\t\tfor(root=1;root<=numKeys;root++){\n\t\t\t\tleft = countTree(root-1);\n\t\t\t\tright = countTree(numKeys-root);\n\t\t\t\tsum += left*right;//number of possible trees with this root ==left*right'\n\t\t\t\t}\n\t\t\treturn sum;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "85052edcb8668e19bffed4eb5d1f0792", "score": "0.64960736", "text": "public int numTrees(int n) {\n int[] dp = new int[n+1];\n dp[0] = 1;\n dp[1] = 1;\n for(int i = 2 ; i <= n; i++){\n \t for(int j = 0; j <= i-1; j++){\n \t\t dp[i] += dp[j] * dp[i-1-j];\n \t }\n }\n return dp[n];\n }", "title": "" }, { "docid": "70c893d34ab37fa5da8eb0257e59c3dc", "score": "0.6473108", "text": "public int numTrees(int n) {\n int[] dp = new int[n+1];\n //empty tree\n dp[0] = 1;\n //root node\n dp[1] = 1;\n for(int i = 2; i <= n;i++){\n for(int j = 1; j <= i;j++){\n dp[i] += dp[j-1] * dp[i-j];\n }\n }\n return dp[n];\n}", "title": "" }, { "docid": "694349d62775a7ed465d584efe50d637", "score": "0.64666986", "text": "int numTrees(int n) {\n int c = 1;\n for(int i=2;i<=n;i++) {\n c = 2*(2*i-1)*c/(i+1);\n }\n return c;\n }", "title": "" }, { "docid": "9768a4cd08cb277608272e45433b9d51", "score": "0.64665586", "text": "private int size(Node tree) {return (tree == null) ? 0 : tree.N;}", "title": "" }, { "docid": "d374cbe0f5d25d635439e4aa08920abb", "score": "0.6410031", "text": "@Override\r\n public int numQueries() {\r\n int i = 0;\r\n IteratorIF<QueryTreeNode> it = queryDepot.iterator(GTreeIF.IteratorModes.PREORDER);\r\n while (it.hasNext()) {\r\n QueryTreeNode tn = it.getNext();\r\n if (tn.isLeaf()) {\r\n i++;\r\n }\r\n }\r\n //printTree(queryDepot, \"\");\r\n return i;\r\n }", "title": "" }, { "docid": "92ca05aca6558c41736a30a7f0cc4ca2", "score": "0.6389559", "text": "public int countByG_T(long groupId, long treeId);", "title": "" }, { "docid": "11da2c4d277e220bc33ef6cafd3c15e6", "score": "0.6383277", "text": "public int countLeafNodes() {\n\t counter = 0;\n\t leafHelper(root);\n\t return counter;\n }", "title": "" }, { "docid": "a930e7322649cd8d1db992c601fa7487", "score": "0.638247", "text": "public int GetNumTreeGenomes() {\n return myTracker.nTreeGenomes;\n }", "title": "" }, { "docid": "5f18bd8c310f052afd792a6307b9fce3", "score": "0.6353294", "text": "public int size() {\n // TODO 2. This method must be recursive.\n // State whether this is a searching or a counting method: counting\n if (children.size() == 0) return 1;\n else {\n int sum= 1;\n for (CovidTree sub : children) {\n sum= sum + sub.size();\n }\n return sum;\n }\n\n }", "title": "" }, { "docid": "4f1385d34aa5faedbc0c3111f338b8b1", "score": "0.6328731", "text": "public int countByG_T_L(long groupId, long treeId, int level);", "title": "" }, { "docid": "ce6a5bbe385836ceae6754f0df276ff8", "score": "0.6279464", "text": "protected int countNumFreqSets() {\r\n // If empty tree return 0\r\n\tif (startTtreeRef == null) return(0);\r\n\r\n\t// Otherwise loop through T-tree starting with top level\r\n\tint num=0;\r\n\tfor (int index=1; index <= numOneItemSets; index++) {\r\n\t // Check for null valued top level Ttree node.\r\n\t if (startTtreeRef[index] !=null) {\r\n\t if (startTtreeRef[index].support >= minSupport) \r\n\t\t\tnum = countNumFreqSets(index,\r\n\t \t\t\t\tstartTtreeRef[index].childRef,num+1);\r\n\t\t}\r\n\t } \r\n\t\r\n\t// Return\r\n\treturn(num);\r\n\t}", "title": "" }, { "docid": "f5fe6ffdc304b0ecf235564fa77c4454", "score": "0.6277114", "text": "public int size() {\n return tree.size();\n }", "title": "" }, { "docid": "f5fe6ffdc304b0ecf235564fa77c4454", "score": "0.6277114", "text": "public int size() {\n return tree.size();\n }", "title": "" }, { "docid": "f5fe6ffdc304b0ecf235564fa77c4454", "score": "0.6277114", "text": "public int size() {\n return tree.size();\n }", "title": "" }, { "docid": "d77ad21069293940c46ed602f747352b", "score": "0.6276892", "text": "public int getTreeCount() {\r\n\t\treturn mTreeCount;\r\n\t}", "title": "" }, { "docid": "8447bd463819efda1346eb6e8f3a1a85", "score": "0.62696195", "text": "public int numTrees(int n) {\n int[] result = new int[n+1];\n result[0]=1;\n result[1]=1;\n for(int i=2;i<=n;i++){\n for(int j=0;j<i;j++){\n result[i]+=result[j]*result[i-j-1];\n }\n }\n return result[n];\n }", "title": "" }, { "docid": "11fb238e36f419ce15984710308f9ca9", "score": "0.61657876", "text": "public static void totalNumberOfTrees(int treeCount) {\n\t\tSystem.out.println(\"There's a total of \" + treeCount + \" trees.\");\n\t}", "title": "" }, { "docid": "97708b6900b25e7caa8d51e3feff6099", "score": "0.6158091", "text": "int getNodeCount();", "title": "" }, { "docid": "4443722b3031efb9b887b91e62545ead", "score": "0.61293864", "text": "public static int getNbTrees(Configuration conf) {\n\t\treturn conf.getInt(\"mahout.rf.nbtrees\", -1);\n\t}", "title": "" }, { "docid": "aa3bd0f0d89a3953510f6df53c3c84c1", "score": "0.61242914", "text": "int getNumberOfPlants(double plantSpace, double greenhouseWidth, double greenhouseLength, int numberOfPlants) {\n return 1000;\n }", "title": "" }, { "docid": "1c4e450b1889a6641dd9cad1535de76e", "score": "0.61174405", "text": "static int countingValleys(int n, String s) {\n int valley = 0;\n int seaLevel = 0;\n\n Stack<Character> pathStack = new Stack<Character>();\n\n for (int i = 0; i < s.length(); i++){\n\n char path = s.charAt(i);\n\n seaLevel += path == 'D'? -1 : 1;\n pathStack.add(path);\n\n if (seaLevel == 0 && pathStack.size() > 0){\n if (pathStack.peek() == 'U'){\n valley ++;\n pathStack.clear();\n }\n }\n }\n return valley;\n }", "title": "" }, { "docid": "adcf3b47ed7a06726b4f8b198d8fdad1", "score": "0.6114515", "text": "public int countNodes()\n {\n return countNodes(root);\n }", "title": "" }, { "docid": "58e997c4d1d17697ef77824e324dd258", "score": "0.6108455", "text": "int getNumberOfLeafNodes();", "title": "" }, { "docid": "8260acde6471570b8b4e1c84a571c4bd", "score": "0.6098925", "text": "public static int getNbTrees(Configuration conf) {\n return conf.getInt(\"mahout.rf.nbtrees\", -1);\n }", "title": "" }, { "docid": "21d25762b97cce555b4d2c73ae28c6dc", "score": "0.609843", "text": "public int countRegions() {\n\t\t\n\t\tif(leftChild == null && rightChild == null) {\n\t\t\treturn 1;\n\t\t}\n\t\telse {\n\t\t\treturn rightChild.countRegions() + leftChild.countRegions();\n\t\t}\t\n\t}", "title": "" }, { "docid": "35dc366b4479f3ae7bc9a48cd4be0271", "score": "0.60871357", "text": "int getPotGroupsCount();", "title": "" }, { "docid": "ae6e66a38c62a29ef99c45b75587ee43", "score": "0.6067012", "text": "public abstract int getChildCount();", "title": "" }, { "docid": "6589868abcf42684f182329dba37cad0", "score": "0.60369146", "text": "int treeSize() {\n return memSize(); }", "title": "" }, { "docid": "df02788337fd144c7dd232f1e2c0553d", "score": "0.6029122", "text": "public int getTreeSize(){\n return treeSize;\n }", "title": "" }, { "docid": "c36d578bacd77e2f1837184540e443ee", "score": "0.60209537", "text": "int getNodesCount();", "title": "" }, { "docid": "c36d578bacd77e2f1837184540e443ee", "score": "0.60209537", "text": "int getNodesCount();", "title": "" }, { "docid": "c36d578bacd77e2f1837184540e443ee", "score": "0.60209537", "text": "int getNodesCount();", "title": "" }, { "docid": "571cac0173544547581baf1ee9edceac", "score": "0.6019358", "text": "public long getTotalNodeCount();", "title": "" }, { "docid": "4cac7d929ddefc98c03df54b7a97fe60", "score": "0.6015307", "text": "int getEggKmWalkedCount();", "title": "" }, { "docid": "df43df6f70799404e6dc7348462ef189", "score": "0.60003954", "text": "int getNodeInstanceCount();", "title": "" }, { "docid": "df43df6f70799404e6dc7348462ef189", "score": "0.60003954", "text": "int getNodeInstanceCount();", "title": "" }, { "docid": "df43df6f70799404e6dc7348462ef189", "score": "0.60003954", "text": "int getNodeInstanceCount();", "title": "" }, { "docid": "00fdcd27190d6363457af4a61f6870ff", "score": "0.5978466", "text": "int count(Node p)\n\t{\n\t\tif(p==null)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint x = count(p.getLeft());\n\t\t\tint y = count (p.getRight());\n\t\t\treturn x+y+1;\n\t\t}\n\t}", "title": "" }, { "docid": "5f7a2e72f7e957d05f5e5ebc18bb4233", "score": "0.59623426", "text": "public int countNodes()\n {\n return countNodes(root);\n }", "title": "" }, { "docid": "ee013356f0d0a303cda5c41f1c0972dc", "score": "0.5960052", "text": "public int size() {\r\n // #[ operation size()\r\n if (this == null)\r\n return 0;\r\n int s = 1;\r\n Iterator iter = getChildren();\r\n while (iter.hasNext()) {\r\n s += ((TreeNode) iter.next()).size();\r\n }\r\n return s;\r\n // #]\r\n }", "title": "" }, { "docid": "cb4ea3b86122befb8e68feac56b6cdb7", "score": "0.5959388", "text": "int getNodeCount(Object node) {\n int count = 1;\n\n int childCount = getChildCount(node);\n for (int c = 0; c < childCount; c++) {\n Object child = getChild(node, c);\n count += getNodeCount(child);\n }\n\n return count;\n }", "title": "" }, { "docid": "b47faf09f8a16cb0344ad029e15acb2c", "score": "0.5951037", "text": "public static void treesFound(int number) {\n\t\tSystem.out.println(\"We've found a total of: \" + number + \"trees.\");\n\t}", "title": "" }, { "docid": "dca1ca01f8fdfe7292159c97a849ba22", "score": "0.5946551", "text": "int size() \n { \n return size(root); \n }", "title": "" }, { "docid": "fec535cbba7738e0ecba394365e1f041", "score": "0.59449273", "text": "int getModuleSubNavsCount();", "title": "" }, { "docid": "7915ca32f93ffe1298c64cd7dacec43e", "score": "0.59220314", "text": "public int size() {\n\t return root.N; \n }", "title": "" }, { "docid": "0d0d5382f0f9cab910cbcb698dc7bf11", "score": "0.5915389", "text": "int getDataNodeCount();", "title": "" }, { "docid": "17764a141e4e6c11437afb60d3c0e1c6", "score": "0.59100664", "text": "public static void countNumberRegulars(){\r\n int count = 0;\r\n DatabaseReference hallDatabaseReference = mFirebaseDatabase.getReference().child(Constants.HALL_DATABASE_REFERENCE);\r\n DatabaseReference roomDatabaseReference = mFirebaseDatabase.getReference().child(Constants.ROOM_DATABASE_REFERENCE);\r\n //TODO finish this method.\r\n }", "title": "" }, { "docid": "4dc5139f7e155c0f1678ba97b94ba6ca", "score": "0.5906777", "text": "void testCountNodes(Tester t) {\n setVars();\n t.checkExpect(b.accept(countNodes), new ArrayList<Integer>(\n Arrays.asList(0, 0, 0)));\n b.build(list, 2);\n t.checkExpect(b.accept(countNodes), new ArrayList<Integer>(\n Arrays.asList(2, 1, 1)));\n }", "title": "" }, { "docid": "d1a82fdf1ded19968019c8e7cf707aa7", "score": "0.59032834", "text": "private int countNodes(ExampleNode r)\n {\n if (r == null)\n return 0;\n else\n {\n int l = 1;\n l += countNodes(r.getLeft());\n l += countNodes(r.getRight());\n return l;\n }\n }", "title": "" }, { "docid": "aa1487f86f0016508e7ab5757df30bc7", "score": "0.58680564", "text": "public int totalCounts() {\n Node pointer = root.getNext();\n int nodeCount = 0;\n while (pointer != null) {\n nodeCount = nodeCount + pointer.getCount();\n pointer = pointer.getNext();\n }\n return nodeCount;\n }", "title": "" }, { "docid": "8828d9cc5d2829f517bfea3fbb7b6e8a", "score": "0.58588696", "text": "private int count(int elev){\n int number=0;\n number=DownQueue[elev].getSize()+UpQueue[elev].getSize();\n return number;\n }", "title": "" }, { "docid": "c82a4f39f2e0dd589284ae36cfcd3a1d", "score": "0.58460665", "text": "public int numLeaves()\n {\n\treturn numLeaves(root);\n }", "title": "" }, { "docid": "cbc25c7fbbe26282db83deea822d9288", "score": "0.58457655", "text": "public int count() \n {\n return (children == null) ? 0 : children.length;\n }", "title": "" }, { "docid": "32bbc9cc1fcd23b3860e4cc6166d384b", "score": "0.5839025", "text": "public int size(){\n //todo size() (go for testing)\n return BTNode.treeSize(root);\n }", "title": "" }, { "docid": "253e131665e491c811081784af6f01e5", "score": "0.58335656", "text": "public int getNumberOfSubNodes();", "title": "" }, { "docid": "ec88a1348f792c3f5bcdca430d1de9a6", "score": "0.583181", "text": "public static void countNodes(EvolutionState state)\n\t{\n\t\tfor(int x=0;x<state.population.subpops.length;x++)\n\t\t{\n\t\t\t//best to start from y=1 to test for best individual. started from 0 because of statistics\n\t\t\tfor(int y=0;y<state.population.subpops[x].individuals.length;y++) \n\t\t\t{\n\t\t\t\t/* gather statistics of node usage in entire population \n\t\t\t\t * state.nodeCountTerminalSet is updated\n\t\t\t\t */\n\t\t\t\tstate.population.subpops[x].individuals[y].\n\t\t\t\tgatherIndividualNodeStats(state,state.nodeCountTerminalSet);\n\t\t\t\t\n\t\t\t\t/** count function sets */\n\t\t\t\tstate.population.subpops[x].individuals[y].\n\t\t\t\tgatherIndividualNodeStats(state,state.nodeCountFunctionSet);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6b967d149b24c7be29d4f7500cd3b4bf", "score": "0.5824808", "text": "public int totalCount(){\n int count = 0;\n for (int r = 0; r < grid.length; r++){\n for (int c = 0; c < grid[r].length; c++){\n if (grid[r][c] == '*')\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "dc01295e974bc5930a11b00ec255ad18", "score": "0.5820295", "text": "int size()\n {\n return size(root);\n }", "title": "" }, { "docid": "ed86d0db71b8b1566a2cb68b2c5680a3", "score": "0.5806989", "text": "public int size(){\n\t\tint size=0;\n\t\tif(this.left!=null){\n\t\t\tsize+=this.left.size();\n\t\t\t\n\t\t}\n\t\tint rightdepth=0;\n\t\tif(this.right!=null){\n\t\t\tsize+=this.right.size();\n\t\t\t\t\n\t\t}\n\t\t\n\t\treturn size+1;\n\t\t \n\t\t\n\t}", "title": "" }, { "docid": "1c621cd0ad2744d15bd3994a6edfb10b", "score": "0.58063245", "text": "public static int countNodes( @NotNull TreeNode start ) {\n Tools.warnOnEDT();\n\n int count = 1;\n TreeNode n;\n final Enumeration nodes = start.children();\n while ( nodes.hasMoreElements() ) {\n n = (TreeNode) nodes.nextElement();\n if ( n.getChildCount() > 0 ) {\n count += countNodes( n );\n } else {\n count++;\n }\n }\n return count;\n }", "title": "" }, { "docid": "093aff61286d069e1b916620e68bf4cf", "score": "0.57990634", "text": "public static int externalPathLength() {\n\t\t\n\t\tint count = 0;\n\t\t\n\t\tNode temp;\n\t\t\n\t\t//array list externalNodes contains all the external nodes of the tree\n\t\t\n\t\tfor(Node current : externalNodes) {\n\t\t\t\n\t\t\ttemp = current;\n\t\t\t\n\t\t\twhile(temp.parent != null) {\n\t\t\t\tcount++;\n\t\t\t\ttemp = temp.parent;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "title": "" }, { "docid": "38422e5d82d153ded4af456f743f223c", "score": "0.5798488", "text": "public static int countingValleys(int steps, String path) {\n // Write your code here\n\n// IntPredicate predicate = e->e % 11 == 0;\n// System.out.println(Arrays.stream(arr_sample2)\n //.anyMatch(predicate));\n IntPredicate predicate = e->{if(e=='U'); return true;};\n\n path.chars()\n .mapToObj(operand -> predicate)\n .forEach(intPredicate -> System.out.println(intPredicate));\n\n /**\n char[] ch = path.toCharArray();\n AtomicInteger valleyCount = new AtomicInteger(0);\n AtomicInteger count = new AtomicInteger(0);\n path.chars() // IntStream\n .mapToObj(p -> (char) p)\n .forEach(character -> {\n // Get the previous count\n int previousCount = count.get();\n //\n\n System.out.println(character);\n\n if(character == 'U') {\n count.getAndIncrement();\n }\n else {\n count.getAndDecrement();\n }\n\n if(previousCount < 0\n && count.get() >= 0)\n valleyCount.getAndIncrement();\n\n // System.out.println(\"previous count\"+ previousCount);\n // System.out.println(\" count\"+ count.get());\n // System.out.println(\"valleyCount count\"+ valleyCount.get());\n // // System.out.println(\"previous count\"+ previousCount);\n\n\n });\n\n return valleyCount.get(); */\n\n int valley = 0;\n int down = 0;\n int up= 0;\n int totalCount = 0;\n final int seaLevel =0;\n int previous = 0;\n for(int i = 0 ; i< steps; i++)\n {\n previous = totalCount ;\n\n if(path.charAt(i) == 'U')\n {\n totalCount ++;\n }\n else\n {\n totalCount --;\n }\n\n if(previous < 0 && totalCount>=0)\n valley++;\n }\n return valley;\n }", "title": "" }, { "docid": "cfcadb83ee4341f4d09c9102739d3586", "score": "0.579457", "text": "int countAllNodes() {\n\t\t if(this.top!=null) {\n\t\t\t \tint count = 0;\n\t\t\t\tSLNode level = this.top;\n\t\t\t\t//Iterate levels, starting from top\n\t\t\t\tfor(; level != null; level = level.down) {\n\t\t\t\t\tSLNode tmp = level;\n\t\t\t\t\tcount++;\n\t\t\t\t\t//Iterate through skip list horizontally\n\t\t\t\t\twhile(tmp != null && tmp.next != null) {\n\t\t\t\t\t\ttmp = tmp.next;\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t \treturn count;\n\t\t\t}\n\t\t return 0;\n\t }", "title": "" }, { "docid": "5c43940793161072c00bc631efbe0c3d", "score": "0.5789756", "text": "public int numNodes(Node node){\n if (node == null){\r\n return 0;\r\n }\r\n return 1 + numNodes(node.leftChild) + numNodes(node.rightChild);\r\n\r\n }", "title": "" }, { "docid": "03fa736261004a10056b676803a8d242", "score": "0.5786464", "text": "private Integer evaluateCountNode(ASTNode node)\n {\n List<MiniREString> strings;\n if (ASTNodeType.IDENTIFIER == node.getChild().getNodeType()) /* an identifier to count */\n\t\t\tstrings = matchLists.get(node.getChild().getTokenString());\n\t\telse /* an expression to count */\n strings = evaluateFindNode(node.getChild());\n\n\t\tint count = 0;\n\t\tfor (MiniREString string : strings) {\n\t\t\tfor (Metadata meta : string.getAllMetadata())\n\t\t\t\tcount += meta.getMatches().size();\n\t\t}\n\t\treturn count;\n }", "title": "" }, { "docid": "77a159f4d1e8b403748cd3b933f84cf0", "score": "0.5785855", "text": "static int getTreeItemSelectionCount() {\n\t\treturn MainController.getController().getMainTreeHandler().getSelectedTreeItems().size();\n\t}", "title": "" }, { "docid": "00ab4bc29adf3325faca8f8cc77d376d", "score": "0.5778696", "text": "public int getChildCount()\n {\n return projects.size();\n }", "title": "" }, { "docid": "78ad23461ea18ad5d7d6ed47d0e4f382", "score": "0.57785386", "text": "public int size()\n {\n return size(root);\n }", "title": "" }, { "docid": "c7836032a5aa1e48ab723de77ef27bfd", "score": "0.5778448", "text": "int getNumberOfNodes();", "title": "" }, { "docid": "b293f3e942a2dd7017c71fe4dce3b0e8", "score": "0.5773639", "text": "int getNoblesCount();", "title": "" }, { "docid": "8f4e76366aeb28cb745cd9c1f7d1a48b", "score": "0.57719624", "text": "int getNumNodes(String sourceName);", "title": "" }, { "docid": "60da9074f5c0a8dc32d670d4b50d2e34", "score": "0.5766354", "text": "public abstract int childCount ();", "title": "" }, { "docid": "a6c8c6705afe8ffbc556b392abcaaa1e", "score": "0.5757919", "text": "public int size(){\n\t\tif(this.root==null){\n\t\t\treturn 0;\n\t\t}\n\t\treturn this.root.size();\n\t\n\t}", "title": "" }, { "docid": "6d4a051029410d2a04811afff8cb4d8e", "score": "0.57511854", "text": "public int getNumberOfNonLeaves() { \n return getNumberOfNonLeaves(root);\n }", "title": "" }, { "docid": "0a283e7ad00e2fd5255bbf778c439402", "score": "0.5748612", "text": "public int depth(Person p) {\n // TODO 4\n // Note: Do NOT call function contains(p) to find out whether p is in\n // the tree. Do not have unnecessary calls that traverse the tree.\n // Study the two tutorials on processing recursive calls and use the\n // correct pattern here.\n // State whether this is a searching or a counting method: searching first to find p then\n // counting in terms of depth\n\n // Here is recursive insight:\n // ... Let child c of the root contain p.\n // ... Then the depth of p in the root = (1 + depth of p in c)\n if (person.equals(p)) { return 0; }\n if (children.size() != 0) {\n for (CovidTree sub : children) {\n int count= sub.depth(p);\n if (count != -1) { return count + 1; }\n\n }\n }\n return -1;\n }", "title": "" }, { "docid": "d3c324fb75fae0a216ee4f7a65ee999d", "score": "0.5743422", "text": "int getNodeRepetitions();", "title": "" }, { "docid": "ca78b11472239f4fcb3e684493b8837d", "score": "0.5737284", "text": "public int countMaxGenerations(){\r\nif ((child1 != null) && (child2 != null))\n{if (this.child1.countMaxGenerations() > this.child2.countMaxGenerations())\n{return (1 + this.child1.countMaxGenerations());}\nelse\n{return (1 + this.child2.countMaxGenerations());}}\nif ((child1 == null) && (child2 != null))\n{return (1 + this.child2.countMaxGenerations());}\nif ((child1 != null) && (child2 == null))\n{return (1 + this.child1.countMaxGenerations());}\nelse\nreturn 1;}", "title": "" }, { "docid": "ed6d7fe87b0c747031c6826abf337e25", "score": "0.57357836", "text": "public int childCount(int col);", "title": "" }, { "docid": "d9a1f7e47d91c3fd2c823fac95c80308", "score": "0.5734294", "text": "public int getRootCount() {\n return root_.size();\n }", "title": "" }, { "docid": "b709f2e20070dfebd6b62653295cde5a", "score": "0.57333744", "text": "public int size()\n {\n // Need to implement this.\n return size(root);\n }", "title": "" }, { "docid": "2774aeab4a1fe795fc9e399b0969977f", "score": "0.5732023", "text": "int countMinesInNeighborhood();", "title": "" }, { "docid": "fe828e19a36c6608ae860f71ab58c64a", "score": "0.5731112", "text": "int calculateNeuronCount();", "title": "" }, { "docid": "5f8a7672ee3d081b83415f1ff35c8188", "score": "0.57176614", "text": "public int countleafs(Node n) {\n if (n == null) {\n return 0;\n } else if (n.leftChild == null && n.rightChild == null) {\n return 1;\n } else {\n return countleafs(n.leftChild) + countleafs(n.rightChild);\n }\n\n }", "title": "" }, { "docid": "6a9f66ebe85eea6f976608861c7b5bc6", "score": "0.57166916", "text": "public int count(Proj04_Node<K,V> node) {\n\t\tif (node == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn node.count; \n\t}", "title": "" }, { "docid": "ba1abc0bbf48ddee91bf1e496001b037", "score": "0.5713364", "text": "private int numNodRec(treeNode<E> node) {\n //base case: if the called node is null\n if(node == null) {\n return 0;\n }\n int totalLeft = 0;\n totalLeft = 1 + numNodRec(node.left);\n int toalRight = 0;\n toalRight = 1 + numNodRec(node.right);\n return (toalRight + totalLeft - 1);\n }", "title": "" }, { "docid": "de74980ca9b039006ffffdec3e7ed516", "score": "0.5713264", "text": "private int levels(BinaryNode aNode)\n {\n int heightLeft = 0;\n int heightRight = 0;\n if (aNode.left != null)\n {\n heightLeft = levels(aNode.left);\n }\n if (aNode.right != null)\n {\n heightRight = levels(aNode.right);\n }\n if (heightLeft <= heightRight)\n {\n return heightRight + 1;\n }\n else\n {\n return heightLeft + 1;\n }\n }", "title": "" }, { "docid": "752c1a301a9683b0be785b8979e6cb47", "score": "0.57062465", "text": "@Override\n public int getNumberOfLeaves() {\n return getNumberOfLeaves(root);\n }", "title": "" }, { "docid": "f8ab078f071c70cd20adea84035f5721", "score": "0.5705414", "text": "public static void main(String args[]) \r\n {\r\n\t\tLeafCount tree = new LeafCount();\r\n tree.root = new Node(1);\r\n tree.root.left = new Node(2);\r\n tree.root.right = new Node(3);\r\n tree.root.left.left = new Node(4);\r\n tree.root.left.right = new Node(5);\r\n \r\n /* get leaf count of the abve tree */\r\n System.out.println(\"The leaf count of binary tree is : \"\r\n + tree.getLeafCount(tree.root));\r\n }", "title": "" }, { "docid": "eef9774e4d6acd3754f129e20f812cff", "score": "0.56998473", "text": "@Override\n public int getOccupiedNum(){\n int count = 0;\n for(int i = 0; i < meter.length; i++){//checking all the meteres to see which are occupied in a lot\n if(meter[i] == 1){\n count++;\n }\n }\n return count;//returning the total number of meteres occupied\n }", "title": "" }, { "docid": "0df8be757fa41430779b3b7403e9a4ad", "score": "0.5699332", "text": "private int getItemCount(TreeViewer tree) {\r\n ITreeContentProvider provider = (ITreeContentProvider)tree.getContentProvider();\r\n return provider.getElements(null).length;\r\n }", "title": "" }, { "docid": "73eadfa0a67ae52a14b59a02481397c0", "score": "0.56944656", "text": "int getChildPlanIdsCount();", "title": "" }, { "docid": "c6e732d758a0456f15e880924f836df3", "score": "0.5682783", "text": "public int size() {\r\n return size(root);\r\n }", "title": "" }, { "docid": "8d5f0ae2e7546229b4047ea0e75d4d5e", "score": "0.5680579", "text": "public static void main(String[] args) {\n\t\tTreeNode root = new TreeNode(3);\r\n\t\tTreeNode four = new TreeNode(4);\r\n\t\tTreeNode two = new TreeNode(2);\r\n\t\tTreeNode one = new TreeNode(1);\r\n\t\tTreeNode six = new TreeNode(6);\r\n\t\tTreeNode seven = new TreeNode(7);\r\n\t\troot.left = four;\r\n\t\tfour.left = one;\r\n\t\troot.right = two;\r\n\t\ttwo.left = six;\r\n\t\ttwo.right = seven;\r\n\t\tint depth = getTreeDepth(root);\r\n\t\tSystem.out.println(depth);\r\n\t}", "title": "" }, { "docid": "62c43ef99569c9552c5fea097da7e6db", "score": "0.56748277", "text": "public int countGender(char gen){\r\nif((child1 != null) && (child2 != null))\n{if (this.getGender() == gen)\n{return 1 + this.child1.countGender(gen) + this.child2.countGender(gen);}\nelse\n{return 0 + this.child1.countGender(gen) + this.child2.countGender(gen);}}\nif((child1 == null) && (child2 != null))\n{if (this.getGender() == gen)\n{return 1 + this.child2.countGender(gen);}\nelse\n{return 0 + this.child2.countGender(gen);}}\nif((child1 != null) && (child2 == null))\n{if (this.getGender() == gen)\n{return 1 + this.child1.countGender(gen);}\nelse\n{return 0 + this.child1.countGender(gen);}}\nelse\n{if (this.getGender() == gen)\n{return 1;}\nelse\n{return 0;}}}", "title": "" } ]
d4b39a45a1d4069927a6bdd472ba46bb
field for testing money type .google.type.Money furo_data_money_input = 21;
[ { "docid": "d67df2940361e2464d2289647f08eda9", "score": "0.0", "text": "public Builder setFuroDataMoneyInput(\n google.type.MoneyOuterClass.Money.Builder builderForValue) {\n if (furoDataMoneyInputBuilder_ == null) {\n furoDataMoneyInput_ = builderForValue.build();\n onChanged();\n } else {\n furoDataMoneyInputBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "title": "" } ]
[ { "docid": "2ce8b3e04b35c2719b477cd4fbeb21ab", "score": "0.8394223", "text": "google.type.MoneyOuterClass.Money getFuroDataMoneyInput();", "title": "" }, { "docid": "1af6e80878e49e8a608603578022576a", "score": "0.7286699", "text": "google.type.MoneyOuterClass.MoneyOrBuilder getFuroDataMoneyInputOrBuilder();", "title": "" }, { "docid": "e731692542cee42efedfe7e36c23130e", "score": "0.68884647", "text": "public void inputMoney(double amount) {\n\t\t\n\t}", "title": "" }, { "docid": "f60a50d8f09bf70768ad275a687d4227", "score": "0.6655183", "text": "public google.type.MoneyOuterClass.MoneyOrBuilder getFuroDataMoneyInputOrBuilder() {\n return getFuroDataMoneyInput();\n }", "title": "" }, { "docid": "18c5835462488c96abab0e11b21c263d", "score": "0.6641732", "text": "public google.type.MoneyOuterClass.Money getFuroDataMoneyInput() {\n return furoDataMoneyInput_ == null ? google.type.MoneyOuterClass.Money.getDefaultInstance() : furoDataMoneyInput_;\n }", "title": "" }, { "docid": "467ac1783b3c8bb1c02a2e7902956189", "score": "0.66178316", "text": "public google.type.MoneyOuterClass.Money getFuroDataMoneyInput() {\n if (furoDataMoneyInputBuilder_ == null) {\n return furoDataMoneyInput_ == null ? google.type.MoneyOuterClass.Money.getDefaultInstance() : furoDataMoneyInput_;\n } else {\n return furoDataMoneyInputBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "8ae6018bff04117826b09e2f75b792c0", "score": "0.6512446", "text": "public google.type.MoneyOuterClass.MoneyOrBuilder getFuroDataMoneyInputOrBuilder() {\n if (furoDataMoneyInputBuilder_ != null) {\n return furoDataMoneyInputBuilder_.getMessageOrBuilder();\n } else {\n return furoDataMoneyInput_ == null ?\n google.type.MoneyOuterClass.Money.getDefaultInstance() : furoDataMoneyInput_;\n }\n }", "title": "" }, { "docid": "1bc9400ffcf03aecc3b05c9111fc1580", "score": "0.6346097", "text": "@Override\n public String getType() { return \"Money Market\"; }", "title": "" }, { "docid": "246864a57fd4f8a2f40c09eb8ad679b8", "score": "0.6313716", "text": "public static int getMoney(){\n return Integer.parseInt(moneyTextField.getText());\n }", "title": "" }, { "docid": "66cee5740b20fc9e7d58d6f530c73c0d", "score": "0.6291728", "text": "int getUserMoney();", "title": "" }, { "docid": "7a202b3218e33ab1d37018cc5d8011e8", "score": "0.6269375", "text": "public int getMoney ();", "title": "" }, { "docid": "4dcc9a94afc94402648cc72e6a0c9ef1", "score": "0.62272805", "text": "public void setMoney(Float money) {\r\n this.money = money;\r\n }", "title": "" }, { "docid": "d5675c6a1cde8e0c1895410544363900", "score": "0.6189961", "text": "public void setMoney(float money) {\n this.money = money;\n }", "title": "" }, { "docid": "847550948c7aa0f74d7fc08b32308f12", "score": "0.6167563", "text": "public Float getMoney() {\r\n return money;\r\n }", "title": "" }, { "docid": "f4f51686161792c4016375703ed8f792", "score": "0.61465585", "text": "public Builder setFuroDataMoneyInput(google.type.MoneyOuterClass.Money value) {\n if (furoDataMoneyInputBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n furoDataMoneyInput_ = value;\n onChanged();\n } else {\n furoDataMoneyInputBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "3a12619cfb0d11ab0ac9c920121c2754", "score": "0.60314333", "text": "public float getMoney() {\n return money;\n }", "title": "" }, { "docid": "79d4796255690b9a762ec75624b94e92", "score": "0.5965343", "text": "public void setMoney(Double money) {\n this.money = money;\n }", "title": "" }, { "docid": "f3ddfde2abcd94aa9e6dd3b3c50d5fbb", "score": "0.5964575", "text": "@Test\r\n\tvoid convertToMoneyTest(){\r\n\t\t Prospector mockProspector = new Prospector(0);\r\n\t\t mockProspector.silver = 11;\r\n\t\tmockProspector.gold = 32;\r\n\t Game mockgame = new Game(0, 0);\r\n\t String muns = mockgame.convertToMoney(mockProspector);\r\n\t assertEquals(\"Heading home with $675.85.\", muns);\r\n\t }", "title": "" }, { "docid": "3544c938a0a503849c6ce46c457fbd7f", "score": "0.5957244", "text": "boolean hasFuroDataMoneyInput();", "title": "" }, { "docid": "b29542794721a6af33bb4bf686e1cb3d", "score": "0.59513503", "text": "public double getMoney() {\n return money;\n }", "title": "" }, { "docid": "5beb4415b9ec149456ba4b347750ed31", "score": "0.5950528", "text": "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "title": "" }, { "docid": "5beb4415b9ec149456ba4b347750ed31", "score": "0.5950528", "text": "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "title": "" }, { "docid": "db6cc107bf18fdcc0cf4dbc079b1335f", "score": "0.59502023", "text": "public IMoneyInterpreter getMoneyInterpreter();", "title": "" }, { "docid": "5fe1dab3a787fe82bb10c4cce8cfea05", "score": "0.59224534", "text": "@Test\n public void inputCurrencyTest() {\n // TODO: test inputCurrency\n }", "title": "" }, { "docid": "192be219d6e9d5881eee0505338da912", "score": "0.5890993", "text": "public void eftMoney() {\n\t\t\n\t}", "title": "" }, { "docid": "e55dc7f0e9ddaf7067f26964c059065f", "score": "0.58834064", "text": "@Test\n public void inputUsdAmountTest() {\n // TODO: test inputUsdAmount\n }", "title": "" }, { "docid": "e3ac4a07864e99c0979448c6db11deeb", "score": "0.5882274", "text": "@Test\n public void inputAmountTest() {\n // TODO: test inputAmount\n }", "title": "" }, { "docid": "dafdb69f95e5dcd74bd3d4fc5c15cc9d", "score": "0.5847747", "text": "public BigDecimal getMoney() {\n return money;\n }", "title": "" }, { "docid": "dafdb69f95e5dcd74bd3d4fc5c15cc9d", "score": "0.5847747", "text": "public BigDecimal getMoney() {\n return money;\n }", "title": "" }, { "docid": "65a5510a9f46969eb2f678014f510bbd", "score": "0.5836044", "text": "public Double getMoney() {\n return money;\n }", "title": "" }, { "docid": "e360003ebe064a74e5105ce6579ce547", "score": "0.5829351", "text": "String getAmountField();", "title": "" }, { "docid": "3b79c706736072ce9d2ee198f4db8c47", "score": "0.5785485", "text": "public google.type.MoneyOuterClass.Money.Builder getFuroDataMoneyInputBuilder() {\n \n onChanged();\n return getFuroDataMoneyInputFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "c470a78d2efc96aa51160bfaf67f6957", "score": "0.5778913", "text": "int getAddMoney();", "title": "" }, { "docid": "c470a78d2efc96aa51160bfaf67f6957", "score": "0.5778913", "text": "int getAddMoney();", "title": "" }, { "docid": "5ce444d1274b431358df3a2613a8b51f", "score": "0.574333", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n google.type.MoneyOuterClass.Money, google.type.MoneyOuterClass.Money.Builder, google.type.MoneyOuterClass.MoneyOrBuilder> \n getFuroDataMoneyInputFieldBuilder() {\n if (furoDataMoneyInputBuilder_ == null) {\n furoDataMoneyInputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n google.type.MoneyOuterClass.Money, google.type.MoneyOuterClass.Money.Builder, google.type.MoneyOuterClass.MoneyOrBuilder>(\n getFuroDataMoneyInput(),\n getParentForChildren(),\n isClean());\n furoDataMoneyInput_ = null;\n }\n return furoDataMoneyInputBuilder_;\n }", "title": "" }, { "docid": "aa727fff86efc86d379483019e625843", "score": "0.5741958", "text": "float getFuroDataNumberInput();", "title": "" }, { "docid": "8f48bd7dd35834c33dd27f1259ece70f", "score": "0.5725419", "text": "private PlayerType(int money)\n {\n this.money = money;\n }", "title": "" }, { "docid": "083c52ca0e6e9de868fefac9389c885d", "score": "0.57181734", "text": "@Test\n public void testInsertMoney() {\n\n BigDecimal testBigDecimal = service.insertMoney(new BigDecimal(\"2.00\"));\n BigDecimal expectedDecimal = new BigDecimal(\"2.00\");\n\n assertEquals(testBigDecimal, expectedDecimal, \"Should Be the same\");\n\n }", "title": "" }, { "docid": "249eae719e2c236af103a7e92d556433", "score": "0.57042855", "text": "int getCurrentMoney();", "title": "" }, { "docid": "249eae719e2c236af103a7e92d556433", "score": "0.57042855", "text": "int getCurrentMoney();", "title": "" }, { "docid": "104e2a352222ed3a1c4fd4231b166419", "score": "0.56836367", "text": "public double calculateMoney(int type){\n\t\t\n\t\tdouble money = 0;\n\t\tswitch(type){\n\t\t\tcase 1:\n\t\t\t\tmoney = TransactionGold.SJC9999.calMoney(quantity);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmoney = TransactionGold.G24K.calMoney(quantity);\n\t\t\t\tbreak;\t\t\t\t\n\t\t}\n\t\treturn money;\n\t}", "title": "" }, { "docid": "bc03e0a72278b01f1e8517422177a75c", "score": "0.56832373", "text": "public Float userAddMoney(Float money) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e3ff746da768db0bdd448bbc6298a424", "score": "0.5674451", "text": "public static void setMoney(int money){\n moneyTextField.setText(Integer.toString(money));\n }", "title": "" }, { "docid": "46d5b924c525f63b05da15be349a58ec", "score": "0.56727463", "text": "public abstract void addMoney (double amount);", "title": "" }, { "docid": "66b890bdd356634e3c738b67c87fb1c8", "score": "0.5662321", "text": "public int getMoney() {\r\n return money;\r\n }", "title": "" }, { "docid": "9ae4adf52507e26f9c62f1aa6113ae32", "score": "0.56451", "text": "public void setMoney(Double money) {\n\t\tthis.money = money;\n\t}", "title": "" }, { "docid": "b55bb03d7dba42cc26997d0834a682c2", "score": "0.56397146", "text": "public int changeMoney();", "title": "" }, { "docid": "01160f258a450fb22bf88e9e96fe79e8", "score": "0.5631212", "text": "void add(Money payment);", "title": "" }, { "docid": "9fb344c3b7a641e1da976f4d9668e655", "score": "0.562245", "text": "public Decimal122 getZzproAmount(){\r\n return localZzproAmount;\r\n }", "title": "" }, { "docid": "84b5d39a1dc5165c98a1f4eca6ed51b3", "score": "0.56132597", "text": "@Test\r\n\tpublic\tvoid\ttestAddMoney()\t{\r\n\t\tOverallGame testGame\t=\tnew\tOverallGame();\r\n\t\ttestGame.setGameWindow(new\tgameWindow(testGame));\r\n\t\tGame3\t\ttestGame3\t=\tnew\tGame3(testGame);\r\n\t\ttestGame3.getTimer().stop();\r\n\t\tassertEquals(testGame3.getMoney()/100,testGame3.getCoins().size());\r\n\t\ttestGame3.setMoney(900);\r\n\t\ttestGame3.addMoney(100);\r\n\t\tassertEquals(1000,testGame3.getMoney());\r\n\t\tassertEquals(10,testGame3.getCoins().size());\r\n\t\ttestGame3.addMoney(100);\r\n\t\tassertEquals(1,testGame3.getCoins().size());\r\n\t\tassertEquals(\" X11\",testGame3.getTotalCoin().getText());\r\n\t\ttestGame3.addMoney(-200);\r\n\t\tassertEquals(9,testGame3.getCoins().size());\r\n\t}", "title": "" }, { "docid": "e4a297309574ade06cd6407169f59c6e", "score": "0.5602139", "text": "private void setMoney(int money) {\n this.money = money;\n }", "title": "" }, { "docid": "8b4a9998bff8c0409f0adfaa92eb9c40", "score": "0.5596257", "text": "public int getMoney() {\n return money;\n }", "title": "" }, { "docid": "8b4a9998bff8c0409f0adfaa92eb9c40", "score": "0.5596257", "text": "public int getMoney() {\n return money;\n }", "title": "" }, { "docid": "8b4a9998bff8c0409f0adfaa92eb9c40", "score": "0.5596257", "text": "public int getMoney() {\n return money;\n }", "title": "" }, { "docid": "f4e0f7da71c2386b189110b607cb7f82", "score": "0.55935293", "text": "public void setThruAmount(BigDecimal thruAmount);", "title": "" }, { "docid": "b05c8c53bf0c31d3649f64b8a1f537ce", "score": "0.5581803", "text": "@Test(timeout = 4000)\n public void test17() throws Throwable {\n Player player0 = new Player(4919, \"*a#4D*B;(+f[OeU\", \"module.ModuleBrowserDialog$ModuleFilter\", 4919, 495);\n player0.setMoney(4919);\n float float0 = player0.getMoney();\n assertEquals(4919.0F, float0, 0.01F);\n }", "title": "" }, { "docid": "293fc50c5ed6467612b84846db7a9668", "score": "0.55608183", "text": "private void setUserMoney(int value) {\n \n userMoney_ = value;\n }", "title": "" }, { "docid": "a2b24474cfebc7c36cf3770654b3d550", "score": "0.55423206", "text": "public Double getMoney() {\n\t\treturn money;\n\t}", "title": "" }, { "docid": "04699cf399b626c441a54e3b83d28800", "score": "0.5537882", "text": "public int getMoney()\n {\n return money;\n }", "title": "" }, { "docid": "ff8d46eea3713d229f26f8d7ea237415", "score": "0.553664", "text": "public int getMoney() {\n \treturn money;\n }", "title": "" }, { "docid": "53127baffe88adaac68cc3e29b49f904", "score": "0.5524387", "text": "public void setMoney(int money) {\n\t\tthis.money = money;\n\t}", "title": "" }, { "docid": "e83b074b981e72ced4fb056a527239e8", "score": "0.55182904", "text": "MonetaryAmount deposit(BankAccount account);", "title": "" }, { "docid": "242be9e7714dfd2d9b62ed79d9c453b9", "score": "0.55179614", "text": "public void setCurrency(int amount);", "title": "" }, { "docid": "007ca8e252be14bd207e9cd1f6c537d3", "score": "0.55147713", "text": "String getAmount();", "title": "" }, { "docid": "69b372105fe37c8397c287182947f34b", "score": "0.5499033", "text": "double getAmount();", "title": "" }, { "docid": "69b372105fe37c8397c287182947f34b", "score": "0.5499033", "text": "double getAmount();", "title": "" }, { "docid": "a0d13faf04c3e5f8795541a6a895bacb", "score": "0.54879487", "text": "public void setUnitPriceGrossNet(Char2 param){\r\n \r\n this.localUnitPriceGrossNet=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "48c47a2213d3d38b6ed842b95edbac45", "score": "0.5473468", "text": "public void setZzproAmount(Decimal122 param){\r\n \r\n this.localZzproAmount=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "d6038d85ef7f0c0521d8491af50ecf1c", "score": "0.546981", "text": "public void testShouldDeserialize()\n {\n final String content = \"{\\\"amount\\\":19.99,\\\"currency\\\":\\\"EUR\\\"}\";\n final Money actualAmount = R.readValue(content);\n\n assertEquals(Money.of(CurrencyUnit.EUR, BigDecimal.valueOf(19.99)), actualAmount);\n assertEquals(BigDecimal.valueOf(19.99), actualAmount.getAmount());\n assertEquals(actualAmount.getCurrencyUnit().getCode(), \"EUR\");\n }", "title": "" }, { "docid": "0d61ae9e602576d302f885a297129dc3", "score": "0.5468737", "text": "public static void hm_task2(){\n\t\t//This program converts money/currency from EUROS to US Dolars\n\t\t\n\t\tScanner cr = new Scanner(System.in);\n\t\tSystem.out.print(\"Input Ammount to be converted :€\");\n\t\t\n\t\tdouble cr_euro = cr.nextDouble();\n\t\tdouble xc_rate = 1.23;\n\t\t\n\t\tdouble cr_dollars = (cr_euro * xc_rate);\n\t\tif (cr_dollars<=0){\n\t\t\tSystem.out.println(\"You must have at least €1\");\n\t\t}else{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"\\n\\tRESULTS\\nMoney in Euros : €\" + cr_euro + \"\\nMoney in Dolars : $\" + cr_dollars );\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "8c37cbe3979d85d78299252d7b22476a", "score": "0.5466996", "text": "public Decimal196 getUnitPrice(){\r\n return localUnitPrice;\r\n }", "title": "" }, { "docid": "9147e31f7fc2056f3faedadff4b2739d", "score": "0.54637957", "text": "public double getMoney() {\n\t\treturn this.money;\n\t}", "title": "" }, { "docid": "8f050eaf5f2259bfb261b6fc7ab236df", "score": "0.5463135", "text": "public Money() {\n dollars = 0;\n cents = 0;\n }", "title": "" }, { "docid": "6c4a2878eddc3c5cc003c8d4fa408cb0", "score": "0.54472864", "text": "au.gov.asic.types.AmountType xgetAmount();", "title": "" }, { "docid": "ab44e789975391747edfc2589809ef56", "score": "0.542226", "text": "public void setChargeAmt (BigDecimal ChargeAmt)\n{\nset_Value (\"ChargeAmt\", ChargeAmt);\n}", "title": "" }, { "docid": "c68a188897f17320dcb9a492f497b576", "score": "0.5421709", "text": "public static void main(String[] args) {\n\n Scanner input = new Scanner(System.in);\n int whatHeHas = 200;\n\n System.out.println(\"How much do you want to deposit?\");\n double firstDeposit = input.nextDouble();\n\n System.out.println(\"How much do you want to deposit 2nd time?\");\n double secondDeposit = input.nextDouble();\n\n System.out.println(\"How much do you want to deposit 3d time\");\n double thirdDeposit = input.nextDouble();\n\n double totalMoney = (whatHeHas+firstDeposit+secondDeposit+thirdDeposit);\n\n System.out.println(\"Your total is \" + totalMoney);\n\n System.out.println(\"Please enter a phone price\");\n double phonePrice = input.nextDouble();\n\n System.out.println(\"Please enter a headphone price\");\n double headPhonePrice = input.nextDouble();\n\n System.out.println(\"Your balance now after spending is \" + (totalMoney - phonePrice-headPhonePrice));\n\n// Scanner input = new Scanner(System.in);\n// int davidMoney = 200;\n// System.out.println(\"Please deposit your first check\");\n// int firstCheck = input.nextInt();\n// System.out.println(\" Your total money is \" +(davidMoney + firstCheck));\n// davidMoney += firstCheck;\n// System.out.println(\"Please deposit your second check\");\n// int secondCheck = input.nextInt();\n// System.out.println(\" Your total money is \" +(davidMoney + secondCheck));\n// davidMoney += secondCheck;\n// System.out.println(\"Please deposit your third check \");\n// int thirdCheck = input.nextInt();\n// System.out.println(\"Your total money is \" + (davidMoney + thirdCheck));\n// davidMoney += thirdCheck;\n// System.out.println(\"Please enter the price of phone\");\n// int firstSpend = input.nextInt();\n// System.out.println(\"Your total money is \" + (davidMoney-firstSpend));\n// davidMoney = davidMoney - firstSpend;\n// System.out.println(\"Please enter the price of headphone\");\n// int secondSpend = input.nextInt();\n// System.out.println(\"Your total money is \" + (davidMoney-secondSpend));\n// davidMoney -= secondSpend;\n// System.out.println(davidMoney);\n\n\n }", "title": "" }, { "docid": "e54f9c5b369622d6cfa4e24d4780b3c3", "score": "0.542007", "text": "public int getCurrency();", "title": "" }, { "docid": "8736e74ca71edeec00593ef7d72b94d9", "score": "0.5408795", "text": "@Test\r\n\tvoid convertToMoneyZeroTest(){\r\n\t\t Prospector mockProspector = new Prospector(0);\r\n\t\t mockProspector.silver = 0;\r\n\t\tmockProspector.gold = 0;\r\n\t Game mockgame = new Game(0, 0);\r\n\t String muns = mockgame.convertToMoney(mockProspector);\r\n\t assertEquals(\"Heading home with $0.00.\", muns);\r\n\t }", "title": "" }, { "docid": "2e1e605db816dec28a2e34895f0df8a5", "score": "0.5401107", "text": "void convertPoundToDollar(final double amount, ConversionListener listener);", "title": "" }, { "docid": "483304f9f870eb725cd159cd73bdfe94", "score": "0.5396449", "text": "public Wallet(int money) {\n this.money = money;\n }", "title": "" }, { "docid": "807391df2204edcd04280c9e5e4482c8", "score": "0.5394784", "text": "java.math.BigDecimal getAmount();", "title": "" }, { "docid": "27c3cf5cb88b2617711f8bf7d66df735", "score": "0.53901464", "text": "public final int getMoney() {\n return money;\n }", "title": "" }, { "docid": "44eb37084a2eec5b0c20cbf57ec4f4a2", "score": "0.53750306", "text": "public int getUserMoney() {\n return userMoney_;\n }", "title": "" }, { "docid": "1f3e6140630472845bce7660543956d5", "score": "0.5373023", "text": "public void depositMoney() {\n\t\t\n\t}", "title": "" }, { "docid": "5aa68a14f108291f72210f8b41d38427", "score": "0.53678495", "text": "public final void setMoney(int money) {\n this.money = money;\n }", "title": "" }, { "docid": "e52195e0c34331dfce11184fb6014f46", "score": "0.5366339", "text": "public void setUnitPrice(Decimal196 param){\r\n \r\n this.localUnitPrice=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "b48d8b8fb1b289c179c27d0e5ee5c079", "score": "0.5344113", "text": "public Cuky5 getCurrency(){\r\n return localCurrency;\r\n }", "title": "" }, { "docid": "b48d8b8fb1b289c179c27d0e5ee5c079", "score": "0.5344113", "text": "public Cuky5 getCurrency(){\r\n return localCurrency;\r\n }", "title": "" }, { "docid": "b48d8b8fb1b289c179c27d0e5ee5c079", "score": "0.5344113", "text": "public Cuky5 getCurrency(){\r\n return localCurrency;\r\n }", "title": "" }, { "docid": "6350b98a80b7744988d756139c759870", "score": "0.53413343", "text": "public interface Bank {\n\tpublic double balance = 24000.0;\n\tpublic double dollar = 1.0;\n\tpublic double dollarRateBeijing = 6.4;\n\tpublic double dollarRateHongKong = 7.78;\n\tpublic double dollarRateLondon = 0.73;\n\tdouble rateOfDollar();\n\t\n\t\n\n}", "title": "" }, { "docid": "da163facb9da8deb22425ae794ccfc26", "score": "0.53410035", "text": "public int getMoney() {\n\t\treturn money;\n\t}", "title": "" }, { "docid": "e5599cb2f9f62a9699c040ff20a55054", "score": "0.53367954", "text": "@Test\n public void testGetValueForCurrency() {\n assertEquals(MATRIX.getValueForCurrency(Currency.AUD), 100.);\n assertEquals(MATRIX.getValueForCurrency(Currency.BRL), 1000.);\n assertEquals(MATRIX.getValueForCurrency(Currency.CAD), 10000.);\n }", "title": "" }, { "docid": "b743878df21dc7f6ccb8f6881fda7caa", "score": "0.5333132", "text": "public void setMoney(int money) { // if the user wishes to buy back chips\n playerMoney = money;\n }", "title": "" }, { "docid": "4ac54d9666b5d1529171715d67adcfbc", "score": "0.5331441", "text": "public Builder mergeFuroDataMoneyInput(google.type.MoneyOuterClass.Money value) {\n if (furoDataMoneyInputBuilder_ == null) {\n if (furoDataMoneyInput_ != null) {\n furoDataMoneyInput_ =\n google.type.MoneyOuterClass.Money.newBuilder(furoDataMoneyInput_).mergeFrom(value).buildPartial();\n } else {\n furoDataMoneyInput_ = value;\n }\n onChanged();\n } else {\n furoDataMoneyInputBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "b6db7a6c4f0ec0c018bfd0511d3614db", "score": "0.5330801", "text": "@Test(description = \"AT-29592:TRA_01_51:Verify only numbers and decimal alowed in the amount field\", priority = 52, dependsOnMethods = {\r\n\t\t\t\"descerrorValidation\" })\r\n\tvoid amountErrorValidation() {\n\r\n\t\tadd_manual_transaction.amount().clear();\r\n\t\tadd_manual_transaction.amount().sendKeys(PropsUtil.getDataPropertyValue(\"AmountalphaNumeric\"));\r\n\t\tSeleniumUtil.waitForPageToLoad();\r\n\t\tAssert.assertEquals(add_manual_transaction.amountErr().getText(),\r\n\t\t\t\tPropsUtil.getDataPropertyValue(\"AmountalphaNumericErr\"));\r\n\r\n\t}", "title": "" }, { "docid": "86c1a0e46531ba7b1c2381a2f37b3bac", "score": "0.5313188", "text": "@Test\n public void testCalculateUserChange() {\n Item cookies = new Item();\n cookies.setName(\"Cookies\");\n cookies.setCost(new BigDecimal(\"200\"));\n cookies.setInventoryCount(3);\n \n Change testChange = service.calculateUserChange(new BigDecimal(\"5.00\"), cookies);\n assertEquals(testChange.getTotalChangeInDollars(), new BigDecimal(\"3.00\"));\n }", "title": "" }, { "docid": "3526e924ee51cec1213b05df2da4d672", "score": "0.5309101", "text": "private void setAddMoney(int value) {\n \n addMoney_ = value;\n }", "title": "" }, { "docid": "3526e924ee51cec1213b05df2da4d672", "score": "0.5309101", "text": "private void setAddMoney(int value) {\n \n addMoney_ = value;\n }", "title": "" }, { "docid": "fa160864cf8fd4cc062f55c6257c9153", "score": "0.53030014", "text": "public Money value() {\n return aMoney;\n }", "title": "" }, { "docid": "604d43fd09833c463ef7304f99557f2b", "score": "0.5300018", "text": "Money getCost();", "title": "" }, { "docid": "3b59117373a95be5676263f608703290", "score": "0.5298572", "text": "private String catchBadUserInputMoney(BigDecimal userInput) {\n return view.catchBadUserInputMoney(userInput);\n }", "title": "" } ]
eb60d202265263c26f0b4870445a8226
end run setPc for branch or call or return
[ { "docid": "d5c39f593a64b111cbf092e36bb76418", "score": "0.62524676", "text": "static void setPc(int newPc)\n\t{\n\t\tif (verbose)\n\t\t\tSystem.out.println(\" setPc to: \" + newPc);\n\t\tif (newPc < 0 || newPc >= allInstrs.size())\n\t\t\tMain.internalError(\"setPc - value (\" + newPc \n\t\t\t\t\t + \") out of bounds\");\n\t\tpc = newPc;\n\t}", "title": "" } ]
[ { "docid": "5a86f90e7f85b8ed9f37b0039346704a", "score": "0.5876742", "text": "public void branch(){\n }", "title": "" }, { "docid": "800f6caae1290cc2aa541f7881c326c9", "score": "0.5853625", "text": "protected abstract void branch(int opcode, int targetBCI, int bci);", "title": "" }, { "docid": "7042e72ddf0974aa1f3a9aef925ff343", "score": "0.5834859", "text": "protected void ret( ) {\n pos = retCode;\n popEnv();\n }", "title": "" }, { "docid": "e1dae2d38488cec902134f53178a2cd3", "score": "0.58106416", "text": "private boolean UpdatePC (String op) {\n\t\t\n\t\tif (op.equals(\"next\")) {\n\t\t\tprogramCounter+=4;\n\t\t\treturn true;\n\t\t} else if (op.equals(\"jump\")) {\n\t\t\t//implement jump code\n\t\t\treturn true;\n\t\t} else {\n\t\t\t//implement an exception to throw\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "a6fc93f4700680221b201c26fc05901d", "score": "0.568266", "text": "static int getPc()\n\t{\n\t\treturn pc;\n\t}", "title": "" }, { "docid": "acbb809525fabea05037a77fb82e27e2", "score": "0.5491291", "text": "@Override\r\n\tvoid CL() {\n\t\tSystem.out.println(\"branch1 CL\");\r\n\t}", "title": "" }, { "docid": "b1cb3982418f9022006404d633edf374", "score": "0.54742587", "text": "@Override\n\t\tpublic void process(Client c, Batiment b) {\n\t\t\tif(Simulation.log) {\n\t\t\t\tSystem.out.println(Thread.currentThread() +\"\\n\\tST_GO_RETURN_PALME\\n\");\n\t\t\t}\n\t\t\t// TODO Auto-generated method stub\n\t\t\tb.getPtPalme().returnPalme();\n\t\t\tb.getPtPalme().returnPalme();\n\t\t\tc.setState(ST_LEAVE_POOl);\n\t\t}", "title": "" }, { "docid": "b74d4cee810cd1e3eabe323ec1c785d6", "score": "0.5456896", "text": "@UnsupportedAppUsage\n @Override\n public void processCode() throws CallStateException {\n try {\n boolean bl = this.isShortCode();\n if (bl) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: isShortCode\");\n Serializable serializable = new StringBuilder();\n serializable.append(\"processCode: Sending short code '\");\n serializable.append(this.mDialingNumber);\n serializable.append(\"' over CS pipe.\");\n Rlog.d((String)LOG_TAG, (String)serializable.toString());\n serializable = new CallStateException(\"cs_fallback\");\n throw serializable;\n }\n bl = ImsPhoneMmiCode.isServiceCodeCallForwarding(this.mSc);\n int n = 1;\n if (bl) {\n int n2;\n Rlog.d((String)LOG_TAG, (String)\"processCode: is CF\");\n Object object = this.mSia;\n int n3 = ImsPhoneMmiCode.scToCallForwardReason(this.mSc);\n int n4 = ImsPhoneMmiCode.siToServiceClass(this.mSib);\n int n5 = ImsPhoneMmiCode.siToTime(this.mSic);\n if (this.isInterrogate()) {\n this.mPhone.getCallForwardingOption(n3, this.obtainMessage(1, (Object)this));\n return;\n }\n if (this.isActivate()) {\n if (ImsPhoneMmiCode.isEmptyOrNull((CharSequence)object)) {\n n2 = 1;\n this.mIsCallFwdReg = false;\n } else {\n n2 = 3;\n this.mIsCallFwdReg = true;\n }\n } else if (this.isDeactivate()) {\n n2 = 0;\n } else if (this.isRegister()) {\n n2 = 3;\n } else {\n if (!this.isErasure()) {\n object = new RuntimeException(\"invalid action\");\n throw object;\n }\n n2 = 4;\n }\n int n6 = n3 != 0 && n3 != 4 ? 0 : 1;\n if (n2 != 1 && n2 != 3) {\n n = 0;\n }\n Rlog.d((String)LOG_TAG, (String)\"processCode: is CF setCallForward\");\n this.mPhone.setCallForwardingOption(n2, n3, (String)object, n4, n5, this.obtainMessage(4, n6, n, (Object)this));\n return;\n }\n bl = ImsPhoneMmiCode.isServiceCodeCallBarring(this.mSc);\n if (bl) {\n String string = this.mSia;\n Object object = ImsPhoneMmiCode.scToBarringFacility(this.mSc);\n int n7 = ImsPhoneMmiCode.siToServiceClass(this.mSib);\n if (this.isInterrogate()) {\n this.mPhone.getCallBarring((String)object, this.obtainMessage(7, (Object)this), n7);\n return;\n }\n if (!this.isActivate() && !this.isDeactivate()) {\n object = new RuntimeException(\"Invalid or Unsupported MMI Code\");\n throw object;\n }\n this.mPhone.setCallBarring((String)object, this.isActivate(), string, this.obtainMessage(0, (Object)this), n7);\n return;\n }\n if (this.mSc != null && this.mSc.equals(SC_CLIR)) {\n bl = this.isActivate();\n if (bl) {\n try {\n this.mPhone.mCT.getUtInterface().updateCLIR(1, this.obtainMessage(0, (Object)this));\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for updateCLIR.\");\n return;\n }\n }\n bl = this.isDeactivate();\n if (bl) {\n try {\n this.mPhone.mCT.getUtInterface().updateCLIR(2, this.obtainMessage(0, (Object)this));\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for updateCLIR.\");\n return;\n }\n }\n bl = this.isInterrogate();\n if (!bl) {\n RuntimeException runtimeException = new RuntimeException(\"Invalid or Unsupported MMI Code\");\n throw runtimeException;\n }\n try {\n this.mPhone.mCT.getUtInterface().queryCLIR(this.obtainMessage(6, (Object)this));\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for queryCLIR.\");\n return;\n }\n }\n if (this.mSc != null && this.mSc.equals(SC_CLIP)) {\n bl = this.isInterrogate();\n if (bl) {\n try {\n this.mPhone.mCT.getUtInterface().queryCLIP(this.obtainMessage(7, (Object)this));\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for queryCLIP.\");\n return;\n }\n }\n if (!this.isActivate() && !this.isDeactivate()) {\n RuntimeException runtimeException = new RuntimeException(\"Invalid or Unsupported MMI Code\");\n throw runtimeException;\n }\n try {\n this.mPhone.mCT.getUtInterface().updateCLIP(this.isActivate(), this.obtainMessage(0, (Object)this));\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for updateCLIP.\");\n return;\n }\n }\n if (this.mSc != null && this.mSc.equals(SC_COLP)) {\n bl = this.isInterrogate();\n if (bl) {\n try {\n this.mPhone.mCT.getUtInterface().queryCOLP(this.obtainMessage(7, (Object)this));\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for queryCOLP.\");\n return;\n }\n }\n if (!this.isActivate() && !this.isDeactivate()) {\n RuntimeException runtimeException = new RuntimeException(\"Invalid or Unsupported MMI Code\");\n throw runtimeException;\n }\n try {\n this.mPhone.mCT.getUtInterface().updateCOLP(this.isActivate(), this.obtainMessage(0, (Object)this));\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for updateCOLP.\");\n return;\n }\n }\n if (this.mSc != null && this.mSc.equals(SC_COLR)) {\n bl = this.isActivate();\n if (bl) {\n try {\n this.mPhone.mCT.getUtInterface().updateCOLR(1, this.obtainMessage(0, (Object)this));\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for updateCOLR.\");\n return;\n }\n }\n bl = this.isDeactivate();\n if (bl) {\n try {\n this.mPhone.mCT.getUtInterface().updateCOLR(0, this.obtainMessage(0, (Object)this));\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for updateCOLR.\");\n return;\n }\n }\n bl = this.isInterrogate();\n if (!bl) {\n RuntimeException runtimeException = new RuntimeException(\"Invalid or Unsupported MMI Code\");\n throw runtimeException;\n }\n try {\n this.mPhone.mCT.getUtInterface().queryCOLR(this.obtainMessage(7, (Object)this));\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for queryCOLR.\");\n return;\n }\n }\n if (this.mSc != null && (bl = this.mSc.equals(SC_BS_MT))) {\n try {\n if (this.isInterrogate()) {\n this.mPhone.mCT.getUtInterface().queryCallBarring(10, this.obtainMessage(10, (Object)this));\n return;\n }\n this.processIcbMmiCodeForUpdate();\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for ICB.\");\n return;\n }\n }\n if (this.mSc != null && (bl = this.mSc.equals(SC_BAICa))) {\n int n8 = 0;\n try {\n if (this.isInterrogate()) {\n this.mPhone.mCT.getUtInterface().queryCallBarring(6, this.obtainMessage(10, (Object)this));\n return;\n }\n if (this.isActivate()) {\n n8 = 1;\n } else if (this.isDeactivate()) {\n n8 = 0;\n }\n this.mPhone.mCT.getUtInterface().updateCallBarring(6, n8, this.obtainMessage(0, (Object)this), null);\n return;\n }\n catch (ImsException imsException) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: Could not get UT handle for ICBa.\");\n return;\n }\n }\n if (this.mSc != null && this.mSc.equals(SC_WAIT)) {\n int n9 = ImsPhoneMmiCode.siToServiceClass(this.mSib);\n if (!this.isActivate() && !this.isDeactivate()) {\n if (this.isInterrogate()) {\n this.mPhone.getCallWaiting(this.obtainMessage(3, (Object)this));\n return;\n }\n RuntimeException runtimeException = new RuntimeException(\"Invalid or Unsupported MMI Code\");\n throw runtimeException;\n }\n this.mPhone.setCallWaiting(this.isActivate(), n9, this.obtainMessage(0, (Object)this));\n return;\n }\n if (this.mPoundString == null) {\n Rlog.d((String)LOG_TAG, (String)\"processCode: invalid or unsupported MMI\");\n RuntimeException runtimeException = new RuntimeException(\"Invalid or Unsupported MMI Code\");\n throw runtimeException;\n }\n if (this.mPhone.getDefaultPhone().getServiceStateTracker().mSS.getState() != 0) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"processCode: CS is out of service, sending ussd string '\");\n stringBuilder.append(Rlog.pii((String)LOG_TAG, (Object)this.mPoundString));\n stringBuilder.append(\"' over IMS pipe.\");\n Rlog.i((String)LOG_TAG, (String)stringBuilder.toString());\n this.sendUssd(this.mPoundString);\n return;\n }\n Serializable serializable = new StringBuilder();\n serializable.append(\"processCode: Sending ussd string '\");\n serializable.append(Rlog.pii((String)LOG_TAG, (Object)this.mPoundString));\n serializable.append(\"' over CS pipe.\");\n Rlog.i((String)LOG_TAG, (String)serializable.toString());\n serializable = new CallStateException(\"cs_fallback\");\n throw serializable;\n }\n catch (RuntimeException runtimeException) {\n this.mState = MmiCode.State.FAILED;\n this.mMessage = this.mContext.getText(17040444);\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"processCode: RuntimeException = \");\n stringBuilder.append(runtimeException);\n Rlog.d((String)LOG_TAG, (String)stringBuilder.toString());\n this.mPhone.onMMIDone(this);\n }\n }", "title": "" }, { "docid": "120722a8c9ad91d7ac88361c2e6e9373", "score": "0.54145145", "text": "public static void main(String[] args) {\n t = true;\n f = false;\n \n testAndBranch();\n testOrBranch();\n }", "title": "" }, { "docid": "78962522a93e74e27a88d4df8c76d2bc", "score": "0.53867745", "text": "@Override\r\n\tvoid CL() {\n\t\tSystem.out.println(\"branch2 CL\");\r\n\t}", "title": "" }, { "docid": "4b35d94701197a23c087cb3068d838da", "score": "0.53397137", "text": "protected void setEndingPointCall(int paramInt) {\n/* 753 */ this.endingPointCall = paramInt;\n/* */ }", "title": "" }, { "docid": "1f388356a7485f48bb5220df015dacd1", "score": "0.53193676", "text": "VOFmtA1 execStackResult();", "title": "" }, { "docid": "89eb1addcb217bdc33a07aed4fbb4bc2", "score": "0.5301342", "text": "public void jmpr() {\r\n\t\tjump(((Number) state.pop()).intValue());\r\n\t}", "title": "" }, { "docid": "8d04686a0bbbc79c0c3f7760f86b80c2", "score": "0.52945495", "text": "public void jumpToLabel() {\n\t\tthis.pc = this.label; \n\t}", "title": "" }, { "docid": "9b14e88749a53e92cf532875c1b13319", "score": "0.52615476", "text": "private static void jmp(String a , String b){ // se tiver uma condicao, ela vai estar em b\n\t\tint valor = (Integer.parseInt(a,2)-1); //-1 pq o pc vai ser incrementado\n\t\ta = Integer.toBinaryString(valor);\n\t\ta = String.format(\"%16s\",a).replace(' ', '0');\n\t\tPC.setPC(a);\n\t}", "title": "" }, { "docid": "0efdc372c05aec0caa902b17ee388816", "score": "0.52333164", "text": "@Override\n public int getPC()\n {\n return pc;\n }", "title": "" }, { "docid": "1a675b8287ad751d031ec49f8d88fc69", "score": "0.5183754", "text": "@Override\r\n\tpublic Integer call() throws Exception {\n\t\tSystem.out.println(\"正在忙碌的敲代码\");\r\n\t\treturn 1;\r\n\t}", "title": "" }, { "docid": "fd1feefe384a37707057ee7447fe837e", "score": "0.516382", "text": "void update(long PC, boolean wasTaken) {\n\t//\tlong addr = PC % ((long)nEntries^(long)historyRegister.register);\n\tlong addr = (PC^historyRegister.register) % (long)nEntries;\n\t//long addr = PC % (long)nEntries;\n\tif (wasTaken){\n\t branchHistoryTable[(int)addr].inc();}\n\telse{\n\t branchHistoryTable[(int)addr].dec();}\n\thistoryRegister.update(wasTaken);\n }", "title": "" }, { "docid": "5ccdf70a0049291278dfeb7d8336d928", "score": "0.515202", "text": "@Override\n public void execute(CPU cpu, byte[] data) {\n cpu.setPCL(data[0]);\n cpu.setPCH(data[1]);\n cpu.end();\n }", "title": "" }, { "docid": "381208ec65237134392325afcc8ca3de", "score": "0.5128426", "text": "private void applyCompBranchNames(BigDecimal compCode,BigDecimal branchCode) throws BaseException\r\n {\r\n\t// setting company and branch to the session\r\n \tSessionCO sessionCO = returnSessionObject();\r\n \tCommonLibBO commonLibBO = returnCommonLibBO(); \r\n \tcompaniesVO = commonLibBO.returnCompany(companiesVO);\r\n \t//TP 450108 check if Valid Company Code provided\r\n \tif(companiesVO == null)\r\n \t{\r\n \t throw new BOException(MessageCodes.INVALID_COMPANY_CODE);\r\n \t}\r\n\tif(!ConstantsCommon.ONLY_COMP.equals(sessionCO.getAppLocationType()))\r\n\t{\r\n\t BRANCHESVOKey branchKey = new BRANCHESVOKey();\r\n\t branchKey.setBRANCH_CODE(branchCode);\r\n\t branchKey.setCOMP_CODE(compCode);\r\n\t branchesVO = commonLibBO.returnBranch(branchKey);\r\n\t // TP 450108 check if Valid Branch Code provided\r\n\t if(branchesVO == null)\r\n\t {\r\n\t\tthrow new BOException(MessageCodes.INVALID_BRANCH_CODE);\r\n\t }\r\n\t String brName = branchesVO.getBRIEF_DESC_ENG();\r\n\t if(sessionCO.getIsRTLDir() == 1)\r\n\t {\r\n\t\tbrName = StringUtil.nullEmptyToValue(branchesVO.getBRIEF_DESC_ARAB(), brName);\r\n\t }\r\n\t sessionCO.setBranchName(brName);\r\n\t}\r\n\telse if(compCode != null && sessionCO.getCompanyCode() == null\r\n\t\t&& branchCode != null && sessionCO.getBranchCode() == null) \r\n\t{\r\n\t // to avoid getting 403 error when redirecting to DesctopAction_omniAdminPortal , we need to give FULL ACCESS \r\n\t assignUserAuthentRole(\"ROLE_FULL_ACCESS\");\r\n\t}\r\n\tsessionCO.setCompanyCode(compCode);\r\n\tString cmpName = companiesVO.getBRIEF_DESC_ENG();\r\n\tif(sessionCO.getIsRTLDir() == 1)\r\n\t{\r\n\t cmpName = StringUtil.nullEmptyToValue(companiesVO.getBRIEF_DESC_ARAB(), cmpName);\r\n\t}\r\n\tsessionCO.setCompanyName(cmpName);\r\n\tsessionCO.setBranchCode(branchCode);\r\n }", "title": "" }, { "docid": "761c81e7a3197cfd9c787ae2baf9b1d6", "score": "0.5115558", "text": "public void Execute(int devcode, int opcode)\r\n/* 109: */ {\r\n/* 110:137 */ if (devcode == DevId55) {\r\n/* 111:138 */ switch (opcode)\r\n/* 112: */ {\r\n/* 113: */ case 1: \r\n/* 114:139 */ this.data.skipbus = this.FPFlag;\r\n/* 115:140 */ break;\r\n/* 116: */ case 2: \r\n/* 117:141 */ ClearFlags(DevId55);\r\n/* 118:142 */ break;\r\n/* 119: */ case 3: \r\n/* 120:143 */ if (((!this.FPRun ? 1 : 0) & (!this.FPFlag ? 1 : 0)) != 0) {\r\n/* 121:143 */ setCommand(this.data.data);\r\n/* 122: */ }\r\n/* 123: */ break;\r\n/* 124: */ case 4: \r\n/* 125:145 */ setHalt();\r\n/* 126:146 */ break;\r\n/* 127: */ case 5: \r\n/* 128:147 */ if (((!this.FPRun ? 1 : 0) & (!this.FPFlag ? 1 : 0)) != 0) {\r\n/* 129:147 */ this.data.skipbus = setStart(this.data.data);\r\n/* 130: */ }\r\n/* 131: */ break;\r\n/* 132: */ case 6: \r\n/* 133:149 */ this.data.data = getStatus();\r\n/* 134:150 */ break;\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137:155 */ if (devcode == DevId56) {\r\n/* 138:156 */ switch (opcode)\r\n/* 139: */ {\r\n/* 140: */ case 7: \r\n/* 141:158 */ this.mode = (((!this.FPRun ? 1 : 0) & ((this.data.data & 0x800) > 0 ? 1 : 0)) != 0 ? Mode.EP : this.mode);\r\n/* 142: */ }\r\n/* 143: */ }\r\n/* 144: */ }", "title": "" }, { "docid": "03966cf9878041ed067e8a216837a6b8", "score": "0.5054785", "text": "protected void do_profileNotTakenBranch(int bci) {\n if (methodProfileBuilder != null) {\n int mpoIndex = methodProfileBuilder.addBranchNotTakenCounters(bci);\n start(PROFILE_NOT_TAKEN_BRANCH);\n assignObject(0, \"mpo\", methodProfileBuilder.methodProfileObject());\n assignInt(1, \"mpoIndex\", mpoIndex);\n finish();\n }\n }", "title": "" }, { "docid": "eec4d767853c91a3d656ffb430326efa", "score": "0.505114", "text": "public abstract ExecStateCode execCall(final ExecProcess process) throws Exception;", "title": "" }, { "docid": "e68a17f5a039875ad858264afb884397", "score": "0.50506306", "text": "public void Execute(int devcode, int opcode)\r\n/* 111: */ {\r\n/* 112:102 */ if (devcode == 1)\r\n/* 113: */ {\r\n/* 114:103 */ this.unit = 0;\r\n/* 115:104 */ switch (opcode)\r\n/* 116: */ {\r\n/* 117: */ case 0: \r\n/* 118:105 */ this.prpintena = true;setIntReq(); break;\r\n/* 119: */ case 1: \r\n/* 120:106 */ this.data.skipbus = (this.rdrflag); break;\r\n/* 121: */ case 2: \r\n/* 122:107 */ this.data.data |= this.rdrbuf;setRDR(false); break;\r\n/* 123: */ case 4: \r\n/* 124:108 */ setRDR(false);getChar(); break;\r\n/* 125: */ case 6: \r\n/* 126:109 */ this.data.data |= this.rdrbuf;setRDR(false);getChar();\r\n/* 127: */ }\r\n/* 128: */ }\r\n/* 129:112 */ if (devcode == 2)\r\n/* 130: */ {\r\n/* 131:113 */ this.unit = 1;\r\n/* 132:114 */ switch (opcode)\r\n/* 133: */ {\r\n/* 134: */ case 0: \r\n/* 135:115 */ this.prpintena = false;clearIntReq(); break;\r\n/* 136: */ case 1: \r\n/* 137:116 */ this.data.skipbus = (this.punflag); break;\r\n/* 138: */ case 2: \r\n/* 139:117 */ setPUN(false); break;\r\n/* 140: */ case 4: \r\n/* 141:118 */ punChar(this.data.data); break;\r\n/* 142: */ case 6: \r\n/* 143:119 */ setPUN(false);punChar(this.data.data);\r\n/* 144: */ }\r\n/* 145: */ }\r\n/* 146: */ }", "title": "" }, { "docid": "6163918b39a79e41e6180880e9e8117c", "score": "0.50494003", "text": "static void dobranch(String[] argument) {\n if (argument.length != 2 | !argument[0].equals(\"branch\")) {\n System.out.println(\"Incorrect operands.\");\n System.exit(0);\n }\n branch(argument[1]);\n }", "title": "" }, { "docid": "1be8a1ac333db4c6e778fab2abf46746", "score": "0.504634", "text": "public void setIsReturn(int param) {\r\n\t\tlocalIsReturnTracker = true;\r\n\r\n\t\tthis.localIsReturn = param;\r\n\r\n\t}", "title": "" }, { "docid": "edbd954a0093ad32e46b3a81ef12ec03", "score": "0.50405097", "text": "private void setRet(int value) {\n bitField0_ |= 0x00000002;\n ret_ = value;\n }", "title": "" }, { "docid": "7f77b04875403a46bf878f8d723fb998", "score": "0.50395083", "text": "public void setRetStart(java.lang.String param){\n localRetStartTracker = param != null;\n \n this.localRetStart=param;\n \n\n }", "title": "" }, { "docid": "f34ef1e50f3a210ab8ca221716af5338", "score": "0.5028671", "text": "@Test\n\tpublic void testPCS2() throws ExecutionException {\n\t\tcodeByteBuffer.put(OpCode.SET_VAL.value).putInt(0).put(hexToBytes(\"0000000011111111\"));\n\n\t\tcodeByteBuffer.put(OpCode.SET_PCS.value);\n\t\tint expectedStopAddress = codeByteBuffer.position();\n\n\t\tcodeByteBuffer.put(OpCode.SET_VAL.value).putInt(0).put(hexToBytes(\"0000000022222222\"));\n\n\t\tcodeByteBuffer.put(OpCode.FIN_IMD.value);\n\n\t\tsimulate();\n\n\t\tassertEquals(expectedStopAddress, (int) state.getOnStopAddress());\n\t\tassertTrue(state.isFinished());\n\t\tassertFalse(state.hadFatalError());\n\t}", "title": "" }, { "docid": "d76e04ef1f8a9e83d4ff6c0d8d83ef22", "score": "0.5015284", "text": "public void WB_stage()\r\n\t{\r\n\r\n\t\tif (mem_wb.getReadValue( 2 ) == 1 )\r\n\t\t{\r\n\t\t\tregs.setRegister( mem_wb.getReadValue( 5 ), mem_wb.getReadValue( 4 ) ); //aluRslt\r\n\t\t}\r\n\r\n\t\tif ( mem_wb.getReadValue( 1 ) == 1 )\r\n\t\t{\t \r\n\t\t\tregs.setRegister( mem_wb.getReadValue( 5 ), mem_wb.getReadValue( 3 ) );\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "a3059fa7e3de70a6a169930a284934c7", "score": "0.5009969", "text": "public void incPC() {\n\t\tthis.pc = (this.pc + 1) % this.exe_size;\n\t}", "title": "" }, { "docid": "a3c9a0c9bc085fe4e76dc31d752c8968", "score": "0.50082403", "text": "private void privateExecute( )\n {\n S14467 ();\n if ( returnInSub )\n {\n returnInSub = true;\n cleanup();\n if (true) return;\n }\n GXt_char1 = AV50W_SYS_CRF_ID ;\n GXv_char2[0] = GXt_char1 ;\n new b806_pc01_get_ctrl_val(remoteHandle, context).execute( \"004\", GXv_char2) ;\n b405_pc01_cond_hyoka.this.GXt_char1 = GXv_char2[0] ;\n AV50W_SYS_CRF_ID = GXt_char1 ;\n AV28W_EnzansiAry.add(\"==\", 0);\n AV28W_EnzansiAry.add(\"<=\", 0);\n AV28W_EnzansiAry.add(\">=\", 0);\n AV28W_EnzansiAry.add(\">\", 0);\n AV28W_EnzansiAry.add(\"<\", 0);\n AV28W_EnzansiAry.add(\"!=\", 0);\n AV48W_NGEnzansiAry.add(\"<>\", 0);\n AV48W_NGEnzansiAry.add(\"><\", 0);\n AV48W_NGEnzansiAry.add(\">>\", 0);\n AV48W_NGEnzansiAry.add(\"<<\", 0);\n AV48W_NGEnzansiAry.add(\"=>\", 0);\n AV48W_NGEnzansiAry.add(\"=<\", 0);\n AV48W_NGEnzansiAry.add(\"=!\", 0);\n AV48W_NGEnzansiAry.add(\"===\", 0);\n AV48W_NGEnzansiAry.add(\"!==\", 0);\n AV48W_NGEnzansiAry.add(\"==!\", 0);\n AV48W_NGEnzansiAry.add(\"<==\", 0);\n AV48W_NGEnzansiAry.add(\">==\", 0);\n AV34W_ITEM_DIV_LIST.clear();\n /* Using cursor P004O2 */\n pr_default.execute(0);\n while ( (pr_default.getStatus(0) != 101) )\n {\n A113TAS01_DEL_FLG = P004O2_A113TAS01_DEL_FLG[0] ;\n n113TAS01_DEL_FLG = P004O2_n113TAS01_DEL_FLG[0] ;\n A54TAS01_DATA_KIND = P004O2_A54TAS01_DATA_KIND[0] ;\n A19TAS01_ITEM_NM = P004O2_A19TAS01_ITEM_NM[0] ;\n n19TAS01_ITEM_NM = P004O2_n19TAS01_ITEM_NM[0] ;\n A151TAS01_CHAR_2 = P004O2_A151TAS01_CHAR_2[0] ;\n n151TAS01_CHAR_2 = P004O2_n151TAS01_CHAR_2[0] ;\n A55TAS01_ITEM_CD = P004O2_A55TAS01_ITEM_CD[0] ;\n if ( GxRegex.IsMatch(A151TAS01_CHAR_2,\"^.1...1.*$\") )\n {\n AV33W_ITEM_DIV = (SdtB402_SD04_ITEM_DIV)new SdtB402_SD04_ITEM_DIV(remoteHandle, context);\n AV33W_ITEM_DIV.setgxTv_SdtB402_SD04_ITEM_DIV_Crf_imte_div( A19TAS01_ITEM_NM );\n AV33W_ITEM_DIV.setgxTv_SdtB402_SD04_ITEM_DIV_Use_confing( A151TAS01_CHAR_2 );\n AV34W_ITEM_DIV_LIST.add(AV33W_ITEM_DIV, 0);\n }\n pr_default.readNext(0);\n }\n pr_default.close(0);\n if ( AV34W_ITEM_DIV_LIST.size() < 1 )\n {\n GXt_char1 = AV29W_ERRMSG ;\n GXv_char2[0] = GXt_char1 ;\n new a805_pc01_msg_get(remoteHandle, context).execute( \"AE00075\", \"B06\", \"\", \"\", \"\", \"\", GXv_char2) ;\n b405_pc01_cond_hyoka.this.GXt_char1 = GXv_char2[0] ;\n AV29W_ERRMSG = GXt_char1 ;\n returnInSub = true;\n cleanup();\n if (true) return;\n }\n AV37W_KAKKO_IN = AV8P_EXPRESSION ;\n AV37W_KAKKO_IN = GxRegex.Replace(AV37W_KAKKO_IN,\" \",\"\") ;\n AV37W_KAKKO_IN = GxRegex.Replace(AV37W_KAKKO_IN,\" \",\"\") ;\n AV37W_KAKKO_IN = GxRegex.Replace(AV37W_KAKKO_IN,\"\\\\n\",\"\") ;\n AV37W_KAKKO_IN = GxRegex.Replace(AV37W_KAKKO_IN,\"\\\\r\",\"\") ;\n AV37W_KAKKO_IN = GxRegex.Replace(AV37W_KAKKO_IN,\"\\\\t\",\"\") ;\n if ( (GXutil.strcmp(\"\", AV37W_KAKKO_IN)==0) )\n {\n AV9W_RES = (short)(1) ;\n }\n else\n {\n /* Execute user subroutine: S1186 */\n S1186 ();\n if ( returnInSub )\n {\n returnInSub = true;\n cleanup();\n if (true) return;\n }\n }\n cleanup();\n }", "title": "" }, { "docid": "09256151ff94acdceec89320a2507a1c", "score": "0.49992383", "text": "@Override\n\tpublic void here() {\n\t\tif (isDefined()) {\n\t\t\t// should never happen\n\t\t\tthrow new IllegalStateException(\"label defined twice\");\n\t\t}\n\t\tfor (int pos : fixupList) {\n\t\t\tcode.put2(pos, code.pc - (pos - 1));\n\t\t}\n\t\tfixupList = null;\n\t\tadr = code.pc;\n\t}", "title": "" }, { "docid": "fb9c98265bacd45ba4e4b13a3b1902df", "score": "0.49990404", "text": "protected void setIntermediatePointCall(int paramInt) {\n/* 769 */ this.intermediatePointCall = paramInt;\n/* */ }", "title": "" }, { "docid": "6f480fd650a232db33f51d0506761412", "score": "0.49973372", "text": "public void execute(VirtualMachine vm) {\n if (vm.runStackPop() == 0) {\n vm.setProgramCounter(Integer.parseInt(label.split(\"\\\\s\")[1]));\n }\n }", "title": "" }, { "docid": "66f03ec7ae2c7b3ca9d0453a0da2b1e8", "score": "0.49924713", "text": "private void runningToBank() {\n\t}", "title": "" }, { "docid": "4680fe04e8d793f699a6a637fd726ae0", "score": "0.49919984", "text": "private int codeChecker(CarPark mcp, int code, boolean isExitToken) {\n if (code == 9999) {\n code = 1111;\n }\n do {\n code++;\n } while (equalCodes(mcp, code, isExitToken));\n return code;\n }", "title": "" }, { "docid": "04e04d73fc1eb225cbcb01ed96a66439", "score": "0.49865597", "text": "static void execute() {\n for (;;) {\n VM.threadSwitch();\n switch(code) {\n case EXTEND: {\n/*if[CHUNKY_STACKS]*/\n if (Thread.extendStack()) {\n break;\n }\n/*end[CHUNKY_STACKS]*/\n pendingException = VM.getOutOfMemoryError(); // and drop through to THROW\n }\n case THROW: {\n VM.throwException(pendingException);\n break;\n }\n case GARBAGE_COLLECT: {\n GC.collectGarbage();\n break;\n }\n case COPY_OBJECT_GRAPH: {\n GC.copyObjectGraph(o1, (ObjectMemorySerializer.ControlBlock)o2.toObject(), i1 == 1);\n break;\n }\n case CHANNELIO: {\n cioExecute();\n break;\n }\n default: {\n VM.fatalVMError();\n break;\n }\n }\n o1 = null;\n o2 = null;\n }\n }", "title": "" }, { "docid": "e694465bec9d295a3f6cc6231cc7b6fb", "score": "0.49712667", "text": "public long getPc() {\n\t\treturn pc;\n\t}", "title": "" }, { "docid": "2119d33fa702548bc0a800b31e8f7a3e", "score": "0.4968983", "text": "void Crint(int a[],int p[])\n\t{\n\t\t\n\t\t/* if there is a cpu that has cpu bookkeep\n\t\t * - if a[] = 2\n\t\t * \t- save process that has cpu\n\t\t * \t\t- save state to pcb\n\t\t * else \n\t\t * call swapper to put jobs from job table to in memory\n\t\t * \t- create new pcb with p[] data\n\t\t * - put new pcb in jobtable\n\t\t * - call swapper to look through job table to find a job to put into memory\n\t\t * \n\t\t * add job to ready queue\n\t\t * call dispatcher\n\t\t * \n\t\t * */\n\t\t\n\t\t\n\t\t\n\t\t//call swapper to put job in memory\n\t\t//put job in ready queue, maybe do that in swapper?\n\t\t\n\t\t//before leaving any interrupt a[] p[] must be set\n\t\t//a* is state of cpu, 1= no jobs to run, cpu will wait until interrupt, ignore p values\n\t\t//a[] = 2, set cpu to run mode, must set p[] values\n\t\t/*\n\t\t * p[0],p[1],p[5] are ignored\n\t\t * p[2] = base addres of job to be run(mem address)\n\t\t * p[3] = size\n\t\t * p[4] = time quantom\n\t\t * probably a call to the dispatcher\n\t\t * */\n\t\t//leave each interrupt with return statement?\n\t}", "title": "" }, { "docid": "a647e6ba0362bcca558e4f0bd5367086", "score": "0.49681598", "text": "@Override\n\tpublic void accept(Machine machine) {\n\t\tif (parameter.isPresent()) {\n\t\t\tmachine.saveMemoryAddress();\n\t\t\tmachine.setLocation(parameter.get());\n\t\t}\n\t\tmachine.saveReturnAddress();\n\t\tmachine.setInstrPointer(proc.getPosition()-1); //-1, because the instruction pointer is incremented right after the execution of the Procedure instruction.\n\t}", "title": "" }, { "docid": "123a972b18bd51644e452a8a2662b389", "score": "0.4964997", "text": "@Override\n\tpublic void onEndInstrExecution(int pc, Memory<Integer> memoria,\n\t\t\tOperandStack<Integer> pila) {\n\t\t\n\t}", "title": "" }, { "docid": "39707c5822118bbbc038105224ce38b0", "score": "0.49391058", "text": "public static void main(String[] args) {\n\t\t\n\t\tReenteredCode code = new ReenteredCode();\n\t\tcode.enter();\n\t\t\n\t}", "title": "" }, { "docid": "5f12e5b541e4ad42504a0911e66d72ad", "score": "0.49387178", "text": "@Override\r\n\tpublic void processFinish(String output) {\n\t\t jump(\"0\");\r\n\t}", "title": "" }, { "docid": "cd81306ae6b248c71700007db9bc528c", "score": "0.49301246", "text": "public static void main(String[] args) {\n controlFlowUsingContinueWithoutLabel();\n }", "title": "" }, { "docid": "60f5fd9c6b8a17f5f5b4cacae30b831d", "score": "0.49295667", "text": "public void caseCall(CALL node)\n\t{\t\n\t\t//sets currentName equal to the call's name\n\n\t\tif(node.func != null) //this changes the current name\n\t\t\tvisit(node.func);\t\n\n\t\tString name = currentName;\n\n\t\tExpList temp = node.args;\n\t\tExp head = temp.head;\n\n\t\tif(head instanceof CALL)\n\t\t{\n\t\t\tnewLine(indent + \"#Setting up call to \" + currentName + \" (nested)\");\n\t\t\tbuildMethod(indent + \"jal \" + name);\n\n\t\t\tvisit(head);\n\n\t\t\tnewLine(indent + \"jal \" + name);\n\t\t\tbuildMethod(indent + \"jal \" + name);\n\t\t\tnewLine(indent + \"#Done with call to \" + name);\n\t\t\tbuildMethod(indent + \"#Done with call to \" + name);\n\n\t\t\tcurrentReg = new REG(new Reg(\"$v0\"));\n\n\t\t\treturn;\n\t\t}\n\n\t\tbuildMethod(indent + \"#Setting up call to \" + currentName);\n\n\t\tArrayList<REG> args = new ArrayList<REG>();\n\t\tArrayList<Exp> doAfter = new ArrayList<Exp>();\n\n\t\twhile(head != null)\n\t\t{ \t\n\t\t\tif(head instanceof ESEQ)\n\t\t\t{\n\t\t\t\tdoAfter.add(head);\n\t\t\t\tif(temp.tail==null)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\thead = temp.tail.head;\n\t\t\t\t\ttemp = temp.tail;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcurrentReg = allocator.requestAReg();\n\t\t\t\tinUse.add(currentReg);\n\t\t\t\tvisit(head);\n\n\t\t\t\targs.add(currentReg);\n\n\t\t\t\tif(temp.tail == null)\n\t\t\t\t\tbreak;\n\n\t\t\t\thead = temp.tail.head;\n\t\t\t\ttemp = temp.tail;\n\t\t\t}\n\t\t}\n\n\t\tfor(Exp exp: doAfter)\n\t\t{\n\t\t\tif(exp instanceof ESEQ)\n\t\t\t{\n\t\t\t\tvisit(exp);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//restore a registers\n\t\tfor(REG reg : inUse)\n\t\t{\n\t\t\t//if(allocator.isAnAReg(reg))\n\t\t\t\tallocator.restore(reg);\t\n\t\t}\n\t\tnewLine(indent + \"jal \" + name);\n\t\tbuildMethod(indent + \"jal \" + name);\n\t\tnewLine(indent + \"#Done with call to \" + name);\n\t\tbuildMethod(indent + \"#Done with call to \" + name);\n\n\n\t\tif(!name.equals(\"print\") && !name.equals(\"malloc\") && currentLabel.equals(\"main\"))\n\t\t{\n\t\t\tREG param = allocator.requestAReg();\n\t\t\tnewLine(indent + \"move \" + regString(param) + \", $v0\");\n\t\t}\n\n\t\tcurrentReg = new REG(new Reg(\"$v0\"));\n\n\n\t\tgui.tick(allocator);\n\t}", "title": "" }, { "docid": "ba3e608531a65a4e4aaae9c8f5f85807", "score": "0.4926988", "text": "void _goto(final Label label) {\n\tdebug(\"goto\", label);\n\tjump(GOTO, label, 0);\n\tdoesNotContinueSequentially(); //whoever reaches the point after us provides the stack, because we don't\n }", "title": "" }, { "docid": "ce372d1b55ab3f2736da6e66bf472670", "score": "0.492487", "text": "public boolean c()\r\n/* 89: */ {\r\n/* 90:106 */ return false;\r\n/* 91: */ }", "title": "" }, { "docid": "ce1f8a9e688732a79df7d4d050281fe2", "score": "0.49201652", "text": "public CoreObject b_assign(CoreCall cc) throws InterpreterException\n\t{\n\t\t/*\n\t\t * first, switch on assignmentMode to track where this assignment will be going\n\t\t */\n\t\tInterpreter.instance.beginAssignmentMode();\n\t\tCoreObject destination = cc.argPop();\n\t\tAssignmentTag destinationLocation = Interpreter.instance.endAssignmentMode(destination);\n\t\t\n\t\tCoreObject source = cc.argPop();\n\n\t\tdestinationLocation.doAssignment(cc, source);\n\t\t\n\t\t//Interpreter.instance.debugTrace.append(\"assign \"+destinationLocation.container+\" \"+destinationLocation.name+\"=\"+source+\"\\n\");\n\t\t\n\t\tif(source.isExecutable())\n\t\t\treturn new CoreObject();\n\t\t\n\t\treturn source;\n\t}", "title": "" }, { "docid": "195ad2deed00a8da6da552b39429d262", "score": "0.49192682", "text": "protected void setStartingPointCall(int paramInt) {\n/* 785 */ this.startingPointCall = paramInt;\n/* */ }", "title": "" }, { "docid": "69d324260279dba899c08ca72fb276eb", "score": "0.4918003", "text": "@Test\r\n\tpublic void testProcessReturn() {\r\n\t\tmgr.processRental();\r\n\t\tassertTrue(mgr.hasRentedCars());\r\n\r\n\t\tmgr.processReturn(false);\r\n\r\n\t\tassertTrue(mgr.hasDetailingCars());\r\n\r\n\t\tassertTrue(mgr.hasWaitingCustomers());\r\n\t\tCar c2 = new Car(\"F2345\", \"Ford\", \"Escape\", \"Blue\");\r\n\t\tmgr.addCar(c2);\r\n\r\n\t\tassertTrue(mgr.hasAvailableCars());\r\n\t\tmgr.rentCar();\r\n\t\tmgr.processReturn(true);\r\n\r\n\t\tassertTrue(mgr.hasRepairingCars());\r\n\r\n\t}", "title": "" }, { "docid": "10ca35360e205ddf7ef15c78d82076f2", "score": "0.49158764", "text": "protected void setCurrentExecutionPoint(int paramInt) {\n/* 897 */ this.currentExecutionPoint = paramInt;\n/* */ }", "title": "" }, { "docid": "92d60ab6c30895b98114b5b15c66950a", "score": "0.49140948", "text": "static /* synthetic */ boolean m143-set0(com.android.internal.telephony.cat.BipService r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00eb in method: com.android.internal.telephony.cat.BipService.-set0(com.android.internal.telephony.cat.BipService, boolean):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.internal.telephony.cat.BipService.-set0(com.android.internal.telephony.cat.BipService, boolean):boolean\");\n }", "title": "" }, { "docid": "679860aadb3e0f6daeae36d6baf02deb", "score": "0.49102926", "text": "@Override\r\n\tpublic void chain() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ef9d8df8e6f8ff76534cdd6c3fd19e20", "score": "0.49087447", "text": "void beforeExit(IUseCase useCase, Object[] params);", "title": "" }, { "docid": "2c8f22637185f09a5da55c5939aa3633", "score": "0.49074942", "text": "private void goB() {\n\n }", "title": "" }, { "docid": "e873ac4fc1a77557a273722c3cc80668", "score": "0.49027246", "text": "public void jumpAddrIfEqual();", "title": "" }, { "docid": "dd9af758572f2ff5b5d331db9d637226", "score": "0.48956668", "text": "public boolean c() {\n /*\n r3 = this;\n monitor-enter(r3);\n r0 = r3.e;\t Catch:{ all -> 0x0023 }\n if (r0 == 0) goto L_0x0008;\n L_0x0005:\n r0 = 0;\n monitor-exit(r3);\t Catch:{ all -> 0x0023 }\n return r0;\n L_0x0008:\n r0 = r3.f;\t Catch:{ all -> 0x0023 }\n r1 = 1;\n if (r0 == 0) goto L_0x000f;\n L_0x000d:\n monitor-exit(r3);\t Catch:{ all -> 0x0023 }\n return r1;\n L_0x000f:\n r3.f = r1;\t Catch:{ all -> 0x0023 }\n r0 = r3.a;\t Catch:{ all -> 0x0023 }\n r2 = 0;\n r3.a = r2;\t Catch:{ all -> 0x0023 }\n monitor-exit(r3);\t Catch:{ all -> 0x0023 }\n if (r0 == 0) goto L_0x001c;\n L_0x0019:\n r0.c();\n L_0x001c:\n r3.a();\n r3.b();\n return r1;\n L_0x0023:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0023 }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.future.SimpleCancellable.c():boolean\");\n }", "title": "" }, { "docid": "51d8c6a76df1d38e8447ef4de4d4d19e", "score": "0.4895237", "text": "private void setHalt()\r\n/* 211: */ {\r\n/* 212:223 */ if (this.FPRun)\r\n/* 213: */ {\r\n/* 214:224 */ this.FPRun = false;\r\n/* 215:225 */ if (this.FPPause) {\r\n/* 216:226 */ this.a.setFPC(this.a.getFPC() - 1);\r\n/* 217: */ }\r\n/* 218: */ }\r\n/* 219: */ else\r\n/* 220: */ {\r\n/* 221:229 */ this.FPRun = true;\r\n/* 222:230 */ this.FPsstep = true;\r\n/* 223: */ }\r\n/* 224:232 */ this.a.store(this.APTP);\r\n/* 225:233 */ this.FPFlag = true;\r\n/* 226:234 */ this.hltExit = true;\r\n/* 227: */ }", "title": "" }, { "docid": "d876663f227ed35263e5fc0e1e04974a", "score": "0.48889142", "text": "public void setCodcla(java.lang.String param){\n localCodclaTracker = param != null;\n \n this.localCodcla=param;\n \n\n }", "title": "" }, { "docid": "76982983aa78924a943938b48f9a90bb", "score": "0.48846012", "text": "public void setTopupCode(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localTopupCodeTracker = true;\r\n } else {\r\n localTopupCodeTracker = true;\r\n \r\n }\r\n \r\n this.localTopupCode=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "76982983aa78924a943938b48f9a90bb", "score": "0.48846012", "text": "public void setTopupCode(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localTopupCodeTracker = true;\r\n } else {\r\n localTopupCodeTracker = true;\r\n \r\n }\r\n \r\n this.localTopupCode=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "76982983aa78924a943938b48f9a90bb", "score": "0.48846012", "text": "public void setTopupCode(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localTopupCodeTracker = true;\r\n } else {\r\n localTopupCodeTracker = true;\r\n \r\n }\r\n \r\n this.localTopupCode=param;\r\n \r\n\r\n }", "title": "" }, { "docid": "a63bc81c2e3f0d3dba88071abd150a18", "score": "0.48757702", "text": "private void step()\n {\n Register.incrementClockCounter(); // Increment the clock counter on every cycle run\n processorPipeline.execute(pipelineContext); // Execute/run the pipeline for the current cycle\n pipelineStatus.print(pipelineContext); // Execute the utility stage to print the current status of the pipeline (Executing it separately/manually since it's not been added to the actual pipeline)\n if (!((ProcessorPipelineContext) pipelineContext).getCorrectBranchPrediction()) // If the branch predictor mispredicted\n {\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\n System.out.println(\"+ ----->>>> Flushing pipeline (Branch was mispredicted) <<<<----- +\");\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\\n\");\n ((SequentialProcessorPipeline) processorPipeline).flush(pipelineContext); // Flush the pipeline (i.e. flush each stage in the pipeline)\n ((ProcessorPipelineContext) pipelineContext).setCorrectBranchPrediction(GlobalConstants.CORRECT_BRANCH_PREDICTION_RESULT); // Revert the variable back to it's default value after the pipeline has been flushed\n }\n ((InstructionFetchStage) ((ProcessorPipelineContext) pipelineContext).getIF_Stage()).resetBranchPredictorResult(); // Reset the branch predictor result in the IF stage back to its default value at the end of every cycle\n // this.dumpState(); // Dump the state of the cpu every cycle\n }", "title": "" }, { "docid": "2a435ccb7dcebdad09c5c618cf52b900", "score": "0.48748156", "text": "private void updateCurrentChannelStatus(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.internal.telephony.cat.BipService.updateCurrentChannelStatus(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.internal.telephony.cat.BipService.updateCurrentChannelStatus(int):void\");\n }", "title": "" }, { "docid": "4ed0eecd1446903cde6ebb3d0f89b0c4", "score": "0.48744062", "text": "public void jumpAddrIfNotEqual();", "title": "" }, { "docid": "75b57deb298324b02bf8d7d4635a2c45", "score": "0.4869837", "text": "@Override\n\tpublic void execute(Machine m) {\n\t\t\n\t}", "title": "" }, { "docid": "63f23e495a184fba479ddcc98d66c530", "score": "0.48674694", "text": "public void exec(Environment env)\n {\n int val = 0;\n if(cond.eval(env) != 0)\n val = 1;\n if(val == 1)\n state1.exec(env);\n\n else if(state2 != null)\n {\n state2.exec(env);\n }\n }", "title": "" }, { "docid": "a4553e0027155e8118e52ec2e7f06493", "score": "0.48636588", "text": "public void setPcValue(int pcValue) {\n\t\tthis.pcValue = pcValue;\n\t}", "title": "" }, { "docid": "8782f2f406eca42aedd0a05503cd263c", "score": "0.48534614", "text": "@Override\n public void exitPcode(gram.PcodeContext ctx) {\n code = ctx.getText().substring(2);\n }", "title": "" }, { "docid": "bbacf46842d5d6223c68cf8dc3d879c7", "score": "0.4843874", "text": "public void setCodpla(java.lang.String param){\n localCodplaTracker = param != null;\n \n this.localCodpla=param;\n \n\n }", "title": "" }, { "docid": "823b8e142676f38551c863893086602b", "score": "0.4842388", "text": "@Override\n public void executeAction(BusiTradeData btd) throws Exception\n {\n List<MainTradeData> mainList = btd.getTradeDatas(TradeTableEnum.TRADE_MAIN);\n\n ChangePhonePreRegisterRequestData changePhoneRD = (ChangePhonePreRegisterRequestData) btd.getRD();\n\n mainList.get(0).setRemark(btd.getRD().getRemark());\n mainList.get(0).setRsrvStr2(\"GH\");\n mainList.get(0).setRsrvStr3(changePhoneRD.getOldSerialNum());\n mainList.get(0).setRsrvStr4(changePhoneRD.getNewSerialNum());\n mainList.get(0).setRsrvStr5(changePhoneRD.getPsptId());\n mainList.get(0).setRsrvStr6(changePhoneRD.getPsptTypeCode());\n\n String new_province = changePhoneRD.getNewProvince();\n String old_province = changePhoneRD.getOldProvince();\n if (\"A\".equals(new_province) && \"A\".equals(old_province))\n {\n\n }\n else if (\"B\".equals(new_province) && \"B\".equals(old_province))\n {\n this.provinceInDeal(btd);\n // IDataset dataset = CSAppCall.call(this, \"SS.ChangePhonePreRegisterRegSVC.tradeReg\",btd.getRD().);\n\n }\n else\n {\n this.provinceOutDeal(btd);\n }\n\n }", "title": "" }, { "docid": "67c8caa3b97c8b2160ab342bafe79597", "score": "0.483603", "text": "public void jump(){}", "title": "" }, { "docid": "de41525e1c0067349eba6c9aec449ad1", "score": "0.48349467", "text": "protected static void setHandleMethodSuccessorParam(IOInterfacesGenerator iogen, Role self, EState succ, MethodBuilder mb, List<EAction> as, Map<EAction, Integer> count)\n\t{\n\t\tif (succ.isTerminal())\n\t\t{\n\t\t\tmb.addParameters(ScribSockGen.ENDSOCKET_CLASS + \"<?, ?> end\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tInterfaceBuilder next = iogen.getIOStateInterface(IOStateIfaceGen.getIOStateInterfaceName(self, succ)); // Select/Receive/Branch\n\t\t\tString ret = next.getName() + \"<\";\n\t\t\t/*//ret += \"<\" + next.getParameters().stream().map((p) -> \"__Succ\" + i++).collect(Collectors.joining(\", \")) + \">\"; // FIXME: fragile?\n\t\t\tboolean first = true;\n\t\t\tfor (String p : next.getParameters())\n\t\t\t{\n\t\t\t\tif (first)\n\t\t\t\t{\n\t\t\t\t\tfirst = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tret += \", \";\n\t\t\t\t}\n\t\t\t\tret += \"__Succ\" + i++;\n\t\t\t}\n\t\t\tret += \">\";\n\t\t\tmb.addParameters(ret + \" schan\");\n\t\t\t\n\t\t\t// duplicates possible? -- can have repeat continuations, but the branch operation ops themselves will be distinct\n\t\t}\n\t\treturn i;*/\n\t\t\n\t\t\t//Map<IOAction, Integer> ount = new HashMap<>();\n\t\t\tboolean first = true;\n\t\t\tfor (EAction a : succ.getDetActions().stream().sorted(IOStateIfaceGen.IOACTION_COMPARATOR).collect(Collectors.toList()))\n\t\t\t{\n\t\t\t\tint offset;\n\t\t\t\tif (!count.containsKey(a))\n\t\t\t\t{\n\t\t\t\t\toffset = 0;\n\t\t\t\t\tcount.put(a, 0);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\toffset = count.get(a) + 1;\n\t\t\t\t\tcount.put(a, offset);\n\t\t\t\t}\n\t\t\t\t//if (count.keySet().size() > 1)\n\t\t\t\tif (first)\n\t\t\t\t{\n\t\t\t\t\tfirst = false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tret += \", \";\n\t\t\t\t}\n\t\t\t\tret += \"__Succ\" + (as.indexOf(a) + 1 + offset);\n\t\t\t}\n\t\t\tret += \">\";\n\t\t\tmb.addParameters(ret + \" schan\");\n\t\t}\n\t}", "title": "" }, { "docid": "52332b5beb37f9c36608a607b08b92e1", "score": "0.4831167", "text": "void pushCode();", "title": "" }, { "docid": "f57d86fa355e83630e894b462e977d63", "score": "0.48296776", "text": "private void addPcToResult(@NonNull Map<String, Set<@NonNull Formula>> result, @NonNull Formula pc) {\n if (combineNonBoolean) {\n pc = helper.removeReplacements(pc);\n }\n \n Set<@NonNull Variable> vars = new HashSet<>();\n helper.findVars(pc, vars);\n for (Variable var : vars) {\n result.putIfAbsent(var.getName(), new HashSet<>());\n result.get(var.getName()).add(pc);\n }\n }", "title": "" }, { "docid": "6f6de3b2549b2e47b584515e58904cc7", "score": "0.4824394", "text": "private void codeAndTestsWorkToNextPhase(){\n update(false);\n RealCompileManager compiler = new RealCompileManager(cm.getCode(),cm.getTest().getDateiname(),cm.getTest().getKlasse());\n compiler.runCompiler();\n if(compiler.compiles()&&compiler.getNumberOfFailedTests()==0) {\n replaceBackupCode();\n if(currentState.equalsIgnoreCase(\"green\")){\n currentState = \"Refactor\";\n }\n else if(currentState.equalsIgnoreCase(\"refactor\")&&atdd){\n currentState = \"ATDD\";\n printToGUI(cm.getCode(),cm.getakTest());\n fromATTDtoRed();\n }\n else{\n currentState = \"Red\";\n isgoingbackwardallwed = true;\n }\n }\n else{\n im.writeToConsole(compiler.getCompileErrors());\n if(compiler.compiles())\n im.writeToConsole(compiler.getTestErrors());\n }\n }", "title": "" }, { "docid": "543221a95a73634601e80be9a556ae16", "score": "0.48242584", "text": "protected int getEndingPointCall() {\n/* 761 */ return this.endingPointCall;\n/* */ }", "title": "" }, { "docid": "6b92cab232fa803aa0ba9c4470fe836a", "score": "0.48193437", "text": "private boolean branchOverGoto(final MethodNode mn) {\n boolean touched = false;\n InsnList insns = mn.instructions;\n Iterator<AbstractInsnNode> i = insns.iterator();\n while (i.hasNext()) {\n AbstractInsnNode insn = i.next();\n if (Util.isCondJump(insn)) {\n JumpInsnNode condJump = (JumpInsnNode)insn;\n AbstractInsnNode uncondJump = Util.execInsnOrLabelAfter(insn);\n if(Util.isGOTO(uncondJump)) {\n AbstractInsnNode dest = Util.execInsnOrLabelAfter(uncondJump);\n if(Util.isLabel(dest)) {\n LabelNode destLabel = (LabelNode)dest;\n if(Util.denoteSameTarget(condJump.label, destLabel)) {\n\n int negatedOpc = -1;\n switch (condJump.getOpcode()) {\n\n case Opcodes.IFEQ: negatedOpc = Opcodes.IFNE; break;\n case Opcodes.IFNE: negatedOpc = Opcodes.IFEQ; break;\n\n case Opcodes.IFLT: negatedOpc = Opcodes.IFGE; break;\n case Opcodes.IFGE: negatedOpc = Opcodes.IFLT; break;\n\n case Opcodes.IFGT: negatedOpc = Opcodes.IFLE; break;\n case Opcodes.IFLE: negatedOpc = Opcodes.IFGT; break;\n\n case Opcodes.IF_ICMPEQ: negatedOpc = Opcodes.IF_ICMPNE; break;\n case Opcodes.IF_ICMPNE: negatedOpc = Opcodes.IF_ICMPEQ; break;\n\n case Opcodes.IF_ICMPLT: negatedOpc = Opcodes.IF_ICMPGE; break;\n case Opcodes.IF_ICMPGE: negatedOpc = Opcodes.IF_ICMPLT; break;\n\n case Opcodes.IF_ICMPGT: negatedOpc = Opcodes.IF_ICMPLE; break;\n case Opcodes.IF_ICMPLE: negatedOpc = Opcodes.IF_ICMPGT; break;\n\n case Opcodes.IF_ACMPEQ: negatedOpc = Opcodes.IF_ACMPNE; break;\n case Opcodes.IF_ACMPNE: negatedOpc = Opcodes.IF_ACMPEQ; break;\n\n case Opcodes.IFNULL: negatedOpc = Opcodes.IFNONNULL; break;\n case Opcodes.IFNONNULL: negatedOpc = Opcodes.IFNULL; break;\n\n }\n\n assert negatedOpc != -1;\n JumpInsnNode updCondInsn = new JumpInsnNode(negatedOpc, ((JumpInsnNode)uncondJump).label);\n\n mn.instructions.set(condJump, updCondInsn);\n mn.instructions.remove(uncondJump);\n\n touched = true;\n }\n }\n }\n }\n }\n return touched;\n }", "title": "" }, { "docid": "05cf16da033856cb80d975c6f1ee8a8c", "score": "0.48000184", "text": "public void run(){\n int userChoice;\n do{\n speakerP.startup();\n userChoice = speakerP.chooseOption(speakerP.getchoicelist(1), \"Please Choose an Option:\", \"Invalid Choice! Please Try Again:\");\n enterBranch(userChoice);\n } while (userChoice != 3);\n }", "title": "" }, { "docid": "d1b19aa11f4fb9d1279414eee9f9c80b", "score": "0.47973648", "text": "public void setANDmoveLOC(int nowloc)//seems like i should move this function to other class\r\n\t{\n\t\tsetLOC(nowloc);//setLOC\r\n\t\t//AssemblerDemo.setLOCCTR(nowloc + 3);//default increase\r\n\t\tsetFORMAT(OPTAB.getFORMAT(getOP()));\r\n\t\tif(getOP().equals(\"BYTE\"))\r\n\t\t{\r\n \t\tif(getOPERAND().charAt(0) == 'C')\r\n \t\t\tAssemblerDemo.setLOCCTR(nowloc + getOPERAND().length() - 3);\r\n \t\telse if(getOPERAND().charAt(0)=='X')\r\n \t\t\tAssemblerDemo.setLOCCTR(nowloc + (getOPERAND().length() - 3)/2);\r\n\t\t}\r\n \telse if(getOP().equals(\"WORD\"))\r\n \t\tAssemblerDemo.setLOCCTR(nowloc + 3);\r\n \telse if(getOP().equals(\"RESB\"))\r\n \t\tAssemblerDemo.setLOCCTR(nowloc + 1 * Integer.parseInt(getOPERAND()));\r\n \telse if(getOP().equals(\"RESW\"))\r\n \t\tAssemblerDemo.setLOCCTR(nowloc + 3 * Integer.parseInt(getOPERAND()));\r\n \telse\r\n \t{\r\n \t\tswitch(getFORMAT())\r\n \t\t{\r\n \t\t\tcase 0:break;//assembler directive, need to be modified\r\n \t\t\tcase 1:AssemblerDemo.setLOCCTR(nowloc+1);break;\r\n \t\t\tcase 2:AssemblerDemo.setLOCCTR(nowloc+2);break;\r\n \t\t\tcase 3:AssemblerDemo.setLOCCTR(nowloc+3);break;\r\n \t\t\tcase 4:AssemblerDemo.setLOCCTR(nowloc+4);break;\r\n \t\t}\r\n \t}\r\n\t}", "title": "" }, { "docid": "8d0c7315e8223d7949ac7af446414e93", "score": "0.47881812", "text": "private static Object execute(Exom function, Exom call) {\n\t\t// new context is call with parent context \n\t\tExom parentContext = contexts.peek();\n\t\tcall.putAllNO(parentContext);\n\t\tcontexts.push(call);\n\t\t// extract lines in function\n\t\tList<Object> lines = Utils.indexed(function);\n\t\t// execute each instruction\n\t\tfor (Object line: lines) {\n\t\t\tif (line instanceof Exom) {\n\t\t\t\tExom instruction = (Exom) line;\n\t\t\t\tinstruction(instruction);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(contexts.peek().toString());\n\t\t// verify if we have a return value\n\t\tObject result = null;\n\t\tif (call.containsKey(\"_return\")) {\n\t\t\tresult = call.get(\"_return\");\n\t\t}\n\t\t// pop context\n\t\tcontexts.pop();\n\t\treturn result;\n\t}", "title": "" }, { "docid": "3cadb9d0b8e4f6e53c241244fad1d0c1", "score": "0.47844523", "text": "protected int getIntermediatePointCall() {\n/* 777 */ return this.intermediatePointCall;\n/* */ }", "title": "" }, { "docid": "bdbf1316a64d9be74ac9578e9dec5c1b", "score": "0.4774993", "text": "@Override\n\tpublic void call() {\n\t\tSystem.out.println(\"ÀÏÊó\"+call+\"½Ð\");\n\t}", "title": "" }, { "docid": "eb8647f2795a6dcbdfd8f2859fe26908", "score": "0.47740144", "text": "public call_result(call_result other) {\n if (other.isSetSuccess()) {\n this.success = org.apache.thrift.TBaseHelper.copyBinary(other.success);\n;\n }\n if (other.isSetEx()) {\n this.ex = new CrucException(other.ex);\n }\n }", "title": "" }, { "docid": "8af23bbc80406964282e82a543393b30", "score": "0.47706416", "text": "public void methodC() {\n\t\tSystem.out.println(\"source sub2's method C\");\n\t}", "title": "" }, { "docid": "e5ada89794e57a05127397e4ad0b8ef1", "score": "0.4760457", "text": "@Override\n public void exec() {\n if (gamepad.getButton(GamepadEnum.A_BUTTON)) {\n //Intake Forward\n moveSetpoint.set(22, -60);\n } else if (gamepad.getButton(GamepadEnum.B_BUTTON)) {\n //Switch Forward\n moveSetpoint.set(0, -10);\n } else if (gamepad.getButton(GamepadEnum.X_BUTTON)) {\n //Scale Low Forward\n moveSetpoint.set(18, 72);\n } else if (gamepad.getButton(GamepadEnum.Y_BUTTON)) {\n //Scale High Front\n \tmoveSetpoint.set(31, 83,20);\n } else if (gamepad.getDpad(GamepadEnum.DPAD_DOWN)) {\n //Intake Backward\n moveSetpoint.set(22, 240);\n } else if (gamepad.getDpad(GamepadEnum.DPAD_LEFT)) {\n //Switch Backward\n moveSetpoint.set(0, 190);\n } else if (gamepad.getDpad(GamepadEnum.DPAD_RIGHT)) {\n //Scale Low Backward\n moveSetpoint.set(18, 108);\n } else if (gamepad.getDpad(GamepadEnum.DPAD_UP)) {\n \t//Scale High Backward\n moveSetpoint.set(31, 97,-20);\n }else if(gamepad.getTrigger(GamepadEnum.LEFT_TRIGGER)){\n \tif (zeroArm.getStatus() == Status.STOP)\n \t\tzeroArm = new ZeroArm(); \t\n \tzeroArm.exec();\n \t\n }else if (moveSetpoint.getStatus() == Status.EXEC){\n \tmoveSetpoint.exec();\n }\n }", "title": "" }, { "docid": "23317de057bacacd2f38bceda79191af", "score": "0.47589007", "text": "public static synchronized void c(int r2, java.lang.String r3) {\n /*\n java.lang.Class<clx> r0 = defpackage.clx.class\n monitor-enter(r0)\n r1 = 3\n if (r2 != r1) goto L_0x001c\n com.amap.bundle.mapstorage.MapSharePreference r2 = new com.amap.bundle.mapstorage.MapSharePreference // Catch:{ all -> 0x001a }\n java.lang.String r3 = \"accs_network\"\n r2.<init>(r3) // Catch:{ all -> 0x001a }\n android.content.SharedPreferences$Editor r2 = r2.edit() // Catch:{ all -> 0x001a }\n android.content.SharedPreferences$Editor r2 = r2.clear() // Catch:{ all -> 0x001a }\n r2.commit() // Catch:{ all -> 0x001a }\n monitor-exit(r0)\n return\n L_0x001a:\n r2 = move-exception\n goto L_0x0052\n L_0x001c:\n r1 = 4\n if (r2 == r1) goto L_0x0024\n if (r2 == 0) goto L_0x0024\n r1 = 1\n if (r2 != r1) goto L_0x0054\n L_0x0024:\n if (r3 == 0) goto L_0x0054\n org.json.JSONObject r2 = new org.json.JSONObject // Catch:{ JSONException -> 0x004d }\n r2.<init>(r3) // Catch:{ JSONException -> 0x004d }\n java.lang.String r3 = \"ipv6Switch\"\n boolean r3 = r2.has(r3) // Catch:{ JSONException -> 0x004d }\n if (r3 == 0) goto L_0x004b\n java.lang.String r3 = \"1\"\n java.lang.String r1 = \"ipv6Switch\"\n java.lang.String r2 = r2.optString(r1) // Catch:{ JSONException -> 0x004d }\n boolean r2 = r3.equals(r2) // Catch:{ JSONException -> 0x004d }\n com.amap.bundle.mapstorage.MapSharePreference r3 = new com.amap.bundle.mapstorage.MapSharePreference // Catch:{ JSONException -> 0x004d }\n java.lang.String r1 = \"accs_network\"\n r3.<init>(r1) // Catch:{ JSONException -> 0x004d }\n java.lang.String r1 = \"ipv6Switch\"\n r3.putBooleanValue(r1, r2) // Catch:{ JSONException -> 0x004d }\n L_0x004b:\n monitor-exit(r0)\n return\n L_0x004d:\n r2 = move-exception\n r2.printStackTrace() // Catch:{ all -> 0x001a }\n goto L_0x0054\n L_0x0052:\n monitor-exit(r0)\n throw r2\n L_0x0054:\n monitor-exit(r0)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.clx.c(int, java.lang.String):void\");\n }", "title": "" }, { "docid": "ae04565a7073cb4b5d783deb5dc3fee5", "score": "0.4755605", "text": "public void voidReturnType() {\r\n\t\t// return 10; // derleme hatasi\r\n\t\treturn; // kullanilabilir\r\n\t}", "title": "" }, { "docid": "ff6939583a80980b242d2155ee75529e", "score": "0.4752445", "text": "public void debugExit(char returnedValue);", "title": "" }, { "docid": "bfea09a54bbc345942de8315dbec652c", "score": "0.47479346", "text": "public abstract void cosechar();", "title": "" }, { "docid": "cc1236205f788df6b7bb7273704f99c5", "score": "0.47436893", "text": "@Override\n\tpublic Object function(Object[] args) {\n\t\tString changeBranch = args[0].toString(); // 바꿀 브랜치 이름\n\t\t try{\n\t\t\t Repository localRepo = new FileRepository(Static.selectProjectPath+File.separatorChar+ \".git\");// 깃 저장소 불러오기\n\t\t Git git = new Git(localRepo); // 깃 관리 생성\n\t\t git.reset().setRef(\"HEAD\").setMode(ResetType.HARD).call();\n\t\t git.checkout().setName(changeBranch).call(); // 깃 브랜치를 바꿈\n\t\t\t}catch(Exception e){\n\t\t\t\tCreateErrorWindow.open(\"에러\", \"브랜치를 바꾸지 못하였습니다!\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\treturn true;\n\t\t }", "title": "" }, { "docid": "4edf40593a3f63006d9ff3ccd8ded5d9", "score": "0.47324395", "text": "protected abstract int doCall();", "title": "" }, { "docid": "3ea7f1bd39b33ad1b21daca94b35c9c2", "score": "0.47259036", "text": "public void BranchStory(){\n }", "title": "" }, { "docid": "1992d5a469889b90be0666063e2a54f8", "score": "0.47197282", "text": "public static void main(String[] args){\r\n \tScanner choice = new Scanner(System.in);\r\n\t\tString cpu = \"\";\r\n \trules();\r\n \tString select = choice.next();\r\n \tselect = test(select);\r\n \tend(cpu, select);\r\n }", "title": "" }, { "docid": "0dbdee467016850efc91ce31a398b60d", "score": "0.4717806", "text": "@Override\r\n\tpublic void Acao(int c) {\n \t \t \t\r\n \tswitch (c) \r\n \t{\r\n \tcase 1:\r\n \t\tthis.subir = true;\r\n \t\tbreak;\r\n \tcase 2:\r\n \t\tthis.subir = false;\r\n \t\tbreak;\r\n \t}\r\n \t\r\n }", "title": "" }, { "docid": "50d08e16d55608d1fd52e35a081a8da7", "score": "0.47141528", "text": "@Override\n\tvoid precedence() {\n\n\t}", "title": "" }, { "docid": "35efb45460e586302db7363df2aa2d41", "score": "0.471359", "text": "private ZooPC checkObject(Object pc) {\n return checkObject(pc, false);\n\t}", "title": "" }, { "docid": "cbf19dfb67a673d0200656974631ac99", "score": "0.47109902", "text": "public void setFPC(int fpc)\r\n/* 673: */ {\r\n/* 674:593 */ this.reg[0] |= fpc >> 12 & 0x7;\r\n/* 675:594 */ this.reg[1] = (fpc & 0xFFF);\r\n/* 676: */ }", "title": "" }, { "docid": "b85697123a66c82c2e4768b2d43d7ec5", "score": "0.4701945", "text": "private ExecMode handleFlow(ExecMode bExec) throws Exception{\n if(bExec == ExecMode.EXECUTE){\n if(scan.currentToken.tokenStr.equals(\"break\")) {\n bExec = ExecMode.BREAK_EXEC;\n scan.getNext();\n }else if(scan.currentToken.tokenStr.equals(\"continue\")){\n bExec = ExecMode.CONTINUE_EXEC;\n scan.getNext();\n }\n } else {\n if (scan.currentToken.tokenStr.equals(\"break\") || scan.currentToken.tokenStr.equals(\"continue\")) {\n scan.getNext();\n }\n }\n //scan.getNext();//Move on from the break or continue because we should not be doing anything else with it\n return bExec;\n }", "title": "" } ]
9410ba4dae6f2f0d00dc2534f3eca292
This method was generated by MyBatis Generator. This method sets the value of the database column doll_ad.ad_code
[ { "docid": "85362b129e1b92cf8778e7210d4335fc", "score": "0.6856129", "text": "public void setAdCode(String adCode) {\n this.adCode = adCode == null ? null : adCode.trim();\n }", "title": "" } ]
[ { "docid": "4f9de73ce5c18da88a57f58b2a430c9c", "score": "0.6479024", "text": "public String getAdCode() {\n return adCode;\n }", "title": "" }, { "docid": "be47b5d4377cc0e3982f47b0e59aa8e8", "score": "0.59661454", "text": "public void setCode(Long code) {\n this.code = code;\n }", "title": "" }, { "docid": "be47b5d4377cc0e3982f47b0e59aa8e8", "score": "0.59661454", "text": "public void setCode(Long code) {\n this.code = code;\n }", "title": "" }, { "docid": "0e78b22812e2a29d78f20cc5106670c2", "score": "0.59510005", "text": "public void setCode ( final LOINCCode code ) {\r\n this.code = code;\r\n }", "title": "" }, { "docid": "7e80c01d09fdc271819f5235748a7023", "score": "0.58832693", "text": "public void setCode(String code);", "title": "" }, { "docid": "039458cb5f4cd6b949e4d02116f44e1f", "score": "0.5844499", "text": "public void setCode(String code){\n this.code = code;\n }", "title": "" }, { "docid": "039458cb5f4cd6b949e4d02116f44e1f", "score": "0.5844499", "text": "public void setCode(String code){\n this.code = code;\n }", "title": "" }, { "docid": "935c61c2c4d901e82a16f28cc9e4e50e", "score": "0.5842733", "text": "public void setCode(String code) {\n _code = code;\n }", "title": "" }, { "docid": "358d6bce8a4c97ff01721fb26137c40b", "score": "0.5835868", "text": "public void setCode(\n final Code aCode) {\n code = aCode;\n }", "title": "" }, { "docid": "00be7f1c5abecab02163efb06edb4871", "score": "0.5768932", "text": "public void setCode(String code)\n {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.572594", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.572594", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.572594", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.572594", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.572594", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.572594", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.572594", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.572594", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "7586b420a030642c6376cf80a87dfa97", "score": "0.572594", "text": "public void setCode(String code) {\n this.code = code;\n }", "title": "" }, { "docid": "2f43c71d2f718aa84c25af4bc05e4191", "score": "0.56789845", "text": "public void setCode(int code) {\n this.code = code;\n }", "title": "" }, { "docid": "99b0691084a54a7bc60b670b83ae2932", "score": "0.56777805", "text": "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "title": "" }, { "docid": "99b0691084a54a7bc60b670b83ae2932", "score": "0.56777805", "text": "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "title": "" }, { "docid": "2612b32f9ae3e3712672be6885f40c52", "score": "0.56585276", "text": "public void setCode(int code) {\r\n\t\tthis.code = code;\r\n\t}", "title": "" }, { "docid": "b88a4251715cebae5539b3eae19dc13e", "score": "0.56331825", "text": "public void setCode(java.lang.String code)\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(CODE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CODE$2);\n }\n target.setStringValue(code);\n }\n }", "title": "" }, { "docid": "ec243b9482c01bec7511c445a0f353bb", "score": "0.55775684", "text": "IResultOrganizer setCode(CD value);", "title": "" }, { "docid": "366a5f6a95e2306a475b9d63166be753", "score": "0.55763876", "text": "public void setCode(Integer code) {\n this.code = code;\n }", "title": "" }, { "docid": "366a5f6a95e2306a475b9d63166be753", "score": "0.55763876", "text": "public void setCode(Integer code) {\n this.code = code;\n }", "title": "" }, { "docid": "a1a4c36e279fb602e129e9f7d57e45d4", "score": "0.5530127", "text": "public void setCode(long value) {\n this.code = value;\n }", "title": "" }, { "docid": "9991f1574e98de041a4175310bb64a8b", "score": "0.552929", "text": "public void setCode(String code)\n/* */ {\n/* 118 */ this.code = code;\n/* */ }", "title": "" }, { "docid": "6f6e849deb0c970cc3890a9aaa54e1c6", "score": "0.55281764", "text": "public void setCode(final int code) {\n this.code = code;\n }", "title": "" }, { "docid": "94dedbadab4c301371b8a5582eb9fcce", "score": "0.5517969", "text": "public void setIdCode(String idCode) {\n this.idCode = idCode == null ? null : idCode.trim();\n }", "title": "" }, { "docid": "f2aca6d0cad95033ed21825d45a126d9", "score": "0.55151683", "text": "public void setCode(String code) {\n this.code = CodeValidator.checkCode(code);\n }", "title": "" }, { "docid": "f155b6cdb932687b8c38f0ea08ba7561", "score": "0.54930806", "text": "public void setCode(String value)\n {\n code = value;\n }", "title": "" }, { "docid": "98b63571afdca447ec4553a84f6361d2", "score": "0.54625803", "text": "public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }", "title": "" }, { "docid": "5e6c33c7227b78d18898f3c8de8fe303", "score": "0.54609585", "text": "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "title": "" }, { "docid": "5e6c33c7227b78d18898f3c8de8fe303", "score": "0.54609585", "text": "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "title": "" }, { "docid": "5e6c33c7227b78d18898f3c8de8fe303", "score": "0.54609585", "text": "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "title": "" }, { "docid": "5e6c33c7227b78d18898f3c8de8fe303", "score": "0.54609585", "text": "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "title": "" }, { "docid": "5e6c33c7227b78d18898f3c8de8fe303", "score": "0.54609585", "text": "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "title": "" }, { "docid": "5e6c33c7227b78d18898f3c8de8fe303", "score": "0.54609585", "text": "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "title": "" }, { "docid": "5e6c33c7227b78d18898f3c8de8fe303", "score": "0.54609585", "text": "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "title": "" }, { "docid": "1787fdf404026a06dbea7c1df35cb489", "score": "0.54486984", "text": "public void setAwardCode(String awardCode) {\n\t\tthis.awardCode = awardCode;\n\t}", "title": "" }, { "docid": "7577b7e336ed43916f451dce325977ff", "score": "0.5447198", "text": "public void setCode(java.lang.String code) {\r\n\t\tthis.code = code;\r\n\t}", "title": "" }, { "docid": "41b5182289fd02d1bbc65336a7ecb9eb", "score": "0.54370695", "text": "public void setAD_Column_ID (int AD_Column_ID)\n{\nset_Value (\"AD_Column_ID\", new Integer(AD_Column_ID));\n}", "title": "" }, { "docid": "ea5195edadc1cf20ac79b6d3824a1f1d", "score": "0.5434503", "text": "public static void setCode(Connection conn, String id) throws SQLException{\n\t\t\t String sql = \"Update users set code =?, Status=? where Id=? \";\n\t\t\t \n\t\t PreparedStatement pstm = conn.prepareStatement(sql);\n\t\t \n\t\t pstm.setString(1, \"G\"+ id);\n\t\t pstm.setString(2, \"1\");\n\t\t pstm.setString(3, id);\n\t\t pstm.executeUpdate();\n\t System.out.println(\"Set code SUCKSHIT\");\n\t }", "title": "" }, { "docid": "e0b3ac1d5eef5dcbf51c24a7bae7d2e8", "score": "0.5424046", "text": "public void setCode(ErrorCodeId code) {\n this.code = code;\n }", "title": "" }, { "docid": "890c1e752cafa1d054dbe9aaac46ad78", "score": "0.5421035", "text": "public void setCode(int value) {\n this.code = value;\n }", "title": "" }, { "docid": "d4ede9c6ec33234cb952892544731377", "score": "0.54177034", "text": "public void setCode(\n @Nullable\n final String code) {\n rememberChangedField(\"Code\", this.code);\n this.code = code;\n }", "title": "" }, { "docid": "3632e4d7a7d715dff1fdc425f2cee43a", "score": "0.53998727", "text": "public void setEACCode(java.lang.String eacCode)\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(EACCODE$18, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EACCODE$18);\n }\n target.setStringValue(eacCode);\n }\n }", "title": "" }, { "docid": "27919b30b0bb704c186c78d32cd90692", "score": "0.5388901", "text": "protected static AgencyCode getAgencyCode() {\n AgencyCode entity = new AgencyCode();\n\n entity.setDisplayOrder(1);\n entity.setName(\"name1\");\n\n return entity;\n }", "title": "" }, { "docid": "f336e2c0bcee8c50ce467a2a4e784438", "score": "0.5354967", "text": "public void setEACCode(java.lang.String eacCode)\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(EACCODE$24, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EACCODE$24);\n }\n target.setStringValue(eacCode);\n }\n }", "title": "" }, { "docid": "7d1b077143ea896874ed28b47d87505c", "score": "0.53527814", "text": "public void setEACCode(java.lang.String eacCode)\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(EACCODE$16, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(EACCODE$16);\n }\n target.setStringValue(eacCode);\n }\n }", "title": "" }, { "docid": "a9368b953c65f9d23440c6af5400b40e", "score": "0.53441674", "text": "public void setAttributeCode(String attributeCode) {\n this.attributeCode = attributeCode;\n }", "title": "" }, { "docid": "c59ca25cd4c92b8652e0ef3b23e93c9c", "score": "0.53431153", "text": "@Override\n\tpublic void setDealerCode(String dealerCode) {\n\t\t_dmsPoc.setDealerCode(dealerCode);\n\t}", "title": "" }, { "docid": "aef8d22cc961c5557f84bbfc570f1ae6", "score": "0.5337786", "text": "@Override\n\tpublic void setCode(java.lang.String code) {\n\t\t_assetManageReq.setCode(code);\n\t}", "title": "" }, { "docid": "a3086424cd1c70d51ec75ba8a7703e1f", "score": "0.5308508", "text": "public void setATDocCodeID(java.lang.String atDocCodeID)\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(ATDOCCODEID$36, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ATDOCCODEID$36);\n }\n target.setStringValue(atDocCodeID);\n }\n }", "title": "" }, { "docid": "1dd5e9384b7f7735e2d92073c5d43d9c", "score": "0.52914274", "text": "public void setEdad(int edad) \n {\n this.edad = edad;\n }", "title": "" }, { "docid": "58f272b1420d43e861ce8e0a8a56b36e", "score": "0.5275464", "text": "public void setTypeCodeForHibernate(CS typeCode) {\n _typeCode = typeCode;\n }", "title": "" }, { "docid": "e3adbf5586343a3e6975e2f2bbf401b4", "score": "0.52754027", "text": "public String getAwardCode() {\n\t\treturn awardCode;\n\t}", "title": "" }, { "docid": "995bfcc6ddea8eebf206a9dda4d702a8", "score": "0.52484447", "text": "public void setCode(java.lang.String value);", "title": "" }, { "docid": "a4b0a487cbea3a00ac357c200c6076a5", "score": "0.5242914", "text": "public void setCode(String newCode){\n\t\titemCode = newCode;\n\t}", "title": "" }, { "docid": "652ea8c68dd3f22ad88f0f8771913bed", "score": "0.5224515", "text": "protected void setCode(PageType pageType, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString code = rs.getString(PageTypeTable.COLUMN_CODE);\n\t\t\n\t\tif(code == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tpageType.setCode(code);\n\t}", "title": "" }, { "docid": "e6ba8e1e8197d0e65e2c7839d799463d", "score": "0.52144456", "text": "public void setEdad(int edad){\n this.edad = edad;\n }", "title": "" }, { "docid": "872eb0ca8989b78000850a844be52350", "score": "0.5167187", "text": "private void setAccess_code(String access_code) {\n this.access_code = access_code;\n }", "title": "" }, { "docid": "299e1bdf942a7e9d885d796d7e3fb3a6", "score": "0.5157465", "text": "public void setAttributeCodeId(Long attributeCodeId) {\n\t\tthis.attributeCodeId = attributeCodeId;\n\t}", "title": "" }, { "docid": "909b4d2428cbcf3375246d3b37f6d43f", "score": "0.51552993", "text": "public void setCode(java.lang.String newCode) {\n\t\tcode = newCode;\n\t}", "title": "" }, { "docid": "7c80d8d4e62c5d60851e854e0bb13f00", "score": "0.51457334", "text": "public LOINCCode getCode () {\r\n return code;\r\n }", "title": "" }, { "docid": "d31a9cf3fb74c8ab08caa1679b65d795", "score": "0.5131921", "text": "public void setDicCode(Integer dicCode) {\n this.dicCode = dicCode;\n }", "title": "" }, { "docid": "8c8ccd958fb2f22a670eceec79b9801f", "score": "0.5131919", "text": "public void setPortalCode(String portalCode) {\n this.portalCode = portalCode;\n }", "title": "" }, { "docid": "218427f373a6f22ecd0c99acfc814aa5", "score": "0.51203185", "text": "public void setIdCurrencycode(int newIdCurrencycode) {\n\tidCurrencycode = newIdCurrencycode;\n}", "title": "" }, { "docid": "8c846a5572eea752f97f8096591fe08d", "score": "0.51096886", "text": "@javax.annotation.Nonnull\n @ApiModelProperty(required = true, value = \"Le code de la tarification de droit\")\n @JsonProperty(JSON_PROPERTY_CODE)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public String getCode() {\n return code;\n }", "title": "" }, { "docid": "4605fdfda0aaa3275ba39bea77650013", "score": "0.51050234", "text": "public void setCustomDistrictCode(int districtCode)\n {\n if(isRealSettlement() || isPlace())\n {\n districtCodes[Aggregation.CUSTOM] = districtCode;\n }\n }", "title": "" }, { "docid": "fbf066386e19bb5a312afbb010680f92", "score": "0.51042825", "text": "public void setRecordCode(Long recordCode) {\n this.recordCode = recordCode;\n }", "title": "" }, { "docid": "88d11984f13ea643aa45c86fd9ce15f0", "score": "0.51026666", "text": "public Builder setCode(long value) {\n \n code_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "07bb0c841b2266d471d5779b65f6c0cd", "score": "0.5093671", "text": "public void setDicacode(String dicacode) {\n this.dicacode = dicacode == null ? null : dicacode.trim();\n }", "title": "" }, { "docid": "310b203939cf2c51bb58aa915de8e479", "score": "0.50909084", "text": "public void setSaCode(String saCode) {\n this.saCode = saCode == null ? null : saCode.trim();\n }", "title": "" }, { "docid": "ce6080845bd388a4918ad6f911701368", "score": "0.50780183", "text": "public void setCodeFieldName(IMetadataColumn column, String codeOther) {\n overrideCodeFieldName.put(column.getLabel(), codeOther);\n }", "title": "" }, { "docid": "dabaafe4ac656c3ff6781ba2687df656", "score": "0.50597674", "text": "void setCodeLenght(int newCode);", "title": "" }, { "docid": "65f089401377fb1599949850397e4d5f", "score": "0.5043712", "text": "public void setDicValueCode(String dicValueCode) {\n this.dicValueCode = dicValueCode == null ? null : dicValueCode.trim();\n }", "title": "" }, { "docid": "85baebed257dcac9de3bf2f328a7c0e6", "score": "0.5042666", "text": "public void setAD_Sequence_ID (int AD_Sequence_ID)\n{\nset_Value (\"AD_Sequence_ID\", new Integer(AD_Sequence_ID));\n}", "title": "" }, { "docid": "85baebed257dcac9de3bf2f328a7c0e6", "score": "0.5042666", "text": "public void setAD_Sequence_ID (int AD_Sequence_ID)\n{\nset_Value (\"AD_Sequence_ID\", new Integer(AD_Sequence_ID));\n}", "title": "" }, { "docid": "85baebed257dcac9de3bf2f328a7c0e6", "score": "0.5042666", "text": "public void setAD_Sequence_ID (int AD_Sequence_ID)\n{\nset_Value (\"AD_Sequence_ID\", new Integer(AD_Sequence_ID));\n}", "title": "" }, { "docid": "85baebed257dcac9de3bf2f328a7c0e6", "score": "0.5042666", "text": "public void setAD_Sequence_ID (int AD_Sequence_ID)\n{\nset_Value (\"AD_Sequence_ID\", new Integer(AD_Sequence_ID));\n}", "title": "" }, { "docid": "f3d3cfb6d0c08d0f077772b502e9aaef", "score": "0.50415987", "text": "public void setCode(final String value)\n\t{\n\t\tsetCode( getSession().getSessionContext(), value );\n\t}", "title": "" }, { "docid": "f3d3cfb6d0c08d0f077772b502e9aaef", "score": "0.50415987", "text": "public void setCode(final String value)\n\t{\n\t\tsetCode( getSession().getSessionContext(), value );\n\t}", "title": "" }, { "docid": "205c1f0b3069bb2d125b342c249336a2", "score": "0.50403166", "text": "public void setSlCode(String slCode) {\n this.slCode = slCode;\n }", "title": "" }, { "docid": "cd1d5e77a834331a666dbd62f5640b5b", "score": "0.50325984", "text": "public void setBscode(Integer newBscode) {\n\tbscode.setInteger(newBscode);\n}", "title": "" }, { "docid": "932627210ac5886f58797c660f35157c", "score": "0.50286776", "text": "public abstract void setCodLoteSap(java.lang.String newCodLoteSap);", "title": "" }, { "docid": "5f51cea991209d4c699de859c6f0ffcc", "score": "0.5022855", "text": "public String getCode() {\n return _code;\n }", "title": "" }, { "docid": "01591400518844eeb7fed483428df4a8", "score": "0.502033", "text": "public void setCode(final Integer codeValue) {\n this.code = codeValue;\n }", "title": "" }, { "docid": "476bd37ba91a01cb54ef6fd1ec4c1152", "score": "0.50185233", "text": "private void setCurrencyCode() {\n formObject = FormContext.getCurrentInstance().getFormReference();\n formConfig = FormContext.getCurrentInstance().getFormConfig();\n String Query_mdm_currency_code = \"select from_currency from mdm_exchange_rate\"; //bu mdm table\n List<List<String>> result15 = null;\n try {\n System.out.println(\"inside try\");\n result15 = formObject.getDataFromDataSource(Query_mdm_currency_code);\n formObject.addComboItem(\"ca_currency_type\", \"Select\", \"\");\n for (int i = 0; i <= result15.size(); i++) {\n String company = result15.get(i).get(0);\n // System.out.println(\"description and bucode : \" + company + \", \" + company);\n formObject.addComboItem(\"ca_currency_type\", company, company);\n }\n } catch (Exception e) {\n System.out.println(\"Exception e \" + e.getMessage());\n }\n System.out.println(\"after mdm_currency_code\");\n }", "title": "" }, { "docid": "4868937ea1a1e0dfd898340511e94183", "score": "0.50032926", "text": "public void setAD_Role_ID (int AD_Role_ID)\n{\nset_Value (\"AD_Role_ID\", new Integer(AD_Role_ID));\n}", "title": "" }, { "docid": "4440e2c0a2feab0095e618a8502bf5fe", "score": "0.49901882", "text": "public Long getCode() {\n return code;\n }", "title": "" }, { "docid": "4440e2c0a2feab0095e618a8502bf5fe", "score": "0.49901882", "text": "public Long getCode() {\n return code;\n }", "title": "" }, { "docid": "464c5ab33cef6fdd47e1becb35267116", "score": "0.49852338", "text": "public String getCode(){\n return this.code;\n }", "title": "" }, { "docid": "33e4c94c483ac3b7c9c1b3dcfaf90fe3", "score": "0.49779835", "text": "public void setCode(java.lang.String newValue) {\n\tthis.code = newValue;\n}", "title": "" }, { "docid": "6e65fea9b2b8e6f2236d9367506d6666", "score": "0.49724472", "text": "public String getCode() {\n return this.code;\n }", "title": "" }, { "docid": "2ea8966bc1a7dc4b08d1879690af45a0", "score": "0.49672648", "text": "public void setEdad(int edad) {\n\t\tthis.edad = edad;\n\t}", "title": "" }, { "docid": "023a39ff00f3780ec30b3be3bff8bd66", "score": "0.4957564", "text": "public void setBcode(String bcode){\r\n this.bcode = bcode;\r\n }", "title": "" }, { "docid": "c7eb709fe80dcf4340230f73980f60d5", "score": "0.49560016", "text": "public RoDProductBuilder aorCodes(String value) {\n \taorCodes = value;\n return this;\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "2f12b8259821eb5f524ac0e68661af62", "score": "0.0", "text": "@Override\n\tpublic PageInfo<Operation> findPageOperation(Paging page, Operation operation) {\n\t\t PageHelper.startPage(page.getPageNum(), page.getPageSize(), page.getOrderBy());\n\t List<Operation> list = findList(operation);\n\t return new PageInfo<>(list);\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6676429", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65278774", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "ffd8193c9cf73515d0f9301b9a7d8817", "score": "0.6485175", "text": "@Override\n\tpublic void morrer() {\n\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.6373858", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "6c2fa45ab362625ae567ee8a229630a4", "score": "0.622455", "text": "@Override\n\tprotected void interr() {\n\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.6224095", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "27e4479db2c37a2e77fe796119b66d4b", "score": "0.61936283", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\r\n\t\t\t}", "title": "" }, { "docid": "0d3bf6f2ee77f787007ba6b4021b5721", "score": "0.6164056", "text": "protected void olha()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e3a701d0fdb1fef5e0afd9dc7c345fcb", "score": "0.61634105", "text": "@Override\n\tprotected void generateData() {\n\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.6158877", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4e49f5db36ca664153e54380025b85d4", "score": "0.6095768", "text": "protected boolean method_21825() {\n }", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6074471", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "a613dcce17453a8e1eed3b984b6b35b1", "score": "0.6028443", "text": "@Override\n\tpublic void composant() {\n\t}", "title": "" }, { "docid": "6f653341cfc7d30c8418e4b72116f7e2", "score": "0.60278815", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.6027122", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6020569", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f2fe8a59406298fe7e97b543f2bf8186", "score": "0.60087883", "text": "@Override\r\n \tpublic void init() {\r\n \t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5988416", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "f49ed6756be41155bd7261ea2ff6564b", "score": "0.59858125", "text": "@Override\n\t\t\t\tpublic void init() {\n\n\t\t\t\t}", "title": "" }, { "docid": "0ecc2b05fa1b3fe069983a07eba7914d", "score": "0.5978686", "text": "private void inicialitzarTaulell() {\r\n\t\t//PENDENT IMPLEMENTAR\r\n\t}", "title": "" }, { "docid": "9fe3f6ccb967a8bcee9106fbbd56b684", "score": "0.5974211", "text": "@Override\r\n\tpublic void properties() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b044552fe4d8d8225d09361b41fbea3a", "score": "0.59513867", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "fcfbf321ff3e4c56b4e383ce15e49dbb", "score": "0.59429646", "text": "@Override\r\n\tpublic void obtersaida()\r\n\t{\n\t}", "title": "" }, { "docid": "482b1825ec60700f97ed42e420d69d99", "score": "0.59383935", "text": "@Override\n\tpublic void valide() {\n\t}", "title": "" }, { "docid": "b2775812be4cd009dca27a30c5ce78fa", "score": "0.59383595", "text": "@Override\n\tprotected void fouseChange() {\n\n\t}", "title": "" }, { "docid": "4b7e3f693781babf82ed11447db2a554", "score": "0.5929242", "text": "@Override\n\tpublic void concentrarse() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "41e50fb9a0b417818374927eb02c67f1", "score": "0.59280443", "text": "protected void mo5608a() {\n }", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "21caf865e426ec5feea3bed303161112", "score": "0.59228885", "text": "@Override\r\n\t\t\t\t\tpublic void funktionMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59215844", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "9a0f5a503f38cb7c40d13ecc89073bd8", "score": "0.58973867", "text": "@Override\r\n\tpublic void getDuriation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "9781c90863e9dc9781fafcc4dc828136", "score": "0.58739185", "text": "public void mo7839l() {\n }", "title": "" }, { "docid": "32d0d506f2de2532fe4789f006c84da0", "score": "0.5863205", "text": "@Override\n\tpublic void bicar() {\n\t\t\n\t}", "title": "" }, { "docid": "02699a98134693036160a045239bddba", "score": "0.58500654", "text": "@Override\r\n\tpublic void zwroc() {\n\r\n\t}", "title": "" }, { "docid": "46569800c9d73cd59bcbec066cdb5304", "score": "0.58491904", "text": "private void lidoInf() {\n\n\n }", "title": "" }, { "docid": "b8d886581a76c72e11ab317e6cb6e2a8", "score": "0.58308905", "text": "@Override\r\n public void rechercher() {\n }", "title": "" }, { "docid": "80b5722cdc9efe11a305e92ea813ac0f", "score": "0.5827698", "text": "@Override\r\n\tpublic void inter() {\n\t\t\r\n\t}", "title": "" }, { "docid": "947b4ee184fe32ab14b8c244b9461c7d", "score": "0.5807026", "text": "@Override\n\tpublic void vida() {\n\n\t}", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.58069414", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c86f446a8bd6af19f88cc011fdf2ffd4", "score": "0.5802792", "text": "public void asustar() {\n // TODO implement here\n \n }", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.58025044", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "c8f75a8f93bc20d4e8695ba99b470e1d", "score": "0.580217", "text": "public void mo1684e() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "1c223692b2a2bdbc36ebfa379064d28d", "score": "0.5800657", "text": "public void mo7102f() {\n }", "title": "" }, { "docid": "19b30f4f881d8f7b600c7c12f1c30963", "score": "0.57979786", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.57931334", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "bb30a482e2236eb664f8d8fc23724b59", "score": "0.57915", "text": "@Override\n\tprotected void initActb() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "7846476d210d55d45e5540a9c92b1ce3", "score": "0.57903147", "text": "@Override\n\tpublic void chocar() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5788234", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "0cc40600dd2e7cb9f56bd77995e01fc3", "score": "0.5780891", "text": "@Override\n\tpublic void Miow() {\n\t\t\n\t}", "title": "" }, { "docid": "a5600ed00582d8ca8d293829dcfd6c38", "score": "0.57797045", "text": "private void Syso() {\n\r\n\t}", "title": "" }, { "docid": "0a14b2c4ac9647e6bc7077e1e653d540", "score": "0.57781726", "text": "@Override\n \tprotected int getSize() {\n \t\treturn 0;\n \t}", "title": "" }, { "docid": "7d110d5ea1b4795727b052c3f897a146", "score": "0.5776224", "text": "public void ligar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773198", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "e022c47f335a39c6bdb94a0f49a4e940", "score": "0.5767807", "text": "@Override\r\n\tpublic void parar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57589173", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "900d30c04323cde584c73c5ffa48d9cf", "score": "0.5757801", "text": "@Override\n\t\tpublic void visitEnd() {\n\n\t\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57514423", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "0adb5f1f1c75684eab047201533dcfe7", "score": "0.57495934", "text": "protected void mo5609b() {\n }", "title": "" }, { "docid": "c16c8d1ea4a8c8572e4aa91460503742", "score": "0.57494617", "text": "private void Initalization() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.57491463", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b938c58260ac0b899b5e73492c412a69", "score": "0.57377213", "text": "@Override\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void leerMarkiert() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57341826", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "734b1972ec29b58535c294e3962d017d", "score": "0.5732932", "text": "@Override\n\tpublic void generar() {\n\t\t\n\t}", "title": "" }, { "docid": "4da4d5cf96c032296a894fc6e8d76283", "score": "0.5718805", "text": "@Override\n\tpublic void beCagey() {\n\t\t\n\t}", "title": "" }, { "docid": "a8f4d3149e0f7a43b23b53ce69363fd6", "score": "0.57184815", "text": "public void mo5202b() {\n }", "title": "" }, { "docid": "c2a6308317d4e5fc230ea7d2fb55fc1b", "score": "0.5715011", "text": "@Override\n\tpublic void update() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" } ]
0a6159ce60adbd8c10759831b327b07b
Do the call to the DB in whatever fashion is in style at the current moment.
[ { "docid": "59ac5ab319576582c0f98a2878ccd8b0", "score": "0.0", "text": "ScriptResultsEvent runSqlCmdScript(ArrayList<ScriptCompletionListener> completionListeners,\n\t\t\t\t\t\t\t\t\t SqlConfigItems items,\n\t\t\t\t\t\t\t\t\t SqlScriptFile scriptFile,\n\t\t\t\t\t\t\t\t\t ScriptType type) throws IOException, NoRunException;", "title": "" } ]
[ { "docid": "fad817b01eb5ff28408cdb76210e37b9", "score": "0.63911074", "text": "@Override\r\n\tprotected void query() {\n\t\texecQueryWithoutProgress();\r\n\t}", "title": "" }, { "docid": "aa2e1fa9b9e864bb4cfb870dbf20f6f7", "score": "0.62082297", "text": "protected void makeDatabaseQuery()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfindBlog();\r\n\t\t} \r\n\t\tcatch (SQLException e){}\r\n\t}", "title": "" }, { "docid": "2392973f2c4b9e1158f71754f6a3fabd", "score": "0.6100157", "text": "public void run() {\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tString sql = json2Sql();\n\t\t\tstmt.execute(sql);\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "efa6e28781d191d007d27c27f320e7fa", "score": "0.5946843", "text": "protected abstract void doOneByOneAndBatchCrud() throws Exception;", "title": "" }, { "docid": "2d7d86b0cb8270c9fd66ffaa94f040d8", "score": "0.5850186", "text": "void query();", "title": "" }, { "docid": "2d7d86b0cb8270c9fd66ffaa94f040d8", "score": "0.5850186", "text": "void query();", "title": "" }, { "docid": "1810d1c72b1d7a5bb5002947d614fbf1", "score": "0.5822177", "text": "public void doConnect() \n {\n getSql();\n openDBConnection();\n executeSqlCreate(); \n }", "title": "" }, { "docid": "a3e6b8ad5aa958a6014b751bccaefc81", "score": "0.5807323", "text": "private static void executeQuery(String sql, HttpServletResponse resp) {\n Statement stmt = null;\n try {\n startConnection();\n stmt = dbConnection.createStatement();\n ResultSet rs = stmt.executeQuery(sql);\n LOGGER.info(\"Query executed!\");\n rs.next();\n resp.setStatus(HttpServletResponse.SC_OK);\n resp.setHeader(\"Access-Control-Allow-Origin\", \"*\");\n resp.setContentType(\"application/json\");\n resp.getWriter().write(rs.getString(\"payload\"));\n resp.getWriter().flush();\n if (resp.getWriter() != null) {\n resp.getWriter().close();\n }\n\n } catch (SQLException | ClassNotFoundException | IOException e) {\n LOGGER.error(e.getMessage(), e);\n } finally {\n try {\n if (stmt != null) {\n stmt.close();\n }\n closeConnection();\n } catch (SQLException e) {\n LOGGER.error(e.getMessage(), e);\n }\n }\n }", "title": "" }, { "docid": "14e836a398838cbe2a0b1444ecb9cd70", "score": "0.5775066", "text": "protected void execute() {\n \t\n }", "title": "" }, { "docid": "632efcae5a601c8ab967df3db69e0914", "score": "0.57200176", "text": "public void Query(){\n\t}", "title": "" }, { "docid": "608d6371c9a628a19929f1332729ff49", "score": "0.57198226", "text": "private void call(ServiceCall call) throws ApplicationException\r\n {\r\n if (Application.inClientMode())\r\n return; // als Client muessen wir die DB nicht installieren\r\n\r\n JVereinDBService service = null;\r\n try\r\n {\r\n // Da die Service-Factory zu diesem Zeitpunkt noch nicht da ist, erzeugen\r\n // wir uns eine lokale Instanz des Services.\r\n service = new JVereinDBServiceImpl();\r\n service.start();\r\n call.call(service);\r\n }\r\n catch (ApplicationException ae)\r\n {\r\n throw ae;\r\n }\r\n catch (Exception e)\r\n {\r\n Logger.error(\"Fehler beim Methodenaufruf\", e);\r\n throw new ApplicationException(\r\n \"Fehler beim Initialisieren der Datenbank\", e);\r\n }\r\n finally\r\n {\r\n if (service != null)\r\n {\r\n try\r\n {\r\n service.stop(true);\r\n }\r\n catch (Exception e)\r\n {\r\n Logger.error(\"error while closing db service\", e);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2c4c1c9cd4de95ee6b20f5be3b872b4f", "score": "0.5706723", "text": "public void run() {\n\n\t\t//Determine constraint for top-k queries according to different SQL dialects\n\t\tswitch(this.dbType) {\n\t\tcase \"POSTGRESQL\":\n\t\t\tsql = viewClause + \"SELECT \" + this.keyColumnName + \", \" + distanceClause + \" FROM \" + fromClause + \" WHERE \" + whereClause + \" ORDER BY \" + orderClause + \" LIMIT $M$\";\n\t\t\tbreak;\n\t\tcase \"AVATICA\": // Connection to Proteus \n\t\t\tsql = udfClause + \"SELECT \" + this.keyColumnName + \", \" + distanceClause + \" FROM \" + fromClause + \" WHERE \" + whereClause + \" ORDER BY \" + orderClause + \" LIMIT $M$\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthis.log.writeln(Constants.INCORRECT_DBMS);\n\t\t\tthrow new IllegalArgumentException(Constants.INCORRECT_DBMS);\n\t\t}\n\n\t\trunning.set(true);\n\n\t\t// Run the SQL query and populate the queue with its results\n\t\tcompute(this.collectionSize, this.resultsQueue);\n\n\t\trunning.set(false);\n\t}", "title": "" }, { "docid": "19e2bc82e084870d7aa977b6514019b3", "score": "0.56267613", "text": "private void FetchingData() {\n\t\ttry {\n\n\t\t\tmyDbhelper.onCreateDataBase();\n\n\t\t} catch (IOException ioe) {\n\n\t\t\tthrow new Error(\"Unable to create database\");\n\n\t\t}\n\t\ttry {\n\n\t\t\tmyDbhelper.openDataBase();\n\t\t\tmydb = myDbhelper.getWritableDatabase();\n\t\t\tSystem.out.println(\"executed\");\n\n\t\t} catch (SQLException sqle) {\n\n\t\t\tthrow sqle;\n\n\t\t}\n\t}", "title": "" }, { "docid": "8d2ca64e89c842c59740a2c8e21c8f24", "score": "0.5597344", "text": "protected void execute() {\n\t}", "title": "" }, { "docid": "8d2ca64e89c842c59740a2c8e21c8f24", "score": "0.5597344", "text": "protected void execute() {\n\t}", "title": "" }, { "docid": "ccea7ffc2c47005e3002d43fa3ada605", "score": "0.55869055", "text": "protected void execute() {\n\n\t}", "title": "" }, { "docid": "45c27d6382c17550de8edd09dbdc8bed", "score": "0.5551028", "text": "@Override\r\n\t\t\t\t\tpublic void run()\r\n\t\t\t\t\t{\n\t\t\t\t\t\ttry (OracleConnection connection = (OracleConnection) ods.getConnection()) {\r\n\t\t\t\t\t\t\t// Print some connection properties\r\n\t\t\t\t\t\t\t//System.out.println(\"Default Row Prefetch Value is: \" + \r\n\t\t\t\t\t\t\t// connection.getDefaultRowPrefetch());\r\n\r\n\t\t\t\t\t\t\tlong startTime,endTime;\r\n\t\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" started\");\r\n\r\n\t\t\t\t\t\t\twhile (System.currentTimeMillis() < startRunTime + maxDurationInMilliseconds) {\r\n\t\t\t\t\t\t\t\tstartTime = System.nanoTime();\r\n\t\t\t\t\t\t\t\tsendQuery(connection,GL_Balances_Hierarchies);\r\n\t\t\t\t\t\t\t\tendTime = System.nanoTime();\r\n\t\t\t\t\t\t\t\tsynchronized (duration1) {\r\n\t\t\t\t\t\t\t\tduration1.add((double) ((endTime - startTime)/1000000)) ;\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\tstartTime = System.nanoTime();\r\n\t\t\t\t\t\t\t\tsendQuery(connection,GL_Balances_No_Hierarchies);\r\n\t\t\t\t\t\t\t\tendTime = System.nanoTime();\r\n\t\t\t\t\t\t\t\tsynchronized (duration2) {\r\n\t\t\t\t\t\t\t\tduration2.add((double) ((endTime - startTime)/1000000)) ;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tstartTime = System.nanoTime();\r\n\t\t\t\t\t\t\t\tsendQuery(connection,GL_Journals_Hierarchies);\r\n\t\t\t\t\t\t\t\tendTime = System.nanoTime();\r\n\t\t\t\t\t\t\t\tsynchronized (duration3) {\r\n\t\t\t\t\t\t\t\tduration3.add((double) ((endTime - startTime)/1000000)) ;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tstartTime = System.nanoTime();\r\n\t\t\t\t\t\t\t\tsendQuery(connection,GL_Journals_No_Hierarchies);\r\n\t\t\t\t\t\t\t\tendTime = System.nanoTime();\r\n\t\t\t\t\t\t\t\tsynchronized (duration4) {\r\n\t\t\t\t\t\t\t\tduration4.add((double) ((endTime - startTime)/1000000)) ;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tThread.sleep(thinktime_in_secs*1000);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" done\");\r\n\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t}", "title": "" }, { "docid": "2a81782876c71de06400a86038061669", "score": "0.55240905", "text": "public abstract void apply(Database db);", "title": "" }, { "docid": "770a9497bea345215d425064dad9e514", "score": "0.5513387", "text": "public void execute() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b471e0613be5917f676b3bb30d3f7913", "score": "0.5485331", "text": "public void preExecute() throws SQLException {\r\n lastQueryNanos = System.nanoTime();\r\n // if connection is closed or failed on slave\r\n if (this.currentProtocol != null && this.currentProtocol.isClosed()) {\r\n preAutoReconnect();\r\n }\r\n }", "title": "" }, { "docid": "a4b037f84b9e087050a3938aef502d8b", "score": "0.5482566", "text": "protected void runDao()\n {\n preHandle();\n handle();\n postHandle();\n }", "title": "" }, { "docid": "515350a6703d26f80e660c94746e096e", "score": "0.54755425", "text": "private static ResultSet queryWithDD(QueryCall call) throws SQLException {\n SQLException sqle = null;\n int i = DEADLOCK_MAX_RETRIES;\n do {\n try {\n return call.query();\n\n } catch (SQLException se) {\n sqle = se;\n // Is SQLException a deadlock? (40001)\n if (se.getSQLState() != null && se.getSQLState().startsWith(\"40\")) {\n log.info(\"Database deadlock has occurred during executeQuery, trying again\");\n try {\n Thread.sleep(DEADLOCK_SLEEP_TIME);\n } catch (Exception ignore) {\n }\n } else /* other SQLException */ {\n throw se;\n }\n }\n } while (--i > 0);\n log.error(\"Giving up deadlock retry\");\n throw sqle;\n }", "title": "" }, { "docid": "f56cdec233789edca39647fab500773a", "score": "0.5449942", "text": "public void execute() {\n\t\t}", "title": "" }, { "docid": "9183b06ed195a0955757c6217d9c960c", "score": "0.5435917", "text": "public void run() {\r\n try {\r\n DataStoreRow row = new DataStoreRow(this, new DSDataRow(_desc), _desc);\r\n\r\n while (_dataSource.retrieveRow(this, row)) {\r\n _rows.addElement(row.getDSDataRow());\r\n if (_threaded)\r\n\t \t\tnotifyListeners(ModelChangedEvent.TYPE_ROW_INSERTED_OR_DELETED);\r\n\r\n if (!_retrieveInProgress || (_maxRows > -1 && _rows.size() >= _maxRows)) {\r\n _cancelInProgress = true;\r\n _retrieveInProgress = false;\r\n interruptWaitingRetrieveThreads();\r\n break;\r\n }\r\n if (_threaded)\r\n\t Thread.yield();\r\n\r\n row.setDSDataRow(new DSDataRow(_desc));\r\n }\r\n _dataSource.postRetrieve(this);\r\n _cancelInProgress = false;\r\n interruptWaitingCancelThreads();\r\n\t\t\tnotifyListeners(ModelChangedEvent.TYPE_DATA_LOADED);\r\n } catch (Exception e) {\r\n System.out.println(\"DataStore.run:\" + e);\r\n _cancelInProgress = false;\r\n interruptWaitingCancelThreads();\r\n }\r\n\r\n _retrieveInProgress = false;\r\n interruptWaitingRetrieveThreads();\r\n _cancelInProgress = false;\r\n interruptWaitingCancelThreads();\r\n }", "title": "" }, { "docid": "940f144c97c4c0b342286c6b775f1414", "score": "0.5435786", "text": "@Override\n\t\tprotected Cursor doInBackground(Long... params) {\n\t\t\tdatabaseConnector.open();\n\n\t\t\t// get a cursor containing all data on given entry\n\t\t\treturn databaseConnector.getOneRating(params[0]);\n\t\t}", "title": "" }, { "docid": "2f18d435737f4809d999220c3ff19b8d", "score": "0.54338527", "text": "@Override\n\tpublic void run() {\n\t\twhile(true){\n\t\t\t//查询未打印的订单\n\t\t\tString sql = \"select * from order_item where status = 1\";\n\t\t}\n\t}", "title": "" }, { "docid": "12bdce81414514dbfcfe24ffa9a2e79e", "score": "0.54159856", "text": "ResultType execute();", "title": "" }, { "docid": "3363e2a099e4f8c3cd8a2596223631f1", "score": "0.5414543", "text": "@Override\n\t\tpublic void run() {\n\t\t\tif (cursor != null) {\n\t\t\t\tif (!cursor.isClosed()) {\n\t\t\t\t\tcursor.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (Database != null) {\n\t\t\t\tif (Database.isOpen()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDatabase.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "9963823c1acda61b70e2036871641481", "score": "0.54013777", "text": "protected void execute() {\n }", "title": "" }, { "docid": "0b14865cd3949fde36ad33e404fa7c20", "score": "0.53961575", "text": "private void performTransactions(){\n\t\t\n\t}", "title": "" }, { "docid": "95722bbbfe133248b7aff793cf148983", "score": "0.5394549", "text": "@Override\n\tpublic String execute()\n\t{\n\t\treturn execute(false);\n\t}", "title": "" }, { "docid": "f800e713b88daa6595549485abe0f5e4", "score": "0.53888917", "text": "private void updateOnlineDatabase()\n {\n new FishPoster().execute();\n }", "title": "" }, { "docid": "6409cde03c2f2b330a9f76aca5e608cd", "score": "0.5385551", "text": "@Override\n\tprotected Integer doInBackground(Void... unused)\n\t{\n\t\tif(android.os.Debug.isDebuggerConnected())\n\t\t{\n\t\t\tandroid.os.Debug.waitForDebugger();\n\t\t}\n\n\t\tLog.d(TAG, \"doInBackground: dbProps? \" + Model.getDatabaseProps().toString());\n\n\t\tint testSucceeded = 0;\t// unused now\n\n\t\tif (Model.getDatabaseProps() != null)\n\t\t{\n\t\t\tLog.d(TAG, \"doInBackground: Attempting to test database\");\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// first test the connection and run some queries\n//\t\t\t\ttestSucceeded = MySQLAccessTester.test(Model.databaseProps);\n\t\t\t\tConnectToDatabaseRequest connectToDatabaseRequest = new ConnectToDatabaseRequest();\n\t\t\t\tComm.out().writeObject(connectToDatabaseRequest);\n\t\t\t\tComm.out().flush();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestSucceeded = 0;\n\t\t\t}\n\t\t}\n\t\t// store result of login attempt in Model\n\t\t/*if(testSucceeded == 0)\n\t\t{\n\t\t\tModel.dbTestOK = false;\n\t\t}\n\t\telse Model.dbTestOK = true;\n\n\t\tLog.d(TAG, \"doInBackground: DB test passed? \" + Model.dbTestOK);*/\n\n\t\treturn testSucceeded;\n\t}", "title": "" }, { "docid": "bc0ae808d0c23288a6988489a4f391c0", "score": "0.53791666", "text": "private void privateExecute( )\r\n {\r\n pr_default.execute(0);\r\n while ( (pr_default.getStatus(0) != 101) )\r\n {\r\n A10TipoDocumentoNombre = TIPODOCUME2_A10TipoDocumentoNombre[0] ;\r\n A9TipoDocumentoId = TIPODOCUME2_A9TipoDocumentoId[0] ;\r\n /*\r\n INSERT RECORD ON TABLE GXA0005\r\n\r\n */\r\n AV2TipoDocumentoId = A9TipoDocumentoId ;\r\n AV3TipoDocumentoNombre = A10TipoDocumentoNombre ;\r\n /* Using cursor TIPODOCUME3 */\r\n pr_default.execute(1, new Object[] {new Short(AV2TipoDocumentoId), AV3TipoDocumentoNombre});\r\n Application.getSmartCacheProvider(remoteHandle).setUpdated(\"GXA0005\") ;\r\n if ( (pr_default.getStatus(1) == 1) )\r\n {\r\n Gx_err = (short)(1) ;\r\n Gx_emsg = localUtil.getMessages().getMessage(\"GXM_noupdate\") ;\r\n }\r\n else\r\n {\r\n Gx_err = (short)(0) ;\r\n Gx_emsg = \"\" ;\r\n }\r\n /* End Insert */\r\n pr_default.readNext(0);\r\n }\r\n pr_default.close(0);\r\n cleanup();\r\n }", "title": "" }, { "docid": "bb6e858166cd0eb78ce7e824374a4aaf", "score": "0.53742146", "text": "@Override\r\n\tpublic void execute() {\n\t}", "title": "" }, { "docid": "1ac57e7502abf287eaa4bd7e3818d6f2", "score": "0.53696156", "text": "public void fetch() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b45d1ef310f7bafd505d9988b3210a72", "score": "0.53296345", "text": "@Override\r\n\tpublic void run(String... arg0) throws Exception {\n\t\t\r\n\t\t System.out.println( \"Please wait making DB conection before initialization....\" );\r\n\t\t//db.testConnection();\r\n\t\t System.out.println( \"Connection Successfull\" );\r\n\t\t \r\n\t\t\r\n\t}", "title": "" }, { "docid": "ba8d7086a67968f5255a2f70db33efdf", "score": "0.5320069", "text": "public void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "ba8d7086a67968f5255a2f70db33efdf", "score": "0.5320069", "text": "public void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "9db2e56094c7a67ef32dd1903fe41b9b", "score": "0.531604", "text": "@Override\r\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\r\n\t}", "title": "" }, { "docid": "4fee3bbfffe00e71fb53d721b2f9a83c", "score": "0.5313182", "text": "@Override\n protected Cursor doInBackground(Long... params) {\n SQLiteDatabase lectura =dbConnector.getWritableDatabase();\n return lectura.query(dbConnector.TABLE, null, dbConnector.id + \"=\" + fila, null, null,\n null, null);\n\n }", "title": "" }, { "docid": "8f26c303146374e079e38f3bee6757ca", "score": "0.5304539", "text": "@Override\n\tpublic void execute() {\n\t\tservidor.prender();\n\t\tservidor.conectar();\n\t\tservidor.ComprobarConexion();\n\t\tservidor.apagar();\n\t}", "title": "" }, { "docid": "6b63933f44090bae0c9fb9d6a3867810", "score": "0.5296963", "text": "public void retrieve() {\n if (data.re()) {\n\n try {\n ResultSet res = data.retrieve();\n while (res.next()) {\n\n add_table(res.getString(\"name\"), res.getInt(\"month\"), res.getInt(\"week\"), res.getDouble(\"day_salary\"), res.getDouble(\"day_work\"), res.getDouble(\"week_salary\"), res.getDouble(\"payed\"), res.getDouble(\"charge\"));\n\n }\n System.out.println(\"Done retrieve\");\n } catch (SQLException ex) {\n Logger.getLogger(worker.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Error database\");\n\n }\n }", "title": "" }, { "docid": "e522b99707d05fe483988ea5c553b647", "score": "0.52949494", "text": "public Integer call() {\n/* */ try {\n/* 55 */ BeanCollection<?> bc = this.cquery.continueFetchingInBackground();\n/* */ \n/* 57 */ return Integer.valueOf(bc.size());\n/* */ }\n/* 59 */ catch (Exception e) {\n/* 60 */ logger.log(Level.SEVERE, (String)null, e);\n/* 61 */ return Integer.valueOf(0);\n/* */ } finally {\n/* */ \n/* */ try {\n/* 65 */ this.cquery.close();\n/* 66 */ } catch (Exception e) {\n/* 67 */ logger.log(Level.SEVERE, (String)null, e);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 73 */ this.transaction.rollback();\n/* 74 */ } catch (Exception e) {\n/* 75 */ logger.log(Level.SEVERE, (String)null, e);\n/* */ } \n/* */ } \n/* */ }", "title": "" }, { "docid": "a160b9037f1ef4bdefe45ff86ef7aaa1", "score": "0.52930504", "text": "protected ResultSet commonExecuteQuerySQL(Statement stmt, String sql) {\n\t\tResultSet rs = null;\n\t\tint numTryCounts = 10;\n\t\tint count = 1;\n\t\tint waitTime = 1000; // ms\n\t\tdo {\n\t\t\ttry {\n\t\t\t\trs = stmt.executeQuery(sql);\n\t\t\t\treturn rs;\n\t\t\t} catch (SQLException sqlex) {\n\t\t\t\tMain._logger.reportError(\"retry \" + count + \": \" + sql);\n\t\t\t\tsqlex.printStackTrace();\n\t\t\t\treestablishConnection();\n\t\t\t\trs = null;\n\t\t\t}\n\t\t\twaitTime = DoExponentialBackOff(count++, numTryCounts, waitTime,\n\t\t\t\t\tsql);\n\t\t\tif (waitTime > 0) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// count++;\n\t\t\t// waitTime *= 2;\n\t\t\t// // wait 2^(count) seconds\n\t\t\t// try {\n\t\t\t// Thread.sleep(waitTime);\n\t\t\t// } catch (InterruptedException e) {\n\t\t\t// continue;\n\t\t\t// }\n\t\t} while (count <= numTryCounts && rs == null);\n\n\t\tif (rs == null) {\n\t\t\tMain._logger\n\t\t\t\t\t.reportError(\"Failed to fetch a result from AZDBLAB due to network failure\");\n\t\t\ttry {\n\t\t\t\tthrow new SQLException();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9843fff08d0a6277310ef121d33c760b", "score": "0.5289589", "text": "public void execute() {\n this.executed = true;\n try {\n this.statement.execute(this.sql);\n this.executeHelper();\n } catch (SQLException e) {\n handleExecutionException(e);\n }\n }", "title": "" }, { "docid": "c9d287170c4b51b1311d71347fac9ac3", "score": "0.528499", "text": "@Override\n\tpublic void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "c9d287170c4b51b1311d71347fac9ac3", "score": "0.528499", "text": "@Override\n\tpublic void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "c9d287170c4b51b1311d71347fac9ac3", "score": "0.528499", "text": "@Override\n\tpublic void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "22c3bed9976ece62ed85e2f6685dee33", "score": "0.5283462", "text": "public void execute() {\n\t}", "title": "" }, { "docid": "247be00089c45ea765aa1f2529cfce77", "score": "0.52713704", "text": "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "title": "" }, { "docid": "247be00089c45ea765aa1f2529cfce77", "score": "0.52713704", "text": "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "title": "" }, { "docid": "247be00089c45ea765aa1f2529cfce77", "score": "0.52713704", "text": "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "title": "" }, { "docid": "247be00089c45ea765aa1f2529cfce77", "score": "0.52713704", "text": "@Override\n\tpublic String execute() throws Exception {\n\t\treturn super.execute();\n\t}", "title": "" }, { "docid": "5d324fe1387bd23de50ddb51de34b454", "score": "0.5265947", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tDBRequest.setCallBack(callBack, Enum_RelaType.DEFAULT)\n\t\t\t\t\t\t\t.callInit();\n\t\t\t\t\t}", "title": "" }, { "docid": "5f66f61c9a24fe319a2bcdab724f1228", "score": "0.5260347", "text": "@Override\n\tpublic void execute() {\n\n\t}", "title": "" }, { "docid": "5f66f61c9a24fe319a2bcdab724f1228", "score": "0.5260347", "text": "@Override\n\tpublic void execute() {\n\n\t}", "title": "" }, { "docid": "5f66f61c9a24fe319a2bcdab724f1228", "score": "0.5260347", "text": "@Override\n\tpublic void execute() {\n\n\t}", "title": "" }, { "docid": "7234bdc0aeaeccb1988e09f98cb3a2e6", "score": "0.52479494", "text": "@Override\n protected void execute()\n {\n }", "title": "" }, { "docid": "6db196fe12df2040e890be66656ff251", "score": "0.5247293", "text": "@Override\n\tprotected void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "6db196fe12df2040e890be66656ff251", "score": "0.5247293", "text": "@Override\n\tprotected void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "219429e103773f7f50a7ac710d39c787", "score": "0.5237362", "text": "@Override\n protected Void call() throws Exception {\n dbHelper.addPriceChecks();\n return null;\n }", "title": "" }, { "docid": "83b410a7592fe00c443cba58b665b529", "score": "0.52267975", "text": "private static void executeUpdate(String sql, HttpServletResponse resp) {\n Statement stmt = null;\n try {\n startConnection();\n stmt = dbConnection.createStatement();\n int rs = stmt.executeUpdate(sql);\n LOGGER.info(\"Update executed!\");\n resp.setStatus(HttpServletResponse.SC_OK);\n resp.setHeader(\"Access-Control-Allow-Origin\", \"*\");\n resp.setContentType(\"application/json\");\n resp.getWriter().write(String.valueOf(rs));\n resp.getWriter().flush();\n if (resp.getWriter() != null) {\n resp.getWriter().close();\n }\n\n } catch (SQLException | ClassNotFoundException | IOException e) {\n LOGGER.error(e.getMessage(), e);\n } finally {\n try {\n if (stmt != null) {\n stmt.close();\n }\n closeConnection();\n } catch (SQLException e) {\n LOGGER.error(e.getMessage(), e);\n }\n }\n }", "title": "" }, { "docid": "06847bbe00efa8a7216b93228761bb13", "score": "0.5216326", "text": "@Override\n protected void execute() {\n }", "title": "" }, { "docid": "06847bbe00efa8a7216b93228761bb13", "score": "0.5216326", "text": "@Override\n protected void execute() {\n }", "title": "" }, { "docid": "06847bbe00efa8a7216b93228761bb13", "score": "0.5216326", "text": "@Override\n protected void execute() {\n }", "title": "" }, { "docid": "06847bbe00efa8a7216b93228761bb13", "score": "0.5216326", "text": "@Override\n protected void execute() {\n }", "title": "" }, { "docid": "5ed062331e5f7a09d321b577e9922d2a", "score": "0.5210252", "text": "@Override\n\tpublic void execute() {\n\t\t\n\t\tmaker.prepareDrinks();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "1510e30297724c5aaacf433c11b6ec3f", "score": "0.5205241", "text": "@Override\r\n\tprotected void execute() {\n\r\n\t}", "title": "" }, { "docid": "ed6d0ac26ca42aaab2d83dae5b6e42c3", "score": "0.5204262", "text": "public void load() {\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n Conn conn = new Conn(connname);\n try {\n // \"SELECT name, personNum, description, address, equipment, mydate FROM \" + tableName + \" WHERE id=?\";\n pstmt = conn.prepareStatement(QUERY_LOAD);\n pstmt.setInt(1, id);\n rs = conn.executePreQuery();\n if (!rs.next()) {\n logger.error(\"load: \" + id +\n \" is not found in DB.\");\n } else {\n name = rs.getString(1);\n friend = rs.getString(2);\n rq = DateUtil.parse(rs.getString(3));\n state = rs.getInt(4);\n loaded = true;\n }\n } catch (SQLException e) {\n logger.error(\"load:\" + e.getMessage());\n } finally {\n if (rs != null) {\n try {\n rs.close();\n } catch (Exception e) {}\n rs = null;\n }\n if (conn != null) {\n conn.close();\n conn = null;\n }\n }\n }", "title": "" }, { "docid": "0aea51e990ffc81672c10342d5208811", "score": "0.51972014", "text": "@Override\n protected void execute() {\n }", "title": "" }, { "docid": "0aea51e990ffc81672c10342d5208811", "score": "0.51972014", "text": "@Override\n protected void execute() {\n }", "title": "" }, { "docid": "00ffa778c8eaeb038b2570e7249915f3", "score": "0.51822025", "text": "protected void runSQL(String sql) {\n\t\ttry {\n\t\t\tDataSource dataSource = righeRichiestaBFCPersistence.getDataSource();\n\n\t\t\tDB db = DBManagerUtil.getDB();\n\n\t\t\tsql = db.buildSQL(sql);\n\t\t\tsql = PortalUtil.transformSQL(sql);\n\n\t\t\tSqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,\n\t\t\t\t\tsql);\n\n\t\t\tsqlUpdate.update();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new SystemException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "7ca53b87be094b031784efa61601decf", "score": "0.51767904", "text": "private void doFetchPeople() {\r\n\t\t\r\n\t\r\n\t}", "title": "" }, { "docid": "563cae66d1f75770dc50212a7838002d", "score": "0.51733416", "text": "@Override\r\n\t\t\tpublic Connection execute(Connection conn) throws SQLException {\n\t\t\t\treturn conn;\r\n\t\t\t}", "title": "" }, { "docid": "0ee1683d161413de68ef519417e58d17", "score": "0.51719326", "text": "private static boolean executeWithDD(ExecutableCall call) throws SQLException {\n SQLException sqle = null;\n int i = DEADLOCK_MAX_RETRIES;\n do {\n try {\n return call.execute();\n\n } catch (SQLException se) {\n sqle = se;\n // Is SQLException a deadlock? (40001)\n if (se.getSQLState() != null && se.getSQLState().startsWith(\"40\")) {\n log.info(\"Database deadlock has occurred during executeWithDD, trying again\");\n try {\n Thread.sleep(DEADLOCK_SLEEP_TIME);\n } catch (Exception ignore) {\n }\n } else /* other SQLException */ {\n throw se;\n }\n }\n if (log.isDebugEnabled()) {\n log.debug(\"Execute, retries=\" + i);\n }\n } while (--i > 0);\n log.error(\"Giving up deadlock retry\");\n throw sqle;\n }", "title": "" }, { "docid": "c4fc1b1c9cb95e4f4add28f6ebeb4682", "score": "0.51651114", "text": "@Override\n public Result execute()\n {\n return null;\n }", "title": "" }, { "docid": "76bdac5746b480507d026c0ed06c4c1e", "score": "0.5160761", "text": "protected void runCoreProcess() throws SQLException {\r\n\r\n\t\tinitiate_database(database);\r\n\t\tSystem.out.println(\"Database initiated\");\r\n\r\n\t\tproblemsInputTable.writeToDatabase(database, PROBLEMS_TABLE_NAME);\r\n\t\tpersonsInputTable.writeToDatabase(database, PERSONS_TABLE_NAME);\r\n\t\tattemptsInputTable.writeToDatabase(database, ATTEMPTS_TABLE_NAME);\r\n\t\tSystem.out.println(\"Database populated\");\r\n\r\n\t\tResultSet query_results = database.executeQuery(QUERY_Q3);\r\n\r\n\t\twhile(query_results.next())\r\n\t\t{\r\n\t\t\tQ3_result temp = new Q3_result(query_results);\r\n\t\t\tobjects_results.add(temp);\r\n\t\t}\r\n\r\n\t\tfor (Q3_result item : objects_results) {\r\n\r\n\t\t\tResultSet results_attempts = database.executeQuery(\"SELECT * FROM \"+ATTEMPTS_TABLE_NAME+\" WHERE \"+ATTEMPTS_TABLE_NAME+\".\"+ATTEMPTS_PROBLEM_ID+\"=\" + item.problem_id);\r\n\t\t\tList<Attempt> attempts = new ArrayList<Attempt>();\r\n\r\n\t\t\twhile (results_attempts.next()) {\r\n\r\n\t\t\t\tAttempt a = new Attempt(results_attempts);\r\n\t\t\t\tResultSet result_problem = database.executeQuery(\"SELECT * FROM \"+PROBLEMS_TABLE_NAME+\" WHERE \"+PROBLEMS_TABLE_NAME+\".\"+PROBLEM_ID_NAME+\"=\" + item.problem_id);\r\n\r\n\t\t\t\tif (result_problem.next())\r\n\t\t\t\t{\r\n\t\t\t\t\tProblem p = new Problem(result_problem);\r\n\r\n\t\t\t\t\tif (right_answer(p,a))\r\n\t\t\t\t\t\titem.n_person_ans_corr_from_ans += 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (item.n_person_ans != 0)\r\n\t\t\t\titem.p_person_ans_corr_from_ans = ((float)item.n_person_ans_corr_from_ans / (float)item.n_person_ans) * 100;\r\n\t\t\telse\r\n\t\t\t\titem.p_person_ans_corr_from_ans = 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eae549a9df773f2b46a39c36017292d9", "score": "0.5159481", "text": "private void update() {\n synchronized (lock) {\n if (!observing)\n return;\n\n try {\n Log.i(DOMAIN, \"%s: Querying...\", this);\n ResultSet oldResultSet = resultSet;\n ResultSet newResultSet;\n if (oldResultSet == null)\n newResultSet = query.execute();\n else\n newResultSet = oldResultSet.refresh();\n\n willUpdate = false;\n lastUpdatedAt = System.currentTimeMillis();\n\n if (newResultSet != null) {\n if (oldResultSet != null)\n Log.i(DOMAIN, \"%s: Changed!\", this);\n resultSet = newResultSet;\n changeNotifier.postChange(new QueryChange(this.query, resultSet, null));\n } else {\n Log.i(DOMAIN, \"%s: ...no change\", this);\n }\n } catch (CouchbaseLiteException e) {\n changeNotifier.postChange(new QueryChange(this.query, null, e));\n }\n }\n }", "title": "" }, { "docid": "60d58186db084ba105eb84b221c28307", "score": "0.5157594", "text": "@Override\n protected void execute() {\n\n }", "title": "" }, { "docid": "60d58186db084ba105eb84b221c28307", "score": "0.5157594", "text": "@Override\n protected void execute() {\n\n }", "title": "" }, { "docid": "64561b214229f2a5b3281fe7e7f46e4a", "score": "0.5152847", "text": "@Override\n public void execute() {\n }", "title": "" }, { "docid": "1ee157a5b6df16e1d1c441f8cdc6cc48", "score": "0.51373696", "text": "@Override\n public void execute() {\n }", "title": "" }, { "docid": "1ee157a5b6df16e1d1c441f8cdc6cc48", "score": "0.51373696", "text": "@Override\n public void execute() {\n }", "title": "" }, { "docid": "1ee157a5b6df16e1d1c441f8cdc6cc48", "score": "0.51373696", "text": "@Override\n public void execute() {\n }", "title": "" }, { "docid": "b6b54251bfbe8a47152763c0414c47f2", "score": "0.5134204", "text": "public void run() throws DatabaseException {\r\n setup();\r\n\r\n sda = new BadgesDataAccessor(store);\r\n\r\n\r\n\r\n\r\n Badges readenVote = sda.badgeByBadgeId.get(\"12205\");\r\n\r\n\r\n shutdown();\r\n }", "title": "" }, { "docid": "a73e99a187a17e6b56bf10a48daaf696", "score": "0.51317626", "text": "public void run() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tTable table=BosConstants.getTable(className);\n\t\t\n\t\t\tif(table==null) return;\n\t\t\t\n\t\t\t\n\t\t\tif(DataChange.getLongValueWithDefault(table.getSynEs(), 0)!=1) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tServiceInf service=SpringContextUtil.getBean(BosService.class);\n\t\t\t\n\t\t\tboolean flag=false;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//如果是非es存储,且es优先查询的,需要放弃暂时放弃es优先查询\n\t\t\t\tif(DataChange.getLongValueWithDefault(table.getQueryEs(), 0)==1) {\n\t\t\t\t\tflag=true;\n\t\t\t\t\ttable.setQueryEs(0L);\n\t\t\t\t\tTable obj=service.getMgClient().getTableById(table.getClassName());\n\t\t\t\t\tobj.setQueryEs(0L);\n\t\t\t\t\tservice.save(obj, null);\n\t\t\t\t\tnew ClassInnerNotice().invoke(BosConstants.innerNotice_synTable, table.getClassName());\n\t\t\t\t}\n\t\t\t\n\t\t\t\tList<Field> fList=table.listEncryptionField();\n\t\t\t\t\n\t\t\t\n\t\t\t\tlong totalCount=service.getAllCount(table.getClassName());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tlong maxpage = (totalCount / pageSize);\n\t\t\t\tif (totalCount > maxpage * pageSize) {\n\t\t\t\t\tmaxpage++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tBosConstants.debug(\"--------------SynToEs className=\"+className+\" totalCount=\"+totalCount+\"---------------maxpage=\"+maxpage+\"---------\");\n\t\t\t\t\n\t\t\t\tfor(long i=1;i<=maxpage;i++) {\n\t\t\t\t\tBosEntity search=new TableJson(table.getClassName());\n\t\t\t\t\tQueryFetchInfo<BosEntity> fetch=new QueryFetchInfo<BosEntity>();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(table.table()) {\n\t\t\t\t\t\tfetch=service.getRBaseDao().getFetch(search, table.getSortField(), i, pageSize,service);\n\t\t\t\t\t}else if(table.mongo()) {\n\t\t\t\t\t\tfetch=service.getMgClient().getFetch(search, table.getSortField(), i, pageSize,service);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tBosConstants.debug(\"--------------SynToEs totalCount=\"+totalCount+\"---------------page=\"+i+\"/\"+maxpage+\"------size=\"+fetch.size()+\"---\");\n\t\t\t\t\t\n\t\t\t\t\tfor(BosEntity obj:fetch.getList()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(Field x:fList) {\n\t\t\t\t\t\t\tobj.addEncryption(x.getProperty());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tservice.getEsClient().syn(obj, service);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}finally {\n\t\t\t\t//如果是非es存储,且es优先查询的,需要放弃es优先查询\n\t\t\t\tif(flag) {\n\t\t\t\t\ttable.setQueryEs(1L);\n\t\t\t\t\tTable obj=service.getMgClient().getTableById(table.getClassName());\n\t\t\t\t\tobj.setQueryEs(1L);\n\t\t\t\t\tservice.save(obj, null);\n\t\t\t\t\tnew ClassInnerNotice().invoke(BosConstants.innerNotice_synTable, table.getClassName());\n\t\t\t\t}\n\t\t\t\tservice.clear();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "0a29d9268e9450c51417b81bd6ac4bee", "score": "0.51313525", "text": "void execute() {\n\n String sCmd = null;\n\n if (4096 <= ifHuge.length()) {\n sCmd = ifHuge;\n } else {\n sCmd = txtCommand.getText();\n }\n\n if (sCmd.startsWith(\"-->>>TEST<<<--\")) {\n testPerformance();\n\n return;\n }\n\n String[] g = new String[1];\n\n lTime = System.currentTimeMillis();\n\n try {\n if (sStatement == null) {\n return;\n }\n\n sStatement.execute(sCmd);\n\n lTime = System.currentTimeMillis() - lTime;\n\n int r = sStatement.getUpdateCount();\n\n if (r == -1) {\n ResultSet rs = sStatement.getResultSet();\n\n try {\n formatResultSet(rs);\n } catch (Throwable t) {\n g[0] = \"Error displaying the ResultSet\";\n\n gResult.setHead(g);\n\n String s = t.getMessage();\n\n g[0] = s;\n\n gResult.addRow(g);\n }\n } else {\n g[0] = \"update count\";\n\n gResult.setHead(g);\n\n g[0] = String.valueOf(r);\n\n gResult.addRow(g);\n }\n\n addToRecent(txtCommand.getText());\n } catch (SQLException e) {\n lTime = System.currentTimeMillis() - lTime;\n g[0] = \"SQL Error\";\n\n gResult.setHead(g);\n\n String s = e.getMessage();\n\n s += \" / Error Code: \" + e.getErrorCode();\n s += \" / State: \" + e.getSQLState();\n g[0] = s;\n\n gResult.addRow(g);\n }\n\n updateResult();\n System.gc();\n }", "title": "" }, { "docid": "cac37de9465ea19039fb1648bb1497b1", "score": "0.5130215", "text": "@Transactional\n public void recyprocityFriendship () {\n getHibernateTemplate().execute(new HibernateCallback<Object>() {\n public Object doInHibernate(Session session) throws HibernateException {\n Query query = session.createSQLQuery(\"CALL updateFriends()\");\n query.executeUpdate();\n return null;\n }\n });\n\n }", "title": "" }, { "docid": "3fb8cf1e4cf58f8adb76a9113e3dff98", "score": "0.5124856", "text": "protected void execute(){\n }", "title": "" } ]
e66703fc9f6bf8454035707d7f0edf54
Starts the start date dialog
[ { "docid": "503393480a84d1292fc1c6cd07005a92", "score": "0.6395536", "text": "@RequiresApi(api = Build.VERSION_CODES.N)\n private void startHandler(View v) {\n DatePickerDialog newFragment = new DatePickerDialog(MapRatDataActivity.this);\n newFragment.setOnDateSetListener(new StartDatePickerDialog());\n newFragment.show();\n }", "title": "" } ]
[ { "docid": "ebaf17bd956e4acaf3a6fea8263f0420", "score": "0.73174727", "text": "public void beginDatePickerDialog (){\n // Get Current Date\n final Calendar c = Calendar.getInstance();\n mYear = c.get(Calendar.YEAR);\n mMonth = c.get(Calendar.MONTH);\n mDay = c.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n String str;\n monthOfYear += 1;\n\n if(monthOfYear<10){\n str = year + \"/0\" + monthOfYear + \"/\" + dayOfMonth;\n }else{\n str = dayOfMonth + \"/\" + monthOfYear + \"/\" + year;\n }\n\n beginDate.setText(str);\n\n }\n }, mYear, mMonth, mDay);\n datePickerDialog.show();\n }", "title": "" }, { "docid": "5a8fd8eb1f2e961be07bce61aa945a3c", "score": "0.7071505", "text": "public void click_StartDate() {\n\t\tstartDate.click();\r\n\t}", "title": "" }, { "docid": "142b80fa2078e31f40142f4f1fb49b88", "score": "0.7000054", "text": "void start() {\n dateStartObject = Calendar.getInstance().getTime();\n dateStart = dateStartObject;\n open = true;\n }", "title": "" }, { "docid": "314103021634eb1eb6dd086193c9da1f", "score": "0.6828333", "text": "@SuppressWarnings(\"deprecation\")\n public void setDateFrom(View view) {\n showDialog(idDateFrom);\n Toast.makeText(getApplicationContext(), \"Choose Start Date\",\n Toast.LENGTH_SHORT)\n .show();\n }", "title": "" }, { "docid": "0f8afb2128572bb1212f016161ba8621", "score": "0.6817966", "text": "public void startDate()\n {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());\n Date date = new Date();\n this.startDate = dateFormat.format(date);\n }", "title": "" }, { "docid": "0b16bc0c17a26ecdc94db941c8b0b880", "score": "0.669205", "text": "public void datepicker()\n\t{\n\t\tCalendar c = Calendar.getInstance();\n\t\t\n\t\tint ar = c.get(Calendar.YEAR);\n\t\tint manudur = c.get(Calendar.MONTH);\n\t\tint dagur = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\tsetDate(dagur,manudur,ar);\n\t\t\n\t\tTextView dagsetning = (TextView) findViewById(R.id.dagsetning);\n\t\tdagsetning.setOnTouchListener(new OnTouchListener() {\n\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\tshowDialog(dp_id);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "title": "" }, { "docid": "e52c41ad64091bc78b3465153c18d098", "score": "0.66734856", "text": "public void setDate(View v){\n dateType=\"start\";\n Calendar now = Calendar.getInstance();\n DatePickerDialog dpd = DatePickerDialog.newInstance(\n this,\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.setMinDate(now);\n now.add(Calendar.MONTH,+1);\n dpd.setMaxDate(now);\n dpd.show(getFragmentManager(), \"Datepickerdialog\");\n }", "title": "" }, { "docid": "a300177d0856402d776bfc8df18d39e5", "score": "0.66485995", "text": "public static void firstDay(final Context context) {\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setCancelable(true);\n builder.setTitle(context.getString(R.string.first_day));\n String[] items = {context.getString(R.string.sunday),\n context.getString(R.string.monday)};\n final ArrayAdapter<String> adapter = new ArrayAdapter<>(context,\n android.R.layout.simple_list_item_single_choice, items);\n int day = SharedPrefs.getInstance(context).getInt(Prefs.START_DAY);\n builder.setSingleChoiceItems(adapter, day, (dialog, which) -> {\n if (which != -1) {\n SharedPrefs.getInstance(context).putInt(Prefs.START_DAY, which);\n UpdatesHelper.getInstance(context).updateCalendarWidget();\n }\n });\n builder.setPositiveButton(context.getString(R.string.ok), (dialog, which) -> {\n dialog.dismiss();\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "title": "" }, { "docid": "38cf943fdea7175b83a2589052838f42", "score": "0.660998", "text": "public void setStartDate(Date value) {\r\n this.startDate = value;\r\n }", "title": "" }, { "docid": "e9a08d6a1069c392333dee8a67e068dd", "score": "0.6592741", "text": "public void startAtCalendarView() {\n startAtPosition = HeaderViewsPosition.VIEW_MONTH_AND_DAY.getPosition();\n }", "title": "" }, { "docid": "377c8b061f9af693f6272d81e95812f4", "score": "0.65811354", "text": "@Override\n public void onClick(View v) {\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n// apointDate.setText(dayOfMonth + \"/\" + month + \"/\" + year);\n// updateLabel_start();\n et_date_start.setText(year+\"-\"+month+\"-\"+dayOfMonth);\n }\n }, myCalendar_start.get(Calendar.YEAR), myCalendar_start.get(Calendar.MONTH), myCalendar_start.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\n datePickerDialog.show();\n\n// DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), date_start, myCalendar_start\n// .get(Calendar.YEAR), myCalendar_start.get(Calendar.MONTH),\n// myCalendar_start.get(Calendar.DAY_OF_MONTH)).show();\n\n }", "title": "" }, { "docid": "2115449e519fa8ee42c67e20fe1198ef", "score": "0.6565759", "text": "public void startDatePicker()\n {\n errorLabel.setText(\"\");\n if(startDate.getValue() != null){\n endDate.setValue(startDate.getValue());\n }\n }", "title": "" }, { "docid": "0696b66129d7083f5655ba0e2979f58b", "score": "0.656273", "text": "public void setStartDate(Date start) {\n\t\tstartDate = start;\n\t}", "title": "" }, { "docid": "075b12c1a436a0ccaaf45d6db53d0434", "score": "0.6557721", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(AddAvailabilityActivity.this, dateStart, startCalendar\n .get(Calendar.YEAR), startCalendar.get(Calendar.MONTH),\n startCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "e584d9c0748aa7d3cc62039a1ddf07f3", "score": "0.65179884", "text": "public void setStart(Date start) {\n this.start = start;\n }", "title": "" }, { "docid": "08fbffdf7cdcd3a7e1720d7a443ee059", "score": "0.6512188", "text": "public void setStartDay(int value) {\n this.startDay = value;\n }", "title": "" }, { "docid": "86aa31530125eb66c9652123c7ff2146", "score": "0.6450655", "text": "public void setStartDate (Date d){ \n\t\tstartDate = d;\n\t}", "title": "" }, { "docid": "caf3392f6534d362f850e0d66a5f50f9", "score": "0.6450576", "text": "public void setStart_date(Date start_date) {\n\t\tthis.start_date = start_date;\n\t}", "title": "" }, { "docid": "406fa6c6200aec2c0f2671372ceca19f", "score": "0.6439607", "text": "public void setStartDate(String start_date) {\n\t\tthis.start_date = start_date;\n\t}", "title": "" }, { "docid": "6b65e74b9b5521861105492a89d0d427", "score": "0.64322734", "text": "@Override\n public void onClick(View v) {\n Calendar calendar = Calendar.getInstance();\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), date, calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.getDatePicker().setMinDate(calendar.getTimeInMillis());\n datePickerDialog.show();\n }", "title": "" }, { "docid": "dba7c3f8301bfb9bec7d4b793a49f1dd", "score": "0.64182216", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n Calendar c;\n int startTimeMode;\n Bundle args = getArguments();\n\n // Determine start time mode; if args are null, use current date\n if (args != null) {\n startTimeMode = args.getInt(\"startTimeMode\");\n }\n else {\n startTimeMode = START_TIME_CURRENT;\n }\n\n if (startTimeMode == START_TIME_CALENDAR) {\n c = (Calendar) args.get(\"startValue\");\n }\n else if (startTimeMode == START_TIME_MILLIS) {\n Long timeMillis = args.getLong(\"startValue\");\n c = Calendar.getInstance();\n c.setTimeInMillis(timeMillis);\n }\n else {\n c = Calendar.getInstance();\n }\n\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "title": "" }, { "docid": "97e4d9edc6ff6a6bc5c0b65c7f0c8723", "score": "0.6406807", "text": "private void showDatePickerDialog() {\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, this,\n Calendar.getInstance().get(Calendar.YEAR),\n Calendar.getInstance().get(Calendar.MONTH),\n Calendar.getInstance().get(Calendar.DAY_OF_MONTH)\n );\n // Setting min date so we cant choose dates before current date.\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\n datePickerDialog.show();\n }", "title": "" }, { "docid": "28dda7bdd993169fd3047c55628551f8", "score": "0.63916004", "text": "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "title": "" }, { "docid": "cf625b68b37ab9f6b9e0029b406530ed", "score": "0.6387089", "text": "public void setStartDate(Date startDate) {\r\n this.startDate = startDate;\r\n }", "title": "" }, { "docid": "cf625b68b37ab9f6b9e0029b406530ed", "score": "0.6387089", "text": "public void setStartDate(Date startDate) {\r\n this.startDate = startDate;\r\n }", "title": "" }, { "docid": "49684e9081289e3bb696fb278b50568b", "score": "0.63853055", "text": "public void start() {\n initializeStartView();\n }", "title": "" }, { "docid": "68c2ebda7910fa42144d72f3fa4cc108", "score": "0.6373204", "text": "public void start() {\r\n\t\tstart = new Date();\r\n\t}", "title": "" }, { "docid": "d44eb98e746bfb2e609185f7efaadae2", "score": "0.6352036", "text": "public void setStartDate(Date startDate)\n {\n this.startDate = startDate;\n }", "title": "" }, { "docid": "84ed3742cba0e3ad2fd62cd347c1d861", "score": "0.63499635", "text": "void setStartDate(final Date startDate);", "title": "" }, { "docid": "8ea99da2a9b769a7dd3f989163021695", "score": "0.63418007", "text": "public void setDateStart(Date dateStart) {\n\t\tthis.dateStart = dateStart;\n\t}", "title": "" }, { "docid": "574f202f6e012fb4e69f0cd66bfbe360", "score": "0.63416153", "text": "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "title": "" }, { "docid": "574f202f6e012fb4e69f0cd66bfbe360", "score": "0.63416153", "text": "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "title": "" }, { "docid": "574f202f6e012fb4e69f0cd66bfbe360", "score": "0.63416153", "text": "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "title": "" }, { "docid": "574f202f6e012fb4e69f0cd66bfbe360", "score": "0.63416153", "text": "public void setStartDate(Date startDate) {\n this.startDate = startDate;\n }", "title": "" }, { "docid": "a0f2b8809ab9a2139f475bd9e956b5f0", "score": "0.6339507", "text": "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n startCalendar.set(Calendar.YEAR, year);\n startCalendar.set(Calendar.MONTH, monthOfYear);\n startCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n updateLabel(\"start\");\n }", "title": "" }, { "docid": "a2b6effa8f7f5186299c710a08554016", "score": "0.63367283", "text": "public void handleCStartDateBtn(View view) {\n final TextView resultEdit = findViewById(R.id.tvCStartDateResult); //date text on editor scrn\n //final TextView resultInfo = findViewById(R.id.tvCStartDateInfo); //date text on info scrn\n handleDatePicker(resultEdit);\n }", "title": "" }, { "docid": "576e3df818e649e6904887bf438983a4", "score": "0.6321406", "text": "public void setStartDate(final Date inStartDate) {\n \n this.startDate = inStartDate;\n \n }", "title": "" }, { "docid": "95a95211e28e0ee5d45b670abe491f17", "score": "0.63180894", "text": "public void setStartDate(Date startDate)\n {\n this.startDate = startDate;\n }", "title": "" }, { "docid": "f25a21e121c7bcec412dbaeb6b5af264", "score": "0.62829584", "text": "public void setStart(java.util.Date start) {\n this.start = start;\n }", "title": "" }, { "docid": "885a28edd226b84e608c49c456b5b7d6", "score": "0.6273501", "text": "public void setStartDate(String StartDate) {\n this.StartDate = StartDate;\n }", "title": "" }, { "docid": "00727e84684712044c957797f112abd2", "score": "0.6263489", "text": "@Override\n public void onClick(View view) {\n DatePickerDialog.OnDateSetListener onDateSetListener = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n\n StringBuffer strBuf = new StringBuffer();\n\n strBuf.append(dayOfMonth);\n strBuf.append(\"/\");\n strBuf.append(month+1);\n strBuf.append(\"/\");\n strBuf.append(year);\n\n TextView startDatePickerText = v.findViewById(R.id.textView34);\n startDatePickerText.setText(strBuf.toString());\n }\n };\n\n // acquisisce la data di fine del tour\n int year = endDate.get(Calendar.YEAR);\n int month = endDate.get(Calendar.MONTH);\n int day = endDate.get(Calendar.DAY_OF_MONTH);\n\n // creazione di una nuova istanza di DatePickerDialog.\n DatePickerDialog datePickerDialog = new DatePickerDialog(view.getContext(),\n R.style.Theme_AppCompat_DayNight_Dialog,\n onDateSetListener, year, month, day);\n\n // rappresentazione del popup\n datePickerDialog.show();\n }", "title": "" }, { "docid": "5a0efc76a119824cbae17c3a6e0a1a90", "score": "0.626287", "text": "private void showDatePicker(final TextView txtDate)\n {\n final Calendar c = Calendar.getInstance();\n int Day = calendar.get(Calendar.DAY_OF_MONTH);\n int Month = calendar.get(Calendar.MONTH);\n int Year = calendar.get(Calendar.YEAR);\n\n // Create DatePickerDialog, onDateSetListener AND onDateSate method\n DatePickerDialog datePickerDialog;\n DatePickerDialog.OnDateSetListener onDateSetListener = new DatePickerDialog.OnDateSetListener()\n {\n\n @Override\n public void onDateSet(DatePicker datePicker, int y, int m, int d) {\n // Append values to StringBuilder\n sbDate.append(d).append(\" \");\n sbDate.append(getMonth(m+1));\n sbDate.append(\" \").append(y);\n\n // Set chose values stored in StringBuilder as text to TextView\n txtDate.setText(sbDate);\n\n // Check what view was clicked AND save values to appropriate variables\n if(txtDate.getId() == R.id.txtDateStart)\n {\n dayStart = d;\n monthStart = m + 1;\n yearStart = y;\n }\n else\n {\n dayEnd = d;\n monthEnd = m + 1;\n yearEnd = y;\n }\n }\n };\n\n // Set DatePickerDialog info and starting date AND display it\n datePickerDialog = new DatePickerDialog(con, onDateSetListener, Year, Month, Day);\n datePickerDialog.setTitle(\"Select date\");\n datePickerDialog.show();\n\n // Remove stored values from StringBuilder\n sbDate.delete(0, sbDate.length());\n }", "title": "" }, { "docid": "67f2bbb3c8822570d7c52bf408f418c6", "score": "0.6253356", "text": "public void setStartDate(Calendar startDate) {\n this.startDate = startDate;\n }", "title": "" }, { "docid": "0ee00ffab0e7b229a3d42294a26989b0", "score": "0.6253262", "text": "public void setStart(ActionEvent event) {\n\t\tString startLocation = lstStartDirectory.getSelectionModel().getSelectedItem();\n\t\ttxtLocationStart.setText(startLocation);\n\n\t\tbtnCloseStartDirectory.setVisible(false);\n\t\tbtnOpenStartDirectory.setVisible(true);\n\t\tpaneStartDirectory.setVisible(false);\n\t}", "title": "" }, { "docid": "a9a84bac00781784cd535cce79e474c2", "score": "0.6242891", "text": "public void setStartDate(String startDate){\n this.startDate = startDate;\n }", "title": "" }, { "docid": "952b81be086540ed97b6292a7c40d9c1", "score": "0.62351835", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n new DatePickerDialog(POSActivity.this, date, myCalendar\n\t\t\t\t\t\t\t.get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n\t\t\t\t\t\t\tmyCalendar.get(Calendar.DAY_OF_MONTH)).show();\n\t\t\t\t}", "title": "" }, { "docid": "0a96b833636a709d583fc849e67b7f9e", "score": "0.6233166", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(TeamViewFragment.this.getContext(), date1, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "c5fadf563223db288a981eccef6a88ca", "score": "0.6232624", "text": "private void showDateDialog() {\n Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n /**\n * Update TextView dengan tanggal yang kita pilih\n */\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n /**\n * Update TextView dengan tanggal yang kita pilih\n */\n timeEvent.setText(dateFormat.format(newDate.getTime()));\n }\n\n }, newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n }", "title": "" }, { "docid": "e463b8d43e564ef578009bdcb17a2d70", "score": "0.6228429", "text": "private void openDatePickerDialog() {\n Calendar calendar = Calendar.getInstance();\n\n datePickerDialog = new DatePickerDialog(AddEditActivity.this,\n onDateSetListener, calendar.get(Calendar.YEAR),\n calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.setTitle(\"Set Alarm Date\");\n\n datePickerDialog.show();\n\n }", "title": "" }, { "docid": "4ca3b53ac59b2a7c6adab863bee545a0", "score": "0.6208378", "text": "@Override\n public void onClick(View v) {\n\n dateDialog.show();\n }", "title": "" }, { "docid": "58787c9face2abebb829ea41ed96628e", "score": "0.620214", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(InscriptionActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "510c36a2fdf6a0b6195fbfb18aa860b5", "score": "0.61937946", "text": "public void setStartDate(String startDate)\n {\n this.startDate = startDate;\n }", "title": "" }, { "docid": "24cfa5da3eda07b2b27eadc815c0e7f0", "score": "0.61910564", "text": "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n new DatePickerDialog(POSActivity.this, date, myCalendar\n\t\t\t\t\t\t\t\t.get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n\t\t\t\t\t\t\t\tmyCalendar.get(Calendar.DAY_OF_MONTH)).show();\n\t\t\t\t\t}", "title": "" }, { "docid": "591be55505063bbab725da64de430042", "score": "0.6184226", "text": "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tDatePickerDialog dpd = new DatePickerDialog(\r\n\t\t\t\t\t\tnew ContextThemeWrapper(RegisterHeadActivity.this,\r\n\t\t\t\t\t\t\t\tR.style.CustomDiaLog_by_SongHang),\r\n\t\t\t\t\t\tDatelistener, 1990, 0, 1);\r\n\t\t\t\tdpd.show();\r\n\t\t\t}", "title": "" }, { "docid": "e4d28c4499b301b14156281a9f00b034", "score": "0.6156927", "text": "public synchronized void start() {\n if(started) return;\n started = true;\n startDate = new Date();\n }", "title": "" }, { "docid": "cf14b0e9ad160adf2695d958b33bdd81", "score": "0.6146006", "text": "private void initDatePickerDialog(){\n DatePickerDialog.OnDateSetListener date = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDateLabel();\n }\n };\n\n dateInput.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), date, myCalendar.get(Calendar.YEAR), myCalendar.get(Calendar.MONTH), myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n updateDateLabel();\n\n }", "title": "" }, { "docid": "53faa78f38d67f9b8bb2346c81bb5019", "score": "0.6145764", "text": "public void start() {\n if(current != null){\n\n current.show();\n return;\n\n }\n\n\n //create a new form if none exist\n newForm((new ListView(this)).getForm());\n\n //set a timer to run every minute to check if a reminder needs to be pushed\n Timer timer = new Timer();\n TimerTask onTheMinute = new ReminderCheck();\n\n timer.schedule(onTheMinute, 60000 - java.util.Calendar.getInstance().getTimeInMillis() % 60000, 60000);\n\n\n\n }", "title": "" }, { "docid": "d2206adf7a8e990199ef0cc2227cb453", "score": "0.6142763", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), date,\n myCalendar.get(Calendar.YEAR),\n myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "814a0c266adff001bf24b15d3d731f26", "score": "0.6138323", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(NewGoalActivity.this, date2, myCalendar.get(Calendar.YEAR),\n myCalendar.get(Calendar.MONTH),myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "fb2cfcd19df97e79ea4e52fd13467ac7", "score": "0.6137263", "text": "@SuppressWarnings(\"deprecation\")\r\n\tpublic void onDateEntrySelected(boolean startDate, long defaultDate) {\r\n\t\t\r\n\t\t//Use calendar to generate date values for default\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.setTimeInMillis(defaultDate);\r\n\t\tyear = c.get(Calendar.YEAR);\r\n\t\tmonth = c.get(Calendar.MONTH);\r\n\t\tday = c.get(Calendar.DAY_OF_MONTH);\r\n\t\t//calling date picker\r\n\t\tshowDialog(DATE_DIALOG_ID);\r\n\r\n\t}", "title": "" }, { "docid": "7d3a8e8f333612e6a9c2b018989a1d24", "score": "0.61317587", "text": "public void setStartDate(String startDate) {\n this.startDate = startDate;\n }", "title": "" }, { "docid": "ac2eadbbcca0e482363f9955c4536407", "score": "0.61271375", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(ItinarySearchActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "cfd4cb37871716babfc01767723eae28", "score": "0.6120925", "text": "public void setTimeFrom(View view) {\n showDialog(idTimeFrom);\n Toast.makeText(getApplicationContext(), \"Choose Start Time\",\n Toast.LENGTH_SHORT)\n .show();\n }", "title": "" }, { "docid": "53e6bd211ee8610323685cc8cdc5c3b6", "score": "0.61031073", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tetStartTime.requestFocus();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "83ebd32140abdc0ebcc53bf05cfdd974", "score": "0.6102013", "text": "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n startDay = arg3;\n startMonth = arg2 + 1;\n startYear = arg1;\n\n showDate();\n }", "title": "" }, { "docid": "2dec5a73176bdc0662cc707e2c30ed12", "score": "0.60946935", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), datePick, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "55fcf30dbf24dd1bbe140443d09a6444", "score": "0.6092324", "text": "@Override\n public void onClick(View v) {\n showDialog(DATE_PICKER_ID);\n\n }", "title": "" }, { "docid": "1acbfd1cf31caf8e38fe7a341363fea8", "score": "0.6066807", "text": "public Builder setStartDate(long value) {\n bitField0_ |= 0x00000400;\n startDate_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1acbfd1cf31caf8e38fe7a341363fea8", "score": "0.6066807", "text": "public Builder setStartDate(long value) {\n bitField0_ |= 0x00000400;\n startDate_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "327173f4fac5ddd12e4da47b176bd364", "score": "0.6046982", "text": "@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n\n calendar = Calendar.getInstance();\n year = calendar.get(Calendar.YEAR);\n\n month = calendar.get(Calendar.MONTH);\n day = calendar.get(Calendar.DAY_OF_MONTH);\n\n //showDate(year, month+1, day);\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n return null;\n }", "title": "" }, { "docid": "ab61386c901d2f47074d8690f7235765", "score": "0.6045212", "text": "public void selectDate(View view) {\n\n DateDialogHelper dh=new DateDialogHelper();\n dh.show(getFragmentManager(), \"holdu\");\n\n }", "title": "" }, { "docid": "c4950bd6d019360b9e1a996a3450e629", "score": "0.60430515", "text": "public void showDatePicker() {\n Date current = parseDate(false);\n if (current == null) {\n current = new Date();\n }\n picker.setCurrentMonth(current);\n popup.showRelativeTo(this);\n }", "title": "" }, { "docid": "5542b803a01a680b2bec66c23a62eb63", "score": "0.602847", "text": "@Override\r\n public void onClick(View v) {\n new DatePickerDialog(AddSalesReturnActivity.this, date, myCalendar\r\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\r\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\r\n }", "title": "" }, { "docid": "5542b803a01a680b2bec66c23a62eb63", "score": "0.602847", "text": "@Override\r\n public void onClick(View v) {\n new DatePickerDialog(AddSalesReturnActivity.this, date, myCalendar\r\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\r\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\r\n }", "title": "" }, { "docid": "88dca1a79c785b738f78f1bdcd3bca4a", "score": "0.60245943", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(actContext, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "eb79b4b05251d4071f8c11169b090f86", "score": "0.60191447", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowDialog(DATE_DIALOG_ID);\n\t\t\t}", "title": "" }, { "docid": "e97d71e2acc6b185c058ec52cd4a1e82", "score": "0.60166276", "text": "@Override\n public void onClick(View v) {\n if(v == beginDate) {\n beginDatePickerDialog();\n } else if(v == endDate) {\n endDatePickerDialog();\n }\n }", "title": "" }, { "docid": "b35649bd8db288651b2b99231486ae64", "score": "0.6014822", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(OrderActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "e74c0cb1c00dee2ecbdc03067ed860c1", "score": "0.60100603", "text": "public void setStart(Date start)\n {\n schedule.setStartTime(start);\n }", "title": "" }, { "docid": "686b7f38c758ce6e4eb29fec04fac3c8", "score": "0.60036814", "text": "@Override\n public void onClick(View v) {\n\n fromDatePickerDialog.show();\n\n\n }", "title": "" }, { "docid": "045e5518ef6719406cc508db64ea2466", "score": "0.6001825", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(form.getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "7cc02ce357bd22d2659c76062e2cb78e", "score": "0.5993089", "text": "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n TextView dateView = null;\n switch (mNumPicker) {\n case START_DATE_PICKER:\n dateView = getActivity().findViewById(R.id.text_course_starting_date);\n break;\n case END_DATE_PICKER:\n dateView = getActivity().findViewById(R.id.text_course_end_date);\n break;\n default:\n Log.v(\"CourseDatePicker\",\"Error\");\n }\n SimpleDateFormat dateFormatter = new SimpleDateFormat(DATE_FORMAT);\n Date date = dateFormatter.parse(dateView.getText().toString(), new ParsePosition(0));\n Calendar c = Calendar.getInstance();\n c.setTime(date);\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }", "title": "" }, { "docid": "989c7f34991c1cbe966a28eb0eced01e", "score": "0.5990245", "text": "public void showDatePickerDialog(){\r\n\t\tLog.i(TAG,\"showDatePickerDialog() Entering.\");\r\n\t DialogFragment dateFragment = new DatePickerFragment();\r\n\t dateFragment.show(getFragmentManager(),\"datePicker\");\r\n\t Log.i(TAG,\"showDatePickerDialog() Exiting.\");\r\n\t}", "title": "" }, { "docid": "8fab934f1bc85090228bab9c6343d71a", "score": "0.5985961", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(hewanAdd.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "716269913048b00b35d06e15f83e4287", "score": "0.5978441", "text": "public Builder setStartDate(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n startDate_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d006a8eee14a17a0e170058b3408f270", "score": "0.5976827", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(TeamViewFragment.this.getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "56aa1d4f69d1f48bd31936d8a6c7fedc", "score": "0.59641224", "text": "protected abstract void initStartButton();", "title": "" }, { "docid": "9ee8dffa567a84898f9253204095b46e", "score": "0.59638894", "text": "private void setDateSelected() {\n date = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n // and set on a textView\n String myFormat = \"dd-MM-yyyy\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n startDate = sdf.format(myCalendar.getTime());\n tvStartDate.setText(sdf.format(myCalendar.getTime()));\n\n\n }\n\n };\n }", "title": "" }, { "docid": "bf255465b510b3cf12043c543245c02f", "score": "0.5957564", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.startData_button:\n\t\t\tnew DatePickerDialog(RemainSearcher.this,\n\t\t\t\t\tnew DatePickerDialog.OnDateSetListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onDateSet(DatePicker view, int year,\n\t\t\t\t\t\t\t\tint monthOfYear, int dayOfMonth) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tString startData = year + \"-\" + (monthOfYear + 1)\n\t\t\t\t\t\t\t\t\t+ \"-\" + dayOfMonth;\n\t\t\t\t\t\t\tRemainSearcher.this.startDataLabel\n\t\t\t\t\t\t\t\t\t.setText(startData);\n\t\t\t\t\t\t}\n\t\t\t\t\t}, c.get(Calendar.YEAR), c.get(Calendar.MONTH), c\n\t\t\t\t\t\t\t.get(Calendar.DAY_OF_MONTH)).show();\n\t\t\tbreak;\n\t\tcase R.id.start_arrive_button:\n\t\t\tLayoutInflater factory = LayoutInflater.from(RemainSearcher.this);\n\t\t\tView myView = factory.inflate(R.layout.start_arrive_station, null);\n\t\t\tstartStationText = (EditText) myView\n\t\t\t\t\t.findViewById(R.id.startStationEditText);\n\t\t\tarriveStationText = (EditText) myView\n\t\t\t\t\t.findViewById(R.id.arriveStationEditText);\n\t\t\tfinal AlertDialog dialog = new AlertDialog.Builder(this).setTitle(\n\t\t\t\t\t\"始发终到站\").setView(myView).setPositiveButton(\"确定\",\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tString start = startStationText.getText()\n\t\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\t\tString arrive = arriveStationText.getText()\n\t\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\t\tif (start.trim().equals(\"\")\n\t\t\t\t\t\t\t\t\t|| start.trim().equals(\"\")) {\n\t\t\t\t\t\t\t\tdisplayText(\"请正确输入始发终到站\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tRemainSearcher.this.startStationLabel\n\t\t\t\t\t\t\t\t\t\t.setText(start);\n\t\t\t\t\t\t\t\tRemainSearcher.this.arriveStationLabel\n\t\t\t\t\t\t\t\t\t\t.setText(arrive);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}).setNegativeButton(\"取消\",\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\tdisplayText(\"我取消这样选择了\");\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t}).create();\n\t\t\tdialog.show();\n\t\t\tbreak;\n\t\tcase R.id.trainCode_button:\n\t\t\tRemainSearcher.this.progressDialog = new ProgressDialog(\n\t\t\t\t\tRemainSearcher.this);\n\t\t\tprogressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\t\t\tprogressDialog.setTitle(\"请稍候\");\n\t\t\tprogressDialog.setMessage(\"正在查询数据……\");\n\t\t\tprogressDialog.setCancelable(true);\n\t\t\tprogressDialog.show();\n\t\t\tThread trainCodeThread = new Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// 获取时间\n\t\t\t\t\tfinal String[] startData = RemainSearcher.this.startDataLabel\n\t\t\t\t\t\t\t.getText().toString().trim().split(\"-\");\n\t\t\t\t\tfinal String startStation = RemainSearcher.this.startStationLabel\n\t\t\t\t\t\t\t.getText().toString().trim();\n\t\t\t\t\tfinal String arriveStation = RemainSearcher.this.arriveStationLabel\n\t\t\t\t\t\t\t.getText().toString().trim();\n\t\t\t\t\tfinal String trainCode = \"\";\n\t\t\t\t\t// 选择车型列表\n\t\t\t\t\tfinal String[] trainTypes = RemainSearcher.this.trainTypeLabel\n\t\t\t\t\t\t\t.getText().toString().trim().split(\";\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tTicketSearch trainSearch = new TicketSearch(\n\t\t\t\t\t\t\t\t\"http://dynamic.12306.cn/TrainQuery/iframeLeftTicketByStation.jsp\");\n\t\t\t\t\t\ttrainSearch.setMonth(TrainHelper\n\t\t\t\t\t\t\t\t.parseNumStr(startData[1]));\n\t\t\t\t\t\ttrainSearch.setDay(TrainHelper\n\t\t\t\t\t\t\t\t.parseNumStr(startData[2]));\n\t\t\t\t\t\ttrainSearch.setStartStation(startStation);\n\t\t\t\t\t\ttrainSearch.setArriveStation(arriveStation);\n\t\t\t\t\t\ttrainSearch.setTrainCode(trainCode);\n\t\t\t\t\t\t// 这里筛选路过车或始发终到等车,默认是所有\n\t\t\t\t\t\ttrainSearch.setRFlag(PostDataProvider.RFLAG_ALL_VALUE);\n\t\t\t\t\t\tString aa = trainTypes[0];\n\t\t\t\t\t\tif (trainTypes.length == 1\n\t\t\t\t\t\t\t\t&& aa.equals(TrainHelper.Train_AllType)) {\n\t\t\t\t\t\t\ttrainSearch\n\t\t\t\t\t\t\t\t\t.setName_CheckAll(PostDataProvider.NAME_CKBALL_VALUE);\n\n\t\t\t\t\t\t} else if (trainTypes.length >= 1) {\n\t\t\t\t\t\t\tList<String> tFlags = new ArrayList<String>();\n\t\t\t\t\t\t\tfor (int i = 0; i < trainTypes.length; i++) {\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_DCType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"DC\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_ZType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"Z\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_TType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"T\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_KType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"K\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_PKType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"PK\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_PKEType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"PKE\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_LKType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"LK\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttrainSearch.setTrainFlag(tFlags);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tint a = 2;\n\t\t\t\t\t\tresultStr = trainSearch\n\t\t\t\t\t\t\t\t.post(PostDataProvider.LX_VALUE_00);// postBack信息\n\t\t\t\t\t\tresultStr = HttpHelper.parse(resultStr);\n\t\t\t\t\t\trefreshTime = HttpHelper.getRefreshTime(resultStr);// 服务器更新时间\n\n\t\t\t\t\t\tif (resultStr != \"\") {\n\t\t\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\t\t\tBundle mBundle = new Bundle();\n\t\t\t\t\t\t\t// 传递数据\n\t\t\t\t\t\t\tmBundle.putString(\"data\", resultStr);\n\t\t\t\t\t\t\tmBundle.putString(\"start_arriveStation\", \"\\\"\"\n\t\t\t\t\t\t\t\t\t+ RemainSearcher.this.startStationLabel\n\t\t\t\t\t\t\t\t\t\t\t.getText().toString()\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\t+ RemainSearcher.this.arriveStationLabel\n\t\t\t\t\t\t\t\t\t\t\t.getText().toString() + \"\\\"\");\n\t\t\t\t\t\t\tmBundle.putString(\"refreshTime\", refreshTime);\n\n\t\t\t\t\t\t\tintent.putExtras(mBundle);\n\t\t\t\t\t\t\tintent.setClass(RemainSearcher.this,\n\t\t\t\t\t\t\t\t\tTrainCodes.class);\n\t\t\t\t\t\t\tRemainSearcher.this.startActivityForResult(intent, 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tRemainSearcher.this.progressDialog.cancel();\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tRemainSearcher.this.progressDialog.cancel();\n\t\t\t\t\t\tdisplayText(\"提示:查询错误!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t\ttrainCodeThread.start();\n\t\t\tbreak;\n\t\tcase R.id.traintype_button:\n\t\t\tIntent intent = new Intent();\n\t\t\tBundle mBundle = new Bundle();\n\t\t\tmBundle.putString(\"data\", \"\");\n\t\t\tintent.putExtras(mBundle);\n\t\t\tintent.setClass(RemainSearcher.this, TrainTypes.class);\n\t\t\t// RemainSearcher.this.startActivity(intent);\n\n\t\t\t// 能够返回结果\n\t\t\tRemainSearcher.this.startActivityForResult(intent, 1);\n\t\t\tbreak;\n\t\tcase R.id.ticketSearch_button:\n\t\t\tRemainSearcher.this.progressDialog = new ProgressDialog(\n\t\t\t\t\tRemainSearcher.this);\n\t\t\tprogressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\t\t\tprogressDialog.setTitle(\"请稍候\");\n\t\t\tprogressDialog.setMessage(\"正在查询数据……\");\n\t\t\tprogressDialog.setCancelable(true);\n\t\t\tprogressDialog.show();\n\n\t\t\tThread th = new Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// 获取时间\n\t\t\t\t\tfinal String[] startData = RemainSearcher.this.startDataLabel\n\t\t\t\t\t\t\t.getText().toString().trim().split(\"-\");\n\t\t\t\t\tfinal String startStation = RemainSearcher.this.startStationLabel\n\t\t\t\t\t\t\t.getText().toString().trim();\n\t\t\t\t\tfinal String arriveStation = RemainSearcher.this.arriveStationLabel\n\t\t\t\t\t\t\t.getText().toString().trim();\n\t\t\t\t\tfinal String trainCode = RemainSearcher.this.trainCodeText\n\t\t\t\t\t\t\t.getText().toString().trim();\n\t\t\t\t\t// 选择车型列表\n\t\t\t\t\tfinal String[] trainTypes = RemainSearcher.this.trainTypeLabel\n\t\t\t\t\t\t\t.getText().toString().trim().split(\";\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tTicketSearch trainSearch = new TicketSearch(\n\t\t\t\t\t\t\t\t\"http://dynamic.12306.cn/TrainQuery/iframeLeftTicketByStation.jsp\");\n\t\t\t\t\t\ttrainSearch.setMonth(TrainHelper\n\t\t\t\t\t\t\t\t.parseNumStr(startData[1]));\n\t\t\t\t\t\ttrainSearch.setDay(TrainHelper\n\t\t\t\t\t\t\t\t.parseNumStr(startData[2]));\n\t\t\t\t\t\ttrainSearch.setStartStation(startStation);\n\t\t\t\t\t\ttrainSearch.setArriveStation(arriveStation);\n\t\t\t\t\t\ttrainSearch.setTrainCode(trainCode);\n\t\t\t\t\t\t// 这里筛选路过车或始发终到等车,默认是所有\n\t\t\t\t\t\ttrainSearch.setRFlag(PostDataProvider.RFLAG_ALL_VALUE);\n\t\t\t\t\t\tString aa = trainTypes[0];\n\t\t\t\t\t\tif (trainTypes.length == 1\n\t\t\t\t\t\t\t\t&& aa.equals(TrainHelper.Train_AllType)) {\n\t\t\t\t\t\t\ttrainSearch\n\t\t\t\t\t\t\t\t\t.setName_CheckAll(PostDataProvider.NAME_CKBALL_VALUE);\n\n\t\t\t\t\t\t} else if (trainTypes.length >= 1) {\n\t\t\t\t\t\t\tList<String> tFlags = new ArrayList<String>();\n\t\t\t\t\t\t\tfor (int i = 0; i < trainTypes.length; i++) {\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_DCType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"DC\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_ZType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"Z\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_TType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"T\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_KType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"K\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_PKType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"PK\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_PKEType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"PKE\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (trainTypes[i]\n\t\t\t\t\t\t\t\t\t\t.equals(TrainHelper.Train_LKType_Text)) {\n\t\t\t\t\t\t\t\t\ttFlags.add(\"LK\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttrainSearch.setTrainFlag(tFlags);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tint a = 2;\n\t\t\t\t\t\tresultStr = trainSearch\n\t\t\t\t\t\t\t\t.post(PostDataProvider.LX_VALUE_00);// postBack信息\n\t\t\t\t\t\tresultStr = HttpHelper.parse(resultStr);\n\t\t\t\t\t\trefreshTime = HttpHelper.getRefreshTime(resultStr);// 服务器更新时间\n\n\t\t\t\t\t\tif (resultStr != \"\") {\n\t\t\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\t\t\tBundle mBundle = new Bundle();\n\t\t\t\t\t\t\t// 传递数据\n\t\t\t\t\t\t\tmBundle.putString(\"data\", resultStr);\n\t\t\t\t\t\t\tmBundle.putString(\"start_arriveStation\", \"\\\"\"\n\t\t\t\t\t\t\t\t\t+ RemainSearcher.this.startStationLabel\n\t\t\t\t\t\t\t\t\t\t\t.getText().toString()\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\t+ RemainSearcher.this.arriveStationLabel\n\t\t\t\t\t\t\t\t\t\t\t.getText().toString() + \"\\\"\");\n\t\t\t\t\t\t\tmBundle.putString(\"refreshTime\", refreshTime);\n\n\t\t\t\t\t\t\tintent.putExtras(mBundle);\n\t\t\t\t\t\t\tintent.setClass(RemainSearcher.this,\n\t\t\t\t\t\t\t\t\tRemainTicketsList.class);\n\t\t\t\t\t\t\tRemainSearcher.this.startActivity(intent);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tRemainSearcher.this.progressDialog.cancel();\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tRemainSearcher.this.progressDialog.cancel();\n\t\t\t\t\t\tdisplayText(\"提示:查询错误!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t\tth.start();\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "7d1f9c53ddcbba2df84aa88c02d41087", "score": "0.5952485", "text": "private void setDatePickerInicio() {\r\n datePickerInicio = new DatePicker(new Locale(m.write(\"language\"), m.write(\"language0\")));\r\n datePickerInicio.setDateFormat(sdf);\r\n datePickerInicio.setPromptText(\"-- / -- / ----\");\r\n datePickerInicio.getCalendarView().todayButtonTextProperty().set(m.write(\"today\"));\r\n datePickerInicio.getCalendarView().setShowWeeks(false);\r\n datePickerInicio.getStylesheets().add(\"interfaz/util/DatePicker.css\");\r\n gridPaneInicio.add(datePickerInicio, 0, 0);\r\n ((TextField) datePickerInicio.getChildren().get(0)).setMaxWidth(73);//se ajusta el tamaño del textfield\r\n ((TextField) datePickerInicio.getChildren().get(0)).setEditable(false);//el textfield no sera editable\r\n ((TextField) datePickerInicio.getChildren().get(0)).setText(sdf.format(m.getPeriodoInicio()));\r\n }", "title": "" }, { "docid": "c95e92fbf30f294364134a997f514eae", "score": "0.59518385", "text": "public void set_start(Date T){\n \tthis.start = new Date(T);\r\n }", "title": "" }, { "docid": "89b13de703af0816c33721d1ba0bb266", "score": "0.5947195", "text": "public void setStartDate(Date value) {\n setAttributeInternal(STARTDATE, value);\n }", "title": "" }, { "docid": "26d6f658a3aeb34bfd5d5cf9884f99d7", "score": "0.594437", "text": "public Builder setStartDate(long value) {\n bitField0_ |= 0x00010000;\n startDate_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "fd7ecb49213b7027f3675c9e90a61d08", "score": "0.5943097", "text": "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 634, 458);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJDateChooser dateChooser = new JDateChooser();\r\n\t\tdateChooser.setBounds(254, 107, 91, 20);\r\n\t\tframe.getContentPane().add(dateChooser);\r\n\t\t\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tSystem.out.println(calendar.getTime());\r\n\t\tDate date = new Date();\r\n\t\tSystem.out.println(date);\r\n\t\t//dateChooser.setDate();\r\n\t\t\r\n\t\tString date1 = \"13 Oct 2016\";\r\n\t\tjava.util.Date date2;\r\n\t\ttry {\r\n\t\t\tdate2 = new SimpleDateFormat(\"yyyy-MM-dd\").parse(date1);\r\n\t\t\tdateChooser.setDate(date2);\r\n\t\t} catch (ParseException 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}", "title": "" }, { "docid": "d07e74dd637d7b6856373d6e76ef72e8", "score": "0.59426343", "text": "@Override\n public void onClick(View v) {\n\n fromDatePickerDialog.show();\n\n }", "title": "" }, { "docid": "f870841ae77164b0253f2140bd61d691", "score": "0.59418", "text": "@Override\n public void onClick(View v) {\n new DatePickerDialog(JoinActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "title": "" }, { "docid": "bea11ecc0a7e62851618aef88299f837", "score": "0.5940828", "text": "public void xsetStart(org.apache.xmlbeans.XmlDateTime start)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDateTime target = null;\r\n target = (org.apache.xmlbeans.XmlDateTime)get_store().find_element_user(START$8, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDateTime)get_store().add_element_user(START$8);\r\n }\r\n target.set(start);\r\n }\r\n }", "title": "" }, { "docid": "b88653190dd0528ddff2df699dcf1bd0", "score": "0.5938617", "text": "@Override\n\tpublic void start() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"0 : Create a public holiday\");\n\t\tSystem.out.println(\"1 : List all public holidays\");\n\t\tSystem.out.println(\"2 : Delete a public holiday\");\n\t\tSystem.out.println(\"3 : Back to previous menu\");\n\t\tint choice = this.getInputChoice(0, 3);\n\t\t\n\t\tthis.run(choice);\n\t}", "title": "" }, { "docid": "c2fbd93b611fb9048304db3ac3fd3a9e", "score": "0.5931158", "text": "@Override\n public void onClick(View v) {\n if(v == add) {\n String date=\"Start Date\";\n i = new Intent(getApplicationContext(), AddTask.class);\n i.putExtra(\"Extra\", date); //no start date selected so the startdate edit text field is set to the text \"START DATE\"\n startActivity(i);\n\n } }", "title": "" }, { "docid": "c404092e2f5252e0d9c983260de661ea", "score": "0.5928135", "text": "private void showDateDialog(){\n Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n /**\n * Update TextView dengan tanggal yang kita pilih\n */\n txtTgl.setText(dateFormatter.format(newDate.getTime()));\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "610c7e46e767c342ea32581a143a319b", "score": "0.0", "text": "@Override\n\tpublic void update(ShoppingList shoppingList) {\n\t\t\n\t}", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "941cb2826e3c700358fcaba402e6bb01", "score": "0.66775143", "text": "@Override\r\n\tpublic void hissetmek() {\n\r\n\t}", "title": "" }, { "docid": "63918b2e510c9040bbddcac00095b41a", "score": "0.6605982", "text": "private void recuperation() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "6a98c5d2724fce37914819c5694da3c3", "score": "0.6509783", "text": "@Override\r\n\tpublic void anular() {\n\r\n\t}", "title": "" }, { "docid": "dae8b602ea36995333bfb23acf8fc88d", "score": "0.6496443", "text": "@Override\n\tpublic void respire() {\n\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "f099266a753a2faacd6b8dfa57904378", "score": "0.64321727", "text": "@Override\r\n\tpublic void courrir() {\n\t}", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.6425563", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1068dc3e7725abba37b41c9a52dee06b", "score": "0.6386121", "text": "@Override\r\n\tpublic void tatmak() {\n\r\n\t}", "title": "" }, { "docid": "6141981a3ecff744fc5ac85a76ccce98", "score": "0.63590497", "text": "@Override\r\n\tpublic void avlan() {\n\t\t\r\n\t}", "title": "" }, { "docid": "98fb55d46118273a6e8a6d23841c620d", "score": "0.6327681", "text": "@Override\n\tpublic void eati() {\n\t\t\n\t}", "title": "" }, { "docid": "0792d032a803e20f3b87637fd91001d5", "score": "0.62811846", "text": "@Override\n\tpublic void getSugary() {\n\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6276059", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a8ee8a5581ce765ec4ab398c0459e014", "score": "0.61750215", "text": "@Override\r\n\tpublic void koklama() {\n\r\n\t}", "title": "" }, { "docid": "0e69410f7365f8e3379273ee4419fb49", "score": "0.6149904", "text": "@Override\r\n\tprotected void init() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.61387193", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "8bae22ac805011d799a49bd7b5316540", "score": "0.612467", "text": "@Override\n public int describeContents() {\n // Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "8c5b7f2508d01c106c784ecca7153f46", "score": "0.6119395", "text": "@Override\n\tvoid comer() {\n\t\t\n\t}", "title": "" }, { "docid": "7bc643d9ac7542f10430da7f200395d4", "score": "0.610188", "text": "@Override\n\tpublic void fiyat() {\n\t\t\n\t}", "title": "" }, { "docid": "7dadb1a7e45c020b2193294044375a9d", "score": "0.60646844", "text": "@Override\r\n \tpublic void init() {\n \t\t\r\n \t}", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "b7f027eb6ff62218a28c15c608504db7", "score": "0.6055265", "text": "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "9dd1bbd8c949b94d0e93b83bfc68c88a", "score": "0.6021345", "text": "@Override\n\tpublic void aeronoticalinfo() {\n\t\t\n\t}", "title": "" }, { "docid": "2762ca3c2d0df2e43c2974f74b6f5794", "score": "0.6013198", "text": "public void mo23507LF() {\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "119b459aa82980ed18ed9f73e4c0c1f6", "score": "0.5970375", "text": "public void mo8248e() {\n }", "title": "" }, { "docid": "c7fe9cc2a6c42140d48d92c4796a998c", "score": "0.5924626", "text": "@Override\r\n\t\t\t\t\t\tpublic void visitEnd() {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "092f51e9c99cd4188e1aae23e1830dfd", "score": "0.58991617", "text": "protected void func_70626_be() {}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5896488", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "4790ff4cb67532ccdfaae8968e73fbc3", "score": "0.58832747", "text": "@Override\n protected void initData() {\n\n\n }", "title": "" }, { "docid": "023182f0f855d46c66b41a6d83583efa", "score": "0.5871911", "text": "@Override\r\n\tpublic void singen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8d96d27dfdf5b1a8cc8b8a7627c83bc1", "score": "0.5869012", "text": "@Override\n public void afficher() {\n\n }", "title": "" }, { "docid": "298aa14afe5846b172f76bcf90564013", "score": "0.58663046", "text": "@Override\n\tprotected void initAfterData() {\n\t\t\n\t}", "title": "" }, { "docid": "e065a728f99482f0172c0250b07109a9", "score": "0.58587575", "text": "public void MIENTRAS() {\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "6c15d2233a095a738527f0099df0e328", "score": "0.58534765", "text": "@Override\n\tprotected void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7da3b15ef60da758589933b21890a100", "score": "0.5835782", "text": "@Override\n\t\t\tpublic void buscar() {\n\n\t\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.5810359", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "ac3fa8f374744c1d8419fb42b093eb87", "score": "0.58098364", "text": "@Override\n public void ATOM() {\n\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "17bf5dfb3822657f7beb964bbcaf351d", "score": "0.58010787", "text": "private void getdata() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c1cba83b623b4186565c3383ace251b9", "score": "0.5798524", "text": "@Override\n public void RES() {\n\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "04320a5131c4ec5a83b61f5170f3303b", "score": "0.578828", "text": "private void refreash() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "96aa62cb7c02dc761fce03adeea3bae6", "score": "0.5768868", "text": "public void consumidor() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "f76cff0faf8f5cac2bb5c9fa073b3900", "score": "0.5732497", "text": "private static void ispisiRemi() {\n\t\t\n\t}", "title": "" }, { "docid": "0da844a8d21284fc890b9866b17625b3", "score": "0.5729389", "text": "public void auton() {\r\n\r\n\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "e0989255fd1af22841693489e1afa33b", "score": "0.57214063", "text": "public void mo24349a() {\n }", "title": "" }, { "docid": "b860b78be8e10589ee5bd58e2ab7be8e", "score": "0.57196456", "text": "@Override\r\n\tpublic void autonomous() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "08ff281f85800b58e0eb77195be25bfc", "score": "0.5708199", "text": "public void finito() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "24b649f4fd4e2e8f4e195b19c09f4c8b", "score": "0.56936413", "text": "@Override\n public void FUNMAYORQ() {\n\n }", "title": "" }, { "docid": "b3c7aad07c4af0cfec14c4b0f0f289ef", "score": "0.5692504", "text": "@Override\n\tpublic void arb() {\n\n\t}", "title": "" }, { "docid": "8657ef720f12b2480d4363be4e46781e", "score": "0.5691313", "text": "protected boolean method_4310() {\r\n return true;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" } ]
b79bf3731385d00011b3ffd72f7f66d3
Shows the feature highlight fragment. This results in this Fragment being added.
[ { "docid": "e21c8077b36f880b7b73fda34cf903d7", "score": "0.5047474", "text": "public void show(FragmentManager fragmentManager) {\n showState = SHOW_STATE_USER_SHOWN;\n\n backStackId =\n fragmentManager.beginTransaction().add(android.R.id.content, this, FRAGMENT_TAG).commit();\n }", "title": "" } ]
[ { "docid": "39e9abc4d5d42cf1ac35bab0cf8aec46", "score": "0.6323302", "text": "private void showFragment() {\n }", "title": "" }, { "docid": "e69fee5272b1ab7e537c3409c468faed", "score": "0.61931586", "text": "private void showFavoriteMatches() {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.frameLayout, favoriteMatchesFragment).commit();\n }", "title": "" }, { "docid": "b076a99f7604d2b727aef48c5352f27d", "score": "0.59766483", "text": "public void showAPPLandingFragment() {\n Log.d(TAG,\"Launching landing fragment\");\n\n DemoAppLandingFragment fr = DemoAppLandingFragment.newInstance();\n FragmentTransaction tr = getSupportFragmentManager().beginTransaction();\n tr.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n tr.replace(R.id._APP_authcontroldemo_frag_container, fr, APP_LANDING_FRAG_TAG).commit();\n }", "title": "" }, { "docid": "5984078fc4a0fd955ebb1bc4adf88fc9", "score": "0.57752866", "text": "private void displayFragment() {\n getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.frame_fragment_logging, LoggingFragment.newInstance(), LoggingFragment.TAG)\n .commit();\n }", "title": "" }, { "docid": "331422d9c896c3ece28469e87ab42f02", "score": "0.5707602", "text": "private void showFragment(Fragment targetFragment, String className) {\n getActivity().getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.content_frame, targetFragment, className)\n .setTransitionStyle(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)\n .commit();\n }", "title": "" }, { "docid": "40be5cac0bdfb799b3fd84f4d8388563", "score": "0.5695262", "text": "@Override\n public void fragmentVisible() {\n }", "title": "" }, { "docid": "315f659273daa92d85b22fce44a7099b", "score": "0.56830037", "text": "private void showSelectedFragment(Fragment fragment){\n getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.container,fragment)\n .setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE)\n //permite regresar hacia atras entre los fragments\n //.addToBackStack(null)\n .commit();\n }", "title": "" }, { "docid": "8215e78ac8f0fea1ca1d3a1f88507c8f", "score": "0.5575484", "text": "private void loadFragment() {\n // selecting appropriate nav menu item\n settingUpNavigationMenu();\n\n settingToolbarTitle();\n\n if (getSupportFragmentManager().findFragmentByTag(CURRENT_TAG) != null) {\n drawerLayout.closeDrawers();\n\n // show or hide the fab button\n return;\n }\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n Fragment fragment = getSelectedFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frameLayout, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n\n }\n };\n\n handler.post(runnable);\n drawerLayout.closeDrawers();\n invalidateOptionsMenu();\n\n }", "title": "" }, { "docid": "f6775d77978d1991d1a20f5cca6a7735", "score": "0.5545192", "text": "protected void showInitialFragment() {\n if (!mShowInitialFragment) {\n return;\n }\n Fragment fragment = onCreateInitialFragment();\n if (fragment != null) {\n showFragment(fragment, false);\n mShowInitialFragment = false;\n }\n }", "title": "" }, { "docid": "7dc40d8023015c58d35601a000025c9c", "score": "0.54782486", "text": "private void showRecentMatches() {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.frameLayout, matchListFragment).commit();\n }", "title": "" }, { "docid": "311dcb2f93d0d4f22a422f1c7fc3416e", "score": "0.53943866", "text": "private void showEisenSelectionFragment() {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n Fragment prev = getFragmentManager().findFragmentByTag(\"dialog\");\n if (prev != null) {\n ft.remove(prev);\n }\n ft.addToBackStack(null);\n\n // Create and show the dialog fragment\n // Note that the setOnDestroyListener must be chained together as it returns\n // a new eisenselectionfragment\n EisenSelectionFragment fragment = new EisenSelectionFragment()\n .setOnDestroyListener(eisenTag -> eisenField.setText(eisenTag));\n\n fragment.show(getSupportFragmentManager(), \"dialog\");\n }", "title": "" }, { "docid": "6cbdf0d952a25f2ef352869494c92bd6", "score": "0.5344333", "text": "@Override\n public void onFragmentBecomeVisible() {\n if (fragmentLaid.get()) {\n refreshSystemInfo();\n }\n }", "title": "" }, { "docid": "defd8fddab233fe0e4241820514b99ef", "score": "0.53365076", "text": "public void hide() {\n if (showState == SHOW_STATE_NOT_SHOWN) {\n return;\n }\n showState = SHOW_STATE_NOT_SHOWN;\n\n if (featureHighlightView != null) {\n featureHighlightView.dismiss(\n new Runnable() {\n @Override\n public void run() {\n FragmentManager fragmentManager = getFragmentManager();\n if (backStackId >= 0) {\n fragmentManager.popBackStack(backStackId, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n backStackId = -1;\n } else {\n fragmentManager\n .beginTransaction()\n .remove(FeatureHighlightFragment.this)\n .commitAllowingStateLoss();\n }\n }\n });\n featureHighlightView = null;\n }\n }", "title": "" }, { "docid": "1ac6d3022da43a0fda1596be719b5f72", "score": "0.5290408", "text": "public void show(FragmentManager fm){\n show(fm, \"\");\n }", "title": "" }, { "docid": "5408988aee60eee9138efb2a9c826c52", "score": "0.52665055", "text": "public void show(){\n show(color);\n }", "title": "" }, { "docid": "3ae5ca8e6496a9d6784ec39f04d453c6", "score": "0.52367073", "text": "public void show() {\n getActivity().getSupportFragmentManager().beginTransaction().setCustomAnimations(R.anim.abc_slide_in_top, R.anim.abc_slide_out_top).show(this).commit();\n showing = true;\n }", "title": "" }, { "docid": "d455723f1afacf88ffe3adec23586368", "score": "0.52346826", "text": "private void showFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.content, fragment)\n .commit();\n }", "title": "" }, { "docid": "402914600793307fb9cc47f99f91dc76", "score": "0.5227189", "text": "private void fragment_show(Fragment fragment){\n FragmentManager manager=getSupportFragmentManager();\n FragmentTransaction transaction=manager.beginTransaction();\n transaction.replace(R.id.fragment_container,fragment);\n transaction.commit();\n }", "title": "" }, { "docid": "fc6e77aa713bb6176e8d8648da3dda90", "score": "0.5194784", "text": "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "title": "" }, { "docid": "fc6e77aa713bb6176e8d8648da3dda90", "score": "0.5194784", "text": "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "title": "" }, { "docid": "fc6e77aa713bb6176e8d8648da3dda90", "score": "0.5194784", "text": "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "title": "" }, { "docid": "fc6e77aa713bb6176e8d8648da3dda90", "score": "0.5194784", "text": "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }", "title": "" }, { "docid": "7afce5cd962da71f058c8012daba478d", "score": "0.5181427", "text": "@Override\r\n public void onFragmentVisible() {\n resultsOpened = true; // Se agrego esta linea para notificar que la busqueda esta abierta\r\n // FIN: Agregado por: Manuel Delgadillo - 23/FEB/2017 -->\r\n }", "title": "" }, { "docid": "c80944ab330d06bf7ff4503b9e57b1b2", "score": "0.5179867", "text": "public void selectFrag(View v) {\n Fragment fragment;\n if (v == findViewById(R.id.test)) {\n fragment = new FragmentTest();\n } else {\n fragment = new FragmentMaps();\n }\n\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.place_holder, fragment);\n fragmentTransaction.commit();\n\n }", "title": "" }, { "docid": "3db08d6e04d8dd6d0b103f6f4dc8a4f0", "score": "0.51723427", "text": "public void showSmokeScreen() {\n fabBgView.show();\n }", "title": "" }, { "docid": "fd0edb5b52d6c9a05a3a8898e3051e8f", "score": "0.516207", "text": "public void show(FragmentManager supportFragmentManager, String string) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "9b6bff78c3a03dda57a4349d181c7ff7", "score": "0.5152088", "text": "@Override\n\tpublic void onShowScene() {\n\n\t}", "title": "" }, { "docid": "4f9b0f0b97464b241eb18e8f3a9abfb0", "score": "0.5148458", "text": "@Override\n\t\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\t\tif (fragment == null) {\n\t\t\t\tfragment = Fragment\n\t\t\t\t\t\t.instantiate(activity, clz.getName(), bundle);\n\t\t\t\tft.add(android.R.id.content, fragment, tag);\n\t\t\t} else {\n\t\t\t\tft.attach(fragment);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "b0594283fa3664545358e9c4cfa9a5ab", "score": "0.5140948", "text": "public void displayFuel() {\n\n previousScreen = Fuel;\n replaceFragment(FuelDetailFragment.newInstance());\n getSupportActionBar().setTitle(getApplicationContext().getResources().getString(R.string.title_new_Fuel));\n }", "title": "" }, { "docid": "0530901aeca8d25c7e50f1be22f49584", "score": "0.5140331", "text": "private void addFragment() {\n mAddFragmentBtn.setEnabled(false);\n FragmentManager manager = getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.add(R.id.fragment_container, mFragmentOne, \"FragmentOne\");\n transaction.commit();\n }", "title": "" }, { "docid": "aceb0248617328a7e0f76e15ed59d5a3", "score": "0.51324135", "text": "@Override\n public void hideFabFromNewFrag() {\n\n }", "title": "" }, { "docid": "ea9d3d4c3124296a500f101f24a3dbdf", "score": "0.5112208", "text": "protected FragmentTransaction showFragment(Fragment fragment, boolean addToBackStack) {\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n if (fragment instanceof SetupFragment) {\n int[] sharedElements = ((SetupFragment) fragment).getSharedElementIds();\n if (sharedElements != null && sharedElements.length > 0) {\n Transition sharedTransition =\n TransitionInflater.from(this)\n .inflateTransition(R.transition.transition_action_background);\n sharedTransition.setDuration(getSharedElementTransitionDuration());\n SetupAnimationHelper.applyAnimationTimeScale(sharedTransition);\n fragment.setSharedElementEnterTransition(sharedTransition);\n fragment.setSharedElementReturnTransition(sharedTransition);\n for (int id : sharedElements) {\n View sharedView = findViewById(id);\n if (sharedView != null) {\n ft.addSharedElement(sharedView, sharedView.getTransitionName());\n }\n }\n }\n }\n String tag = fragment.getClass().getCanonicalName();\n if (addToBackStack) {\n ft.addToBackStack(tag);\n }\n ft.replace(R.id.fragment_container, fragment, tag).commit();\n\n return ft;\n }", "title": "" }, { "docid": "82e030266e5a9bbbde0c734d5ae2767a", "score": "0.51100785", "text": "private void openManageEmployeeFragment() {\n toolbar.setTitle(R.string.manage_employee_fragment_label);\n Fragment newFragment = new ManageEmployeeFragment();\n ReplaceFragment(newFragment);\n }", "title": "" }, { "docid": "98c24bd0c13fa904cb645900469ae365", "score": "0.5102752", "text": "@Override\n public void onClick(View view) {\n if (view == featureHighlightView) {\n hide();\n }\n }", "title": "" }, { "docid": "b0c7ded97459d800d31a2d7c59a87044", "score": "0.5092289", "text": "public PostFragment() {\n setHasOptionsMenu(true);\n }", "title": "" }, { "docid": "1269878449aa6e1559b7ba4dc74a7906", "score": "0.50851464", "text": "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tif(mFragment==null){\r\n\t\t\tmFragment=Fragment.instantiate(mActivity, mClass.getName());\r\n\t\t\tft.add(android.R.id.content, mFragment,mTag);\r\n\t\t}else{\r\n\t\t\tft.attach(mFragment);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9ba5152b1416f34efe12df33011a313a", "score": "0.5083584", "text": "private void startHomeFragment() {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.flContent, new HomeFragment()).commit();\n }", "title": "" }, { "docid": "3289e20a142b6970a607695e2d1e30e3", "score": "0.50816745", "text": "private void setupFragment() {\n // The fragment that need to be placed in the container\n BaseFragment fragment;\n\n switch (type) {\n case TIMELINE:\n fragment = new TimelineFragment();\n break;\n case PROJECTS:\n fragment = new ProjectsFragment();\n break;\n case SKILLS:\n fragment = new SkillsFragment();\n break;\n default:\n // Should not come to this!\n fragment = new SkillsFragment();\n break;\n }\n // Setup the colors of the fragment\n fragment.setColors(primaryColor, secondaryColor);\n // Add the fragment\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, fragment).commit();\n }", "title": "" }, { "docid": "98756a053aae763b712a4287b46101e2", "score": "0.50746727", "text": "private void showUI() {\n mBehavior.onNestedFling(mCoordinator, mAppBar, null, 0, -1000, true);\n mNewPostFab.show();\n }", "title": "" }, { "docid": "e8819aef19a70ea330ef6cdeafc58a48", "score": "0.5043342", "text": "private void open(Fragment fragment) {\n final String tag = fragment.getClass().toString();\n getActivity().getSupportFragmentManager()\n .beginTransaction()\n .addToBackStack(tag)\n .replace(R.id.main_content, fragment, tag)\n .commit();\n }", "title": "" }, { "docid": "b4fed4d61d36ab5324634efa2e6ae638", "score": "0.5042692", "text": "public void onFragmentInteraction();", "title": "" }, { "docid": "5be6ef2b898a673e9ef2b9e5f93f26dc", "score": "0.50380224", "text": "public void showFAB() {\n fab.show();\n }", "title": "" }, { "docid": "3b0efce376eb5485321347fecc3676ea", "score": "0.5035409", "text": "private void replaceFragment() {\n FragmentManager manager = getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.replace(R.id.fragment_container, mFragmentTwo, \"FragmentTwo\");\n transaction.commit();\n mAddFragmentBtn.setEnabled(true);\n }", "title": "" }, { "docid": "b5758b4bddd9ed7192e3112afeec81a0", "score": "0.5028833", "text": "public void onClick(View v) {\n android.app.FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_side_bar, new HomeFragment()).commit();\n\n }", "title": "" }, { "docid": "eb376b8cc72f1192b3909f00057a9316", "score": "0.49882987", "text": "@Override\n public void onClick(View view) {\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n Fragment fragment = new OverlaysSelectFragment();\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.replace(R.id.container, fragment).commit();\n }", "title": "" }, { "docid": "533f754a9f88c7d02b3f6fde2c252e09", "score": "0.49851292", "text": "@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commit();\n }", "title": "" }, { "docid": "fe47bd3e0da22a2c338a013b79716eba", "score": "0.49720708", "text": "public void openManageEventFragment() {\n toolbar.setTitle(R.string.manage_event_fragment_label);\n Fragment newFragment = new ManageEventFragment();\n ReplaceFragment(newFragment);\n }", "title": "" }, { "docid": "4aca51fc688c062a6d3f0eb5ac7f2f31", "score": "0.49599212", "text": "@Override\n public void onWaitFragmentInteractionShow() {\n getSupportFragmentManager()\n .beginTransaction()\n .add(R.id.frame_main_container, new WaitFragment(), \"WAIT\")\n .addToBackStack(null)\n .commit();\n }", "title": "" }, { "docid": "b2b66025ecf72ec2cb7b6c70af4de727", "score": "0.49428323", "text": "public void show() {\n\t\tactive = true;\n\t}", "title": "" }, { "docid": "0b6d901839f5ced46ea0dedb7223727f", "score": "0.49386808", "text": "private void displayView(int position) {\n Fragment fragment = null;\r\n switch (position) {\r\n case 0:\r\n fragment = new HomeFragment();\r\n break;\r\n case 1:\r\n fragment = new GoingFragment();\r\n break;\r\n case 2:\r\n fragment = new FinishFragment();\r\n break;\r\n case 3:\r\n fragment = new RemovedFragment();\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n if (fragment != null) {\r\n\r\n\r\n getSupportFragmentManager().beginTransaction()\r\n .replace(R.id.frame_container, fragment).commit();\r\n // update selected item and title, then close the drawer\r\n mDrawerList.setItemChecked(position, true);\r\n mDrawerList.setSelection(position);\r\n setTitle(navMenuTitles[position]);\r\n mDrawerLayout.closeDrawer(mDrawerList);\r\n } else {\r\n // error in creating fragment\r\n Log.e(\"MainActivity\", \"Error in creating fragment\");\r\n }\r\n }", "title": "" }, { "docid": "adbd8c381379a840fc96a4548f4629fb", "score": "0.49385804", "text": "public void showContent() {\n\t\tshowContent(true);\n\t}", "title": "" }, { "docid": "fcb9d2b208d563d98c0b90426d09490b", "score": "0.49339327", "text": "private void openCalculateSalaryFragment() {\n toolbar.setTitle(R.string.calculate_salary_fragment_label);\n Fragment newFragment = new ManageSalaryFragment();\n ReplaceFragment(newFragment);\n }", "title": "" }, { "docid": "948d259125cf106a3753b953746ce204", "score": "0.49315378", "text": "@Override\n\tpublic void show() {\n\t\tsuper.show();\n\n\t}", "title": "" }, { "docid": "0996539b8bdbcec622d999fd6ef03b38", "score": "0.49303746", "text": "public void setHighlight(boolean highlight) {\n\t\tthis.highlighted = highlight;\n\t}", "title": "" }, { "docid": "ec9084c5c89349661b91d59d3bde25dd", "score": "0.4915954", "text": "public void onClick(View v) {\n String newFrag = vTitleText.getText().toString();\n vFM.beginTransaction().replace(R.id.container, new SingleListFragment().newInstance(newFrag)).addToBackStack(null).commit();\n }", "title": "" }, { "docid": "74be4cb5fb35a38d23768c717d3eaa46", "score": "0.49141464", "text": "public void showTermsConditionFragment() {\n }", "title": "" }, { "docid": "85af168afe4a48ec41b5c7dcff62eacd", "score": "0.4906282", "text": "public void openFilter() {\n FragmentTransaction ft = getActivity().getSupportFragmentManager().beginTransaction();\n ft.setCustomAnimations(R.anim.flip_enter, R.anim.flip_exit, R.anim.flip_enter, R.anim.flip_exit);\n FilterFragment fragment = FilterFragment.newInstance();\n fragment.setOkFragmentListener(new OkFragmentListener() {\n @Override\n public void onDone(String tag) {\n getActivity().getSupportFragmentManager().popBackStack();\n }\n });\n ft.replace(R.id.bottomLayout, fragment);\n ft.addToBackStack(\"filter\");\n ft.commit();\n }", "title": "" }, { "docid": "f16c649d12cc3393ac468b053da54003", "score": "0.49051914", "text": "private void loadHomeFragment() {\n // selecting appropriate nav menu item\n //selectNavMenu();\n\n // set toolbar title\n// setToolbarTitle();\n\n // if user select the current navigation menu again, don't do anything\n // just close the navigation drawer\n if (getSupportFragmentManager().findFragmentByTag(CURRENT_TAG) != null) {\n drawer.closeDrawers();\n\n // show or hide the fab button\n // toggleFab();\n return;\n }\n\n // Sometimes, when fragment has huge data, screen seems hanging\n // when switching between navigation menus\n // So using runnable, the fragment is loaded with cross fade effect\n // This effect can be seen in GMail app\n\n //Closing drawer on item click\n drawer.closeDrawers();\n\n // refresh toolbar menu\n invalidateOptionsMenu();\n }", "title": "" }, { "docid": "f215217b2182a52bd2e73019c2c7940c", "score": "0.4903675", "text": "public void show() {\n\t\t// Useless if called in outside animation loop\n\t\tactive = true;\n\t}", "title": "" }, { "docid": "9e95f6e37e18ce391f768224a7a73563", "score": "0.48990494", "text": "private void show() {\n mVisible = true;\n ActionBar ab = getSupportActionBar();\n if (ab != null && !ab.isShowing()) {\n ab.show();\n }\n\n coordinatorLayout.setSystemUiVisibility(0);\n //coordinatorLayout.requestLayout();\n\n\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n\n //this.onto\n fab.setVisibility(View.VISIBLE);\n //mainFragment.setAmbientMode(false);\n\n coordinatorLayout.setOnTouchListener(null);\n //coordinatorLayout.setFitsSystemWindows(true);\n }", "title": "" }, { "docid": "216f0dc772b48ca983e19f569e713438", "score": "0.48979923", "text": "void replaceFragment(Fragment fragment){\n view.getFragmentManagerFromActivity().beginTransaction()\n .replace(R.id.container, fragment, RecipeDetailStepFragment.class.getSimpleName())\n .commit();\n }", "title": "" }, { "docid": "c99513b37ccc7a3c90e8cfffd7d0d882", "score": "0.48975053", "text": "void setupRender() {\n\t\t_highlightSectionId = _sectionId;\n\t}", "title": "" }, { "docid": "ebf1b972f92180df29246f26c21e65f0", "score": "0.4894427", "text": "public void show() {\n\t\ttry {\n\t\t\tthis_stage.isShowing();\n\t\t} catch (final Exception ex) {\n\t\t\tSystem.err.println(\"not Show\");\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "780040d450c4be088cfbd0158f4888b9", "score": "0.48911572", "text": "public void updateView() {\n if (getUserVisibleHint() && !(this instanceof ListingFragment) && !(this instanceof ListingFragmentMaterial)) {\n ((GaanaActivity) this.mContext).setFragment(this);\n }\n }", "title": "" }, { "docid": "fcecff7c0a44bffdf2c0d4bdc6b88e83", "score": "0.48868608", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment_light, container, false);\n }", "title": "" }, { "docid": "70eca2b2fba093e363a7bf001ca770ee", "score": "0.48826793", "text": "private void showAddScene(){\n \tif(controller.getVenues()!=null){\n\t\t\tcbVenues.getItems().clear();\n\t\t\tfor (Venue venue : controller.getVenues()) {\n\t\t\t\tcbVenues.getItems().add(venue.getName() + \" (\" + venue.getCapacity() + \")\");\n\t\t\t}\n\t\t}\n \tgetTxtEvent().setText(\"\");\n \tgetTxtSize().setText(\"\");\n\t\taddStage = new Stage();\n\t\taddStage.setScene(addScene);\n\t\taddStage.setTitle(\"Add New Event\");\n\t\taddStage.show();\n\t}", "title": "" }, { "docid": "9ec7ce25e49586ba58bd09e085ade61d", "score": "0.48766646", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.home, container, false);\n btnGetStarted = (Button) rootView.findViewById(R.id.btnGetStarted);\n\n final NavigationDrawer drawer = new NavigationDrawer();\n Log.i(TAG,pageNo.getPageNo());\n btnGetStarted.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n pageNo.setPageNo(\"0\");\n Fragment fragment = new HivAids();\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.myFragment,fragment);\n fragmentTransaction.commitAllowingStateLoss();\n\n }\n });\n return rootView;\n }", "title": "" }, { "docid": "9a50fa9989dd002a4c41898b7444ef14", "score": "0.48764795", "text": "private void installSemanticHighlighting() {\n \t\t// if (fSemanticHighlightingManager == null) {\n \t\t// fSemanticHighlightingManager = new SemanticHighlightingManager();\n \t\t// fSemanticHighlightingManager.install(fPreviewViewer, fColorManager,\n \t\t// getPreferenceStore(), createPreviewerRanges());\n \t\t// }\n \t}", "title": "" }, { "docid": "e5c1eb654d52168a81760f04cdeab567", "score": "0.4866565", "text": "@Override\n\t public void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t \n\t \tft.replace(R.id.fragment_container, fragment);\n\t }", "title": "" }, { "docid": "22649a3345ae5d71646a670e6d0bc29a", "score": "0.4865031", "text": "private void addLogFragment() {\n final FragmentTransaction transaction = getFragmentManager().beginTransaction();\n final LogFragment fragment = new LogFragment();\n transaction.replace(R.id.framelog, fragment);\n transaction.commit();\n }", "title": "" }, { "docid": "f456a7528bfabf07b5db3bac5c62df58", "score": "0.48616996", "text": "public void show(){\n\t\tsuper.show();\n\t\t\n\t}", "title": "" }, { "docid": "8f3621c4407f7f994f2fcbd38b8b5702", "score": "0.4853188", "text": "void showFab();", "title": "" }, { "docid": "91fdddb890bbcde6128ef05809615efe", "score": "0.48499644", "text": "public void show() {\n\t\tparent.rectMode(2);\n\t\tparent.fill(this.color[0], this.color[1], this.color[2]);\n\t\tparent.rect(this.x, this.y, 50, 30);\n\t}", "title": "" }, { "docid": "ad16d044a2f3fd229bd685710ae6dfa9", "score": "0.48486468", "text": "@Override\n\t\tpublic void onFragment(boolean arg0, String arg1) {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ecd97dd5c68b021f0836d2f6a11a6e8e", "score": "0.48473397", "text": "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n public void createNew() {\n FragmentManager fm = getSupportFragmentManager();\n\n //Start Fragment A which is the layout selector\n fragA = fm.findFragmentById(R.id.layout_selector);\n if(fragA == null) {\n fragA = new LayoutSelector();\n fragA.setArguments(getBundle());\n fm.beginTransaction().add(R.id.layout_selector, fragA, GameData.F_LAYOUT).commit();\n }\n\n //Start Fragment B which starts off as the flag selector\n fragB = fm.findFragmentById(R.id.flag_selector);\n if(fragB == null) {\n fragB = new FlagSelector();\n fragB.setArguments(getBundle());\n fm.beginTransaction().add(R.id.flag_selector, fragB, GameData.F_FLAG).commit();\n }\n\n //Start fragment C which is the points displayer (without button at first)\n fragC = fm.findFragmentById(R.id.point_display);\n if (fragC == null) {\n fragC = new PointDisplay();\n fragC.setArguments(getBundle());\n fm.beginTransaction().add(R.id.point_display, fragC, GameData.F_POINTS).commit();\n }\n }", "title": "" }, { "docid": "6a1f84e447df710701d5b80587af642e", "score": "0.48470923", "text": "private void loadFragment(Fragment fragment){\n FragmentManager fm = getFragmentManager();\n FragmentTransaction tf = fm.beginTransaction();\n tf.replace(R.id.container_home,fragment);\n tf.commit();\n }", "title": "" }, { "docid": "82bdde49595f7ed91b90c5cb89ee0649", "score": "0.48420003", "text": "public void onExamSelected(Exam exam) {\n\t\tif(currentContentFragment != examViewer) {\n\t\t\t//Set the currentContentFragment as this:\n\t\t\tcurrentContentFragment = examViewer;\n\t\t\t\n\t\t\tFragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\t\t\ttransaction.replace(R.id.inclass_content_frame, examViewer);\n\t\t\ttransaction.commit();\n\n\t\t\tFragmentManager fragmentManager = getSupportFragmentManager();\n\t\t\tfragmentManager.executePendingTransactions();\n\t\t}\n\t\t\n\t\texamViewer.loadExam(exam);\n\t}", "title": "" }, { "docid": "8075edc0e90032fca3eb98b9e9ea4a43", "score": "0.48395446", "text": "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tandroid.support.v4.app.FragmentManager fragmentManager = getSupportFragmentManager();\n\t\tandroid.support.v4.app.FragmentTransaction frgmentTransaction = fragmentManager\n\t\t\t\t.beginTransaction();\n\t\tFragment fragment = new NearByFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(NearByFragment.ARG_SECTION_NUMBER, tab.getPosition() + 1);\n\t\tfragment.setArguments(args);\n\t\tfrgmentTransaction.replace(R.id.container, fragment).commit();\n\t}", "title": "" }, { "docid": "57102738a1af1088fab0898584881b03", "score": "0.48268756", "text": "private void showDefaultPage() {\n FragmentManager manager = getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n fragment2 = new PersonList();\n bar_name.setText(\"Chat List\");\n transaction.add(R.id.fragment_container,fragment2,\"f2\");\n iv.setImageResource(R.drawable.tab_tab3_normal);\n transaction.commit();\n }", "title": "" }, { "docid": "4355eed4cb74d7c520ed6bfa953c3ef6", "score": "0.482093", "text": "private void changeFragment(Fragment targetFragment ,String tagMsg){\n resideMenu.clearIgnoredViewList();\n getSupportFragmentManager()/*if you don't below 3.0 android sdk , you can take it \"Support\" */\n .beginTransaction()\n .replace(R.id.main_layout, targetFragment, tagMsg)\n .setTransitionStyle(FragmentTransaction.TRANSIT_FRAGMENT_FADE)\n .commit();\n }", "title": "" }, { "docid": "b8ae3769c96d01f306207abfbb0110ba", "score": "0.48115703", "text": "private void addMyDeveloperFragment() {\n FragmentManager fm = getActivity().getSupportFragmentManager();\n fm.popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n DeveloperEntryFragment fragment = DeveloperEntryFragment.newInstance(getString(R.string.string_profile), null);\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n fragmentTransaction.replace(R.id.fragment_container, fragment);\n fragmentTransaction.commit();\n }", "title": "" }, { "docid": "40f0f60ac93c51d07b869854c09a3661", "score": "0.4810946", "text": "@Override\n public void onNavigationDrawerItemSelected(String fileName) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.container, ContentFragment.newInstance(fileName))\n .commit();\n }", "title": "" }, { "docid": "dda8b0465681e0d819455f443369abfb", "score": "0.4809404", "text": "private void loadHomeFragment() {\n // selecting appropriate nav menu item\n selectNavMenu();\n\n // set toolbar title\n setToolbarTitle();\n\n // if user select the current navigation menu again, don't do anything\n // just close the navigation drawer\n if (getSupportFragmentManager().findFragmentByTag(CURRENT_TAG) != null) {\n drawer.closeDrawers();\n\n // show or hide the fab button\n toggleFab();\n return;\n }\n\n // Sometimes, when fragment has huge data, screen seems hanging\n // when switching between navigation menus\n // So using runnable, the fragment is loaded with cross fade effect\n // This effect can be seen in GMail app\n Runnable mPendingRunnable = new Runnable() {\n @Override\n public void run() {\n // update the main content by replacing fragments\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }\n };\n\n // If mPendingRunnable is not null, then add to the message queue\n if (mPendingRunnable != null) {\n mHandler.post(mPendingRunnable);\n }\n\n // show or hide the fab button\n toggleFab();\n\n //Closing drawer on item click\n drawer.closeDrawers();\n\n // refresh toolbar menu\n invalidateOptionsMenu();\n }", "title": "" }, { "docid": "4c728ea39da7bf9f6dd4b60e798f5709", "score": "0.4802194", "text": "public static void show(FragmentManager fm, int id,\n PatternEventListener listener, String tag, String headerText) {\n final Bundle args = new Bundle();\n if (headerText != null) {\n args.putString(EXTRA_HEADER_TEXT, headerText);\n Log.d(TAG, \"headerText: \" + headerText);\n }\n\n final ConfirmLockPatternFragment fragment = new ConfirmLockPatternFragment(\n listener);\n fragment.setArguments(args);\n\n final FragmentTransaction ft = fm.beginTransaction();\n ft.replace(id, fragment, tag);\n ft.commitAllowingStateLoss();\n }", "title": "" }, { "docid": "494c7747e3e915ce46c05308f0bb1e6c", "score": "0.47946346", "text": "@Override\n public void onListSelection(int index) {\n // If the Fragment has not been added, add it now\n if (!mRestaurantPictureFragment.isAdded()) {\n // Start a new FragmentTransaction\n FragmentTransaction fragmentTransaction = mFragmentManager.beginTransaction();\n // Add the Fragment to the layout\n fragmentTransaction.add(R.id.rpic_fragment_container, mRestaurantPictureFragment);\n // Add this FragmentTransaction to the backstack\n fragmentTransaction.addToBackStack(null);\n // Commit the FragmentTransaction\n fragmentTransaction.commit();\n // Force Android to execute the committed FragmentTransaction\n mFragmentManager.executePendingTransactions();\n }\n //if (mRestaurantPictureFragment.getShownIndex() != index) {\n // Tell the Picture Fragment to show the picture at position index\n mRestaurantPictureFragment.showPictureAtIndex(index);\n //}\n }", "title": "" }, { "docid": "a85f15a5800b6e327236175fe6ad4128", "score": "0.4793929", "text": "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n Fragment fragment = null;\n switch (id) {\n case R.id.nav_school:\n fragment = new SchoolFragment();\n setTitle(\"校园\");\n break;\n case R.id.nav_gallery:\n break;\n case R.id.nav_slideshow:\n break;\n case R.id.nav_manage:\n break;\n case R.id.nav_share:\n break;\n case R.id.nav_send:\n\n break;\n default:\n// fragment = new SchoolFragment();\n break;\n }\n\n// Bundle args = new Bundle();\n// args.putInt(\"SchoolFragment.ARG_PLANET_NUMBER\", id);\n// fragment.setArguments(args);\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction ft = fragmentManager.beginTransaction();\n currentFragment = fragmentManager.findFragmentById(id);\n if (currentFragment == null) {\n currentFragment = fragment;\n ft.add(R.id.content_container, currentFragment);\n }\n if (lastFragment != null) {\n ft.hide(lastFragment);\n }\n if (currentFragment.isDetached()) {\n ft.attach(currentFragment);\n }\n ft.show(currentFragment);\n lastFragment = currentFragment;\n ft.commit();\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "title": "" }, { "docid": "a4a2ba71fb95c9fd6fdcfb5df92141f6", "score": "0.47918308", "text": "void revealFrame(Frame frame) {\n log(\".revealFrame() [\" + (System.currentTimeMillis() - t0) + \"ms]\");\n\n FragmentTransaction trans = getFragmentManager().beginTransaction();\n if (currTrans != null) {\n switch (currTrans) {\n case OPEN:\n trans.setCustomAnimations(R.anim.storm_in, R.anim.fade_out);\n break;\n case NEXT:\n trans.setCustomAnimations(R.anim.slide_in_from_right, R.anim.slide_out_to_left);\n break;\n case PREV:\n trans.setCustomAnimations(R.anim.slide_in_from_left, R.anim.slide_out_to_right);\n break;\n }\n }\n if (currFrag != null) trans.hide(currFrag);\n trans.show(frame.mWebViewFrag);\n if (currFrag != null && (currTrans == FrameTransition.NEXT || currTrans == FrameTransition.PREV)) trans.remove(currFrag);\n\n // the page has started so it has configured the title, nav-drawer and action bar so we can provoke a redraw\n makeFrameCurrent(trans, frame);\n }", "title": "" }, { "docid": "2d903dd699393cca6c64488c7112c08a", "score": "0.47793588", "text": "@Override\n public void onTabSelected(Tab tab, FragmentTransaction ft) {\n\n Log.i(TAG, \"onSelectedTab\");\n\n if(null != mFragment){\n\n ft.replace(R.id.fragment_container, mFragment);\n }\n }", "title": "" }, { "docid": "1893751e18c93c2d207b1aedcc6019c2", "score": "0.47769445", "text": "public void showScreen(Fragment content, String contentTag, boolean addToBackStack, boolean clearBackStack) {\r\n\r\n FragmentManager fm = getSupportFragmentManager();\r\n FragmentTransaction ft = fm.beginTransaction();\r\n ft.setCustomAnimations(R.anim.left_slide_in, R.anim.left_slide_out, R.anim.right_slide_in, R.anim.right_slide_out);\r\n ft.replace(R.id.fragment_container_id, content, contentTag);\r\n\r\n if (clearBackStack) {\r\n\r\n fm.popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\r\n }\r\n\r\n if (addToBackStack) {\r\n\r\n ft.addToBackStack(String.valueOf(System.identityHashCode(content)));\r\n }\r\n\r\n ft.commitAllowingStateLoss();\r\n fm.executePendingTransactions();\r\n }", "title": "" }, { "docid": "4c72e0adf32f6ee0d77349b8e6c836b0", "score": "0.4775938", "text": "private void setUpLandingFragment() {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.popBackStack();\n fragmentManager.beginTransaction().add(R.id.content, new ScannerFragment()).commit();\n }", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.47691992", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.47691992", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.47691992", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.47691992", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.47691992", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "6e5dd6de8538a992ce56a07ad595b481", "score": "0.47691992", "text": "@Override\n\tpublic void show() {\n\n\t}", "title": "" }, { "docid": "a7d9c13fc7b4566c88423ed16b633fe1", "score": "0.4765716", "text": "public void addFrag(View view){\n dbClass = new DBClass(this);\n maxId = dbClass.countAll();\n\n// if(dbClass.insertView(\"text\")){\n// Toast.makeText(getApplicationContext(), \"View inserted\",Toast.LENGTH_SHORT).show();\n// }\n// //Initialize textView\n// TextView textView = new TextView(this);\n// textView.setText(\"hello\");\n// textView.setTextSize(22);\n\n// //Setup FrameLayout parameters\n// FrameLayout.LayoutParams flChildViewParam = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER_HORIZONTAL);\n// textView.setLayoutParams(flChildViewParam);\n\n //Initialize Framelayout\n FrameLayout.LayoutParams flp = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT);\n FrameLayout frameLayout = new FrameLayout(this);\n frameLayout.setLayoutParams(flp);\n frameLayout.setId(View.generateViewId());\n\n// //add view to FrameLayout\n// frameLayout.addView(textView);\n\n //Get Parent Container\n LinearLayout ll =(LinearLayout)findViewById(R.id.fragment_container);\n// ll.addView(frameLayout);\n\n TestFragment testFragment = new TestFragment();\n getSupportFragmentManager().beginTransaction().add((maxId + 1), testFragment).commit();\n }", "title": "" }, { "docid": "f77292c1b560bdde80d3c926de6a5b26", "score": "0.47651905", "text": "@Override\n public void show() {\n\n }", "title": "" }, { "docid": "f77292c1b560bdde80d3c926de6a5b26", "score": "0.47651905", "text": "@Override\n public void show() {\n\n }", "title": "" }, { "docid": "49a80745fa5fb4c144f46e891d784546", "score": "0.4762729", "text": "@Override\n public void show()\n {\n }", "title": "" } ]
f329c872a27e64781e167a33f123b8c0
Toone relationship, resolved on first access.
[ { "docid": "150d4def777aac24210a4fa867cc7199", "score": "0.0", "text": "public Account getAccount() {\n\t\tlong __key = this.accountId;\n\t\tif (account__resolvedKey == null || !account__resolvedKey.equals(__key)) {\n\t\t\tif (daoSession == null) {\n\t\t\t\tthrow new DaoException(\"Entity is detached from DAO context\");\n\t\t\t}\n\t\t\tAccountDao targetDao = daoSession.getAccountDao();\n\t\t\tAccount accountNew = targetDao.load(__key);\n\t\t\tsynchronized (this) {\n\t\t\t\taccount = accountNew;\n\t\t\t\taccount__resolvedKey = __key;\n\t\t\t}\n\t\t}\n\t\treturn account;\n\t}", "title": "" } ]
[ { "docid": "15abed5f0b08cf2fbc3427bfb07b3a32", "score": "0.65381104", "text": "public boolean isOneToOne() {\n return oneToOne;\n }", "title": "" }, { "docid": "e6367818e4d418e89f7d65bf922413cd", "score": "0.65078694", "text": "public boolean isOneToOne();", "title": "" }, { "docid": "fc1ff54e2efea0b91c0275a4b9a8b7b5", "score": "0.6242395", "text": "public void setOneToOne(boolean oneToOne) {\n this.oneToOne = oneToOne;\n }", "title": "" }, { "docid": "6433c30a4113ed932d2fa9b610cd2a5a", "score": "0.5863819", "text": "@OneToOne(mappedBy = \"person\", orphanRemoval = true)\n public Employee getEmployee() {\n\t return this.employee;\n }", "title": "" }, { "docid": "7270fee26196b638694967d138df7e28", "score": "0.57210124", "text": "public T caseRelationship(Relationship object)\n {\n return null;\n }", "title": "" }, { "docid": "5ace51b4e529e77b41aab93f748a0d2b", "score": "0.571104", "text": "@Override\r\n\tpublic UserDO findOne(UserDO user) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "8139bef515cb1ed79587cf67d17fa420", "score": "0.5699694", "text": "private void addCompleteManyToOne(T object) {\n if (disablePropagation || target == null || object == null)\n return;\n Class<?> objClazz = object instanceof ProxySQLObject ? ((ProxySQLObject) object).getEntityClass()\n : object.getClass();\n Field f = SchemaHelper.getRelatedField(clazz, null, objClazz);\n\n if (f == null)\n return;\n try {\n f.set(object, target);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "2fee0527a6b71e6db0c92a286045454d", "score": "0.56491035", "text": "Relationship createRelationship();", "title": "" }, { "docid": "2fee0527a6b71e6db0c92a286045454d", "score": "0.56491035", "text": "Relationship createRelationship();", "title": "" }, { "docid": "48841e673fcf2b114683d5e981d5c735", "score": "0.5632705", "text": "@OneToOne(mappedBy = \"person\", orphanRemoval = true)\n public Member getMember() {\n\t return this.member;\n }", "title": "" }, { "docid": "d58154ecf70128a501b3f06094cad3b6", "score": "0.5596043", "text": "protected void checkMappedByOneToOne(DeployBeanPropertyAssocOne<?> prop) {\n String mappedBy = prop.getMappedBy();\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedOneToOne(prop, mappedBy, targetDesc);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyWithoutType(tableJoin, true, tableJoin.getTable());\n }\n\n if (mappedAssocOne.isPrimaryKeyJoin()) {\n // bi-directional PrimaryKeyJoin ...\n mappedAssocOne.setPrimaryKeyJoin(false);\n prop.setPrimaryKeyExport();\n addPrimaryKeyJoin(prop);\n }\n }", "title": "" }, { "docid": "a5453f68217a336efab0705a7952e5c1", "score": "0.5549926", "text": "EFriendRelationship getRelationship() {\n return relationship;\n }", "title": "" }, { "docid": "d91fdd4f596a87f6df5c5405c9c27708", "score": "0.5543093", "text": "public T caseDirectedRelationship(DirectedRelationship object)\n {\n return null;\n }", "title": "" }, { "docid": "20cba0d8fb15dc359c571ff44008464a", "score": "0.54865944", "text": "public T caseForwardsRelationship(ForwardsRelationship object)\n {\n return null;\n }", "title": "" }, { "docid": "a3025a88c42317b3cc23c808c374e642", "score": "0.54603016", "text": "public boolean isManyToOne() {\r\n return hasMultipleIncomingTransitions() && hasOneElement();\r\n }", "title": "" }, { "docid": "073158734cc5657b1a80355ce365137c", "score": "0.53732973", "text": "@Override\n\t\tpublic Enseignant findOne(Long id) {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "14c3700396c4a203b3198f22f08623a7", "score": "0.5347784", "text": "public ViewLinkImpl getOoOoFkLink1() {\n return (ViewLinkImpl)findViewLink(\"OoOoFkLink1\");\n }", "title": "" }, { "docid": "a69be8e227233ce087691544ab42d0b1", "score": "0.5324627", "text": "@Override\n\tpublic Empresa getOneById(Long id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "131af3771747f02881f1c9998afef891", "score": "0.5322507", "text": "@Override\n\tpublic OrderEntity FindOneByStart() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "17565029f5046cca2ca111d19b95e92f", "score": "0.5260875", "text": "@Override\n\tpublic T getOne(ID id) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "14997bfdd7a984ff5c23a7d32102b863", "score": "0.5260732", "text": "public ElectricObject getRelatedObject()\n\t{\n\t\treturn ElectricObject.findById(relatedObject_id);\n\t}", "title": "" }, { "docid": "9a83968b2402ce12bf641e6a3f83d050", "score": "0.5259511", "text": "@Override\n\t@Transactional(readOnly = true)\n\tpublic Optional<RelationDTO> findOne(Long id) {\n\t\tlog.debug(\"Request to get Relation : {}\", id);\n\t\treturn relationRepository.findById(id).map(relationMapper::toDto);\n\t}", "title": "" }, { "docid": "2b8faa63a1a79872e10938b1f420e744", "score": "0.52485824", "text": "@Benchmark // DATAMONGO-1733\n\tpublic Object readIntoDomainTypeRestrictingToOneField() {\n\t\treturn asPersonWithFieldsRestriction.all();\n\t}", "title": "" }, { "docid": "d2db08f97234b658eac96d4dce803b55", "score": "0.52301013", "text": "@GetMapping(\"/{id}\")\n EntityModel<Employee> one(@PathVariable Long id){\n Employee employee = repository.findById(id)\n .orElseThrow(() -> new EmployeeNotFoundException(id));\n\n /**\n * linkTo(methodOn(EmployeeController.class).one(id)).withSelfRel()\n * asks that Spring HATEOAS build a link to the EmployeeController 's one() method,\n * and flag it as a self link.\n *\n * linkTo(methodOn(EmployeeController.class).all()).withRel(\"employees\")\n * asks Spring HATEOAS to build a link to the aggregate root, all(), and call it \"employees\".\n */\n return assembler.toModel(employee);\n }", "title": "" }, { "docid": "4f41d25f0a380ce4f8a093ceed4a3a82", "score": "0.52084917", "text": "public T caseRelationshipType(RelationshipType object)\n {\n return null;\n }", "title": "" }, { "docid": "82cba7ab9b86a5ef1e5fffe79dd34b2d", "score": "0.52060044", "text": "public Relationship getRelationship() {\n\t\ttry {\n\t\t\treturn getBasicModel().getRelationShip();\n\t\t} catch( WrongValueException e ) {\n\t\t\tthis.getLogger().showExceptionLogging( e );\n\t\t\treturn null;\n\t\t}\t\n\t}", "title": "" }, { "docid": "9bef95e3c76d63ed5cc357f35f4592f1", "score": "0.5203905", "text": "JdlRelationship createJdlRelationship();", "title": "" }, { "docid": "65c16bd972e9063bdda9c8da30d76e45", "score": "0.5194298", "text": "long reserveRelationship();", "title": "" }, { "docid": "8ffe3d40988c3dc13ea8343ead7b6be8", "score": "0.51782036", "text": "private void doPrimaryContactHack(User user) {\n\n if (primaryContact == null && users.size() == 0) {\n primaryContact = user;\n }\n }", "title": "" }, { "docid": "33faf7500ed5b228c90e64c78a85ab7d", "score": "0.51598495", "text": "public void test_invokeForeignCQ_bizOneToOne_noParameter() {\r\n // ## Arrange ##\r\n ConditionBean cb = memberBhv.newConditionBean();\r\n MemberDbm dbm = MemberDbm.getInstance();\r\n String foreignPropertyName = dbm.foreignMemberLoginAsLocalForeignOverTest().getForeignPropertyName();\r\n\r\n // ## Act ##\r\n ConditionQuery foreignCQ = cb.localCQ().invokeForeignCQ(foreignPropertyName);\r\n\r\n // ## Assert ##\r\n log(foreignCQ);\r\n assertTrue(foreignCQ instanceof MemberLoginCQ);\r\n }", "title": "" }, { "docid": "958266fda96a36557caa156e2cfdee7f", "score": "0.5151023", "text": "@Override\n\tpublic Note getOne(NotePK npk) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "12d9fb86ba704428fc67bb9776122b67", "score": "0.5148816", "text": "public T caseRelation(Relation object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "12d9fb86ba704428fc67bb9776122b67", "score": "0.5148816", "text": "public T caseRelation(Relation object) {\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "763edf0ba78933ae9acb72a79889b063", "score": "0.5143056", "text": "public T caseRelationshipNavigation(RelationshipNavigation object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1287c603cde332dd96db0b7897adeae6", "score": "0.51208514", "text": "public abstract SecurityObject getRelatedObject();", "title": "" }, { "docid": "641ee7242009c1692bc32c710a54929c", "score": "0.510151", "text": "public T caseTopologicalRelation(TopologicalRelation object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ac957898b677789e87c4196f6d0246d9", "score": "0.5097958", "text": "GoalModel getRefersTo();", "title": "" }, { "docid": "758eb49674684232cc669f4c6591fe31", "score": "0.5087676", "text": "public T caseRelation(Relation object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8a9db150f1e9ff8afa6b15ccc8c7d9b1", "score": "0.5068911", "text": "public T caseRelationshipDesc(RelationshipDesc object)\n {\n return null;\n }", "title": "" }, { "docid": "a27a3327105da3d26cdc749d39abc15c", "score": "0.5068388", "text": "@Override\n public void\n enforceAddRelationship(Context context, String pid,\n String predicate, String object, boolean isLiteral,\n String datatype) throws AuthzException {\n\n }", "title": "" }, { "docid": "ad1cdd8ab4bae873d7e2569cc8bb314a", "score": "0.50486845", "text": "@Override\n @Transactional(readOnly = true)\n public RefTypeContratDTO findOne(Long id) {\n log.debug(\"Request to get RefTypeContrat : {}\", id);\n RefTypeContrat refTypeContrat = refTypeContratRepository.findOneWithEagerRelationships(id);\n return refTypeContratMapper.toDto(refTypeContrat);\n }", "title": "" }, { "docid": "094eff54591e52f0123bbefb41ae336c", "score": "0.5048494", "text": "@Override\r\n\tpublic ClauseDelivery selectOne() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "55eb6ddc4ef16074e2c0e076dd49b800", "score": "0.50440687", "text": "public ViewLinkImpl getEpObjFkLink1() {\n return (ViewLinkImpl)findViewLink(\"EpObjFkLink1\");\n }", "title": "" }, { "docid": "62d27f5e9d4b2b945c77b38fee949c22", "score": "0.5042938", "text": "@FunctionalInterface\npublic interface OneToOneChecked<T,R> {\n R apply(T t) throws Throwable;\n}", "title": "" }, { "docid": "b807a832eba295c3bea4fc60b13d0845", "score": "0.5030485", "text": "public static synchronized SingleTon getSingleTonObject(){\n\t\tif(singleTon == null){\n\t\t\tsingleTon = new SingleTon();\n\t\t}\n\t\treturn singleTon;\n\t}", "title": "" }, { "docid": "c6704330f5a01be0d805d4353e349d5b", "score": "0.5014921", "text": "public <T> T mapperEntity(T t) {\r\n\t\tif (t != null) {\r\n\t\t\tt = super.manyToOne(t);\r\n\t\t\tt = super.oneToMany(t);\r\n\t\t\tt = super.oneToOne(t);\r\n\t\t\tt = super.manyToMany(t);\r\n\t\t}\r\n\t\treturn t;\r\n\t}", "title": "" }, { "docid": "ef96a3bc4b9f1ac3a05bf047bc79eda0", "score": "0.5014747", "text": "public void addFirst(E e) {\n linkFirst(e);\n }", "title": "" }, { "docid": "2234dbff380a2c47a94da83c4b8971e4", "score": "0.5005754", "text": "@Override\n\tpublic EntityModel<ProductDetail> one(Long id) {\n\t\t// TODO Auto-generated method stub\n\t\t ProductDetail productDetail = repository.findById(id).orElseThrow(() -> new ProductDetailNotFoundException(id));\n\t return assembler.toModel(productDetail);\n\t}", "title": "" }, { "docid": "fb6c358449d076f3d7c2338d29a482de", "score": "0.50055575", "text": "@Override\n\tpublic CuentaBancaria getOne(Serializable arg0) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "84b65277384ec22ce6eee8b424448f04", "score": "0.49577394", "text": "@Override\n\t\t\tpublic Pageable first() {\n\t\t\t\treturn null;\n\t\t\t}", "title": "" }, { "docid": "705e2ca019ce556d3540b28f54853527", "score": "0.4954307", "text": "public void addFirst(E e) {\n\t\tlinkFirst(e);\n\t}", "title": "" }, { "docid": "4fa743e9eb72e58fca861a6074511f50", "score": "0.49447775", "text": "@Override\n\tpublic Object getEntity() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "08390c17a66828092b87742417ad39fb", "score": "0.49351397", "text": "@Override\r\n\tpublic void selectOne() {\n\t\t\r\n\t}", "title": "" }, { "docid": "67d29d4b283298d40c192a0de39ac780", "score": "0.4923309", "text": "public fr.inria.phoenix.diasuite.framework.datatype.relationship.Relationship getRelationship() {\n return relationship;\n }", "title": "" }, { "docid": "d64e6a6d64d03f2a479fc4f38c0790f1", "score": "0.4915596", "text": "@Override\n @Transactional(readOnly = true)\n public TramiteGeneralDTO findOne(Long id) {\n log.debug(\"Request to get TramiteGeneral : {}\", id);\n TramiteGeneral tramiteGeneral = tramiteGeneralRepository.findOneWithEagerRelationships(id);\n return tramiteGeneralMapper.toDto(tramiteGeneral);\n }", "title": "" }, { "docid": "81bb78212ec744a09f52c6aa3e508b57", "score": "0.4910883", "text": "@Override\n public BasePO toPO() {\n return null;\n }", "title": "" }, { "docid": "07e6884cb6f7f33bd84f9905195e1095", "score": "0.4908919", "text": "@ManyToOne\n @JoinColumn(name = \"user_id\", referencedColumnName = \"ID\")\n public UserProfile getUserProfile(){return userId;}", "title": "" }, { "docid": "80065cca57a67ba875fd2229ab440981", "score": "0.4905976", "text": "@Override\r\n\tpublic ProduccionPedido findOne(Long id) {\n\t\treturn repository.findById(id).orElse(null);\r\n\t}", "title": "" }, { "docid": "d49c5b2e59f2ea37c57ebec35314f54d", "score": "0.48977605", "text": "public OneToOneTransition getOneToOneTransition(String name) {\n\t\treturn delegate.getWrappedIndividual(name, Vocabulary.CLASS_ONETOONETRANSITION, DefaultOneToOneTransition.class);\n }", "title": "" }, { "docid": "dae706e07a389ff98b83cb14c923fcaa", "score": "0.4896652", "text": "@Test\n public void manyToOne_setCountry() {\n TdState many = new TdState();\n\n // init\n TdCountry one = new TdCountry();\n\n one.setCountryId(ValueGenerator.getUniqueInteger());\n many.setCountry(one);\n\n // make sure it is propagated properly\n assertNotNull(many.getCountryId());\n assertEquals(one, many.getCountry());\n assertSame(many.getCountryId(), one.getCountryId());\n // now set it to back to null\n many.setCountry(null);\n\n // make sure null is propagated properly\n assertNull(many.getCountry());\n\n // make sure it is propagated on fk column as well\n assertNull(many.getCountryId());\n }", "title": "" }, { "docid": "8a564a4d3f4fa449816a773aea79cda5", "score": "0.48961905", "text": "Relation createRelation();", "title": "" }, { "docid": "8a564a4d3f4fa449816a773aea79cda5", "score": "0.48961905", "text": "Relation createRelation();", "title": "" }, { "docid": "8a564a4d3f4fa449816a773aea79cda5", "score": "0.48961905", "text": "Relation createRelation();", "title": "" }, { "docid": "7b72bfbad8cd6634e46781fd7f43a96a", "score": "0.4892436", "text": "@Test\n public void manyToOne_setCategory() {\n Part many = new Part();\n\n // init\n Category one = new Category();\n\n one.setId(ValueGenerator.getUniqueInteger());\n many.setCategory(one);\n\n // make sure it is propagated properly\n assertNotNull(many.getCategoryId());\n assertEquals(one, many.getCategory());\n assertSame(many.getCategoryId(), one.getId());\n // now set it to back to null\n many.setCategory(null);\n\n // make sure null is propagated properly\n assertNull(many.getCategory());\n\n // make sure it is propagated on fk column as well\n assertNull(many.getCategoryId());\n }", "title": "" }, { "docid": "332d3710283073a6080ba25e5b2d6d40", "score": "0.4890724", "text": "@Override\n @Transactional(readOnly = true)\n public Optional<Matiere> findOne(Long id) {\n log.debug(\"Request to get Matiere : {}\", id);\n return matiereRepository.findOneWithEagerRelationships(id);\n }", "title": "" }, { "docid": "9f909c75c69afdb5ed3315fcf9ac1fea", "score": "0.4888931", "text": "@ManyToOne\n @JoinColumn(name = \"fantasy_league\", referencedColumnName = \"ID\")\n public FantasyLeague getFantasyLeague(){return fantasyLeague;}", "title": "" }, { "docid": "222dcb49aaac213369a7627721936a11", "score": "0.48823157", "text": "@Transactional(readOnly = true)\n public BaacDTO findOne(Long id) {\n log.debug(\"Request to get Baac : {}\", id);\n Baac baac = baacRepository.findOneWithEagerRelationships(id);\n BaacDTO baacDTO = baacMapper.baacToBaacDTO(baac);\n return baacDTO;\n }", "title": "" }, { "docid": "8ce54b5b5b666f60f3d76e7ddb170b87", "score": "0.48817235", "text": "@Override\n\tpublic <Node extends IRes> Node getBelongRes() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "67cfe4f0ab097baa167640a184987f2a", "score": "0.48542345", "text": "@Override\n\tpublic IResource getCorrespondingResource() throws JavaModelException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "941bbe0ed68843660bca4b02439b10f2", "score": "0.4845634", "text": "@Override\n\tpublic LivingEntity getTarget()\n\t{\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6fea5780f17c01912b0b59e866bf8d30", "score": "0.4844174", "text": "@Override\n public XmEntity findOne(Long id) {\n return findById(id).orElse(null);\n }", "title": "" }, { "docid": "418873da455a750244d38ec188d383d6", "score": "0.48414406", "text": "public Person retrieve() {\n if (first == null) {\n return null;\n }\n Person ret = first.p;\n first = first.next;\n return ret;\n }", "title": "" }, { "docid": "e410d82a375458f4737599dc69365a83", "score": "0.4835041", "text": "public DependencyRelationship build() {\n this.relationshipHolder.addRelationship(dependency);\n return dependency;\n }", "title": "" }, { "docid": "1987239b765b003927eabb53c1e2d5b8", "score": "0.48318005", "text": "@Override\r\n\tpublic boolean sameIdentityAs(Relation other) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "468d13169f408bc4d5d03ba7654c68ca", "score": "0.48295808", "text": "public IfcObjectDefinition getRelatingObject() {\n return relatingObject;\n\n }", "title": "" }, { "docid": "e9fbfd378723a71161bbe1c09f582297", "score": "0.48257712", "text": "@Override\r\n protected Object selectOneObject(ReadObjectQuery query) throws DescriptorException {\r\n if (this.descriptor.isAbstract()) {\r\n return null;\r\n }\r\n // If we came from a source mapping the execute the selection query\r\n // we prepared from it.\r\n if (selectionQueriesForAllObjects.containsKey(query.getSourceMapping())) {\r\n return query.getExecutionSession().executeQuery(selectionQueriesForAllObjects.get(query.getSourceMapping()), query.getTranslationRow()); \r\n } else {\r\n // Assuming we're doing a find by primary key ...\r\n // We have to update the translation row to be to the correct field.\r\n AbstractRecord translationRow = query.getTranslationRow().clone();\r\n Vector allFields = new Vector();\r\n \r\n for (DatabaseField field : translationRow.getFields()) {\r\n // Remove the table and let the descriptor figure it out.\r\n allFields.add(new DatabaseField(field.getName()));\r\n }\r\n \r\n translationRow.getFields().clear();\r\n translationRow.getFields().addAll(allFields);\r\n return query.getSession().executeQuery(getDescriptor().getQueryManager().getReadObjectQuery(), translationRow);\r\n }\r\n }", "title": "" }, { "docid": "cb3b0fe5a9115b7e7fa1590b649ddf9f", "score": "0.48253384", "text": "@Override\r\n\tpublic Object getFirst() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "a649185feb9e25b511f3f7ad8d94a23e", "score": "0.48204437", "text": "public String getRelationship() {\n return mRelationship;\n }", "title": "" }, { "docid": "e196c1206da0b6863b156d8ec5afb5f3", "score": "0.4814795", "text": "@Override\n public Entity toEntity() {\n return this;\n }", "title": "" }, { "docid": "06a5c75a95b0c379481019ebeeeb2c32", "score": "0.48033327", "text": "@OneToOne(cascade = CascadeType.ALL, \n fetch = FetchType.EAGER)\n @JoinColumn(name = \"PROJECT_PROPERTIES\", unique = true)\n public ProjectPropertiesPO getProperties() {\n return m_projectProperties;\n }", "title": "" }, { "docid": "2fae18c51bccaacb6499fab2056cedc1", "score": "0.48032317", "text": "private void linkFirst(E e) {\n final Node<E> f = first;\n final Node<E> newNode = new Node<>(null, e, f);\n first = newNode;\n if (f == null)\n last = newNode;\n else\n f.prev = newNode;\n size++;\n }", "title": "" }, { "docid": "c26dda6cf7c42f18af6b6b785d06e4ab", "score": "0.4799613", "text": "@Around(\"findOne()\")\n public Object replaceSingleEntityWithTranslation(ProceedingJoinPoint pjp) throws Throwable {\n Object result = pjp.proceed();\n if (result instanceof Optional<?> && ((Optional<?>) result).isPresent()) {\n Object entity = ((Optional<?>) result).get();\n if (TranslationHelper.isLocalizable(entity)) {\n translationService.localizeSingle(entity);\n return Optional.of(entity);\n }\n }\n return result;\n }", "title": "" }, { "docid": "161b57809d34e9041341adb159899885", "score": "0.47909924", "text": "private User mapPartner(User user) {\n if (user.getPartner() != null) {\n User partner = dbRepository.load(user.getPartner());\n if (partner != null) {\n user.setPartner(getDescriptor(partner));\n }\n }\n return user;\n }", "title": "" }, { "docid": "9d7347551ea3259a17aa244683f25450", "score": "0.478667", "text": "@Override\n\t\tpublic RDFNode getObject() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "7bebd0adb122bc14998f4c72113590da", "score": "0.47827753", "text": "@Override\r\n\tpublic User getOne(Integer id) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "6993341371e57b993abc089c12c52e87", "score": "0.47730654", "text": "public S getFirstObject()\n {\n return myFirstObject;\n }", "title": "" }, { "docid": "0f9a67094f448a16ecc9f3e7b2dda8b6", "score": "0.47724196", "text": "public Entity1 findOne(String id) {\n log.debug(\"Request to get Entity1 : {}\", id);\n return entity1Repository.findOne(id);\n }", "title": "" }, { "docid": "ecdeb8d89e58f053e45ad9a9c850e0df", "score": "0.4768925", "text": "public OneToOneTransition createOneToOneTransition(String name) {\n\t\treturn delegate.createWrappedIndividual(name, Vocabulary.CLASS_ONETOONETRANSITION, DefaultOneToOneTransition.class);\n }", "title": "" }, { "docid": "4ee15b4ffe80ae9819af89b253fb5db6", "score": "0.47666314", "text": "public A first() {\n\t\treturn this.first;\n\t}", "title": "" }, { "docid": "8ce0e006aeae5b358338ba1cdc943099", "score": "0.47664985", "text": "@Override\n @Transactional(readOnly = true)\n public TraningStructRelation findOne(Long id) {\n log.debug(\"Request to get TraningStructRelation : {}\", id);\n return traningStructRelationRepository.findOne(id);\n }", "title": "" }, { "docid": "158de011d1ba51b4edb937fc069aecdf", "score": "0.47653702", "text": "@Test(priority = 31)\n public void testOneToOneRelationshipAdding() {\n String createRoot = jsonParser.getJson(\"/ResourceIT/createOneToOneRoot.json\");\n\n given()\n .contentType(JSONAPI_CONTENT_TYPE)\n .accept(JSONAPI_CONTENT_TYPE)\n .body(createRoot)\n .post(\"/oneToOneRoot\")\n .then()\n .statusCode(HttpStatus.SC_CREATED);\n\n // Verify it was actually created\n String o = given()\n .contentType(JSONAPI_CONTENT_TYPE)\n .accept(JSONAPI_CONTENT_TYPE)\n .body(createRoot)\n .get(\"/oneToOneRoot/1\")\n .then()\n .statusCode(HttpStatus.SC_OK)\n .extract().asString();\n\n // Create other object\n String createChild = jsonParser.getJson(\"/ResourceIT/createOneToOneNonRoot.json\");\n given()\n .contentType(JSONAPI_CONTENT_TYPE)\n .accept(JSONAPI_CONTENT_TYPE)\n .body(createChild)\n .post(\"/oneToOneRoot/1/otherObject\")\n .then()\n .statusCode(HttpStatus.SC_CREATED);\n\n // Verify contents\n String actualFirst = given()\n .contentType(JSONAPI_CONTENT_TYPE)\n .accept(JSONAPI_CONTENT_TYPE)\n .body(createChild)\n .get(\"/oneToOneRoot/1\")\n .then()\n .statusCode(HttpStatus.SC_OK)\n .extract().body().asString();\n\n String actualChild = given()\n .contentType(JSONAPI_CONTENT_TYPE)\n .accept(JSONAPI_CONTENT_TYPE)\n .body(createChild)\n .get(\"/oneToOneRoot/1/otherObject\")\n .then()\n .statusCode(HttpStatus.SC_OK)\n .extract().body().asString();\n\n String expectedFirst = jsonParser.getJson(\"/ResourceIT/oneToOneRootCreatedRelationship.json\");\n String expectedChild = jsonParser.getJson(\"/ResourceIT/oneToOneNonRootCreatedRelationship.json\");\n\n assertEqualDocuments(actualFirst, expectedFirst);\n assertEqualDocuments(actualChild, expectedChild);\n }", "title": "" }, { "docid": "dccf1c7ad5e40971531df68694a06988", "score": "0.47639447", "text": "public org.hl7.fhir.CodeableConcept addNewRelationship()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().add_element_user(RELATIONSHIP$2);\n return target;\n }\n }", "title": "" }, { "docid": "2ceaff1e5c32b61f27ba0d582e784a31", "score": "0.4763039", "text": "@Override\r\n\tpublic SWmRelation get(int Id) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "bdc3cb80bfd9647c59f37d222b1c01f7", "score": "0.4753489", "text": "@Override\n public ContactEntity getOneContactById(Integer id) {\n Optional<ContactEntity> cont= contactRepo.findById(id);\n if(cont.isPresent())\n return cont.get();\n return null;\n }", "title": "" }, { "docid": "2450db5a7f3254addc7a5393070b7489", "score": "0.47521403", "text": "public boolean isRelationshipProperty() {\n return isRelationshipProperty;\n }", "title": "" }, { "docid": "682d74af53524c222201795e80cabfdf", "score": "0.47441396", "text": "@Override\n @Transactional(readOnly = true)\n public Parent findOne(Long id) {\n log.debug(\"Request to get Parent : {}\", id);\n return parentRepository.findOne(id);\n }", "title": "" }, { "docid": "4de807a39a74b9481154e86e30da4a08", "score": "0.4729629", "text": "public Object first() {\n return redBlackTree.first();\n }", "title": "" }, { "docid": "505afbaa31d7583bd73c000e2307be23", "score": "0.47230107", "text": "@Override\n\tpublic Comment selectOne() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8d85820b454114130c5a6713d31f1642", "score": "0.4720052", "text": "public T caseCascade(Cascade object)\n {\n return null;\n }", "title": "" }, { "docid": "6de56cfb035c07f4a37a8f2fdd69885f", "score": "0.47174224", "text": "public org.hl7.fhir.CodeableConcept getRelationship()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.CodeableConcept target = null;\n target = (org.hl7.fhir.CodeableConcept)get_store().find_element_user(RELATIONSHIP$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "title": "" }, { "docid": "0308afb9b5a6ca430b014cd4796b09b6", "score": "0.47160554", "text": "public boolean isSingle() {\n\t\t\n\t\tif (partnerId >= 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" } ]
0cb83d0b7341fd3edae50e5974d7dae0
obtinere array cu nr Cod_Int pentru materii prime
[ { "docid": "3be50d795f513c40fea1209d934d3990", "score": "0.0", "text": "public static int[] getCodInt(SQLiteDatabase db) {\n String selectQuery = Constructor.SQL_QUERY_OBTI_COD_INT;\n Cursor cursor = db.rawQuery(selectQuery, null);\n int[] retCodInt = new int[cursor.getCount()];\n if (cursor.moveToFirst()) {\n for (int i = 0; i < cursor.getCount(); i++) {\n //cursor.getInt(0)\n retCodInt[i] = cursor.getInt(0);\n cursor.moveToNext();\n\n }\n// do {\n// retCodInt[cursor.getCount()]= cursor.getInt(cursor.getColumnIndex(\"cod_int\"));\n// }\n// while (cursor.moveToNext());\n }\n return retCodInt;\n\n\n// selectie sablon pentru cod_int de materie prima\n\n// select\n// antet_legaturi.cod_int as id_antet_legatura ,\n// pozitii_legaturi.cod_int as id_pozitii_legatura ,\n// articole.denumire\n// from antet_legaturi\n// inner join pozitii_legaturi on antet_legaturi.cod_int=pozitii_legaturi.id_antet\n// inner join articole on pozitii_legaturi.id_articol=articole.cod_int\n// where antet_legaturi.id_articol=nCodIntDinArticole ( din onclick )\n }", "title": "" } ]
[ { "docid": "27505ee46371b2f1ecce774160f5645a", "score": "0.65729564", "text": "public int[] primeArray(){\n\t\treturn primes;\r\n\t}", "title": "" }, { "docid": "c86a482e07e9b14491f63ba6bba81afe", "score": "0.64872026", "text": "private static int[] filterPrimes2(int[] array){\n\n //Arrays.sort(array);\n\n Set<Integer> s = new TreeSet<>();\n\n for(int i =0; i<array.length; i++){\n s.add(array[i]);\n }\n\n int[] reply = new int[s.size()];\n int index = 0;\n\n for(int i : s){\n reply[index] = i;\n index++;\n }\n\n return reply;\n }", "title": "" }, { "docid": "c124d3e779022046e7d1dab2111bf1c4", "score": "0.641037", "text": "public static int[][] display()\n\t{\n\t\tint first = 0, second = 0 , third = 0 , fourth = 0, fifth = 0, sixth = 0, seventh = 0,eighth = 0 , nineth = 0, tenth = 0;\n\t\t\n\t\tfor(int i =2 ; i<1000 ;i++)\n\t\t{\n\t\t\tif(Prime(i) == 0 )\n\t\t\t{\n\t\t\t\tif(i > 0 && i< 100)\n\t\t\t\t{\n\t\t\t\t\tprimeArray[0][first] = i;\n\t\t\t\t\tfirst++;\n\t\t\t\t}\n\t\t\t\telse if(i > 101 && i < 200)\n\t\t\t\t{\n\t\t\t\t\tprimeArray[1][second] = i;\n\t\t\t\t\tsecond++;\n\t\t\t\t}\n\t\t\t\telse if(i > 201 && i < 300)\n\t\t\t\t{\n\t\t\t\t\tprimeArray[2][third] = i;\n\t\t\t\t\tthird++;\n\t\t\t\t}\n\t\t\t\telse if(i > 301 && i < 400)\n\t\t\t\t{\n\t\t\t\t\tprimeArray[3][fourth] = i;\n\t\t\t\t\tfourth++;\n\t\t\t\t}\n\t\t\t\telse if(i > 401 && i < 500)\n\t\t\t\t{\n\t\t\t\t\tprimeArray[4][fifth] = i;\n\t\t\t\t\tfifth++;\n\t\t\t\t}\n\t\t\t\telse if(i > 501 && i < 600)\n\t\t\t\t{\n\t\t\t\t\tprimeArray[5][sixth] = i;\n\t\t\t\t\tsixth++;\n\t\t\t\t}\n\t\t\t\telse if(i > 601 && i < 700)\n\t\t\t\t{\n\t\t\t\t\tprimeArray[6][seventh] = i;\n\t\t\t\t\tseventh++;\n\t\t\t\t}\n\t\t\t\telse if(i > 701 && i < 800)\n\t\t\t\t{\n\t\t\t\t\tprimeArray[7][eighth] = i;\n\t\t\t\t\teighth++;\n\t\t\t\t}\n\t\t\t\telse if(i > 801 && i < 900)\n\t\t\t\t{\n\t\t\t\t\tprimeArray[8][nineth] = i;\n\t\t\t\t\tnineth++;\n\t\t\t\t}\n\t\t\t\telse if(i > 901 && i < 1000)\n\t\t\t\t{\n\t\t\t\t\tprimeArray[9][tenth] = i;\n\t\t\t\t\ttenth++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn primeArray;\n\t\t\n\t}", "title": "" }, { "docid": "3933a4b6436a9f09c074cd0f4e560a32", "score": "0.63823503", "text": "public int[] getPrimes(){\r\n List<Integer> primes = new ArrayList<>();\r\n for(int i = 1; i<sieve.length; i++)\r\n if (sieve[i] == true)\r\n primes.add(i);\r\n return primes.stream().filter(i -> i != null).mapToInt(i -> i).toArray(); \r\n }", "title": "" }, { "docid": "a0d3c9fc4f8eb8c15596400eefcbb2f4", "score": "0.6307211", "text": "public static void main(String[] args) {\nScanner s=new Scanner(System.in);\nint a=s.nextInt();\nlong b[]=new long[a];\nfor (int i = 0; i < b.length; i++) {\n\tb[i]=s.nextLong();\n}\nfor (int i = 0; i < b.length; i++) {\n\tlong k=b[i];long ans=k;\n\tfor (long j = k; j>1; j--) {\n\t\tif(isprime(j)&&b[i]%j==0){ans=j;break;}\n\t}System.out.println(ans);\n}\n\t}", "title": "" }, { "docid": "af31a798a1ca54a96ce656a8d7f8deb6", "score": "0.62753993", "text": "public int[] getUnderlyingArray() {\n return primes;\n }", "title": "" }, { "docid": "d7c5cf74e5b8237947a2d7f59eab4c2a", "score": "0.62738615", "text": "public void ePrime(int[] array){\n\t\tint temp = array[26];\n\t\tarray[26] = array[48];\n\t\tarray[48] = array[20];\n\t\tarray[20] = array[23];\n\t\tarray[23] = temp;\n\t\t\n\t\ttemp = array[25];\n\t\tarray[25] = array[49];\n\t\tarray[49] = array[19];\n\t\tarray[19] = array[22];\n\t\tarray[22] = temp;\n\t\t\n\t\ttemp = array[24];\n\t\tarray[24] = array[50];\n\t\tarray[50] = array[18];\n\t\tarray[18] = array[21];\n\t\tarray[21] = temp;\n\t}", "title": "" }, { "docid": "0ed3d940d92f3ae72dc5f061bdb57903", "score": "0.61904746", "text": "public void mPrime(int[] array){\n\t\tint temp = array[1];\n\t\tarray[1] = array[13];\n\t\tarray[13] = array[37];\n\t\tarray[37] = array[46];\n\t\tarray[46] = temp;\n\t\t\n\t\ttemp = array[4];\n\t\tarray[4] = array[22];\n\t\tarray[22] = array[40];\n\t\tarray[40] = array[49];\n\t\tarray[49] = temp;\n\t\t\n\t\ttemp = array[7];\n\t\tarray[7] = array[31];\n\t\tarray[31] = array[43];\n\t\tarray[43] = array[52];\n\t\tarray[52] = temp;\n\t}", "title": "" }, { "docid": "7bc80507952e372bbcdd3a15a8bb1db9", "score": "0.618823", "text": "void solve() {\n primes = (new Primes(1000)).primeSieve(1000);\r\n numPrimes = new int[1001];\r\n for (int i = 2; i <= n; i++) {\r\n calcPrimes(i);\r\n }\r\n long ans = 1;\r\n for (int i = 0; i < numPrimes.length; i++) {\r\n ans *= numPrimes[i] + 1;\r\n ans %= MOD;\r\n }\r\n System.out.println(ans);\r\n }", "title": "" }, { "docid": "104a49ed84a87110de879375d2670c66", "score": "0.6083703", "text": "public static void main (String args[])\n {\n int ctr;\n float arr[]= {45,5,71,19,67};\n for (int i=0;i<=4;i++)\n {\n ctr=0;\n for (int j=1;j<=arr[i];j++)\n {\n if (arr[i]%j==0)\n ctr++;\n }\n if (ctr==2)\n System.out.println(arr[i]+\" is a prime number.\");\n }\n for (int i=0;i<5;i++)\n {\n arr[i]=(5*(arr[i]-32))/9;\n System.out.println(arr[i]+\" \");\n }\n\n }", "title": "" }, { "docid": "196156c797fba2e94c345f280e50ed68", "score": "0.60775137", "text": "private static int[] sieve(int n) {\n int[] x = new int[n];\n Arrays.fill(x, 1);\n x[1] = 0;\n\n for (int i = 2; i < n/2; i++) {\n int j = 2 * i;\n\n while (j < n) {\n x[j] = 0;\n j = j + i;\n }\n }\n\n return x;\n }", "title": "" }, { "docid": "2b279c88fa1be2e3917cd611f796cd90", "score": "0.60720557", "text": "private PrimeNumbers() {\n bits = new long[] { 0x816d129a64b4cb6eL,\n 0x2196820d864a4c32L,\n 0xa48961205a0434c9L,\n 0x4a2882d129861144L,\n 0x834992132424030L,\n 0x148a48844225064bL,\n 0xb40b4086c304205L,\n 0x65048928125108a0L };\n lowerBound = 1;\n upperBound = lowerBound + bits.length * 128;\n }", "title": "" }, { "docid": "ab1d9e5fc35c7f511a41a4b0df80849c", "score": "0.60225123", "text": "public void sPrime(int[] array){\n\t\tint temp = array[3];\n\t\tarray[3] = array[16];\n\t\tarray[16] = array[41];\n\t\tarray[41] = array[28];\n\t\tarray[28] = temp;\n\t\t\n\t\ttemp = array[4];\n\t\tarray[4] = array[25];\n\t\tarray[25] = array[40];\n\t\tarray[40] = array[19];\n\t\tarray[19] = temp;\n\t\t\n\t\ttemp = array[5];\n\t\tarray[5] = array[34];\n\t\tarray[34] = array[39];\n\t\tarray[39] = array[10];\n\t\tarray[10] = temp;\n\t}", "title": "" }, { "docid": "2fc452b3eb341419da6cf1bfb0d50008", "score": "0.6009915", "text": "public void zPrime(int[] array){\n\t\tfrontPrime(array);\n\t\tsPrime(array);\n\t\tback(array);\n\t}", "title": "" }, { "docid": "7a7477ca000b03404df035c0f6ef405d", "score": "0.600287", "text": "public static int addPrimeIndex(int[] a) {\n\t\tint sum=0,k=0;\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tint count=0;\n\t\t\tif(i==0||i==1)\n\t\t\t{\n\t\t\t\tsum=sum+a[i];\n\t\t\t\tk++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tfor(int j=1;j<=i;j++)\n\t\t\t{\n\t\t\t\tif(i%j==0)\n\t\t\t\t\tcount++;\n\t\t\t\n\t\t\tif(count>2)\n\t\t\t{\n\t\t\t\tsum=sum+a[i];\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\t\t}\n\t\t}\n\t\tfloat avg = (float)sum/k;\n\t\tint y =(int)avg;\n\treturn y;\n\n}", "title": "" }, { "docid": "81bdcaf78b148c913c795863525208b0", "score": "0.5981992", "text": "public static void main(String[] args){\r\n\t\tint N = 150000;\r\n\t\tboolean a[] = new boolean[N];\r\n\t\tfor(int i = 1; i < N; i++){\r\n\t\t\ta[i] = true;\r\n\t\t}\r\n\t\tfor(int i = 2; i < Math.sqrt(N); i++){\r\n\t\t\tif(a[i]){\r\n\t\t\t\tfor(int j = i*i; j <N ; j+=i){\r\n\t\t\t\t\ta[j] = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tint counter = 0;\r\n\t\tfor(int i = 2; i < N; i++){\r\n\t\t\tif(a[i] ) {\r\n\t\t\t\tcounter++;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(counter == 10001){\r\n\t\t\t\tSystem.out.println(\"The 10001-th prime number is : \" + i);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b992e244b9b2547ebd60335a1a763643", "score": "0.5952652", "text": "public void xPrime(int[] array){\n\t\tleft(array);\n\t\tm(array);\n\t\trightPrime(array);\n\t}", "title": "" }, { "docid": "b1abbc449890d289bdf53cfb41bbadde", "score": "0.5890053", "text": "public void twoDPrime(int[] primenumber)\n\t\t{\n\t\t\tint row = 10 ,column = 27;\n\t \t\tint[][] array = new int[row][column];\n\t \t\tint temp = 100 , k=0;\n\t \t\tfor(int i = 0 ;i<row; i++)\n\t \t\t{\n\t \t\t\tfor(int j= 0 ; j<column ; j++)\n\t \t\t\t{\n\t \t\t\t\tif(k<primenumber.length )\n\t\t\t\t\t{\n\t \t\t\t\t\tif(primenumber[k] <= temp )\n\t \t\t\t\t\t{\n\t \t\t\t\t\t\tarray[i][j] = primenumber[k];\n\t \t\t\t\t\t\tk = k+1;\n\t \t\t\t\t\t}\n\t \t\t\t\t} \n\t \t\t\t} \t\n\t \t\t\ttemp = temp + 100;\n\t \t\t}\n\t \t\t//printing in 2D array\n\t \t\tSystem.out.println(\"\");\n\t \t\tfor(int i = 0 ;i<row ; i++)\n\t \t\t{\n\t \t\t\tfor(int j= 0 ; j<column ; j++)\n\t \t\t\t{\n\t \t\t\t\tif(primenumber[j]>0)\n\t \t\t\t\t{\n\t \t\t\t\t\tif(array[i][j] != 0)\n\t \t\t\t\t\t{\n\t \t\t\t\t\t\tSystem.out.print(array[i][j]+\"\\t\");\n\t \t\t\t\t\t}\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tSystem.out.println();\n\t \t\t}\n\t\t}", "title": "" }, { "docid": "0c35e3fbf0543b62c62b19c2a2f3a0c6", "score": "0.5882312", "text": "public static void main(String[] args) {\n\t\tfinal int Array = 100;\n\t\t\n\t\tbyte Prime=0;\n\t\tboolean isPrime=true;\n\t\t\n\t\t//vector\n\t\tbyte [] vector = new byte[Array];\n\t\t\n\t\t//Objets \n\t\tRandom randomNumbers = new Random(System.nanoTime());\n\t\t//Poblar el vector\n\t\tfor (int i=0; i<Array;i++) {\n\t\t\tvector[i]= (byte) randomNumbers.nextInt(101);\n\t\t\tSystem.out.println(vector[i]);\n\t\t}\n\t\tfor (int i=0;i<Array;i++) {\n\t\t\tisPrime=true;\n\t\t\tfor (int j=2;j<vector[i];j++) {\n\t\t\t\tif(vector[i]%j==0) {\n\t\t\t\t\tisPrime=false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isPrime) {\n\t\t\t\tPrime++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Quantity of prime numbers is: \"+Prime);\n\t}", "title": "" }, { "docid": "992db235886fe7ed66ad4fc0216d7b9f", "score": "0.58779687", "text": "public static int[] sieve(int n){\n int[] isPrime= new int[n+5];\n int[] memo= new int[n+5];\n\n isPrime[0]=1;\n isPrime[1]=1;\n for(int i=2;i*i<=n;i++){\n if(isPrime[i]==0){\n for(int m=i;m*i<=n;m++){\n isPrime[m*i]=1;\n }\n }\n }\n int count=0;\n\n for(int i=2;i<=n;i++){\n if(isPrime[i]==0){\n count+=1;\n }\n memo[i]=count;\n }\n\n return memo;\n }", "title": "" }, { "docid": "12cdd8fe3e7f74584c045d277d579ca3", "score": "0.5877496", "text": "public static int[] Crack(int n, List < Integer > primes) { \n\t int [] res = new int[2];\n\t int end = primes.size();\n\t int start = 0;\n\t while (primes.get(start) * primes.get(end - 1) != n) {\n\t\t if (primes.get(start) * primes.get(end - 1) > n) \n\t\t\t end--;\n\t\t else \n\t\t\t start++;\n\t }\n\t res[1] = primes.get(start);\n\t res[0] = primes.get(end-1);\n\t return res;\n }", "title": "" }, { "docid": "730a72b9d265e4bd52d3beb9b0eedc61", "score": "0.5873189", "text": "private boolean[] getPrimesArray_(boolean[] state, int to) {\n int n = to;\n// int stateLength = state.length;\n boolean[] numbersTable = Arrays.copyOf(state, n + 1);\n numbersTable[0] = true;\n numbersTable[1] = true;\n for (int i = 2; i * i <= n; i++) {\n if (numbersTable[i]) {\n continue;\n }\n for (int j = 2 * i; j <= n; j += i) {\n numbersTable[j] = true;\n }\n }\n return numbersTable;\n }", "title": "" }, { "docid": "c8eca8eaba5042a4a3213b7d33d660c8", "score": "0.5864988", "text": "public int[] printingPrimeNumber(int range) \n\t\t{\n\t\t\t boolean isPrime = true;\n\t\t\t int count = 0;\n\t\t\t int primeno[]=new int[range];\t\t \n\t\t\t for (int i = 0; i <= range; i++) \n\t\t { \t\t \n\t\t for(int j=2; j<i ;j++)\n\t\t {\n\t\t \t if(i%j==0)\n\t\t \t {\n\t\t \t \tisPrime=false;\n\t\t \t \tbreak;\n\t\t \t }\n\t\t \t else \t\n\t\t \t \tisPrime=true;\n\t\t \t}\n\t\t \tif(isPrime==true)\n\t\t \t primeno[count++]=i;\n\t\t }\n\t\t\treturn primeno ;\t\t \n\t\t}", "title": "" }, { "docid": "d3967a14b916d1535a173d4baa8ca781", "score": "0.5859227", "text": "public static int[] neweVect(int[] array, int n, int m){\n\n int i=0, j=0;\n if (n>=m){\n i=m;\n j=n;\n } else {\n if (m>n){\n i=n;\n j=m;\n }\n }\n // ca sa stabilim ca i este intotdeauna mai mic ca j\n\n // LEGENDARA REGULA\n // TOTI CONTORII DE VECTOR SE INITIALIZEAZA CU 1\n // DACA II FOLOSIM IN INT[CONTOR]\n int cont=0; // contor de while;\n int cont2=0;// contor increment vectorul nostru;\n int []primvs= new int[cont2+1];\n int[]vectorius = new int [cont2+1];\n // trebuie while\n // se poate si cu for dar prefer while\n // ayy kek ne jucam cu vectori\n while (cont<array.length) {\n if ((array[cont] >= i) && (array[cont] <= j)) {\n // ideea e relativ simpla\n // cat timp ne aflam intre valori vom scoate elementele din vectorul initial\n // si le adaugam in cel al nostru\n vectorius=primvs;\n vectorius[cont2] = array[cont];\n cont2=cont2+1;\n\n // aici de exemplu transferam prima valoare\n primvs = new int[cont2+1];\n for(int ab=0;ab<vectorius.length;ab++){\n primvs[ab]=vectorius[ab];\n }\n/* // primvs = vectorius;\n // reinitializam un al doilea vector in care sa transferam valorile primului\n vectorius = new int[cont2 + 1];\n vectorius = primvs;*/\n\n // reinitializam vectorul nostru si ii transferam valorile de la al doilea\n\n\n // dimensiunile vectorilor pe care ii construim vor creste\n // vectorul de construit si cel de transfer\n\n // dupa aceea ne apucam de curatat\n // adica de sters valorile pe care le-am luat din vectorul original\n // folosind un alt vector de transfer\n // presupun ca se poate refolosi un vector\n // dar e mai bine asa momentan\n int[] secondvs = new int[array.length - 1];\n int cont3 = 0;\n int cont4 = 0;\n // contor per vector ayyyy\n while (cont3 < array.length - 1) {\n if (cont3 == cont) {\n cont4++;\n }\n secondvs[cont3] = array[cont4];\n cont3++;\n cont4++;\n }\n // observam ca am micsorat valoarea vectorului original\n // ne asteptam sa il taiem\n // in momentul in care contorul nostru va fi egal cu cel din main loop\n // inseamna ca am ajuns la aceeasi pozitie la care ne aflam acum\n // pozitia respectiva indeplineste toate conditiile\n // adica pe pozitia respectiva se afla valoarea dintre valori, adica parametri dupa\n // care ne orientam\n // valoarea respectiva am luat-o si atunci o stergem din vectorul nostru\n\n //reinitializam vectorul original, cel dupa care ne orientam\n array = new int[secondvs.length];\n array = secondvs;\n cont = 0;\n // in momentul in care am facut o schimbare o luam de la inceput;\n }\n\n // cand nu e nici o schimbare\n // verificam o noua pozitie\n\n cont++;\n }\n return vectorius ;\n }", "title": "" }, { "docid": "5f43d8b8d802e1f3dced642aab5ab95c", "score": "0.5853301", "text": "@Override\n public int[] toArray() {\n int[] primes = new int[numOfPrimesInSieve];\n primes[0] = 2;\n int index = 0, count = 1;\n while (index != -1) {\n primes[count++] = (index << 1) + 3;\n index = sieve.nextSetBit(index + 1);\n }\n return primes;\n }", "title": "" }, { "docid": "e2252170d94e3783391de38e73e46820", "score": "0.5827523", "text": "private int[] preencherNotasComPesos1(int numeroNotas) {\n\t\tint[] pesos = new int[numeroNotas];\n\t\tfor(int i = 0; i < numeroNotas; i++)\n\t\t\tpesos[i] = 1;\n\t\treturn pesos;\n\t}", "title": "" }, { "docid": "3d45fe2aa04359fa3d32d4e226ca287b", "score": "0.58177644", "text": "public void primesInstr() {\n ArrayList<BigInteger> primes = new ArrayList<BigInteger>();\n Random rand = new Random(new Date().getTime());\n int size = 100000;\n while (primes.size() < size) {\n BigInteger numb = numbers.get(rand.nextInt(limit));\n primes.add(numb);\n System.out.println(numb.bitLength());\n }\n assert primes.size() == size;\n IntFactorization intFact;\n for (BigInteger bi: primes) {\n intFact = new IntFactorization();\n intFact.calcPrimeFactors(bi);\n }\n }", "title": "" }, { "docid": "1d91f98a9302566824a3be218de35e0c", "score": "0.58153844", "text": "@Override\n public boolean[] getPrimesArray(int to) {\n return getPrimesArrayFromState(new boolean[]{}, to);\n }", "title": "" }, { "docid": "e33a33dba3d1590b1ec0d3cdb537e312", "score": "0.58092195", "text": "public static void generatePrimes() {\n int[] f = IntStream.range(2, 10001).toArray();\n\t\twhile (start <= end) {\n\t\t\t f = IntStream.of(f).filter((int i) -> {\n\t\t\t\t\tif (i == start)\n\t\t\t\t\t\treturn true;\n\t\t\t\t\treturn (i % start != 0);\n\t\t\t\t}).toArray();\n\t\t\tstart++;\n\t\t}\n\t primes = f;\n\t display(f);\n\t}", "title": "" }, { "docid": "2042c42c9b7c523531c9547e0ef5f744", "score": "0.5788636", "text": "private Integer[] generator() {\n\r\n Integer[] result = new Integer[100];\r\n\r\n for (int i = 1; i < result.length + 1; i++) {\r\n result[i - 1] = i;\r\n\r\n }\r\n return result;\r\n }", "title": "" }, { "docid": "26f9620d4df3ce8f5620c0e109a47631", "score": "0.57883537", "text": "public static void main(String[] args) {\n \tint[] num = {8,8,7,7,7};\n \t//int[] num = {6,6,6,7,7};\n \t//int[] num = {200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,200,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10};\n \tSystem.out.println(majorityElement(num));\n }", "title": "" }, { "docid": "bc463ef57d905190df4b4045d3b43a93", "score": "0.5787051", "text": "@Test public void testInt() {\n MpiOp prod = new Prod();\n\n ArrayList<int[]> list = new ArrayList<int[]>();\n list.add(new int[] {1,2,3,5});\n list.add(new int[] {5,23,56,-9});\n\n int[] result = prod.run(list);\n\n assertArrayEquals(new int[] {5,46,168,-45}, result);\n }", "title": "" }, { "docid": "21a5a5f17b878e54b9ae77759be14e00", "score": "0.578644", "text": "public static void main(String[] args) {\n Integer[][] g = new Integer[8][8];\n Set<Integer[]> aristas = new HashSet<>(11);\n\n //Nodo 1\n g[1][3] = 1;\n g[1][4] = 2;\n g[1][7] = 6;\n\n //Nodo 2\n g[2][5] = 2;\n g[2][6] = 4;\n g[2][7] = 7;\n\n //Nodo 3\n g[3][1] = 1;\n g[3][4] = 3;\n g[3][7] = 5;\n\n //Nodo 4\n g[4][1] = 2;\n g[4][3] = 3;\n g[4][5] = 1;\n g[4][6] = 9;\n\n //Nodo 5\n g[5][2] = 2;\n g[5][4] = 1;\n g[5][7] = 8;\n\n //Nodo 6\n g[6][2] = 4;\n g[6][4] = 9;\n\n //Nodo 7\n g[7][1] = 6;\n g[7][2] = 7;\n g[7][3] = 5;\n g[7][5] = 8;\n\n try{\n FileReader f = new FileReader(\"entradaPrim\");\n Scanner scan = new Scanner(f);\n\n //Rellenar el conjunto de aristas (candidatos)\n for(int i=0; i<11; i++){\n Integer[] ar = {scan.nextInt(), scan.nextInt()};\n aristas.add(ar);\n }\n\n List<Integer[]> prim = Prim(aristas, g, 5);\n System.out.println();\n System.out.print(\"Aristas del árbol de recubrimiento mínimo:{ \");\n for(Integer[] ar: prim){\n System.out.print(\"{\"+ar[0]+\",\"+ar[1]+\"} \");\n }\n System.out.println(\"}\");\n\n }catch(IOException ex){\n ex.getMessage();\n }\n\n }", "title": "" }, { "docid": "41a6a9cb5e131bed6c89228e06eafb8b", "score": "0.57803583", "text": "int[] toArray();", "title": "" }, { "docid": "41a6a9cb5e131bed6c89228e06eafb8b", "score": "0.57803583", "text": "int[] toArray();", "title": "" }, { "docid": "6d62da47b539bd282fb2c57fdf52406f", "score": "0.5763651", "text": "static int[] permutationEquation(int[] p) {\n int [] result = new int[p.length];\n\n final HashMap<Integer, Integer> hashMap = new HashMap<>();\n for (int i = 0; i < p.length; i++) {\n hashMap.put(p[i], i + 1);\n }\n\n for (int i = 0; i < p.length; i++) {\n result[i] = hashMap.get(hashMap.get(i + 1));\n }\n\n return result;\n }", "title": "" }, { "docid": "af563d535d094a01263e97ebc48c812f", "score": "0.5748758", "text": "boolean Monta(int CodigoDestaPeça, int[] codigoDasPeçasUsadas);", "title": "" }, { "docid": "e6187297e431041349e098d13dd2fc91", "score": "0.57454664", "text": "public static int[] factor(int n) {\n for (int i = 0; i < NUM_PRIMES; i++) {\n for (int j = i; j < NUM_PRIMES; j++) {\n if (primes[i] * primes[j] == n) {\n return new int[]{primes[i], primes[j]};\n }\n }\n }\n return new int[]{};\n }", "title": "" }, { "docid": "ee9b32461146689132c5f12165059f25", "score": "0.57434195", "text": "public static void main(String args[])\n {\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Masukkan nilai : \");\n //memasukkan nilai untuk tipe data integer\n int n=input.nextInt();\n\n System.out.println(\"Bilangan Prima dari 1 - \" +n);\n\n //proses perulangan untuk mencari bilangan prima dengan batas terentu(n)\n for (int i=1; i<=n; i++){\n int cek=0;\n for (int j=1;j<=n;j++){\n if (i%j==0){\n cek++;\n }\n }\n if ((cek==2)&&(i!=1)){\n System.out.print(i+\" \");\n } \n } \n\n }", "title": "" }, { "docid": "ba10d725de87a487a681413bd3825a17", "score": "0.5739858", "text": "public static void main(String[] args) {\n\t\tint n;\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\tn=in.nextInt();\r\n\t\tint []sushu=new int[100001];\r\n\t\tint ji=1;\r\n\t\tint temp=2;\r\n\t\twhile (ji<=n) {\r\n\t\t\t\r\n\t\t\tif(isPrame(temp)==1) {\r\n\t\t\t\tsushu[ji++]=temp;\r\n\t\t\t}\r\n\t\t\ttemp++;\r\n\t\t}\r\n\t\tint rs=1;\r\n\t\tfor(int i=1;i<=n;i++) {\r\n\t\t\tSystem.out.println(sushu[i]);\r\n\t\t\trs=(rs*sushu[i])%50000;\r\n\t\t}\r\n\t\tSystem.out.println(rs);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "51dc24f2cc907d55dc416718ef2dae36", "score": "0.57285976", "text": "public p132() {\n\n int result = 0, count = 0;\n BigInteger m = BigInteger.TEN.pow(9);\n List<Integer> primes = Operations.sieveOfEratosthenes(200000);\n\n for (int i= 0; count < 40; i++){\n if (BigInteger.TEN.modPow(m, BigInteger.valueOf(9 * primes.get(i))).compareTo(BigInteger.ONE) == 0){\n count++;\n result += primes.get(i);\n }\n }\n System.out.println(result);\n }", "title": "" }, { "docid": "da722f998dba25d71cdca19c101cb822", "score": "0.5714067", "text": "public static void main(String[] args) {\n int[] x = sieve(10000);\n\n int[] code = new int[] {1206, 301, 384, 5};\n int[] key = new int[] {1, 1, 2, 2};\n\n for (int i : new int[] {73, 83, 66, 78, 32, 61, 32}) {\n System.out.print((char) i);\n }\n\n for (int i = 0; i < 4; i++) {\n System.out.print(prime(code[i], x) - key[i]);\n }\n\n System.out.println();\n }", "title": "" }, { "docid": "025e00af938bbe059c9cb88afd6f2ed6", "score": "0.571348", "text": "public static int[] addPrime(int num1,int num2)\n\t\t{\n\t\t\tint arr[]=new int[1000];\n\t\t\tint k=0;\n\t\t\tfor(int i=num1;i<=num2;i++)\n\t\t\t{\n\t\t\t\tint count=0;\n\t\t\t\tfor(int j=i;j>=1;j--)\n\t\t\t\t{\n\t\t\t\t\tif(i%j==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(count==2)\n\t\t\t\t{\n\t\t\t\t\tarr[k++]=i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tint arr1[]=new int[k];\n\t\t\tfor(int i=0;i<k;i++)\n\t\t\t{\n\t\t\t\tarr1[i]=arr[i];\n\t\t\t}\n\t\t\treturn arr1;\n\t\t}", "title": "" }, { "docid": "1932580a317c5be23bcdf94484a00449", "score": "0.5713191", "text": "public int []generarNumeroSorteig(){\n int [] numeros = new int[6];\n int random;\n int posicioFinal=48;\n plenarBombo1();\n for (int i=0; i<=numeros.length; i++){\n random = Lib.random(0,posicioFinal);\n if (i<numeros.length) {\n numeros[i] = getBombo1()[random];\n getBombo1()[random] = getBombo1()[posicioFinal];\n }\n if (i==numeros.length){\n setComplementari(getBombo1()[random]);\n }\n posicioFinal--;\n }\n numeroSorteig = numeros;\n return numeros;\n }", "title": "" }, { "docid": "ce426347c43489cbd64306cddf44718a", "score": "0.5697945", "text": "public void rightPrime(int[] array){\n\t\tint temp = array[53];\n\t\tarray[53] = array[44];\n\t\tarray[44] = array[32];\n\t\tarray[32] = array[8];\n\t\tarray[8] = temp;\n\t\t\n\t\ttemp = array[50];\n\t\tarray[50] = array[41];\n\t\tarray[41] = array[23];\n\t\tarray[23] = array[5];\n\t\tarray[5] = temp;\n\t\t\n\t\ttemp = array[47];\n\t\tarray[47] = array[38];\n\t\tarray[38] = array[14];\n\t\tarray[14] = array[2];\n\t\tarray[2] = temp;\n\t\t\n\t\ttemp = array[33];\n\t\tarray[33] = array[15];\n\t\tarray[15] = array[17];\n\t\tarray[17] = array[35];\n\t\tarray[35] = temp;\n\t\t\n\t\ttemp = array[24];\n\t\tarray[24] = array[16];\n\t\tarray[16] = array[26];\n\t\tarray[26] = array[34];\n\t\tarray[34] = temp;\t\n\t}", "title": "" }, { "docid": "43dcc6d4ae9925463b0ecca66bd3994d", "score": "0.56922233", "text": "BitSet calculatePrimes(int maxNumber);", "title": "" }, { "docid": "a5c5078d14dea135e6120e1a70db0cef", "score": "0.5686871", "text": "public abstract int[] mo3883a();", "title": "" }, { "docid": "39311b5b3ea42acf9025443fb88f6359", "score": "0.56864655", "text": "public List<Integer> singleNumberIII(int[] A) {\n // write your code here\n\n // Step 1, find the XOR of two different number\n List<Integer> res = new LinkedList<Integer>();\n if(A == null || A.length == 0) return res;\n\n int twoXorRes = 0;\n\n for(int i = 0; i < A.length ; i++) {\n twoXorRes ^= A[i];\n }\n\n // Pick the first different bit of two number from the left\n int mask = 0;\n\n for(int i = 0; i < 32; i++) {\n mask = 1 << i;\n if((mask & twoXorRes) != 0) {\n break;\n }\n }\n\n // Okay based on this mask\n int res1 = 0;\n int res2 = 0;\n\n for(int i = 0; i < A.length; i++) {\n if((A[i] & mask) != 0) {\n res1 ^= A[i];\n } else {\n res2 ^= A[i];\n }\n }\n\n res.add(res1);\n res.add(res2);\n\n return res;\n}", "title": "" }, { "docid": "e2c19a45e689eb91bca844936e0517a1", "score": "0.56853837", "text": "private int[] m89032RK(int i) {\n int[] iArr = new int[i];\n int i2 = 0;\n int i3 = 0;\n while (i2 < i) {\n int a = C16316o.m25139a(this.Azm.AAj) + i3;\n iArr[i2] = a;\n i2++;\n i3 = a;\n }\n return iArr;\n }", "title": "" }, { "docid": "2526e489f98cc3e9348cee9cf8e4e4a6", "score": "0.56713736", "text": "private void process() {\r\n\t\tint j = 1, k = 1, square = 9, ord = 2, n = 0, ordMax = 30;\r\n\t\tint mult[] = new int[ordMax + 1];\r\n\t\tboolean jPrime;\r\n\t\tthis.p = new int[this.qtyPrimeNumbers + 1];\r\n\t\tthis.p[1] = 2;\r\n\r\n\t\twhile (k < this.qtyPrimeNumbers) {\r\n\t\t\tdo {\r\n\t\t\t\tj += 2;\r\n\t\t\t\tif (j == square) {\r\n\t\t\t\t\tord++;\r\n\t\t\t\t\tsquare = this.p[ord] * this.p[ord];\r\n\t\t\t\t\tmult[ord - 1] = j;\r\n\t\t\t\t}\r\n\t\t\t\tn = 2;\r\n\t\t\t\tjPrime = true;\r\n\r\n\t\t\t\twhile (n < ord && jPrime) {\r\n\t\t\t\t\twhile (mult[n] < j)\r\n\r\n\t\t\t\t\t\tmult[n] += this.p[n] + this.p[n];\r\n\t\t\t\t\tif (mult[n] == j)\r\n\t\t\t\t\t\tjPrime = false;\r\n\t\t\t\t\tn++;\r\n\t\t\t\t}\r\n\r\n\t\t\t} while (!jPrime);\r\n\t\t\tk++;\r\n\t\t\tthis.p[k] = j;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f639be5eac2be6a32e15788a237e0c75", "score": "0.5667135", "text": "public static int[] parPat(int a) {\n int b = 0;\n int c = 0;\n int d = 0;\n while (a != 0) {\n c = a % 10;\n if (c % 2 == 0) {\n b = b + c * c;\n if (((c * c) / 10) != 0) {\n d = d * 100 + numInvers((c * c));\n } else {\n d = d * 10 + c * c;\n }\n\n }\n a = a / 10;\n\n }\n int[] array = new int[2];\n array[0] = b;\n array[1] = numInvers(d);\n // s-a folosit inversul doar ca sa se afiseze \" corect\"\n return array;\n }", "title": "" }, { "docid": "5f0f362724736b97b18e21912de042a3", "score": "0.5657636", "text": "public int[] getPrimes() {\n\t\treturn Arrays.copyOfRange(primes, 1, primes.length);\n\t}", "title": "" }, { "docid": "24822ffb9f50f438a132407f007b2a33", "score": "0.5642124", "text": "public static void main(String[] args) {\n int[] integers = {29, 5, 4, 3, 7, 8, 10, 89, 17, 90};\n\n\n for (int elements : integers) {\n System.out.print(elements + \" \");\n }\n\n System.out.println();\n\n List<Integer> prime = new ArrayList<>();\n\n int primeIndexCount = 0;\n int compositeIndexCount = 0;\n\n int[] finalArray = new int[integers.length];\n List<Integer> composite = new ArrayList<>();\n\n for (int i = 0; i < integers.length; i++) {\n if (isPrime(integers[i])) {\n prime.add(integers[i]);\n } else {\n composite.add(integers[i]);\n }\n }\n\n Collections.sort(prime);\n Collections.sort(composite, Collections.reverseOrder());\n\n for (int i = 0; i < integers.length; i++) {\n if (isPrime(integers[i])) {\n finalArray[i] = prime.get(primeIndexCount++);\n } else {\n finalArray[i] = composite.get(compositeIndexCount++);\n }\n }\n\n for (int elements : finalArray) {\n System.out.print(elements + \" \");\n }\n }", "title": "" }, { "docid": "0b0fa86b40041fd8882145c61200428a", "score": "0.56285435", "text": "public int[] asInt();", "title": "" }, { "docid": "e4d5894df9498acb05654014b3923338", "score": "0.56230974", "text": "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tScanner s = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter the number to find prime sum :\");\n\t\tint n = s.nextInt();\n\t\tint is_prime[] = new int[n+1];\n\t\t\n\t\tfor(int i = 0 ; i <= n ; i++)\n\t\t{\n\t\t\tis_prime[i] = 1;\n\t\t}\n\t\t\n\t\tfor(int p = 2 ; p*p <= n ; p++)\n\t\t{\n\t\t\tif(is_prime[p] == 1)\n\t\t\t{\n\t\t\t\tfor(int i = 2*p ; i <= n ; i = i + p)\n\t\t\t\t{\n\t\t\t\t\tis_prime[i] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t for(int i = 2; i <= n; i++)\n\t {\n\t if(is_prime[i] == 1)\n\t System.out.print(i + \" \");\n\t }\t\t\n\t}", "title": "" }, { "docid": "5545ef48e7afff54e8d74ccadc1cfbf8", "score": "0.56054914", "text": "private static int[] method2(int n){\n\t\tint[] p = new int[n];\n\t\tfor(int i = 1; i <= n/2; i++){\n\t\t\tp[i-1] = 1 + (2*i-2+n/2 -1)%n;\n\t\t\tp[n-i] = n - (2*i-2+n/2-1)%n;\n\t\t}\n\t\treturn p;\n\t}", "title": "" }, { "docid": "f2eeb0e7f1028d87f0a6cbc239298295", "score": "0.55899286", "text": "public static void main(String[] args) {\n\t\t\tScanner s= new Scanner(System.in);\n\t\t\tint a=s.nextInt();\n\t\t\tint b[]=new int[a];\n\t\t\tint c[][]=new int[a][1000];\n\t\t\tfor (int i = 0; i <a; i++) {\n\t\t\t\tb[i]=s.nextInt();\n\t\t\t\tfor (int j = 0; j <b[i]-1; j++) {\n\t\t\t\t\tc[i][j]=s.nextInt();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tlong ans=1;\n\t\t\t\tfor (int j = 0; j < b[i]-1; j++) {\n\t\t\t\t\tans=ans%1234567*c[i][j]%1234567;\n\t\t\t\t}System.out.println(ans);\n\t\t\t}\n\t}", "title": "" }, { "docid": "1c76c27f4a6fcafc22e2403c68795f66", "score": "0.5588453", "text": "public abstract int[] getDatos();", "title": "" }, { "docid": "56e9aae5cc9adf8bc3fad8d58cd5edff", "score": "0.5585501", "text": "private int[][] dividir(int[] codificado, int length) {\n\r\n\t\tint num = codificado.length / length;\r\n\t\tint[][] resultado = new int[num][length];\r\n\r\n\t\tfor (int i = 0; i < num; i++) {\r\n\r\n\t\t\tfor (int j = 0; j < length; j++) {\r\n\t\t\t\tresultado[i][j] = codificado[length * i + j];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// System.out.println(\"\\ndivision: \");\r\n\t\t// imprimirDobleArray(resultado);\r\n\r\n\t\treturn resultado;\r\n\t}", "title": "" }, { "docid": "9099fbbcd11d9604882b0670c446514d", "score": "0.55854356", "text": "public p231() {\n long result = 0;\n long n = 20000000;\n long k = 15000000;\n List<Integer> primes = Operations.sieveOfEratosthenes((int)n);\n\n\n for (int p : primes){\n long np = p;\n while (np <= n){\n result += p * ((n/np) - (k/np) - ((n-k)/np));\n np *= p;\n }\n }\n System.out.println(result);\n }", "title": "" }, { "docid": "5eaefde22df09344cc1ffe059e465300", "score": "0.55843544", "text": "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tboolean isPrime[]=new boolean[100001];\n\t\tArrays.fill(isPrime,true);\n\t\tArrayList<Integer> primes=new ArrayList<Integer>();\n\t\t\n\t\tisPrime[0]=false;\n\t\tisPrime[1]=false;\n\t\tfor(int i=2;i<100001;i++)\n\t\t{\n\t\t if(!isPrime[i])\n\t\t continue;\n\t\t for(int j=i*2;j<100001;j+=i)\n\t\t isPrime[j]=false;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<100001;i++)\n\t\tif(isPrime[i])\n\t\tprimes.add(i);\n\t\t\n\t\t//System.out.println(primes);\n\t\t\n\t\tint primeFactors[]=new int[100001];\n\t\tprimeFactors[0]=0;\n\t\tprimeFactors[1]=0;\n\t\tfor(int i=2;i<=100000;i++)\n\t\t{\n\t\t if(isPrime[i])\n\t\t {\n\t\t primeFactors[i]=1;\n\t\t continue;\n\t\t }\n\t\t int temp=i;\n\t\t for(int x:primes)\n\t\t {\n\t\t int flag=0;\n\t\t while((temp%x)==0)\n\t\t {\n\t\t temp/=x;\n\t\t flag=1;\n\t\t }\n\t\t if(flag==1)\n\t\t primeFactors[i]++;\n\t\t }\n\t\t}\n\t\t\n\t\tScanner ob=new Scanner(System.in);\n\t\tint t=ob.nextInt();\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(t-->0)\n\t\t{\n\t\t int a=ob.nextInt();\n\t\t int b=ob.nextInt();\n\t\t int k=ob.nextInt();\n\t\t int totalCount=0;\n\t\t for(int i=a;i<=b;i++)\n\t\t {\n\t\t if(primeFactors[i]==k)\n\t\t totalCount++;\n\t\t }\n\t\t sb.append(totalCount+\"\\n\");\n\t\t}\n\t\tSystem.out.println(sb);\n\t}", "title": "" }, { "docid": "280dc4a4b15c33fa3974ad088ee5544f", "score": "0.5565262", "text": "int nextPrime(int i) {\n boolean next = false;\n while (next == false) {\n if ((bitArr[i/16] & 1<<(i%16)/2) != 0)\n next = true;\n else\n i += 2;\n }\n return i;\n }", "title": "" }, { "docid": "880f6c685403b378945bdd642b36b611", "score": "0.55594647", "text": "public void frontPrime(int[] array){\n\t\tint temp = array[11];\n\t\tarray[11] = array[8];\n\t\tarray[8] = array[33];\n\t\tarray[33] = array[36];\n\t\tarray[36] = temp;\n\t\t\n\t\ttemp = array[20];\n\t\tarray[20] = array[7];\n\t\tarray[7] = array[24];\n\t\tarray[24] = array[37];\n\t\tarray[37] = temp;\n\t\t\n\t\ttemp = array[29];\n\t\tarray[29] = array[6];\n\t\tarray[6] = array[15];\n\t\tarray[15] = array[38];\n\t\tarray[38] = temp;\n\t\t\n\t\ttemp = array[12];\n\t\tarray[12] = array[14];\n\t\tarray[14] = array[32];\n\t\tarray[32] = array[30];\n\t\tarray[30] = temp;\n\t\t\n\t\ttemp = array[13];\n\t\tarray[13] = array[23];\n\t\tarray[23] = array[31];\n\t\tarray[31] = array[21];\n\t\tarray[21] = temp;\t\n\t}", "title": "" }, { "docid": "4701e81793f6383f68ebb795548e400d", "score": "0.5557171", "text": "public void primeiros() {\n for (int i = 0; i < uno.length; i++) {\n but.setX();\n but.setY();\n uno[i] = new Carro(but.getX(), but.getY());\n uno[i].setVelocidade(0);\n but.setX();\n but.setY();\n boy[i] = new Moto(but.getX(), but.getY());\n boy[i].setVelocidade(0);\n but.setX();\n but.setY();\n bino[i] = new Caminhao(but.getX(), but.getY());\n bino[i].setVelocidade(0);\n }\n\n for (int i = 0; i < 10; i++) {\n uno[i].setVelocidade(2);\n boy[i].setVelocidade(3);\n bino[i].setVelocidade(1);\n }\n }", "title": "" }, { "docid": "52096792958e06277c0bc734ca46ec83", "score": "0.55401206", "text": "public static int[] declvec2cif() {\n int n;\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Introduceti lungimea sirului: \");\n n = scanner.nextInt();\n int[] a = new int[n];\n // foarte posibil ca declararea sa ia exact numarul fix de pozitii\n // si nu tine seama de n ( adica nu trebuie sa tin eu seama de pozitia 0\n // decat la iterare )\n // dupa testare LUNGIMEA unui VECTOR DECLARATA este EXACTA\n for (int i = 0; i < n; i++) {\n System.out.println(\"Introduceti numarul \" + (i + 1) + \": \");\n // foarte interesant tot ce este in println() este interpretat ca si string daca este adunat cu +\n int var = scanner.nextInt();\n if (nrCif(var) >= 2) {\n a[i] = var;\n } else {\n while (nrCif(var) < 2) {\n System.out.println(\"Numarul trebuie sa aiba 2 cifre sau mai mult. Incearca din nou\");\n var = scanner.nextInt();\n }\n a[i] = var;\n }\n }\n return a;\n }", "title": "" }, { "docid": "bb497140484b6e29cc580b75b9d9d927", "score": "0.5535021", "text": "public static void main(String[] args) {\n\t\tint num=5646,numkorumasi=0,bassayisi=0,temp;\r\n\t\tint[] dizi;\r\n\t\tnumkorumasi=num;\r\n\t\tdo {\r\n\t\t\tnum=num/10;\r\n\t\t\tbassayisi++;\r\n\t\t\tif(num<1) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}while(true);\r\n\t\tdizi=new int[bassayisi];\r\n\t\tfor (int i = 0; i < bassayisi; i++) {\r\n\t\t\tdizi[i] = numkorumasi % 10;\r\n\t\t\tnumkorumasi /= 10;\r\n\t\t}\r\n\t\tint m = bassayisi - 1;\r\n\t\tfor (int j = 0; j < Math.pow(m, 2); j++) {\r\n\t\t\tfor (int i = 0; i < bassayisi - 1; i++) {\r\n\t\t\t\tif (dizi[i] < dizi[i + 1]) {\r\n\t\t\t\t\ttemp = dizi[i];\r\n\t\t\t\t\tdizi[i] = dizi[i + 1];\r\n\t\t\t\t\tdizi[i + 1] = temp;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tint numa=0;\r\n\t\tint k=bassayisi-1;\r\n\t\tfor (int i = 0; i < bassayisi; i++) {\r\n\t\t\tnuma+=dizi[i]*Math.pow(10, k);\r\n\t\t\tk--;\r\n\t\t}\r\n\t\tSystem.out.println(numa);\r\n\t}", "title": "" }, { "docid": "b01d43bdf5bed58c4cb43bda82f1b38a", "score": "0.5534296", "text": "public static void inicializarArray (int [] v){\n int i;\r\n int size ;\r\n int[] intArray; \r\n for (i=0;i<v.length;i++) /* Por defecto se inicializa un array al valor neutro de su tipo */\r\n v[i]=i;\r\n \r\n /* try{\r\n Scanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Introduce el tamaño del array:\");\r\n\t\tsize = sc.nextInt();\r\n\t\tintArray = new int[size];\r\n\t\tfor (i = 0; i < size; i++) {\r\n\t\t\tSystem.out.println(\"Por favor introduce un valor en la posicion \" + i + \":\");\r\n\t\t\tintArray[i] = sc.nextInt();\r\n\t\t}\r\n\t\tSystem.out.println(\"Introduce una posicion para obtener el valor almacenado:\");\r\n\t\tint index = sc.nextInt();\r\n\t\tsc.close();\r\n\r\n\t\tSystem.out.println(\"El valor almacenado en \" + index + \" = \" + intArray[index]);\r\n }\r\n catch (ArrayIndexOutOfBoundsException e){\r\n System.out.println(\"Error. Indice de posicion no valida\");\r\n }*/\r\n }", "title": "" }, { "docid": "96b54a6a2a49de22fafffbdf26ba4820", "score": "0.5533647", "text": "static int[] numArray(int num) {\r\n \t\t\r\n \t int[] a = new int[num];\r\n \t \r\n \t for (int i = 0; i < num-1; ++i) {\r\n \t \ta[i] = i+1;\r\n \t }\r\n \t \r\n \t a[num-1] = 0;\r\n \t return a;\r\n \t}", "title": "" }, { "docid": "ef81bee4b60303b7b8571143a12c4316", "score": "0.5526756", "text": "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tint n = scn.nextInt();\r\n\t\tlong[] arr = new long[n];\r\n\t\tlong max=Long.MIN_VALUE;\r\n\t\tfor (int i = 0; i < arr.length; i++) {\r\n\t\t\tarr[i] = scn.nextLong();\r\n\t\t\tif(arr[i]>max)\r\n\t\t\t\tmax=arr[i];\r\n\t\t}\r\n\t\tlong sum=0;\r\n\t\tfor(int i=0;i<arr.length-1;i++){\r\n\t\t\tfor(int j=i+1;j<arr.length;j++){\r\n\t\t\t\tif(printprimesoe(j-i)){\r\n\t\t\t\t\tsum+=arr[j]-arr[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n//\t\t\r\n//\t\tfor(int i=0;i<arr.length;i++){\r\n//\t\t\tsum+=arr[i];\r\n//\t\t}\r\n\t\tSystem.out.println(sum);\r\n\r\n\t}", "title": "" }, { "docid": "788fe100e0e140f96785b1a6bf679a32", "score": "0.55232143", "text": "public void upPrime(int[] array){\n\t\tint temp = array[17];\n\t\tarray[17] = array[14];\n\t\tarray[14] = array[11];\n\t\tarray[11] = array[51];\n\t\tarray[51] = temp;\n\t\t\n\t\ttemp = array[16];\n\t\tarray[16] = array[13];\n\t\tarray[13] = array[10];\n\t\tarray[10] = array[52];\n\t\tarray[52] = temp;\n\t\t\n\t\ttemp = array[15];\n\t\tarray[15] = array[12];\n\t\tarray[12] = array[9];\n\t\tarray[9] = array[53];\n\t\tarray[53] = temp;\n\t\t\n\t\ttemp = array[0];\n\t\tarray[0] = array[2];\n\t\tarray[2] = array[8];\n\t\tarray[8] = array[6];\n\t\tarray[6] = temp;\n\t\t\n\t\ttemp = array[1];\n\t\tarray[1] = array[5];\n\t\tarray[5] = array[7];\n\t\tarray[7] = array[3];\n\t\tarray[3] = temp;\t\n\t}", "title": "" }, { "docid": "81324773b5942f9891fdb2ce22d1d296", "score": "0.5516112", "text": "public void reorient(int[] array){\n\t\tif(array[4] == 0 && array[19] == 2)\n\t\t\tyPrime(array);\n\t\telse if(array[4] == 0 && array[19] == 3){\n\t\t\tyPrime(array);\n\t\t\tyPrime(array);\n\t\t}\n\t\telse if(array[4] == 0 && array[19] == 5)\n\t\t\ty(array);\n\t\telse if(array[4] == 1 && array[19] == 4)\n\t\t\tzPrime(array);\n\t\telse if(array[4] == 2 && array[19] == 4){\n\t\t\txPrime(array);\n\t\t\tzPrime(array);\n\t\t}\n\t\telse if(array[4] == 3 && array[19] == 4){\n\t\t\txPrime(array);\n\t\t\txPrime(array);\n\t\t\tzPrime(array);\n\t\t}\n\t\telse if(array[4] == 5 && array[19] == 4){\n\t\t\tx(array);\n\t\t\tzPrime(array);\n\t\t}\n\t\telse if(array[4] == 5 && array[19] == 1)\n\t\t\ty(array);\n\t\telse if(array[4] == 1 && array[19] == 2){\n\t\t\tzPrime(array);\n\t\t\ty(array);\n\t\t}\n\t\telse if(array[4] == 2 && array[19] == 3){\n\t\t\tzPrime(array);\n\t\t\tzPrime(array);\n\t\t\ty(array);\n\t\t}\n\t\telse if(array[4] == 3 && array[19] == 5){\n\t\t\tz(array);\n\t\t\ty(array);\n\t\t}\n\t\telse if(array[4] == 3 && array[19] == 0)\n\t\t\tz(array);\n\t\telse if(array[4] == 2 && array[19] == 0){\n\t\t\tyPrime(array);\n\t\t\tz(array);\n\t\t}\n\t\telse if(array[4] == 1 && array[19] == 0){\n\t\t\tyPrime(array);\n\t\t\tyPrime(array);\n\t\t\tz(array);\n\t\t}\n\t\telse if(array[4] == 5 && array[19] == 0){\n\t\t\ty(array);\n\t\t\tz(array);\n\t\t}\n\t\telse if(array[4] == 2 && array[19] == 1)\n\t\t\tyPrime(array);\n\t\telse if(array[4] == 1 && array[19] == 5){\n\t\t\tzPrime(array);\n\t\t\tyPrime(array);\n\t\t}\n\t\telse if(array[4] == 5 && array[19] == 3){\n\t\t\tzPrime(array);\n\t\t\tzPrime(array);\n\t\t\tyPrime(array);\n\t\t}\n\t\telse if(array[4] == 3 && array[19] == 2){\n\t\t\tz(array);\n\t\t\tyPrime(array);\n\t\t}\n\t\telse if(array[4] == 4 && array[19] == 1){\n\t\t\ty(array);\n\t\t\ty(array);\n\t\t}\n\t\telse if(array[4] == 4 && array[19] == 5){\n\t\t\txPrime(array);\n\t\t\ty(array);\n\t\t\ty(array);\n\t\t}\n\t\telse if(array[4] == 4 && array[19] == 3){\n\t\t\txPrime(array);\n\t\t\txPrime(array);\n\t\t\ty(array);\n\t\t\ty(array);\n\t\t}\n\t\telse if(array[4] == 4 && array[19] == 2){\n\t\t\tx(array);\n\t\t\ty(array);\n\t\t\ty(array);\n\t\t}\n\t\telse if(array[4] == 0 && array[19] == 1){\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "eda271896644440aa4196578d5e4beff", "score": "0.55144244", "text": "private static int[] method1(int n){\n\t\tint[] p = new int[n];\n\t\tfor(int i = 1; i <= n/2; i++){\n\t\t\tp[i-1] = 2*i;\n\t\t\tp[n/2+i-1] = 2*i-1;\n\t\t}\n\t\treturn p;\n\t}", "title": "" }, { "docid": "b6a0a40288c3701b382a1e0900ed8e26", "score": "0.55112845", "text": "private static BigInteger nextIntegerNotDivisibleBySeveralPrime(BigInteger number, List<BigInteger> listaPrimi) {\r\n // BigInteger da restituire\r\n BigInteger integerNotDivisibleBySeveralPrime = null;\r\n // Condizione di uscita dal ciclo\r\n boolean trovato = false;\r\n // Incremento number di 1, per passare ad effettuare il testing dal primo numero successivo a quello dato.\r\n number = number.add(BigInteger.ONE);\r\n // Ciclo finche non trovo un buon numero\r\n while (!trovato) {\r\n\t\t\t/* \r\n\t\t\t * Condizione per verificare se il numero da testare in questa iterazione del \r\n\t\t\t * ciclo � o meno multiplo della lista dei primi.\r\n\t\t\t */\r\n boolean multiplo = false;\r\n // Ciclo per verificare che il numero nell'iterazione corrente non sia multiplo di un numero primo.\r\n for (Iterator<BigInteger> iterator = listaPrimi.iterator(); iterator.hasNext(); ) {\r\n // Generico elemento della lista dei numeri primi\r\n BigInteger primeNumber = (BigInteger) iterator.next();\r\n // Verifico che number non sia multiplo di primeNumber\r\n if (UtilityIntegerNumber.A_multiplo_B(number, primeNumber) == true) {\r\n multiplo = true;\r\n }\r\n }\r\n\t\t\t/* \r\n\t\t\t * Se il numero appena testato � un multiplo di uno dei primi, incremento \r\n\t\t\t * di uno e al prossimo ciclo testo nuovamente.\r\n\t\t\t */\r\n if (multiplo == true) {\r\n number = number.add(BigInteger.ONE);\r\n } else {\r\n\t\t\t\t/*\r\n\t\t\t\t * Se il numero appena testato non era multiplo di nessuno dei primi allora \r\n\t\t\t\t * � un buon candidato e usciamo dal ciclo.\r\n\t\t\t\t */\r\n trovato = true;\r\n // Assegno il valore del numero trovato alla variabile da fornire in output.\r\n integerNotDivisibleBySeveralPrime = new BigInteger(number.toString());\r\n }\r\n }\r\n return integerNotDivisibleBySeveralPrime;\r\n }", "title": "" }, { "docid": "94a869671ee78f4951c06c66e96fc4a5", "score": "0.55085593", "text": "static ArrayList<Integer> sieve(int n){\n\n Boolean[] prime = new Boolean[n];\n Arrays.fill(prime, Boolean.TRUE);\n int p = 2;\n while (p*p <= n) {\n if (prime[p]) {\n int i = p*p;\n while(i < n) {\n prime[i] = false;\n i += p;\n }\n }\n p += 1;\n }\n ArrayList<Integer> primes = new ArrayList<>();\n p = 2;\n while (p < n) {\n if (prime[p]) {\n primes.add(p);\n }\n p += 1;\n }\n return primes;\n }", "title": "" }, { "docid": "3384c7ae3add65b9e479018f61651ecf", "score": "0.55004305", "text": "public static int[] generaArray(int n, int maximo, int minimo){\n\tint[] x=new int [n];\n\tfor(int i=0;i<n;i++){\n\t x[i]=(int)Math.random()*(maximo-minimo+1)+minimo;\n\t}\n\t \n\treturn x;\n }", "title": "" }, { "docid": "672b6a9e43a9450858ef0a928b6e8cce", "score": "0.5494946", "text": "public void yPrime(int[] array){\n\t\tupPrime(array);\n\t\te(array);\n\t\tdown(array);\n\t}", "title": "" }, { "docid": "0c0e13d7c66fcc9cc493b3e1d0c4f4a1", "score": "0.5493493", "text": "static void setPrimes() {\r\n\r\n // **** ****\r\n for (int i = 2; i <= 217286; i++) {\r\n if (isPrime(i))\r\n hs.add(i);\r\n }\r\n }", "title": "" }, { "docid": "5d99441e41e409984cc72c3554d2624f", "score": "0.5493432", "text": "public void backPrime(int[] array){\n\t\tint temp = array[2];\n\t\tarray[2] = array[9];\n\t\tarray[9] = array[42];\n\t\tarray[42] = array[35];\n\t\tarray[35] = temp;\n\t\t\n\t\ttemp = array[1];\n\t\tarray[1] = array[18];\n\t\tarray[18] = array[43];\n\t\tarray[43] = array[26];\n\t\tarray[26] = temp;\n\t\t\n\t\ttemp = array[0];\n\t\tarray[0] = array[27];\n\t\tarray[27] = array[44];\n\t\tarray[44] = array[17];\n\t\tarray[17] = temp;\n\t\t\n\t\ttemp = array[53];\n\t\tarray[53] = array[51];\n\t\tarray[51] = array[45];\n\t\tarray[45] = array[47];\n\t\tarray[47] = temp;\n\t\t\n\t\ttemp = array[52];\n\t\tarray[52] = array[48];\n\t\tarray[48] = array[46];\n\t\tarray[46] = array[50];\n\t\tarray[50] = temp;\t\n\t}", "title": "" }, { "docid": "5ff05cd266fe2175fee09d22f741a996", "score": "0.5486924", "text": "public static int[] verifOrdoSir(int[] a) {\n // initializari de variabile pentru while\n int i = 0; //increment while\n int verCre = 0; // increment care verifica ordinea crescatoare, totdeauna a.len-1\n boolean booli = true; // logic pentru sir ordonat din prima\n int intm = 0; // intermediar pentru schimbari de valori\n\n // cred ca am nevoie de doua while-uri\n // sau nu\n // la acest while am reutilizat\n //declvecOrdo()\n\n // test while\n while (i < a.length) {\n\n if (i > 0) { // pentru ca incepem de la 1 adica al doilea element sa verificam\n if (a[i] >= a[i - 1]) { // este all doilea element mai mare sau egal ca primul?\n verCre = verCre + 1; // daca da incrementam ordinea\n } else { // daca nu interschimbam\n intm = a[i];\n a[i] = a[i - 1];\n a[i - 1] = intm;\n booli = false;\n verCre = verCre + 1;\n i = 0; // logicul primeste nu ii place\n // nu am primit sir ordonat\n // am pierdut o gramada de vreme ca sa imi dau seama ca de fapt\n // trebuia la fiecare interschimbare sa reinitializez\n // si vectorul\n // ayyyy\n }\n }\n if ((verCre == a.length - 1) && (booli)) {\n System.out.println(\"Sirul este ordonat.\"); // daca se intampla sa ajungem la sfarsit sirul e ordonat\n }\n if ((i == a.length - 1) && ((verCre < a.length - 1))) { // verificatorul de crescator\n // se modifica daca sunt probleme\n verCre = 0; // sirul se reinitializeza ca sa nu scapam\n i = 0; // erori\n }\n\n\n i++;\n }\n\n\n return a;\n }", "title": "" }, { "docid": "700dca466b54a44983fa80eb54878ff6", "score": "0.5483611", "text": "public void x(int[] array){\n\t\tleftPrime(array);\n\t\tmPrime(array);\n\t\tright(array);\n\t}", "title": "" }, { "docid": "87f89e43e58f27a3449a561c6b53ee91", "score": "0.5482461", "text": "public static int[] getPrimes(int max) {\r\n if (max < 0) {\r\n throw new IllegalArgumentException(\"max cannot be less than zero: \" + max);\r\n }\r\n boolean[] sieve = new boolean[max]; //defaults to false\r\n sieve[2] = true;\r\n List<Integer> primes = new ArrayList<>();\r\n primes.add(2);\r\n //2 is the only prime number, so only set odd sieve members to true\r\n for (int i = 3; i < max; i += 2) {\r\n sieve[i] = true;\r\n }\r\n //because all non-2 primes are odd, skip checking even numbers\r\n for (int i = 3; i < max; i += 2) {\r\n if (sieve[i] == true) {\r\n primes.add(i);\r\n //all multiples of i, except i, are not prime\r\n for (int j = i + i; j < max; j = j + i) {\r\n sieve[j] = false;\r\n }\r\n }\r\n }\r\n return primes.stream().filter(i -> i != null).mapToInt(i -> i).toArray();\r\n }", "title": "" }, { "docid": "8e6664fad97258391260bacf205fd557", "score": "0.5481945", "text": "public static void main(String[] args){\r\n\t\t\r\n\t\t\r\n\t\tlong[] sequenciaNumerica = new long[9];\r\n\t\tlong m = (int) (Math.pow(2, 31) - 1);\r\n\t\tlong a =(int) Math.pow(7, 5) ;\r\n\t\tint c = 0;\r\n\t\tlong x = 1;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tsequenciaNumerica[0] = x;\r\n\t\t\r\n\t\tfor(int i = 1; i< sequenciaNumerica.length; i++){\r\n\t\t\tsequenciaNumerica[i] = ((a * x) + c) % m;\r\n\t\t\t\r\n\t\t\tx = sequenciaNumerica[i];\r\n\t\t\t\r\n\t\t}\r\n\t\tfor(int i = 0; i< sequenciaNumerica.length;i++){\r\n\t\t\tSystem.out.println(sequenciaNumerica[i]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "24bdf848f6ca060bcb41a408709ade2e", "score": "0.54667", "text": "public static void SieveOfEratosthenes(int n){\r\n\t\tboolean arr[]=new boolean[n+1];\r\n\t\t//for(boolean i:arr)System.out.println(i);\r\n\t\tfor(int i=2;i*i<=n;i++){\r\n\t\t\tif(!arr[i]){\r\n\t\t\t\tfor(int j=2;i*j<=n;j++){\r\n\t\t\t\t\tarr[i*j]=true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tint c=0;\r\n\t\tfor(int i=2;i<=n;i++){\r\n\t\t\tif(arr[i]!=true){c++;System.out.printf(i+\" \");}\r\n\t\t\telse continue;\r\n\t\t}\r\n\t\tSystem.out.println(\"No. of primes=\"+c);\r\n\t}", "title": "" }, { "docid": "fa62d1161b6ca38afdfaee60c618ded9", "score": "0.54645395", "text": "public void leftPrime(int[] array){\n\t\tint temp = array[0];\n\t\tarray[0] = array[12];\n\t\tarray[12] = array[36];\n\t\tarray[36] = array[45];\n\t\tarray[45] = temp;\n\t\t\n\t\ttemp = array[3];\n\t\tarray[3] = array[21];\n\t\tarray[21] = array[39];\n\t\tarray[39] = array[48];\n\t\tarray[48] = temp;\n\t\t\n\t\ttemp = array[6];\n\t\tarray[6] = array[30];\n\t\tarray[30] = array[42];\n\t\tarray[42] = array[51];\n\t\tarray[51] = temp;\n\t\t\n\t\ttemp = array[9];\n\t\tarray[9] = array[11];\n\t\tarray[11] = array[29];\n\t\tarray[29] = array[27];\n\t\tarray[27] = temp;\n\t\t\n\t\ttemp = array[10];\n\t\tarray[10] = array[20];\n\t\tarray[20] = array[28];\n\t\tarray[28] = array[18];\n\t\tarray[18] = temp;\t\n\t}", "title": "" }, { "docid": "e0d5cd586341f3e2d7bee82cf5718baa", "score": "0.5457721", "text": "public static void main(String args[]) {\n\t\tint s1, s2;\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\twhile (n > 0) {\n\t\t\t\n\t\t\ts1 = s.nextInt();\n\t\t\ts2 = s.nextInt();\n\t\t\t\n\t\t\tint[] primes = new int[s2 + 1];\n primes[0] = 0;\n primes[1] = 0;\n\n for (int i = 2; i <= s2; i++) {\n if ((i & 1) == 0 || i < s1) {\n primes[i] = 0;\n } else {\n primes[i] = 1;\n }\n }\n if (2 >= s1) {\n primes[2] = 1;\n }\n for (int i = 3; i <= s2; i += 2) {\n\n int j = 2;\n while (i * j <= s2) {\n primes[i * j] = 0;\n j++;\n }\n }\n\n int count = 0;\n for (int i = 0; i <= s2; i++) {\n if (primes[i] == 1) {\n count++;\n }\n }\n\n System.out.println(count);\n \n\t\t\tn--;\n\t\t}\n\t}", "title": "" }, { "docid": "48f891cce240ba177f2c22b508d1304d", "score": "0.54535955", "text": "private static int[] getListOfPrimesUsingSieve(int n)\n {\n boolean prime[] = new boolean[n+1];\n for(int i=0;i<n;i++)\n prime[i] = true;\n\n for(int p = 2; p*p <=n; p++)\n {\n // If prime[p] is not changed, then it is a prime\n if(prime[p] == true)\n {\n // Update all multiples of p\n for(int i = p*p; i <= n; i += p)\n prime[i] = false;\n }\n }\n\n // Print all prime numbers\n int[] listOfPrimes = new int[n];\n int z=0;\n for(int i = 2; i <= n; i++)\n {\n if(prime[i])\n listOfPrimes[z++]=i;\n }\n return listOfPrimes;\n }", "title": "" }, { "docid": "5d3b2ac94d0ef1b5d07683b307e3ad6f", "score": "0.54489654", "text": "public IntegerPermutationIter(int[] array)\r\n/* */ {\r\n/* 102 */ int[] newArray = new int[array.length];\r\n/* 103 */ System.arraycopy(array, 0, newArray, 0, array.length);\r\n/* 104 */ Arrays.sort(newArray);\r\n/* 105 */ init(newArray);\r\n/* */ }", "title": "" }, { "docid": "9fd99902317f21496964c47fa96c431a", "score": "0.5448622", "text": "public void semiPrimesInstr() {\n ArrayList<BigInteger> semiprimes = generateSemiPrimes(100000);\n IntFactorization intFact;\n for (BigInteger bi: semiprimes) {\n intFact = new IntFactorization();\n intFact.calcPrimeFactors(bi);\n }\n }", "title": "" }, { "docid": "e6e59de33d49612cf891874f2b3249d3", "score": "0.5446179", "text": "public static void checkPrime(int... input){\n\r\n\t\tfor(int ip :input){\r\n\t\t\tboolean isPrime = true;\r\n\t\t\tif(ip != 1){\r\n\t\t\t\tfor(int i=2;i<ip;i++){\r\n\t\t\t\t\tif(ip%i == 0) {\r\n\t\t\t\t\t\tisPrime = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(isPrime)\r\n\t\t\t\t\tSystem.out.print(ip+\" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "title": "" }, { "docid": "fb5ccf1ae552c3dbc9af3b8b0f774e83", "score": "0.5445777", "text": "static int FindSol(int n) { \n\t\tint i,res=0; \n\t\tint[] primes = new int[n];\n\t\t//gen_primes\n\t\tfor(i=2;i<=n/2;i++) \n\t\t\tif (primes[i]==1 && primes[n-i]==1) res++; \n\t\treturn res; \n\t}", "title": "" }, { "docid": "c4cd86b4560202826c0faad32c2f0280", "score": "0.5437486", "text": "int sizeOfIsbnArray();", "title": "" }, { "docid": "521e030d176e7d13c911e69df254ac22", "score": "0.5422865", "text": "@RequestMapping(value=EndPointUris.PARES, method = RequestMethod.GET )\n public List<Integer> getNumerosPares() {\n \tList<Integer> pares = new ArrayList<Integer>();\n \tfor (int i=0;i<=MAX_NUMEROS;i++) {\n \t\tif (i%2 == 0) {\n \t\t\tpares.add(i);\n \t\t}\n \t}\n \t\n return pares;\n }", "title": "" }, { "docid": "3bfb88ddb60aeb80ebc10fe677abc7da", "score": "0.5422858", "text": "private static void generatePrimeNumbers(){\n primes = new ArrayList<>();\n\n for (int i = 1; i <= 100; i++){\n boolean isPrime = true;\n for(int check = 2; check < i; ++check) {\n if(i % check == 0) {\n isPrime = false;\n }\n }\n if (isPrime) primes.add(i);\n }\n\n }", "title": "" }, { "docid": "5acc86217fd3e22adde7be9fa2f021c3", "score": "0.5420498", "text": "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int[] arr = new int[n + 1];\n for (int i = 3; i < arr.length; i += 2) {\n arr[i] = 1;\n }\n for (int i = 3; i * i < arr.length; i += 2) {\n if (arr[i] == 1) {\n for (int j = i * i; j < arr.length; j += i) {\n arr[j] = 0;\n }\n }\n }\n arr[2] = 1;\n arr[0] = arr[1] = 0;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i] == 1) {\n System.out.print(i + \" \");\n }\n }\n }", "title": "" }, { "docid": "b4cb0b89a66c4d3723babd8cd93cf8a0", "score": "0.54197955", "text": "public static int[] getIntegerArray() {\n // declare empty array with size 1_000_001\n int[] nums = new int[1_000_001];\n for (int i = 0; i <= 1_000_000; i++) {\n nums[i] = i;\n }\n return nums;\n }", "title": "" }, { "docid": "6a0dc51245806cb0cb139244ffa24277", "score": "0.54191834", "text": "public void plenarBombo1(){\n int numsBombo1=1;\n for (int i=0; i<bombo1.length; i++){\n bombo1[i]=numsBombo1;\n numsBombo1++;\n }\n }", "title": "" }, { "docid": "e40f7698e3896e5b0a04f8c88b1695c6", "score": "0.54149544", "text": "private void init(int[] array)\r\n/* */ {\r\n/* 112 */ this.N = array.length;\r\n/* 113 */ this.Value = array;\r\n/* 114 */ this.currentValueBackup = this.Value;\r\n/* 115 */ this.permutationCounter = 0L;\r\n/* */ }", "title": "" }, { "docid": "2b2f01ecf240ffe32388f0799612d2a4", "score": "0.54143655", "text": "public static void main(String[] args) {\n\t\tInteger loopi,loopj;\n\t\tfor(loopi=0;loopi<=size;loopi++){\n\t\t\tprime.add(0);\n\t\t}\n\t\tfor(loopi=2;loopi<=size;loopi++) {\n\t\t\tif(prime.get(loopi)!=0)\n\t\t\t\tcontinue;\n\t\t\t//System.out.println(loopi);\n\t\t\tfor(loopj=2;loopj*loopi<=size;loopj++){\n\t\t\t\tif(prime.get(loopj*loopi)!=0)\n\t\t\t\t\tcontinue;\t\n\t\t\t\tprime.set(loopj*loopi,1);\n\t\t\t}\n\t\t}\n\t\tloopj=0;\n\t\tprime.set(1, 1);\n\t\tfor(loopi=10;loopi<=size;loopi++){\n\t\t\tif(prime.get(loopi)!=0)\n\t\t\t\tcontinue;\n\t\t\tif(check(loopi)){\n\t\t\t\t//System.out.println(loopi);\n\t\t\t\tloopj+=loopi;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(loopj);\n\t}", "title": "" }, { "docid": "a86463f4f8a19b8dc217fb24135385e3", "score": "0.54078925", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tint[] mulNumArr = new int[0];\r\n\t\t\r\n\t\t\r\n//\t\t2 + \"*\" + = (2 * i)\r\n//\t\t2 * 1 = mulNumArr[0] 3 * 1 = mulNumArr[1] ,,, \t9 * 1 = mulNumArr[8]\r\n//\t\t2 * 2 = 4 3 * 2 = 6 ,,, \t9 * 2 = 18\r\n//\t\t2 * 3 = 6 3 * 3 = 9 ,,, \t9 * 3 = 27\r\n//\t\t\r\n//\t\t\r\n//\t\t2 * 9 = 18 3 * 9 = 27 ,,, \t9 * 9 = mulNumArr[??]\r\n\r\n\t}", "title": "" }, { "docid": "324dcb72017b01a8bb268ce96bbd0f10", "score": "0.5405245", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tint a[]= {34,54,23,2,7,5};\r\n\t\tint temp=0;\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tfor(int j=2;j<a[i]-1;j++)\r\n\t\t\t{\r\n\t\t\t\tif(a[i]%j==0)\r\n\t\t\t\t{\r\n\t\t\t\t\ttemp=temp+1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(temp==0)\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(a[i]);\r\n\t\t\t\r\n\t\t\telse\r\n\t\t\t\ttemp=0;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "ee708b47cd4173fe9e2accce9f131420", "score": "0.54036385", "text": "int[] toIntArray() {\n/* 422 */ int[] arrayOfInt = new int[this.intLen];\n/* 423 */ for (byte b = 0; b < this.intLen; b++)\n/* 424 */ arrayOfInt[b] = this.value[this.offset + b]; \n/* 425 */ return arrayOfInt;\n/* */ }", "title": "" } ]
f33471bd77808fff1458ea192cd780a6
Constructs a new AsteroidSounds with audio clips open and ready to use
[ { "docid": "47ca47a352cc4178aa9a4a7cbc71cf98", "score": "0.75574553", "text": "public AsteroidSounds ()\r\n {\r\n soundMap = new HashMap<>();\r\n addSoundMap();\r\n }", "title": "" } ]
[ { "docid": "da70e63dcbe3393f0cc91778a49cef8e", "score": "0.65891963", "text": "private void setUpSound() {\n ArrayList<Track> tracks = new ArrayList<>();\n tracks.add(new Track(RELOAD, Source.FILE, \"/sounds/Gun_reload.wav\"));\n tracks.add(new Track(EMPTYCLIP, Source.FILE, \"/sounds/Gun_empty.wav\"));\n tracks.add(new Track(SILENCESHOT, Source.FILE, \"/sounds/Silence_Shot.wav\"));\n tracks.add(new Track(BULLETDROP, Source.FILE, \"/sounds/Empty_bullet_drop.wav\"));\n\n// Playlist\n Playlist playlist = new Playlist(tracks);\n// pass the playlist to a sound manager\n soundManager = new SoundManager(playlist);\n }", "title": "" }, { "docid": "3138a6046b7b9774b5ba4d50a6825d9b", "score": "0.64463705", "text": "private void initSound() \n\t{\n\t\ttry \n\t\t{\n\t\t\tjumpSound = AudioLoader.getAudio(\"WAV\",\n\t\t\t\t\tResourceLoader.getResourceAsStream(\"res/sound/jump.wav\"));\t\t// jumping\n\t\t\tcoinSound = AudioLoader.getAudio(\"WAV\",\n\t\t\t\t\tResourceLoader.getResourceAsStream(\"res/sound/coin.wav\"));\t\t// grabbing a coin\n\t\t\tgravSound = AudioLoader.getAudio(\"WAV\",\n\t\t\t\t\tResourceLoader.getResourceAsStream(\"res/sound/GravFip.wav\"));\t// gravity flipper\n\t\t\tlandingSound = AudioLoader.getAudio(\"WAV\",\n\t\t\t\t\tResourceLoader.getResourceAsStream(\"res/sound/landing.wav\"));\t// TODO: this isn't used\n\t\t\t\n\t\t\t\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "aa9dfdf2e0683bbc1f1aff2a452f34e6", "score": "0.62906677", "text": "public MySoundPlayer(Activity a) {\n\n isPlaying = new HashMap<>();\n isLoaded = new HashMap<>();\n\n volume = .5f;\n\n //set context\n this.a = a;\n\n updateVolume();\n\n //Hardware buttons setting to adjust the media sound\n a.setVolumeControlStream(AudioManager.STREAM_MUSIC);\n\n // the counter will help us recognize the stream id of the sound played now\n counter = 0;\n\n // Load the sounds\n soundPool = new SoundPool(10, AudioManager.STREAM_MUSIC, 0);\n soundPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {\n @Override\n public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {\n Log.d(TAG, \"onLoadComplete\");\n isLoaded.put(sampleId, true);\n //loaded = true;\n\n }\n });\n\n /* constants for the method 'playsound' */\n SpeedTestLauncher.SOUND_TEST_STARTED = soundPool.load(a, R.raw.test_started, 1);\n SpeedTestLauncher.SOUND_TEST_COMPLETE = soundPool.load(a, R.raw.test_complete, 1);\n SpeedTestLauncher.SOUND_ERROR = soundPool.load(a, R.raw.error, 1);;\n SpeedTestLauncher.SOUND_POPUP_SHOW = soundPool.load(a, R.raw.popup_show, 1);\n SpeedTestLauncher.SOUND_POPUP_HIDE = soundPool.load(a, R.raw.popup_hide, 1);\n SpeedTestLauncher.SOUND_CLICK_DOWN = soundPool.load(a, R.raw.click_down, 1);\n\n }", "title": "" }, { "docid": "bddf1ef058da2e098a0aab54957d034d", "score": "0.6255874", "text": "public PlaySound() {\n\t\n\t}", "title": "" }, { "docid": "8a72fb3eee0114443d80e1b45032d280", "score": "0.6231245", "text": "public AlarmTask() {\n try {\n String sep = System.getProperty(\"file.separator\");\n File soundFile = new File(System.getProperty(\"user.dir\") + sep\n + \"data\" + sep + \"alarm.wav\");\n AudioInputStream sound = AudioSystem.getAudioInputStream(soundFile);\n AudioFormat format = sound.getFormat();\n DataLine.Info info = new DataLine.Info(Clip.class, format);\n if (!AudioSystem.isLineSupported(info)) {\n ring = null;\n } else {\n ring = (Clip) AudioSystem.getLine(info);\n //line.setLoopPoints(0, -1);\n ring.open(sound);\n }\n } catch (Exception ex) {\n ring = null;\n }\n }", "title": "" }, { "docid": "6075e16b7eafededbab2b4992c165bcd", "score": "0.62204945", "text": "private void initSounds(Context context) { \n\t\tmContext = context;\n\t mSoundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 0);\n\t mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);\n\t}", "title": "" }, { "docid": "c96415a57a499b7516a1194f79bdf292", "score": "0.62023306", "text": "private void initSoundPool() {\n //requires Android API >= 21\n AudioAttributes audioAttrib = new AudioAttributes.Builder()\n .setUsage(AudioAttributes.USAGE_GAME)\n .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)\n .build();\n SoundPool.Builder builder= new SoundPool.Builder();\n builder.setAudioAttributes(audioAttrib).setMaxStreams(MAX_STREAMS);\n this.soundPool = builder.build();\n\n //SoundPool has been loaded\n this.soundPool.setOnLoadCompleteListener(new SoundPool.OnLoadCompleteListener() {\n @Override\n public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {\n soundPoolLoaded = true;\n playSoundBackground(); // background sound\n }\n });\n this.soundIdBackground= this.soundPool.load(this.getContext(), R.raw.bgsound,1);\n this.soundIdExplosion = this.soundPool.load(this.getContext(), R.raw.explosion,1);\n }", "title": "" }, { "docid": "84e44fe8ab5426de84e57d5e9f225dce", "score": "0.61333", "text": "public static void soundSystem(){\r\n \r\n try {\r\n // Open an audio input stream. \r\n File soundFile = new File(\"AlertSound.wav\");\r\n if(!soundFile.exists())\r\n {\r\n soundFile=new File(\"src\\\\Data\\\\AlertSound.wav\");\r\n }\r\n \r\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(soundFile); \r\n // Get a sound clip resource.\r\n Clip clip = AudioSystem.getClip();\r\n // Open audio clip and load samples from the audio input stream.\r\n clip.open(audioIn);\r\n clip.start();\r\n } catch (UnsupportedAudioFileException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } catch (LineUnavailableException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "c3f4f6461fdbbd6577bb224c7fb19547", "score": "0.6115481", "text": "private void initializeSounds() {\n if (!soundsInitialized) {\r\n try {\r\n initialBgSound =\r\n new BackgroundSound(\"PimPoyPocket.wav\");\r\n bgSound = initialBgSound;\r\n middleScraperBgSound =\r\n new BackgroundSound(\"PimPoy.wav\");\r\n\r\n if (!soundOff) {\r\n bgSound.play();\r\n }\r\n heliCollisionSound = new Sound(\"heliAndHeli.wav\");\r\n birdCollisionSound = new Sound(\"heliAndBird.wav\");\r\n blimpCollisionSound = new Sound(\"heliAndBlimp.wav\");\r\n scraperCollisionSound = new Sound(\"heliAndScraper.wav\");\r\n deathSound = new Sound(\"death.wav\");\r\n nphCollisionSound = new Sound(\"nphCollision.wav\");\r\n soundsInitialized = true;\r\n } catch (NullPointerException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n // Player could've reached half of scrapers so set bgSound back\r\n else {\r\n bgSound = initialBgSound;\r\n bgSound.play();\r\n }\r\n }", "title": "" }, { "docid": "d5487e0c27f3477ae9535b732efd5891", "score": "0.61092764", "text": "AudioFactory getAudioFactory();", "title": "" }, { "docid": "8ade7a28a05e69ccd9c3eada17cf71fc", "score": "0.60874224", "text": "private void initializeSoundPool() {\n // check the API version in order to use the correct code\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n AudioAttributes audioAttributes = new AudioAttributes.Builder()\n .setContentType(AudioAttributes.CONTENT_TYPE_MUSIC)\n .setUsage(AudioAttributes.USAGE_GAME)\n .build();\n\n mySoundPool = new SoundPool.Builder()\n .setMaxStreams(3)\n .setAudioAttributes(audioAttributes)\n .build();\n\n soundRight = mySoundPool.load(this, R.raw.right, 1); // correct guess\n soundWrong = mySoundPool.load(this, R.raw.wrong, 1); // incorrect guess\n soundGameOver = mySoundPool.load(this, R.raw.gameover, 1); // game over\n\n } else {\n //code for all other versions\n // for older API versions (i.e., API less than 21)\n mySoundPool = new SoundPool(2, AudioManager.STREAM_MUSIC, 1);\n soundRight = mySoundPool.load(this, R.raw.right, 1);\n soundWrong = mySoundPool.load(this, R.raw.wrong, 1);\n soundGameOver = mySoundPool.load(this, R.raw.gameover, 1);\n }\n }", "title": "" }, { "docid": "3b76a7b13f5b0846f0cbeb1f1d0da42a", "score": "0.6083228", "text": "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n createSounds(\"/sounds/open\");\n }", "title": "" }, { "docid": "29f40f5793e2066719569733d71b08fb", "score": "0.60192317", "text": "public AudioHandler(String folderName){\n //opened = false;\n this.folderName = folderName; \n this.path = this.path + folderName + \"/\";\n this.clips = new LinkedHashMap<String, AudioClip>(); // does this work?\n //System.out.println(\"AudioHandler created~!\");\n }", "title": "" }, { "docid": "77f0da163d101c21fb74ee2fc214e41d", "score": "0.60009676", "text": "Audio()\r\n {\r\n try { \r\n clip = AudioSystem.getClip();\r\n } catch (LineUnavailableException ex) {\r\n Logger.getLogger(Audio.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n fn = \"RevanTheme.wav\";\r\n }", "title": "" }, { "docid": "f6bf4472fbe0349b7a8007fbed658a4b", "score": "0.5978718", "text": "public AudioLauncher() throws IOException{\r\n \r\n \r\n \r\n \r\n \r\n \r\n waiting_list = new ArrayList<Integer>();\r\n played_list = new ArrayList<Integer>();\r\n new StreamingFilesEditor().setFiles(\"\",\"\",\"\",\"images/empty.png\");\r\n mediaPlayerComponent = new AudioPlayerComponent();\r\n mediaPlayerComponent.mediaPlayer().events().addMediaPlayerEventListener(new MediaPlayerEventAdapter() {\r\n @Override\r\n public void finished(MediaPlayer mediaPlayer) {\r\n \r\n mediaPlayer.submit(new Runnable() {\r\n @Override\r\n public void run() {\r\n if(temp > -1){\r\n waiting_list.remove(temp);\r\n played_list.add(track);\r\n }\r\n// else{\r\n// stop();\r\n// }\r\n try {\r\n prepareSong(-1);\r\n } catch (IOException ex) {\r\n Logger.getLogger(AudioLauncher.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n });\r\n \r\n }\r\n \r\n public void playing(MediaPlayer mediaPlayer) {\r\n isPaused = false;\r\n }\r\n \r\n @Override\r\n public void paused(MediaPlayer mediaPlayer) {\r\n isPaused = true;\r\n \r\n }\r\n\r\n @Override\r\n public void error(MediaPlayer mediaPlayer) {\r\n exit(1);\r\n }\r\n });\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "e9362891a7c9416efa9459fa2cc0b9ab", "score": "0.5929549", "text": "public static void init() {\n bgMusic = TinySound.loadMusic(\"/Music/menuMusic.wav\");\n bgTalkMomentSpaceInvaders = TinySound.loadMusic(\"/Music/spaceMusicIntro.wav\");\n shot = TinySound.loadSound(\"/SFX/spaceShot.wav\");\n upMenu = TinySound.loadSound(\"/SFX/menuSelection.wav\");\n bgMusicSpaceInvaders = TinySound.loadMusic(\"/Music/spaceInvadersRace.wav\");\n damageAsteroid = TinySound.loadSound(\"/SFX/explosionAsteroid.wav\");\n damageEnemyShip = TinySound.loadMusic(\"/SFX/explosionEnemy.wav\");\n openGate = TinySound.loadSound(\"/SFX/gateOpenSound.wav\");\n closedGate = TinySound.loadSound(\"/SFX/gateClosed.wav\");\n backInTime = TinySound.loadSound(\"SFX/backInTime.wav\");\n jumpSound = TinySound.loadSound(\"SFX/jumpSound.wav\");\n fillPlayList();\n }", "title": "" }, { "docid": "6a18227c5ac909363be992be202158d3", "score": "0.59250695", "text": "public GameAudio()\n\t{\n\t\t// Create the audio vector\n\t\tAudioPaths = new Vector<String>();\n\t}", "title": "" }, { "docid": "0c2fccdc8f3204e169300438210efb90", "score": "0.59170127", "text": "public Sound() {\n\t}", "title": "" }, { "docid": "4a643fd3717b62de7ea13a986c7ce70e", "score": "0.5912609", "text": "Audio addAudio();", "title": "" }, { "docid": "a7f7eff4a417235471c5dc41aed01aed", "score": "0.5906268", "text": "public static void playSound()\n {\n // A sequence of frequencies and durations (eg 1400hz for 15ms, 1350hz for 15ms, etc)\n short[] fire = {1400, 15, 1350, 15, 1320, 20, 1300, 20, 1250, 25, 1200, 35};\n\n try {\n Alert.startAudio(fire, 50);\n }\n catch (Exception e) {\n Dialog.alert(\"Error playing sound effect.\");\n } \n }", "title": "" }, { "docid": "6429ed13bbcd9878c9e17ba769710676", "score": "0.5903174", "text": "public static void loadSounds() {\n\t\t// bubble 1\n\t\t// bubble_destroy 2\n\t\t// button_click 3\n\t\t// coffin_enter 4\n\t\t// destroy 5\n\t\t// door_mover 6\n\t\t// falling_star 7\n\t\t// level_completion 8\n\t\t// menu 9\n\t\t// play 10\n\t\t// rope_cut 11\n\t\t// rope_cutter_cloud 12\n\t\t// star_collect 13\n\t\t// start_stage 14\n\n\t\t// SoundManager.playSound(1, 1);\n\n\t\tmSoundPoolMap.put(0, mSoundPool.load(mContext, com.lilait.tamago.tap.golden.egg.game.R.raw.key_lock, 1));\n\t\n\t}", "title": "" }, { "docid": "35032c5de84801017f3aa99332f72c4e", "score": "0.5893357", "text": "public AudioPlayer() {\n\t\tenabled = true;\n\t}", "title": "" }, { "docid": "7452db6631fec2ea8108329570fd5d08", "score": "0.58916116", "text": "public static void gameStartSound() {\n }", "title": "" }, { "docid": "2ddc0203e5e1978f565dd2edebac08f1", "score": "0.58912385", "text": "public Sound() {\n }", "title": "" }, { "docid": "e52747260b3b93af23b689ca08945bf5", "score": "0.5882145", "text": "public Audio (final String pSon){\n try {\n AudioInputStream vAudio = AudioSystem.getAudioInputStream(getClass().getResource(pSon));\n this.aClip = AudioSystem.getClip();\n this.aClip.open(vAudio); \n }\n catch (final Exception pEx){\n System.out.println(\"Erreur son\"); \n } \n }", "title": "" }, { "docid": "ac7df3f660045515142e3920838b1497", "score": "0.5875872", "text": "SonidoExplosion(){\r\n URL url = getClass().getResource(\"sonido/explosion.wav\");\r\n sonido2= java.applet.Applet.newAudioClip(url);\r\n }", "title": "" }, { "docid": "f9b5bb72112b17d0eee80e081adc9a1d", "score": "0.58531207", "text": "private static void loadSounds() {\r\n sounds.add(loadSound(\"fine\"));\r\n sounds.add(loadSound(\"cecilia\"));\r\n sounds.add(loadSound(\"crazy\"));\r\n sounds.add(loadSound(\"ispy\"));\r\n }", "title": "" }, { "docid": "cbfdba2c34efa86f44193633d44899f2", "score": "0.58465147", "text": "private void initScan() {\n mScanManager = new ScanManager();\n mScanManager.openScanner();\n\n mScanManager.switchOutputMode(0);\n soundpool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 100); // MODE_RINGTONE\n soundid = soundpool.load(\"/etc/Scan_new.ogg\", 1);\n }", "title": "" }, { "docid": "cbfdba2c34efa86f44193633d44899f2", "score": "0.58465147", "text": "private void initScan() {\n mScanManager = new ScanManager();\n mScanManager.openScanner();\n\n mScanManager.switchOutputMode(0);\n soundpool = new SoundPool(1, AudioManager.STREAM_NOTIFICATION, 100); // MODE_RINGTONE\n soundid = soundpool.load(\"/etc/Scan_new.ogg\", 1);\n }", "title": "" }, { "docid": "2cdbc4c4a83d761787838cae8b3ff3d8", "score": "0.5838888", "text": "public static void play() {\n\t\tfirstTime = false;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tsoundFile = new File(song);\n\t\t\t\tin = AudioSystem.getAudioInputStream(soundFile);\n\t\t\t\tclip = AudioSystem.getClip();\n\t\t\t\tclip.open(in);\n\t\t\t\tclip.start();\n\t\t\t\tclip.loop(Clip.LOOP_CONTINUOUSLY);\n\t\t\t\t// in = new FileInputStream(song);\n\t\t\t\t// as = new AudioStream(in);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t// AudioPlayer.player.start(as);\n\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tb.removePeg(i, j);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tboolean gameOver = false;\n\t\t\tint lives = 3;\n\t\t\tint speed = 200;\n\t\t\tint spawnTime = 5;\n\t\t\tb.displayMessage(\"Lives: \" + lives + \" Points: \" + points);\n\t\t\ttimeCount = 0;\n\t\t\trandomKey = 5;\n\t\t\tcounter = -1;\n\t\t\tcounter2 = 0;\n\t\t\tpoints = 0;\n\n\t\t\twhile (!gameOver) {\n\t\t\t\tp[counter + 1] = new Pegs();\n\t\t\t\ttimeCount++;\n\t\t\t\tif (timeCount == spawnTime) {\n\t\t\t\t\tcounter++;\n\t\t\t\t\tp[counter].put();\n\t\t\t\t\ttimeCount = 0;\n\t\t\t\t}\n\n\t\t\t\tif (p[counter2].col == 0) {\n\t\t\t\t\tcounter2++;\n\t\t\t\t\tlives--;\n\t\t\t\t\tb.displayMessage(\"Lives: \" + lives + \" Points: \" + points);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(speed);\n\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t}\n\t\t\t\trules();\n\t\t\t\tb.displayMessage(\"Lives: \" + lives + \" Points: \" + points);\n\n\t\t\t\tif (lives == 0) {\n\t\t\t\t\tgameOver = true;\n\t\t\t\t\tscoreSaver();\n\t\t\t\t} else if (points == 200) {\n\t\t\t\t\tgameOver = true;\n\t\t\t\t\tscoreSaver();\n\t\t\t\t}\n\n\t\t\t\tif (points == 20) {\n\t\t\t\t\tspawnTime = 4;\n\t\t\t\t} else if (points == 40) {\n\t\t\t\t\tspawnTime = 3;\n\t\t\t\t\tspeed = 250;\n\t\t\t\t} else if (points == 50) {\n\t\t\t\t\tspeed = 225;\n\t\t\t\t} else if (points == 80) {\n\t\t\t\t\tspeed = 200;\n\t\t\t\t} else if (points == 100) {\n\t\t\t\t\tspeed = 175;\n\t\t\t\t} else if (points == 120) {\n\t\t\t\t\tspeed = 150;\n\t\t\t\t} else if (points == 140) {\n\t\t\t\t\tspeed = 150;\n\t\t\t\t} else if (points == 160) {\n\t\t\t\t\tspeed = 125;\n\t\t\t\t} else if (points == 180) {\n\t\t\t\t\tspeed = 100;\n\t\t\t\t}\n\n\t\t\t\tfor (int i = counter2; i <= counter; i++) {\n\t\t\t\t\tp[i].move();\n\t\t\t\t}\n\t\t\t\tif (counter2 > 0) {\n\t\t\t\t\tif (p[counter2 - 1].col - 1 == -1) {\n\t\t\t\t\t\tp[counter2 - 1].move();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (gO == 1);\n\n\t\tSystem.exit(1);\n\t}", "title": "" }, { "docid": "4ca5a2d9ad7848679153e15a718cd312", "score": "0.581076", "text": "public static void initSounds(Context theContext) {\n\t\tmContext = theContext;\n\t\tmSoundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 0);\n\t\tmSoundPoolMap = new HashMap<Integer, Integer>();\n\t\tmAudioManager = (AudioManager) mContext\n\t\t\t\t.getSystemService(Context.AUDIO_SERVICE);\n\t\tloadSounds();\n\t}", "title": "" }, { "docid": "62e7940d1ff228a7f8dc67adf48cf0e0", "score": "0.5808967", "text": "public void playLivingSound();", "title": "" }, { "docid": "9d163043f1fae126b884102f547adf6e", "score": "0.5767945", "text": "private AudioHelper() {\r\n\t}", "title": "" }, { "docid": "4d3c5a963d8557b35ef9faca9705b320", "score": "0.57286465", "text": "private void addSoundMap ()\r\n {\r\n soundMap.put(\"fire\", createClip(\"/sounds/fire.wav\"));\r\n soundMap.put(\"smallAst\", createClip(\"/sounds/bangSmall.wav\"));\r\n soundMap.put(\"mediumAst\", createClip(\"/sounds/bangMedium.wav\"));\r\n soundMap.put(\"largeAst\", createClip(\"/sounds/bangLarge.wav\"));\r\n soundMap.put(\"shipDestroyed\", createClip(\"/sounds/bangShip.wav\"));\r\n soundMap.put(\"thrust\", createClip(\"/sounds/thrust.wav\"));\r\n soundMap.put(\"beat1\", createClip(\"/sounds/beat1.wav\"));\r\n soundMap.put(\"beat2\", createClip(\"/sounds/beat2.wav\"));\r\n }", "title": "" }, { "docid": "f7bf600b2e0fdb87357cdb70a778f3d9", "score": "0.5709165", "text": "public void Sound() {\n String gongFile = \"G:\\\\audio\\\\Presidencia\\\\src\\\\Presidencia\\\\som.wav\";\r\n InputStream in = null;\r\n try {\r\n in = new FileInputStream(gongFile);\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(Gui.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n// create an audiostream from the inputstream\r\n AudioStream audioStream = null;\r\n try {\r\n audioStream = new AudioStream(in);\r\n } catch (IOException ex) {\r\n Logger.getLogger(Gui.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n// play the audio clip with the audioplayer class\r\n AudioPlayer.player.start(audioStream);\r\n }", "title": "" }, { "docid": "30244467175c2223f2e8295484a5395a", "score": "0.56815374", "text": "public void run() {\n\t\t try {\n\t\t Clip clip = AudioSystem.getClip();\n\t\t AudioInputStream inputStream = AudioSystem.getAudioInputStream(Main.class.getResourceAsStream(\"/dev/angora/sounds/\" + url));\n\t\t clip.open(inputStream);\n\t\t clip.start(); \n\t\t } catch (Exception e) {\n\t\t System.err.println(e.getMessage());\n\t\t }\n\t\t }", "title": "" }, { "docid": "929ac94420c4d77725d6c2dfd90ec4f7", "score": "0.5676111", "text": "public AudioImpl() {\r\n\t\tthis.volume = Constants.AudioConstants.VOLUME_LEVEL_START;\r\n\r\n }", "title": "" }, { "docid": "0fc817519c59b65aa3f837899f30751d", "score": "0.56639934", "text": "private static void initPlayer() {\n SE_PLAYER = new SoundPool(43, AudioManager.STREAM_MUSIC, 0);\n SE_PLAYER.setOnLoadCompleteListener(new SoundPool.OnLoadCompleteListener() {\n @Override\n public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {\n if (status == 0) {\n OnlyPrepareCount--;\n if (OnlyPrepareCount < 0) {\n\n float volume = 1.0f;\n\n for (SeName key : SE_NAME_ID_MAP.keySet()) {\n if (SE_NAME_ID_MAP.get(key) == sampleId) {\n volume = getVolume(key);\n break;\n }\n }\n soundPool.play(sampleId, volume, volume, 1, 0, 1.0F);\n }\n }\n }\n });\n //soundIds = new Integer[43];\n }", "title": "" }, { "docid": "e83eaa2e8a71dcef02ba40910fb9bd0c", "score": "0.5656869", "text": "public void initModuleAudio()\n\t{\n\t}", "title": "" }, { "docid": "8faa86dfd9f566c875db1623978036ff", "score": "0.56452996", "text": "public void playAsteroidExplosionSound(){\n\t\t// play sound for asteroid explosions\n \tif(SOUND_ON){\n \t\tnew Thread(new Runnable(){\n \t\t\tpublic void run() {\n \t\t\t\tshipExplosionSound.play();\n \t\t\t}\n \t\t}).start();\n \t}\n \t\t\n \t}", "title": "" }, { "docid": "dafbe888f49f8d58a4c6cb79db49b5e8", "score": "0.56342345", "text": "public SoundEffects()\n {\n SoundEffect(description);\n }", "title": "" }, { "docid": "7a4444d90df00d04eaef1a522b3db113", "score": "0.56218684", "text": "public void playhurtSound(){\n soundPool.play(hurtSound, 1.0f, 1.0f, 1, 0 , 1.0f);\n }", "title": "" }, { "docid": "80d795a3ba9cfe97a0a1c75b3fe31c54", "score": "0.5607735", "text": "public static void music() {\n\t\tAudioPlayer MGP = AudioPlayer.player;\n\t\tAudioStream BGM;\n\n\t\tContinuousAudioDataStream loop = null;\n\n\t\ttry {\n\t\t\tInputStream ringStream = DonGUI.class\n\t\t\t\t\t.getResourceAsStream(\"ring.wav\");\n\t\t\tBGM = new AudioStream(ringStream);\n\t\t\tAudioPlayer.player.start(BGM);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.print(e.toString());\n\t\t} catch (IOException error) {\n\t\t\tSystem.out.print(error.toString());\n\t\t}\n\t\tMGP.start(loop);\n\t}", "title": "" }, { "docid": "ab1eace9019a011af9ce9e19adb37e6d", "score": "0.5601806", "text": "private GameMediaPlayer() {\n\n soundEffects.put(\"UNMOVABLE_AUDIO_CLIP_MEDIA\", (AudioClip)ResourceFactory.getResource(\"UNMOVABLE_AUDIO_CLIP\", ResourceType.AudioClip));\n soundEffects.put(\"MOVE_AUDIO_CLIP_MEDIA\", (AudioClip)ResourceFactory.getResource(\"MOVE_AUDIO_CLIP\", ResourceType.AudioClip));\n soundEffects.put(\"MOVE_CRATE_AUDIO_CLIP_MEDIA\", (AudioClip)ResourceFactory.getResource(\"MOVE_CRATE_AUDIO_CLIP\", ResourceType.AudioClip));\n soundEffects.put(\"LEVEL_COMPLETE_AUDIO_CLIP\", (AudioClip)ResourceFactory.getResource(\"LEVEL_COMPLETE_AUDIO_CLIP\",ResourceType.AudioClip));\n soundEffects.put(\"GAME_COMPLETE_AUDIO_CLIP\", (AudioClip)ResourceFactory.getResource(\"GAME_COMPLETE_AUDIO_CLIP\",ResourceType.AudioClip));\n\n bgmList = FXCollections.observableArrayList(\n \"PaperClip-Blip\",\n \"PaperClip-BOUNCE\",\n \"PaperClip-DEMONS\",\n \"PaperClip-Distant\",\n \"PaperClip-Heeyha\",\n \"PaperClip-Jumping\",\n \"PaperClip-KINGSTON\",\n \"PaperClip-Lust\",\n \"PaperClip-Heat Up\",\n \"PaperClip-Bricks\",\n \"PaperClip-GOOD SHOW\",\n \"PaperClip-Last Time\",\n \"PETO-Okay\");\n\n bgmDuration.put(\"PaperClip-Blip\", 235);\n bgmDuration.put(\"PaperClip-BOUNCE\", 215);\n bgmDuration.put(\"PaperClip-DEMONS\", 196);\n bgmDuration.put(\"PaperClip-Distant\", 328);\n bgmDuration.put(\"PaperClip-Heeyha\", 129);\n bgmDuration.put(\"PaperClip-Jumping\", 124);\n bgmDuration.put(\"PaperClip-KINGSTON\", 240);\n bgmDuration.put(\"PaperClip-Lust\", 199);\n bgmDuration.put(\"PaperClip-Heat Up\", 171);\n bgmDuration.put(\"PaperClip-Bricks\", 184);\n bgmDuration.put(\"PaperClip-GOOD SHOW\", 339);\n bgmDuration.put(\"PaperClip-Last Time\", 250);\n bgmDuration.put(\"PETO-Okay\", 345);\n\n MusicVolume.addListener((observable, oldValue, newValue) -> {\n if (observable != null) {\n this.backgroundMusicPlayer.setVolume((double) observable.getValue() / 100);\n }\n });\n\n SFXVolume.addListener((observable, oldValue, newValue) -> {\n if (observable != null ) {\n for (AudioClip mediaPlayer : soundEffects.values()) {\n mediaPlayer.setVolume((double) observable.getValue() / 100);\n }\n }\n });\n }", "title": "" }, { "docid": "43eac8a0043027590ebc6fe7a7c54544", "score": "0.55982727", "text": "public Colisao () {\n\t\tDesgraca = Gdx.audio.newSound (Gdx.files.internal(\"Desgraca.mp3\"));\n\t\tExplosao = Gdx.audio.newSound (Gdx.files.internal(\"Explosão.mp3\"));\n\t}", "title": "" }, { "docid": "254bc3551c1f72add6fd0ae7cb7f2a33", "score": "0.5575287", "text": "public AlsaStream() {\n\n audioFormat = new AudioFormat(AudioFormat.LINEAR,\n 8000.0,\n 16,\n 1,\n AudioFormat.LITTLE_ENDIAN,\n AudioFormat.SIGNED,\n 16,\n Format.NOT_SPECIFIED,\n Format.byteArray);\n\n maxDataLength = 160;\n\n jni_alsa_init();\n thread = new Thread(this);\n }", "title": "" }, { "docid": "d435b939131eb8d4081ca81d16800315", "score": "0.557199", "text": "public static void Init() throws UnsupportedAudioFileException, IOException, LineUnavailableException {\n menuMusic = new BackgroundMusic(\"/sounds/menu_music.wav\", true);\n upgradeMusic = new BackgroundMusic(\"/sounds/upgrade_music.wav\", true);\n gameMusic = new BackgroundMusic(\"/sounds/game_music.wav\", true);\n winMusic = new BackgroundMusic(\"/sounds/win_music.wav\", false);\n lossMusic = new BackgroundMusic(\"/sounds/loss_music.wav\", false);\n }", "title": "" }, { "docid": "38a02f14e9834197c51f993c70919b66", "score": "0.5571664", "text": "@Localize(value=\"Sound\")\r\n\tpublic Sound()\r\n\t{\r\n\t\tsoundFile = null;\r\n\t\tsoundInput = null;\r\n\t\tsoundPlayer = null;\r\n\t\trecord = null;\r\n\t\tdisplays = new ArrayList<DisplaySound>();\r\n\t\tplaying = false;\r\n\t\trecording = false;\r\n\t\tgainControl = false;\r\n\t\tmuteControl = false;\r\n\t\tpausing = false;\r\n\t\tpauseByFreeze = false;\r\n\t\tcurrentPosition = 0;\r\n\t\tgain = 0;\r\n\t\tmute = false;\r\n\t\tsync = new Object();\r\n\t}", "title": "" }, { "docid": "d54ed868b75fdcef566bcf3706ec2fd7", "score": "0.5562256", "text": "AudioDataResource createAudioDataResource();", "title": "" }, { "docid": "24d01f633b1bf91d5ca53e51c33ee85f", "score": "0.5557866", "text": "public void soundPlayb(){\n AudioClip sound = new AudioClip(getClass().getResource(\"MediaSweng/Spinosaurus.wav\").toString());\n sound.play();\n }", "title": "" }, { "docid": "1ccf28ccf934d2c0796e4cf7f7e87d62", "score": "0.55566275", "text": "public String makeSound() {\n\t\treturn \"LaLaLa\";\n\t}", "title": "" }, { "docid": "85d2b0ba3e241d398e12a346e02212b3", "score": "0.5549005", "text": "private void getSound(){\n\n setVolumeControlStream(AUSGABE);\n\n try\n {\n AssetManager am = getAssets();\n mySound = sound.load(am.openFd(\"sound/Bullshit.mp3\"), 1);\n\n }\n catch (IOException e){\n\n }\n\n\n }", "title": "" }, { "docid": "c918da392be8568568e1f854a966a3b4", "score": "0.554321", "text": "int loadALData() {\n\t // Load wav data into a buffers.\n\tAL10.alGenBuffers(buffer);\n\t\n\tif(AL10.alGetError() != AL10.AL_NO_ERROR)\n\t return AL10.AL_FALSE;\n\t\n\tWaveData waveFile = WaveData.create(\"res/sfx/shoot.wav\");\n\tAL10.alBufferData(buffer.get(JUMP), waveFile.format, waveFile.data, waveFile.samplerate);\n\twaveFile.dispose();\n\t\n\twaveFile = WaveData.create(\"res/sfx/jump.wav\");\n\tAL10.alBufferData(buffer.get(SHOOT), waveFile.format, waveFile.data, waveFile.samplerate);\n\twaveFile.dispose();\n\t\n\t\n\t// Bind buffers into audio sources.\n\tAL10.alGenSources(source);\n\t\n\tif(AL10.alGetError() != AL10.AL_NO_ERROR)\n\t return AL10.AL_FALSE;\n\t\n\tAL10.alSourcei(source.get(JUMP), AL10.AL_BUFFER, buffer.get(JUMP) );\n\tAL10.alSourcef(source.get(JUMP), AL10.AL_PITCH, 1.0f );\n\tAL10.alSourcef(source.get(JUMP), AL10.AL_GAIN, 1.0f );\n\tAL10.alSource (source.get(JUMP), AL10.AL_POSITION, (FloatBuffer) sourcePos.position(JUMP*3));\n\tAL10.alSource (source.get(JUMP), AL10.AL_VELOCITY, (FloatBuffer) sourceVel.position(JUMP*3));\n\tAL10.alSourcei(source.get(JUMP), AL10.AL_LOOPING, AL10.AL_TRUE );\n\t\n\tAL10.alSourcei(source.get(SHOOT), AL10.AL_BUFFER, buffer.get(SHOOT) );\n\tAL10.alSourcef(source.get(SHOOT), AL10.AL_PITCH, 1.0f );\n\tAL10.alSourcef(source.get(SHOOT), AL10.AL_GAIN, 1.0f );\n\tAL10.alSource (source.get(SHOOT), AL10.AL_POSITION, (FloatBuffer) sourcePos.position(SHOOT*3));\n\tAL10.alSource (source.get(SHOOT), AL10.AL_VELOCITY, (FloatBuffer) sourceVel.position(SHOOT*3));\n\tAL10.alSourcei(source.get(SHOOT), AL10.AL_LOOPING, AL10.AL_FALSE );\n\n// Do another error check and return.\n if(AL10.alGetError() == AL10.AL_NO_ERROR)\n return AL10.AL_TRUE;\n\n return AL10.AL_FALSE;\n }", "title": "" }, { "docid": "2c7e8327080ab08d0c20d740930e7cb1", "score": "0.5523246", "text": "private void initPd() throws IOException {\n\t\t\t\n\t\t int sampleRate = AudioParameters.suggestSampleRate();\n\t\t try {\n\t\t\tPdAudio.initAudio(sampleRate, 0, 2, 8, true);\n\t\t\tLog.v(TAG, \"--> INIT AUDIO\");\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t \n\t\t // Start audio in the context of PdActivity (plugIt)\n\t\t PdAudio.startAudio(plugIt);\n\t\t try {\n\t\t\t\tloadPatch();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "bd3723aea05e6b3dc98acd6cb23e4584", "score": "0.5514481", "text": "public SoundEffectShootBullet() {\n setFile(audioPath);\n play();\n }", "title": "" }, { "docid": "8d9f77328774cc5850ae75965a315f46", "score": "0.5493084", "text": "private void playAudio(int audioID){\n if(hiraganaMediaPlayer == null) {\n hiraganaMediaPlayer = new MediaPlayer();\n }\n hiraganaMediaPlayer.reset();\n AssetFileDescriptor sound = mContext.getResources().openRawResourceFd(audioID);\n //Log.i(TAG, \"SOUND LENGTH: \" + sound.getDeclaredLength());\n try {\n hiraganaMediaPlayer.setDataSource(sound.getFileDescriptor(),sound.getStartOffset(),sound.getLength());\n hiraganaMediaPlayer.prepare();\n } catch (IOException e) {\n e.printStackTrace();\n }\n hiraganaMediaPlayer.start();\n }", "title": "" }, { "docid": "694c7537ae9ddc51527887196fe683ec", "score": "0.5493007", "text": "public static void convertOldLib() {\r\n\t\tAppConfiguration appConfig = new AppConfiguration();\r\n\t\tPath soundLibPath = appConfig.getSoundLibPath();\r\n\t\tPath soundBoardLibPath = appConfig.getSoundBoardLibPath();\r\n\t\tPath audioIcon = Paths.get(\"icons\", \"audio.png\");\r\n\t\tPath oldSounds = Paths.get(\"sounds\");\r\n\t\tFile[] categories = oldSounds.toFile().listFiles();\r\n\t\tfor (File file : categories) {\r\n\t\t\tType type = Type.AMBIENCE;\r\n\t\t\tif (file.isDirectory()) {\r\n\t\t\t\tString category = file.getName();\r\n\t\t\t\t// Create Category & subfolders\r\n\t\t\t\tPath ambPath = soundBoardLibPath.resolve(\"Default\").resolve(\"ambience\").resolve(category);\r\n\t\t\t\tPath effPath = soundBoardLibPath.resolve(\"Default\").resolve(\"effects\");\r\n\t\t\t\tlogger.debug(\"Found category: \" + category);\r\n\t\t\t\tFile[] soundFiles = file.listFiles(new FilenameFilter() {\r\n\t\t\t\t\tpublic boolean accept(File dir, String name) {\r\n\t\t\t\t\t\treturn name.endsWith(\".mp3\");\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tfor (File soundFile : soundFiles) {\r\n\t\t\t\t\tlogger.debug(\" Found sound: \" + soundFile.getName());\r\n\t\t\t\t\tString name = soundFile.getName();\r\n\t\t\t\t\tname = name.substring(0, name.lastIndexOf('.'));\r\n\t\t\t\t\tPath source = soundFile.toPath();\r\n\t\t\t\t\tPath destFolder = soundLibPath.resolve(name);\r\n\t\t\t\t\tPath destAudio = soundLibPath.resolve(name).resolve(soundFile.getName());\r\n\t\t\t\t\tPath destSBSound = ambPath.resolve(name + \".json\");\r\n\t\t\t\t\tPath destSound = soundLibPath.resolve(name + \".json\");\r\n\t\t\t\t\tPath desticon = soundLibPath.resolve(name).resolve(name + \".png\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tFiles.createDirectories(destFolder);\r\n\t\t\t\t\t\tFiles.createDirectories(ambPath);\r\n\t\t\t\t\t\tFiles.createDirectories(effPath);\r\n\t\t\t\t\t\tFiles.copy(source, destAudio, StandardCopyOption.REPLACE_EXISTING);\r\n\t\t\t\t\t\tFiles.copy(audioIcon, desticon, StandardCopyOption.REPLACE_EXISTING);\r\n\t\t\t\t\t\tSound sound = new Sound(name, destAudio.toString(), desticon.toString(), type, null);\r\n\t\t\t\t\t\tString jsonString = new GsonBuilder().setPrettyPrinting().create().toJson(sound);\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tbyte[] utf8JsonString = jsonString.getBytes(StandardCharsets.UTF_8);\r\n\t\t\t\t\t\t\tFiles.write(destSound, utf8JsonString, StandardOpenOption.CREATE,\r\n\t\t\t\t\t\t\t\t\tStandardOpenOption.TRUNCATE_EXISTING);\r\n\t\t\t\t\t\t\tFiles.write(destSBSound, utf8JsonString, StandardOpenOption.CREATE,\r\n\t\t\t\t\t\t\t\t\tStandardOpenOption.TRUNCATE_EXISTING);\r\n\t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\tlogger.error(\"Cannot copy sound file: \" + soundFile.getPath(), e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "cfecc849a2d188240b11e7cf9b9ba918", "score": "0.5488023", "text": "public void soundEffect(Clip clip)\n {\n if(clip == paddleBounce)\n {\n try\n {\n File file = new File(\"Paddle_bounce.wav\");\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(file);\n\n paddleBounce = AudioSystem.getClip();\n paddleBounce.open(audioIn);\n paddleBounce.start();\n }\n\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n\n else if(clip == brickBounce)\n {\n try\n {\n File file = new File(\"brick_bounce.wav\");\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(file);\n\n clip = AudioSystem.getClip();\n clip.open(audioIn);\n clip.start();\n }\n\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "86ce77ae2bf538fbd319e46a1489c640", "score": "0.54803157", "text": "public void playSound() {\n if (loaded) {\n Random r = new Random();\n Object[] values = soundIds.keySet().toArray();\n int randomValue = (int)values[r.nextInt(values.length)];\n\n soundPool.play(randomValue, volume, volume, 1, 0, 1f);\n }\n }", "title": "" }, { "docid": "3d435cca00eb417c9c9e08eb7b3573ff", "score": "0.54753435", "text": "private void startAlarm() {\n alarm = new Alarm(\"Lamp\", (1/bulletsPerSecond));\n alarm.addTarget(this);\n alarm.start();\n }", "title": "" }, { "docid": "abb928dd439da0ad6339c94c88d304fc", "score": "0.5454847", "text": "void setup() {\n for (int i = 0; i < 27; i++){\r\n string filename = \"c0\";\r\n if (i < 10){\r\n // generates mp3 filename for single digit index, e.g. \"c003.mp3\"\r\n filename += 0;\r\n filename += i;\r\n }\r\n else{\r\n // double digit index\r\n filename += i;\r\n }\r\n filename += .mp3;\r\n bells[i] = new SoundFile(this, filename)\r\n }\r\n\r\n // Swells\r\n swells[0] = new SoundFile(this, \"swell1.mp3\");\r\n swells[1] = new SoundFile(this, \"swell2.mp3\");\r\n swells[2] = new SoundFile(this, \"swell3.mp3\");\r\n\r\n // Ambient\r\n ambience = new SoundFile(this, \"ambience.mp3\");\r\n}", "title": "" }, { "docid": "e35230524c70562c40ecd97c42af9733", "score": "0.543565", "text": "protected String getLivingSound()\r\n {\r\n return \"sounds.stairs\";\r\n }", "title": "" }, { "docid": "027e44f168ba5e58d24b1aafdcb13c07", "score": "0.54102826", "text": "private void play()\r\n/* 37: */ {\r\n/* 38: */ try\r\n/* 39: */ {\r\n/* 40:29 */ AudioInputStream localAudioInputStream1 = AudioSystem.getAudioInputStream(this.sound);\r\n/* 41:30 */ AudioInputStream localAudioInputStream2 = null;\r\n/* 42:31 */ if (localAudioInputStream1 != null)\r\n/* 43: */ {\r\n/* 44:33 */ AudioFormat localAudioFormat1 = localAudioInputStream1.getFormat();\r\n/* 45:34 */ AudioFormat localAudioFormat2 = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, localAudioFormat1.getSampleRate(), 16, localAudioFormat1.getChannels(), localAudioFormat1.getChannels() * 2, localAudioFormat1.getSampleRate(), false);\r\n/* 46:35 */ localAudioInputStream2 = AudioSystem.getAudioInputStream(localAudioFormat2, localAudioInputStream1);\r\n/* 47:36 */ rawplay(localAudioFormat2, localAudioInputStream2);\r\n/* 48:37 */ localAudioInputStream1.close();\r\n/* 49: */ }\r\n/* 50: */ }\r\n/* 51: */ catch (Exception localException)\r\n/* 52: */ {\r\n/* 53:42 */ localException.printStackTrace();\r\n/* 54:43 */ isPlaying = false;\r\n/* 55: */ }\r\n/* 56: */ }", "title": "" }, { "docid": "021d1e84ca07bf7d7d803b738975d941", "score": "0.53916585", "text": "public static void main(String[] args) {\n\t\ttry {\n\t\t\tsoundFile = new File(\"Start Song.wav\");\n\t\t\tin = AudioSystem.getAudioInputStream(soundFile);\n\t\t\tclip = AudioSystem.getClip();\n\t\t\tclip.open(in);\n\t\t\tclip.start();\n\t\t\tclip.loop(Clip.LOOP_CONTINUOUSLY);\n\t\t\t// in = new FileInputStream(\"Start Song.wav\");\n\t\t\t// as = new AudioStream(in);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// AudioPlayer.player.start(as);\n\t\tstartMenu();\n\t}", "title": "" }, { "docid": "33408984208dd98f3351291e613333e2", "score": "0.5385942", "text": "public static void init() throws IOException, CustomUtils.AudioControllerException {\n\t\ttry {\n\n\t\t\t//createText(\"hello world\",0,0,10);\n\t\t\tdoorCooldown.start();\n\t\t\tcreatePlayer(200,200,100,250,1);\n\t\t\tpreload();\n\t\t\tloadMapFromPreload(\"lvl1\");\n\t\t\tloadDoors();\n\t\t\tcreateEnemy(100,200,1000,2,1000);\n\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "e9f6e0453a4c524e450f75b94fb350d5", "score": "0.53719616", "text": "@Override\n public void run() {\n try {\n soundPool = soundBuilder.build();\n\n /**\n * a callback when prepared -- we need to prevent playing before prepared\n */\n soundPool.setOnLoadCompleteListener(new SoundPool.OnLoadCompleteListener() {\n @Override\n public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {\n prepared = true;\n }\n });\n\n /**\n * the load() returns a stream id that can be used to play the sound.\n * I use the \"R.raw.xyz\" integer as key, because it's useless to invent new keys for\n * them\n */\n soundsMap.put(R.raw.collected, soundPool.load(appContext, R.raw.collected, 1));\n soundsMap.put(R.raw.birdcry, soundPool.load(appContext, R.raw.birdcry, 1));\n soundsMap.put(R.raw.pause, soundPool.load(appContext, R.raw.pause, 1));\n // soundsMap.put(R.raw.door_knock, soundPool.load(appContext, R.raw.door_knock, 1));\n // soundsMap.put(R.raw.door_lock, soundPool.load(appContext, R.raw.door_lock, 1));\n\n }catch(Exception ex) {\n Log.e(\"birdGame\" + getClass().getName(), \"soundfx failed\", ex);\n }\n }", "title": "" }, { "docid": "2cf40105064cb90fcc488e16ae4ffdfc", "score": "0.5370696", "text": "public SoundFile() {\n\t}", "title": "" }, { "docid": "995386e5854d0cd6bc58c991e736197e", "score": "0.5368368", "text": "void playRandomExplosionSound(){\n }", "title": "" }, { "docid": "d0e5f086a1c7128e38ad722aa2cab8a2", "score": "0.5364495", "text": "public abstract Clip toStandardAudio() throws LineUnavailableException, IOException, UnsupportedAudioFileException;", "title": "" }, { "docid": "5626c6dab9305e7627fc1797e79ab48a", "score": "0.5363842", "text": "public void registerSoundHandler() {}", "title": "" }, { "docid": "3690a76931a8da4335a5ec3d89690734", "score": "0.53494835", "text": "public Sound(int soundID){\n this.soundID = soundID;\n this.streamID = 0;\n }", "title": "" }, { "docid": "ac99e66a5c89cdd1b4fcb64aaf77faca", "score": "0.53473645", "text": "public void sound() { }", "title": "" }, { "docid": "8f6ecfda689bffe95cf6d17be802d366", "score": "0.53466237", "text": "private static void loadSoundLibrary() {\r\n\t\tPath soundLibRoot = configuration.getSoundLibPath();\r\n\t\tlogger.debug(\"SoundLib root: \" + soundLibRoot.toString());\r\n\t\tsoundLibrary.addAll(loadSounds(soundLibRoot));\r\n\t}", "title": "" }, { "docid": "0846c6c5c6697f791a88c19fabcec3aa", "score": "0.53383076", "text": "public void begin_sounds(){\n img_correct = MediaPlayer.create (this,R.raw.mario_bros_woo_hoo);\n img_change = MediaPlayer.create (this,R.raw.mario_bros_jump);\n back_sund= MediaPlayer.create (this,R.raw.angry_birds_videojuegos);\n end_sound = MediaPlayer.create (this,R.raw.win);\n\n bgsond = new GeometricActivity.playbackground(back_sund);\n if (PunteroIMG <=10)\n bgsond.execute();\n }", "title": "" }, { "docid": "0eb27030e135d7ed9ff61deb4c809c88", "score": "0.53295285", "text": "@Override\r\n \tprotected String getLivingSound ()\r\n \t{\r\n \t\treturn \"mob.wolf.growl\";\r\n \t}", "title": "" }, { "docid": "ea7d192a45fa2e97b9d5d331d9a6fb94", "score": "0.5313085", "text": "public void playSound() {\r\n s1.play();\r\n }", "title": "" }, { "docid": "c2966a9ae44712f78a61f4dc556d5582", "score": "0.530323", "text": "@Override\n\tpublic String makeSound() {\n\t\treturn \"Meow Meow\";\n\t}", "title": "" }, { "docid": "cd0dc9fd9f7ddfabf517be2ee50c9d7d", "score": "0.53028643", "text": "public TelaInicial() {\n initComponents();\n this.setTitle(\"Autorama\");\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/imagens/car.png\")));\n setResizable(false);\n try {\n File music = new File(getClass().getResource(\"/audio/TopGear.wav\").toURI());//new File(\"D:\\\\Ecomp - Uefs\\\\7º semestre\\\\Tecnologicas\\\\TEC502 - MI - Concorrência e Conectividade\\\\PBL 1 git\\\\ClienteAutorama\\\\src\\\\audio\\\\TopGear.wav\");\n \n if(music.exists()){\n AudioInputStream audio = AudioSystem.getAudioInputStream(music);\n Clip clip = AudioSystem.getClip();\n clip.open(audio);\n clip.start();\n clip.loop(clip.LOOP_CONTINUOUSLY);\n \n } else {\n System.out.println(\"Sem musica\");\n }\n \n } catch (Exception e) {\n System.out.println(e);\n }\n }", "title": "" }, { "docid": "53760a4ec7c950ab60e832156ec63905", "score": "0.5299936", "text": "public void addCodaSounds(String coda);", "title": "" }, { "docid": "2ff1feb7614e95705e0f18aeed48aa88", "score": "0.52986276", "text": "public void soundPlayd(){\n AudioClip sound = new AudioClip(getClass().getResource(\"MediaSweng/Suchomimus.wav\").toString());\n sound.play();\n }", "title": "" }, { "docid": "61b914c39a20509e732db8d624bcc705", "score": "0.52885485", "text": "public static Sound translateToSound(short[] a) throws UnsupportedAudioFileException {\n\n ShortBuffer buffer = ShortBuffer.wrap(a);\n return new Sound(buffer, toneAudioFormat);\n }", "title": "" }, { "docid": "046664a34eb0faff3931c8cfaf38c4fc", "score": "0.5286022", "text": "void initInstrument() {\n ins = new JSynUnitVoiceInstrument(8, BerwinBell.class.getName());\n ringModins= new JSynUnitVoiceInstrument(8, SimpleRingMod.class.getName());\n ringModins.addSignalSource(ins.getOutput());\n mixer.addInstrument(ins);\n mixer.addInstrument(ringModins);\n }", "title": "" }, { "docid": "43c625acf88b2c58211a6f6b931d9a00", "score": "0.52815324", "text": "public void play()\r\n {\r\n if(soundClip != null) {\r\n soundClip.start();\r\n }\r\n }", "title": "" }, { "docid": "19b72da6cac5715f8d044474bcfdd51c", "score": "0.52786744", "text": "SoundCatcherResult catchLoudSound();", "title": "" }, { "docid": "25448e763b6ec2f30d0ea196bc023b21", "score": "0.5273284", "text": "public void playHitSound(){\n soundPool.play(hitSound, 1.0f, 1.0f, 1, 0, 1.0f);\n }", "title": "" }, { "docid": "d5c0d0d0295e43451d1278149dc3ae22", "score": "0.5269508", "text": "public static AudioMixer create() {\n return new AudioMixerImpl();\n }", "title": "" }, { "docid": "51e1c9587d40e1d025fce15757311a15", "score": "0.52639943", "text": "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n this.setContentView(R.layout.main);\n this.that = this;\n this.rnd = new Random();\n this.sp = new SoundPool(16, AudioManager.STREAM_MUSIC, 0);\n this.sp.setOnLoadCompleteListener(this);\n this.runSeq = false;\n \n try {\n this.buildSnd();\n } catch (IllegalAccessException e) {\n Log.e(HNY.TAG, \"Oops: \" + e.getMessage());\n }\n \n this.buildNumberPickers();\n this.buildMainButton();\n }", "title": "" }, { "docid": "261e9d9c7c9436a57572ff5ba8c4273b", "score": "0.5259399", "text": "@Override\n\tpublic void create () {\n\t\tsong1=Gdx.audio.newMusic(Gdx.files.internal(\"dekhte-dekhte.mp3\"));\n\t\tsong2=Gdx.audio.newMusic(Gdx.files.internal(\"Dheeme-Dheeme2.mp3\"));\n\t\tsong1.play();\n\t\t//song2.play();\n\t\tsong1.setOnCompletionListener(new Music.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(Music music) {\n\t\t\t\tsong2.play();\n\t\t\t}\n\t\t});\n//\t\tTimer.schedule(new Timer.Task() {\n//\t\t\t@Override\n//\t\t\tpublic void run() {\n//\t\t\t\tif(song1.isPlaying())\n//\t\t\t\t\tif(song1.getPosition() >= 10f)\n//\t\t\t\t\t\tsong1.setVolume(song1.getVolume() - 0.2f);\n//\t\t\t}\n//\t\t},10,1,4);\n\n\t}", "title": "" }, { "docid": "38bbefc42a9dc3ae376737f8dbbc71d8", "score": "0.525587", "text": "public static void main(String[] args) {\n String audioFilePath = \"D:/nature.wav\";\n AudioPlayerUsedClip player = new AudioPlayerUsedClip();\n player.play(audioFilePath);\n }", "title": "" }, { "docid": "24f35d14e0b96b7941db74ee9b7d623b", "score": "0.5250175", "text": "public static Sound getInstance(String path) {\r\n\t\treturn new Sound(path);\r\n\t}", "title": "" }, { "docid": "408cc01ef4d5f5a5004a9f940820b81c", "score": "0.5249679", "text": "public static void activateSoundAbility(LivingEntity v, String path, int interval) {\r\n\t\tif (randomIndex(path + \".sounds\") == - 1) return; // cancel if no sound was found\r\n\t\tnew BukkitRunnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tif (v == null || v.isDead()) {\r\n\t\t\t\t\tcancel();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tv.getWorld().playSound(v.getLocation(), getData(path + \".sounds\", randomIndex(path + \".sounds\")), 3, 1);\r\n\t\t\t}\r\n\t\t}.runTaskTimer(main, 0, 20 * interval);\r\n\t}", "title": "" }, { "docid": "76be159fd694da13549f3f059b3ea89b", "score": "0.52406126", "text": "@SuppressWarnings(\"ConstantConditions\")\n private void createSounds(String path) {\n path = getActivity().getExternalCacheDir().getAbsolutePath() + path;\n File dir = new File(path);\n File[] files = dir.listFiles();\n if (files != null) {\n for (File f : files) sounds.add(new SoundFile(f.getName(), path));\n }\n }", "title": "" }, { "docid": "3a6bfe2077e99acfc6d5ae2268cd6df5", "score": "0.52389735", "text": "public void applySoundAtShipAttacker(AttackData ad)\r\n {\r\n //play sound\r\n switch (ad.atkType)\r\n {\r\n case GENERIC_MELEE:\r\n //entity sound\r\n if (this.rand.nextInt(3) == 0) this.playSound(SoundType.HIT);\r\n break;\r\n case GENERIC_LIGHT:\r\n //weapon sound\r\n this.playSound(ModSounds.SHIP_FIRELIGHT, ConfigHandler.volumeFire, host.getSoundHandler().getPitch() * 0.85F);\r\n //entity sound\r\n if (this.rand.nextInt(8) == 0) this.playSound(SoundType.HIT);\r\n break;\r\n case GENERIC_HEAVY_LAUNCH:\r\n //weapon sound\r\n this.playSound(ModSounds.SHIP_FIREHEAVY, ConfigHandler.volumeFire, host.getSoundHandler().getPitch() * 0.85F);\r\n //entity sound\r\n if (this.rand.nextInt(8) == 0) this.playSound(SoundType.HIT);\r\n break;\r\n case GENERIC_AIR_LIGHT_LAUNCH:\r\n case GENERIC_AIR_HEAVY_LAUNCH:\r\n //weapon sound\r\n this.playSound(ModSounds.SHIP_AIRCRAFT, ConfigHandler.volumeFire * 0.5F, host.getSoundHandler().getPitch() * 0.85F);\r\n //entity sound\r\n if (this.rand.nextInt(8) == 0) this.playSound(SoundType.HIT);\r\n break;\r\n case YAMATO_CANNON_LAUNCH:\r\n break;\r\n case AP91_FIST:\r\n break;\r\n default:\r\n break;\r\n }//end switch\r\n }", "title": "" }, { "docid": "e3b6ca650dcb877f4ed84fda06365ddb", "score": "0.52351457", "text": "protected SoundEvent getAmbientSound() {\n/* 304 */ if (this.level.isClientSide) {\n/* 305 */ return null;\n/* */ }\n/* 307 */ if (this.brain.hasMemoryValue(MemoryModuleType.ATTACK_TARGET)) {\n/* 308 */ return SoundEvents.ZOGLIN_ANGRY;\n/* */ }\n/* 310 */ return SoundEvents.ZOGLIN_AMBIENT;\n/* */ }", "title": "" }, { "docid": "902fc354862b54d8a1c713165bcc2c8c", "score": "0.5230821", "text": "private void mi_play(){\n AudioClip Sonido;\n Sonido = java.applet.Applet.newAudioClip(getClass().getResource(\"/imagenes/switch-3.wav\"));\n Sonido.play();\n }", "title": "" }, { "docid": "9617c758d2af1a092e3b3c5d569b1847", "score": "0.52292496", "text": "@Override\n\tpublic void playSound(Location arg0, Sound arg1, float arg2, float arg3)\n\t{\n\n\t}", "title": "" }, { "docid": "fcde322d87c97345f104a9731be78ca5", "score": "0.5213497", "text": "public SoundManager() {\r\n\t\tsoundCache = new LRUCache<GameSound, Sound>(10);\r\n\t\tsoundCache.setEntryRemovedListener(this);\r\n\t}", "title": "" }, { "docid": "5b77fddafa60c2edd4b4485bd3bf1a29", "score": "0.52130276", "text": "public void init(AL al) {\r\n\r\n\t\t\t// Create the single buffer, store it\r\n\t\t\tSoundData sounddata = new SoundData(al, sound, bitrate, channels, frequency);\r\n\t\t\tbuffers.add(sounddata);\r\n\t\t\tResourceManager.storeSoundData(name, sounddata);\r\n\r\n\t\t\t// Drop the sound bytes\r\n\t\t\tsound = null;\r\n\t\t}", "title": "" }, { "docid": "1fd04049e1e44dcf19c217e20d9abd5b", "score": "0.51943874", "text": "private void playSound(Context context, Uri alert) {\n mediaPlayer = new MediaPlayer();\r\n try {\r\n mediaPlayer.setDataSource(context, alert);\r\n final AudioManager audioManager = (AudioManager) context\r\n .getSystemService(Context.AUDIO_SERVICE);\r\n if (audioManager.getStreamVolume(AudioManager.STREAM_ALARM) != 0) {\r\n mediaPlayer.setAudioStreamType(AudioManager.STREAM_ALARM);\r\n mediaPlayer.setLooping(true);\r\n mediaPlayer.prepare();\r\n mediaPlayer.start();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }", "title": "" }, { "docid": "4a4a8cd7b42fdb4375dca2c9b24481df", "score": "0.51939076", "text": "public AudioReader()\n\t{\n\t\t// audioManager = (AudioManager) app.getSystemService(Context.AUDIO_SERVICE);\n\t}", "title": "" } ]
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "f5ac59e36621297db5b175435d00b702", "score": "0.0", "text": "public static final SearchEnterViewModel m89249a(FragmentActivity fragmentActivity) {\n return C27244a.m89252a(fragmentActivity);\n }", "title": "" } ]
[ { "docid": "acca3c01e51d08a4d60d67937f3fd23f", "score": "0.6243165", "text": "public interface C2525a {\n /* renamed from: a */\n void m12672a();\n }", "title": "" }, { "docid": "0b5ec8f53273b48128542de9a10a26fa", "score": "0.61942255", "text": "public interface C3536a {\n /* renamed from: a */\n void mo10667a();\n }", "title": "" }, { "docid": "585ead9f5453fc40900f2a5358fa77a8", "score": "0.60868853", "text": "interface C4058pa {\n /* renamed from: a */\n void mo15788a();\n}", "title": "" }, { "docid": "63821e766907398da28e3f4f310a97fe", "score": "0.60412484", "text": "public interface C2230a {\n /* renamed from: a */\n void mo7727a();\n }", "title": "" }, { "docid": "be838d9cabb22ce38fa4e96f1a956f29", "score": "0.6025528", "text": "public interface C0115a {\n /* renamed from: a */\n void mo1195a();\n }", "title": "" }, { "docid": "856c1250a7f14ab0e3db59aaff52f212", "score": "0.60244155", "text": "public interface C2511a {\n /* renamed from: a */\n void mo5636a();\n\n /* renamed from: b */\n void mo5637b();\n }", "title": "" }, { "docid": "35832b2e4debec78710333596fa1b4f7", "score": "0.60230565", "text": "public interface C40451a {\n /* renamed from: a */\n void mo100487a(String str);\n}", "title": "" }, { "docid": "a6d0de30b8895fbf81e58161f4a4d14c", "score": "0.60182583", "text": "public interface C3735dc {\n /* renamed from: a */\n void mo15228a(zzaej zzaej);\n}", "title": "" }, { "docid": "46a4dfec40b55ced671706d0a692319f", "score": "0.60075194", "text": "public void swap(String name,int a) {\n\t\t\n\t\tfor(Contact c:fav) {\n\t\t\tif(c.getName()==name) {\n\t\t\t\tfav.remove(fav.indexOf(c));\n\t\t\t\tfav.add(a-1,c);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "15296a433f81b5d1a7e359dc6859f269", "score": "0.5960855", "text": "public interface C4113a {\n /* renamed from: a */\n void mo23807a(String str);\n }", "title": "" }, { "docid": "1106341a3941130791d5b8d01ae76747", "score": "0.5935612", "text": "interface C4666i {\n /* renamed from: a */\n void mo29984a();\n\n /* renamed from: b */\n void mo29985b();\n }", "title": "" }, { "docid": "e687c75445d1f71f74f7ac69f5bd8532", "score": "0.590116", "text": "public interface C39426b {\n /* renamed from: a */\n void mo98248a(View view, int i);\n }", "title": "" }, { "docid": "95950d92590d02880ee5815b115ad89d", "score": "0.588871", "text": "public interface C1643a {\n /* renamed from: a */\n void mo7032a(int i, String str, String str2);\n}", "title": "" }, { "docid": "6f4a81b45482ab918e2d6fc490698e0d", "score": "0.584751", "text": "public interface C23261b {\n /* renamed from: a */\n void mo60531a();\n }", "title": "" }, { "docid": "e952d9e0f50b9d14058cd79957e9d02b", "score": "0.58469903", "text": "public interface C28323a {\n /* renamed from: a */\n void mo46234a(int i, Object obj, int i2, int i3);\n\n /* renamed from: b */\n void mo46235b(int i, Object obj, int i2, int i3);\n }", "title": "" }, { "docid": "e2fedc4a16d8631225c7cc483b6a90ac", "score": "0.58288705", "text": "public interface C3881c {\n /* renamed from: a */\n String mo17158a(int i);\n}", "title": "" }, { "docid": "d4ba263831660db302e7bbd5d4647845", "score": "0.5828824", "text": "interface C0112a {\n /* renamed from: a */\n void mo152a();\n\n /* renamed from: b */\n void mo153b();\n\n /* renamed from: c */\n void mo154c();\n }", "title": "" }, { "docid": "a248c59562d6882413cb83ba5e2bffbf", "score": "0.5824171", "text": "public interface C1742a {\n /* renamed from: a */\n void mo4470a();\n\n /* renamed from: a */\n void mo4471a(int i, int i2);\n\n /* renamed from: a */\n void mo4472a(String str);\n\n /* renamed from: b */\n void mo4473b();\n }", "title": "" }, { "docid": "7b6b0184353198a2f95344b9411a4729", "score": "0.5797348", "text": "public interface C5056b {\n /* renamed from: a */\n void mo25941a(C5055a aVar);\n }", "title": "" }, { "docid": "386c2ab8dae24302a644c55d18954dde", "score": "0.57962054", "text": "public interface C19874a {\n /* renamed from: a */\n boolean mo35111a(C45718aa c45718aa);\n }", "title": "" }, { "docid": "7ab046151fc5d4b7f9220cc8eb1855d1", "score": "0.5787654", "text": "void mo38529a(C11703Aa aa);", "title": "" }, { "docid": "50620dd932f07a0a8d6b81ee2c6b3ea1", "score": "0.57818675", "text": "interface C5466z2<V> {\n /* renamed from: a */\n V mo21140a();\n}", "title": "" }, { "docid": "1330e7d2ee626d929b08dab3727a43a1", "score": "0.57641345", "text": "public interface AbstractC0282bj {\n /* renamed from: a */\n void mo3766a();\n}", "title": "" }, { "docid": "20b69d837fb16a375dc3b5a737abe82a", "score": "0.5761468", "text": "public interface C2338a<T> {\n /* renamed from: a */\n T mo14918a();\n}", "title": "" }, { "docid": "5b500e4e6db20255dbb4e1af3bb4e72f", "score": "0.5755528", "text": "public interface C3941a {\n /* renamed from: a */\n void mo23415a(AdTemplate adTemplate, long j);\n }", "title": "" }, { "docid": "2d2026c05b0ec37eececa7b01131e435", "score": "0.5754078", "text": "public interface C46351e {\n /* renamed from: a */\n ArrayList<C46347b> mo115225a(View view);\n}", "title": "" }, { "docid": "3f8c3cfe33841dc01494785529a629f2", "score": "0.5747508", "text": "interface C1803az {\n /* renamed from: a */\n int mo33958a(int i, String str);\n}", "title": "" }, { "docid": "e867561fda5cc500a058510a39ba8f15", "score": "0.57428056", "text": "public interface C11069d {\n /* renamed from: a */\n void mo23704a(int i);\n\n /* renamed from: b */\n void mo23705b(int i);\n }", "title": "" }, { "docid": "248475519ac89505c15aeccbbb180696", "score": "0.5741614", "text": "public interface C11723c {\n /* renamed from: a */\n void mo37869a();\n\n /* renamed from: a */\n void mo37870a(int i);\n }", "title": "" }, { "docid": "a6f7f3e137fbc69788513059eebe9a28", "score": "0.5723017", "text": "public interface C26815b {\n /* renamed from: a */\n String mo60429a();\n\n /* renamed from: a */\n void mo60430a(String str);\n}", "title": "" }, { "docid": "8537e4e965f9579b6e70168d130cd60a", "score": "0.5717591", "text": "public interface C0524a {\n /* renamed from: a */\n void mo1705a();\n\n /* renamed from: a */\n void mo1706a(int i, int i2, int i3, int i4, int i5);\n\n /* renamed from: a */\n void mo1707a(Bundle bundle);\n\n /* renamed from: a */\n void mo1708a(CharSequence charSequence);\n\n /* renamed from: a */\n void mo1709a(Object obj);\n\n /* renamed from: a */\n void mo1710a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo1711a(List<?> list);\n\n /* renamed from: b */\n void mo1712b(Object obj);\n }", "title": "" }, { "docid": "803f2e86635b9ba73463b701ee1b5b36", "score": "0.571522", "text": "public interface asv {\n /* renamed from: a */\n SparseArray mo1287a();\n\n /* renamed from: a */\n asx mo1288a(int i, asu asu);\n}", "title": "" }, { "docid": "9388b63b69427aa2b19bb823efd3b02a", "score": "0.5712916", "text": "interface C1222d {\n /* renamed from: a */\n C1242a mo1037a();\n }", "title": "" }, { "docid": "db1e2e46af1787bcb3509d6e40ab7637", "score": "0.5686822", "text": "public interface C2519c {\n /* renamed from: a */\n void mo3424a(C0955v c0955v);\n}", "title": "" }, { "docid": "0b7313545fa6c191f7bf842b4feb317f", "score": "0.56722224", "text": "public interface cly {\n /* renamed from: a */\n void mo3084a(long j);\n}", "title": "" }, { "docid": "773034b76c1d5307f21220d665f42a18", "score": "0.5658867", "text": "private interface C0459e {\n /* renamed from: a */\n void mo2600a(C0001a aVar) throws RemoteException;\n }", "title": "" }, { "docid": "2184fa79b279d1504025671bb32f2dbb", "score": "0.56509876", "text": "public interface C45227a {\n /* renamed from: a */\n float mo108045a();\n }", "title": "" }, { "docid": "cb8ebf0f03c5e2c4715f98ae71969daf", "score": "0.5636307", "text": "@Override\r\n\tpublic void A(int a) {\n\t\t\r\n\t}", "title": "" }, { "docid": "75fdcbbe546a0f3b8d44282a3aee07b2", "score": "0.56303275", "text": "public interface C19662d {\n /* renamed from: a */\n void mo52271a(int i);\n\n /* renamed from: a */\n void mo52272a(int i, int i2, String str);\n}", "title": "" }, { "docid": "278e87e6e3b78b2d9fb5fbc57f3187b7", "score": "0.56277955", "text": "public interface C0854o {\n /* renamed from: a */\n void mo3138a(View view);\n}", "title": "" }, { "docid": "28e82aee122c2d04c6f87b064667ae0a", "score": "0.56214017", "text": "interface C6836m<S> {\n /* renamed from: a */\n void mo27184a(S s);\n}", "title": "" }, { "docid": "674f981c5231eda0957dad553a29b94e", "score": "0.56181526", "text": "public interface C2725b {\n /* renamed from: a */\n void m12629a(int i, int i2);\n}", "title": "" }, { "docid": "9ab4d08fc27588456d113c6e79cda878", "score": "0.5598354", "text": "public interface C39465j {\n /* renamed from: a */\n void mo98281a(Effect effect);\n}", "title": "" }, { "docid": "67600f5328e88aaacba14a8407251a88", "score": "0.5552916", "text": "public interface C0452f<T> {\n /* renamed from: a */\n T m661a(Type type);\n}", "title": "" }, { "docid": "d216d81042cb8c522c973975d861cb00", "score": "0.55497885", "text": "public interface C35738c {\n /* renamed from: a */\n boolean mo71141a();\n\n /* renamed from: b */\n boolean mo71142b();\n}", "title": "" }, { "docid": "8ef0c989a611d3cf96314750e9e10d57", "score": "0.55494535", "text": "public interface C5326d {\n /* renamed from: a */\n void m18239a();\n\n /* renamed from: b */\n void m18240b();\n}", "title": "" }, { "docid": "1d0cdb3a666e1ef6ff5ddf96416cadf1", "score": "0.5548803", "text": "public interface AbstractC24540a {\n /* renamed from: a */\n void mo107411a(String str);\n }", "title": "" }, { "docid": "dd2292c97bac486f891cdafcbcec7a42", "score": "0.5539691", "text": "public interface AbstractC9004i {\n /* renamed from: a */\n void mo55742a();\n}", "title": "" }, { "docid": "e558d6af22c0a10921a0dda8947d939a", "score": "0.5537539", "text": "public interface C10796d {\n /* renamed from: a */\n void mo25853a(View view);\n\n /* renamed from: a */\n void mo25854a(View view, float f);\n\n /* renamed from: b */\n void mo25855b(View view);\n\n /* renamed from: c */\n void mo25856c(View view);\n }", "title": "" }, { "docid": "0b5842606bc76a730177b785b8d17ada", "score": "0.5532106", "text": "public interface C2088e {\n /* renamed from: a */\n void m5208a(C2080a c2080a);\n}", "title": "" }, { "docid": "004380dd1a6127ec208e34c194b1ff15", "score": "0.5531238", "text": "public interface C1755a extends C1752a {\n /* renamed from: a */\n void mo3235a(float f);\n}", "title": "" }, { "docid": "37fb30692ca25befec5abeb72f9294de", "score": "0.553069", "text": "public interface C33444h {\n /* renamed from: a */\n boolean mo85641a();\n\n /* renamed from: b */\n boolean mo85642b();\n}", "title": "" }, { "docid": "8ecadf428978637d2c4f4e8df82a47d2", "score": "0.5525173", "text": "public interface C2986bm {\n /* renamed from: a */\n C3026ch mo38085a();\n}", "title": "" }, { "docid": "d34fc8498c4ea691a8d8edb5198fbdb6", "score": "0.5524372", "text": "public A(double a) {\r\n this.b = (int) a;\r\n }", "title": "" }, { "docid": "db7d1c2ac7534ca8f4403898d657dd5d", "score": "0.5514181", "text": "public interface C2402o extends C2410t {\n /* renamed from: a */\n List<?> mo9238a();\n\n /* renamed from: a */\n void mo9239a(C2371d dVar);\n\n /* renamed from: b */\n C2402o mo9243b();\n\n /* renamed from: c */\n C2371d mo9246c(int i);\n}", "title": "" }, { "docid": "6af0d25cd0b743cc1b8fb7ad2e76c8d3", "score": "0.5480659", "text": "public interface C2163c {\n /* renamed from: a */\n void mo9098a(Throwable th);\n}", "title": "" }, { "docid": "86837d0d646c6199b66d8de0b82a1533", "score": "0.54773533", "text": "public interface C0139b {\n /* renamed from: a */\n PointF mo887a(int i);\n }", "title": "" }, { "docid": "86b18b7abf2e4bc7e9130e420fc108f8", "score": "0.5476925", "text": "protected void aW()\r\n/* 46: */ {\r\n/* 47: 90 */ super.aW();\r\n/* 48: 91 */ a(afs.e).a(6.0D);\r\n/* 49: 92 */ a(afs.d).a(0.5D);\r\n/* 50: 93 */ a(afs.b).a(16.0D);\r\n/* 51: 94 */ a(afs.a).a(30.0D);\r\n/* 52: */ }", "title": "" }, { "docid": "4c053c5f529afce30533e7f5f2429102", "score": "0.54756224", "text": "public interface C0126q {\n /* renamed from: a */\n void mo1251a(View view);\n\n /* renamed from: b */\n void mo1252b(View view);\n }", "title": "" }, { "docid": "dcbe75414d0f606538367932ff0c1457", "score": "0.5475052", "text": "public interface C11707Ba {\n /* renamed from: a */\n String mo38528a(C12027ya yaVar);\n\n /* renamed from: a */\n void mo38529a(C11703Aa aa);\n\n /* renamed from: c */\n String mo38530c();\n\n /* renamed from: d */\n C11788a mo38531d();\n\n /* renamed from: e */\n String mo38532e();\n}", "title": "" }, { "docid": "f9565f970b2f5ebc4ff06a5f755b6167", "score": "0.54711026", "text": "public Aresta(Aresta old) {\n f = old.f;\n i = old.i;\n }", "title": "" }, { "docid": "4aef7703b3ba56398c24cdad2a616792", "score": "0.5450677", "text": "public void a(PacketDataSerializer paramPacketDataSerializer) {\n/* 27 */ this.a = a(paramPacketDataSerializer);\n/* 28 */ this.b = a(paramPacketDataSerializer);\n/* */ }", "title": "" }, { "docid": "a1941a990bb2f806b8f0cb6d0ac072a7", "score": "0.5444419", "text": "interface C3771oe {\n /* renamed from: a */\n void mo40743a(String str, Location location, C3774oh ohVar);\n}", "title": "" }, { "docid": "9572be1b63c08695ec570934d47c72db", "score": "0.54425186", "text": "@Override\n\tpublic void aa() {\n\t\t\n\t}", "title": "" }, { "docid": "93e50ed663d9e719f40afc16fccb00a6", "score": "0.54386723", "text": "interface C1112ao {\n /* renamed from: a */\n C1111an mo2876a(String str);\n\n /* renamed from: b */\n C1111an mo2877b(String str);\n}", "title": "" }, { "docid": "9a2772ac9eae82983c8357af8abef82b", "score": "0.54336077", "text": "public interface C19166a {\n /* renamed from: a */\n boolean mo50880a(C19178e eVar);\n}", "title": "" }, { "docid": "8f6006e57b2bc2ec57742365d820bc0d", "score": "0.5417023", "text": "public interface C40933d {\n /* renamed from: a */\n void mo100716a();\n\n /* renamed from: b */\n void mo100717b();\n\n /* renamed from: c */\n void mo100718c();\n}", "title": "" }, { "docid": "5618112186f8c19ea23bb18a521bbe65", "score": "0.5402748", "text": "interface C8719s {\n /* renamed from: a */\n C5560k<C8677a> mo32142a();\n}", "title": "" }, { "docid": "4736658cfdd857ae184c53215727d5fa", "score": "0.5397022", "text": "interface C1329b {\n /* renamed from: a */\n void mo4999a(C1277x xVar);\n\n /* renamed from: a */\n void mo5000a(C1277x xVar, C1251c cVar, C1251c cVar2);\n\n /* renamed from: b */\n void mo5001b(C1277x xVar, C1251c cVar, C1251c cVar2);\n\n /* renamed from: c */\n void mo5002c(C1277x xVar, C1251c cVar, C1251c cVar2);\n }", "title": "" }, { "docid": "fca8dd7659846670edde05da953e6a82", "score": "0.5395524", "text": "public interface C44434a<T extends C1207m> {\n /* renamed from: a */\n void mo9736a(int i, int i2, String str, T t);\n }", "title": "" }, { "docid": "fd4eef901c1bed2896b18251ee3df655", "score": "0.53762347", "text": "void mo27184a(S s);", "title": "" }, { "docid": "a812be9737a1626cf7e3c5832ab85f02", "score": "0.5374079", "text": "public interface C3598a {\n /* renamed from: a */\n void mo8232a();\n\n /* renamed from: a */\n void mo8233a(int i);\n\n /* renamed from: a */\n void mo8234a(int i, int i2);\n\n /* renamed from: a */\n void mo8235a(C1846e eVar);\n\n /* renamed from: a */\n void mo8236a(C1905h hVar);\n\n /* renamed from: a */\n void mo8237a(C1906i iVar);\n\n /* renamed from: a */\n void mo8238a(String str);\n\n /* renamed from: a */\n void mo8239a(String str, String str2);\n\n /* renamed from: b */\n void mo8240b();\n\n /* renamed from: b */\n void mo8241b(int i);\n\n /* renamed from: b */\n void mo8242b(String str);\n\n /* renamed from: c */\n void mo8243c();\n\n /* renamed from: c */\n void mo8244c(int i);\n\n /* renamed from: c */\n void mo8245c(String str);\n\n /* renamed from: d */\n void mo8246d();\n\n /* renamed from: d */\n void mo8247d(String str);\n\n /* renamed from: e */\n void mo8248e();\n\n /* renamed from: e */\n void mo8249e(String str);\n }", "title": "" }, { "docid": "79b872936090f134eeaa4962c9976629", "score": "0.5374043", "text": "public interface C25370a {\n /* renamed from: a */\n void mo65927a();\n\n /* renamed from: a */\n void mo65928a(long j);\n\n /* renamed from: b */\n void mo65929b();\n\n /* renamed from: c */\n void mo65930c();\n }", "title": "" }, { "docid": "71500820b65a07756b5f05388aff1f7c", "score": "0.53737515", "text": "public A(int a) {\r\n this.b = a;\r\n }", "title": "" }, { "docid": "8b4dd3c16b18ac2f4980ae3d0bca3d05", "score": "0.5369955", "text": "public static void test1Helper1(A a) {\n\t\tA t2 = a;\n\t\tSystem.out.println(\"t2 : \" + t2);\n\t}", "title": "" }, { "docid": "8b93a149000099a848b5f7f74e321330", "score": "0.53652817", "text": "public void sub(int a)\n {\n sub(a, a);\n }", "title": "" }, { "docid": "a7a871178c82f8bec0660f3cb00e0a65", "score": "0.53532374", "text": "public void a(aea ☃) {\r\n/* 614 */ super.a(☃);\r\n/* */ \r\n/* 616 */ if (☃.k() instanceof amt) {\r\n/* 617 */ amt amt = (amt)☃.k();\r\n/* 618 */ if (amt.l() && amt.dC()) {\r\n/* 619 */ amt.dD();\r\n/* 620 */ ate ate = dB();\r\n/* 621 */ if (!ate.a()) {\r\n/* 622 */ a_(ate);\r\n/* */ }\r\n/* */ } \r\n/* */ }", "title": "" }, { "docid": "e1dda8f7b1373e79173403d246b85d5b", "score": "0.5351849", "text": "public interface C0372a {\n void a(a aVar);\n }", "title": "" }, { "docid": "dfb2f2254feaa5918f33893c9c15c1c2", "score": "0.53508663", "text": "public static void rotasjon(char[] a) {\r\n throw new NotImplementedException();\r\n }", "title": "" }, { "docid": "635dc33893a311c178b7b376d760d93c", "score": "0.53480893", "text": "interface C1220a<R> {\n /* renamed from: a */\n void mo1042a(DecodeJob<?> decodeJob);\n\n /* renamed from: a */\n void mo1043a(GlideException glideException);\n\n /* renamed from: a */\n void mo1044a(C1277s<R> c1277s, DataSource dataSource);\n }", "title": "" }, { "docid": "0a4e60e8527826ced6cbe9490a6efa7b", "score": "0.53414273", "text": "private Attribut convertToAttribut(Attribute a) {\n\t\tAttribut c = new Attribut();\n\n\t\tc.setAttributtypID(a.getAttributtyp());\n\t\tc.setConfigItemID(a.getCiRecordId());\n\t\tc.setWert(a.getWert());\n\t\tc.setId(a.getId());\n\n\t\treturn c;\n\t}", "title": "" }, { "docid": "94c2892031b79094f7fbabf649534138", "score": "0.5338086", "text": "public interface C3574jp {\n /* renamed from: a */\n void mo40309a();\n\n /* renamed from: a */\n void mo40310a(long j, boolean z);\n}", "title": "" }, { "docid": "9f62747c33eab893ca611ce833b42777", "score": "0.5332744", "text": "public interface C7194d {\n /* renamed from: a */\n void mo18677a();\n\n /* renamed from: a */\n void mo18678a(Throwable th);\n}", "title": "" }, { "docid": "fc6049b49c8f3c77c87c6aa118fd1d41", "score": "0.53310484", "text": "public interface C0881al extends IInterface {\n /* renamed from: a */\n C0719a mo9820a();\n\n /* renamed from: b */\n int mo9821b();\n}", "title": "" }, { "docid": "201a5c8fa9f36c77fcc5f8b963544717", "score": "0.5327073", "text": "public interface C2851k9 {\n /* renamed from: a */\n boolean mo13458a();\n\n /* renamed from: b */\n boolean mo13459b();\n}", "title": "" }, { "docid": "c595659a676392f244571ede068c7123", "score": "0.53239244", "text": "public interface C4892f {\n /* renamed from: a */\n void mo5159a();\n\n /* renamed from: a */\n void mo5160a(int i);\n\n /* renamed from: a */\n void mo5161a(long j);\n\n /* renamed from: a */\n void mo5162a(long j, int i);\n\n /* renamed from: b */\n void mo5163b(long j, int i);\n}", "title": "" }, { "docid": "178205c79d0b049536489a3e36cbaf1e", "score": "0.5321505", "text": "public abstract java.lang.Object a(int i, int i2);", "title": "" }, { "docid": "6a4c73a893df2d56c5764e820c8841a5", "score": "0.5320586", "text": "public void cambiarforma(int a) {\r\n\t\tforma=sprites.get(a-1);\r\n\t}", "title": "" }, { "docid": "a4b548b5deadb8418218136b7bdec6a3", "score": "0.5319926", "text": "public interface C8792a {\n /* renamed from: a */\n void mo14130a(View view, C8791d dVar);\n }", "title": "" }, { "docid": "3074086b91303dc720f5b997828643f8", "score": "0.53173935", "text": "public interface C5467a {\n /* renamed from: a */\n C5468e mo6777a(C5621w c5621w);\n }", "title": "" }, { "docid": "8955e80bbeb7d4f27473dfc627868858", "score": "0.5315562", "text": "public interface C2185a {\n /* renamed from: a */\n void mo9396a();\n\n /* renamed from: a */\n void mo9397a(int i);\n\n /* renamed from: a */\n void mo9398a(int i, int i2);\n\n /* renamed from: a */\n void mo9399a(MediaPlayer.OnCompletionListener onCompletionListener);\n\n /* renamed from: a */\n void mo9400a(MediaPlayer.OnErrorListener onErrorListener);\n\n /* renamed from: a */\n void mo9401a(MediaPlayer.OnPreparedListener onPreparedListener);\n\n /* renamed from: a */\n void mo9402a(Uri uri);\n\n /* renamed from: b */\n int mo9404b();\n\n /* renamed from: c */\n boolean mo9405c();\n\n /* renamed from: d */\n int mo9406d();\n\n /* renamed from: e */\n void mo9407e();\n }", "title": "" }, { "docid": "0f155c0538ec9004ec634fcdb8515372", "score": "0.53066164", "text": "public interface C1680ab extends C1798g {\n /* renamed from: a */\n C2560h mo7159a();\n\n /* renamed from: e */\n C1821y mo7283e();\n\n /* renamed from: f */\n C2355b mo7284f();\n}", "title": "" }, { "docid": "4d9d7858783c110907c78a0ec76985fb", "score": "0.53052807", "text": "public static int A2I(int a){\n\t\tassert(a>0);\r\n\t\treturn a-1;\r\n\t}", "title": "" }, { "docid": "432eb5672048a7e1b88ffb2af7f20527", "score": "0.53044593", "text": "public interface C8771a {\n /* renamed from: a */\n boolean mo22913a(int i, int i2, int i3, int i4, int i5);\n }", "title": "" }, { "docid": "4af4b92f11e1358580169a70f6463507", "score": "0.5304304", "text": "public interface C3562a {\n /* renamed from: a */\n boolean mo8122a(C3563c c3563c);\n }", "title": "" }, { "docid": "7372016b97c2273f7a81fc15fc48bd38", "score": "0.5304229", "text": "Name replaceNames(Name[] param1ArrayOfName1, Name[] param1ArrayOfName2, int param1Int1, int param1Int2) {\n/* 1471 */ if (param1Int1 >= param1Int2) return this;\n/* */ \n/* 1473 */ Object[] arrayOfObject = this.arguments;\n/* 1474 */ boolean bool = false;\n/* */ \n/* 1476 */ for (byte b = 0; b < arrayOfObject.length; b++) {\n/* 1477 */ if (arrayOfObject[b] instanceof Name) {\n/* 1478 */ Name name = (Name)arrayOfObject[b];\n/* 1479 */ short s = name.index;\n/* */ \n/* 1481 */ if (s < 0 || s >= param1ArrayOfName2.length || name != param1ArrayOfName2[s])\n/* */ {\n/* */ \n/* 1484 */ for (int i = param1Int1; i < param1Int2; i++) {\n/* 1485 */ if (name == param1ArrayOfName1[i]) {\n/* 1486 */ if (name == param1ArrayOfName2[i])\n/* */ break; \n/* 1488 */ if (!bool) {\n/* 1489 */ bool = true;\n/* 1490 */ arrayOfObject = (Object[])arrayOfObject.clone();\n/* */ } \n/* 1492 */ arrayOfObject[b] = param1ArrayOfName2[i];\n/* */ break;\n/* */ } \n/* */ } } \n/* */ } \n/* */ } \n/* 1498 */ if (!bool) return this; \n/* 1499 */ return new Name(this.function, arrayOfObject);\n/* */ }", "title": "" }, { "docid": "b738833848675d8b28d1b62df23f9e57", "score": "0.5299797", "text": "public String aL()\r\n/* 875: */ {\r\n/* 876:925 */ return this.b;\r\n/* 877: */ }", "title": "" }, { "docid": "08130ef24cde3b0be72759717d88cebe", "score": "0.529606", "text": "public interface C1018a {\n /* renamed from: a */\n CharSequence mo3977a(Cursor cursor);\n }", "title": "" }, { "docid": "467ff5da00d3d0f921eb8accbcae922c", "score": "0.5290617", "text": "public interface C3144a<K, V> {\n /* renamed from: a */\n void mo9982a(K k);\n\n /* renamed from: a */\n void mo9983a(K k, V v);\n\n /* renamed from: b */\n V mo9984b(K k);\n}", "title": "" }, { "docid": "165f326eae7d032988efa520a64272c1", "score": "0.528281", "text": "public interface C24178d {\n /* renamed from: a */\n void mo62517a(C24179e eVar);\n\n /* renamed from: a */\n void mo62518a(String str, String str2, String str3, String str4);\n\n boolean ap_();\n\n /* renamed from: c */\n void mo62519c();\n}", "title": "" }, { "docid": "8bbe5b72abf874fb19647a852efbe81b", "score": "0.52809894", "text": "public interface C2976a {\n /* renamed from: a */\n C2977p mo3678a(C2903e c2903e);\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "af816d664183b37368f583fa3a6d9039", "score": "0.0", "text": "@Override\r\n\tpublic void onShowCustomView(View view, CustomViewCallback callback) {\n\t\tp(\" onShowCustomView :\");\r\n\t\tsuper.onShowCustomView(view, callback);\r\n\t}", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "941cb2826e3c700358fcaba402e6bb01", "score": "0.66775143", "text": "@Override\r\n\tpublic void hissetmek() {\n\r\n\t}", "title": "" }, { "docid": "63918b2e510c9040bbddcac00095b41a", "score": "0.6605982", "text": "private void recuperation() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "6a98c5d2724fce37914819c5694da3c3", "score": "0.6509783", "text": "@Override\r\n\tpublic void anular() {\n\r\n\t}", "title": "" }, { "docid": "dae8b602ea36995333bfb23acf8fc88d", "score": "0.6496443", "text": "@Override\n\tpublic void respire() {\n\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.6481211", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "f099266a753a2faacd6b8dfa57904378", "score": "0.64321727", "text": "@Override\r\n\tpublic void courrir() {\n\t}", "title": "" }, { "docid": "69ade76a69c0f6c07e66b5d0e5136eb3", "score": "0.6425563", "text": "@Override\r\n\tpublic void grabar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2f383f280f298416bf45e72c374ecfa", "score": "0.64127725", "text": "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1068dc3e7725abba37b41c9a52dee06b", "score": "0.6386121", "text": "@Override\r\n\tpublic void tatmak() {\n\r\n\t}", "title": "" }, { "docid": "6141981a3ecff744fc5ac85a76ccce98", "score": "0.63590497", "text": "@Override\r\n\tpublic void avlan() {\n\t\t\r\n\t}", "title": "" }, { "docid": "98fb55d46118273a6e8a6d23841c620d", "score": "0.6327681", "text": "@Override\n\tpublic void eati() {\n\t\t\n\t}", "title": "" }, { "docid": "0792d032a803e20f3b87637fd91001d5", "score": "0.62811846", "text": "@Override\n\tpublic void getSugary() {\n\n\t}", "title": "" }, { "docid": "177192b7240b496ba5aefdfed60037c9", "score": "0.6276059", "text": "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "b7cead8eab6faf887c06d3b10c67267c", "score": "0.620242", "text": "@Override\n\t\t\tprotected void readyRun() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "a8ee8a5581ce765ec4ab398c0459e014", "score": "0.61750215", "text": "@Override\r\n\tpublic void koklama() {\n\r\n\t}", "title": "" }, { "docid": "0e69410f7365f8e3379273ee4419fb49", "score": "0.6149904", "text": "@Override\r\n\tprotected void init() \r\n\t{\n\t\t\r\n\t}", "title": "" }, { "docid": "d65d6c17fb978c0d576ada2c03cd49fe", "score": "0.61387193", "text": "@Override\n\tpublic void apagar() {\n\t\t\n\t}", "title": "" }, { "docid": "8bae22ac805011d799a49bd7b5316540", "score": "0.612467", "text": "@Override\n public int describeContents() {\n // Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "8c5b7f2508d01c106c784ecca7153f46", "score": "0.6119395", "text": "@Override\n\tvoid comer() {\n\t\t\n\t}", "title": "" }, { "docid": "7bc643d9ac7542f10430da7f200395d4", "score": "0.610188", "text": "@Override\n\tpublic void fiyat() {\n\t\t\n\t}", "title": "" }, { "docid": "7dadb1a7e45c020b2193294044375a9d", "score": "0.60646844", "text": "@Override\r\n \tpublic void init() {\n \t\t\r\n \t}", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "b7f027eb6ff62218a28c15c608504db7", "score": "0.6055265", "text": "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "title": "" }, { "docid": "ae645a2585d37e320a8854cbd4c60db8", "score": "0.60353535", "text": "@Override\n\tpublic void afficher() {\n\n\t}", "title": "" }, { "docid": "9dd1bbd8c949b94d0e93b83bfc68c88a", "score": "0.6021345", "text": "@Override\n\tpublic void aeronoticalinfo() {\n\t\t\n\t}", "title": "" }, { "docid": "2762ca3c2d0df2e43c2974f74b6f5794", "score": "0.6013198", "text": "public void mo23507LF() {\n }", "title": "" }, { "docid": "a6c2db17f79f35f8fc3b8e99eee9ab48", "score": "0.60124713", "text": "@Override\r\n\tprotected void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "e8c159f9ce46ed87e18031b3ec3ef04c", "score": "0.5983872", "text": "@Override\n\t\t\tprotected void realiceElCaso() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "119b459aa82980ed18ed9f73e4c0c1f6", "score": "0.5970375", "text": "public void mo8248e() {\n }", "title": "" }, { "docid": "c7fe9cc2a6c42140d48d92c4796a998c", "score": "0.5924626", "text": "@Override\r\n\t\t\t\t\t\tpublic void visitEnd() {\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "092f51e9c99cd4188e1aae23e1830dfd", "score": "0.58991617", "text": "protected void func_70626_be() {}", "title": "" }, { "docid": "ab499170bffb402933a50d63a97e69dd", "score": "0.5896488", "text": "@Override\r\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "77d32d2a2070d9c3117ff146ac04f114", "score": "0.5891585", "text": "@Override\r\n\tpublic void climaChuvoso() {\n\r\n\t}", "title": "" }, { "docid": "4790ff4cb67532ccdfaae8968e73fbc3", "score": "0.58832747", "text": "@Override\n protected void initData() {\n\n\n }", "title": "" }, { "docid": "023182f0f855d46c66b41a6d83583efa", "score": "0.5871911", "text": "@Override\r\n\tpublic void singen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8d96d27dfdf5b1a8cc8b8a7627c83bc1", "score": "0.5869012", "text": "@Override\n public void afficher() {\n\n }", "title": "" }, { "docid": "298aa14afe5846b172f76bcf90564013", "score": "0.58663046", "text": "@Override\n\tprotected void initAfterData() {\n\t\t\n\t}", "title": "" }, { "docid": "e065a728f99482f0172c0250b07109a9", "score": "0.58587575", "text": "public void MIENTRAS() {\r\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.5857751", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "6c15d2233a095a738527f0099df0e328", "score": "0.58534765", "text": "@Override\n\tprotected void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7da3b15ef60da758589933b21890a100", "score": "0.5835782", "text": "@Override\n\t\t\tpublic void buscar() {\n\n\t\t\t}", "title": "" }, { "docid": "d56c498b25d1ea77dc09f49efcf80f6c", "score": "0.58347356", "text": "@Override\r\n\tpublic void aumentaFatorAcidade() {\n\r\n\t}", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.5810359", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "ac3fa8f374744c1d8419fb42b093eb87", "score": "0.58098364", "text": "@Override\n public void ATOM() {\n\n }", "title": "" }, { "docid": "9d2f44c3ebe1fb8de1ac4ae677e2d851", "score": "0.5806823", "text": "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "17bf5dfb3822657f7beb964bbcaf351d", "score": "0.58010787", "text": "private void getdata() {\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c1cba83b623b4186565c3383ace251b9", "score": "0.5798524", "text": "@Override\n public void RES() {\n\n }", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "04320a5131c4ec5a83b61f5170f3303b", "score": "0.578828", "text": "private void refreash() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "96aa62cb7c02dc761fce03adeea3bae6", "score": "0.5768868", "text": "public void consumidor() {\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "f76cff0faf8f5cac2bb5c9fa073b3900", "score": "0.5732497", "text": "private static void ispisiRemi() {\n\t\t\n\t}", "title": "" }, { "docid": "0da844a8d21284fc890b9866b17625b3", "score": "0.5729389", "text": "public void auton() {\r\n\r\n\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "3b42107e523d1f2c0adecfee5c69fe91", "score": "0.5726736", "text": "@Override\r\n\t\t\tpublic String toString() {\n\t\t\t\treturn null;\r\n\t\t\t}", "title": "" }, { "docid": "e0989255fd1af22841693489e1afa33b", "score": "0.57214063", "text": "public void mo24349a() {\n }", "title": "" }, { "docid": "b860b78be8e10589ee5bd58e2ab7be8e", "score": "0.57196456", "text": "@Override\r\n\tpublic void autonomous() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.5715831", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "08ff281f85800b58e0eb77195be25bfc", "score": "0.5708199", "text": "public void finito() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "24b649f4fd4e2e8f4e195b19c09f4c8b", "score": "0.56936413", "text": "@Override\n public void FUNMAYORQ() {\n\n }", "title": "" }, { "docid": "b3c7aad07c4af0cfec14c4b0f0f289ef", "score": "0.5692504", "text": "@Override\n\tpublic void arb() {\n\n\t}", "title": "" }, { "docid": "8657ef720f12b2480d4363be4e46781e", "score": "0.5691313", "text": "protected boolean method_4310() {\r\n return true;\r\n }", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" } ]
6afa1f0dec8be0ddd6a9da8c689753c8
Assert one of the following indications : Operating environment (operating system, language, and/or middleware) is correctly identified. The target software accepts connections via the network.
[ { "docid": "cf21914c1becfe6bd8ced099e057871a", "score": "0.0", "text": "@Then(\"Assert the success of Fingerprinting of the operating system\")\npublic void assfingerprintingoftheoperatingsystem(){\n}", "title": "" } ]
[ { "docid": "59d3a3408a77c69c8765ac07e9f9bfeb", "score": "0.5591315", "text": "public void \n validateOs()\n throws IllegalConfigException\n {\n String name = getOsName();\n if((name == null) || !name.equals(\"Linux\"))\n throw new IllegalConfigException\n\t(\"The Pipeline Configuration Tool must be run on a Linux host!\");\n }", "title": "" }, { "docid": "e7949e59747eca0f2a070d59b3aed538", "score": "0.5533033", "text": "@Test\n\tpublic void testEnvironment() {\n\t\tString message = \"Unable to find input and output directories, \"\n\t\t\t\t+ \"please check your project setup!\";\n\t\tAssert.assertTrue(message, isEnvironmentSetup());\n\t}", "title": "" }, { "docid": "9ba8ad6c804a1a3bad2fd5b94f957c37", "score": "0.54515064", "text": "@Test\n void testGeoIPISPLocalhost() {\n createTester(new GeoIPISPDissector(ISP_TEST_MMDB))\n .withInput(\"127.0.0.1\")\n .expectAbsentString(\"ASN:asn.number\")\n .expectAbsentLong(\"ASN:asn.number\")\n .expectAbsentString(\"STRING:asn.organization\")\n .expectAbsentString(\"STRING:isp.name\")\n .expectAbsentString(\"STRING:isp.organization\")\n .checkExpectations();\n }", "title": "" }, { "docid": "45f0a18bf2722cb3fd5e44b575c8ae46", "score": "0.541679", "text": "@Test\n // test case 37\n public void testRemoteAccessPresent() throws Exception {\n assertTrue(\"testRemoteAccessPresent\",\n \t\t!wabot.checkBox(Messages.remoteCheckText).isChecked());\n wabot.sleep(1000);\n Utility.closeProjPropertyPage(Messages.rProjName);\n }", "title": "" }, { "docid": "1ab4e358a643730d58dad923edbb987b", "score": "0.5362648", "text": "@Test\n public void verifystatusAsOnRoute()\tthrows Exception{\n\t\tSoftAssert sa = new SoftAssert();\n\t\tAppElement lblStatusKA=new AppElement(OrderExecutionWidgetId.getWidgetId(\"frmOrderExecutionKA_lblStatusKA\"));;\n \tsa.assertEquals(lblStatusKA.getText(),\"ON ROUTE\");\n \tsa.assertAll();\n }", "title": "" }, { "docid": "b80808fc0c3466151d7657a26d4d1819", "score": "0.5333495", "text": "@Before\n public void setUp() throws Exception {\n String osname = System.getProperty(\"os.name\");\n if (osname != null && osname.toLowerCase().contains(\"win\")) {\n isWindows = true;\n }\n }", "title": "" }, { "docid": "9ea6f64456aebd5a54ea5f77cbda8879", "score": "0.5304515", "text": "private int operatingSystemNameDetection(String line) {\r\n\t\tString osName = UserAgent.parseUserAgentString(line).getOperatingSystem().getName();\r\n\t\treturn osName.contains(\"Windows XP\") ? OperatingSystemName.WINDOWS_XP.getCode() : OperatingSystemName.OTHER.getCode();\r\n\t}", "title": "" }, { "docid": "c7f1812c65cf52971f035a22cbebce06", "score": "0.5223438", "text": "@Test\n public void testHardwareAdditions() {\n Adversary adversary = new Adversary(\"adversary\");\n ExternalNetwork externalNetwork = new ExternalNetwork(\"Network\");\n AdversaryHardwareTool adversaryHardwareTool = new AdversaryHardwareTool(\"attackTool\");\n\n // Section 2: Asset connections and attacker creation\n\n //adversaryHardwareTool.addExternalNetwork(externalNetwork);\n adversary.addAdversaryHardwareTool(adversaryHardwareTool);\n externalNetwork.addAdversaryHardwareTool(adversaryHardwareTool);\n \n\n Attacker attacker = new Attacker();\n attacker.addAttackPoint(adversary.useHardwareTool);\n attacker.attack();\n // Section 3: Assertions\n\n \n externalNetwork.wirelessAccessAndPassiveNetworkTapping.assertCompromisedInstantaneously();\n\n }", "title": "" }, { "docid": "5c22bad834a5574374a3fa9f401a75e3", "score": "0.52072155", "text": "public static void notWindows() {\n if (System.getProperty(\"os.name\").toLowerCase().startsWith(\"win\")) {\n throw new SkipException(\"This test requires a non-windows os.\");\n }\n }", "title": "" }, { "docid": "dd5e3c79d5916750db1a59d0ae10ddbd", "score": "0.51970637", "text": "@Test\n public void hostNetworkTest() {\n // TODO: test hostNetwork\n }", "title": "" }, { "docid": "ec3f83ed92b8ccbf817ae1d0b6bdabb1", "score": "0.519306", "text": "public static void check() {\n if (Build.CPU_ABI.equals(\"armeabi-v7a\") && !hasNeon()) {\n Log.e(TAG, \"Unsupported CPU architecture\");\n throw new RuntimeException(\"Application does not support this device\");\n }\n }", "title": "" }, { "docid": "a622e3392003a1475bbcaecf80c471fd", "score": "0.51900136", "text": "@Test\n\tpublic void testLabComputer() {\n\t\ttry {\n\t\t\t// output system information for debugging purposes\n\t\t\tSystem.out.println(\"Host Address: \" +\n\t\t\t\t\tInetAddress.getLocalHost().getHostAddress());\n\n\t\t\tSystem.out.println(\" Host Name: \" +\n\t\t\t\t\tInetAddress.getLocalHost().getCanonicalHostName());\n\n\t\t\tSystem.out.println(\" Base Path: \" + getBaseDirectory());\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tSystem.out.println(\"Unable to determine host information.\");\n\t\t}\n\n\t\tString errorMessage = \"You must be testing from the CS lab \" +\n\t\t\t\t\"computers to pass this test.\";\n\t\tAssert.assertTrue(errorMessage, isLabComputer());\n\t}", "title": "" }, { "docid": "15d8057b1fd100f41e43b98110df3c58", "score": "0.51891875", "text": "public void verifyUserIsOnComputerPage() {\n Assert.assertEquals(getTextFromElement(_welcomeMsgComputerPage),ecpectWelcomeMsgComputerPage,\"User Is Not Computer Page\");\n\n }", "title": "" }, { "docid": "b61ee00c261ab3829eb8e76b9d98295d", "score": "0.51853305", "text": "@Test\n\tvoid testConnectionError(FxRobot robot) {\n\t\trobot.clickOn(\"##0ChangeButton\");\n\t\twait(robot);\n\t\tverifyThat(\"##0ManualLabel\", hasText(\"Mode: MANU\"));\n\t\t\n\t\t// Navigate elevator 0 to disabled floor\n\t\trobot.clickOn(\"##0Button3\");\n\t\twait(robot);\n\t\tverifyThat(\"##0PositionLabel\", hasText(\"Position: 0 feet\"));\n\t\tverifyThat(\"##0FloorLabel\", hasText(\"Current Floor: 0\"));\t\n\t\t\n\t\t// Put elevator 0 into automatic mode\n\t\trobot.clickOn(\"##0ChangeButton\");\n\t\twait(robot);\n\t\tverifyThat(\"##0ManualLabel\", hasText(\"Mode: AUTO\"));\n\t}", "title": "" }, { "docid": "adba67dc1dbfa31ec3fb52a5440751b3", "score": "0.5175179", "text": "private boolean checkPlatformSupport() {\n String platform =\n activity.getConfiguration().getPropertyString(SystemConfiguration.PLATFORM_OS);\n\n if (platform.equals(PLATFORM_LINUX))\n return true;\n\n if (platform.equals(PLATFORM_OSX))\n return false;\n\n return false;\n }", "title": "" }, { "docid": "6db9234301b79a7a1e1b503f8005097f", "score": "0.51673454", "text": "boolean hasOs();", "title": "" }, { "docid": "09af29a9e2a6d2a4eed90ed07a9e1a10", "score": "0.5151367", "text": "private static void verifyEnvironment() throws BootstrapException {\n \n\t\tString property = System.getProperty(\"java.specification.version\");\n\t\tdouble minJvmVersion = 1.5; \n ConsoleUtils.messageOut(\"java.specification.version: \" + property);\n \n String jmvVersion = parseString(property);\n if (Double.parseDouble(jmvVersion) < minJvmVersion ) { \n \tthrow new BootstrapException(ResourceBundleUtils.getString(\"bootstrap.main.error.jvmVersion\"));\n\t\t}\n\t}", "title": "" }, { "docid": "bab3241595a656841f1dded708e9f08f", "score": "0.5148038", "text": "public boolean eval() throws BuildException {\n return isOs(family, name, arch, version);\n }", "title": "" }, { "docid": "26856c4a029b0418f8ec779f0f3bab20", "score": "0.5122506", "text": "public static void assumeNetworking()\n {\n try\n {\n Enumeration<NetworkInterface> ifaces = NetworkInterface.getNetworkInterfaces();\n assumeThat( ifaces, is( notNullValue() ) );\n assumeTrue( ifaces.hasMoreElements() );\n }\n catch( SocketException ex )\n {\n assumeNoException( ex );\n }\n }", "title": "" }, { "docid": "64a20503a79bd35e8de307f6da2d7fcf", "score": "0.5109549", "text": "boolean hasPlatform();", "title": "" }, { "docid": "64a20503a79bd35e8de307f6da2d7fcf", "score": "0.5109549", "text": "boolean hasPlatform();", "title": "" }, { "docid": "64a20503a79bd35e8de307f6da2d7fcf", "score": "0.5109549", "text": "boolean hasPlatform();", "title": "" }, { "docid": "fee8a898a11851683096c45bc1ed6a39", "score": "0.5097666", "text": "boolean hasOperatingSystemVersionConstant();", "title": "" }, { "docid": "47a2b8c8d886ea69e803cd545987f0b4", "score": "0.50887597", "text": "public void assertInternetConnection() throws BusinessException {\n Context applicationContext = AppApplication.getAppContext();\n if (applicationContext == null) {\n String errorMessage = \"Received invalid application context\";\n Log.e(TAG, errorMessage);\n throw new BusinessException(errorMessage, BusinessErrorCode.GENERIC_ERROR);\n }\n\n // Test Internet connection before consult WS\n if (!NetworkUtils.isNetworkAvailable(applicationContext)) {\n String errorMessage = \"Internet connection unavailable\";\n Log.e(TAG, errorMessage);\n throw new BusinessException(errorMessage, BusinessErrorCode.INTERNET_CONNECTION_UNAVAILABLE);\n }\n }", "title": "" }, { "docid": "875e99bb33499a89a6bc8d77a110a9ee", "score": "0.5087426", "text": "public static int os() {\n String name = Properties.OS_NAME.toLowerCase(Locale.UK);\n\n if (name.contains(\"win\")) {\n return Vendors.MSFT;\n } else if (name.contains(\"nix\") || name.contains(\"nux\") || name.contains(\"aix\")) {\n return Vendors.RHAT;\n } else if (name.contains(\"sunos\")) {\n return Vendors.SUNW;\n } else if (name.contains(\"mac\")) {\n return Vendors.AAPL;\n } else {\n String msg = String.format(\"Cannot determine operating system for %s\", name);\n System.err.println(msg);\n throw new IllegalStateException(msg);\n }\n }", "title": "" }, { "docid": "0dd51248e7d24bfb3bad8f44c8cf3d46", "score": "0.5085237", "text": "public void test() {\n if (provisioning == null) {\n throw new IllegalStateException(\"Service port not found.\");\n }\n\n String res = provisioning.checkAlive();\n\n if (!SUCCESS.equals(res)) {\n throw new IllegalStateException(\"Invalid response.\");\n }\n }", "title": "" }, { "docid": "7f43087fc38e85923e4891288deed33b", "score": "0.5078705", "text": "@Test\n public void testUserAgent() {\n String regex = \"^Smartcar/DEVELOPMENT \\\\((\\\\w+); (\\\\w+)\\\\) Java v(\\\\d+\\\\.\\\\d+\\\\.\\\\d_\\\\d+) .*\";\n Assert.assertTrue(ApiClient.USER_AGENT.matches(regex));\n }", "title": "" }, { "docid": "1766eb981c9790e1c8515b5a4d6ace9a", "score": "0.507447", "text": "public void verifyEnvironment()\n {\n String[] envVars = {\"AZURE_KEY\", \"AZURE_ACCOUNT\", \"AZURE_CONTAINER\", \"DRUID_CLOUD_PATH\"};\n for (String val : envVars) {\n String envValue = System.getenv(val);\n if (envValue == null) {\n LOG.error(\"%s was not set\", val);\n LOG.error(\"All of %s MUST be set in the environment\", Arrays.toString(envVars));\n }\n }\n }", "title": "" }, { "docid": "4f9b0fd4359e96a6677c8965b0547d9a", "score": "0.5053821", "text": "public void testEndpointEnabledEndpointNotSetTypeSetPortNotSetHostSet() throws Exception {\n if (U.isWindows())\n check(true, false, true, true, false);\n }", "title": "" }, { "docid": "07a8de234d051c92244bed58b68382db", "score": "0.5044534", "text": "private void askSystemForOS() {\n\t\tString operativeSystem = System.getProperty(\"os.name\");\r\n\t\tif (operativeSystem.contains(\"Windows\")) {\r\n\t\t\tthis.os = OS.WINDOWS;\r\n\t\t} else {\r\n\t\t\tthis.os = OS.LINUX;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0a7e6736ba3b11f442e43836011227b4", "score": "0.504029", "text": "@Test\n public void hardwareTest() {\n // TODO: test hardware\n }", "title": "" }, { "docid": "ca252e03edf0a48c4253ce15d0247060", "score": "0.50336576", "text": "public void testEndpointEnabledEndpointSetTypeNotSetPortNotSetHostSet() throws Exception {\n if (U.isWindows())\n check(true, true, false, true, false);\n }", "title": "" }, { "docid": "3928b4eaca8e0b4c7be27f3c82449085", "score": "0.50229293", "text": "String getTargetPlatform();", "title": "" }, { "docid": "b2c823ad2d0828d6c6aacedb00987344", "score": "0.5022494", "text": "@Test \r\n\tpublic void GetValidTerminologyAndOntologyServer()\r\n\t{\r\n\t\t\r\n\t\tSourceIdentificationProvider locationService = new SourceIdentificationProvider();\r\n\t\ttry\r\n\t\t{\r\n\t\t\tIRDI_type irdi = new IRDI_type(\"112-5\", true);\r\n\t\t\tsource_identification identificationList = locationService.get_source_identification(irdi);\r\n\t\t\tassertEquals( \"112-5\", identificationList.getRA_ref());\r\n\t\t\tassertEquals(\"http://localhost:7779/axis2/services/OntologyService\", identificationList.getOntology_server_URI());\r\n\t\t\tassertEquals(\"http://localhost:7779/axis2/services/TerminologyService\", identificationList.getTerminology_server_URI());\r\n\t\t} \r\n\t\tcatch (implementation_exception e)\r\n\t\t{\r\n\t\t\tfail(e.getMessage());\r\n\t\t} \r\n\t\tcatch (invalid_identifier_exception e)\r\n\t\t{\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "19137f0f48adf5f04cf85a2879632594", "score": "0.50213534", "text": "public boolean isTargetCodeValid(String terminologyId) throws Exception;", "title": "" }, { "docid": "82f42d31d2b5a5dd438311c0f4997a3d", "score": "0.5019274", "text": "public void checkNetworks(){\n\t if(operatorName.contains(\"Tele2\") || operatorName.contains(\"ele\") || operatorName.contains(\"ELE\")){\n\t \tcode = \"*111\" + encodedHash;\n\t \t//contact network provider\n\t \tcallUSSD(code);\n\t }\n\t //Telia\n\t if(operatorName.contains(\"Telia\") || operatorName.contains(\"TELIA\") || operatorName.contains(\"elia\")){\n\t \tcode = \"*120\" + encodedHash;\n\t \t//contact network provider\n\t \tcallUSSD(code);\n\t }\n\t \n\t else{\n\t \t//if network is not supported\t\n\t \tdiyUssd();\n\t }\n\t }", "title": "" }, { "docid": "2d5756f9fa011004b02e47ac4db54eee", "score": "0.50095594", "text": "@Test\n\tpublic void testAnotherOwnerConnect() throws ManagementException {\n\t\tMap<String, Parameter> parameters = new HashMap<String, Parameter>();\n\t\tfinal String project = \"project\";\n\t\tparameters.put(project, new Identifier(\"vhproject\"));\n\t\t// No stakeholders with a default name\n\t\tparameters.put(STAKEHOLDERS, new ParameterList(new Identifier(\"TU\")));\n\t\t// any slot so not specified.\n\t\tenv.init(parameters);\n\t}", "title": "" }, { "docid": "e845c067a138b4d767d4882a57aca612", "score": "0.50089884", "text": "boolean hasNeedsPiiTosAcceptance();", "title": "" }, { "docid": "c1f1cf7a62d4b802d132af9ca235baf6", "score": "0.4988426", "text": "public static void checkEnvVars() {\n requiredEnvVars.forEach((varName) -> {\n assertWithMessage(\n String.format(\"Environment variable '%s' must be set to perform these tests.\", varName))\n .that(System.getenv(varName)).isNotEmpty();\n });\n }", "title": "" }, { "docid": "b430672f9d580fd768db4962ea58f1a6", "score": "0.49820405", "text": "private void test() {\n \tToast toast = Toast.makeText(context, \"Unspecified test failure\", Toast.LENGTH_SHORT);\n \ttry {\n\t\t\tDAVNetwork net = new DAVNetwork(getCurrentProfile());\n\t\t\tif( net.testRemote() ) {\n\t\t\t\ttoast = Toast.makeText(context, \"Test succeeded\", Toast.LENGTH_SHORT);\n\t\t\t} else {\n\t\t\t\ttoast = Toast.makeText(context, \"Test failed\", Toast.LENGTH_SHORT);\n\t\t\t}\n\t\t} catch (ConfigurationException ce) {\n\t\t\ttoast = Toast.makeText(context, ce.toString(), Toast.LENGTH_SHORT);\n\t\t} finally {\n\t\t\ttoast.show();\n\t\t}\n }", "title": "" }, { "docid": "fa3a71bd8e0e90565fbf1b6b9dda7a24", "score": "0.49805543", "text": "@Test \r\n\tpublic void GetValidTerminology()\r\n\t{\r\n\t\t\r\n\t\tSourceIdentificationProvider locationService = new SourceIdentificationProvider();\r\n\t\t\r\n\t\ttry\r\n\t\t{\t\r\n\t\t\tIRDI_type irdi = new IRDI_type(\"0173-1\", true);\r\n\t\t\tsource_identification identificationList = locationService.get_source_identification(irdi);\r\n\t\t\tassertEquals( \"0173-1\", identificationList.getRA_ref());\r\n\t\t\tassertEquals(\"http://localhost:7779/axis2/services/TerminologyService\", identificationList.getTerminology_server_URI());\r\n\t\t} \r\n\t\tcatch (implementation_exception e)\r\n\t\t{\r\n\t\t\tfail(e.getMessage());\r\n\t\t} \r\n\t\tcatch (invalid_identifier_exception e)\r\n\t\t{\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0876c36dca4550f0c70f3c373dd5e8a3", "score": "0.49771243", "text": "@org.junit.Test\n public void testLocalHostOrDomainIs() {\n assertTrue(helpers.localHostOrDomainIs(\"www.netscape.com\", \"www.netscape.com\"));\n assertTrue(helpers.localHostOrDomainIs(\"www\", \"www.netscape.com\"));\n assertFalse(helpers.localHostOrDomainIs(\"www.netscape.com\", \"www.netscape.com2\"));\n assertFalse(helpers.localHostOrDomainIs(\"www1.netscape.com\", \"www2.netscape.com\"));\n assertFalse(helpers.localHostOrDomainIs(\"www1\", \"www2.netscape.com\"));\n }", "title": "" }, { "docid": "486e6c26ff282f849820512a2b339035", "score": "0.49597874", "text": "public void testCorrectKey()\n throws Exception\n {\n wagon.setKnownHostsProvider( okHostsProvider );\n\n wagon.connect( source );\n\n assertTrue( true );\n }", "title": "" }, { "docid": "05bfc97b6e1efd1f2bab707514e337b7", "score": "0.49588507", "text": "protected static boolean isSupported() {\n if (osName.contains(OS_NAME_LINUX)) {\n return true;\n }\n if (osName.contains(OS_NAME_WINDOWS)) {\n if (osVersion.contains(OS_VERSION_WINDOWS)) {\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "1fdc19028db7b350e48e68441b207a18", "score": "0.49586102", "text": "private boolean checkEnvironment() {\n log.info(\"PressGang REST: \" + PRESSGANG_SERVER);\n log.info(\"Zanata Server: \" + ZANATA_SERVER);\n log.info(\"Zanata Username: \" + ZANATA_USERNAME);\n log.info(\"Zanata Token: \" + ZANATA_TOKEN);\n log.info(\"Zanata Project: \" + ZANATA_PROJECT);\n log.info(\"Zanata Project Version: \" + ZANATA_VERSION);\n\n // Some sanity checking\n if (PRESSGANG_SERVER == null || PRESSGANG_SERVER.trim().isEmpty() || ZANATA_SERVER == null || ZANATA_SERVER.trim().isEmpty() ||\n ZANATA_TOKEN == null || ZANATA_TOKEN.trim().isEmpty() || ZANATA_USERNAME == null || ZANATA_USERNAME.trim().isEmpty() ||\n ZANATA_PROJECT == null || ZANATA_PROJECT.trim().isEmpty() || ZANATA_VERSION == null || ZANATA_VERSION.trim().isEmpty()) {\n log.error(\n \"The \" + CommonConstants.PRESS_GANG_REST_SERVER_SYSTEM_PROPERTY + \", \" + ZanataConstants.ZANATA_SERVER_PROPERTY + \", \" +\n ZanataConstants.ZANATA_TOKEN_PROPERTY + \", \" + ZanataConstants.ZANATA_USERNAME_PROPERTY + \", \" +\n ZanataConstants.ZANATA_SERVER_PROPERTY + \" and \" + ZanataConstants.ZANATA_PROJECT_VERSION_PROPERTY + \" \" +\n \"system properties need to be defined.\");\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "4bfb2421b73b172704ac625ebbb11cff", "score": "0.4958389", "text": "public void testEndpointEnabledEndpointNotSetTypeSetPortSetHostSet() throws Exception {\n if (U.isWindows())\n check(true, false, true, true, true);\n }", "title": "" }, { "docid": "021fb033e6fa8a29e540b66025adc86e", "score": "0.49567208", "text": "public void testIsSetupRequest() throws Exception {\n\n Element element;\n\n xmlUtils = new XmlUtils(AP_NS_PREFIX, AP_NS_URI, AP_XML_VERSION);\n document = parse(clientxml);\n\n assertFalse(ParseUtils.isSetupRequest(xmlUtils, document, COMMAND));\n ParseUtils.addSetupRequest(xmlUtils, document, COMMAND);\n assertTrue(ParseUtils.isSetupRequest(xmlUtils, document, COMMAND));\n }", "title": "" }, { "docid": "0b878ea8f1d210440635688e7b0f51ba", "score": "0.49522436", "text": "@Test\n public void registryWindows_ControlProcessAndPerformVariousTasks_NothingResultsOnlyAsserts() {\n WindowsUtils.tryToKillByName(\"firefox\");\n\n // Use WindowsUtil to read the exact name of the operating system on which the test is running and print this information in our test logs.\n String os = WindowsUtils.readStringRegistryValue(\"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\ProductName\");\n System.out.println(os);\n }", "title": "" }, { "docid": "dfa8c6e56085da84079adc5dc7174c35", "score": "0.49507743", "text": "@Test\n void handlingActivateNotOwnedProductionPowers() throws DepotOutOfBoundsException, IncompatibleResourceTypeException {\n\n List<Player> players = new ArrayList<>();\n\n players.add(spy(new Player(\"Piero\")));\n players.add(spy(new Player(\"Andrea\")));\n players.add(spy(new Player(\"Domenico\")));\n MultiPlayerMode game = spy(new MultiPlayerMode(players));\n game.nextState(GameState.GAMEFLOW);\n GameController gameController = new GameController(game);\n\n players.get(0).getPersonalBoard().getWarehouse().addResourcesToDepot(2, ResourceType.coin, 2);\n game.setTurn(spy(new Turn(game,players.get(0))));\n TurnController turnController = new TurnController(game, players.get(0));\n\n ActivateProductionMessage message = new ActivateProductionMessage();\n ActiveProductions productions = new ActiveProductions();\n productions.setBasic(true);\n message.setProductions(productions);\n\n message.setInput1(ResourceType.coin);\n message.setInput2(ResourceType.coin);\n message.setOutput(ResourceType.stone);\n\n Map<ResourceSource, EnumMap<ResourceType, Integer>> howToTakeResources = new HashMap<>();\n EnumMap<ResourceType,Integer> strongBox = new EnumMap<>(ResourceType.class);\n EnumMap<ResourceType,Integer> depot = new EnumMap<>(ResourceType.class);\n EnumMap<ResourceType,Integer> extraDepot = new EnumMap<>(ResourceType.class);\n howToTakeResources.put(ResourceSource.STRONGBOX, strongBox);\n howToTakeResources.put(ResourceSource.DEPOT, depot);\n howToTakeResources.get(ResourceSource.DEPOT).put(ResourceType.shield,2);\n howToTakeResources.put(ResourceSource.EXTRA, extraDepot);\n\n message.setHowToTakeResources(howToTakeResources);\n\n RemoteView playerInTurnView = spy(new NetworkRemoteView(players.get(0).getUser(), gameController, mock(ClientStatus.class)));\n turnController.handleActivateProductionMessage(message,playerInTurnView);\n //Verification that allows to check how many times is tried Activate Production method.\n verify(game.getTurn(), times(1)).getTurnPhase();\n }", "title": "" }, { "docid": "e5b6298b01981f73313ccf24f39ed665", "score": "0.4943821", "text": "public void verifyUI() {\n\t\tassertTrue(\"Quick Answers not displayed\", selenium.isTextPresent(\"Quick Answers\"), selenium);\n\t\tassertTrue(\"Find Answers not displayed\", selenium.isTextPresent(\"Find Answers\"), selenium);\n\t\tassertTrue(\"Ask a question not displayed\", selenium.isTextPresent(\"Ask a Question\"), selenium);\n\t\tassertTrue(\"Message Board portlet not displayed\", selenium.isElementPresent(\"css=div#right_col > div.callout_title > h2:contains(Message Boards)\"), selenium);\n\t\tassertTrue(\"Find Buddies portlet not displayed\", selenium.isElementPresent(\"css=div#right_col > div.callout_title > h2:contains(Find Buddies)\"), selenium);\n\t\t\n\t}", "title": "" }, { "docid": "0750ad2778fa62c9145f58b86b3380e2", "score": "0.4943483", "text": "public void testEndpointEnabledEndpointSetTypeNotSetPortSetHostSet() throws Exception {\n if (U.isWindows())\n check(true, true, false, true, true);\n }", "title": "" }, { "docid": "03eea648cb1262006a2feca9deac9ec6", "score": "0.49405208", "text": "public boolean validateCurrentDeviceModel(){\n \tString deviceName=getDeviceName();\n \t// my nexus4 has a device name \"LGE Nexus 4\"\n \treturn deviceName.contains(\"Nexus 4\");\n }", "title": "" }, { "docid": "aa64fcb55350c7bd73fc5ffdf8f774c2", "score": "0.49284488", "text": "boolean hasOsName();", "title": "" }, { "docid": "ef7140a5e04ddc9f1ce923539df14bd5", "score": "0.4912697", "text": "@Test\n void shouldVerifyLayeredArchitecture() {\n layeredArchitecture()\n .consideringOnlyDependenciesInLayers()\n .layer(\"API\").definedBy(\"manon.api..\")\n .layer(\"Batch\").definedBy(\"manon.batch..\")\n .layer(\"Config\").definedBy(\"manon.app.config..\", \"manon\")\n .layer(\"Repository\").definedBy(\"manon.repository..\")\n .layer(\"Service\").definedBy(\"manon.service..\")\n .whereLayer(\"API\").mayNotBeAccessedByAnyLayer()\n .whereLayer(\"Batch\").mayNotBeAccessedByAnyLayer()\n .whereLayer(\"Config\").mayNotBeAccessedByAnyLayer()\n .whereLayer(\"Repository\").mayOnlyBeAccessedByLayers(\"Batch\", \"Service\")\n .whereLayer(\"Service\").mayOnlyBeAccessedByLayers(\"API\", \"Batch\", \"Config\")\n .check(PROJECT);\n }", "title": "" }, { "docid": "97bd3175f5a7f6e9e04f694b3e67697d", "score": "0.49109912", "text": "public boolean isTarget(final Environmental E);", "title": "" }, { "docid": "a85abfc6a21cb9decdd464e36c1122b5", "score": "0.49104333", "text": "@Test\n\tpublic void test_need_no_adjust() {\n\t\tDetermineSidAndInstNo ds = new DetermineSidAndInstNo();\n\t\tds.setSysInfos(new String[]{\"MFG_00\", \"NBA_02\", \"ORA_04\"});\n\t\t\n\t\tContextInfo ctx = new ContextInfo();\n\t\tctx.setScenario(Constants.SCENARIO_SYSINFO);\n\t\tctx.setSid(Constants.DEFAULT_SID);\n\t\tctx.setInstNo(Constants.DEFAULT_INST_NO);\n\t\tctx.setScsInstNo(Constants.DEFAULT_MSG_INST_NO);\n\t\t\n\t\tAssert.assertEquals(Constants.NO_ERROR_CODE, ds.handle(ctx));\n\t}", "title": "" }, { "docid": "efcb11d0cdf4ead4cf173f2dd04e2c23", "score": "0.49067172", "text": "@org.junit.Test\n public void testIsInNetEx() throws UnknownHostException {\n\n assertTrue(helpers.isInNetEx(\"198.95.249.79\", \"198.95.249.79/32\"));\n assertFalse(helpers.isInNetEx(\"198.95.249.78\", \"198.95.249.79/32\"));\n \n assertTrue(helpers.isInNetEx(\"198.95.33.22\", \"198.95.0.0/16\"));\n assertFalse(helpers.isInNetEx(\"198.96.33.22\", \"198.95.0.0/16\"));\n assertTrue(helpers.isInNetEx(\"198.96.33.22\", \"198.95.0.0/16;198.96.0.0/16\"));\n \n fakeDns.addForwardResolution(\"isinnetex1host\", new InetAddress[]{InetAddress.getByName(\"2a00:1450:400e:804::2004\")});\n assertTrue(helpers.isInNetEx(\"isinnetex1host\", \"2a00:1450:400e/48\"));\n assertFalse(helpers.isInNetEx(\"isinnetex1host\", \"198.95.0.0/16\"));\n \n }", "title": "" }, { "docid": "63ee835483ea3f4936538e5dd57a45f9", "score": "0.49023417", "text": "@Test\n void activateProductionPaymentError() throws DepotOutOfBoundsException, IncompatibleResourceTypeException {\n List<Player> players = new ArrayList<>();\n\n players.add(spy(new Player(\"Piero\")));\n players.add(spy(new Player(\"Andrea\")));\n players.add(spy(new Player(\"Domenico\")));\n MultiPlayerMode game = spy(new MultiPlayerMode(players));\n game.nextState(GameState.GAMEFLOW);\n GameController gameController = new GameController(game);\n\n players.get(0).getPersonalBoard().getWarehouse().addResourcesToDepot(2, ResourceType.coin, 2);\n game.setTurn(spy(new Turn(game,players.get(0))));\n TurnController turnController = new TurnController(game, players.get(0));\n\n ActivateProductionMessage message = new ActivateProductionMessage();\n ActiveProductions productions = new ActiveProductions();\n productions.setBasic(true);\n message.setProductions(productions);\n\n message.setInput1(ResourceType.coin);\n message.setInput2(ResourceType.coin);\n message.setOutput(ResourceType.stone);\n\n Map<ResourceSource, EnumMap<ResourceType, Integer>> howToTakeResources = new HashMap<>();\n EnumMap<ResourceType,Integer> strongBox = new EnumMap<>(ResourceType.class);\n EnumMap<ResourceType,Integer> depot = new EnumMap<>(ResourceType.class);\n EnumMap<ResourceType,Integer> extraDepot = new EnumMap<>(ResourceType.class);\n howToTakeResources.put(ResourceSource.STRONGBOX, strongBox);\n howToTakeResources.put(ResourceSource.DEPOT, depot);\n howToTakeResources.get(ResourceSource.STRONGBOX).put(ResourceType.coin,2);\n howToTakeResources.put(ResourceSource.EXTRA, extraDepot);\n\n message.setHowToTakeResources(howToTakeResources);\n\n RemoteView playerInTurnView = spy(new NetworkRemoteView(players.get(0).getUser(), gameController, mock(ClientStatus.class)));\n turnController.handleActivateProductionMessage(message,playerInTurnView);\n //Verification that allows to check how many times is tried Activate Production method.\n verify(game.getTurn(), times(1)).getTurnPhase();\n }", "title": "" }, { "docid": "ba404512025ecd1e4c1275e487dfe6f4", "score": "0.49017054", "text": "@Test \r\n\tpublic void GetValidTerminologyAndNoOntologyServer()\r\n\t{\r\n\t\t\r\n\t\tSourceIdentificationProvider locationService = new SourceIdentificationProvider();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tIRDI_type irdi = new IRDI_type(\"112-6\",true);\r\n\t\t\tsource_identification identificationList = locationService.get_source_identification(irdi);\r\n\t\t\tassertEquals( \"112-6\", identificationList.getRA_ref());\r\n\t\t\tassertEquals(null, identificationList.getOntology_server_URI());\r\n\t\t\tassertEquals(\"http://localhost:7778/axis2/services/TerminologyService\", identificationList.getTerminology_server_URI());\r\n\t\t} \r\n\t\tcatch (implementation_exception e)\r\n\t\t{\r\n\t\t\tfail(e.getMessage());\r\n\t\t} \r\n\t\tcatch (invalid_identifier_exception e)\r\n\t\t{\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7ccf22a5fd0f595a5b595955ed40b9a4", "score": "0.48936698", "text": "@Test\n public void testCase0() throws Exception {\n CoreTestCase testCase = new CoreTestCase(0);\n Machine machine = testCase.createMachine();\n ConstraintsPair constraints = testCase.getConstraints();\n FinalState state = machine.satisfyConstraints(constraints.install, constraints.forbidden);\n assertStateMatch(state, constraints.install, constraints.forbidden);\n }", "title": "" }, { "docid": "bb47110b62e3dbba1e39f7b209f03ca7", "score": "0.48897254", "text": "private void assertConnected() throws IllegalStateException\n {\n if (msnProvider == null)\n throw new IllegalStateException(\n \"The provider must be non-null and signed on the msn \"\n +\"service before being able to communicate.\");\n if (!msnProvider.isRegistered())\n throw new IllegalStateException(\n \"The provider must be signed on the msn service before \"\n +\"being able to communicate.\");\n }", "title": "" }, { "docid": "565e1dc6e9e4519c92b781b2129107e6", "score": "0.4887835", "text": "public static boolean isAixSystem() {\n String osName = System.getProperty(\"os.name\");\n osName = osName.toUpperCase();\n boolean aixOsInd = false;\n if (osName.indexOf(\"AIX\") >= 0) {\n aixOsInd = true;\n }\n return aixOsInd;\n }", "title": "" }, { "docid": "8d0e03958cba226588efc44406bc0298", "score": "0.4881785", "text": "private static String getOS() {\n\t\tString envOS = System.getProperty(\"os.name\").toLowerCase();\n\t\tSystem.out.println(envOS);\n\t\tif(envOS.contains(\"win\"))\n\t\t\treturn \"windows\";\n\t\telse if(envOS.contains(\"mac\"))\n\t\t\treturn \"macosx\";\n\t\telse if(envOS.contains(\"nix\"))\n\t\t\treturn \"linux\";\n\t\telse if(envOS.contains(\"sunos\"))\n\t\t\treturn \"solaris\";\n\n\t\tString[] os = new String[] {\"Windows\", \"Linux\", \"MacOSX\", \"Solaris\"};\n\t\tString choice = (String) JOptionPane.showInputDialog(null,\n\t\t\t\t\"Your OS could not be detected, please choose from the available options below\", \"OS Picker\",\n\t\t\t\tJOptionPane.QUESTION_MESSAGE, null, os, os[1]);\n\t\tif(choice == null)\n\t\t\tSystem.exit(0);\n\t\treturn choice.toLowerCase();\n\t}", "title": "" }, { "docid": "2f179bfa9db819c01d6d0e1d05d6567a", "score": "0.48771992", "text": "int getTetherApnRequired();", "title": "" }, { "docid": "69c260306cc5a4512248906f07f664df", "score": "0.48696682", "text": "@Test public void verifyAsIpAddress() {\n // IPv4\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"127.0.0.1\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"1.2.3.4\"));\n\n // IPv6\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"::1\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"2001:db8::1\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"::192.168.0.1\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"::ffff:192.168.0.1\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"FEDC:BA98:7654:3210:FEDC:BA98:7654:3210\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"1080:0:0:0:8:800:200C:417A\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"1080::8:800:200C:417A\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"FF01::101\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"0:0:0:0:0:0:13.1.68.3\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"0:0:0:0:0:FFFF:129.144.52.38\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"::13.1.68.3\"));\n assertTrue(OkHostnameVerifier.verifyAsIpAddress(\"::FFFF:129.144.52.38\"));\n\n // Hostnames\n assertFalse(OkHostnameVerifier.verifyAsIpAddress(\"go\"));\n assertFalse(OkHostnameVerifier.verifyAsIpAddress(\"localhost\"));\n assertFalse(OkHostnameVerifier.verifyAsIpAddress(\"squareup.com\"));\n assertFalse(OkHostnameVerifier.verifyAsIpAddress(\"www.nintendo.co.jp\"));\n }", "title": "" }, { "docid": "9f18d61043557ce74ca7c05432f6640f", "score": "0.48686606", "text": "@Override\n\tpublic void check() {\n\t\tSystem.out.println(\"\\n-----------------------\");\n\t\tSystem.out.println(\"Check if the network driver is installed properly\");\n\n\t\tboolean isNetworkDriverInstalled = true; // just mocked value\n\t\tif (!(isNetworkDriverInstalled)) {\n\t\t\tSystem.out.println(\"Network driver is not installed properly, please install it\");\n\t\t\tThread.currentThread().stop();\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.println(\"Network driver has been installed properly\");\n\t\tcheckNext();\n\t}", "title": "" }, { "docid": "d8e55645d6513691dcb57bc64c77e58f", "score": "0.48639008", "text": "@Test\n public void ie7NotSupported() {\n String response = requestWithUserAgent(\"Mozilla/5.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727)\");\n Assert.assertTrue(\"IE7 should not be supported\",\n response.contains(\"your browser is not supported\"));\n }", "title": "" }, { "docid": "55b6caf99c1b2d202fd558ecb0aa7047", "score": "0.48584366", "text": "protected void checkConsoleForException() {\n\t\tConsoleView consoleView = new ConsoleView();\n\t\tconsoleView.open();\n\t\tassertFalse(\"Console contains text 'Operation (\\\"deploy\\\") failed':\\n\" + consoleView.getConsoleText(),\n\t\t\t\tconsoleView.getConsoleText().contains(\"Operation (\\\"deploy\\\") failed\"));\n\t}", "title": "" }, { "docid": "a5a33223fac9f977f159051462765926", "score": "0.48512158", "text": "public void testHandshake() throws Exception {\n startUp(false, false);\n\n checkValid(GGFS_NAME + \":\" + GRID_NAME + \"@\");\n checkValid(GGFS_NAME + \":\" + GRID_NAME + \"@127.0.0.1\");\n checkValid(GGFS_NAME + \":\" + GRID_NAME + \"@127.0.0.1:\" + DFLT_IPC_PORT);\n\n checkInvalid(GGFS_NAME + \"@\");\n checkInvalid(GGFS_NAME + \"@127.0.0.1\");\n checkInvalid(GGFS_NAME + \"@127.0.0.1:\" + DFLT_IPC_PORT);\n\n checkInvalid(\":\" + GRID_NAME + \"@\");\n checkInvalid(\":\" + GRID_NAME + \"@127.0.0.1\");\n checkInvalid(\":\" + GRID_NAME + \"@127.0.0.1:\" + DFLT_IPC_PORT);\n\n checkInvalid(\"\");\n checkInvalid(\"127.0.0.1\");\n checkInvalid(\"127.0.0.1:\" + DFLT_IPC_PORT);\n }", "title": "" }, { "docid": "066da65432824248aed3729e333c8393", "score": "0.48437667", "text": "@Test(timeout = 4000)\n public void test008() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/home/ubuntu/databene/w0#YaISck:rH+.env.properties\");\n FileSystemHandling.appendLineToFile(evoSuiteFile0, \"Database query did not return a result: \");\n boolean boolean0 = DBUtil.existsEnvironment(\"w0#YaISck:rH+\");\n assertTrue(boolean0);\n }", "title": "" }, { "docid": "27567a9a36a4c4f477344ccc9176f575", "score": "0.48357037", "text": "@Test \r\n\tpublic void GetValidNoTerminologyAndOneOntologyServer()\r\n\t{\r\n\t\t\r\n\t\tSourceIdentificationProvider locationService = new SourceIdentificationProvider();\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tIRDI_type irdi = new IRDI_type(\"112-4\", true);\r\n\t\t\tsource_identification identificationList = locationService.get_source_identification(irdi);\r\n\t\t\tassertEquals( \"112-4\", identificationList.getRA_ref());\r\n\t\t\tassertEquals(\"http://localhost:7773/axis2/services/OntologyService\", identificationList.getOntology_server_URI());\r\n\t\t\tassertEquals(null, identificationList.getTerminology_server_URI());\r\n\t\t} \r\n\t\tcatch (implementation_exception e)\r\n\t\t{\r\n\t\t\tfail(e.getMessage());\r\n\t\t} \r\n\t\tcatch (invalid_identifier_exception e)\r\n\t\t{\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6ae834350bcec32139f59d5dea61a877", "score": "0.48144662", "text": "@Test\n public void testIgnoreUnknownDevice() throws IOException {\n reset(manager.deviceService);\n Device device = createNiceMock(Device.class);\n expect(device.is(Pipeliner.class)).andReturn(true).anyTimes();\n\n expect(manager.deviceService.getDevice(DEV_1_ID)).andReturn(device).anyTimes();\n expect(manager.deviceService.getDevice(DEV_2_ID)).andReturn(null).anyTimes();\n\n ObjectMapper om = new ObjectMapper();\n JsonNode json = om.readTree(Resources.getResource(CONFIG_FILE_PATH));\n IgnoreDhcpConfig config = new IgnoreDhcpConfig();\n json = json.path(\"apps\").path(DHCP_RELAY_APP).path(IgnoreDhcpConfig.KEY);\n config.init(APP_ID, IgnoreDhcpConfig.KEY, json, om, null);\n\n Capture<Objective> capturedFromDev1 = newCapture(CaptureType.ALL);\n flowObjectiveService.apply(eq(DEV_1_ID), capture(capturedFromDev1));\n expectLastCall().times(DHCP_SELECTORS.size());\n replay(flowObjectiveService, manager.deviceService, device);\n\n manager.updateConfig(config);\n capturedFromDev1.getValues().forEach(obj -> obj.context().ifPresent(ctx -> ctx.onSuccess(obj)));\n\n assertEquals(1, v4Handler.ignoredVlans.size());\n assertEquals(1, v6Handler.ignoredVlans.size());\n }", "title": "" }, { "docid": "ad9626c6d3f489fb291afede4dfab6eb", "score": "0.48134255", "text": "@Test\r\n\tpublic void Test_verify_Devices_GlobalSettings_UnderArrow() throws Exception {\n\t\tif (System.getProperty(\"UserName_jenkins\")!=null && System.getProperty(\"Password_jenkins\")!=null){\t\t\t\r\n\t\t\tSystem.out.println(\"Found creds from jenkins\");\r\n\t\t\tSystem.out.println(\"************************************************************************************\");\r\n\t\t\tSystem.out.println(\"Data From Jenkins\" );\r\n\t\t\tSystem.out.println(\"UserName:\"+System.getProperty(\"UserName_jenkins\"));\r\n\t\t\tSystem.out.println(\"Password:\"+System.getProperty(\"Password_jenkins\") );\r\n\t\t\tSystem.out.println(\"************************************************************************************\");\r\n\t\t\tloginAsMyAutodeskPortalUser(System.getProperty(\"UserName_jenkins\"),System.getProperty(\"Password_jenkins\"));\r\n\t\t}else{\r\n\t\t\tif (getEnvironment().equalsIgnoreCase(\"dev\")) {\r\n\t\t\t\tUSERNAME = testProperties.getConstant(\"USERNAME\");\t\t\t\t\r\n\t\t\t\tPASSWORD = testProperties.getConstant(\"PASSWORD\");\r\n\t\t\t} else if (getEnvironment().equalsIgnoreCase(\"stg\")) {\r\n\t\t\t\tUSERNAME = testProperties.getConstant(\"USER_NAME_STG\");\r\n\t\t\t\tPASSWORD = testProperties.getConstant(\"PASSWORD_STG\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tloginAsMyAutodeskPortalUser(USERNAME ,PASSWORD);\t\r\n\t\t\t\t\t\r\n\t\t}\r\n\t\tmainWindow.select();\r\n\t\tUtil.sleep(5000);\r\n\t\tGoToProductUpdatesPage();\r\n\t\tverifyDevicesUnderArrow();\r\n\t\tlogoutMyAutodeskPortal();\r\n\t}", "title": "" }, { "docid": "52694eff96293a9ec9bcbc9ab51486b9", "score": "0.48119333", "text": "private static boolean isWindows() {\n return os.contains(\"win\");\n }", "title": "" }, { "docid": "8956bb3e2595b1d5f9a8b8ffa80b2076", "score": "0.4811007", "text": "public void testGetServerName() throws Exception {\n\n String server;\n\n xmlUtils = new XmlUtils(AP_NS_PREFIX, AP_NS_URI, AP_XML_VERSION);\n document = parse(apixml);\n server = ParseUtils.getServerName(xmlUtils, document.getDocumentElement());\n\n assertEquals(SYSTEM, server);\n }", "title": "" }, { "docid": "d5dfd5aabca48b3e166099a9b44d4a81", "score": "0.4808268", "text": "@Test\n public void environmentTest() {\n // TODO: test environment\n }", "title": "" }, { "docid": "eed4914cf4c4f26260a0576c01348492", "score": "0.4803165", "text": "public void setOperatingSystem (String OS){\r\n\t\tOperatingSystem = OS;\r\n\t}", "title": "" }, { "docid": "6b99b6465d51f54a404e5e8e74607ec1", "score": "0.47985005", "text": "@Test\n public void testComputeTargetSdkVersion_releasedPlatform() {\n verifyComputeTargetSdkVersion(OLDER_VERSION, RELEASED, true, OLDER_VERSION);\n\n // Do allow same release targetSdkVersion on released platform.\n // APP: Released API 20\n // DEV: Released API 20\n verifyComputeTargetSdkVersion(PLATFORM_VERSION, RELEASED, true, PLATFORM_VERSION);\n\n // Do allow newer release targetSdkVersion on released platform.\n // APP: Released API 30\n // DEV: Released API 20\n verifyComputeTargetSdkVersion(NEWER_VERSION, RELEASED, true, NEWER_VERSION);\n\n // Don't allow older pre-release targetSdkVersion on released platform.\n // APP: Pre-release API 10\n // DEV: Released API 20\n verifyComputeTargetSdkVersion(OLDER_VERSION, OLDER_PRE_RELEASE, true, -1);\n verifyComputeTargetSdkVersion(OLDER_VERSION, OLDER_PRE_RELEASE_WITH_FINGERPRINT, true, -1);\n\n // Don't allow same pre-release targetSdkVersion on released platform.\n // APP: Pre-release API 20\n // DEV: Released API 20\n verifyComputeTargetSdkVersion(PLATFORM_VERSION, PRE_RELEASE, true, -1);\n verifyComputeTargetSdkVersion(PLATFORM_VERSION, PRE_RELEASE_WITH_FINGERPRINT, true, -1);\n\n\n // Don't allow newer pre-release targetSdkVersion on released platform.\n // APP: Pre-release API 30\n // DEV: Released API 20\n verifyComputeTargetSdkVersion(NEWER_VERSION, NEWER_PRE_RELEASE, true, -1);\n verifyComputeTargetSdkVersion(NEWER_VERSION, NEWER_PRE_RELEASE_WITH_FINGERPRINT, true, -1);\n }", "title": "" }, { "docid": "233c8f085be104dedd9d7bd4999948f6", "score": "0.47977227", "text": "public static boolean isOs(String family, String name, String arch,\n String version) {\n boolean retValue = false;\n \n if (family != null || name != null || arch != null\n || version != null) {\n \n boolean isFamily = true;\n boolean isName = true;\n boolean isArch = true;\n boolean isVersion = true;\n \n if (family != null) {\n \n //windows probing logic relies on the word 'windows' in\n //the OS\n boolean isWindows = OS_NAME.indexOf(FAMILY_WINDOWS) > -1;\n boolean is9x = false;\n boolean isNT = false;\n if (isWindows) {\n //there are only four 9x platforms that we look for\n is9x = (OS_NAME.indexOf(\"95\") >= 0\n || OS_NAME.indexOf(\"98\") >= 0\n || OS_NAME.indexOf(\"me\") >= 0\n //wince isn't really 9x, but crippled enough to\n- //be a muchness. Ant doesnt run on CE, anyway.\n+ //be a muchness. Ant doesn't run on CE, anyway.\n || OS_NAME.indexOf(\"ce\") >= 0);\n isNT = !is9x;\n }\n if (family.equals(FAMILY_WINDOWS)) {\n isFamily = isWindows;\n } else if (family.equals(FAMILY_9X)) {\n isFamily = isWindows && is9x;\n } else if (family.equals(FAMILY_NT)) {\n isFamily = isWindows && isNT;\n } else if (family.equals(FAMILY_OS2)) {\n isFamily = OS_NAME.indexOf(FAMILY_OS2) > -1;\n } else if (family.equals(FAMILY_NETWARE)) {\n isFamily = OS_NAME.indexOf(FAMILY_NETWARE) > -1;\n } else if (family.equals(FAMILY_DOS)) {\n isFamily = PATH_SEP.equals(\";\") && !isFamily(FAMILY_NETWARE);\n } else if (family.equals(FAMILY_MAC)) {\n isFamily = OS_NAME.indexOf(FAMILY_MAC) > -1\n || OS_NAME.indexOf(DARWIN) > -1;\n } else if (family.equals(FAMILY_TANDEM)) {\n isFamily = OS_NAME.indexOf(\"nonstop_kernel\") > -1;\n } else if (family.equals(FAMILY_UNIX)) {\n isFamily = PATH_SEP.equals(\":\")\n && !isFamily(FAMILY_VMS)\n && (!isFamily(FAMILY_MAC) || OS_NAME.endsWith(\"x\")\n || OS_NAME.indexOf(DARWIN) > -1);\n } else if (family.equals(FAMILY_ZOS)) {\n isFamily = OS_NAME.indexOf(FAMILY_ZOS) > -1\n || OS_NAME.indexOf(\"os/390\") > -1;\n } else if (family.equals(FAMILY_OS400)) {\n isFamily = OS_NAME.indexOf(FAMILY_OS400) > -1;\n } else if (family.equals(FAMILY_VMS)) {\n isFamily = OS_NAME.indexOf(FAMILY_VMS) > -1;\n } else {\n throw new BuildException(\n \"Don\\'t know how to detect os family \\\"\"\n + family + \"\\\"\");\n }\n }\n if (name != null) {\n isName = name.equals(OS_NAME);\n }\n if (arch != null) {\n isArch = arch.equals(OS_ARCH);\n }\n if (version != null) {\n isVersion = version.equals(OS_VERSION);\n }\n retValue = isFamily && isName && isArch && isVersion;\n }\n return retValue;\n }", "title": "" }, { "docid": "231e46e698a0e8930f39e467fbcda8c0", "score": "0.4796337", "text": "@Test \n\tpublic void testCancelPersonUnavailabilityCommandsAreSent() throws OpsBoardError{\n\t}", "title": "" }, { "docid": "9d8e4e5c639c07210bd567bfb844be75", "score": "0.47939026", "text": "@Before\n\tpublic void setUp() throws Exception {\n\n\t\tdeviceInfo = new DeviceInfoVO();\n\t\tLong pid = 1L;\n\t\tdeviceInfo.setPid(pid);\n\t\tString channelname = \"\";\n\t\tdeviceInfo.setChannelname(channelname);\n\t\tString cityName = \"\";\n\t\tdeviceInfo.setCity_name(cityName);\n\t\tString deviceModel = \"\";\n\t\tdeviceInfo.setDevice_model(deviceModel);\n\t\tString deviceid = \"\";\n\t\tdeviceInfo.setDeviceid(deviceid);\n\t\tString deviceidType = \"\";\n\t\tdeviceInfo.setDeviceid_type(deviceidType);\n\t\tString operationType = \"\";\n\n\t\tdeviceInfo.setOperation_type(operationType);\n\t\tString osVersion = \"\";\n\t\tdeviceInfo.setOs_version(osVersion);\n\t\tString pePkgname = \"\";\n\t\tdeviceInfo.setPe_pkgname(pePkgname);\n\t\tString peVercode = \"\";\n\t\tdeviceInfo.setPe_vercode(peVercode);\n\t\tString peVersion = \"\";\n\t\tdeviceInfo.setPe_version(peVersion);\n\t\tString pepollversion = \"\";\n\t\tdeviceInfo.setPepollversion(pepollversion);\n\t}", "title": "" }, { "docid": "057601ec92c7ca9a8dd8eac00c2413a2", "score": "0.4789171", "text": "@Test(enabled=false)\n public void testAppRunningOn8081port(){\n URL url1 = null;\n try {\n url1 = new URL(\"http://\"+getPropValues(\"appIP\")+\":8081/\"+getPropValues(\"appPath\"));\n System.out.println(\"Testing URL: \"+url1);\n connection = (HttpURLConnection)url1.openConnection();\n connection.setRequestMethod(\"GET\");\n connection.connect();\n code = connection.getResponseCode();\n System.out.println(\"Reponse code is: \"+code);\n Assert.assertTrue((code == 200), \"Application is not running on the URL\"+url1);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(\"testAppRunningOn8081port(): Application is not running on the URL\"+url1);\n }\n }", "title": "" }, { "docid": "45122b7262941b656b7e67ef9288797d", "score": "0.4782189", "text": "@Override\n protected String isSpecificMissionValid() {\n\n for (Ant ant : this.ants) {\n String abortReason = checkEnviroment(ant, true, true, true, true);\n if (abortReason.length() > 0) {\n return \"Found something [\" + abortReason + \"] more interesting\";\n }\n\n }\n return null;\n }", "title": "" }, { "docid": "51b9b517d5dc01b56a7f9122128db2dd", "score": "0.47763252", "text": "@Test\n public void testIndonesiaNeighbors() {\n RiskBoard board = new RiskBoard();\n assertTrue(\n board.isNeighbor(TerritoryEnum.INDONESIA, TerritoryEnum.NEW_GUINEA));\n assertTrue(board.isNeighbor(TerritoryEnum.INDONESIA,\n TerritoryEnum.SOUTHEAST_ASIA));\n assertTrue(board.isNeighbor(TerritoryEnum.INDONESIA,\n TerritoryEnum.WESTERN_AUSTRALIA));\n }", "title": "" }, { "docid": "687174987b08a9f7f6be41bd8b18fc2f", "score": "0.47724792", "text": "public void testIncorrectKey()\n throws Exception\n {\n wagon.setKnownHostsProvider( failHostsProvider );\n\n try\n {\n wagon.connect( source );\n\n fail( \"Should not have successfully connected - host is not known\" );\n }\n catch ( UnknownHostException e )\n {\n // ok\n }\n }", "title": "" }, { "docid": "c70187190b08ba7b608b83d116ab1587", "score": "0.47694334", "text": "public boolean getOsinfo() {\n\tObject property = mASPService.getPrimaryASP(\"osinfo\");\n\treturn ((Integer)property) == 1;\n}", "title": "" }, { "docid": "65a5f0b248a411d57c38db7130a8f684", "score": "0.4763203", "text": "@Test\n\tpublic void test_need_adjust_instno_between() {\n\t\tDetermineSidAndInstNo ds = new DetermineSidAndInstNo();\n\t\tds.setSysInfos(new String[]{\"MFG_00\", \"ORA_04\"});\n\t\t\n\t\tContextInfo ctx = new ContextInfo();\n\t\tctx.setScenario(Constants.SCENARIO_SYSINFO);\n\t\tctx.setSid(\"AMU\");\n\t\tctx.setInstNo(Constants.DEFAULT_INST_NO);\n\t\tctx.setScsInstNo(Constants.DEFAULT_MSG_INST_NO);\n\t\t\n\t\tAssert.assertEquals(2, ds.handle(ctx));\n\t}", "title": "" }, { "docid": "aa554ad88d692d2d0b50b865a946c7de", "score": "0.4753685", "text": "@Test\r\n \tpublic void testEpcAosCdtr01() throws Throwable {\r\n \r\n \t\tList<IInterpretationResult> results;\r\n \t\tresults = super.interpretConstraintsForInstance(CONSTRAINT_DIRECTORY\r\n \t\t\t\t+ \"/epcAosCdtr\", MODELINSTANCE_NAME_01, Arrays\r\n \t\t\t\t.asList(new String[] { \"PaymentInstructionInformation2\" }));\r\n \r\n \t\tassertNotNull(results);\r\n \t\tassertEquals(2, results.size());\r\n \r\n \t\tthis.assertIsFalse(results.get(0));\r\n \t\tthis.assertIsFalse(results.get(1));\r\n \t}", "title": "" }, { "docid": "7f2bfbf27549322fe65794282e77490a", "score": "0.4751916", "text": "public static boolean isSupported()\n\t{\n\t\tString osName = System.getProperty( \"os.name\" );\n\t\t// Currently only supported on Windows.\n\t\treturn( osName.toLowerCase().indexOf( \"windows\" ) >= 0 );\n\t}", "title": "" }, { "docid": "0a304a97a57500df93fda8dd209e3a32", "score": "0.47504845", "text": "boolean hasEnvironmentMatrix();", "title": "" }, { "docid": "3e70f259f4d9042e118da6a31bbe9395", "score": "0.47468272", "text": "@BeforeEach\n public void beforeMethod() {\n String osName = System.getProperty(\"os.name\").toLowerCase();\n Assumptions.assumeTrue(osName.contains(\"nix\") || osName.contains(\"nux\"));\n }", "title": "" }, { "docid": "60879af3965bb2d583d297e84c0bf41b", "score": "0.4746333", "text": "@Test\r\n \tpublic void testEpcAosCdtr03() throws Throwable {\r\n \r\n \t\tList<IInterpretationResult> results;\r\n \t\tresults = super.interpretConstraintsForInstance(CONSTRAINT_DIRECTORY\r\n \t\t\t\t+ \"/epcAosCdtr\", MODELINSTANCE_NAME_03, Arrays\r\n \t\t\t\t.asList(new String[] { \"PaymentInstructionInformation2\" }));\r\n \r\n \t\tassertNotNull(results);\r\n \t\tassertEquals(2, results.size());\r\n \r\n \t\tthis.assertIsFalse(results.get(0));\r\n \t\tthis.assertIsFalse(results.get(1));\r\n \t}", "title": "" }, { "docid": "3eebdee4b36ce7b6cd48b28a35b3e9c7", "score": "0.47403836", "text": "private static boolean isWindows0()\r\n/* 334: */ {\r\n/* 335:425 */ boolean windows = SystemPropertyUtil.get(\"os.name\", \"\").toLowerCase(Locale.US).contains(\"win\");\r\n/* 336:426 */ if (windows) {\r\n/* 337:427 */ logger.debug(\"Platform: Windows\");\r\n/* 338: */ }\r\n/* 339:429 */ return windows;\r\n/* 340: */ }", "title": "" }, { "docid": "6eedd0ca769d1f500fe578f3301b9d0f", "score": "0.4734902", "text": "public static boolean m9834e() {\n ArrayList arrayList = new ArrayList();\n try {\n if (NetworkInterface.getNetworkInterfaces() == null) {\n return false;\n }\n Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces();\n while (networkInterfaces.hasMoreElements()) {\n arrayList.add(((NetworkInterface) networkInterfaces.nextElement()).getName());\n }\n for (int i = 0; i < arrayList.size(); i++) {\n if (((String) arrayList.get(i)).contains(\"p2p\")) {\n return true;\n }\n }\n return false;\n } catch (SocketException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "ce594330d6b42552a2390e2feed8b01a", "score": "0.47281376", "text": "boolean hasCapabilities();", "title": "" }, { "docid": "52ea5cb7e1d9a640f758030fac4a8772", "score": "0.4722685", "text": "@Ignore\n @Test\n public void test3() {\n System.out.println(System.getProperty(\"os.name\")); //Mac OS X\n }", "title": "" }, { "docid": "7b2c3612cde8cc679b838e3b46114d87", "score": "0.47217602", "text": "public void testVerification() throws Exception {\n\n boolean seen;\n\n xmlUtils = new XmlUtils(AP_NS_PREFIX, AP_NS_URI, AP_XML_VERSION);\n document = parse(badxml);\n\n seen = false;\n try {\n ParseUtils.verifyMandatoryElement(null, \"NoSuchElement\");\n } catch (Exception ignore) {\n seen = true;\n }\n if (!seen) {\n fail(\"Should have failed on missing element\");\n }\n\n try {\n ParseUtils.verifyMandatoryElement(document.getDocumentElement(), \"Root\");\n } catch (Exception ignore) {\n fail(\"Root element present - test should not have failed\");\n }\n\n seen = false;\n try {\n boolean status = ParseUtils.getStatus(xmlUtils, document.getDocumentElement());\n } catch (Exception ignore) {\n seen = true;\n }\n if (!seen) {\n fail(\"Should have failed on missing status element\");\n }\n\n seen = false;\n try {\n String text = ParseUtils.getStatusMessage(xmlUtils, document.getDocumentElement());\n } catch (Exception ignore) {\n seen = true;\n }\n if (!seen) {\n fail(\"Should have failed on missing status element\");\n }\n\n seen = false;\n try {\n String text = ParseUtils.getServerName(xmlUtils, document.getDocumentElement());\n } catch (Exception ignore) {\n seen = true;\n }\n if (!seen) {\n fail(\"Should have failed on missing detail element\");\n }\n }", "title": "" }, { "docid": "10fd5940570af7eaeabe4b60171f9292", "score": "0.47168797", "text": "@Test\n public void testIndiaNeighbors() {\n RiskBoard board = new RiskBoard();\n assertTrue(\n board.isNeighbor(TerritoryEnum.INDIA, TerritoryEnum.MIDDLE_EAST));\n assertTrue(\n board.isNeighbor(TerritoryEnum.INDIA, TerritoryEnum.AFGHANISTAN));\n assertTrue(board.isNeighbor(TerritoryEnum.INDIA, TerritoryEnum.CHINA));\n assertTrue(\n board.isNeighbor(TerritoryEnum.INDIA, TerritoryEnum.SOUTHEAST_ASIA));\n }", "title": "" }, { "docid": "5f9a28fc3cd8a5fbe60f862a48e59a2e", "score": "0.47085273", "text": "@Test\n void activateProductionResourceMissing() throws DepotOutOfBoundsException, IncompatibleResourceTypeException {\n List<Player> players = new ArrayList<>();\n\n players.add(spy(new Player(\"Piero\")));\n players.add(spy(new Player(\"Andrea\")));\n players.add(spy(new Player(\"Domenico\")));\n MultiPlayerMode game = spy(new MultiPlayerMode(players));\n game.nextState(GameState.GAMEFLOW);\n GameController gameController = new GameController(game);\n\n players.get(0).getPersonalBoard().getWarehouse().addResourcesToDepot(1, ResourceType.coin, 1);\n game.setTurn(spy(new Turn(game,players.get(0))));\n TurnController turnController = new TurnController(game, players.get(0));\n\n ActivateProductionMessage message = new ActivateProductionMessage();\n ActiveProductions productions = new ActiveProductions();\n productions.setBasic(true);\n message.setProductions(productions);\n\n message.setInput1(ResourceType.coin);\n message.setInput2(ResourceType.coin);\n message.setOutput(ResourceType.stone);\n\n Map<ResourceSource, EnumMap<ResourceType, Integer>> howToTakeResources = new HashMap<>();\n EnumMap<ResourceType,Integer> strongBox = new EnumMap<>(ResourceType.class);\n EnumMap<ResourceType,Integer> depot = new EnumMap<>(ResourceType.class);\n EnumMap<ResourceType,Integer> extraDepot = new EnumMap<>(ResourceType.class);\n howToTakeResources.put(ResourceSource.STRONGBOX, strongBox);\n howToTakeResources.put(ResourceSource.DEPOT, depot);\n howToTakeResources.get(ResourceSource.DEPOT).put(ResourceType.coin,2);\n howToTakeResources.put(ResourceSource.EXTRA, extraDepot);\n\n message.setHowToTakeResources(howToTakeResources);\n\n RemoteView playerInTurnView = spy(new NetworkRemoteView(players.get(0).getUser(), gameController, mock(ClientStatus.class)));\n turnController.handleActivateProductionMessage(message,playerInTurnView);\n //Verification that allows to check how many times is tried Activate Production method.\n verify(game.getTurn(), times(1)).getTurnPhase();\n }", "title": "" }, { "docid": "f8f30820e63145fc3673ee852c808cff", "score": "0.47046652", "text": "@Test\n public void checkStatus() throws Exception {\n MockHandler lookUpService = testKit\n .registerInOutService(\"CustomerLookup\")\n .replyWithOut(null);\n MockHandler preQualService = testKit\n .replaceService(\"PreQualificationService\")\n .forwardInToOut();\n \n service\n .operation(\"intake\")\n .sendInOnly(MockApplication.good());\n \n // validate that our downstream service references were called\n Assert.assertEquals(1, lookUpService.getMessages().size());\n Assert.assertEquals(1, preQualService.getMessages().size());\n }", "title": "" }, { "docid": "c991881cf53926d04bbc3cf0083114fa", "score": "0.4700796", "text": "@Test\r\n \tpublic void testEpcAosCdtr02() throws Throwable {\r\n \r\n \t\tList<IInterpretationResult> results;\r\n \t\tresults = super.interpretConstraintsForInstance(CONSTRAINT_DIRECTORY\r\n \t\t\t\t+ \"/epcAosCdtr\", MODELINSTANCE_NAME_02, Arrays\r\n \t\t\t\t.asList(new String[] { \"PaymentInstructionInformation2\" }));\r\n \r\n \t\tassertNotNull(results);\r\n \t\tassertEquals(1, results.size());\r\n \r\n \t\tthis.assertIsFalse(results.get(0));\r\n \t}", "title": "" } ]
6470a46cb8daf30cc9ea06d2f442c03f
/ access modifiers changed from: packageprivate
[ { "docid": "8263a78cfa97fdb08156499c13751a61", "score": "0.0", "text": "public void destroy(CoreEntityArrayView gcList) {\n CoreJni.destroyInCoreComponentManager1(this.agpCptr, this, CoreEntityArrayView.getCptr(gcList), gcList);\n }", "title": "" } ]
[ { "docid": "0b06f1c2066a7ed1df417a1383204e17", "score": "0.7614444", "text": "Internal internal();", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.7008973", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "2ad52390d92954e1d6f2925b4b14bfd4", "score": "0.69671035", "text": "private Helpers() {}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.69173324", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, { "docid": "863d3a7ffbf5a09e2fddc82948f7fb9e", "score": "0.66097736", "text": "private Methods() {}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.65661395", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "609ec2ff060d9d4cb0276468f482734d", "score": "0.6473905", "text": "public void mo89673a() {\n }", "title": "" }, { "docid": "432a53d7cc7bff50c3cce7662418fe22", "score": "0.64128405", "text": "private static void daelijeom() {\n\t\t\n\t}", "title": "" }, { "docid": "cf1fe3fbd7326948a60560edefd4f5ec", "score": "0.63810205", "text": "private void m18303b() {\n }", "title": "" }, { "docid": "139ea0f3d70d919cb70c2f69d570b88f", "score": "0.63734454", "text": "protected abstract void mo928a();", "title": "" }, { "docid": "7ffbcc7c5a5fd2efca7e77b940aba5fd", "score": "0.63534576", "text": "public void bugWorkaround() {\n }", "title": "" }, { "docid": "3211287bc24304a8ca2975647e8a262e", "score": "0.634839", "text": "public void mo1702b() {\n }", "title": "" }, { "docid": "40c821314a7a86a372e2a107ca92f6b1", "score": "0.634237", "text": "private void Priva() {\n\r\n\t}", "title": "" }, { "docid": "f777356e2cd2fecd871f35f7e556fda8", "score": "0.6272219", "text": "public void mo3640e() {\n }", "title": "" }, { "docid": "91e9fa2778dc02ee9204ed64f281702c", "score": "0.6269999", "text": "private interface C0184d {\n }", "title": "" }, { "docid": "619a28ba3c7707bdf8bb1451d5c3d12b", "score": "0.6266469", "text": "public void mo25069a() {\n }", "title": "" }, { "docid": "06c407b3cacc3e964dfd7296780a7d20", "score": "0.6243145", "text": "public abstract void mo79858d();", "title": "" }, { "docid": "3d50b1a3b6fa144088b98c65884d11f6", "score": "0.62375", "text": "private Util() {\n\n\t}", "title": "" }, { "docid": "a48e15721fa420de77c7cb72d1ce814b", "score": "0.62256825", "text": "private OWF() {\r\n\t}", "title": "" }, { "docid": "656716153b22493864f462d3892b023d", "score": "0.62225723", "text": "public abstract void mo79857c();", "title": "" }, { "docid": "1bce2a310aa52b19f3be7b0aac6a1a9e", "score": "0.62204", "text": "public abstract void mo12293c();", "title": "" }, { "docid": "f7f116289482c665b1ff96f89e43ca4d", "score": "0.621823", "text": "public abstract void mo12294d();", "title": "" }, { "docid": "26c9beae9c89aebd7ef4083b13cfcbb3", "score": "0.620127", "text": "private HelperMethods(){ }", "title": "" }, { "docid": "5aa411e5d69c31dfee719f50e04eb982", "score": "0.6170227", "text": "public abstract void mo108297j();", "title": "" }, { "docid": "1b6e09a6782d50972c182ef576e82c8d", "score": "0.6165927", "text": "public void mo5729d() {\n }", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.6165211", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "b8a45528a3f2e2c5ca531b00160fddfb", "score": "0.6165211", "text": "@Override\n\tpublic void nacer() {\n\n\t}", "title": "" }, { "docid": "359987993ad84757f9d7a12eaf38d2d7", "score": "0.6141702", "text": "public final void mo59419g() {\n }", "title": "" }, { "docid": "60995180784d54a0aa254f336ff84960", "score": "0.6128456", "text": "private Conversions() {\n\t}", "title": "" }, { "docid": "673a49ca299f4504a7a66fb69e6c009b", "score": "0.6120306", "text": "public final void mo23803a() {\n }", "title": "" }, { "docid": "2bcac1bab4eaa6c9cc4cb7e33c684cef", "score": "0.6116394", "text": "public void mo1691a() {\n }", "title": "" }, { "docid": "e7317df0048a21a367c84f71c1012fdf", "score": "0.6108953", "text": "public abstract void mo108273c();", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.610869", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "34a145e39809672089b393b7d1adfca2", "score": "0.6098937", "text": "PublicAccess publicAccess();", "title": "" }, { "docid": "8bf8511f65e0c2b04c8bd3242cfd3d0d", "score": "0.6094073", "text": "public void mo25201a() {\n }", "title": "" }, { "docid": "d3b07050597919f6b6cd1ecb8eef6735", "score": "0.608287", "text": "public abstract void mo79865j();", "title": "" }, { "docid": "3214c460d6da423caaadf08f316ad1f8", "score": "0.60797536", "text": "public abstract void mo108290g();", "title": "" }, { "docid": "a21f0dcbaa687062bf8f2fd481eec094", "score": "0.6075368", "text": "private Sesion() {\n\n }", "title": "" }, { "docid": "b8cd427648ea50c94f93c47d407d10a0", "score": "0.6071249", "text": "public void mo3639d() {\n }", "title": "" }, { "docid": "4f13ed0c150f36ca81b91638bd82d268", "score": "0.60570836", "text": "private Util() { }", "title": "" }, { "docid": "3fb636b9ce0d711892980996a1771579", "score": "0.6055648", "text": "public final void mo53187a() {\n }", "title": "" }, { "docid": "c0c124e64210434ea9708eb3746ed08f", "score": "0.60473746", "text": "public abstract String method_1811();", "title": "" }, { "docid": "7721677c9c247497df61f02707d2c6d5", "score": "0.6033249", "text": "void mo15172af();", "title": "" }, { "docid": "ed80fec879d6ce0a725698ce493598c5", "score": "0.6030603", "text": "@SuppressWarnings (\"unused\")\n private static void test ()\n {\n }", "title": "" }, { "docid": "2d0824e923a5d66806b3bad0940abbd3", "score": "0.6024398", "text": "private Utils() {}", "title": "" }, { "docid": "2d0824e923a5d66806b3bad0940abbd3", "score": "0.6024398", "text": "private Utils() {}", "title": "" }, { "docid": "e0cbdb33ae361893d684895427f83ba5", "score": "0.60210234", "text": "public abstract void mo41184k();", "title": "" }, { "docid": "331695424e8d8fcf4826ab18908dfd77", "score": "0.60176545", "text": "public abstract void method_1572();", "title": "" }, { "docid": "b6991105a4e7cbd1e588ff8cdb14842f", "score": "0.60167843", "text": "public final void mo42476a() {\n }", "title": "" }, { "docid": "c6157a5123850c1d02b1d7b285a5d5ee", "score": "0.6006644", "text": "private SprintsPackage() {}", "title": "" }, { "docid": "af2d9d4183ffbc39023853cb332da070", "score": "0.600318", "text": "private MappingUtils() {\n\t}", "title": "" }, { "docid": "cdaaa6af27ec15a11b312197a5484f30", "score": "0.60019875", "text": "public void mo8543a() {\n }", "title": "" }, { "docid": "241b338c65958e2d297fd4890b89330e", "score": "0.60016406", "text": "public abstract String method_1564();", "title": "" }, { "docid": "8a25055bb85939ca272f2502bebb1975", "score": "0.59970343", "text": "private Public() {\n\t\tsuper(\"PUBLIC\");\n\t}", "title": "" }, { "docid": "b08f4638320db7d0a618ea28376deec3", "score": "0.59925795", "text": "private static void atrim() {\n }", "title": "" }, { "docid": "0fc890bce2cd6e7184e33036b92f8217", "score": "0.5991695", "text": "public void mo55254a() {\n }", "title": "" }, { "docid": "84b0935c8489dd17a90b3bfa3d439134", "score": "0.59899163", "text": "public abstract void mo79856b();", "title": "" }, { "docid": "ee34b65ca528d3c4001b7840ceae42b2", "score": "0.59889114", "text": "public void mo1957a() {\n }", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.59807545", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2d09c2667d02737311a032c800665cb0", "score": "0.59624004", "text": "void mo21758Dp();", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5958243", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "59edca275ccea0faf581780e052bb6ec", "score": "0.5957246", "text": "public abstract void mo1272a();", "title": "" }, { "docid": "33c756cf2ce8d41ad824e84a24ee0d40", "score": "0.5953505", "text": "public abstract void mo108263b();", "title": "" }, { "docid": "7d564a9fbd3b4bcb28861f631deb09d4", "score": "0.59432095", "text": "public abstract String method_1566();", "title": "" }, { "docid": "90e9be10c2c69543036119c8db74189e", "score": "0.59403396", "text": "public void mo6944a() {\n }", "title": "" }, { "docid": "d0a79718ff9c5863618b11860674ac5e", "score": "0.5936625", "text": "@Override\n\tpublic void comer() {\n\n\t}", "title": "" }, { "docid": "05376175828876d05086b6c82df71fe4", "score": "0.59263766", "text": "private Utils() {\n\t}", "title": "" }, { "docid": "65761b81b9e7c262ab2053f890407576", "score": "0.5918714", "text": "public final void mo8975a() {\n }", "title": "" }, { "docid": "8edda2a096e5fac5a84f00383e81a414", "score": "0.59152806", "text": "private AnnotationUtils() {\r\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\r\n\t}", "title": "" }, { "docid": "f4f48197b3fa17ad117947be0d5a5650", "score": "0.5914128", "text": "public void mo2849x() {\n }", "title": "" }, { "docid": "eeb36f7d811e511d78ab12d32b57b462", "score": "0.5911026", "text": "private PMF() {}", "title": "" }, { "docid": "dc8b529f53c0bc3cd0641964c8fc6c38", "score": "0.59069806", "text": "public abstract void mo1278b();", "title": "" }, { "docid": "a461dc9f7c85437f03c14d9121971cec", "score": "0.5906938", "text": "public abstract void mo79853a();", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.5905689", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "f33bdaf3173905588d8b31ac2615a888", "score": "0.5899621", "text": "private Utils() { }", "title": "" }, { "docid": "e3ea3ad0e8244c5fbb64fd1493cf9e0c", "score": "0.5893617", "text": "public abstract void mo79866k();", "title": "" }, { "docid": "613a3e1e6e5657c279f3d776498946fc", "score": "0.5891751", "text": "@Override\n public boolean hasAccess() { return true; }", "title": "" }, { "docid": "4499fbd7d22f0a449dc6b853457e5e9d", "score": "0.58906496", "text": "private UtilHelper(){}", "title": "" }, { "docid": "376ecf66cd49fe8765882c6d1751a072", "score": "0.5888219", "text": "@Override\r\n\tpublic void d0() {\n\r\n\t}", "title": "" }, { "docid": "9c0be8b41abbc5a688c29d02287c4158", "score": "0.5888096", "text": "public void wyjscie(){}", "title": "" }, { "docid": "62f831098662cba2345e523e21e84846", "score": "0.5875287", "text": "abstract String method_2631();", "title": "" }, { "docid": "fcc5cb586ce24ae43fe8a1400501f7cb", "score": "0.5867881", "text": "public abstract void mo79861g();", "title": "" }, { "docid": "08e1e596e0e9ddd90595996b16e271f4", "score": "0.5866221", "text": "public void mo41443a() {\n }", "title": "" }, { "docid": "18619fb436efbffc5fe3d164db596301", "score": "0.5866151", "text": "private void method_3485() {\r\n super();\r\n }", "title": "" }, { "docid": "19e7961b4db71d792a3277686bb4e2b8", "score": "0.58595634", "text": "public void mo42215a() {\n }", "title": "" }, { "docid": "4998a23e108f49f0462e31c609123d9a", "score": "0.585241", "text": "public abstract void mo33625a();", "title": "" }, { "docid": "ad8a141e91bbca70f346a13c19db0bc2", "score": "0.58503836", "text": "private void privateHelperMethod() {\n }", "title": "" }, { "docid": "bb1812ac9695e9e927bf9945d6e9c398", "score": "0.5850299", "text": "public void mo20031a() {\n }", "title": "" }, { "docid": "8fff6550acf2ad0637861525f4453772", "score": "0.5850275", "text": "public static void method_9761() {}", "title": "" }, { "docid": "10e00e5505d97435b723aeadb7afb929", "score": "0.58479214", "text": "@Override\n\tpublic void pintar2() {\n\t\t\n\t}", "title": "" }, { "docid": "1920cfbf29ebbd7f787559152d6b809b", "score": "0.58392274", "text": "@Override\n\tvoid kapi() {\n\t\t\n\t}", "title": "" }, { "docid": "9aefb07a3d13460bd01b5ee553b27103", "score": "0.5836952", "text": "private Visa() {\n\t\t\n\t}", "title": "" }, { "docid": "dd9cff9d2345f058af27c06510133111", "score": "0.5836623", "text": "private CppUtils() {\n\n\t}", "title": "" }, { "docid": "4df642732f23eb68d19003c5de241145", "score": "0.5832577", "text": "public void mo8543a() {\n }", "title": "" }, { "docid": "528b1815a75aa62bd727357cd98aa4a1", "score": "0.58318377", "text": "public void checkPrivate() {\n }", "title": "" }, { "docid": "117880abb5124676c2fe5925b9c9291e", "score": "0.58282477", "text": "private void partenza() {\n }", "title": "" }, { "docid": "4329fec0c25163b4865afea7811f63df", "score": "0.58222735", "text": "public abstract String method_1565();", "title": "" }, { "docid": "87986eeb0ab6a2497265f2ac04778a59", "score": "0.58187944", "text": "protected interface C4775c {\n /* renamed from: a */\n void mo16108a(boolean z, File file);\n }", "title": "" }, { "docid": "5262660a9edcdf4c362ff4b7231a8c41", "score": "0.58176786", "text": "@Override\r\n\tpublic void dibujar() {\n\r\n\t}", "title": "" }, { "docid": "3c53ab5869d01eb8cf3cfc3662d058f7", "score": "0.5812935", "text": "public abstract int method_1658();", "title": "" }, { "docid": "7bae606b81a09973f2c6a24e6d6da027", "score": "0.5806767", "text": "public abstract void mo1274a();", "title": "" } ]
80f2453ce4f8a5b9932a539a3b8ef5dc
Return the OrderedDeleteableSharedIdValuePairType Object for the Group's current statusId
[ { "docid": "f0446bf1e03828bf4454e1e0c51ee0ad", "score": "0.65465605", "text": "public OrderedDeleteableSharedIdValuePairType getStatusObj(ApplicationType application, GroupType group) {\n if (!application.isSetRuleStatuses()) {\n logger.debug(\"This application does not use statuses.\");\n return null;\n } else {\n if (group.isSetStatusId()) {\n String statusId = group.getStatusId();\n OrderedDeleteableSharedIdValuePairType statusObj = null;\n List<OrderedDeleteableSharedIdValuePairType> statusList = application.getRuleStatuses().getItemList();\n for (OrderedDeleteableSharedIdValuePairType status : statusList) {\n if (status.getId().equals(statusId)) {\n statusObj = status;\n break;\n }\n }\n return statusObj;\n } else {\n return null;\n }\n }\n }", "title": "" } ]
[ { "docid": "8456093c689f67dda5859315bf0f4ecb", "score": "0.49029773", "text": "public OrderGroupVO getOrderGroupById(String groupId);", "title": "" }, { "docid": "7cbd3b903c6cd012be17d90d9597cc10", "score": "0.48822823", "text": "io.dstore.values.IntegerValueOrBuilder getOrderIdOrBuilder();", "title": "" }, { "docid": "8c54210f01c60b3c7d22f34250d3d587", "score": "0.48117706", "text": "public Integer getDelete_status() {\n\t\treturn delete_status;\n\t}", "title": "" }, { "docid": "24878c74551012eda0d35da356bf19ed", "score": "0.47640216", "text": "public Short getOrderStatus() {\n return orderStatus;\n }", "title": "" }, { "docid": "24878c74551012eda0d35da356bf19ed", "score": "0.47640216", "text": "public Short getOrderStatus() {\n return orderStatus;\n }", "title": "" }, { "docid": "948d1067056801cb498e8b13d06a074a", "score": "0.47536573", "text": "public Boolean getDeleteStatus() {\r\n return deleteStatus;\r\n }", "title": "" }, { "docid": "661662e6497e107d1b571bd845e80f2a", "score": "0.46660408", "text": "StatusOsEntity get(int id);", "title": "" }, { "docid": "b6d355d9b6a4f5b24aa7a5a6ddb7be70", "score": "0.46455747", "text": "public int getStatusId() {\n return statusId;\n }", "title": "" }, { "docid": "11d139cfe4e5f2bacae00d587f511125", "score": "0.46386224", "text": "public OrderStatus getStatus() { return status; }", "title": "" }, { "docid": "88e60bbb0ca954fbc2fb1df3d92eb3ff", "score": "0.45749125", "text": "public Byte getOrderStatus() {\n return orderStatus;\n }", "title": "" }, { "docid": "0a0762fe5ac9f86b22253797c8342d26", "score": "0.45692536", "text": "public SegmentDeleteStatus getDeleteStatus() {\r\n Short value = getFieldShortValue(7, 0, Fit.SUBFIELD_INDEX_MAIN_FIELD);\r\n if (value == null) {\r\n return null;\r\n }\r\n return SegmentDeleteStatus.getByValue(value);\r\n }", "title": "" }, { "docid": "1e8a63ce8721819790d4c1a4b436cb06", "score": "0.4538672", "text": "public Object getGroup(int groupPosition) {\r\n \t\r\n \treturn updates.get(groupPosition);\r\n }", "title": "" }, { "docid": "ee8e0653168047dc3f3bd2bd636f2b54", "score": "0.4519908", "text": "public Integer getOrderstype() {\n return orderstype;\n }", "title": "" }, { "docid": "f2281568f195e73624d4ac52ef4c9b53", "score": "0.45053217", "text": "java.util.List<MsgDefine.group_status> \n getGroupListList();", "title": "" }, { "docid": "f2281568f195e73624d4ac52ef4c9b53", "score": "0.45053217", "text": "java.util.List<MsgDefine.group_status> \n getGroupListList();", "title": "" }, { "docid": "be8f078634428487316be2e8b94cca0c", "score": "0.445347", "text": "public Long getStatusId() {\n return statusId;\n }", "title": "" }, { "docid": "07d09260f37306194f54df1944876cdb", "score": "0.4451841", "text": "java.lang.String getPlacementGroupId();", "title": "" }, { "docid": "4bb8387168960934ac17620bebf911f3", "score": "0.44395787", "text": "MsgDefine.group_statusOrBuilder getGroupListOrBuilder(\n int index);", "title": "" }, { "docid": "4bb8387168960934ac17620bebf911f3", "score": "0.44395787", "text": "MsgDefine.group_statusOrBuilder getGroupListOrBuilder(\n int index);", "title": "" }, { "docid": "bbb625aa4806fb417b572311939d7e89", "score": "0.44235325", "text": "io.dstore.values.IntegerValueOrBuilder getOrderContentIdOrBuilder();", "title": "" }, { "docid": "ded5e28a871284ef083d89fce6fe4624", "score": "0.4420342", "text": "OrderList getOrderListStatus(OrderListStatusRequest orderListStatusRequest);", "title": "" }, { "docid": "f8efd14bbc332e28984e7cd83e90f6f6", "score": "0.44149655", "text": "public String getStatus(ApplicationType application, GroupType group) {\n OrderedDeleteableSharedIdValuePairType statusObj = this.getStatusObj(application, group);\n return (statusObj == null) ? \"\" : statusObj.getStringValue();\n }", "title": "" }, { "docid": "d28147e19ea5be71e42814b1f3b19ec4", "score": "0.43887475", "text": "@Override\n\tpublic void delete(Status t) {\n\n\t}", "title": "" }, { "docid": "900633eec5a8cd4770601811d2bd0b00", "score": "0.43865448", "text": "java.util.List<? extends MsgDefine.group_statusOrBuilder> \n getGroupListOrBuilderList();", "title": "" }, { "docid": "900633eec5a8cd4770601811d2bd0b00", "score": "0.4386309", "text": "java.util.List<? extends MsgDefine.group_statusOrBuilder> \n getGroupListOrBuilderList();", "title": "" }, { "docid": "519abf352b97f2757206c10cb050ca4a", "score": "0.43856767", "text": "com.google.protobuf.ByteString\n getPlacementGroupIdBytes();", "title": "" }, { "docid": "46638185983d3a9d43592400f719a541", "score": "0.43769532", "text": "OrderStatus getStatus();", "title": "" }, { "docid": "50fa490a917e7edbe173a312cbbadd0d", "score": "0.43768936", "text": "private DeleteGroupResponse() {\n initFields();\n }", "title": "" }, { "docid": "5a4d59268c1837501cb2696e72cd9aa5", "score": "0.4363133", "text": "public Integer getOrderstatus() {\n return orderstatus;\n }", "title": "" }, { "docid": "0cc4274e5cb015de38ae98df2d6f8019", "score": "0.43597612", "text": "public String getOrderStatus() {\n return orderStatus;\n }", "title": "" }, { "docid": "45bd4c2e608d817073469b10454addc1", "score": "0.4349742", "text": "public RequestInfoLogDeleteBuilder status(STATUS... status);", "title": "" }, { "docid": "af458c8a81026b721c859607ae6c1a30", "score": "0.43448985", "text": "com.google.ads.googleads.v1.services.SharedSetOperation getSharedSetOperation();", "title": "" }, { "docid": "51f15f05be915e390e92d24402785993", "score": "0.43372905", "text": "public String getStatusId() {\n return statusId;\n }", "title": "" }, { "docid": "1e6c102efd0560819b790f441a5f83ae", "score": "0.4320174", "text": "@Override\r\n\t\t\tpublic int compareTo(Status o) {\n\t\t\t\treturn 0;\r\n\t\t\t}", "title": "" }, { "docid": "1e6c102efd0560819b790f441a5f83ae", "score": "0.4320174", "text": "@Override\r\n\t\t\tpublic int compareTo(Status o) {\n\t\t\t\treturn 0;\r\n\t\t\t}", "title": "" }, { "docid": "5c55953f43fcffa9d08f38652c9c67c1", "score": "0.43198717", "text": "public BatchDeleteObject getDeleteObject() {\n return this.deleteObject;\n }", "title": "" }, { "docid": "9d2439322fa81405a1deaaf258599a5c", "score": "0.43007603", "text": "List<Order> getOrdersByStatus(String status) throws DaoException;", "title": "" }, { "docid": "b38c6e28a2e766aa6a14c1982ffa30d3", "score": "0.42955488", "text": "public String getGorderId() {\r\n return gorderId;\r\n }", "title": "" }, { "docid": "9218228e625fb8126e4fa100827e3ef5", "score": "0.42915392", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"group_id\", groupList.get(deleteindexpos).getGroup_id());\n return params;\n }", "title": "" }, { "docid": "25a2923ad2a02e85778b813f06e8ec07", "score": "0.42877534", "text": "public OrderRequestStatus getStatus() {\n return status;\n }", "title": "" }, { "docid": "6d1a84803557e099b0e5374999b1297f", "score": "0.4282248", "text": "public final void rule__Tasks__Group__8__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPlanning.g:888:1: ( ( 'status' ) )\n // InternalPlanning.g:889:1: ( 'status' )\n {\n // InternalPlanning.g:889:1: ( 'status' )\n // InternalPlanning.g:890:2: 'status'\n {\n before(grammarAccess.getTasksAccess().getStatusKeyword_8()); \n match(input,22,FOLLOW_2); \n after(grammarAccess.getTasksAccess().getStatusKeyword_8()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "6f6dea53979c3a1d8c87154d16ebbea3", "score": "0.42751658", "text": "public CanDelete_type1 getCanDelete(){\r\n return localCanDelete;\r\n }", "title": "" }, { "docid": "6ab34af8a754da0f1a0f32af8163dabd", "score": "0.42676163", "text": "public VersionGroups getVersionGroups() {\n long __key = this.ChangedInVersionGroupId;\n if (VersionGroups__resolvedKey == null || !VersionGroups__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n VersionGroupsDao targetDao = daoSession.getVersionGroupsDao();\n VersionGroups VersionGroupsNew = targetDao.load(__key);\n synchronized (this) {\n VersionGroups = VersionGroupsNew;\n \tVersionGroups__resolvedKey = __key;\n }\n }\n return VersionGroups;\n }", "title": "" }, { "docid": "4b3dfccd7f10bde21819a91d19ef0d3d", "score": "0.4261126", "text": "public RequestGroup getRequestGroup(Long id);", "title": "" }, { "docid": "56db5c99953c24d9e1c73d09b9db18d0", "score": "0.42573392", "text": "io.dstore.values.IntegerValue getOrderId();", "title": "" }, { "docid": "8f308bba6a06375d880070ea5c92b204", "score": "0.4250762", "text": "public io.dstore.values.IntegerValueOrBuilder getOrderIdOrBuilder() {\n return getOrderId();\n }", "title": "" }, { "docid": "db4e7718ff7d443914bce3735f2902c6", "score": "0.42482927", "text": "@RequestMapping(method = RequestMethod.DELETE, value = \"/{id}\")\n \t@ResponseBody\n \tpublic Map<String, RestStatusDto> deleteById(@PathVariable(\"id\") Long id) {\n \t\tfinal HashMap<String, RestStatusDto> response = new HashMap<String, RestStatusDto>();\n \t\tfinal SurveyAssignment sa = surveyAssignmentDao.getByKey(id);\n \t\tRestStatusDto statusDto = null;\n \t\tstatusDto = new RestStatusDto();\n \t\tstatusDto.setStatus(\"failed\");\n \t\tif (sa != null) {\n \t\t\tsurveyAssignmentDao.delete(sa);\n \t\t\tstatusDto.setStatus(\"ok\");\n \t\t}\n \n \t\tresponse.put(\"meta\", statusDto);\n \t\treturn response;\n \t}", "title": "" }, { "docid": "4041e8fca0b26020c5a37c2cf91010f5", "score": "0.42398486", "text": "List<OrderItem> getOrdersByStatus(OrderStatusEnum status);", "title": "" }, { "docid": "af62ca71406b41964021f3355df92372", "score": "0.42351115", "text": "public Integer getSyncStatus() {\n return syncStatus;\n }", "title": "" }, { "docid": "5e5cae7224e9b08fa1240db8f3dbd998", "score": "0.42335105", "text": "@Override\n public int hashCode() {\n\n return Objects.hash(status);\n }", "title": "" }, { "docid": "0a87aea16fabfa697236974ea0c011d9", "score": "0.4220304", "text": "com.google.protobuf.ByteString getItemGroupIdBytes();", "title": "" }, { "docid": "e1af84553b4d751c529b03a9f2b91cd3", "score": "0.42173934", "text": "MsgDefine.group_status getGroupList(int index);", "title": "" }, { "docid": "e1af84553b4d751c529b03a9f2b91cd3", "score": "0.42173934", "text": "MsgDefine.group_status getGroupList(int index);", "title": "" }, { "docid": "c7758dd2d2c7cd3b9fe915a28992bebf", "score": "0.42081785", "text": "public BucketDeleteRequest getDeleteBucketRequest(){\r\n return localDeleteBucketRequest;\r\n }", "title": "" }, { "docid": "6bebe7755a759e86fce6afe421025d69", "score": "0.41946304", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"group_id\", groupList.get(statusindexPos).getGroup_id());\n params.put(\"group_status\", \"0\");\n\n return params;\n }", "title": "" }, { "docid": "17403a7c5446be8a3288ce14da7d4f1d", "score": "0.41796723", "text": "void delete(Integer groupId);", "title": "" }, { "docid": "47c2653619563ce8d2d72a0fc47ac4c9", "score": "0.4178456", "text": "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n\n params.put(\"group_id\", groupList.get(statusindexPos).getGroup_id());\n params.put(\"group_status\", \"1\");\n// group_status = \"1\";\n\n return params;\n }", "title": "" }, { "docid": "5df859edded1fe22f3dda1bb802172cd", "score": "0.41744488", "text": "public ShipmentResponse updateShipmentStatus(ShipmentStatusRequest shipmentStatusRequest) throws Exception {\n\t\tShipmentResponse shipmentResponse = new ShipmentResponse();\n \n\t\tList<ShipmentReferencesRequest> shipmentReferences = shipmentStatusRequest.getShipmentReferences();\n\t\t\n\t\tif(shipmentReferences == null) {\n\t shipmentResponse.setStatus(ShipmentConstants.EMPTY_SHIPMENTSTATUS_REQUEST_MESSAGE);\n\t shipmentResponse.setMessage(ShipmentConstants.COMPLETE_MESSAGE);\n\t return shipmentResponse;\n\t\t}\n\t\t\n\t\tfor(ShipmentReferencesRequest shipmentReferencesRequest : shipmentReferences) {\n\t\t\tList<BigDecimal> shipmentIds = new ArrayList<>();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tshipmentIds = shipmentReferenceRepository.findShipmentIdByRefTypeValue(shipmentReferencesRequest.getShipmentRefType(), \n\t\t\t\t\tshipmentReferencesRequest.getShipmentRefValue());\n\t\t\t} catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t\tshipmentResponse.setStatus(ShipmentConstants.NO_RECORD_FIND_IN_SHIPMENTREFERENCE_MESSAGE);\n\t\t shipmentResponse.setMessage(ShipmentConstants.COMPLETE_MESSAGE);\n\t\t return shipmentResponse;\n\t\t\t}\n\t\t\t\n\t\t\tif(shipmentIds.size() == 0 || shipmentIds == null) {\n\t\t\t\tshipmentResponse.setStatus(ShipmentConstants.NO_RECORD_FIND_IN_SHIPMENTREFERENCE_MESSAGE);\n\t\t shipmentResponse.setMessage(ShipmentConstants.COMPLETE_MESSAGE);\n\t\t return shipmentResponse;\n\t\t\t}\n\t\t\t\n\t\t\tfor(BigDecimal shipmentId : shipmentIds) {\n\t\t\t\tLong id = new Long(shipmentId.longValue());\n\t\t\t\tShipment shipment = new Shipment();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tshipment = shipmentRepository.findByShipmentId(id);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(shipment == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(shipment.getStatus().equals(shipmentStatusRequest.getStatus())) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tshipment.setStatus(shipmentStatusRequest.getStatus());\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Set Shipment StatusId field\n\t\t\t\tshipment = setShipmentStatusId(shipment);\n\t\t\t\t\n\t\t\t\tshipmentRepository.save(shipment);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n shipmentResponse.setStatus(ShipmentConstants.DONE_MESSAGE);\n shipmentResponse.setMessage(ShipmentConstants.COMPLETE_MESSAGE);\n \n return shipmentResponse;\n\t}", "title": "" }, { "docid": "9faf9ad000b3d072cb5458b5f4ccf251", "score": "0.4173478", "text": "public String getObjectType() {\n return lockType;\n }", "title": "" }, { "docid": "4bac3c83722a199a0de662419b6d5696", "score": "0.41624948", "text": "private group_status(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "ca6703ef4d8b25827bb213ea3877c5c2", "score": "0.41611397", "text": "com.google.ads.googleads.v1.services.CampaignSharedSetOperation getCampaignSharedSetOperation();", "title": "" }, { "docid": "8154b3cf5c03f4be4efa39c150cff5d0", "score": "0.41587344", "text": "public Confirm_Status getValue() {\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "812da21045f6a0d37b8df45d41849b03", "score": "0.41478193", "text": "StatusOsEntity get(int id, int userId);", "title": "" }, { "docid": "99dcd0c5552030e73de1db1bcbf872bb", "score": "0.41197765", "text": "public VtEstado getVtEstado(Long estaId) throws Exception;", "title": "" }, { "docid": "00e9bb8d45fe23c62acfd24f100ed63f", "score": "0.41184226", "text": "@DELETE(\"deleteGroup\")\n Call<Group> deleteGroup(@Query(\"groupId\") int group);", "title": "" }, { "docid": "5b2d18d988e75acc47f2e3dca020e1fb", "score": "0.4111433", "text": "java.lang.String getOrderId();", "title": "" }, { "docid": "3b19b52bcf83c025aefa73848401da48", "score": "0.41108543", "text": "public com.vportal.portlet.vcms.model.VcmsStatus[] filterFindByGroupId_PrevAndNext(\n\t\tlong statusId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tcom.vportal.portlet.vcms.NoSuchVcmsStatusException;", "title": "" }, { "docid": "3c12b45d6f329b6019d8092fb25d4233", "score": "0.41058707", "text": "int deleteByExample(OmsOrderSettingExample example);", "title": "" }, { "docid": "2db8032a95c2e2e3d30781b715c740b6", "score": "0.4099858", "text": "public List<Pair<EntryType, StatusType>> getActiveEntriesWithStatus();", "title": "" }, { "docid": "ddb78b2609dfa1f84576571eb85ecb81", "score": "0.40916634", "text": "public Long getStatusId() {\n\t\treturn statusId;\n\t}", "title": "" }, { "docid": "90b2c1d8b5e485f56c32fe770ad21e8c", "score": "0.4081643", "text": "public short getPhaseStatusGroupNumber() {\n return phaseStatusGroupNumber;\n }", "title": "" }, { "docid": "9c11bd29597f12518dd57ce18f1ed43b", "score": "0.40728897", "text": "public StatusEntity getStatusEntity() {\r\n return statusEntity;\r\n }", "title": "" }, { "docid": "15df45cb0cb2731a0d7d530768c36c98", "score": "0.40665767", "text": "public List<APIOrder> getActiveOrderForTable(Long tableId, String localStatus) {\n\t\t\n\t\tList<APIOrder> apiOrderList = new ArrayList<>();\n\t\tOrder localOrder = null;\n\t\tAPIOrder apiOrder = null;\n\t\tIterator<Order> orderListIterator = orderRepository.findByRestaurantTableId(tableId).iterator();\n\t\twhile (orderListIterator.hasNext()) {\n\t\t\tlocalOrder = orderListIterator.next();\n\t\t\tapiOrder = new APIOrder();\n\t\t\tif(localOrder.getStatus().equalsIgnoreCase(localStatus)){\n\t\t\t\tapiOrder = copyOrder(localOrder, apiOrder);\n\t\t\t\tapiOrderList.add(apiOrder);\n\t\t\t}\t\t\t\t\n\t\t}\t\t\n\t\treturn apiOrderList;\t\t\n\t}", "title": "" }, { "docid": "d0ee3f0ddaa263a4c37934ca45bb303e", "score": "0.40592965", "text": "io.dstore.values.BooleanValueOrBuilder getGetAllPositionsOfOrderOrBuilder();", "title": "" }, { "docid": "c60176627dee0b7321411b0b646b69c7", "score": "0.40588745", "text": "@Override\n public String getDeleteCondition() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "f9ab44229a4e303fb73eed1f0316e29a", "score": "0.40550712", "text": "public long getGroupId(int groupPosition) {\r\n \t\r\n return updates.get(groupPosition).id;\r\n }", "title": "" }, { "docid": "054e4b759e529e82c24fd9b0d63032ee", "score": "0.4046012", "text": "private void processGroupDeletionsResp(final DecodedResponse resp) {\r\n ServiceStatus status = BaseEngine.getResponseStatus(BaseDataType.STATUS_MSG_DATA_TYPE, resp.mDataTypes);\r\n if (status == ServiceStatus.SUCCESS) {\r\n if (resp.mDataTypes.size() == 0) {\r\n LogUtils.logE(\"UploadServerContacts.\" + \"processGroupDeletionsResp() \"\r\n + \"Response cannot be empty\");\r\n complete(ServiceStatus.ERROR_COMMS_BAD_RESPONSE);\r\n return;\r\n }\r\n StatusMsg result = (StatusMsg)resp.mDataTypes.get(0);\r\n if (!result.mStatus.booleanValue()) {\r\n LogUtils.logE(\"UploadServerContacts.\"\r\n + \"processGroupDeletionsResp() Error deleting group \"\r\n + \"relation, error = \" + result.mError);\r\n complete(ServiceStatus.ERROR_COMMS_BAD_RESPONSE);\r\n }\r\n LogUtils.logV(\"UploadServerContacts.\" + \"processGroupDeletionsResp() Deleted relation\");\r\n \r\n long startTime = System.nanoTime();\r\n mDb.deleteContactChanges(mContactChangeInfoList);\r\n mDbSyncTime += (System.nanoTime() - startTime);\r\n \r\n mContactChangeInfoList.clear();\r\n updateProgress();\r\n sendNextDelGroupRelationsPage();\r\n return;\r\n }\r\n LogUtils.logE(\"UploadServerContacts.processGroupDeletionsResp() \"\r\n + \"Error deleting group relation, error = \" + status);\r\n complete(status);\r\n }", "title": "" }, { "docid": "57bd0bb6290768fa8e70b04890293f6d", "score": "0.4045879", "text": "public BucketDeleteResponse getDeleteBucketResponse(){\r\n return localDeleteBucketResponse;\r\n }", "title": "" }, { "docid": "57bd0bb6290768fa8e70b04890293f6d", "score": "0.4045879", "text": "public BucketDeleteResponse getDeleteBucketResponse(){\r\n return localDeleteBucketResponse;\r\n }", "title": "" }, { "docid": "657d96b771a291e7f34465852554c796", "score": "0.4038828", "text": "public void setDelete_status(Integer delete_status) {\n\t\tthis.delete_status = delete_status;\n\t}", "title": "" }, { "docid": "c8c0e5d577324d4798410875171f1b1e", "score": "0.40380266", "text": "public Response.Status delete(T t);", "title": "" }, { "docid": "ae75a069b3cd8dd2b133c61758b4d3ac", "score": "0.40358275", "text": "public Integer getDeleted() {\n return deleted;\n }", "title": "" }, { "docid": "a4326611b6af2ea5c080b7ea704e0065", "score": "0.4035187", "text": "long getOrderId();", "title": "" }, { "docid": "4eac420a52849007d95f20a9672a5b10", "score": "0.40254155", "text": "AuthzGroup get(String id);", "title": "" }, { "docid": "0b84a1a77fd9519c26a2a9026b3800ba", "score": "0.40205425", "text": "public void setDeleteStatus(Boolean deleteStatus) {\r\n this.deleteStatus = deleteStatus;\r\n }", "title": "" }, { "docid": "3a142e21e92151674a999dd2d44807f9", "score": "0.40149716", "text": "@DISPID(2) //= 0x2. The runtime will prefer the VTID if present\r\n @VTID(13)\r\n office.MsoSharedWorkspaceTaskStatus getStatus();", "title": "" }, { "docid": "d37e479b5c5bb710361f2a5db53ffee5", "score": "0.40125564", "text": "public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) \n {\n }", "title": "" }, { "docid": "da6df741e33753debb95b4baadd1beaf", "score": "0.4011773", "text": "@RequestMapping(\"/wxshop/order/status/{status}\")\n public WxShopOrder getOrderByStatus(@PathVariable(\"status\") int status) throws URISyntaxException {\n logger.info(\" View order by status:\"+status);\n allOrders = this.listAllOrders();\n //findOne\n for(WxShopOrder wxShopOrder: allOrders) {\n if (wxShopOrder.getStatus() == status) {\n logger.info(\"findOneByIdAndStatus:\" + wxShopOrder.toString());\n return wxShopOrder;\n }\n }\n return null;\n }", "title": "" }, { "docid": "fb6bb12b296d756997a1086227053c68", "score": "0.40106177", "text": "int getOrderId();", "title": "" }, { "docid": "2a3feaa46ab3e4fceefeaaf62958b101", "score": "0.40057927", "text": "String getOrderId();", "title": "" }, { "docid": "2750fcc03242e8ee0d6d99efff3b4220", "score": "0.40043396", "text": "@Test\n public void testCreateUpdateDeleteStatus() {\n Status ret = statusDatastore.getOrNull(1,1L, StatusDataType.getById(1)); \n\n //DELETE Test\n statusDAO.delete(ret.getCustomerId(), ret.getEquipmentId());\n \n \tassertNull(statusDatastore.getOrNull(1,1L, StatusDataType.getById(1)));\n \n }", "title": "" }, { "docid": "186864a757209a0d35fb7b6ec13cc02c", "score": "0.39987755", "text": "String getTestingStatusId();", "title": "" }, { "docid": "7488de44a8798554770e66b923eee2a5", "score": "0.39883542", "text": "StatusItem getStatus();", "title": "" }, { "docid": "7488de44a8798554770e66b923eee2a5", "score": "0.39883542", "text": "StatusItem getStatus();", "title": "" }, { "docid": "329fbbcdd6427b5f8dc9fe577ece4921", "score": "0.39871946", "text": "com.google.ads.googleads.v1.services.SharedSetOperationOrBuilder getSharedSetOperationOrBuilder();", "title": "" }, { "docid": "9b5f548d14410229661ad8b67a6ce3e1", "score": "0.39861804", "text": "public synchronized GroupEntity createGroup() {\n/* 199 */ DBIncrementService dbIncrementService = (DBIncrementService)AppContext.getBean(\"dbIncrementService\");\n/* 200 */ long baseGroupId = MContext.getServerIdInt() * 1000000L;\n/* 201 */ long groupId = baseGroupId + dbIncrementService.generate(\"groupId\").intValue();\n/* 202 */ return (GroupEntity)this.mapProxy.createProxy(Long.valueOf(groupId));\n/* */ }", "title": "" }, { "docid": "5583b6614d1167696a2fb61e2e33790d", "score": "0.3981976", "text": "@Override\r\n\tpublic List<Map<String, Object>> deleteInOrder(String id) {\n\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\r\n\t\tparams.add(new BasicNameValuePair(\"id\", id));\r\n\t\tList<Map<String, Object>> list = new ArrayList<Map<String, Object>>();\r\n\t\tMap<String, Object> map = new HashMap<String, Object>();\r\n\t\ttry {\r\n\t\t\tString json = HttpClient.doPost(QNPermissionApi.mainLink\r\n\t\t\t\t\t+ QNPermissionApi.deleteInOrder, params);\r\n\t\t\tJSONTokener jsonParser = new JSONTokener(json);\r\n\t\t\tJSONObject person = (JSONObject) jsonParser.nextValue();\r\n\t\t\tBoolean b = person.getBoolean(\"success\");\r\n\t\t\tif (!b) {\r\n\t\t\t\tObject islogin = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tislogin = person.get(\"stute\");\r\n\t\t\t\t\tloginAjax(username, password);\r\n\t\t\t\t\treturn this.queryOrderItem(id);\r\n\t\t\t\t} catch (Exception ex) {\r\n\r\n\t\t\t\t}\r\n\t\t\t\tString info = person.getString(\"info\");\r\n\t\t\t\tmap.put(\"success\", b);\r\n\t\t\t\tmap.put(\"info\", info);\r\n\t\t\t\tlist.add(map);\r\n\t\t\t\treturn list;\r\n\t\t\t} else {\r\n\r\n\t\t\t}\r\n\t\t\tString info = person.getString(\"info\");\r\n\t\t\tmap.put(\"success\", b);\r\n\t\t\tmap.put(\"info\", info);\r\n\t\t\tlist.add(map);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\tmap.put(\"success\", false);\r\n\t\t\tlist.add(map);\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "b9af2269e90eaa37b49af5714fe754f2", "score": "0.39799657", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic PrjService<adhoc_communication.GetGroupStateRequest, adhoc_communication.GetGroupStateResponse> get_get_group_state() {\n\t\treturn (PrjService<adhoc_communication.GetGroupStateRequest, adhoc_communication.GetGroupStateResponse>) services.get(\"get_group_state\");\n\t}", "title": "" }, { "docid": "748f623cc2272d94d3f6c1d0055b7e91", "score": "0.39792114", "text": "@Override\n public Object getGroup(int groupPosition) {\n return listDataHeader.get(groupPosition);\n }", "title": "" }, { "docid": "32a19387564abc2c0e5257ee3331c004", "score": "0.39776978", "text": "OmsOrderSetting selectByPrimaryKey(Long id);", "title": "" } ]
aff38e027ec32c7b7e4beed206141364
deletes a submission with the given id
[ { "docid": "4742d909c7c3d4d09abc813449b1c791", "score": "0.75204927", "text": "@Override\n\tpublic Boolean deleteSubmissionBy_id(String id) {\n\t\tSubmission sub = submissionRepo.findBy_id(id);\n\t\tif (sub!=null) {\n\t\t\tsubmissionRepo.delete(sub);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "eb9b4d0d780b408ae27d9149e18ab608", "score": "0.68187106", "text": "public void delete(SubmissionFormPk pk) throws SubmissionFormDaoException;", "title": "" }, { "docid": "b9bd6be6d9a55702b8229289f02579b6", "score": "0.6704113", "text": "public static void deleteItem(long id) {\n pendingSubmissionsDatabase.execSQL(\"DELETE FROM \" +\n PendingSubmissionStorage.PendingSubmissionEntry.TABLE_TITLE + \" WHERE \" +\n PendingSubmissionStorage.PendingSubmissionEntry._ID + \" = \" + id + \";\");\n resetSubmissionIDs();\n PendingSubmissionCell.refreshItems();\n }", "title": "" }, { "docid": "f07048c011e8dd12803915986948f60f", "score": "0.64909667", "text": "@Transactional // ok\n public void deleteById(long exampleSubmissionId) {\n Optional<ExampleSubmission> optionalExampleSubmission = exampleSubmissionRepository.findByIdWithResultsAndTutorParticipations(exampleSubmissionId);\n\n if (optionalExampleSubmission.isPresent()) {\n ExampleSubmission exampleSubmission = optionalExampleSubmission.get();\n\n for (TutorParticipation tutorParticipation : exampleSubmission.getTutorParticipations()) {\n tutorParticipation.getTrainedExampleSubmissions().remove(exampleSubmission);\n }\n\n Long exerciseId = exampleSubmission.getExercise().getId();\n Optional<Exercise> exerciseWithExampleSubmission = exerciseRepository.findByIdWithEagerExampleSubmissions(exerciseId);\n\n // Remove the reference to the exercise when the example submission is deleted\n exerciseWithExampleSubmission.ifPresent(exercise -> exercise.removeExampleSubmission(exampleSubmission));\n\n // due to Cascade.Remove this will also remove the submission and the result in case they exist\n exampleSubmissionRepository.delete(exampleSubmission);\n }\n }", "title": "" }, { "docid": "124efffb198708ac44fe6e0c830bf1d5", "score": "0.64144915", "text": "public void delete(String id);", "title": "" }, { "docid": "124efffb198708ac44fe6e0c830bf1d5", "score": "0.64144915", "text": "public void delete(String id);", "title": "" }, { "docid": "124efffb198708ac44fe6e0c830bf1d5", "score": "0.64144915", "text": "public void delete(String id);", "title": "" }, { "docid": "58581e23aa33750cc1e96aaf342f0e43", "score": "0.63863504", "text": "@PostMapping(\"/delete/{id}\")\n public String delete(@PathVariable Long id){\n\n\tOptional<Entry> onePost = entries.findById(id);\n\tEntry post = onePost.get();\n\tentries.delete(post);\n\t \n\treturn \"redirect:/\"; \n }", "title": "" }, { "docid": "727aae4d7976dab7dea6556586616e90", "score": "0.6371662", "text": "public int deleteById(long submissionDataId) throws DataAccessException;", "title": "" }, { "docid": "79170889013b35a4b34c3d88ba25995e", "score": "0.6348214", "text": "void deleteById(final String id);", "title": "" }, { "docid": "f327c7ab8fcc32312c51357b4cf5a651", "score": "0.63306046", "text": "public void deleteById(int id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.6304035", "text": "void deleteById(String id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.6304035", "text": "void deleteById(String id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.6304035", "text": "void deleteById(String id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.6304035", "text": "void deleteById(String id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.6304035", "text": "void deleteById(String id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.6304035", "text": "void deleteById(String id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.6304035", "text": "void deleteById(String id);", "title": "" }, { "docid": "052aac6016395855f1bad85f9a3d1a10", "score": "0.6304035", "text": "void deleteById(String id);", "title": "" }, { "docid": "e41e108a5747afc58739de5550e2fa4e", "score": "0.62637883", "text": "public void delete(int id);", "title": "" }, { "docid": "e41e108a5747afc58739de5550e2fa4e", "score": "0.62637883", "text": "public void delete(int id);", "title": "" }, { "docid": "3a38aa89d7b99cf3f54f2b609a31aa30", "score": "0.6248231", "text": "public void removeSubmission(TCSubject tcSubject, long submissionId) throws PersistenceException {\r\n\r\n }", "title": "" }, { "docid": "37bc0fc4681bd0dbf694bb201be81ab4", "score": "0.6210936", "text": "public void delete(int id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "0c435f08a7b27809a13c53121b10e959", "score": "0.62053037", "text": "public void delete(Integer id);", "title": "" }, { "docid": "0c435f08a7b27809a13c53121b10e959", "score": "0.62053037", "text": "public void delete(Integer id);", "title": "" }, { "docid": "147d2c3d60481c36c44559fed0c6bd6c", "score": "0.61963725", "text": "public String deleteById(Integer id);", "title": "" }, { "docid": "e3bd2baf302f5fbae599f75ccea72b65", "score": "0.61929494", "text": "public void deleteById(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "bf7ad3f9a334382f84c63eb27d04ba28", "score": "0.6185833", "text": "public boolean delete(int id);", "title": "" }, { "docid": "bf7ad3f9a334382f84c63eb27d04ba28", "score": "0.6185833", "text": "public boolean delete(int id);", "title": "" }, { "docid": "bf7ad3f9a334382f84c63eb27d04ba28", "score": "0.6185833", "text": "public boolean delete(int id);", "title": "" }, { "docid": "9b93dd6b73c05be834f0d84cdcef40e1", "score": "0.61838007", "text": "@Override\n\tpublic int delById(Integer jid) {\n\t\treturn jobMapper.delyemian(jid);\n\t}", "title": "" }, { "docid": "8f23db63d1528d681c017f25dbc97ace", "score": "0.6182902", "text": "void deleteById(int id);", "title": "" }, { "docid": "8f23db63d1528d681c017f25dbc97ace", "score": "0.6182902", "text": "void deleteById(int id);", "title": "" }, { "docid": "8f23db63d1528d681c017f25dbc97ace", "score": "0.6182902", "text": "void deleteById(int id);", "title": "" }, { "docid": "fffcb797b99ca38ddbce20db9e85ac85", "score": "0.6182316", "text": "public void deleteById(String id) {\n\n\t}", "title": "" }, { "docid": "9d4f25f292e1ca261ea3acc839aaf404", "score": "0.61784637", "text": "ActionResponse delete(String id);", "title": "" }, { "docid": "9d4f25f292e1ca261ea3acc839aaf404", "score": "0.61784637", "text": "ActionResponse delete(String id);", "title": "" }, { "docid": "568c58f6ecfc7ffefa10dab01cc49799", "score": "0.61766976", "text": "public void delete(Long id) {\n log.debug(\"Request to delete Question : {}\", id);\n\n Optional<Question> Question = this.findOne(id);\n if (Question.isPresent()) {\n Question.get().setEliminado(Boolean.TRUE);\n questionsRepository.save(Question.get());\n }\n }", "title": "" }, { "docid": "c09e18bbec6632fab4ba9da7939fb849", "score": "0.6164902", "text": "public int delete(int id) {\n //Suppression de la BDD grâce à l'ID\n return bdd.delete(TABLE_QUESTIONS, COL_ID + \" = \" + id, null);\n }", "title": "" }, { "docid": "86af6e9f1c2520ede3c7f83bcc978601", "score": "0.6164085", "text": "public int deleteAssignment(int id) throws TamsException;", "title": "" }, { "docid": "ca3ca3c8f1b4f04eb6e9d991bc3f0207", "score": "0.615027", "text": "@Override\n\tpublic void deleteById(long id) {\n\t\tfor (int i = 0; i < this.posts.size(); i++)\n\t\t{\n\t\t\tif(Objects.equals(this.posts.get(i).getId(), id))\n\t\t\t{\n\t\t\t\tthis.posts.remove(i);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tthrow new RuntimeException(\"Post not found: \" + id);\n\t\t\n\t}", "title": "" }, { "docid": "b90001945c01f0c7f4d058810bf6aff2", "score": "0.6148141", "text": "public boolean deleteById(Object id);", "title": "" }, { "docid": "115d81bca52653a81f6aabfbbaf2cdb6", "score": "0.61333495", "text": "void deleteById(Integer id);", "title": "" }, { "docid": "115d81bca52653a81f6aabfbbaf2cdb6", "score": "0.61333495", "text": "void deleteById(Integer id);", "title": "" }, { "docid": "d988cf83d9b394ba2644d0ffef8d03bb", "score": "0.61303174", "text": "public void delete(long id);", "title": "" }, { "docid": "e703cc5b1a6c7053471691f3011f4c25", "score": "0.6117784", "text": "public void delete(Long id);", "title": "" }, { "docid": "e703cc5b1a6c7053471691f3011f4c25", "score": "0.6117784", "text": "public void delete(Long id);", "title": "" }, { "docid": "e703cc5b1a6c7053471691f3011f4c25", "score": "0.6117784", "text": "public void delete(Long id);", "title": "" }, { "docid": "10a3e2a1d651f2d5475396ec49116b76", "score": "0.6113588", "text": "public void delete(int id) {\n\t}", "title": "" }, { "docid": "8d0c1d8f375a096f6e76c0a75680f596", "score": "0.61117274", "text": "public boolean deleteById(int id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.61100465", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.61100465", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.61100465", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.61100465", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.61100465", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.61100465", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.61100465", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.61100465", "text": "void delete(String id);", "title": "" }, { "docid": "8548aacd6781fc3c1d43856f18a1af33", "score": "0.61100465", "text": "void delete(String id);", "title": "" }, { "docid": "5d60284e1d85bfd9c1bf24f7be586110", "score": "0.6103835", "text": "public Response deleteSubject(String id) {\n gradeDAO.deleteData(subjectDAO.getData(id));\n subjectDAO.deleteData(id);\n return Response.status(200).build();\n }", "title": "" }, { "docid": "97f3610c81a816091f262f97fc98eb8e", "score": "0.6099586", "text": "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "b9ac80472378de83ef2fde37666fa0b8", "score": "0.6094921", "text": "public void deleteById(long id) {\n//\t\t\trequestRepository.deleteAll(list);\n\t\t\t\n//\t\t\tstud.getContract().getRequests().clear();\n//\t\t\tusers.save(stud);\n\t\t\tusers.deleteById(id);\n\t\t}", "title": "" }, { "docid": "d81c3b3007f6c3aa3ea5378471c534e6", "score": "0.6091752", "text": "public void delete(int id) {\n \trepository.deleteById(id);\n }", "title": "" }, { "docid": "01212c8e9f39d4029207ac64ab25ac7e", "score": "0.6075815", "text": "public void delete(Long id) {\n log.debug(\"Request to delete Questions : {}\", id);\n questionsRepository.delete(id);\n }", "title": "" }, { "docid": "d9fe2c77f75ea25f917468d3f7483826", "score": "0.60749346", "text": "@PostMapping(\"/delete/{id}\")\r\n\tpublic ResponseEntity deletePost(@PathVariable @RequestBody Long id) {\r\n\t\tpostService.deletePost(id);\r\n\t\treturn new ResponseEntity(HttpStatus.OK);\r\n\t}", "title": "" }, { "docid": "f552651624b136316e1e6d6442f08ccf", "score": "0.6060938", "text": "boolean delete(int id);", "title": "" }, { "docid": "f552651624b136316e1e6d6442f08ccf", "score": "0.6060938", "text": "boolean delete(int id);", "title": "" }, { "docid": "f552651624b136316e1e6d6442f08ccf", "score": "0.6060938", "text": "boolean delete(int id);", "title": "" }, { "docid": "f552651624b136316e1e6d6442f08ccf", "score": "0.6060938", "text": "boolean delete(int id);", "title": "" }, { "docid": "f552651624b136316e1e6d6442f08ccf", "score": "0.6060938", "text": "boolean delete(int id);", "title": "" }, { "docid": "1525ad079440c8b0e84550698ef7f92d", "score": "0.60358536", "text": "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete EvaluateMission : {}\", id);\n evaluateMissionRepository.deleteById(id);\n }", "title": "" }, { "docid": "cfa52b1aabbf4fc50c912d09b19a0db2", "score": "0.6034765", "text": "@Override\n\tpublic void deleteById(String id) {\n\n\t}", "title": "" }, { "docid": "cfa52b1aabbf4fc50c912d09b19a0db2", "score": "0.6034765", "text": "@Override\n\tpublic void deleteById(String id) {\n\n\t}", "title": "" }, { "docid": "c55182a77afc3aa12df40e90f1c88d5e", "score": "0.6031147", "text": "public void delete(long id) {\n\t\tcourseRepo.delete(id);\t\t\n\t\t//authRepo.delete(s.getCoursaId());\n\t\t\n\t}", "title": "" }, { "docid": "3dfb1b210ba501abd33d08d09311e6f5", "score": "0.60251665", "text": "@RequestMapping(value = \"/{id}\", method = RequestMethod.DELETE)\n @Override\n public void delete(@PathVariable(PATH_ID) Long id) throws Exception {\n\n //Get existing job\n Job job = jobService.find(id); \n jobService.delete(job);\n }", "title": "" }, { "docid": "c9280861e22de8eec34e14824b2c759f", "score": "0.6021738", "text": "@Override\r\n public void delete(Long id) {\n subjectDao.delete(subjectDao.findById(id));\r\n }", "title": "" }, { "docid": "788b79d41ac951b2b8358f124b8cd378", "score": "0.60102767", "text": "void deleteById(Long id);", "title": "" }, { "docid": "788b79d41ac951b2b8358f124b8cd378", "score": "0.60102767", "text": "void deleteById(Long id);", "title": "" }, { "docid": "788b79d41ac951b2b8358f124b8cd378", "score": "0.60102767", "text": "void deleteById(Long id);", "title": "" }, { "docid": "788b79d41ac951b2b8358f124b8cd378", "score": "0.60102767", "text": "void deleteById(Long id);", "title": "" }, { "docid": "788b79d41ac951b2b8358f124b8cd378", "score": "0.60102767", "text": "void deleteById(Long id);", "title": "" }, { "docid": "e7e790907aed0e6c26e544d0d59aba47", "score": "0.6002441", "text": "@Override\n\tpublic void deleteById(int id) {\n\t}", "title": "" }, { "docid": "f6a12c64240db9c87f369470c11b07de", "score": "0.5988391", "text": "public void deletePostById(int id) {\n\t\tPost post = postRepo.findOne(id);\n\t\tif (!post.getAuthor().equals(userService.getCurrentUser())) {\n\t\t\tLOG.info(\"Deleting post not allowed. user={}, id={}\", userService.getCurrentUser().getEmail(), id);\n\t\t\tthrow new IllegalStateException(\"User not allowed to delete post\");\n\t\t}\n\n\t\tLOG.info(\"Deleting post. user={}, id={}\", userService.getCurrentUser().getEmail(), id);\n\n\t\tpostRepo.deletePostBy(id);\n\t}", "title": "" }, { "docid": "1b2e3aff0d179509a3f2212b3494484b", "score": "0.598822", "text": "@Override\n\tpublic void deleteReview(int id) {\n\t\tsession = sessionFactory.openSession();\n\t\ttx = session.getTransaction();\n\t\tsession.beginTransaction();\n\t\t\n\t\tReviewque reviewque=(Reviewque) session.load(Reviewque.class, id);\n\t\t if (null != reviewque) {\n\t session.delete(reviewque);\n\t }\n\t\t tx.commit();\n\t}", "title": "" }, { "docid": "57ef4cda814c6b93978b12df1bf77794", "score": "0.5979998", "text": "public void deleteById(Long id) {\n\n\t}", "title": "" }, { "docid": "50a2d48548c09472b318a7939b064d8e", "score": "0.5979791", "text": "@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}", "title": "" }, { "docid": "a0b813a20b1cd81bab05f09fd472ff8e", "score": "0.59767824", "text": "@RequestMapping(value = \"/jobTitles/delete\", method = {RequestMethod.DELETE, RequestMethod.GET})\n\tpublic String delete(Integer id) {\n\t\tjobTitleService.delete(id);\n\t\treturn \"redirect:/jobTitles\";\n\t}", "title": "" }, { "docid": "f8529d37faf3b2ef6d8c2cc8b510d4c3", "score": "0.597108", "text": "public void delete(Integer id) {\n\r\n\t}", "title": "" }, { "docid": "b6ce9d4d0ad612bc87d69a245d47ea6d", "score": "0.59677976", "text": "@DeleteMapping(\"{id}\")\n public void deleteReview(@PathVariable Long id) {\n reviewService.delete(id);\n }", "title": "" }, { "docid": "87db29a0c0f976f344609692fe92bcd7", "score": "0.59671545", "text": "public void deleteJob(Long id) {\n\t\ttry {\n\t\t\tjobRepository.deleteById(id);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"JobSpotService.\\n Method: deleteJob() \\n Error Details:\" + e.getMessage());\n\t\t\tthrow new ServerErrorException(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "d53d49010747c1937e6c94447898772c", "score": "0.5964395", "text": "public void delete(int id) throws Exception;", "title": "" }, { "docid": "dd11d50fe8375f16a24c481b2f16b96a", "score": "0.59604573", "text": "@Override\r\n\tpublic void delete(Integer id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "dd11d50fe8375f16a24c481b2f16b96a", "score": "0.59604573", "text": "@Override\r\n\tpublic void delete(Integer id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "098fe2bc88c5d51ded6dc7f27af56ae6", "score": "0.5959666", "text": "public Boolean delete(Short id);", "title": "" }, { "docid": "ea8726c44658d1422c8b9a7ac5647001", "score": "0.5957541", "text": "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "title": "" }, { "docid": "ea8726c44658d1422c8b9a7ac5647001", "score": "0.5957541", "text": "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "title": "" }, { "docid": "ea8726c44658d1422c8b9a7ac5647001", "score": "0.5957541", "text": "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "title": "" }, { "docid": "ea8726c44658d1422c8b9a7ac5647001", "score": "0.5957541", "text": "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "title": "" }, { "docid": "95c515f8e4f811e6795c961a470a5b05", "score": "0.59543407", "text": "public static void deleteSubmission(@NotNull Submission submission, @NotNull User user)\n {\n try (DbScope.Transaction transaction = PanoramaPublicManager.getSchema().getScope().ensureTransaction())\n {\n deleteSubmission(submission.getId());\n\n List<Submission> allSubmissions = getSubmissionsNewestFirst(submission.getJournalExperimentId());\n allSubmissions.removeIf(Submission::isObsolete);\n\n if (allSubmissions.size() == 0)\n {\n // Delete the JournalExperiment if there are no submissions left after removing any obsolete ones\n JournalExperiment je = getJournalExperiment(submission.getJournalExperimentId());\n if (je != null)\n {\n deleteSubmissionsForJournalExperiment(je.getId());\n deleteJournalExperiment(je, user);\n }\n }\n\n transaction.commit();\n }\n }", "title": "" }, { "docid": "df21f9f966d91d4efe06b63fb0b57121", "score": "0.5952778", "text": "public void delete(long id) {\n\t}", "title": "" }, { "docid": "ed922f52928bd14914236790befaef8f", "score": "0.5933005", "text": "void deleteById(K id);", "title": "" } ]